:root {
  /* Text-Style */
  --font: Arial, Helvetica, sans-serif;

  /* Farben */
  --color-background: #fbfbfb;
  --color-header-bg: #ededed;
  --color-header-text: #004aad;
  --color-dark-text: #000000;
  --color-light-text: #ffffff;
  --color-link-text: #186e73;
  --color-link-text-hover: #e60012;
  --color-hover-bg: #63636359;
  /* Fujitsu-Rot */
  --color-dropdown-bg: #00000075;
  --color-border: #ddd;
  --color-product: #004aad99;
  /*0088f099*/
  --color-card: #ffffff;

  /* Abstände */
  --padding-horizontal: 50px;
  --padding-link: 10px 15px;

  /* Höhen */
  --header-height: 75px;
  --footer-height: 30px;

  /* Radien & Schatten */
  --radius: 0px;
  --radiusMiddle: 0px;
  --radiusSmall: 0px;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.15);

  /* Slideshow-Bild*/
  --slideshow-width: 1500px;
  --slideshow-aspect-ratio: 16 / 7;
}

/* Grundlayout */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-dark-text);
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
}

/* Header fixieren */
header {
  color: var(--color-dark-text);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-product);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius);
}

header.navigation {
  color: var(--color-dark-text);
  width: 100%;
  height: var(--header-height);
  background: var(--color-light-text);
  border-bottom: 1px solid var(--color-hover-bg);
  display: flex;
  justify-content: center;
  border-radius: var(--radius);
}

.header-logo img {
  height: 70px;
  width: auto;
  display: block;
}

.header-text {
  width: auto;
  display: flex;
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
}

header h1 {
  padding-left: 20px;
  color: var(--color-dark-text);
}

#start-info-sections {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 40px 20px;
  max-width: 1500px;
  margin: 0 auto;   /* ← DAS ist wichtig */
}

.start-info-block {
  display: flex;
  gap: 30px;
}

/* Bild rechts vom Text */
.start-info-block.reverse {
  flex-direction: row-reverse;
  margin-left: auto;
}

/* Bild links vom Text */
.start-info-block:not(.reverse) {
  margin-right: auto;
}

/* Bild */
.start-info-image {
  flex: 0 0 450px;   /* FIXE Bildbreite */
}

.start-info-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radiusMiddle);
  object-fit: cover;
}

/* Textbereich */
.start-info-text h4 {
  font-size: 1.2rem;
  margin: 0;
  color: #666;
}

.start-info-text h2 {
  color: var(--color-header-text); /* sanftes Blau */
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 2em;
  margin: 10px 0;
}

.start-info-text p {
  margin-left: 1.5rem;
  font-weight: 400;
  font-size: 1.05em;
  line-height: 1.8;
}

/* Footer fix am unteren Rand */
footer {
  background: var(--color-header-bg);
  color: var(--color-dark-text);
  text-align: center;
  padding: 0.8rem;
  flex-shrink: 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

footer a {
  color: var(--color-dark-text);
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

.info-text h2 {
  text-align: center;
  color: var(--color-header-text); /* sanftes Blau */
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 2em;
  margin-bottom: 20px;
}

.info-text h3 {
  text-align: center;
}

.info-text p {
  line-height: 1.8;
  text-align: center;
  font-size: 16px;
  margin-left: 1.5rem;
  font-weight: 300;
  font-size: 1.05em;
}

.info-text li {
  list-style-position: inside;
  line-height: 2;
  text-align: center;
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center; /* optional: zentriert die Links */
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: var(--color-dark-text);
  padding: var(--padding-link);
  display: block;
}

nav ul li a:hover {
  color: var(--color-dark-text);
  border-radius: var(--radius);
  font-weight: bold;
}

/* Dropdown */
nav ul li ul {
  color: var(--color-light-text);
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-dropdown-bg);
  border-radius: var(--radius);
  min-width: 180px;
  box-shadow: var(--shadow);
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul li a {
  color: var(--color-light-text);
}

nav ul li ul li a:hover {
  background-color: var(--color-hover-bg);
  border-radius: var(--radius);
  color: var(--color-light-text);
}

/* Content-Bereich mit iframe */
main {
  box-sizing: border-box;
  padding-top: var(--header-height);
}

iframe {
  width: 100%;
  border: none;
  border-radius: var(--radius);
}

main iframe {
  width: 100%;
  height: calc(97vh - var(--header-height) - var(--footer-height));
  min-height: 600px;
  border: none;
  background: #ffff;
  display: block;
}

/*Slideshow*/
.slideshow-container {
  width: 100%;
  max-width: var(--slideshow-width);
  aspect-ratio: var(--slideshow-aspect-ratio);
  margin: 1rem auto; /* zentriert horizontal */
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: #000; /* optional, falls Bild kurz fehlt */
}

.slides {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*Filter*/
.filters {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.filters input,
.filters select {
  padding: 0.5rem;
  font-size: 1rem;
  position: relative;
  bottom: 8px;
  display: flex;
  margin-right: 20px;
  border: 1.2px solid #888; /* dünner, dezenter Rahmen */
  border-radius: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(750px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr; /* Bild | Beschreibung | Modelle */
  grid-template-rows: auto 1fr; /* Titelzeile + Content */
  gap: 1rem;
  padding: 1rem;
  border: none;
  border-top: 1px solid #ccc;
  border-radius: var(--radiusMiddle);
  box-shadow: 6px 6px 5px rgba(0, 0, 0, 0.5); /* Rahmen 1 für Modelle */
}

.product-card:hover {
  transform: translateY(0px);
}

/* Produktname über Spalte 1 + 2 */
.product-card h2 {
  grid-column: 1 / span 2; /* nimmt Spalte 1 und 2 ein */
  grid-row: 1; /* erste Zeile */
  text-align: left;
  font-size: 1.2rem;
  margin: 0;
  color: #333;
}

.product-card .desc {
  font-size: 0.9rem;
  color: #186e73;
}

.product-card img {
  max-width: 100%;
  border-radius: var(--radiusSmall);
}

/* Inhalt: Bild, Beschreibung, Modelle */
.product-content {
  grid-column: 1 / 4; /* deckt alles ab, aber wir splitten intern nochmal */
  grid-row: 2; /* zweite Zeile */
  display: contents; /* erlaubt direkte Spaltenzuordnung */
}

.product-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-icon {
  display: flex;
  justify-content: flex-end;
}

.product-manufacturer-icon {
  height: 40px; /* feste Höhe */
  object-fit: contain; /* verhindert Verzerrung */
  gap: 10px;
}

/* Bild */
.product-image {
  grid-column: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radiusSmall);
}

.product-models a {
  color: var(--color-accent, var(--color-link-text));
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.product-models a:hover {
  color: var(--color-accent, var(--color-link-text));
  text-decoration: underline;
}

/* ---------- MODEL DETAIL PAGE ---------- */

.model-container {
  width: 1000px;
  margin: 2rem auto;
  background: #f7f6f7;
  border-radius: var(--radiusMiddle);
  /*box-shadow: var(--shadow);*/
  padding: 2rem;
  line-height: 1.8;
}

.model-container h2 {
  font-size: 1.8rem;
  color: var(--color-dark-text);
}

/* Oberer Bereich */
.model-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.model-image {
  max-width: 450px;
  border-radius: var(--radiusSmall);
  /* box-shadow: var(--shadow);*/
}

.download-link a {
  color: var(--color-link-text);
  font-weight: bold;
}

.model-description p {
  margin: 0.5rem 0;
}

.function-icons {
  display: block;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.function-icons-row {
  display: flex; /* Icons innerhalb einer Zeile horizontal */
  gap: 10px;
  margin-bottom: 8px; /* kleiner Abstand zwischen den zwei Zeilen */
}

.function-icons img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Tabelle */
.model-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.model-table th,
.model-table td {
  padding: 0.6rem 0.8rem;
}

.model-table th {
  background: var(--color-header-bg);
  font-weight: bold;
}

.model-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-link-text);
}

.model-title h2 {
  margin: 0;
}

.model-manufacturer-icon {
  height: 50px; /* feste Höhe */
  object-fit: contain; /* verhindert Verzerrung */
}

.model-power-sound-table td img {
  width: 40px;
}

.model-power {
  /* background: var(--color-header-bg);*/
  font-weight: bold;
  display: block;
  align-items: center; /* vertikal zentrieren */
  gap: 0.5rem; /* kleiner Abstand zwischen Elementen */
  padding: 0.3rem 0.6rem;
}

.model-power img {
  height: 30px; /* gleiche Höhe für Symbole */
  vertical-align: middle;
}

.model-power-text {
  font-weight: lighter;
  font-size: 0.8rem;
}

/* Tabs */
.tabs {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid #186e73;
}

.tab-buttons button {
  background: none;
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-dark-text);
  transition: all 0.3s ease;
}

.tab-buttons button.active {
  /* border-bottom: 3px solid #000000 ; /*var(--color-hover-bg);*/
  font-weight: bold;
  color: var(--color-link-text);
}

.tab-content {
  margin-top: 1.5rem;
}

/* Produkteigenschaften (Bilder + Text nebeneinander) */
.property-block {
  padding: 40px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin: 0 auto;
}

.property-image img {
  width: 350px;
  max-width: 100%;
  border-top: 1px solid #ccc;
  border-radius: var(--radiusMiddle);
  box-shadow: 2px 1px 1px rgba(0, 0, 0, 0.5); /* Rahmen 1 für Property*/
  border-radius: var(--radiusMiddle);
  object-fit: cover;
}

.property-text {
  flex: 1;
}

.property-text h3 {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.6em;
  margin: 10px 0;
}

.property-text p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Abmessungen */
.dimension-item img {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: var(--radiusSmall);
  /*box-shadow: var(--shadow);*/
}

/* Anschließbar Modelle */
.connectable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.connectable-card {
  max-width: 260px;
  border: none;
  border-radius: var(--radiusSmall);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5); /* Rahmen 1 für Modelle */
}

.connectable-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.connectable-card img {
  width: 200px;
  object-fit: contain;
}

.connectable-card h4 {
  margin-bottom: 2px !important;
}

.connectable-text {
  margin-top: 0;
  line-height: 0.8;
}

/* Platzhalter */
.image-placeholder {
  background: #ccc;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-align: center;
  border-radius: var(--radiusSmall);
}

/* Beschreibung */
.product-description {
  grid-column: 2;
  margin-left: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  font-size: 0.95em;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertikal mittig */
}

/* Modelle mit voller Höhe */
.product-models {
  grid-column: 3;
  grid-row: 1 / span 2; /* nimmt beide Zeilen ein */
  /*background: #f7f7f7;*/
  border-left: 2px solid #bbb;
  padding: 2rem;
  border-radius: 0 var(--radiusMiddle) var(--radiusMiddle) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertikal mittig */
}

.product-models h3 {
  margin-top: 0;
}

.product-models ul {
  list-style: disc;
  margin: 0;
  padding-left: 1.5rem;
}

.product-models li {
  margin-bottom: 0.3rem;
  list-style-type: none; /* entfernt die Punkte */
  position: relative;
}

.product-models li::before {
  content: ">"; /* die kleine Klammer */
  font-size: 0.8em; /* etwas kleiner als der Text */
  /*color: #ff6600; /* Beispiel: orange, kannst du anpassen */
  margin-right: 0.4rem; /* kleiner Abstand zwischen Klammer und Text */
  vertical-align: middle; /* richtet die Klammer schön am Text aus */
}

.nach-br {
  font-size: 16px;
}

.product-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-links .product-card {
  text-align: center;
  text-decoration: none;
  background: white;
  border-radius: var(--radiusMiddle);
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  color: flex;
  display: absolute;
  flex-direction: column;
  justify-content: space-between;
}

.product-links .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-links .product-card img {
  max-width: 100%;
  border-radius: var(--radiusSmall);
}

/* Pfeile */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: var(--color-light-text);
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  background: var(--color-dropdown-bg);
  transition: background 0.3s;
}

.next {
  right: 0;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Fade-Animation */
.fade {
  animation: fadeEffect 1s;
}

@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* Hersteller-Links unten rechts */
.brand-links {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: right;
  gap: 15px;

  padding: 5px 0;
  z-index: 10;
}

/* Weißer halbtransparenter Hintergrund-Balken */
.brand-links::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px); /* optional */
  z-index: -1;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Link-Styling (optional, kannst du anpassen) */
.brand-links a {
  color: var(--color-light-text);
  background: none;
  padding: 5px 10px;
  border-radius: var(--radiusSmall);
  text-decoration: none;
  font-size: 14px;
}

/* Hover-Effekt beibehalten */
.brand-links a:hover {
  background: #186e7377;
  color: #000;
}

/* Icon-Größe */
.brand-links img {
  height: 40px;
  width: auto;
  display: block;
}

/*About Us*/
.about-section {
  max-width: 950px;
  margin-bottom: 2rem;
  border-radius: var(--radiusMiddle);
  margin: 0 auto; /* Zentriert horizontal */
  text-align: center; /* Textzentrierung */
  padding: 50px 20px;
}

.about-section h2 {
  color: var(--color-header-text); /* sanftes Blau */
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 2em;
  margin-bottom: 20px;
}

.about-section ul {
  list-style: none;
  margin-left: 1.5rem;
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.05em;
}

.about-section strong {
  font-weight: 700; /* garantiert fett */
  color: #000000;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  max-width: 150px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

/*Funktion-Cards*/
.function-section {
  margin: 20px;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.function-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.function-card .icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.function-card .text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.function-card .text p {
  margin: 6px 0 0 0;
  font-size: 14px;
}

@media (min-width:1200px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}