/* =====================================================================
   Fightzone Berlin — shared styles for every page
   Order: tokens · base · type · controls · header · stripes & photos ·
   page sections (home) · subpage parts · footer · motion
   ===================================================================== */

/* ---------- Tokens ---------- */

:root {
  /* Ground and ink */
  --paper: #FFFFFF;
  --stone: #E5E3E0;          /* Hellgrau: alternate light ground (prices, panels) */
  --ink: #363636;            /* Anthrazit */
  --ink-2: #5C5A57;          /* secondary text on light (5.4:1 on Hellgrau) */
  --ink-3: #706D69;          /* hints, placeholders */
  --rule: rgba(54, 54, 54, 0.14);
  --rule-strong: rgba(54, 54, 54, 0.32);

  /* Brand */
  --rust: #C0442A;           /* Rostrot: the one action colour */
  --rust-deep: #A5301B;      /* hover, links, rust text on light */
  --brick: #852817;          /* Dunkelrot: red ground under white text (9:1) */
  --rust-tint: #F2B6A6;      /* rust's readable stand-in on dark */
  --rust-wash: #F8E4DD;      /* Gi cells, placeholders */
  --oxblood: #852817;        /* Dunkelrot */
  --oxblood-tint: #F2D6CE;   /* small text on oxblood */
  --black: #363636;          /* Anthrazit: the dark ground */
  --night: #2B2B2B;          /* card ground on Anthrazit */
  --grey: #4A4A4A;
  --grey-2: #6A6866;
  --grey-wash: #E5E3E0;
  --sky: #A4D3E5;            /* Hellblau: No-Gi, cool accent */
  --sky-wash: #E2F0F6;       /* No-Gi cells */

  /* On dark */
  --on-dark: #FFFFFF;
  --on-dark-2: #D9D7D3;
  --rule-dark: rgba(255, 255, 255, 0.16);

  /* Belts (coaches only) */
  --belt-black: #0B0A09;
  --belt-bar-red: #C8102E;  /* rank bar on the black belt */
  --belt-brown: #6B4226;
  --belt-purple: #5B2A6E;
  --belt-blue: #1F4E8C;

  /* Type */
  --display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --t-label: 0.8125rem;      /* 13px, the smallest size on the site */
  --t-small: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.1875rem, 1.6vw, 1.375rem);
  --t-h3: clamp(1.25rem, 1.7vw, 1.5rem);
  --t-h2: clamp(2.25rem, 4.6vw, 4rem);
  --t-h1: clamp(2.75rem, 7vw, 6rem);

  /* Space: one scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 5.5vw, 120px);
  --max: 1200px;
  --pad: max(var(--gutter), (100% - var(--max)) / 2);
  --header-h: 72px;          /* .site-header min-height; sticky bars sit under it */
  --section: clamp(80px, 9vw, 128px);
  --head-gap: clamp(32px, 4vw, 56px);

  /* Motion */
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms; --m-image: 600ms; --m-image-out: 400ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
  accent-color: var(--rust);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 88px;
  -webkit-tap-highlight-color: rgba(192, 68, 42, 0.16);
  scrollbar-color: var(--grey-2) var(--stone);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--rust);
  overflow-x: clip;
}

::selection { background: var(--rust); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.on-dark :focus-visible, .ground-rust :focus-visible, .pcard--start :focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px;
  font-family: var(--display); font-weight: 600; text-decoration: none;
}
.skip:focus, .skip:hover { top: 12px; color: #fff; }

.num { font-variant-numeric: tabular-nums; }
a, button, summary, label, input, select, textarea { touch-action: manipulation; }
.btn, .chip, .day-tab { -webkit-tap-highlight-color: transparent; }
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Type ----------
   Headlines are sentence case. Uppercase only for buttons, nav and short labels. */

h1, h2, h3, h4 { margin: 0; font-family: var(--display); text-wrap: balance; }
h1, h2 { font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
h1 { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-size: var(--t-h2); }
h3 { font-weight: 600; font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-weight: 600; font-size: 1.125rem; line-height: 1.3; }

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }

/* Short uppercase label: tabs, table heads, filter names, footer heads */
.label {
  font-family: var(--display); font-weight: 600; font-size: var(--t-label);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Meta line under a heading, sentence case */
.meta { font-family: var(--display); font-weight: 500; font-size: var(--t-small); color: var(--rust-deep); }
.on-dark .meta { color: var(--rust-tint); }

.wordmark { font: inherit; letter-spacing: normal; }   /* FIGHTZONE in running text: same face as the paragraph */

/* Visible placeholder for facts the owner still has to fill in */
.todo {
  background: var(--rust-wash);
  outline: 1px dashed var(--rust-deep); outline-offset: 1px;
  padding: 0 4px; color: var(--ink);
}

/* ---------- Controls: three levels ----------
   1 primary button (rust)  2 secondary button (outline)  3 text link */

a { color: var(--rust-deep); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--ink); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--display); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease),
              border-color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--m-in) var(--ease); }
.btn-primary { background: var(--rust); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--rust-deep); color: #fff; } }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-secondary:hover { background: var(--ink); color: #fff; } }
.on-dark .btn-secondary, .ground-rust .btn-secondary { color: #fff; border-color: #fff; }
@media (hover: hover) and (pointer: fine) { .on-dark .btn-secondary:hover, .ground-rust .btn-secondary:hover { background: #fff; color: var(--black); } }
.btn-inverse { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-inverse:hover { background: var(--black); color: #fff; } }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); transition-duration: var(--m-in); }
  .btn:hover svg { transform: translateX(3px); }
  .btn:active { transform: translateY(1px) scale(.985); }
}

/* Text link with an arrow: sentence case, one underline */
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  transition: color var(--m-out) var(--ease), text-decoration-color var(--m-out) var(--ease);
}
.link svg { width: 16px; height: 16px; flex: none; transition: transform var(--m-in) var(--ease); }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--rust-deep); text-decoration-color: currentColor; } }
@media (hover: hover) and (pointer: fine) { .link:hover svg { transform: translateX(3px); } }
.on-dark .link, .ground-rust .link, .pcard--start .link { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
@media (hover: hover) and (pointer: fine) { .on-dark .link:hover, .ground-rust .link:hover, .pcard--start .link:hover { color: #fff; text-decoration-color: #fff; } }

/* Chips and tabs derive from the secondary button */
.chip {
  min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: var(--t-label); letter-spacing: 0.04em;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule-strong); cursor: pointer;
  transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease), border-color var(--m-out) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:active { transform: scale(.985); }
.sw { width: 10px; height: 10px; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding: 10px var(--pad);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.2) blur(14px); }
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 50px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); list-style: none; }
.nav-list > li > a, .nav-sub > summary {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
  font-family: var(--display); font-weight: 600; font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--m-out) var(--ease);
}
.nav-list > li > a:focus-visible::after { transform: scaleX(1); transform-origin: left; transition-duration: var(--m-in); }
@media (hover: hover) and (pointer: fine) { .nav-list > li > a:hover::after { transform: scaleX(1); transform-origin: left; transition-duration: var(--m-in); } }
.nav-list > li > a.is-current { color: var(--rust-deep); }
.nav-list > li > a.is-current::after { transform: scaleX(1); }
.nav-sub { position: relative; }
.nav-sub > summary { list-style: none; }
.nav-sub > summary::-webkit-details-marker { display: none; }
.nav-sub.is-current > summary { color: var(--rust-deep); }
@media (hover: hover) and (pointer: fine) { .nav-sub > summary:hover { color: var(--rust-deep); } }
.nav-sub > summary svg { width: 12px; height: 12px; transition: transform 250ms var(--ease); }
.nav-sub[open] > summary svg { transform: rotate(180deg); }
.nav-sub ul {
  position: absolute; top: calc(100% + 10px); left: -18px; min-width: 250px; list-style: none; padding: 8px 0;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 14px 30px -12px rgba(54, 54, 54, 0.28);
}
.nav-sub ul a { display: block; padding: 11px 18px; color: var(--ink); text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .nav-sub ul a:hover { background: var(--stone); color: var(--ink); } }
.nav-sub ul a[aria-current="page"] { color: var(--rust-deep); font-weight: 600; }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 0.75rem; }
.menu-toggle { display: none; }

@media (max-width: 1000px) {
  .nav { gap: 10px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -18px rgba(54, 54, 54, 0.3);
  }
  .nav-list > li { border-bottom: 1px solid var(--rule); }
  .nav-list > li > a, .nav-sub > summary { padding: 16px 0; width: 100%; font-size: 0.875rem; }
  .nav-list > li > a::after { display: none; }
  .nav-sub ul { position: static; border: 0; box-shadow: none; padding: 0 0 10px; }
  .nav-sub ul a { padding: 11px 14px; }
  .site-header.is-open .nav-list { display: flex; }
}
.header-cta { white-space: nowrap; }
@media (max-width: 420px) { .header-cta { padding: 0 12px; letter-spacing: 0.06em; } }
@media (max-width: 360px) { .header-cta .cta-more { display: none; } .site-header { gap: 12px; } }
.brand, .menu-toggle { flex: none; }

/* ---------- Stripe fields ---------- */

.stripes {
  background-color: var(--black);
  background-image: linear-gradient(90deg,
    var(--black) 0 16%, var(--rust) 16% 29%, var(--black) 29% 34%, var(--grey) 34% 42%,
    var(--black) 42% 57%, var(--oxblood) 57% 65%, var(--black) 65% 71%, var(--grey-2) 71% 74%, var(--black) 74% 100%);
}
.stripes--b {
  background-image: linear-gradient(90deg,
    var(--oxblood) 0 10%, var(--black) 10% 22%, var(--grey) 22% 30%, var(--black) 30% 38%,
    var(--rust) 38% 55%, var(--black) 55% 78%, var(--grey-2) 78% 83%, var(--black) 83% 100%);
}
.stripes--c {
  background-image: linear-gradient(90deg,
    var(--black) 0 8%, var(--grey) 8% 20%, var(--black) 20% 44%, var(--rust) 44% 52%, var(--oxblood) 52% 70%, var(--black) 70% 100%);
}
.stripes--kids {
  background-image: linear-gradient(90deg,
    var(--oxblood) 0 30%, var(--rust) 30% 46%, var(--oxblood) 46% 58%, var(--black) 58% 66%, var(--oxblood) 66% 100%);
}
.stripes--warm {
  background-image: linear-gradient(90deg,
    var(--oxblood) 0 14%, var(--rust) 14% 22%, var(--oxblood) 22% 48%, var(--black) 48% 54%, var(--oxblood) 54% 100%);
}

/* ---------- Photos (stand-ins until the gym's own photographs arrive) ---------- */

.photo { margin: 0; overflow: hidden; background: var(--grey); }
.photo img, .m-zoom img, .video-poster {
  display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08);
}

/* ---------- Sections ----------
   One rhythm: every section has the same padding; a section that
   follows one on the same ground starts a little closer. */

.section { position: relative; padding: var(--section) var(--pad); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5) var(--s-8);
  align-items: end; margin-bottom: var(--head-gap);
}
.section-head p { color: var(--ink-2); max-width: 46ch; }
.on-dark .section-head p { color: var(--on-dark-2); }
.section--follow { padding-top: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.on-dark { background: var(--black); color: var(--on-dark); }
.ground-stone { background: var(--stone); }
.ground-rust { background: var(--brick); color: #fff; }

/* ---------- Hero (home and subpages) ----------
   The photograph sits in the stripe field and crosses its bottom edge by
   40% of its own height, at every width. */

.hero { --fig-w: clamp(240px, 36vw, 540px); --fig-h: calc(var(--fig-w) * 1.024); position: relative; }
.hero-field {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(420px, 60vh, 600px);
  padding: var(--s-9) var(--pad) clamp(36px, 5vw, 64px);
  color: #fff;
}
.hero h1 { position: relative; z-index: 3; max-width: 8.6em; }
.hero-figure {
  position: absolute; z-index: 2; right: var(--pad); bottom: 0;
  width: var(--fig-w); aspect-ratio: 820 / 840; transform: translateY(40%);
}
.hero-figure img { object-position: 30% 60%; }
.hero-low {
  position: relative; z-index: 1;
  padding: clamp(28px, 4vw, 44px) calc(var(--pad) + var(--fig-w) + var(--s-7)) 0 var(--pad);
}
.hero-low p { font-size: var(--t-lead); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-6); }
.hero + .section { padding-top: calc(var(--section) + var(--s-5)); }

@media (max-width: 1100px) {
  .hero { --fig-w: clamp(220px, 36vw, 400px); }
  .hero-field { min-height: clamp(340px, 44vh, 460px); }
}
@media (max-width: 760px) {
  .hero { --fig-w: 58vw; }
  .hero-field { min-height: 0; padding-top: var(--s-7); padding-bottom: calc(var(--fig-h) * 0.6 + var(--s-5)); align-items: flex-start; }
  .hero-figure { right: var(--gutter); }
  .hero-low { padding: calc(var(--fig-h) * 0.4 + var(--s-5)) var(--gutter) 0; }
}

/* Subpage hero on the light stripes picture: dark headline */
.hero-field--light { background: var(--paper); color: var(--ink); }
/* The background picture is clipped by its own frame, so a hero photo can still cross the seam */
.hero-bg-wrap { position: absolute; inset: 0; overflow: hidden; }

/* Home hero: full-bleed collage behind the headline, no separate photo */
.hero--collage .hero-field {
  min-height: clamp(480px, 54vw, 820px); overflow: hidden;
  background: var(--paper); color: var(--ink);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; will-change: translate; }
.hero--collage .hero-field::before {
  /* Soft light wash behind the headline so it stays readable over the figures */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 78% 72% at 0% 100%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0) 100%);
}
.hero--collage h1 { max-width: 8.6em; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.02em; }
.hero--collage .hero-low { padding-right: var(--pad); }
@media (max-width: 760px) {
  /* Headline stays on the collage; the wash comes up from the bottom instead of the corner */
  .hero--collage .hero-field { align-items: flex-end; min-height: clamp(440px, 118vw, 620px); padding-top: var(--s-7); padding-bottom: var(--s-6); }
  .hero-bg { object-position: 62% 30%; }
  .hero--collage .hero-field::before {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 34%, rgba(255, 255, 255, 0) 70%);
  }
  .hero--collage .hero-low { padding: var(--s-6) var(--gutter) 0; }
}

/* Subpage hero: same parts, smaller headline */
.hero--sub h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); max-width: 10em; }
/* Phones: one-word page titles (MITGLIEDSCHAFT, BILDNACHWEISE) fit the line at 320px */
@media (max-width: 420px) { .hero--sub h1 { font-size: min(2.5rem, 10.2vw); } }
.hero--sub .hero-field { min-height: clamp(320px, 44vh, 440px); }
.hero--sub.no-photo .hero-field { min-height: clamp(280px, 38vh, 380px); }
.hero--sub.no-photo .hero-low { padding-right: var(--pad); }
@media (max-width: 760px) {
  .hero--sub.no-photo .hero-field { padding-bottom: var(--s-7); min-height: 0; }
  .hero--sub.no-photo .hero-low { padding-top: var(--s-6); }
}

/* ---------- Community + moment ---------- */

.community { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-6) clamp(40px, 7vw, 120px); align-items: start; }
.community-text { display: grid; gap: 1.1em; max-width: 62ch; }
.community-text p { color: var(--ink-2); }
/* The statement's type lives here, not only in the word-highlight module, so it looks the same in
   every browser even when the module loads late or not at all; the module only adds the colour sweep. */
.community-text .lead {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.625rem);
  line-height: 1.16; letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty;
}
.community-text .lead strong { font-weight: inherit; color: var(--rust-deep); }
/* Word sweep: words not yet reached rest in a pale grey, so the change to ink is easy to see */
#community.mo-wh .mo-w { color: color-mix(in oklab, var(--ink) 22%, var(--bg)); }
#community.mo-wh .mo-w.is-on { color: var(--ink); }
#community.mo-wh strong .mo-w.is-on { color: var(--rust-deep); }
@media (prefers-reduced-motion: reduce) { #community.mo-wh .mo-w { color: var(--ink); } #community.mo-wh strong .mo-w { color: var(--rust-deep); } }

/* Collage: two columns, the second dropped a step, portrait and landscape alternating */
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); align-items: start; }
.collage-col { display: grid; gap: var(--s-3); }
.collage-col:nth-child(2) { margin-top: var(--s-8); }
.collage .photo { aspect-ratio: 4 / 5; }
.collage .photo--wide { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .community { grid-template-columns: 1fr; gap: var(--s-7); }
  .community .collage { order: 2; }   /* headline and text first on small screens */
}

#community {
  --bg: var(--paper); --accent: var(--rust-deep);
  --font-display: var(--display); --display-weight: 600; --display-tracking: -0.02em;
  --t-h2: clamp(1.75rem, 3vw, 2.625rem);
}

/* ---------- Atempause: five tiles that join into one panorama, as low as the
   pictures allow: the row spans the window, its height follows from the 4:5 tiles ---------- */
.pause-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); line-height: 0; background: var(--night); }
.pause-band img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
/* Phones: the row would be a thin sliver, so it keeps a readable height and scrolls sideways */
@media (max-width: 760px) {
  .pause-band { grid-template-columns: repeat(5, 56vw); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .pause-band::-webkit-scrollbar { display: none; }
}

/* ---------- Video ---------- */

.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--grey); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; }
.video-load {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff;
  display: grid; place-items: center; align-content: center; gap: var(--s-4);
  background: rgba(54, 54, 54, 0.62); font-family: var(--text);
}
.video-load:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.video-play { width: 88px; height: 88px; display: grid; place-items: center; background: var(--rust); transition: background-color var(--m-out) var(--ease), transform 250ms var(--ease); }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
@media (hover: hover) and (pointer: fine) { .video-load:hover .video-play { background: var(--rust-deep); transform: scale(1.04); } }
.video-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.125rem, 1.8vw, 1.5rem); }
.video-note { margin-top: var(--s-3); font-size: var(--t-small); color: var(--ink-2); max-width: 70ch; }

/* ---------- Programs: four cards on black ---------- */

.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); max-width: 1000px; margin-inline: auto; }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--night); min-width: 0; transition: transform 160ms var(--ease); }
/* Whole card is the link: the main link's ::after covers the card */
.pcard-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
/* Hover frame: a thin line drawn inside the card edge, faded in */
.pcard::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); opacity: 0; transition: opacity 250ms var(--ease); }
.pcard:has(.pcard-link:focus-visible)::after { opacity: 1; }
.pcard .pcard-link:focus-visible { outline: none; }
.pcard:active { transform: scale(0.99); }
.pcard .pcard-link:active { transform: none; }   /* a transform would shrink the click area to the button mid-click */
.pcard-visual { position: relative; display: block; height: clamp(240px, 24vw, 340px); overflow: hidden; }
.pcard-visual img { position: absolute; left: 14%; top: 10%; width: 72%; height: 90%; }
/* Cut-out photo on a soft, grainy colour field. On hover the photo zooms in
   slowly and the field cross-fades to a warmer tone:
   opacity only, so it stays cheap and interruptible. */
.tone { --tone-a: #DCD3CB; --tone-b: #BFAFA3; --tone-hover-a: #E9B9A3; --tone-hover-b: #C9846B; isolation: isolate;
  background: radial-gradient(120% 90% at 30% 20%, var(--tone-a), var(--tone-b)); }
.tone::before, .tone::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.tone::before { z-index: 0; opacity: 0; transition: opacity 450ms var(--ease);
  background: radial-gradient(120% 90% at 70% 25%, var(--tone-hover-a), var(--tone-hover-b)); }
.tone::after { z-index: 1; opacity: 0.32; mix-blend-mode: multiply; background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tone--gi    { --tone-a: #EFEDEA; --tone-b: #D3CFCA; --tone-hover-a: #EFC7B8; --tone-hover-b: #C9735D; }
.tone--nogi  { --tone-a: #DCEEF5; --tone-b: #A4D3E5; --tone-hover-a: #C8E5F0; --tone-hover-b: #7FBCD3; }
.tone--kids  { --tone-a: #F1E2DC; --tone-b: #D9A797; --tone-hover-a: #F0C9BB; --tone-hover-b: #C9705A; }
.tone--intro { --tone-a: #D98C77; --tone-b: #A8402A; --tone-hover-a: #E39A84; --tone-hover-b: #852817; }
.pcard-visual img.cutout {
  z-index: 2; left: -4%; top: 6%; width: 108%; height: 98%;
  object-fit: contain; object-position: 50% 100%;
  filter: none; transform-origin: 50% 100%;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tone--intro img.cutout { left: auto; right: -15%; object-position: 100% 100%; }   /* the cut-out ends hard on the right: hide that edge at the card edge */
@media (hover: hover) and (pointer: fine) {
  .pcard:hover .tone::before { opacity: 1; transition-duration: 300ms; }
  /* Large, slow zoom from the feet up: the photo grows toward the viewer, then settles back */
  .pcard:hover .pcard-visual img.cutout { transform: scale(1.12); transition-duration: 900ms; }
}
.pcard-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.pcard-body h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.pcard-body p { color: var(--on-dark-2); max-width: 56ch; }
.pcard-body p:last-of-type { margin-bottom: var(--s-4); }
.pcard-body > .btn { margin-top: auto; }
/* The beginner card carries the brand colour: beginners are the main audience */
.pcard--start { background: var(--brick); }
.pcard--start .meta, .pcard--start .pcard-body p { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover::after { opacity: 1; transition-duration: 150ms; }
}
@media (max-width: 860px) { .program-grid { grid-template-columns: 1fr; } .pcard-visual { height: 64vw; } }

/* ---------- Schedule ---------- */

.filters { display: none; gap: var(--s-3); padding: 0 0 var(--s-5); }
.js .filters { display: grid; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.filter-group .label { color: var(--ink-2); min-width: 64px; }
.filter-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); }
.result-count { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.reset { background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; color: var(--rust-deep); font: inherit; font-size: var(--t-small); text-decoration: underline; text-underline-offset: 0.22em; }
.reset[hidden], .schedule-empty[hidden] { display: none; }
.day-tabs { display: none; }

.sw-gi, .k-gi .cls-time::before { background: var(--rust); }
.sw-nogi, .k-nogi .cls-time::before { background: var(--sky); box-shadow: inset 0 0 0 1px rgba(54, 54, 54, 0.18); }
.sw-kids, .k-kids .cls-time::before { background: var(--oxblood); }
.sw-drill, .k-drill .cls-time::before { background: var(--grey-2); }
.sw-sonstiges, .k-sonstiges .cls-time::before { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.sw-mixed, .k-mixed .cls-time::before { background: linear-gradient(135deg, var(--rust) 0 50%, var(--sky) 50% 100%); }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 var(--s-2); margin-top: var(--s-6); }
.day { min-width: 0; }
.day-name {
  font-size: var(--t-small); font-weight: 600; padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink);
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
}
.day.is-today .day-name { border-bottom-color: var(--rust); }
.day.is-today .day-name::after {
  content: "Heute"; font-size: var(--t-label); font-weight: 600;
  color: #fff; background: var(--rust); padding: 1px 7px;
}
.day-list { list-style: none; display: grid; gap: 6px; padding-top: var(--s-2); }
.cls { padding: 10px 10px 12px; display: grid; gap: 2px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.k-gi, .k-mixed { background: var(--rust-wash); box-shadow: none; }
.k-nogi { background: var(--sky-wash); box-shadow: none; }
.k-kids { background: var(--oxblood); box-shadow: none; color: #fff; }
/* One red per kids group, from light (Minis) to deep (Teens); white text stays above 6:1 on all */
.k-kids.grp-minis  { background: #A13D26; }
.k-kids.grp-kids1  { background: #95341F; }
.k-kids.grp-kids12 { background: #8A2C1A; }
.k-kids.grp-kids2  { background: #7E2516; }
.k-kids.grp-teens  { background: #6A1D11; }
.k-kids.grp-minis .cls-coach { color: #FBE9E3; }
.cls-time { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: var(--t-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cls-time::before { content: ""; width: 9px; height: 9px; flex: none; }
.k-kids .cls-time::before { background: #fff; }
.cls-title { font-size: 0.875rem; line-height: 1.35; hyphens: none; }
.cls-coach { font-size: var(--t-label); color: var(--ink-2); }
.k-kids .cls-coach { color: var(--oxblood-tint); }
.cls[hidden] { display: none; }
.day-empty { padding: var(--s-3) 0; font-size: var(--t-small); color: var(--ink-3); }
.schedule-empty { margin-top: var(--s-5); padding: var(--s-6); background: var(--stone); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.schedule-foot { margin-top: var(--s-6); color: var(--ink-2); font-size: var(--t-small); max-width: 70ch; }

@media (max-width: 1100px) {
  .js .day-tabs { display: flex; margin-top: var(--s-5); border-bottom: 2px solid var(--ink); position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); }
  .day-tab {
    flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 4px; position: relative;
    background: none; border: 0; cursor: pointer; color: var(--ink-2);
    font-family: var(--display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase;
    transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease);
  }
  .day-tab[aria-selected="true"] { color: #fff; background: var(--ink); }
  .day-tab.is-today::after { content: ""; position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; background: var(--rust); }
  .day-tab:active { transform: scale(.985); }
  .week { grid-template-columns: 1fr; }
  .js .day { display: none; }
  .js .day.is-active { display: block; }
  .js .day-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .day:not(:first-child) { margin-top: var(--s-6); }
  .js .day:not(:first-child) { margin-top: 0; }
  .cls { grid-template-columns: 112px 1fr; column-gap: var(--s-3); padding: 14px 12px; }
  .cls-time { grid-row: 1 / span 2; align-self: start; }
  .cls-title { font-size: 1rem; }
}

/* Today: the column sits on stone and its name turns rust (desktop week view) */
@media (min-width: 1101px) {
  .day.is-today { background: var(--stone); margin: -10px -4px 0; padding: 10px 4px 4px; }
  .day.is-today .day-name { color: var(--rust-deep); }
}
.day-tab.is-today:not([aria-selected="true"]) { color: var(--rust-deep); }

/* ---------- Levels ---------- */

.levels { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.level { padding: var(--s-5) var(--s-5) var(--s-2) 0; display: grid; gap: var(--s-3); align-content: start; }
.level + .level { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
.level-num { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; color: var(--rust); font-variant-numeric: tabular-nums; }
.level p { color: var(--ink-2); font-size: 1rem; }
.level .note { color: var(--ink); font-weight: 500; }
/* The other classes in the plan: same grid and rules as the levels, the plan's colour square in place of the number */
.levels-sub { margin: var(--s-8) 0 var(--s-3); color: var(--ink-2); }
.levels--extra { border-top: 0; }
.levels--extra .level, .levels--extra .level + .level { border: 0; }
.level-sw { width: 14px; height: 14px; margin: 6px 0 2px; }
.level-sw.sw-sonstiges { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-strong); }
@media (max-width: 980px) {
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level:nth-child(3) { padding-left: 0; border-left: 0; }
  .level:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: var(--s-2); }
}
@media (max-width: 560px) {
  .levels { grid-template-columns: 1fr; }
  .level, .level + .level { padding: var(--s-5) 0 var(--s-2); border-left: 0; }
  .level + .level { border-top: 1px solid var(--rule); }
}

/* ---------- Coaches (on Hellgrau): portrait on top, name, one personal line, belt as a slim bar ---------- */

.coach-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-8) var(--s-5); }
.coaches .section-head p { color: var(--ink-2); }
.coach-open, .coach-static {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left;
}
.coach-open { cursor: pointer; transition: transform 160ms var(--ease); }
.coach-open:active { transform: scale(0.98); }
.coach-tile { position: relative; width: 100%; aspect-ratio: 4 / 5; margin-bottom: var(--s-4); overflow: hidden; display: grid; place-items: center; }
.coach-tile--photo { background: #D3D0CC; }
/* Until the portrait arrives: a quiet grainy field with the initial, so the one real photo leads */
.coach-tile--empty { background: linear-gradient(160deg, #F6F5F3, #EAE8E4); }
.coach-tile--empty::before { content: ""; position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: multiply; background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.coach-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform var(--m-image-out) var(--ease); }
/* Second portrait, shown on hover: a cross-fade, so the swap reads as one picture changing */
.coach-tile img.coach-alt { object-position: 50% 30%; opacity: 0; transition: opacity 250ms var(--ease), transform var(--m-image-out) var(--ease); }
.coach-tile span { position: relative; font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 5vw, 4.5rem); color: rgba(54, 54, 54, 0.2); line-height: 1; transition: transform var(--m-image-out) var(--ease); }
/* Belt: a plain band along the foot of the picture in the belt's colour; the black belt carries its red rank bar */
.belt--black  { --belt: linear-gradient(90deg, #1E1E1E 0 72%, var(--belt-bar-red) 72% 88%, #1E1E1E 88%); }
.belt--brown  { --belt: var(--belt-brown); }
.belt--purple { --belt: var(--belt-purple); }
.belt--blue   { --belt: var(--belt-blue); }
.coach-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; z-index: 1; background: var(--belt); }
.coach-name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.coach-belt { font-size: var(--t-small); color: var(--ink-2); }
/* "Mehr": the same outlined button as on the program cards. Touch: under the name.
   Mouse: low on the picture, fading up when the card is hovered or focused. */
.coach-open { position: relative; container-type: inline-size; }
.coach-more {
  margin-top: var(--s-2); display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px;
  font-family: var(--display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--ink); background: transparent;
}
.coach-more svg { width: 16px; height: 16px; transition: transform var(--m-in) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .coach-more {
    position: absolute; z-index: 2; left: 50%; top: calc(125cqw - 44px - 32px); margin: 0;   /* near the foot of the picture, above the belt */
    opacity: 0; transform: translate(-50%, 6px);
    color: #fff; border-color: #fff; background: rgba(54, 54, 54, 0.82);
    transition: opacity 150ms var(--ease), transform 150ms var(--ease);
  }
  .coach-open:hover .coach-more, .coach-open:focus-visible .coach-more {
    opacity: 1; transform: translate(-50%, 0);
    transition-duration: 200ms; transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  }
}
@media (hover: hover) and (pointer: fine) {
  .coach-open:hover .coach-tile span { transform: scale(1.04); transition-duration: var(--m-image); }
  .coach-open:hover .coach-tile img { transform: scale(1.03); transition-duration: var(--m-image); }
  .coach-open:hover .coach-tile img.coach-alt { opacity: 1; transition-duration: 350ms, var(--m-image); }
  .coach-open:hover .coach-more svg { transform: translateX(3px); }
}
@media (max-width: 1100px) { .coach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .coach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-4); } }
@media (max-width: 480px) {
  .coach-tile { margin-bottom: var(--s-2); }
  .coach-tile::after { height: 6px; }
  .coach-name { font-size: 1.125rem; }
}

.coach-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overscroll-behavior: contain; padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(54, 54, 54, 0.5); }
.coach-dialog::backdrop { background: rgba(54, 54, 54, 0.6); }
.coach-dialog-inner { position: relative; padding: clamp(28px, 5vw, 56px); display: grid; gap: var(--s-2); }
.coach-dialog h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; padding-right: 48px; }
.coach-dialog .coach-belt { color: var(--ink-2); }
.coach-bio { margin-top: var(--s-3); display: grid; gap: 1em; color: var(--ink-2); max-width: 64ch; }
.coach-contact { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.coach-contact a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--display); font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 0.3em;
  transition: text-decoration-color var(--m-out) var(--ease);
}
.coach-contact svg { width: 22px; height: 22px; flex: none; }
@media (hover: hover) and (pointer: fine) { .coach-contact a:hover { text-decoration-color: currentColor; } }
.coach-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--rule-strong); cursor: pointer; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .coach-close:hover { border-color: var(--ink); } }
.coach-close svg { width: 20px; height: 20px; }

/* ---------- Prices ----------
   Tables on paper, one section per tariff group on mitgliedschaft.html,
   a jump bar to reach each group; the home page shows a short preview. */

.jump { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); border-bottom: 1px solid var(--rule-strong); margin-bottom: var(--s-8); }
.jump a {
  position: relative; display: inline-flex; align-items: center; min-height: 52px;
  font-family: var(--display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
}
.jump a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform var(--m-out) var(--ease); }
@media (hover: hover) and (pointer: fine) { .jump a:hover { color: var(--ink); } .jump a:hover::after { transform: scaleX(1); transition-duration: var(--m-in); } }
.jump a:focus-visible::after { transform: scaleX(1); }
.tab-short { display: none; }
/* Tariff groups: stacked without script (every table stays in the page for search engines and
   readers); with script the jump bar becomes tabs and one group shows at a time */
.tarif-panel + .tarif-panel { margin-top: var(--section); }
.tarife.is-tabs .tarif-panel + .tarif-panel { margin-top: 0; }
.tarife.is-tabs .tarif-panel[hidden] { display: none; }
.tarife.is-tabs .tarif-panel.is-entering { animation: fz-tab-in 220ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes fz-tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Tab bar with arrows: the line runs under both, the arrows sit at the right end */
.jump-bar { display: flex; align-items: flex-end; gap: var(--s-5); border-bottom: 1px solid var(--rule-strong); margin-bottom: var(--s-8); }
.jump-bar .jump { border-bottom: 0; margin-bottom: 0; flex: 1; }
.jump-arrows { display: flex; gap: 6px; padding-bottom: 6px; }
.jump-arrow {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--rule-strong); color: var(--ink);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease), transform 120ms var(--ease);
}
.jump-arrow svg { width: 18px; height: 18px; }
.jump-arrow:disabled { opacity: 0.3; cursor: default; }
.jump-arrow:not(:disabled):active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .jump-arrow:not(:disabled):hover { border-color: var(--ink); } }
@media (max-width: 760px) { .jump-bar { margin-bottom: var(--s-7); gap: var(--s-3); } }
.jump a[aria-selected="true"] { color: var(--ink); }
.jump a[aria-selected="true"]::after { transform: scaleX(1); }
/* Home: price teaser. One large photo, the prices as open type beside it, plenty of air */
.prices { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 140px); align-items: stretch; }
.prices-photo { aspect-ratio: 4 / 5; }
.prices-photo img { object-position: 50% 40%; }
/* The text column is exactly as tall as the photo: headline flush with its top edge, the link flush
   with its bottom edge, the price list centred in the air between them */
.prices-text { max-width: 440px; display: flex; flex-direction: column; align-items: flex-start; }
.prices-text h2 { text-box: trim-start cap alphabetic; }
.prices-lead { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--t-lead); }
.prices-list { align-self: stretch; margin: auto 0; padding: var(--s-7) 0; }
.prices-list div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.prices-list div:first-child { border-top: 1px solid var(--rule); }
.prices-list dt { font-family: var(--display); font-weight: 500; font-size: 1.125rem; }
.prices-list dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.375rem; white-space: nowrap; }
.prices-list dd span:not(.num) { margin-left: 4px; font-family: var(--text); font-weight: 400; font-size: var(--t-small); color: var(--ink-2); }
.prices-note { color: var(--ink-2); }
.prices-text .link { margin-top: var(--s-2); min-height: 0; text-box: trim-end text alphabetic; }
@media (max-width: 860px) {
  .prices { grid-template-columns: 1fr; gap: var(--s-7); }
  .prices-photo { aspect-ratio: 4 / 3; }
  .prices-text { max-width: none; display: block; }
  .prices-list { padding: 0; margin: var(--s-7) 0 var(--s-6); }
  .prices-text .link { min-height: 44px; }
}
.price-block { display: grid; gap: var(--s-4); }
.price-block .footnotes { margin-top: 0; }
.panel-intro { color: var(--ink-2); max-width: 62ch; }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--paper); font-variant-numeric: tabular-nums; }
/* One type scale for the whole price block: body text for names and prices, small grey text
   for column heads, footnotes and the fee line. Lines only between rows, no black bar. */
.price-table th, .price-table td { padding: 16px; text-align: left; border: 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; font-size: var(--t-body); }
.price-table thead th { padding-top: 14px; padding-bottom: 14px; background: var(--ink); font-family: var(--text); font-weight: 500; font-size: var(--t-small); color: #fff; border-bottom: 0; }
.price-table tbody th { font-weight: 400; color: var(--ink); width: 40%; }
.price-table td { font-family: var(--text); font-weight: 500; color: var(--ink); white-space: nowrap; }
.price-table td.best { font-weight: 500; }
.panel-fee { display: flex; flex-wrap: wrap; gap: 6px var(--s-6); color: var(--ink-2); font-size: var(--t-small); }
.panel-fee strong { font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.flex-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.flex-list li { padding: var(--s-5) 20px; background: var(--paper); display: grid; gap: 6px; align-content: start; }
.flex-price { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1; font-variant-numeric: tabular-nums; }
.flex-sub { color: var(--ink-2); font-size: var(--t-small); }
.flex-trial .link { margin-top: var(--s-1); }
.footnotes { margin-top: var(--s-6); list-style: none; display: grid; gap: 6px; color: var(--ink-2); font-size: var(--t-small); max-width: 80ch; }
.member-note { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--rule-strong); color: var(--ink-2); max-width: 70ch; }
.member-note strong { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) { .flex-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .jump { gap: 0 var(--s-5); margin-bottom: var(--s-7); }
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .flex-list { grid-template-columns: 1fr; }
  .price-table { min-width: 0; }
  .price-table th, .price-table td { padding: 12px 8px; }
  .price-table tbody th { width: auto; font-size: var(--t-small); }
  .price-table td { font-size: 1rem; }
}
/* Narrow phones: the whole price grid fits, so prices compare without swiping */
@media (max-width: 400px) {
  .price-table th, .price-table td { padding: 10px 6px; }
  .price-table thead th { font-size: var(--t-label); }
  .price-table tbody th { font-size: var(--t-label); hyphens: auto; }
  .price-table td { font-size: 0.9375rem; }
}

/* ---------- Seam photo between prices and form ---------- */


/* ---------- Trial request ---------- */

/* Same two columns as the section head above: the form under the headline, the notes under the
   intro, both starting on one line */
.trial { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; }
/* Before the first visit: one confirmation line; "Hinweise und Regeln" inside it opens the dialog.
   Same size and colour as the form text, one hairline above, nothing else. */
.first-visit { margin-top: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.first-visit-open {
  display: inline; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) { .first-visit-open:hover { text-decoration-color: currentColor; } }
.first-visit-dialog .first-visit-intro { color: var(--ink-2); margin-bottom: var(--s-3); }
.first-visit-dialog h4.label { color: var(--ink-2); margin-top: var(--s-4); }
.first-visit-dialog .ticks { margin-top: var(--s-2); }
.first-visit-ok { justify-self: start; margin-top: var(--s-5); }
.ticks li.is-must { background: var(--rust-wash); padding-left: 10px; padding-right: 10px; grid-template-columns: 18px 1fr; border-bottom-color: transparent; }
.must-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; vertical-align: 1px;
  font-family: var(--display); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--rust-deep);
}
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rust); cursor: pointer; }
.field-check.has-error .check > span { color: var(--rust-deep); }
.field-check.is-locked .check input { opacity: 0.45; }
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: var(--s-2); align-content: start; }
.field label, .choice-legend { font-family: var(--display); font-weight: 600; font-size: var(--t-small); color: var(--ink); }
.field .opt { font-family: var(--text); font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 0;
  transition: border-color var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); } }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(192, 68, 42, 0.28); }
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none; padding-right: 44px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1D1C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.field.has-error .input { border-color: var(--rust-deep); box-shadow: 0 0 0 1px var(--rust-deep); }
.field-error { color: var(--rust-deep); font-size: 0.875rem; font-weight: 500; }
.field-error[hidden], .group-result[hidden], .kid-fields[hidden], .form-status[hidden] { display: none; }
.field-hint { color: var(--ink-2); font-size: 0.875rem; }
.group-result { font-size: var(--t-small); background: var(--stone); padding: 10px 12px; }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.choice-legend { padding: 0; }   /* a legend is inset by default; keep it on the form's left edge */
.choice-options { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-options label { position: relative; cursor: pointer; }
.choice-options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-options span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--rule-strong); font-weight: 500; transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease); }
@media (hover: hover) and (pointer: fine) { .choice-options label:hover span { border-color: var(--ink); } }
.choice-options input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice-options input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 3px; }
.form-submit { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.form-submit .btn { justify-self: start; }
.mail-fallback {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s-4);
  font-size: var(--t-small); color: var(--ink-2); max-width: 70ch;
}
.mail-fallback a { overflow-wrap: anywhere; }
.form-status { padding: var(--s-4) 20px; background: var(--ink); color: #fff; display: grid; gap: 6px; }
.form-status strong { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; }
.form-status p { color: var(--on-dark-2); font-size: var(--t-small); }
.ticks { list-style: none; }
.ticks li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 28px 1fr; gap: 8px; color: var(--ink-2); font-size: var(--t-small); }
.ticks li:first-child { border-top: 1px solid var(--rule); }
.ticks svg { width: 18px; height: 18px; margin-top: 3px; color: var(--rust); }
.ticks.cross svg { color: var(--ink-3); }
.ticks strong { font-weight: 500; color: var(--ink); }
.rules { counter-reset: r; }
.join-steps { margin-top: var(--s-6); padding: 0; }
.join-steps li { font-size: var(--t-body); padding: 16px 0; color: var(--ink-2); }
.join-steps li::before { font-family: var(--text); font-weight: 500; }
.join-steps strong { display: block; font-weight: 500; color: var(--ink); }
#anmeldung .split > h2 { font-size: var(--t-h2); }
#anmeldung .prose p { font-size: var(--t-body); }
.rules li::before { counter-increment: r; content: counter(r); font-family: var(--display); font-weight: 700; color: var(--rust); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } .form-submit .btn { justify-self: stretch; } }

/* ---------- Contact ---------- */

/* Contact: text on the left, one large photo running to the right edge of the window.
   Both share the section's top and bottom edge: headline flush with the photo's top,
   the route link flush with its bottom. */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; padding: var(--section) 0; }
.contact-text {
  padding: 0 clamp(32px, 5vw, 72px) 0 max(var(--gutter), (100vw - var(--max)) / 2);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); min-width: 0;
}
.contact-text h2 { text-box: trim-start cap alphabetic; }
.contact-text > p { color: var(--ink-2); max-width: 46ch; }
.contact-text > div:last-child { margin-top: auto; }
.contact-text .link { min-height: 0; text-box: trim-end text alphabetic; }
.contact-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 28px; margin: 0; }
.contact-dl dt { padding-top: 3px; color: var(--ink-2); }
.contact-dl dd { margin: 0; overflow-wrap: anywhere; }
.contact-photo { min-height: 520px; min-width: 0; }
.contact-photo img { object-position: 45% 60%; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: var(--s-7); }
  .contact-text { padding: 0 var(--gutter); }
  .contact-text > div:last-child { margin-top: 0; }
  .contact-text .link { min-height: 44px; }
  .contact-photo { min-height: 0; aspect-ratio: 3 / 2; }
}

/* ---------- Subpage parts ---------- */

/* A heading on the left, prose on the right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6) clamp(40px, 7vw, 120px); }
.split > h2 { align-self: start; }
.prose { display: grid; gap: 1em; max-width: 64ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose .lead { color: var(--ink); }
.prose ul { padding-left: 1.1em; display: grid; gap: 0.4em; }
.on-dark .prose p, .on-dark .prose li { color: var(--on-dark-2); }
.on-dark .prose .lead { color: #fff; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* A ruled grid of short points */
.points { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-6); border-top: 2px solid var(--ink); }
.points > li { padding: var(--s-5) 0 var(--s-6); display: grid; gap: var(--s-2); align-content: start; border-bottom: 1px solid var(--rule); }
.points p { color: var(--ink-2); font-size: 1rem; }
.points--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.points--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.on-dark .points { border-top-color: #fff; }
.on-dark .points > li { border-color: var(--rule-dark); }
.on-dark .points p { color: var(--on-dark-2); }
@media (max-width: 860px) { .points, .points--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .points, .points--2, .points--4 { grid-template-columns: 1fr; } }

/* Comparison table (Gi / No-Gi) */
.compare-wrap { overflow-x: auto; margin-top: var(--s-7); }
/* When a table scrolls sideways, its first column stays put so rows keep their names */
.compare-wrap .compare > * > tr > :first-child, .table-scroll .price-table > * > tr > :first-child { position: sticky; left: 0; z-index: 1; }
.compare-wrap .compare > * > tr > :first-child { background: var(--stone); box-shadow: inset -1px 0 0 var(--rule); }
.table-scroll .price-table tbody th { background: var(--paper); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 600; width: 22%; font-family: var(--display); }
.compare td { color: var(--ink-2); }

/* Gi / No-Gi columns */
.versus { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.versus article { padding: var(--s-5) var(--s-7) 0 0; display: grid; gap: var(--s-3); align-content: start; }
.versus article + article { padding: var(--s-5) 0 0 var(--s-7); border-left: 1px solid var(--rule); }
.versus h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 700; line-height: 1.05; }
.versus p { color: var(--ink-2); }
.versus ul { padding-left: 1.1em; display: grid; gap: 0.35em; color: var(--ink-2); }
@media (max-width: 760px) {
  .versus { grid-template-columns: 1fr; }
  .versus article + article { padding: var(--s-5) 0 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: var(--s-5); }
}

/* Three checklists side by side */
.lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.lists h3 { margin-bottom: var(--s-3); }
@media (max-width: 860px) { .lists { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Age groups on black */
.groups { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.groups > li { padding: var(--s-5); background: var(--night); display: grid; gap: var(--s-2); align-content: start; }
.groups h3 { font-weight: 700; }
.groups .group-age { font-family: var(--display); font-weight: 500; color: var(--rust-tint); }
.groups p { color: var(--on-dark-2); font-size: 1rem; }
@media (max-width: 980px) { .groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .groups { grid-template-columns: 1fr; } }

/* FAQ: native details, one click folds an answer */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 64px; padding: var(--s-3) 0; font-family: var(--display); font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform 250ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--rust-deep); } }
.faq details > p { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 70ch; }

/* Call to action band */
.cta-band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5) var(--s-7); }
.cta-band h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); max-width: 14em; }
.cta-band p { margin-top: var(--s-3); max-width: 52ch; }

/* Numbered process */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.steps li { counter-increment: s; display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 2px solid var(--rust); color: var(--ink-2); }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--rust); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Contact cards (Sicherheit) */
.contacts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.contacts > li { padding: var(--s-6); background: var(--paper); display: grid; gap: var(--s-2); align-content: start; }
.contacts p { color: var(--ink-2); }
@media (max-width: 760px) { .contacts { grid-template-columns: 1fr; } }

/* Legal pages and credits */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: var(--s-5); }
@media (max-width: 420px) { .legal h1 { font-size: min(2.5rem, 10.2vw); } }
.legal h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: var(--s-7) 0 var(--s-3); hyphens: auto; overflow-wrap: break-word; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 0.8em; }
.legal ul { padding-left: 1.1em; display: grid; gap: 0.4em; margin-top: 0.6em; }
.legal-note { padding: var(--s-4) 20px; background: var(--rust-wash); color: var(--ink); margin-bottom: var(--s-6); }

/* ---------- Footer ---------- */

.site-footer { padding: var(--s-8) var(--pad) var(--s-6); display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--s-6); font-size: var(--t-small); }
.site-footer img { width: 64px; margin-bottom: var(--s-4); }
.site-footer h3 { margin-bottom: var(--s-3); color: var(--on-dark-2); }
.site-footer ul { list-style: none; display: grid; gap: var(--s-2); }
.site-footer li { overflow-wrap: anywhere; }
.site-footer a { position: relative; color: #fff; text-decoration: none; }
.site-footer ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--m-out) var(--ease);
}
.site-footer ul a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) { .site-footer ul a:hover::after { transform: scaleX(1); transform-origin: left; } }
.footer-claim { color: var(--on-dark-2); max-width: 32ch; }
.footer-legal {
  grid-column: 1 / -1; padding-top: var(--s-5); border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--on-dark-2); font-size: 0.875rem;
}
.footer-legal a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-color: rgba(255, 255, 255, 0.35); }
@media (hover: hover) and (pointer: fine) { .footer-legal a:hover { color: #fff; } }
@media (max-width: 760px) { .site-footer { grid-template-columns: 1fr 1fr; } .site-footer > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-footer { grid-template-columns: 1fr; } }
/* Touch: every footer link is a 44px target; the list closes up so the rhythm stays */
@media (pointer: coarse) {
  .site-footer ul { gap: 0; }
  .site-footer li { display: flex; align-items: center; min-height: 44px; }
  .site-footer ul a, .footer-legal > * { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-legal { row-gap: 0; align-items: center; }
}

/* ---------- Motion ----------
   Three places: the hero entrance, the hover layer above, and the
   word-highlight moment. Nothing else moves on scroll. */

.m-zoom img, .photo img { transform: scale(1); transition: transform var(--m-image-out) var(--ease); }

@keyframes fz-rise { from { transform: translateY(0.35em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fz-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fz-settle-img { from { transform: scale(1.05); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  [data-enter] h1 { animation: fz-rise 700ms var(--ease-enter) both; }
  [data-enter] .hero-low p { animation: fz-up 520ms var(--ease-enter) 420ms both; }
  [data-enter] .hero-actions > :nth-child(1) { animation: fz-up 520ms var(--ease-enter) 480ms both; }
  [data-enter] .hero-actions > :nth-child(2) { animation: fz-up 520ms var(--ease-enter) 540ms both; }
  [data-enter] .hero-figure img { animation: fz-settle-img 1.1s var(--ease-enter) both; }
  [data-enter] .hero-bg { animation: fz-settle-img 1.1s var(--ease-enter) both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .pcard:hover .pcard-visual img.cutout { transform: none; }
}

/* Long German headings in two-column splits and next to the hero photo */
.split > h2 { font-size: clamp(2rem, 3.4vw, 3rem); hyphens: auto; overflow-wrap: break-word; }
.hero:not(.no-photo) h1 { max-width: min(8.6em, calc(100% - var(--fig-w) - var(--s-7))); }
.hero--sub:not(.no-photo) h1 { max-width: min(10em, calc(100% - var(--fig-w) - var(--s-7))); }
@media (max-width: 760px) { .hero:not(.no-photo) h1, .hero--sub:not(.no-photo) h1 { max-width: none; } }

/* ---------- Home: first steps for beginners (reuses .steps) ---------- */
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li h3 { color: var(--ink); }
.section-actions { margin-top: var(--s-7); }
@media (max-width: 860px) { .steps--3 { grid-template-columns: 1fr; } }

/* ---------- Home: what is on next + quick filters into the schedule page ---------- */
.preview { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7) clamp(40px, 7vw, 120px); align-items: start; }
.today-title { font-size: var(--t-small); font-weight: 600; padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink); }
.today .cls { grid-template-columns: 112px 1fr; column-gap: var(--s-3); padding: 14px 12px; }
.today .cls-time { grid-row: 1 / span 2; align-self: start; flex-wrap: wrap; row-gap: 4px; }
.today .cls-title { font-size: 1rem; }
.cls-now { font-family: var(--text); font-weight: 600; font-size: var(--t-label); color: #fff; background: var(--rust); padding: 1px 7px; margin-left: 17px; }
.k-kids .cls-now { background: #fff; color: var(--oxblood); }
.today-more { padding-top: var(--s-2); }
.today-more .link { background: none; border: 0; padding: 0; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .today-more .link:hover svg { transform: translateY(2px); } }
.quick { display: grid; gap: var(--s-4); justify-items: start; }
.quick-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
a.chip { text-decoration: none; }
@media (max-width: 860px) { .preview { grid-template-columns: 1fr; } }

/* ---------- Schedule page: the way in for beginners ---------- */
.hero--sub.no-photo + #stundenplan { padding-top: var(--s-8); }   /* schedule page: the plan follows the hero closely */
