/* ═══════════════════════════════════════════════════════════
   CoachingArt – LAYOUT CSS
   Header · Mega Nav · Footer
   ═══════════════════════════════════════════════════════════ */

/* ── HEADER ──────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: var(--z-nav);
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(123,45,140,0.15), 0 2px 12px rgba(90,31,104,0.08);
  transition:
    background      0.4s ease,
    box-shadow      0.4s ease,
    height          0.4s ease;
}

/* Non-home pages: white text on purple hero */
#site-header.hero-dark .logo-img {
  max-height: 44px;
  max-width: 200px;
  object-fit: contain;
  transition: opacity 0.3s ease, max-height 0.4s ease;
}
#site-header.scrolled .logo-img { max-height: 36px; }

/* hero-dark logo now same as default - frosted glass header */
#site-header.hero-dark .logo-sub   { color: rgba(255,255,255,0.8); text-shadow: 0 1px 4px rgba(0,0,0,0.15); }
#site-header.hero-dark .nav-link   { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important; }
#site-header.hero-dark .nav-link:hover { background: rgba(255,255,255,0.15) !important; color: #fff !important; }
#site-header.hero-dark .nav-toggle { color: #fff; }

/* Once scrolled, both home and non-home look the same */
#site-header.scrolled.hero-dark .logo-title { color: var(--c-purple-dk); text-shadow: none; }
#site-header.scrolled.hero-dark .logo-sub   { color: var(--c-muted); text-shadow: none; }
#site-header.scrolled.hero-dark .nav-link   { color: var(--c-purple-dk) !important; text-shadow: none !important; }
#site-header.scrolled.hero-dark .nav-link:hover { background: rgba(123,45,140,0.08) !important; color: var(--c-purple) !important; }
#site-header.scrolled.hero-dark .nav-toggle { color: var(--c-purple-dk); }

/* Scrolled state: frosted glass */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(123,45,140,0.08),
    0 4px 24px rgba(90,31,104,0.10);
}

/* Subtle gradient underline on scroll */
#site-header.scrolled::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,45,140,0.25) 30%, rgba(164,75,184,0.3) 60%, transparent);
}

.header-inner {
  height: 100%;
  max-width: var(--w-xl);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo-title {
  font-family: var(--f-script);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-purple-dk);
  transition: color var(--t-base);
  text-shadow: none;
}
.logo-sub {
  font-family: var(--f-script);
  font-size: 1.4rem;
  color: var(--c-muted);
  transition: color var(--t-base);
  text-shadow: none;
}
#site-header.scrolled .logo-title { color: var(--c-text); text-shadow: none; }
#site-header.scrolled .logo-sub  { color: var(--c-muted); text-shadow: none; }

/* ── MEGA NAV ────────────────────────────────────────────── */
.main-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.87rem;
  font-weight: 700;
  color: #3d0a52;
  border-radius: var(--r-sm);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0;
  text-shadow: none;
  position: relative;
  background: transparent;
}
.nav-link .chevron {
  width: 11px;
  height: 11px;
  opacity: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-item:hover .chevron { transform: rotate(180deg); opacity: 1; }

/* Hover – transparent header */
.nav-link:hover {
  color: var(--c-purple) !important;
  background: rgba(123,45,140,0.1) !important;
  text-shadow: none !important;
}

/* Active – transparent header: just brighter text + subtle underline */
.nav-link.active {
  color: var(--c-purple);
  background: transparent;
  font-weight: 700;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--c-purple);
  border-radius: 2px;
}

/* ── SCROLLED STATE ── */
#site-header.scrolled .nav-link {
  color: var(--c-purple-dk);
  text-shadow: none;
  background: transparent;
}
#site-header.scrolled .nav-link:hover {
  color: var(--c-purple) !important;
  background: rgba(123,45,140,0.1) !important;
  text-shadow: none !important;
}
#site-header.scrolled .nav-link.active {
  color: var(--c-purple);
  background: transparent;
  font-weight: 600;
}
#site-header.scrolled .nav-link.active::after {
  background: var(--c-purple);
  opacity: 0.6;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  /* Frosted glass – passend zum scrolled-Header */
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 14px;
  border: 1px solid rgba(123,45,140,0.12);
  box-shadow:
    0 20px 48px rgba(90,31,104,0.16),
    0 4px 12px rgba(0,0,0,0.06);
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Pfeil oben */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.96);
  border-left: 1px solid rgba(123,45,140,0.12);
  border-top: 1px solid rgba(123,45,140,0.12);
  border-radius: 2px 0 0 0;
}
/* Invisible bridge – fills gap so mouse can travel down */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.nav-dropdown a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-purple);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.nav-dropdown a:hover {
  background: linear-gradient(135deg, rgba(123,45,140,0.08), rgba(164,75,184,0.06));
  color: var(--c-purple);
}
.nav-dropdown a:hover::before {
  opacity: 1;
}
/* Divider zwischen Items */
.nav-dropdown a + a {
  border-top: 1px solid rgba(123,45,140,0.06);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  position: relative;
  color: var(--c-purple-dk);
  padding: 0.4rem;
  transition: color var(--t-base);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
#site-header.scrolled .nav-toggle { color: var(--c-purple-dk); filter: none; }

/* Hamburger → X animation */
.nav-toggle .line-1, .nav-toggle .line-2, .nav-toggle .line-3 {
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-box: fill-box;
  transform-origin: center;
}
#site-header.nav-open .nav-toggle {
  background: rgba(123,45,140,0.15);
}
#site-header.nav-open .nav-toggle .line-1 {
  transform: translateY(6px) rotate(45deg);
}
#site-header.nav-open .nav-toggle .line-2 {
  opacity: 0;
  transform: scaleX(0);
}
#site-header.nav-open .nav-toggle .line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 1024px) {

  /* ── Toggle button ── */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(123,45,140,0.1);
    color: var(--c-purple-dk);
    flex-shrink: 0;
  }
  .nav-toggle svg { display: block; }

  /* ── Slide-in panel ── */
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: #fff;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.5rem 0 4rem;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 999;
    box-shadow: none;
  }
  .main-nav.open {
    transform: translateX(0);
    box-shadow: -4px 0 32px rgba(0,0,0,0.12);
  }

  /* ── Nav list ── */
  .nav-list {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0;
    margin: 0;
  }
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(123,45,140,0.08);
    position: static !important;
  }
  .nav-item:last-child { border-bottom: none; }

  /* ── Nav links – dark text ── */
  .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    color: var(--c-purple-dk) !important;
    background: transparent !important;
    text-shadow: none !important;
    white-space: normal;
  }
  .nav-link:hover  { background: rgba(123,45,140,0.05) !important; color: var(--c-purple) !important; }
  .nav-link.active { background: rgba(123,45,140,0.07) !important; color: var(--c-purple) !important; }
  .nav-link.active::after { display: none; }

  /* Chevron */
  .nav-link .chevron {
    width: 18px; height: 18px;
    flex-shrink: 0;
    opacity: 1;
    stroke: var(--c-purple);
    transition: transform 0.2s ease;
  }
  .nav-item.open > .nav-link .chevron { transform: rotate(180deg); }

  /* ── Dropdown: reset ALL desktop styles, show inline ── */
  .nav-dropdown {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(123,45,140,0.04) !important;
    border-left: 3px solid var(--c-purple) !important;
    margin: 0 0 0 1.4rem !important;
    padding: 0.2rem 0 !important;
    display: none;
    transition: none !important;
  }
  .nav-dropdown::after,
  .nav-dropdown::before { display: none !important; }

  .nav-item.open > .nav-dropdown { display: block; }

  .nav-dropdown a {
    display: block !important;
    padding: 0.7rem 1.2rem !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: var(--c-purple-dk) !important;
    background: transparent !important;
    text-shadow: none !important;
    border-top: 1px solid rgba(123,45,140,0.06);
  }
  .nav-dropdown a:first-child { border-top: none; }
  .nav-dropdown a:hover { background: rgba(123,45,140,0.07) !important; color: var(--c-purple) !important; }
  .nav-dropdown a::before { display: none !important; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
#site-footer {
  background: var(--c-purple-dk);
  color: rgba(255,255,255,0.85);
  padding: 5rem 2rem 0;
  position: relative;
  overflow: hidden;
}
#site-footer::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
#site-footer::after {
  content: '';
  position: absolute;
  bottom: 60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(164,75,184,0.08);
  pointer-events: none;
}

.footer-grid {
  max-width: var(--w-lg);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.footer-heading {
  font-family: var(--f-script);
  font-size: 1.7rem;
  color: var(--c-white);
  margin-bottom: 1.2rem;
}
.footer-links { margin-bottom: 1.5rem; }
.footer-links li + li { margin-top: 0.4rem; }
.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity var(--t-fast);
}
.footer-links a:hover { opacity: 1; text-decoration: underline; }

address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 2;
  opacity: 0.85;
}
address a { border-bottom: 1px solid rgba(255,255,255,0.3); transition: opacity var(--t-fast); }
address a:hover { opacity: 1; }

/* Footer badges – eigene zentrierte Zeile */
.footer-badges-row {
  max-width: var(--w-lg);
  margin: 0 auto;
  padding: 2rem clamp(1rem,3vw,2rem) 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  text-align: center;
}
.f-badge-link {
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.f-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.f-badge {
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  padding: 0.3rem 0;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.f-badge img { display: block; margin: 0 auto; }
.f-badge .name { font-weight: 700; font-size: 1.1rem; color: #6aaa00; }
.f-badge .stars { color: #f5a623; font-size: 0.9rem; letter-spacing: 2px; }

.footer-copy {
  max-width: var(--w-lg);
  margin: 0 auto;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.6;
  position: relative;
  z-index: 1;
}
.footer-copy a { border-bottom: 1px solid rgba(255,255,255,0.3); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-copy { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* Responsive video */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
}
.video-wrap iframe,
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}