/* ============================================================
   KILCHBERG ATHLETIK & PHYSIO — Global Stylesheet
   ============================================================ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --midnight:    #0D1B2A;
  --midnight-2:  #122030;
  --midnight-3:  #0F2535;
  --cream:       #F5F2EC;
  --white:       #FFFFFF;
  --orange:      #E8622A;
  --orange-dim:  rgba(232,98,42,0.15);
  --teal:        #2A7B8C;
  --teal-light:  #3A9BAF;
  --text-dark:   #0D1B2A;
  --text-mid:    #4A5568;
  --text-light:  #8A9BB0;
  --border:      rgba(13,27,42,0.09);
  --border-dark: rgba(255,255,255,0.08);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --r:  3px;
  --rl: 4px;

  --nav-h: 60px;
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; }

/* ─── TYPOGRAPHY UTILITIES ───────────────────────────────── */
.display {
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: 0.01em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--orange);
}
.eyebrow--light { color: rgba(232,98,42,0.75); }
.eyebrow--light::before { background: rgba(232,98,42,0.75); }
.eyebrow--teal { color: var(--teal-light); }
.eyebrow--teal::before { background: var(--teal-light); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--r);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96); }
.btn--orange  { background: var(--orange);  color: var(--white); }
.btn--white   { background: var(--white);   color: var(--orange); }
.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.5);
  padding: 14px 0;
}
.btn--ghost:active { color: var(--white); }
/* Sekundärer CTA mit sichtbarer Umrandung (Ghost-Stil) */
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  transition: background 0.2s, transform 0.15s;
}
.btn--outline:hover { background: rgba(255,255,255,0.15); }

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Kräftige dunkle Leiste von Anfang an — Logo/Burger/Text immer gut lesbar,
     unabhängig vom Hintergrund. Beim Scrollen wechselt sie auf hell (.scrolled). */
  background: linear-gradient(to bottom, rgba(13,27,42,0.92), rgba(13,27,42,0.78));
  transition: background 0.35s, box-shadow 0.35s;
}
.nav.scrolled {
  background: rgba(245,242,236,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__left { display: flex; align-items: center; gap: 14px; }

.nav__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
}
.nav.scrolled .nav__back { color: var(--text-light); }

.nav__sep {
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.15);
  transition: background 0.35s;
}
.nav.scrolled .nav__sep { background: var(--border); }

.nav__logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
  transition: color 0.35s;
  white-space: nowrap;
}
.nav.scrolled .nav__logo { color: var(--midnight); }

/* Burger */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: background 0.35s, transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav.scrolled .nav__burger span { background: var(--midnight); }
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 199;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 20px 32px;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  border-bottom: 1px solid var(--border-dark);
}
.nav-drawer.open { transform: translateY(0); }

.nav-drawer__section {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  padding: 18px 0 6px;
}
.nav-drawer__section:first-child { padding-top: 4px; }

.nav-drawer a {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a.active { color: var(--orange); font-weight: 600; }
.nav-drawer a:hover  { color: rgba(255,255,255,0.85); }

/* ─── BREADCRUMB (alle Seiten ausser Startseite) ────────────── */
.breadcrumb {
  background: var(--midnight);
  /* obere Polsterung hält die fixe Nav (var(--nav-h)) frei */
  padding: calc(var(--nav-h) + 18px) 24px 14px;
}
.breadcrumb ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.6);
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--orange);
  margin: 0 8px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li[aria-current="page"] { color: rgba(255,255,255,0.6); }

/* ─── FREE-TRIAL HINT (klickbarer Hinweisblock) ────────────── */
.free-trial-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border-left: 3px solid #e85d04;
  border-radius: var(--r);
  font-size: 13px;
  line-height: 1.5;
}
.free-trial-hint span { color: var(--text-mid); font-weight: 300; }
.free-trial-hint a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.free-trial-hint a:hover { text-decoration: underline; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--midnight);
  padding: 48px 24px 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 4px;
}
.footer__sub {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-bottom: 32px;
}
.footer__nav a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 3px 0;
  transition: color 0.2s;
}
.footer__nav a:hover { color: rgba(255,255,255,0.7); }
.footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 22px;
}
.footer__meta {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.06em;
  line-height: 1.85;
}
.footer__meta a { text-decoration: none; color: inherit; }

/* ─── SECTION UTILITY CLASSES ─────────────────────────────── */
.sec           { padding: 72px 24px 64px; }
.sec--white    { background: var(--white); padding: 72px 24px 64px; }
.sec--dark     { background: var(--midnight); padding: 72px 24px 64px; }
.sec--dark-2   { background: var(--midnight-2); padding: 72px 24px 64px; }
.sec--dark-3   { background: var(--midnight-3); padding: 72px 24px 64px; }

.sec__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.sec__label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--orange);
}
.sec__label--light  { color: rgba(232,98,42,0.75); }
.sec__label--light::before { background: rgba(232,98,42,0.75); }
.sec__label--teal   { color: var(--teal-light); }
.sec__label--teal::before  { background: var(--teal-light); }

.sec__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 11vw, 68px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.sec__title--white { color: var(--white); }

.sec__body {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 380px;
}
.sec__body--dim { color: rgba(255,255,255,0.42); }

/* ─── CTA BLOCK ───────────────────────────────────────────── */
.cta-block {
  background: var(--orange);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: 'KA';
  font-family: var(--font-display);
  font-size: 240px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.06);
  pointer-events: none;
  line-height: 1;
}
.cta-block__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.cta-block__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 15vw, 88px);
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 18px;
}
.cta-block__body {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 300px;
  margin: 0 auto 36px;
}
.cta-block__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}
.cta-block__contacts a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.cta-block__contacts span {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
}

/* ─── GRID UTILS ──────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ─── HERO SHARED ─────────────────────────────────────────── */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ─── PRICE ROW ───────────────────────────────────────────── */
.price-list { display: flex; flex-direction: column; gap: 8px; margin-top: 36px; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--cream);
}
.price-row--featured { background: var(--midnight); border-color: transparent; }

.price-row__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 3px;
}
.price-row--featured .price-row__label { color: rgba(232,98,42,0.7); }

.price-row__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--midnight);
}
.price-row--featured .price-row__name { color: var(--white); }

.price-row__sub {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-light);
  margin-top: 2px;
}
.price-row--featured .price-row__sub { color: rgba(255,255,255,0.3); }

.price-row__amount {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.01em;
  color: var(--midnight);
  text-align: right;
  flex-shrink: 0;
}
.price-row--featured .price-row__amount { color: var(--white); }

.price-row__unit {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-light);
  text-align: right;
}
.price-row--featured .price-row__unit { color: rgba(255,255,255,0.25); }

/* ─── NETLIFY CONTACT FORM ────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  color: var(--white);
  padding: 13px 16px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(232,98,42,0.5);
}
.form-field select option { background: var(--midnight); color: var(--white); }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-success {
  display: none;
  text-align: center;
  padding: 28px 0;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.form-success strong { display: block; font-family: var(--font-display); font-size: 36px; color: var(--white); margin-bottom: 8px; }

/* ─── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.v { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ─── ACCESSIBILITY ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--orange);
  color: var(--white);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── IMAGE PLACEHOLDER ───────────────────────────────────── */
.img-placeholder {
  background: #1E3040;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: attr(data-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
}
.img-placeholder svg {
  width: 36px; height: 36px;
  color: rgba(255,255,255,0.12);
}

/* ─── VIDEO / IMAGE HERO — MOBILE SWITCH ─────────────────── */

/* Mobile poster image — fills same position as video */
.hero-mobile-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.42);
  z-index: 0;
  /* Hidden on desktop — video shows instead */
  display: none;
}

/* Desktop video — shown on desktop, hidden on mobile */
.hero-desktop-video {
  /* inherits position/size from hero-video__video or hero__video-bg */
}

/* Video hero plays on all viewports (autoplay muted playsinline).
   The <video>'s own poster attribute covers the load gap, so the
   separate mobile poster image is no longer needed. */
.hero-mobile-poster { display: none !important; }
.hero-desktop-video { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* ─── LOGO ────────────────────────────────────────────────── */
/* Nav: Icon-Logo — grösser */
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1); /* weiss am Seitenkopf (über dunklem Scrim/Hero) */
}
.nav.scrolled .nav-logo-img { filter: invert(1) brightness(0); }
.nav--physio .nav-logo-img,
.nav--physio.scrolled .nav-logo-img { filter: none; }

/* Footer: Wortmarke — filter erzwingt weiss */
.footer__logo-img {
  height: 32px;
  width: auto;
  max-width: 260px;
  display: block;
  margin-bottom: 10px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Split-Startseite logo-bar */
.logo-bar__name {
  height: 44px;
  width: auto;
  opacity: 0.65;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ─── LANGUAGE SWITCHER — Globe + Dropdown ────────────────── */
/* ─── LANGUAGE SWITCHER — Flags only, always visible ─────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Hide old button + dropdown entirely */
.lang-switcher-btn  { display: none !important; }
.lang-dropdown      { display: none !important; }

/* Flag links — always visible, no dropdown */
.lang-flags {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-flag-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  transition: background 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.lang-flag-link:hover  { background: rgba(255,255,255,0.12); }
.lang-flag-link.active {
  background: rgba(255,255,255,0.15);
  outline: 1.5px solid rgba(255,255,255,0.3);
  outline-offset: -1px;
}
nav.scrolled .lang-flag-link:hover  { background: rgba(13,27,42,0.08); }
nav.scrolled .lang-flag-link.active { background: rgba(13,27,42,0.1); outline-color: rgba(13,27,42,0.2); }

/* Split/logo-bar variant */
.logo-bar .lang-flag-link:hover  { background: rgba(0,0,0,0.2); }
.logo-bar .lang-flag-link.active { background: rgba(0,0,0,0.25); outline-color: rgba(255,255,255,0.35); }

/* Hide legacy */
.lang-switch { display: none !important; }



