/* ==========================================================================
   Superior Gym – base.css
   Tokens, reset, typography, layout utilities, buttons, chips, tags,
   shared form-field primitives, module/key-value table, header (+ mobile
   menu), hero (+ jumpbar), section base, footer.

   Ported verbatim (names, values) from the binding design reference:
   superior-gym-handoff/reference/onepager-v1.html
   Reference widths: 390px (mobile), 1440px (desktop).
   Breakpoints: 1024px (desktop), 768px (intermediate, used only by
   section-specific CSS in schedule.css / pricing.css / form.css).

   Rules exclusive to one of Trainingsplan / Preise / Kontakt live in
   css/schedule.css / css/pricing.css / css/form.css instead.
   ========================================================================== */

/* ---------- Tokens (superior-gym-styleguide.md §2, reference :root) ---------- */
:root {
  --bg: #0A0C0F;
  --surface-1: #11151A;
  --surface-2: #181D24;
  --surface-3: #212730;
  --frame: #151A20;
  --widget-inner: #F3F5F7;

  --border: #2B323C;
  --border-strong: #3D4652;
  --border-accent: #FF5A5F;

  --text: #FFFFFF;
  --text-2: #AAB3BF;
  --text-3: #7F8995;

  --red: #D91E26;
  --red-hover: #B3161D;
  --red-text: #FF5A5F;
  --red-tint: #2B1014;

  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 4px;
  --radius-sm: 2px;

  --gutter: 16px;
  --section-y: 56px;
  --header-h: 64px;

  color-scheme: dark;
}
@media (min-width: 1024px) {
  :root { --gutter: 80px; --section-y: 112px; --header-h: 84px; }
}

/* ---------- Basis (reset/body) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) {
  body { font-size: 18px; line-height: 1.6; }
}
img { display: block; max-width: 100%; }
a { color: var(--red-text); }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 9px 16px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 150ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Typo ---------- */
.label { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 1.4; letter-spacing: .02em; text-transform: uppercase; color: var(--red-text); margin: 0; }
.label--muted { color: var(--text-3); }
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; margin: 0; }
.h1 { font-size: 58px; line-height: .9; }
.h2 { font-size: 48px; line-height: .9; }
.h3 { font-size: 30px; line-height: 1; }
.lead { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.55; max-width: 560px; }
.meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; text-transform: uppercase; color: var(--text-3); }
@media (min-width: 1024px) {
  .label { font-size: 13px; }
  .h1 { font-size: 100px; line-height: .88; }
  .h2 { font-size: 78px; }
  .h3 { font-size: 36px; }
  .lead { font-size: 18px; line-height: 1.6; }
  .meta { font-size: 12px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: var(--radius); font-family: var(--font-body); font-size: 17px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); color: #fff; }
.btn--secondary { background: transparent; border-color: var(--border-strong); color: var(--text); font-weight: 600; font-size: 16px; }
.btn--secondary:hover { border-color: var(--text); color: var(--text); }
.btn--sm { height: 44px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn svg { flex-shrink: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }

/* ---------- Chips (Filter, Anliegen) – shared by Trainingsplan + Kontakt ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--border); background: transparent; color: var(--text-2); font-size: 15px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"], .chip-radio input:checked + .chip { background: var(--red-tint); border-color: var(--border-accent); color: var(--text); }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio input:focus-visible + .chip { outline: 2px solid var(--red-text); outline-offset: 2px; }
@media (min-width: 1024px) { .chips { gap: 8px; } }

/* ---------- Tags (Kinder/Frauen) – shared primitive ---------- */
.tag { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 10px; line-height: 1.3; white-space: nowrap; }
.tag--kinder { background: var(--surface-3); color: var(--text); }
.tag--frauen { border: 1px solid var(--border-accent); color: var(--red-text); }

/* ---------- Form field base (shared primitive, used by Kontakt) ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 0; }
.field > label[for] { display: block; padding: 12px 0; margin: -12px 0; }
.field legend { margin-bottom: 8px; }
.req { color: var(--red-text); }
.hint { font-weight: 400; color: var(--text-3); }
.input { height: 52px; width: 100%; padding: 0 14px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 16px; color: var(--text); }
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: #566070; }
.input:focus { outline: none; border-color: var(--red-text); box-shadow: 0 0 0 1px var(--red-text); }
textarea.input { height: auto; min-height: 120px; padding: 14px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23AAB3BF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field--error .input { border-color: var(--red-text); }
.field__error { display: none; align-items: center; gap: 6px; font-size: 13px; color: var(--red-text); }
.field--error .field__error { display: flex; }

/* ---------- Module + key-value table – shared by Kontakt + Footer ---------- */
.module { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); }
.kv { display: grid; grid-template-columns: 96px minmax(0,1fr); border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: 0; }
.kv dt { padding: 14px 12px 14px 16px; border-right: 1px solid var(--border); }
.kv dd { margin: 0; padding: 12px 16px; font-size: 15px; line-height: 1.45; display: flex; align-items: center; }
/* dd cells that wrap a link trade some of their own vertical padding for
   height on the link itself, so the link's own box (the real tap target)
   reaches 44px while the row's total height (padding + link) is unchanged
   from a plain dd (12+24+12=48 either way) -- no visual change. */
.kv dd:has(> a) { padding-top: 2px; padding-bottom: 2px; }
.kv dd a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; }
.kv dd a:hover { color: var(--red-text); }
@media (min-width: 1024px) { .kv { grid-template-columns: 112px minmax(0,1fr); } }

/* ==========================================================================
   Header (+ mobile menu)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--header-h); padding-left: 12px; padding-right: 8px; }
.site-header__logo { padding: 3px 0; margin: -3px 0; }
.site-header__logo img { height: 38px; width: auto; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-phone { display: none; }
.menu-toggle { background: var(--surface-1); }
@media (min-width: 1024px) {
  .site-header__inner { padding-left: var(--gutter); padding-right: var(--gutter); gap: 32px; }
  .site-header__logo img { height: 54px; }
  .main-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 40px; }
  .main-nav a { display: flex; align-items: center; height: 44px; padding: 0 14px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; border-radius: var(--radius); }
  .main-nav a:hover { background: var(--surface-1); }
  .header-actions { gap: 10px; }
  .header-phone { display: inline-flex; width: auto; padding: 0 14px; gap: 10px; font-family: var(--font-mono); font-size: 14px; }
  .header-phone-icon { display: none; }
  .menu-toggle { display: none; }
}
/* Mobiles Menü */
.mobile-menu { display: none; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49; background: var(--bg); padding: 8px 16px 32px; overflow: auto; }
.mobile-menu.is-open { display: block; }
.mobile-menu a.mobile-menu__link { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 40px; text-transform: uppercase; }
.mobile-menu a.mobile-menu__link span { font-family: var(--font-mono); font-size: 12px; color: var(--red-text); }
.mobile-menu__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0 12px; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ==========================================================================
   Hero (+ jumpbar)
   ========================================================================== */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 640px; background: var(--surface-2); overflow: hidden; }
.hero__media { position: absolute; inset: 0; background: var(--surface-2); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 15, .35); pointer-events: none; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,15,.92) 0%, rgba(10,12,15,.6) 45%, rgba(10,12,15,0) 75%); }
.hero__inner { position: relative; padding-top: 120px; padding-bottom: 16px; }
.hero__panel { display: flex; flex-direction: column; gap: 16px; }
.hero__buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.hero__benefits { margin-top: 4px; }
.hero__toggle { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: rgba(10,12,15,.6); color: var(--text); cursor: pointer; }
.hero__toggle:hover { border-color: var(--border-strong); color: var(--red-text); }
.hero__toggle[hidden] { display: none; }
/* The `[hidden]` UA default (display:none) isn't applied to SVG-namespace
   elements in every engine, so the icon-pause/icon-play swap needs an
   explicit rule here too, or both icons render at once. */
.hero__toggle svg[hidden] { display: none; }
.jumpbar { position: relative; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); background: var(--surface-1); }
.jumpbar a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.jumpbar a:last-child { border-bottom: 0; }
.jumpbar__num { font-family: var(--font-mono); font-size: 12px; color: var(--red-text); }
.jumpbar__title { font-size: 16px; font-weight: 600; flex: 1; }
.jumpbar__sub { display: none; }
.jumpbar svg { color: var(--text-3); }
@media (min-width: 1024px) {
  .hero { min-height: 780px; }
  .hero__scrim { background: linear-gradient(to right, rgba(10,12,15,.55) 0%, rgba(10,12,15,.2) 55%, rgba(10,12,15,0) 100%); }
  .hero__inner { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; padding-top: 160px; padding-bottom: 40px; }
  .hero__panel { grid-column: span 7; gap: 20px; background: rgba(10,12,15,.82); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
  .hero__buttons { flex-direction: row; gap: 12px; }
  .hero__toggle { right: var(--gutter); bottom: 24px; }
  .jumpbar { max-width: calc(1440px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); margin: 0 auto; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .jumpbar a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 120px; padding: 20px 24px; border-bottom: 0; border-right: 1px solid var(--border); }
  .jumpbar a:last-child { border-right: 0; }
  .jumpbar__head { display: flex; justify-content: space-between; width: 100%; }
  .jumpbar__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; flex: none; }
  .jumpbar__sub { display: block; font-size: 14px; color: var(--text-2); }
  .jumpbar a:hover { background: var(--surface-2); }
}
@media (max-width: 1023px) { .jumpbar__head { display: contents; } .jumpbar__num { order: 1; } .jumpbar__title { order: 2; } .jumpbar svg { order: 3; } }

/* ==========================================================================
   Section base
   ========================================================================== */
.section { padding: var(--section-y) 0; border-top: 1px solid var(--border); }
.section--alt { background: var(--surface-1); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
@media (min-width: 1024px) {
  .section-head { margin-bottom: 40px; }
  .section-head--split { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; align-items: end; }
  .section-head--split > .section-head__main { grid-column: span 7; display: flex; flex-direction: column; gap: 14px; }
  .section-head--split > .section-head__side { grid-column: 9 / span 4; display: flex; justify-content: flex-end; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--surface-1); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 150px; height: auto; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.footer-links a:hover { color: var(--red-text); }
.footer-bottom { display: flex; flex-direction: column-reverse; gap: 8px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font-size: 14px; text-decoration: none; }
.footer-legal a:hover { color: var(--text); }
@media (min-width: 1024px) {
  .site-footer { padding: 80px 0 32px; }
  .footer-grid { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; align-items: start; }
  .footer-brand { grid-column: span 3; }
  .footer-brand img { width: 190px; }
  .footer-contact { grid-column: span 5; }
  .footer-links { grid-column: 10 / span 3; align-items: flex-start; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; margin-top: 56px; }
}
