/* ============================================================
   FCH HEADER — Apple-Clean, Dark, Fully Responsive
   ============================================================ */

/* Grundparameter */
:root {
  --header-height: 75px;

  /* Hintergrund – Dark */
  --header-bg: var(--bg-2);
  --header-bg-scrolled: rgba(0,0,0,.85);

  /* Shadow */
  --header-shadow: 0 6px 28px rgba(0,0,0,.45);

  /* Textfarben */
  --nav-link-color: var(--ink-2);
  --nav-link-hover: var(--ink-1);

  /* CTA */
  --cta-bg: var(--ink-1);
  --cta-hover-bg: #e5e5e5;
}


.hero-active {
  color: var(--brand) !important;
  font-weight: 600;
  transform: translateY(-2px);
  transition: color .3s ease, transform .3s ease;
}


/* ============================================================
   1) HEADER BASE
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;

  background: var(--header-bg);
  backdrop-filter: blur(0);

  display: flex;
  align-items: center;

  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}

.site-header.scrolled {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(20px);
  box-shadow: var(--header-shadow);
}

/* Inner Layout – echtes Drei-Spalten-Grid */
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding-left: clamp(0rem, 0vw, 2rem);
  padding-right: clamp(0rem, 0vw, 2rem);
  width: 100%;
  height: 100%;
}

/* ============================================================
   2) LOGO
   ============================================================ */
.header-logo {
  margin-left: 0;
}
.header-logo img {
  height: 65px;
  width: auto;
  display: block;
}

/* ============================================================
   3) NAVIGATION — DESKTOP
   ============================================================ */

.nav-desktop {
  justify-self: center;
  margin: 0; /* entfernt das automatische Wegschieben */
}

.nav-desktop ul {
  display: flex;
  gap: clamp(1.6rem, 3vw, 3rem);
  list-style: none;
}

.nav-desktop a {
  color: var(--nav-link-color);
  font-size: var(--fs-body);
  font-weight: 300;
  padding: 6px 0;
  transition: color .25s ease, opacity .25s ease;
}

.nav-desktop a:hover {
  color: var(--nav-link-hover);
  opacity: .85;
}
/* E im EGYM farblich hervorheben */
.egym-e {
  color: #ff7a00;
  font-weight: 600;
}
/* CTA — Apple Style */
.header-cta {
  padding: 16px 16px;
  background: var(--brand);
  color: #000;
  border-radius: 999px;
  font-size: calc(var(--fs-body) * 0.9);
  font-weight: 500;

  transition: background .25s ease, transform .25s ease;
  margin-right: 0; /* kein künstlicher Abstand mehr */
  justify-self: end;
  height: 40px;
  display: flex;
  align-items: center;
}

.header-cta:hover {
  background: var(--cta-hover-bg);
  transform: translateY(-2px);
}
.nav-desktop .has-dropdown .nav-chevron {
display: inline-block;
margin-left: 6px;
font-size: 0.75em;
transition: transform 200ms ease;
}

.nav-desktop .has-dropdown:hover .nav-chevron,
.nav-desktop .has-dropdown.open .nav-chevron {
transform: rotate(90deg);
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -12px; /* Höhe des Zwischenraums */
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
  pointer-events: auto;
}







/* ============================================================
   4) BURGER — MOBILE
   ============================================================ */

.burger {
  display: none;
  margin-left: 4px;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  align-self: center;
  z-index: 10001;
}

.burger span {
  position: absolute;
  left: 0;
  height: 2px;
  background: var(--ink-1);
  transition: .35s ease;
  border-radius: 2px;
}
.burger .b1 { top: 5px; width: 26px; }
.burger .b2 { top: 12px; width: 20px; }
.burger .b3 { top: 19px; width: 14px; }

/* Burger → X */
.burger[aria-expanded="true"] .b1 {
  top: 12px;
  width: 26px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] .b2 {
  opacity: 0;
}
.burger[aria-expanded="true"] .b3 {
  top: 12px;
  width: 26px;
  transform: rotate(-45deg);
}

/* ============================================================
   5) MOBILE NAV (Slide-Down Drawer)
   ============================================================ */

.nav-mobile {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  top: var(--header-height);
  padding: 32px clamp(1.2rem, 6vw, 3rem);
  background: rgba(0, 0, 0, 0.886) !important;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border-radius: 32px;
  transform: translateY(-18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  box-shadow: 0 18px 55px rgba(0,0,0,0.65), inset 0 0 22px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.16);
}

.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-mobile a {
  color: var(--ink-1);
  font-size: calc(var(--fs-body) * 1.05);
  padding: 10px 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: .9;
  transition: opacity .25s ease;
}

.nav-mobile a:hover {
  opacity: 1;
}

.header-cta-mobile {
  margin-top: 12px;
  padding: 12px 0;
  background: var(--brand);
  color: #000;
  border-radius: 18px;
  text-align: center;
  font-weight: 600;
  font-size: calc(var(--fs-body) * 0.95);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* ============================================================
   6) BREAKPOINTS (FCH Vorgaben)
   ============================================================ */
@media (max-width: 480px) {

  /* Effektive Headerhöhe */
  :root {
    --header-height: 58px;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    height: var(--header-height);
    align-items: center;
  }
}
/* 0–480px — Mobile Portrait */
@media (max-width: 480px) {
  .nav-desktop,
  .header-cta {
    display: none !important;
  }

  .burger {
    display: block;
    margin-right: 0;
    position: absolute;
    right: 16px;
  }

  .header-logo img {
    height: 34px;
  }
}

/* 480–768px — Mobile Landscape + Small Tablets */
@media (min-width: 480px) and (max-width: 768px) {
  .nav-desktop,
  .header-cta {
    display: none !important;
  }

  .burger {
    display: block;
    margin-right: 0;
    position: absolute;
    right: 16px;
  }
}

/* 768–1024px — Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav-desktop {
    display: none !important;
  }

  .header-cta {
    display: none !important;
  }

  .burger {
    display: block;
    margin-right: 0;
    position: absolute;
    right: 16px;
  }
}

/* 1024–1440px — Small/Desktop Standard */
@media (min-width: 1024px) and (max-width: 1440px) {
  /* Desktop Layout aktiv */
  .burger {
    display: none;
  }
}

/* 1440+ — Big Desktop / 2K / 4K */
@media (min-width: 1440px) {
  .nav-desktop ul {
    gap: clamp(2rem, 2.5vw, 4rem);
  }

  .header-cta {
    padding: 12px 32px;
  }
}



/* ============================================================
   MOBILE EXTRA-DROPDOWN (0–768px)
   ============================================================ */

@media (max-width: 768px) {

  /* ============================
     MOBILE BASE HIDES
  ============================ */
  .nav-desktop,
  .header-cta {
    display: none !important;
  }

  .burger {
    display: block;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    position: absolute;
    right: 16px;
  }

  .header-logo img {
    height: 34px;
  }


  /* ============================================================
     MOBILE SUBMENU — CLEAN REBUILD
     (Ersetzt den alten Müll vollständig)
  ============================================================ */

  /* Wrapper für den gesamten Listeneintrag */
  .mobile-has-sub {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* Kopfbereich: Link + Toggle */
  .mobile-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
  }

  /* Hauptlink (öffnet die Seite) */
  .mobile-main-link {
    color: var(--ink-1);
    font-size: calc(var(--fs-body) * 1.05);
    text-decoration: none;
  }

  /* Arrow / Toggle Button */
  .mobile-sub-toggle {
    background: none;
    border: none;
    color: var(--ink-1);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform .25s ease;
  }

  .mobile-sub-toggle .chevron {
    display: inline-block;
    transform: rotate(0deg);
    transition: transform .25s ease;
  }

  .mobile-sub-toggle[aria-expanded="true"] .chevron {
    transform: rotate(90deg);
  }

  /* ============================
     SUBMENU (standard → hidden)
  ============================ */
  .mobile-submenu {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding-left: 1rem;
    transition: max-height .35s ease;
  }

  /* sichtbar */
  .mobile-submenu.open {
    max-height: 400px;
  }

  /* Submenu Links */
  .mobile-submenu a {
    color: var(--ink-2);
    font-size: .92rem;
    text-decoration: none;
    line-height: 1.4;
    padding: 2px 0;
  }

  /* ============================
     Desktop-Bilder im mobilen Menü verstecken
  ============================ */
  .nav-dropdown-image {
    display: none !important;
  }
}




/* ============================================================
   Header children global vertical centering
   ============================================================ */
.site-header .header-logo,
.site-header .nav-desktop,
.site-header .header-cta {
  display: flex;
  align-items: center;
}





/* ============================================================
   NAV DROPDOWN — CLEAN REBUILD (1000px, aligned to nav)
   ============================================================ */

.nav-dropdown {
  position: absolute;
  top: 100%;

  /* Dropdown nun NICHT mehr full-width */
  width: 1000px;

  /* nach rechts verschoben → bündig unter den Header-Buttons */
  left: clamp(15rem, 25vw, 25rem);

  /* Layout */
  padding: 2.4rem 2rem;

  /* Background */
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(18px);

  /* Border-Radius unten */
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border: 1px solid #545454;

  /* Hidden default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;

  z-index: 999;
}

/* Show dropdown */
.nav-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* WRAPPER – jetzt 1000px statt 1400px */
.nav-dropdown-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.4rem;

  width: 100%;
  max-width: 1000px;
  margin-inline: auto;

  /* kleiner Innenabstand */
  padding-inline: 0.6rem;
}

/* ============================================================
   LEFT SIDE — BUTTON LIST (FINAL VERSION)
   ============================================================ */

.nav-dropdown-links {
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ITEM WRAPPER */
.dd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1.2rem 1.6rem;

  text-decoration: none;
  cursor: pointer;

  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

/* HOVER-EFFEKT */
.dd-item:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* TEXTBLOCK (LINKSBÜNDIG, UNTEREINANDER) */
.dd-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  flex: 1;              /* damit der Textblock die linke Seite füllt */
  min-width: 0;         /* verhindert Umbruchs-Bugs */
}

/* TITEL */
.dd-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.25;
  white-space: nowrap;  /* verhindert unerwünschte Zeilenumbrüche */
}

/* SUBTEXT */
.dd-sub {
  font-size: .88rem;
  color: var(--ink-2);
  opacity: .8;
  margin-top: .25rem;
  line-height: 1.35;
  text-align: left;
}

/* ARROW RECHTS */
.dd-arrow {
  font-size: 1.4rem;
  color: var(--ink-2);
  opacity: .7;
  flex-shrink: 0;       /* verhindert Zusammenquetschen */
  transition: transform .25s ease, opacity .25s ease;
}

.dd-item:hover .dd-arrow {
  transform: translateX(4px);
  opacity: 1;
}
/* ============================================================
   RIGHT SIDE — IMAGE PREVIEW
   ============================================================ */

.nav-dropdown-image {
  width: 45%;       /* etwas näher dran */
  display: flex;
  justify-content: flex-end;
  padding-left: 1rem;
}

.dd-preview {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/3;

  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

/* Image inside */
.dd-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity .3s ease;
}

/* Active preview image */
.dd-preview img.active {
  opacity: 1;
}