/* elator drive – Kopf- und Fußbereich
   Aus dem Bestand abgeleitet: Elementor-Templates 76 (Header) und 125 (Footer).
   Die Basisklassen (e-flexbox-base, e-heading-base …) sind in die Komponenten
   eingerechnet; die System-Klassen (rand-schmal, kein-rand, text-standard)
   bleiben als eigene Klassen im Markup und stehen in 03-system.css.
   Reihenfolge beachten: 03-system.css muss vor dieser Datei geladen werden. */

/* ============================ KOPF ============================ */

.kopf {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 60px;
  padding-block-start: 40px;
  padding-block-end: 60px;
}

.kopf__logo {
  display: inline-block;
  width: 200px;
  height: 100px;
  color: var(--Himbeer);
  transition: all 200ms;
}
.kopf__logo:hover,
.kopf__logo:focus-visible { color: var(--Erdbeer); }
.kopf__logo svg { width: 100%; height: 100%; overflow: unset; fill: currentColor; }

/* Gruppe „Modell" + Modellnavigation – ab Mobil ausgeblendet */
.kopf__modelle {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 50%;
  column-gap: 1em;
  row-gap: 0;
}

.kopf__label {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 1.8rem;
}

/* ---------- Navigation: gemeinsame Grundlage ---------- */
.nav__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-block;
  text-decoration: none;
  color: var(--Himbeer);
  transition: color 300ms;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--Erdbeer); }

/* ---------- Modellnavigation (Desktop/Tablet) ---------- */
.nav-modelle .nav__link {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1.8rem;
}

/* ---------- Mobilnavigation ---------- */
.nav-mobil {
  display: none;
  position: relative;
  justify-content: flex-start;   /* entspricht --n-menu-toggle-align im Bestand */
}

.nav-mobil__schalter {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--Himbeer);
  cursor: pointer;
  transition: color 500ms;
}
.nav-mobil__schalter:hover { color: var(--Erdbeer); }

.nav-mobil__symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 8px;
  box-sizing: content-box;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: var(--Weiss);
  /* Farbe hier nochmals setzen und nicht nur erben: das Kit faerbt ueber
     "body button" alle Schalter weiss, und weisses Symbol auf weisser
     Flaeche waere unsichtbar. */
  color: var(--Himbeer);
  transition: color 500ms;
}
.nav-mobil__schalter:hover .nav-mobil__symbol,
.nav-mobil__schalter:focus-visible .nav-mobil__symbol { color: var(--Erdbeer); }

/* Feste Masse statt Prozent: als Flex-Element kann ein SVG mit width:100%
   je nach Browser auf null schrumpfen. flex:none verhindert das zusaetzlich. */
.nav-mobil__symbol svg {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Eigener Fokusring statt des blauen Browser-Standards. */
.nav-mobil__schalter:focus { outline: none; }
.nav-mobil__schalter:focus-visible .nav-mobil__symbol {
  outline: 2px solid var(--Erdbeer);
  outline-offset: 2px;
}
.nav-mobil__symbol--schliessen { display: none; }

.nav-mobil__schalter[aria-expanded="true"] .nav-mobil__symbol--oeffnen   { display: none; }
.nav-mobil__schalter[aria-expanded="true"] .nav-mobil__symbol--schliessen { display: flex; }

/* Der Ausklappbereich spannt sich im Bestand ueber die volle Fensterbreite.
   Elementor setzt dafuer per JavaScript --stretch-width, --stretch-left und
   --stretch-right.

   In CSS wird vom rechten Rand her gerechnet: der Kopf hat ueber rand-schmal
   4 % Innenabstand, der Schalter steht also 4vw vor dem Fensterrand. Mit
   right:-4vw liegt die rechte Kante des Panels genau auf dem Fensterrand,
   mit width:100vw die linke bei null. Eine Zentrierung auf den Schalter
   funktioniert hier nicht – er steht ganz rechts, die linke Haelfte des
   Panels laege dann ausserhalb des Fensters. */
.nav-mobil__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: auto;
  right: -4vw;
  width: 100vw;
  max-width: 100vw;
  z-index: 100;
  margin-block-start: 30px;
  flex-direction: column;
  animation: nav-einblenden 500ms backwards;
}
.nav-mobil__schalter[aria-expanded="true"] + .nav-mobil__panel { display: flex; }

@keyframes nav-einblenden { from { opacity: 0; } to { opacity: 1; } }

/* Im Bestand traegt jeder Menuepunkt im Aufklappmodus eine weisse Flaeche
   ueber die volle Breite:
     .e-n-menu[data-layout=dropdown] .e-n-menu-title { background-color:#fff }
     .e-n-menu[data-layout=dropdown] .e-n-menu-item  { width:var(--stretch-width) }
   Die schmalen Luecken dazwischen sind der Abstand von 1px, durch den der
   Seiteninhalt durchscheint. */
.nav-mobil .nav__liste {
  gap: 1px;
  width: 100%;
}
.nav-mobil .nav__item {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.nav-mobil .nav__link {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: var(--Weiss);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.4rem;
  line-height: 1.2;
  padding: 0 4% 2% 4%;
}

/* ============================ FUSS ============================ */

.fuss {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
  padding-block-start: 200px;
  padding-block-end: 200px;
  background-color: var(--Erdbeer);
}

.fuss__adresse {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: center;
}

.fuss__logo { width: 240px; margin-inline-start: -19px; }
.fuss__logo svg { width: 100%; height: auto; }

.fuss__anschrift {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.2rem;
  color: var(--Brombeer);
}
.fuss__anschrift a { color: var(--Brombeer); }
.fuss__anschrift a:hover,
.fuss__anschrift a:focus { color: var(--Himbeer); }

.fuss__rechts {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: flex-end;
  align-items: end;
  align-self: center;
}

.fuss__social {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-end;
  padding: 0;
}

.social-symbol {
  display: inline-block;
  padding: .5em;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  background-color: var(--Himbeer);
  color: var(--Weiss);
  transition: all .3s;
}
.social-symbol svg { height: 20px; width: 20px; fill: var(--Weiss); display: block; }
.social-symbol:hover { background-color: var(--Brombeer); }

.nav-recht .nav__liste { gap: 30px; }
.nav-recht .nav__link {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--Brombeer);
}
.nav-recht .nav__link:hover,
.nav-recht .nav__link:focus-visible { color: var(--Himbeer); }

.fuss__copyright { margin: 0; color: var(--Brombeer); }

/* ======================= Tablet (<= 1024px) ======================= */
@media (max-width: 1024px) {
  .kopf { gap: 50px; }
  .kopf__logo { width: 160px; height: 80px; }
  .kopf__modelle { width: 60%; }
  .kopf__label { font-size: 1.6rem; }
  .nav-modelle .nav__link { font-size: 1.6rem; }

  .fuss { flex-direction: row; padding-block-start: 120px; padding-block-end: 120px; }
  .fuss__adresse { width: 40%; }
  .fuss__rechts { width: 60%; justify-content: center; }
  .fuss__anschrift { font-size: 1.1rem; }
  .nav-recht .nav__liste { gap: 20px; }
  .nav-recht .nav__link { font-size: 1.1rem; }
}

/* ======================== Mobil (<= 767px) ======================== */
@media (max-width: 767px) {
  .kopf {
    justify-content: space-between;
    padding-block-start: 30px;
    padding-block-end: 50px;
  }
  .kopf__logo { width: 100px; height: 50px; }
  .kopf__modelle { display: none; }
  .nav-mobil { display: block; }

  .fuss {
    flex-direction: column;
    gap: 40px;
    padding-block-start: 80px;
    padding-block-end: 80px;
  }
  .fuss__adresse { width: 100%; }
  .fuss__rechts { width: 100%; justify-content: flex-start; align-items: start; }
  .fuss__social { justify-content: flex-start; }
  .fuss__anschrift { font-size: 0.9rem; }
  .nav-recht .nav__link { font-size: 0.9rem; }
}
