/* Community Fitness Blue Pit – Website
   Tokens laut Styleguide „Blue Pit“ (Stand 12.11.2026) */

@font-face { font-family: "Anton"; src: url("../fonts/anton-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff") format("woff"); font-weight: 650 700; font-display: swap; }

:root {
  --brand: #1b3d8d;
  --brand-hover: #2149ab;
  --brand-deep: #0a1b42;
  --accent: #2f6bff;
  --accent-on-dark: #7d9dff;
  --surface: #ffffff;
  --surface-alt: #f4f6fb;
  --surface-tint: #e3e9f7;
  --beton: #ecebe7;        /* warmes Betongrau für helle Abschnitte */
  --beton-soft: #f5f4f1;   /* helle Kästen auf Weiß */
  --ink: #15171c;
  --ink-muted: #5a6378;
  --ink-on-dark: rgba(255, 255, 255, 0.84);
  --line: #d5dae6;
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --photo-tint: #2f5cc6;
  --whatsapp: #25d366;

  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif-condensed, sans-serif;
  --font-text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-field: 12px;
  --radius-button: 14px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-panel: 0 30px 80px -20px rgba(3, 7, 30, 0.6), 0 2px 6px rgba(3, 7, 30, 0.25);
  --shadow-card: 0 1px 2px rgba(10, 27, 66, 0.06), 0 10px 28px -14px rgba(10, 27, 66, 0.28);
  --shadow-float: 0 10px 28px -6px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --wrap: 1200px;
  --section-y: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-text);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--accent-on-dark); }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section-y); }
.dark { background: var(--brand-deep); color: #fff; }
.alt { background: var(--beton); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typografie */
.h-hero, .h-1, .h-2, .h-3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 0; text-wrap: balance; }
.h-hero { font-size: clamp(3.2rem, 9vw, 7.6rem); line-height: 0.95; }
.h-1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1; }
.h-2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; }
.h-3 { font-size: 1.55rem; line-height: 1.05; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; margin: 0; max-width: 40rem; }
.muted { color: var(--ink-muted); }
.dark .muted, .dark .lead { color: var(--ink-on-dark); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 52rem; }
.section-head .h-1 { color: var(--brand); }
.dark .section-head .h-1 { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border: 0; border-radius: var(--radius-button);
  font: 400 1.2rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 100ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--surface-tint); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-soft { background: var(--surface-tint); color: var(--brand); font: 700 1rem/1 var(--font-text); text-transform: none; letter-spacing: 0; min-height: 48px; }
.btn-soft:hover { background: #d6dff3; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.dark .text-link { color: #fff; }

/* Kopfleiste */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(10, 27, 66, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 200ms ease;
}
.bar.is-solid { background: rgba(10, 27, 66, 0.92); }
.bar__inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.bar__logo img { width: 150px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 10px 13px; border-radius: var(--radius-pill); transition: background-color 150ms ease; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }
.nav .nav__cta, .nav .nav__cta[aria-current="page"] { background: #fff; color: var(--brand); margin-left: 6px; }
.nav .nav__cta:hover { background: var(--surface-tint); }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .bar__logo img { width: 126px; }
  .nav { display: none; }
  .bar.is-open .nav {
    display: grid; position: absolute; left: 0; right: 0; top: 100%;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)) 20px;
    background: var(--brand-deep); border-bottom: 1px solid var(--line-on-dark);
  }
  .bar.is-open .nav a { font-size: 1.15rem; padding: 14px 8px; border-radius: 10px; }
  .bar.is-open .nav .nav__cta { margin: 8px 0 0; text-align: center; }
  .bar__actions { display: flex; align-items: center; gap: 8px; }
  .bar__quick { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: var(--radius-pill); background: #fff; color: var(--brand); font-weight: 700; text-decoration: none; font-size: 0.95rem; }
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; }
}
@media (min-width: 1021px) { .bar__quick { display: none; } }

/* WhatsApp-Button */
.wa {
  position: fixed; z-index: 35;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; height: 58px; border-radius: var(--radius-pill);
  background: var(--whatsapp); color: #0a1b42; text-decoration: none; box-shadow: var(--shadow-float);
  transition: transform 100ms ease-out, opacity 240ms ease, visibility 240ms; -webkit-tap-highlight-color: transparent;
}
.wa:active { transform: scale(0.94); }
.wa__icon { width: 58px; height: 58px; padding: 13px; flex: none; }
.wa__bubble { fill: none; stroke: #0a1b42; stroke-width: 2.2; stroke-linejoin: round; }
.wa__phone { fill: #0a1b42; }
.wa__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; transition: max-width 320ms var(--ease-out), padding 320ms var(--ease-out); }
@media (hover: hover) and (min-width: 900px) {
  .wa:hover .wa__label, .wa:focus-visible .wa__label { max-width: 220px; padding-right: 22px; }
}

/* Auf dem Handy erst nach dem Hero einblenden, damit er keinen Text verdeckt */
@media (max-width: 760px) {
  .js-wa-hero .wa:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(12px); }
}

/* FAQ (Startseite, Probetraining, Network) */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); box-shadow: var(--shadow-card); border-radius: 14px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 18px; color: var(--ink-muted); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* Fußzeile */
.foot { background: #06122e; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot__logo { width: 170px; margin-bottom: 16px; }
.foot h2 { font: 700 0.95rem/1.3 var(--font-text); color: #fff; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot address { font-style: normal; line-height: 1.7; }
.foot__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-on-dark); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--brand-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
