/* The Movement Forge – OnePager
   Idee: Die Seite fühlt sich an wie der Start eines Videos – Whiteboard mit
   dem Workout, daneben die Intervall-Uhr. Farben tragen Bedeutung wie im
   Timer: Feuer = Arbeit/Handeln, Petrol = Pause/Information.
   Schriften selbst gehostet (keine Anfragen an Dritte). */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-condensed-semibold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-condensed-bold.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap;
  src: url("fonts/atkinson-regular.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap;
  src: url("fonts/atkinson-bold.woff2") format("woff2"); }

:root {
  --ink: #1f2a2b;          /* Anthrazit aus dem Logo */
  --ink-2: #2a3637;        /* Panel auf Anthrazit */
  --board: #f6f7f5;        /* Whiteboard-Weiß, kühl */
  --rail: #c9cfcc;         /* Aluminium-Rahmen des Boards */
  --teal: #4f979d;         /* Petrol: Pause, nur große Elemente auf dunkel */
  --teal-light: #7fc0c5;   /* Petrol für Text auf dunkel (7.2:1) */
  --teal-ink: #2f6a6f;     /* Petrol für Text auf hell (5.7:1) */
  --fire: #e87028;         /* Schmiedefeuer: Arbeit, Handeln */
  --muted: #4a5a5b;        /* Fließtext zweitrangig auf hell (6.7:1) */
  --on-dark: #c9d4d4;      /* Fließtext auf dunkel (9.7:1) */

  /* Rollen der hellen Seitenflächen – im Dark Mode umgefärbt. Die dunklen
     Bänder (Leiste, Hero, Home-Gym, Abschluss) bleiben in beiden Modi gleich. */
  --fg: var(--ink);        /* Text auf der Seitenfläche */
  --surface: #fff;         /* Karten, Filter, Formularfelder */
  --veil: 246 247 245;     /* Schleier über den Equipment-Fotos (RGB) */
  --warn-bg: #fbe0cf;
  --bad: #a3400f;
  color-scheme: light;

  --display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  /* Typo-Skala (Verhältnis ~1.25, Basis 19px) */
  --step-0: 1.1875rem;
  --step-1: 1.5rem;
  --step-2: 1.875rem;
  --step-3: clamp(2.25rem, 4vw, 3rem);
  --step-4: clamp(3rem, 7.2vw, 5.75rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --bar-h: 5.2rem;         /* Höhe der fixierten Leiste (Desktop) */
  --max: 1200px;
}

/* Dark Mode: folgt der Systemeinstellung, außer der Umschalter oben rechts
   hat etwas anderes gewählt (data-theme am <html>, im Browser gespeichert). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --board: #151d1e; --surface: #202b2c; --fg: #e4eaea; --rail: #3a494a;
  --muted: #a6b4b4; --teal-ink: #7fc0c5; --veil: 21 29 30;
  --warn-bg: #4a2c1a; --bad: #f39a62;
  color-scheme: dark;
  }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
}
:root[data-theme="dark"] {
  --board: #151d1e; --surface: #202b2c; --fg: #e4eaea; --rail: #3a494a;
  --muted: #a6b4b4; --teal-ink: #7fc0c5; --veil: 21 29 30;
  --warn-bg: #4a2c1a; --bad: #f39a62;
  color-scheme: dark;
}
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

* { box-sizing: border-box; }
/* "hidden" muss gewinnen, auch gegen display:grid/flex einzelner Klassen */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
/* Sprungziele nicht unter der fixierten Leiste verstecken */
[id] { scroll-margin-top: calc(var(--bar-h) + 1rem); }
body {
  margin: 0; background: var(--board); color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; }
h2 { font-size: var(--step-3); letter-spacing: -0.005em; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ------------------------------------------------ Entwurfs-Hinweis */
.draft { background: var(--fire); color: var(--ink); text-align: center;
         padding: .55rem 1rem; font-weight: 700; }

/* ------------------------------------------------ Kopf */
.top { background: var(--ink); color: #fff;
        position: sticky; top: 0; z-index: 20;
        box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .18); }
.top .wrap { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
             padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.wordmark { font: 700 1.65rem/1 var(--display); color: var(--teal-light); letter-spacing: .02em; }
.wordmark b { color: var(--fire); font-weight: 700; }
.top nav { margin-left: auto; display: flex; gap: .4rem 1.6rem; flex-wrap: wrap; align-items: center; }
.top nav a { text-decoration: none; color: var(--on-dark); font: 600 1.2rem/1 var(--display); }
.top nav a:hover { color: #fff; }
.top nav a[aria-current="page"] { color: #fff; }
.top nav .lang { color: #fff; border-bottom: 2px solid var(--fire); padding-bottom: 2px; }
/* Hell/Dunkel: ganz rechts in der Leiste (im DOM vor der Navigation, damit er
   auf dem Handy neben dem Logo steht) */
.top nav { order: 2; }
.theme-toggle { order: 3; display: inline-grid; place-items: center; flex: none;
  width: 2.6rem; height: 2.6rem; padding: 0; cursor: pointer;
  color: var(--on-dark); background: transparent;
  border: 2px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.theme-toggle:hover { color: #fff; border-color: var(--teal-light); }
.theme-toggle svg { width: 1.3rem; height: 1.3rem; }
.theme-toggle .sun { display: none; }

/* ------------------------------------------------ Hero: Whiteboard + Uhr */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { font-size: var(--step-4); letter-spacing: -0.01em; max-width: 11ch; margin-bottom: .45em; }
.hero .sub { font-size: var(--step-1); line-height: 1.45; color: var(--on-dark); max-width: 30ch; margin-bottom: 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3.25rem; padding: .7rem 1.35rem; border-radius: 6px;
  font: 700 1.3rem/1 var(--display); text-decoration: none;
}
.btn svg { width: 1.35em; height: 1.35em; flex: none; }
.btn-work { background: var(--fire); color: var(--ink); }
.btn-work:hover { background: #f2843f; }
.btn-calm { color: #fff; box-shadow: inset 0 0 0 2px var(--teal-light); }
.btn-calm:hover { background: var(--ink-2); }

/* Board mit Uhr: das eine markante Element der Seite */
.stage { position: relative; justify-self: center; width: min(100%, 470px); margin: 0; }
.stage .frame { position: relative; }
.stage .board { width: 100%; height: auto; border-radius: 3px;
                box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.clock {
  /* hängt an der freien Ecke unten links des Boards */
  position: absolute; left: -2.4rem; bottom: -1.8rem;
  width: 150px; padding: .8rem .8rem .9rem; border-radius: 12px;
  background: var(--ink-2); box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  text-align: center; font-family: var(--display);
}
.clock .phase { display: block; font-weight: 700; font-size: 1.35rem; color: var(--fire);
                letter-spacing: .04em; margin-bottom: .35rem; }
.clock svg { width: 112px; height: 112px; display: block; margin: 0 auto; }
.clock .track { stroke: #3b4a4b; }
.clock .arc { stroke: var(--fire); }
.clock .secs { font: 700 52px/1 var(--display); fill: #fff; }
.clock[data-phase="rest"] .phase { color: var(--teal-light); }
.clock[data-phase="rest"] .arc { stroke: var(--teal); }
.stage figcaption { margin: 2.8rem 0 0 6.5rem; color: var(--on-dark); font-size: 1rem; max-width: 40ch; }

/* ------------------------------------------------ Kernbotschaften */
.why { padding-block: clamp(4rem, 9vw, 7rem); }
.why .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.why h2 { position: sticky; top: calc(var(--bar-h) + 1.5rem); align-self: start; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem);
          margin: 0; }
.points div { border-top: 2px solid var(--rail); padding: 1.3rem 0 1.9rem; }
.points dt { font: 700 var(--step-2)/1.1 var(--display); margin-bottom: .45rem; }
.points dd { margin: 0; color: var(--muted); }

/* ------------------------------------------------ Home-Gym */
.gym { background: var(--ink); color: #fff; display: grid;
       grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
.gym img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.gym .copy { padding: clamp(3rem, 7vw, 6rem) var(--gutter); align-self: center; max-width: 34rem; }
.gym h2 { color: var(--teal-light); margin-bottom: .6em; }
.gym p { color: var(--on-dark); }

/* ------------------------------------------------ Equipment */
.gear { padding-block: clamp(4rem, 9vw, 7rem); }
.gear .lead { color: var(--muted); margin: 1rem 0 0; }
.group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.group h3 { font-size: var(--step-2); color: var(--teal-ink); padding-bottom: .6rem;
            border-bottom: 2px solid var(--rail); margin-bottom: 1.6rem; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
         gap: 2.2rem clamp(1.25rem, 2.5vw, 2rem); margin: 0; padding: 0; list-style: none; }
.items figure { margin: 0 0 .9rem; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--ink); }
.items figure img { width: 100%; height: 100%; object-fit: cover; }
.items figure.mark { display: grid; place-items: center; }
.items figure.mark img { width: 46%; height: auto; }
.items h4 { font: 600 var(--step-1)/1.1 var(--display); margin: 0 0 .3rem; }
.items p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Eigene Equipment-Seite */
.gear-page .gear h1 { font-size: var(--step-3); }

/* So geht's auf der Startseite */
.how { padding-block: clamp(4rem, 9vw, 7rem); }
.how .lead { color: var(--muted); margin: 1rem 0 0; }
.how .howto, .howto-page .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how .wrap > p:last-child .more, .gym .links .more { font: 600 1.15rem/1.2 var(--display);
  color: var(--teal-ink); text-decoration: underline; text-decoration-color: var(--fire);
  text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gym .links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.gym .links .more { color: var(--teal-light); }

/* ------------------------------------------------ Gesundheitshinweis */
.care { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); }
.care .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
              gap: 1rem clamp(2rem, 6vw, 6rem);
              border-top: 2px solid var(--rail); padding-top: 2rem; }
.care h2 { font-size: var(--step-2); color: var(--teal-ink); }
.care p { color: var(--fg); margin-bottom: .6em; }

/* Link je Equipment-Karte zur gefilterten Workout-Liste */
.items .more { display: inline-block; margin-top: .6rem; font: 600 1.15rem/1.2 var(--display);
  color: var(--teal-ink); text-decoration: underline; text-decoration-color: var(--fire);
  text-decoration-thickness: 2px; text-underline-offset: 4px; }
.items .more:hover { color: var(--fg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------ Workouts-Seite */
/* Vollbild-Foto des gewählten Equipments hinter der Seite, heller Schleier
   darüber für die Lesbarkeit; Karten und Filter bleiben deckend weiß. */
.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--board); }
.backdrop .layer { position: absolute; inset: 0; background: 50% 85% / cover no-repeat;  /* Equipment steht unten im Bild */
  opacity: 0; transition: opacity .6s ease; }
.backdrop .layer.on { opacity: 1; }
.backdrop::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(var(--veil) / .80) 0%, rgb(var(--veil) / .55) 45%,
              rgb(var(--veil) / .35) 100%); }
.wo-page h1, .wo-page .lead, .wo-page .count { text-shadow: 0 0 18px rgb(var(--veil) / .9); }
.wo-page .count { color: var(--fg); font-weight: 700; }
.wo-page .wrap { max-width: var(--max); }
.filters { display: grid; gap: 1rem; margin: 2rem 0 1rem; padding: 1.2rem 1.3rem;
  background: var(--surface); border: 2px solid var(--rail); border-radius: 10px; }
.fgroup { display: grid; grid-template-columns: 7.5rem 1fr; gap: .6rem; align-items: start; }
.flabel { font: 600 var(--step-1)/1.6 var(--display); color: var(--teal-ink); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips button { font: 600 1.1rem/1 var(--display); color: var(--fg); background: var(--board);
  border: 2px solid var(--rail); border-radius: 999px; padding: .5rem .9rem; cursor: pointer; }
.chips button:hover { border-color: var(--teal-ink); }
.chips button[aria-pressed="true"] { background: var(--fg); color: var(--board); border-color: var(--fg); }
.chips button.zero { opacity: .55; }
.chips button.zero[aria-pressed="true"] { opacity: 1; }
.chips .n { font-family: var(--text); font-weight: 400; font-size: .85rem; opacity: .7; margin-left: .15rem; }
.count { color: var(--muted); margin: 0 0 1.2rem; }
.wo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.wo { display: grid; grid-template-columns: 210px 1fr; gap: 1.6rem; padding: 1.4rem;
  background: var(--surface); border: 2px solid var(--rail); border-radius: 10px; }
.wo img { width: 100%; height: auto; border-radius: 4px; }
.wo h2 { font-size: var(--step-2); margin-bottom: .4rem; }
.wo .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 .6rem;
  font: 600 1.15rem/1.3 var(--display); color: var(--teal-ink); }
.wo .rhythm { margin: 0 0 .9rem; padding: .7rem .9rem; background: var(--board);
  border-left: 4px solid var(--fire); border-radius: 0 6px 6px 0; line-height: 1.45; }
.wo .rhythm .lbl { font: 700 1.15rem/1 var(--display); color: var(--fire); margin-right: .35rem; }
.wo .tags { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.wo .tags li { font-size: .95rem; background: var(--board); border: 1px solid var(--rail);
  border-radius: 4px; padding: .1rem .5rem; }
.wo .ex { margin: 0 0 1rem; padding-left: 1.3rem; columns: 2 16rem; column-gap: 2rem; }
.wo .ex li { break-inside: avoid; margin-bottom: .15rem; }
.wo .ex span { color: var(--fire); font-weight: 700; margin-left: .3rem; }
.wo .soon { display: inline-block; margin: 0; font: 600 1.1rem/1 var(--display); color: var(--muted);
  border: 2px dashed var(--rail); border-radius: 6px; padding: .55rem .9rem; }
.wo h2 a { color: inherit; text-decoration: none; }
.wo h2 a:hover { text-decoration: underline; text-decoration-color: var(--fire); }
.wo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: 0; }
.wo-actions .more { font: 600 1.15rem/1.2 var(--display); color: var(--teal-ink);
  text-decoration: underline; text-decoration-color: var(--fire);
  text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wo-actions .soon { font: 600 1.1rem/1 var(--display); color: var(--muted);
  border: 2px dashed var(--rail); border-radius: 6px; padding: .55rem .9rem; }
.btn-sm { min-height: 2.6rem; padding: .5rem 1rem; font-size: 1.1rem; }

/* Workout-Detailseite */
.wo-detail .wrap { max-width: 64rem; }
.wo-detail .back { margin: 0 0 1.5rem; }
.wo-detail .back a { color: var(--teal-ink); font: 600 1.15rem/1 var(--display); text-decoration: none; }
.wd-head { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 2.5rem; align-items: start; }
.wd-head img { width: 100%; height: auto; border-radius: 6px; }
.wd-head h1 { margin-bottom: .6rem; }
/* höhere Spezifität als .info-page h2 */
.wo-detail .wd-head h2 { font-size: var(--step-1); margin: 1.6rem 0 .6rem; }
.wo-detail .wrap > h2 { font-size: var(--step-2); margin: 3rem 0 1rem; }
.wo-detail .note { margin-top: 2rem; }
.wo-detail .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 .8rem;
  font: 600 1.2rem/1.3 var(--display); color: var(--teal-ink); }
.wo-detail .rhythm { margin: 0; padding: .7rem .9rem; background: var(--surface);
  border-left: 4px solid var(--fire); border-radius: 0 6px 6px 0; line-height: 1.45; }
.wo-detail .rhythm .lbl { font: 700 1.15rem/1 var(--display); color: var(--fire); margin-right: .35rem; }
.wo-detail .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.wo-detail .tags li { font-size: .95rem; background: var(--surface); border: 1px solid var(--rail);
  border-radius: 4px; padding: .1rem .5rem; }
.wo-detail .hint { color: var(--muted); font-size: 1rem; margin: .7rem 0 0; }
.wd-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.wd-ex li { background: var(--surface); border: 2px solid var(--rail);
  border-radius: 10px; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.wd-ex h3 { font: 700 var(--step-1)/1.15 var(--display); }
.wd-ex .nr { color: var(--fire); }
.wd-ex .reps { color: var(--fire); font-size: .85em; margin-left: .3rem; }
.wd-ex p { margin: 0; }
.wd-ex .gear-opt { font: 600 1.05rem/1.3 var(--display); color: var(--teal-ink); }
.wd-ex .more { margin-top: auto; padding-top: .3rem; font: 600 1.1rem/1.2 var(--display);
  color: var(--teal-ink); text-decoration: underline; text-decoration-color: var(--fire);
  text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wo-detail .studies { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.wo-detail .studies li { padding: .7rem .9rem; background: var(--surface);
  border-left: 4px solid var(--teal); border-radius: 0 6px 6px 0; line-height: 1.45; }
.wo-detail .studies a { color: var(--teal-ink); font-weight: 600; white-space: nowrap;
  text-decoration-color: var(--fire); text-underline-offset: 3px; }
.ex-detail .lead { font-size: var(--step-1); line-height: 1.5; margin: .4rem 0 1rem; }
.ex-detail .used span { font-weight: 700; color: var(--fg); }
.ex-detail .used a, .ex-detail .steps-to a { color: var(--teal-ink); }
.ex-detail .wd-ex h3 span { color: var(--muted); font-size: .8em; font-weight: 600; }
.ex-detail .steps-to { color: var(--muted); font-size: 1rem; }
.exc h2 a { color: inherit; text-decoration: none; }
.exc h2 a:hover { text-decoration: underline; text-decoration-color: var(--fire); }
.wod-more { margin: .6rem 0 0 6.5rem; }
.wod-more .more { color: var(--teal-light); font: 600 1.15rem/1.2 var(--display);
  text-decoration: underline; text-decoration-color: var(--fire); text-underline-offset: 4px; }

/* Kartentitel: nicht den Abstand der Rechtstexte (.legal h2) übernehmen */
.filter-page .wo h2 { margin: 0 0 .4rem; }
.filter-page .exc h2 { margin: 0; }

/* Übungsseite */
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.exc { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.4rem;
  background: var(--surface); border: 2px solid var(--rail); border-radius: 10px; }
.exc:target { border-color: var(--fire); box-shadow: 0 0 0 3px rgba(232, 112, 40, .25); }
.exc h2 { font-size: var(--step-2); margin: 0; }
.exc .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0;
  font: 600 1.1rem/1.3 var(--display); color: var(--teal-ink); }
.exc .summary { margin: 0; }
.exc .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.exc .tags li { font-size: .95rem; background: var(--board); border: 1px solid var(--rail);
  border-radius: 4px; padding: .1rem .5rem; }
.exc .used { margin: 0; font-size: 1rem; color: var(--muted); }
.exc .used span { font-weight: 700; color: var(--fg); }
.exc .used a { color: var(--teal-ink); }
.exc .soon { align-self: flex-start; margin-top: auto; font: 600 1.05rem/1 var(--display); color: var(--muted);
  border: 2px dashed var(--rail); border-radius: 6px; padding: .5rem .8rem; }
.exc .video { align-self: flex-start; margin-top: auto; }
.wo .ex a { color: inherit; text-decoration-color: var(--rail); text-underline-offset: 3px; }
.wo .ex a:hover { text-decoration-color: var(--fire); }
.empty { text-align: center; padding: 2.5rem 1rem; background: var(--surface); border: 2px dashed var(--rail);
  border-radius: 10px; }
.empty .btn { border: 0; cursor: pointer; }

/* ------------------------------------------------ Abschluss */
.closing { background: var(--ink); color: #fff; border-top: 6px solid var(--fire); }
.closing .wrap { padding-block: clamp(3.5rem, 8vw, 6rem);
                 display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.closing h2 { font-size: var(--step-4); margin-bottom: .3em; }
.closing p { color: var(--on-dark); font-size: var(--step-1); line-height: 1.45; max-width: 36ch; margin: 0; }

/* ------------------------------------------------ Fuß */
footer { background: #182122; color: var(--on-dark); font-size: 1rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .8rem 2rem; padding-block: 1.6rem; }
footer nav { margin-left: auto; display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { text-decoration-color: var(--teal); text-underline-offset: 3px; }

/* ------------------------------------------------ Rechtliche Seiten */
.legal .wrap { max-width: 46rem; padding-block: clamp(3rem, 6vw, 5rem); }
.legal h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.legal h2 { font-size: var(--step-1); margin: 2rem 0 .5rem; }
.legal .missing { background: var(--warn-bg); padding: 0 .3em; border-radius: 3px; }

/* ------------------------------------------------ Das bin ich / Inspired by */
.info-page .wrap { max-width: 60rem; }
.info-page h2 { margin: 0 0 .4rem; font-size: var(--step-2); }
.me-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.5rem;
  align-items: center; margin-bottom: 3rem; }
.me-head img, .me-row img { width: 100%; height: auto; border-radius: 8px; }
.me-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.5rem;
  align-items: center; padding: 2rem 0; border-top: 2px solid var(--rail); }
.me-row.flip img { order: 2; }
.me-row.noimg { grid-template-columns: 1fr; }
/* Einleitung und Abschnitte in derselben Schrift und Größe */
.me-head .lead, .me-row p { margin: 0; font-size: var(--step-1); line-height: 1.5; }
.me-more { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; padding-top: 2rem;
  border-top: 2px solid var(--rail); }
.btn-calm-light { color: var(--fg); box-shadow: inset 0 0 0 2px var(--teal-ink); }
.btn-calm-light:hover { background: var(--surface); }
.insp { list-style: none; margin: 2rem 0 1.5rem; padding: 0; display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.insp li { background: var(--surface); border: 2px solid var(--rail); border-radius: 10px;
  padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .3rem; }
.insp .who { margin: 0; color: var(--teal-ink); font: 600 1.1rem/1.3 var(--display); }
.insp p { margin: 0; }
.insp .more, .homegym .more { margin-top: auto; padding-top: .6rem; font: 600 1.15rem/1.2 var(--display);
  color: var(--teal-ink); text-decoration: underline; text-decoration-color: var(--fire);
  text-decoration-thickness: 2px; text-underline-offset: 4px; }
.homegym .more { color: var(--teal-light); }
.info-page .note { color: var(--muted); font-size: 1rem; border-left: 4px solid var(--rail);
  padding-left: 1rem; }

/* So geht's: nummerierte Karten (offen) und gestrichelte Karten (geplant) */
.howto-page .wrap > h2 { margin: 3rem 0 .6rem; }
.howto { list-style: none; margin: 1.4rem 0 1.5rem; padding: 0; display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); counter-reset: step; }
.howto li { background: var(--surface); border: 2px solid var(--rail); border-radius: 10px;
  padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.howto h3 { font: 700 var(--step-1)/1.15 var(--display); }
.howto p { margin: 0; }
.steps li { counter-increment: step; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center;
  width: 1.7em; height: 1.7em; margin-right: .5rem; border-radius: 50%;
  background: var(--fire); color: var(--ink); font-size: .8em; vertical-align: .08em; }
.howto .more { margin-top: auto; padding-top: .6rem; font: 600 1.15rem/1.2 var(--display);
  color: var(--teal-ink); text-decoration: underline; text-decoration-color: var(--fire);
  text-decoration-thickness: 2px; text-underline-offset: 4px; }
.coming { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.coming li { border-style: dashed; background: transparent; }
.coming .badge { align-self: flex-start; font: 600 .95rem/1 var(--display); letter-spacing: .03em;
  color: var(--teal-ink); border: 2px solid var(--teal-ink); border-radius: 999px; padding: .3rem .65rem; }
.howto-page .note a { color: var(--teal-ink); }

/* ------------------------------------------------ Kontakt */
.contact-page .lead { font-size: var(--step-1); line-height: 1.45; color: var(--muted); }
.contact { display: grid; gap: .35rem; margin-top: 2rem; max-width: 40rem; }
.contact label { font: 600 var(--step-1)/1.2 var(--display); margin-top: 1.1rem; }
.contact input, .contact textarea {
  font: inherit; color: var(--fg); background: var(--surface);
  border: 2px solid var(--rail); border-radius: 6px; padding: .7rem .85rem; width: 100%;
}
.contact textarea { resize: vertical; min-height: 10rem; }
.contact input:focus, .contact textarea:focus { border-color: var(--teal-ink); outline: none;
  box-shadow: 0 0 0 3px rgba(79, 151, 157, .35); }
.contact .hint { color: var(--muted); font-size: 1rem; margin: .2rem 0 0; }
.contact .btn { justify-self: start; margin-top: .8rem; border: 0; cursor: pointer; }
.contact .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: none; background: var(--warn-bg); border-left: 5px solid var(--fire);
          padding: .9rem 1.1rem; border-radius: 4px; margin-top: 1.5rem; }
.notice:target, .notice.nojs { display: block; }
.contact .pow { margin: 1rem 0 0; font-size: 1rem; color: var(--muted); min-height: 1.6em; }
.contact .pow.ok { color: var(--teal-ink); font-weight: 700; }
.contact .pow.bad { color: var(--bad); font-weight: 700; }
.contact .btn:disabled { opacity: .7; cursor: progress; }
.legal .lead + p .btn { margin-top: 1rem; }

/* ------------------------------------------------ Schmal */
@media (max-width: 900px) {
  .how .howto, .howto-page .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap, .why .wrap, .gym, .closing .wrap, .care .wrap { grid-template-columns: 1fr; }
  .why h2 { position: static; }
  .stage { width: min(100%, 400px); margin-top: 1rem; }
  .clock { left: -.5rem; }
  .gym img { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  .me-head, .me-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .me-row.flip img { order: 0; }
  .me-head img, .me-row img { max-width: 360px; }
  .wo { grid-template-columns: 1fr; }
  .wd-head { grid-template-columns: 1fr; }
  .wd-head img { max-width: 300px; }
  .coming, .how .howto, .howto-page .steps { grid-template-columns: 1fr; }
  .wo img { max-width: 260px; }
  .fgroup { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 600px) {
  :root { --bar-h: 6.6rem; }
  .points { grid-template-columns: 1fr; }
  .top .wrap { padding-block: .7rem; gap: .55rem 1rem; }
  .brand img { width: 38px; height: 38px; }
  .wordmark { font-size: 1.35rem; }
  .top nav { margin-left: 0; width: 100%; gap: .3rem 1.1rem; order: 3; }
  .theme-toggle { order: 2; margin-left: auto; width: 2.3rem; height: 2.3rem; }
  .top nav a { font-size: 1.1rem; }
  .clock { left: .4rem; width: 132px; }
  .clock svg { width: 96px; height: 96px; }
  .stage figcaption, .wod-more { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .backdrop .layer { transition: none; }
}
