/* 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"); }
/* Handschrift für persönliche Notizen (OFL, z. B. Caveat). Der Browser lädt
   die Datei nur, wenn eine Notiz auf der Seite steht; fehlt sie, greift Barlow. */
@font-face { font-family: "TMF Hand"; font-weight: 400 700; font-display: swap;
  src: url("fonts/hand.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 */
  --fire-ink: #b14f17;     /* Schmiedefeuer für kleinen Text auf hell (5.3:1) */
  --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 16px; bis 21.11.2026 Basis 19px – zum Vergleich:
     1.1875 / 1.5 / 1.875 / clamp(2.25rem, 4vw, 3rem) / clamp(3rem, 7.2vw, 5.75rem)) */
  --step-0: 1rem;
  --step-1: 1.3rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.5vw, 2.5rem);
  --step-4: clamp(2.5rem, 6vw, 4.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; --fire-ink: #e87028;
  --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; --fire-ink: #e87028;
  --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 */
/* Sprunglink: unsichtbar, bis er per Tastatur den Fokus bekommt */
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 50; padding: .6rem 1rem;
  background: var(--fire); color: var(--ink); font-weight: 700; border-radius: 6px; }
.skip:focus { top: .75rem; }
.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; }
.wordmark small { font-size: .5em; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--fire); margin-left: .08em; }
/* Angemeldet im Mitgliederbereich: Abzeichen neben dem Schriftzug (Website per MEMBER_JS, App per layout.twig) */
.member-badge { align-self: center; margin-left: -.2rem; padding: .12rem .45rem; border-radius: 999px;
  font: 700 .72rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink, #1f2a2b); background: var(--fire); white-space: nowrap; }
.member-box[hidden] { display: none; }
.member-group form.inline { display: inline; margin: 0; }
.member-group .linkish { background: none; border: 0; padding: 0; cursor: pointer; color: var(--on-dark); font: 600 1.2rem/1.2 var(--display); }
/* Stern (Favorit) und Titelzeile mit Stern: App (_partials/fav_button.twig) und Website (MEMBER_JS) gleich */
.fav { background: none; border: 0; padding: .2rem; cursor: pointer; color: var(--muted); line-height: 0; flex: none; }
.fav svg { width: 1.9rem; height: 1.9rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav:hover { color: var(--fire-ink); }
.fav.on { color: var(--fire); }
.fav.on svg { fill: currentColor; }
.wcard-head { display: flex; justify-content: space-between; align-items: start; gap: .8rem; }
.wcard-head h1 { margin: 0 0 .6rem; }
.fav-form { margin: 0; }
.wo-head { display: flex; justify-content: space-between; align-items: start; gap: .6rem; }
.wo-head h2 { flex: 1; min-width: 0; }
.wo .fav-form { display: inline; margin: 0; }
/* Übungs-Auswahl (Übungslisten, CART_JS): Leiste unten, aufklappbar, ✕ leert */
.exc .cart-add.on { color: var(--fire-ink); box-shadow: inset 0 0 0 2px var(--fire); }
body.has-cart { padding-bottom: 5rem; }
.cart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center;
  padding: 0 .5rem .5rem; pointer-events: none; }
.cart[hidden], .cart [hidden] { display: none !important; }
.cart-box { pointer-events: auto; width: min(100%, 46rem); max-height: calc(100vh - var(--bar-h) - 1rem); overflow: auto;
  background: var(--surface); color: var(--fg); border: 2px solid var(--fire); border-radius: 12px;
  box-shadow: 0 -4px 24px rgb(0 0 0 / .25); }
.cart-box summary { cursor: pointer; list-style: none; padding: .8rem 1.2rem; display: flex; flex-wrap: wrap;
  gap: .2rem .6rem; align-items: baseline; font: 600 var(--step-1)/1.3 var(--display); position: sticky; top: 0;
  background: var(--surface); }
.cart-box summary::-webkit-details-marker { display: none; }
.cart-t { color: var(--teal-ink); }
.cart-o { margin-left: auto; font: 400 1rem/1 var(--text); color: var(--muted); text-decoration: underline;
  text-underline-offset: .2em; }
.cart-clear { align-self: center; background: none; border: 1px solid var(--rail); border-radius: 50%;
  width: 2rem; height: 2rem; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; flex: none; }
.cart-clear:hover { color: var(--bad); border-color: var(--bad); }
.cart-body { padding: 0 1.2rem 1.1rem; }
.cart-msg { margin: 0 0 .6rem; padding: .5rem .8rem; background: var(--warn-bg); border-left: 5px solid var(--fire); }
.cart-list { margin: 0 0 .9rem; padding-left: 1.6rem; display: grid; gap: .3rem; }
.cart-list li { display: flex; align-items: center; gap: .35rem; }
.cart-name { flex: 1; min-width: 0; }
.cart-list button { background: none; border: 1px solid var(--rail); border-radius: 6px; color: var(--fg);
  width: 2rem; height: 2rem; cursor: pointer; font-size: 1rem; line-height: 1; }
.cart-list button:disabled { opacity: .3; cursor: default; }
.cart-list .cart-remove:hover { color: var(--bad); border-color: var(--bad); }
.cart .fgroup { margin: 0 0 .6rem; }
.cart-params { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 .6rem; }
.cart-params label { display: flex; align-items: center; gap: .4rem; font-size: .95rem; }
.cart-params input { width: 5rem; padding: .3rem .4rem; border: 1px solid var(--rail); border-radius: 6px;
  background: var(--surface); color: var(--fg); font: inherit; }
.cart-dur { margin: 0 0 .8rem; font-weight: 700; }
.cart-go { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .5rem; }
.cart-hint { margin: 0; color: var(--muted); font-size: .92rem; }
/* Stern wie auf der Favoriten-Seite (intern/public/assets/app.css .fav) */
.wo .fav { background: none; border: 0; padding: .1rem; margin: -.15rem -.2rem 0 0; cursor: pointer; color: var(--muted); line-height: 0; flex: none; }
.wo .fav svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.wo .fav:hover { color: var(--fire-ink); }
.wo .fav.on { color: var(--fire); }
.wo .fav.on svg { fill: currentColor; }
.member-group .menu-h::after { content: " ●"; color: var(--fire); }
/* Sprache: runder Knopf wie Suche/Hell-Dunkel, Kürzel der anderen Sprache („en“/„de“) */
.top .lang { order: 3; display: inline-grid; place-items: center; flex: none;
  width: 2.6rem; height: 2.6rem; text-decoration: none; color: var(--on-dark);
  font: 700 1.05rem/1 var(--display); letter-spacing: .03em; text-transform: lowercase;
  border: 2px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.top .lang:hover { color: #fff; border-color: var(--teal-light); }
/* Menü (drei Striche): alle Seiten in Gruppen, <details> – geht auch ohne JavaScript */
.menu { position: relative; }
.menu-btn { list-style: none; display: inline-flex; align-items: center; gap: .45rem; height: 2.6rem; padding: 0 .9rem;
  color: var(--on-dark); border: 2px solid rgba(255, 255, 255, .2); border-radius: 999px; cursor: pointer;
  font: 600 1.15rem/1 var(--display); user-select: none; }
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn::marker { content: ""; }
.menu-btn svg { width: 1.35rem; height: 1.35rem; }
.menu-btn:hover { color: #fff; border-color: var(--teal-light); }
.menu[open] .menu-btn { color: #fff; border-color: var(--teal-light); background: var(--teal); }
.menu-panel { position: absolute; right: 0; top: calc(100% + .8rem); z-index: 30; width: min(46rem, calc(100vw - 2rem));
  background: var(--ink); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); padding: 1.3rem 1.5rem; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.1rem 1.8rem; }
.menu-h { margin: 0 0 .5rem; font: 700 .85rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-light); }
.menu-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.menu-group a { color: var(--on-dark); text-decoration: none; font: 600 1.2rem/1.2 var(--display); }
.menu-group a:hover { color: #fff; }
.menu-group a[aria-current="page"] { color: #fff; box-shadow: inset 3px 0 0 var(--fire); padding-left: .5rem; }
.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; }
/* Dauerlink kopieren: ganz rechts, gleiche Form; Haken nach dem Kopieren */
.copy-link { 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; }
.copy-link:hover { color: #fff; border-color: var(--teal-light); }
.copy-link svg { width: 1.25rem; height: 1.25rem; }
.copy-link .check { display: none; }
.copy-link.done { color: #fff; border-color: var(--teal-light); background: var(--teal); }
.copy-link.done .chain { display: none; }
.copy-link.done .check { display: block; }
/* Suche, Hell/Dunkel, Dauerlink: eine Gruppe, die nie auseinanderbricht;
   reicht der Platz nicht, rutscht sie geschlossen nach rechts in die nächste Zeile */
.top .tools { order: 3; margin-left: auto; display: flex; gap: .5rem; flex: none; }
/* Suche: Lupe neben dem Hell/Dunkel-Schalter, gleiche Form */
.search-link { order: 3; display: inline-grid; place-items: center; flex: none;
  width: 2.6rem; height: 2.6rem; color: var(--on-dark);
  border: 2px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.search-link:hover, .search-link[aria-current="page"] { color: #fff; border-color: var(--teal-light); }
.search-link svg { width: 1.25rem; height: 1.25rem; }

/* ------------------------------------------------ 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(2rem, 5vw, 4rem) clamp(2.8rem, 6.5vw, 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; }
.hero .pace { margin: 1.4rem 0 0; font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hero .pace a { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--fire);
  text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-flex; gap: .5rem; align-items: center; }
.hero .pace .pool { display: inline-flex; gap: .5rem; align-items: center; color: var(--on-dark); }
.hero .pace .cam, .hero .pace .kb, .hero .pace .play { width: 1.3em; height: 1.3em; color: var(--fire); flex: none; }

.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;
  border: 0; background: transparent; cursor: pointer;   /* <button class="btn"> (Timer starten, Favorit) ohne Browser-Rahmen/-Hintergrund wie die Links */
}
.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(3rem, 7vw, 5.5rem); }
.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); }
.why-story { max-width: 42rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.why-story p { margin: 0 0 1em; font-size: 1.12rem; line-height: 1.6; }
.why-story p:first-child { margin-top: 0; }
.why-story .why-sig { font: 600 2rem/1 "TMF Hand", var(--display); color: var(--teal-ink); margin: .2rem 0 0; }

/* ------------------------------------------------ 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(2.5rem, 6vw, 5rem) 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(3rem, 7vw, 5.5rem); }
.gear .lead { color: var(--muted); margin: 1rem 0 0; }
.group { margin-top: clamp(2rem, 4vw, 3rem); }
.group h2 { 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; }

/* Equipment, FAQ, Kontakt: Panorama des Home-Gyms als Hintergrund, kräftiger
   Schleier, weil Texte direkt auf der Fläche stehen (keine Karten) */
.gear-page .gear h1 { font-size: var(--step-3); }
.backdrop.gym-bg .layer { background-position: 50% 50%; }
.backdrop.gym-bg::after { background: linear-gradient(180deg, rgb(var(--veil) / .88) 0%,
                 rgb(var(--veil) / .84) 50%, rgb(var(--veil) / .80) 100%); }
.gym-page h1, .gym-page .lead, .gym-page h2, .gym-page .group h2 { text-shadow: 0 0 18px rgb(var(--veil) / .9); }

/* So geht's auf der Startseite */
.how { padding-block: clamp(3rem, 7vw, 5.5rem); }
.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: 10rem 1fr; gap: .6rem; align-items: start; }
.flabel { font: 600 var(--step-1)/1.6 var(--display); color: var(--teal-ink); hyphens: auto; overflow-wrap: break-word; }
/* Workout-Seite: Suche, „Weitere Filter“ zum Aufklappen, Ansicht kompakt/ausführlich */
.fsearch { font: inherit; width: 100%; max-width: 26rem; padding: .45rem .8rem; border: 2px solid var(--rail);
  border-radius: 999px; background: var(--board); color: var(--fg); }
.fsearch:focus { outline: none; border-color: var(--teal-ink); }
.more-filters { display: grid; gap: 1rem; }
.more-filters summary { cursor: pointer; font: 600 var(--step-1)/1.4 var(--display); color: var(--teal-ink); }
.more-filters[open] summary { margin-bottom: .4rem; }
.more-filters > .fgroup + .fgroup { margin-top: 1rem; }      /* gap greift bei <details> nicht */
.view-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin: 0 0 .8rem; }
.wo-list.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.wo-list.compact .wo { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem; border-radius: 12px; }
.wo-list.compact .wo > a:first-child, .wo-list.compact .wo .rhythm, .wo-list.compact .wo .tags,
.wo-list.compact .wo .hand-note { display: none; }
.wo-list.compact .wo .body { display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.wo-list.compact .wo h2 { margin: 0; font-size: var(--step-1); line-height: 1.15; }
.wo-list.compact .wo .meta { margin: 0; font-size: .95rem; }
.wo .meta .admin-only { color: var(--fire-ink); font-weight: 700; }   /* nur Admins sehen solche Karten */
.wo-list.compact .wo .ex { columns: auto; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .95rem; }
.wo-list.compact .wo .ex li { display: inline; margin: 0; }
.wo-list.compact .wo .ex li:not(:last-child)::after { content: " · "; }
.wo-list.compact .wo .ex span { display: none; }
.wo-list.compact .wo .variants { margin: 0; font-size: .95rem; }
.wo-list.compact .wo .wo-actions { margin-top: auto; padding-top: .3rem; }
.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; }
/* Ankreuzen (Mehrfachauswahl): Kästchen vor dem Text, gewählt in Feuer */
.chips button.chk::before { content: ""; display: inline-block; width: .75em; height: .75em;
  margin-right: .4em; border: 2px solid currentColor; border-radius: 3px; vertical-align: -.05em; }
.chips button.chk[aria-pressed="true"] { background: var(--board); color: var(--fg); border-color: var(--fire); }
.chips button.chk[aria-pressed="true"]::before { background: var(--fire); border-color: var(--fire); }
.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; }
/* Mein Equipment: Inventar im Browser, oberhalb der Filter */
.mygear { margin: 2rem 0 0; background: var(--surface); border: 2px solid var(--fire);
  border-radius: 10px; }
.mygear summary { cursor: pointer; padding: .9rem 1.3rem; font: 600 var(--step-1)/1.4 var(--display);
  list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: baseline; }
.mygear summary::-webkit-details-marker { display: none; }
.mygear .gear-t { color: var(--teal-ink); }
.mygear .gear-s { color: var(--fg); }
.mygear .gear-e { margin-left: auto; font: 400 1rem/1 var(--text); color: var(--muted);
  text-decoration: underline; text-underline-offset: .2em; }
.mygear[open] .gear-e { visibility: hidden; }
.gear-body { padding: 0 1.3rem 1.1rem; }
.gear-body .hint { margin: 0 0 1rem; color: var(--muted); }
.gear-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.gear-list .pair { display: flex; align-items: center; gap: .5rem; padding: .25rem .3rem .25rem .9rem;
  border: 2px solid var(--rail); border-radius: 999px; background: var(--board); }
.gear-list .gl { font: 600 1.1rem/1 var(--display); }
.gear-list .seg { display: inline-flex; border-radius: 999px; overflow: hidden; border: 2px solid var(--rail); }
.gear-list .seg button { font: 600 1.05rem/1 var(--display); min-width: 2.4rem; padding: .45rem .5rem;
  background: transparent; color: var(--fg); border: 0; cursor: pointer; }
.gear-list .seg button + button { border-left: 2px solid var(--rail); }
.gear-list .seg button[aria-pressed="true"] { background: var(--fire); color: #1f2a2b; }
.gear-list .seg button[data-n="0"][aria-pressed="true"] { background: var(--rail); color: var(--fg); }
.gear-list .gtog { font: 600 1.1rem/1 var(--display); color: var(--fg); background: var(--board);
  border: 2px solid var(--rail); border-radius: 999px; padding: .6rem .95rem; cursor: pointer; }
.gear-list .gtog[aria-pressed="true"] { border-color: var(--fire); box-shadow: inset 0 0 0 1px var(--fire); }
.gear-list .gtog[aria-pressed="true"]::before { content: "✓ "; color: var(--fire-ink, var(--fire)); }
.gear-list button:focus-visible, .mygear summary:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.gear-clear { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em; font: inherit; }
/* Mitglieder-Listen: schlankes „Mein Equipment“ (Nicht filtern / Mein Equipment + Link) */
.mygear.mygear-slim { margin: 1.2rem 0 1rem; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.mygear-slim .gear-line { margin: .5rem 0 0; }
.mygear-slim .chips button:disabled { opacity: .45; cursor: default; }
.mygear + .filters { margin-top: 1rem; }
.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); }
/* Persönliche Notiz: wie mit Marker ans Board geschrieben – bewusst ohne Kasten */
.hand-note { margin: .2rem 0 .9rem; color: var(--teal-ink); line-height: 1.25; }
.hand-note .hand { font: 600 1.55rem/1.2 "TMF Hand", var(--display); }
/* Anführungszeichen nach Sprache (lang am <html>), Feuer nur als Schmuck */
.hand-note .hand::before { content: open-quote; color: var(--fire); }
.hand-note .hand::after { content: close-quote; color: var(--fire); }
.hand-note .sig { font: 600 1.1rem/1 var(--display); white-space: nowrap; }
.wo-detail .hand-note { margin: .4rem 0 1rem; }
.wo-detail .hand-note .hand { font-size: 1.8rem; }
.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; }
/* Längen-Varianten (variant_of): Links auf Karte und Detailseite */
.wo .variants { margin: .2rem 0 .6rem; display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.wo .variants .lbl { font: 700 1.05rem/1.3 var(--display); color: var(--muted); }
.wo .variants a, ul.variants a { color: var(--teal-ink); text-decoration: underline;
  text-decoration-color: var(--fire); text-decoration-thickness: 2px; text-underline-offset: 3px; }
ul.variants { margin: .4rem 0 1.6rem; padding-left: 1.2rem; }
ul.variants li { margin: .25rem 0; }
ul.variants [aria-current] { font-weight: 700; }
.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; }
/* Workout-Seite: Knöpfe in zwei Zeilen (trainieren / dokumentieren, App + MEMBER_JS), beide auf demselben
   Raster gleich breiter Spalten – so stehen obere und untere Reihe ohne Versatz übereinander; schmal eine Spalte.
   „Zuletzt geloggt“ leitet die zweite Zeile ein. */
.wd-head .wo-actions:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; }
.wd-head .wo-actions > .btn, .wd-head .wo-actions > form .btn { justify-content: center; width: 100%;
  padding-inline: .6rem; font-size: 1.15rem; gap: .45rem; }
.wd-head .wo-actions > form { display: flex; margin: 0; }
.wd-head p.wo-last, .wd-head p.member-last { margin: 1rem 0 .75rem; }
/* App ohne „Zuletzt geloggt“ (nie geloggt): zweite Knopfreihe folgt direkt – gleicher Abstand wie im Raster, dann Luft zur Takt-Box */
.wd-head .wo-actions:not([hidden]) + .wo-actions:not([hidden]) { margin: .6rem 0 1rem; }
.wd-head p.wo-last + .wo-actions:not([hidden]) { margin-bottom: 1rem; }
.wd-head p.meta { margin-bottom: .75rem; }   /* Abstand Angaben-Zeile → Knöpfe (app.css setzt sonst 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) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.wd-head > div { min-width: 0; }   /* Knopf-Raster darf die Spalte nicht aufweiten */
.wd-head .member-box:not([hidden]) { margin-bottom: 1rem; }   /* Abstand zur Takt-Box (Website) */
.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-ink); }
.wd-ex .reps { color: var(--fire-ink); 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 .switch { margin: .2rem 0 .4rem; font-weight: 600; }
.wd-ex .switch .lbl { color: var(--fire-ink); }
/* Workout-Detail: Übungskarte, darunter eigener Kasten mit den Alternativen */
.wd-ex > li.ex-item { background: none; border: 0; padding: 0; gap: .6rem; }
.wd-ex .ex-card { flex: 1; display: flex; flex-direction: column; gap: .5rem;
  background: var(--surface); border: 2px solid var(--rail); border-radius: 10px; padding: 1.2rem 1.3rem; }
/* Ganze Karte klickbar: der „Mehr zur Übung“-Link spannt sich über die Karte
   (ein Link für Screenreader); die Alternativen liegen außerhalb und bleiben eigene Links */
.wd-ex .ex-card:has(.more) { position: relative; cursor: pointer; }
.wd-ex .ex-card .more::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.wd-ex .ex-card:has(.more):hover { border-color: var(--teal); }
.wd-ex .ex-card .more:focus-visible { outline: none; }
.wd-ex .ex-card:has(.more:focus-visible) { outline: 3px solid var(--fire); outline-offset: 2px; }
.wd-ex .ex-alts { border: 2px dashed var(--teal); border-radius: 10px; padding: .8rem 1.1rem; }
.wd-ex .ex-alts > p { font: 700 1.1rem/1.2 var(--display); color: var(--teal-ink);
  text-transform: uppercase; letter-spacing: .03em; margin-bottom: .35rem; }
.wd-ex .ex-alts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.wd-ex .ex-alts li { background: none; border: 0; padding: 0; display: block; font-size: 1rem; }
.wd-ex .ex-alts li span { color: var(--muted); }
.wd-ex .ex-alts a, .ex-detail .used a { color: var(--teal-ink); font-weight: 600; }
.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; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.wod-more .wod-video svg { width: 1.2em; height: 1.2em; vertical-align: -.22em; margin-right: .3em; }
.wod-more [hidden] { display: none; }
.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(2.8rem, 6.5vw, 5rem);
                 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(2rem, 4.5vw, 3.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); }
/* Abschnittsüberschrift nach Knöpfen/Text/Listen: Luft nach oben (z. B. „Neuer Timer“ → „Meine Timer“).
   Nur direkt in .wrap; :where hält die Spezifität niedrig, damit eigene Abstände (.wo-detail …) gelten. */
:where(.info-page .wrap) > h2:not(:first-child) { margin-top: 2.2rem; }
.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, .me-row video { width: 100%; height: auto; border-radius: 8px; }
/* Video mit Pause-Knopf unten rechts */
.me-media { position: relative; max-width: 330px; justify-self: center; width: 100%; }
.me-media video { display: block; }
.vid-toggle { position: absolute; right: .6rem; bottom: .6rem; width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center; padding: 0; cursor: pointer; border-radius: 999px;
  background: rgba(31, 42, 43, .78); border: 2px solid rgba(255, 255, 255, .55); color: #fff; }
.vid-toggle:hover { border-color: var(--fire); }
.vid-toggle span { width: 14px; height: 16px; border-left: 5px solid currentColor;
  border-right: 5px solid currentColor; }
.vid-toggle.paused span { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent currentColor; margin-left: 4px; }
.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, .me-row.flip video, .me-row.flip .me-media { order: 2; }
.me-row.noimg { grid-template-columns: 1fr; }
/* Video ist höher als die Fotos (2:3): etwa auf deren Höhe begrenzen */
.me-row > video { max-width: 330px; justify-self: center; }
/* 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; }

/* Mein Training: Heatmap (Spalten = Wochen), Zahlen, Tagesliste */
.training h2 { margin-top: 2.5rem; }
.tl-heat-wrap { display: flex; gap: .5rem; margin-top: 1rem; max-width: 34rem; }
.tl-wds, .tl-heat { display: grid; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.tl-heat { grid-auto-flow: column; grid-auto-columns: 1fr; flex: 1; }
.tl-wd { font-size: .8rem; line-height: 1; color: var(--muted); display: flex; align-items: center; }
.tl-cell { display: inline-block; aspect-ratio: 1; min-width: 0; border-radius: 3px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rail); }
/* Kraft = Schmiedefeuer, Kondition = Glut (Bernstein), Sport/Erholung = Petrol */
.training { --amber: #f2b134; }
.tl-cell.str { background: var(--fire); box-shadow: none; }
.tl-cell.cond { background: var(--amber); box-shadow: none; }
.tl-cell.both { background: linear-gradient(135deg, var(--fire) 50%, var(--amber) 50%); box-shadow: none; }
.tl-cell.active { background: var(--teal); box-shadow: none; }
.tl-cell.future { visibility: hidden; }
.tl-cell { display: inline-grid; place-items: center; }
.tl-cell .cam { width: 62%; height: 62%; color: var(--ink); }
.tl-cell:not(.str):not(.cond):not(.both):not(.active) .cam { color: var(--muted); }
.tl-cam .cam { width: 1.1em; height: 1.1em; vertical-align: -.2em; color: var(--muted); }
.meta .filmed .cam { width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-right: .3em; color: var(--muted); }
.tl-older { margin: 0 0 2rem; }
.tl-older summary { cursor: pointer; font: 600 var(--step-1)/1.3 var(--display); padding: .6rem 0;
  border-top: 2px solid var(--rail); }
.tl-older .tl-days { margin-top: 0; }
.tl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem;
  margin: .8rem 0 0; font-size: 1rem; color: var(--muted); }
.tl-legend .tl-cell { width: 1rem; margin-right: -.6rem; }
/* Belastungskurve neben der Heatmap: Muskeln/Kraft (Feuer) und Kondition (Glut) je Tag,
   Erholungsbedarf am Morgen als Petrol-Fläche, Frische am Morgen als Punktreihe;
   Bänder wie die Welle (FAQ train_in_waves), neutral gehalten */
.tl-charts { display: grid; gap: 1.5rem 2.5rem; align-items: start; }
@media (min-width: 60rem) { .tl-charts { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); } }
.tl-rpe { margin: 1rem 0 0; max-width: 34rem; }
.tl-rpe figcaption { font: 600 var(--step-0)/1.3 var(--display); color: var(--muted); margin-bottom: .3rem; }
.tl-rpe svg { display: block; width: 100%; height: auto; overflow: visible; }
.tl-rpe .band.hi { fill: var(--ink); opacity: .05; }
.tl-rpe .band.mid { fill: var(--ink); opacity: .025; }
.tl-rpe .grid { stroke: var(--rail); stroke-width: 1; }
.tl-rpe .ax { font-size: 11px; fill: var(--muted); }
.tl-rpe .rest { fill: var(--muted); opacity: .35; }
.tl-rpe .load.muscle { fill: var(--fire); }
.tl-rpe .load.cardio { fill: var(--amber); }
.tl-rpe .room { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 4 3; }
.tl-rpe .ord-load { display: none; }
.tl-swap { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tl-swap:checked ~ svg .ord-load { display: inline; }
.tl-swap:checked ~ svg .ord-rest { display: none; }
.tl-swap-l { float: right; margin-top: -1.9rem; font-size: var(--step--1, .85rem); color: var(--muted);
  border: 1px solid var(--rail); border-radius: 999px; padding: .15rem .6rem; cursor: pointer; user-select: none; }
.tl-swap-l::before { content: "⇅ "; }
.tl-swap:focus-visible + .tl-swap-l { outline: 2px solid var(--teal); outline-offset: 2px; }
.tl-swap:checked + .tl-swap-l { color: var(--ink); border-color: var(--teal); }
.tl-axis { margin: .6rem 0 .1rem; font: 600 var(--step--1, .85rem)/1.2 var(--display); color: var(--muted); }
.tl-rpe .line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.tl-rpe .line.muscle { stroke: var(--fire); }
.tl-rpe .line.cardio { stroke: var(--amber); stroke-dasharray: 5 3; }
.tl-rpe .dot { stroke: var(--surface); stroke-width: 1.5; }
.tl-rpe .dot.muscle { fill: var(--fire); }
.tl-rpe .dot.cardio { fill: var(--amber); }
.tl-rpe .fresh { fill: var(--teal); stroke: var(--teal); stroke-width: 1; }
.tl-rpe .fresh.f1 { fill-opacity: 0; }
.tl-rpe .fresh.f2 { fill-opacity: .25; }
.tl-rpe .fresh.f3 { fill-opacity: .5; }
.tl-rpe .fresh.f4 { fill-opacity: .75; }
.tl-band, .tl-line, .tl-dot { display: inline-block; width: 1rem; height: 1rem; border-radius: 3px; margin-right: -.6rem;
  box-shadow: inset 0 0 0 1px var(--rail); }
.tl-band.rest { background: var(--muted); opacity: .45; box-shadow: none; }
.tl-band.load { background: linear-gradient(90deg, var(--fire) 50%, var(--amber) 50%); box-shadow: none; }
.tl-line { height: 0; border-top: 3px solid var(--fire); border-radius: 0; box-shadow: none; vertical-align: middle; }
.tl-line.cardio { border-top: 3px dashed var(--amber); }
.tl-line.room { border-top: 2px dashed var(--teal); }
.tl-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--teal); box-shadow: none; }
.tl-stats { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.tl-stats li { background: var(--surface); border: 2px solid var(--rail); border-radius: 10px;
  padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.tl-stats b { font: 700 var(--step-3)/1 var(--display); color: var(--fire-ink); }
.tl-stats span { color: var(--muted); }
/* Ulfs Training: aktuelle Favoriten (Sterne aus der App) */
.tl-favs { list-style: none; margin: .8rem 0 2rem; padding: 0; display: grid; gap: .45rem; }
.tl-favs a { font: 700 1.2rem/1.3 var(--display); color: var(--fg); text-decoration-color: var(--fire); text-underline-offset: 3px; }
.tl-favs a::before { content: "★ "; color: var(--fire); }
.tl-days { list-style: none; margin: 1rem 0 2rem; padding: 0; }
.tl-days > li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem;
  padding: .7rem 0; border-top: 2px solid var(--rail); }
.tl-days h3 { margin: 0; font: 600 1.15rem/1.4 var(--display); }
.tl-days ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.tl-days ul li { padding-left: .8rem; border-left: 4px solid var(--rail); }
.tl-days ul li.str { border-left-color: var(--fire); }
.tl-days ul li.cond { border-left-color: var(--amber); }
.tl-days ul li.active { border-left-color: var(--teal); }
.tl-name { font-weight: 700; }
.tl-meta { color: var(--muted); }
@media (max-width: 560px) {
  .tl-days > li { grid-template-columns: 1fr; gap: .3rem; }
}

/* Blog: Übersicht als Karten, Beitrag als Lesespalte */
.posts { list-style: none; margin: 2rem 0 1.5rem; padding: 0; display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.posts li { background: var(--surface); border: 2px solid var(--rail); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column; }
.posts img { display: block; width: 100%; height: auto; }
.posts li > div { padding: 1.1rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.posts h2 { font-size: var(--step-1); line-height: 1.15; }
.posts h2 a { color: inherit; text-decoration: none; }
.posts h2 a:hover { color: var(--teal-ink); }
.posts p { margin: 0; }
.posts .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; }
.blog-page .date, .post-page .date { color: var(--muted); font: 600 1rem/1.2 var(--display);
  letter-spacing: .03em; margin: 0; }
.blog-page .badge, .post-page .badge { font: 600 .9rem/1 var(--display); color: var(--fire-ink);
  border: 2px solid var(--fire-ink); border-radius: 999px; padding: .15rem .5rem; margin-left: .4rem; }
.post-page .wrap { max-width: 46rem; }
.post-page .crumb { margin: 0 0 1rem; }
.post-page .crumb a { color: var(--teal-ink); }
.post-page h1 { margin-bottom: .4rem; }
.post-page .lead { font-size: var(--step-1); line-height: 1.5; margin: .8rem 0 1.4rem; }
.post-img { display: block; width: 100%; height: auto; border-radius: 8px; }
.post-page .videos { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 0; }
.post-page .wrap > h2 { margin: 2.2rem 0 .5rem; }
.post-page p, .post-page li { line-height: 1.6; }
.post-page ul { padding-left: 1.3rem; }
.post-page li + li { margin-top: .35rem; }
.post-page li::marker { color: var(--fire); }
.post-page .note { margin-top: 2.5rem; }
.post-page .note a { color: var(--teal-ink); }

/* 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 li.ready { border-style: solid; }
.coming li.ready .badge { color: var(--fire-ink); border-color: var(--fire-ink); }
.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); }

/* FAQ: Inhaltsliste, je Frage Whiteboard links, Antwort rechts */
.faq-toc { margin: 1.4rem 0 0; padding-left: 1.2rem; }
.faq-toc li { margin: .3rem 0; }
.faq-page a { color: var(--teal-ink); }
.faq-list { list-style: none; margin: 2rem 0 2rem; padding: 0; display: grid; gap: 1.4rem; }
.faq { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 2rem; align-items: start;
  background: var(--surface); border: 2px solid var(--rail); border-radius: 10px;
  padding: 1.4rem; }
.faq img { width: 100%; height: auto; border-radius: 6px; }
.faq h2 { font-size: var(--step-1); margin: 0 0 .6rem; }
.faq p { margin: 0 0 .8rem; }
.faq .see-also { color: var(--muted); font-size: 1rem; margin: 1rem 0 0; }
.faq .see-also span { font-weight: 600; }

/* Suche: Eingabefeld mit Lupe, Ideen, Trefferliste (Art · Titel · Kurztext) */
.search-box { position: relative; margin-top: 1.6rem; max-width: 44rem; }
.search-box svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%;
  width: 1.4rem; height: 1.4rem; color: var(--muted); pointer-events: none; }
.search-box input { font: inherit; font-size: var(--step-1); color: var(--fg); width: 100%;
  background: var(--surface); border: 2px solid var(--rail); border-radius: 10px;
  padding: .8rem 1rem .8rem 3.2rem; }
.search-box input:focus { border-color: var(--teal-ink); outline: none; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .9rem 0 0; }
.suggest span { color: var(--muted); font-size: 1rem; margin-right: .2rem; }
.suggest button { font: 600 1.05rem/1 var(--display); color: var(--fg); background: var(--surface);
  border: 2px solid var(--rail); border-radius: 999px; padding: .4rem .8rem; cursor: pointer; }
.suggest button:hover { border-color: var(--teal-ink); }
.search-page .count { color: var(--muted); margin: 1.4rem 0 .6rem; min-height: 1.5em; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; max-width: 44rem; }
.results a { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: baseline;
  padding: .9rem 1.1rem; background: var(--surface); border: 2px solid var(--rail);
  border-radius: 10px; color: var(--fg); text-decoration: none; }
.results a:hover, .results a:focus-visible { border-color: var(--teal-ink); }
.results .kind { font: 600 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  color: var(--teal-ink); }
.results .kind-workout, .results .kind-blog { color: var(--fire-ink); }
.results strong { font: 700 var(--step-1)/1.15 var(--display); }
.results .desc { grid-column: 2; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.search-page .note a { color: var(--teal-ink); }
@media (max-width: 600px) {
  .results a { grid-template-columns: 1fr; }
  .results .desc { grid-column: 1; }
}

/* ------------------------------------------------ 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, .me-row.flip video, .me-row.flip .me-media { order: 0; }
  .me-head img, .me-row img, .me-row video { max-width: 360px; }
  .wo { grid-template-columns: 1fr; }
  .wd-head { grid-template-columns: minmax(0, 1fr); }
  .wd-head img { max-width: 300px; }
  .faq { grid-template-columns: 1fr; gap: 1rem; }
  .faq img { max-width: 220px; }
  .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: 3.9rem; }      /* eine Zeile: alle Seiten stecken im Menü */
  .points { grid-template-columns: 1fr; }
  .top .wrap { padding-block: .7rem; gap: .55rem 1rem; }
  .brand img { width: 38px; height: 38px; }
  .wordmark { font-size: 1.35rem; }
  .menu-txt { display: none; }
  .menu-btn { width: 2.3rem; height: 2.3rem; padding: 0; justify-content: center; }
  .menu-panel { position: fixed; left: .8rem; right: .8rem; width: auto; top: calc(var(--bar-h) - .2rem);
    max-height: calc(100vh - var(--bar-h) - 1rem); max-height: calc(100dvh - var(--bar-h) - 1rem); overflow-y: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem 1.1rem; }
  .top .lang { width: 2.3rem; height: 2.3rem; font-size: 1rem; }
  .theme-toggle { width: 2.3rem; height: 2.3rem; }
  .search-link { width: 2.3rem; height: 2.3rem; }
  .copy-link { width: 2.3rem; height: 2.3rem; }
  .top .tools { order: 2; gap: .35rem; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 1.15rem; }
  .brand img { width: 34px; height: 34px; }
  .brand { gap: .45rem; }
  .top .wrap { column-gap: .5rem; }
  .top .tools { gap: .25rem; }
  .theme-toggle, .search-link, .copy-link { width: 2.1rem; height: 2.1rem; }
  .menu-btn { width: 2.1rem; height: 2.1rem; }
  .top .lang { width: 2.1rem; height: 2.1rem; font-size: .95rem; }
  .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; }
}

/* Workout-Aufbau: Ziele, je Format eine Karte mit allen Takten */
.structure-link { margin: -.4rem 0 1.2rem; }
.structure-link a { color: var(--teal-ink); }
.structure-page .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tgoals { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: .5rem; }
.tgoals b { font: 700 var(--step-0)/1.2 var(--display); }
.structure-page .fmt { background: var(--surface); border: 2px solid var(--rail); border-radius: 10px;
  padding: 1.3rem 1.4rem; margin: 1.2rem 0; scroll-margin-top: calc(var(--bar-h) + 1rem); }
.structure-page .fmt h3 { font: 700 var(--step-1)/1.15 var(--display); margin: 0 0 .4rem; }
.structure-page .fmt p { margin: 0 0 .8rem; }
.structure-page .fmt p a { color: var(--teal-ink); }
.tprof { list-style: none; margin: .4rem 0 .6rem; padding: 0; }
.tprof li { display: grid; grid-template-columns: 9.5rem 8.5rem minmax(0, 1fr) auto; gap: .2rem 1rem;
  align-items: baseline; padding: .55rem 0; border-top: 1px solid var(--rail); }
.tprof .tl { font: 700 1.2rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.tprof .tg { font: 600 1rem/1.2 var(--display); color: var(--teal-ink); }
.tprof .tg.g-strength, .tgoals .g-strength { color: var(--fire-ink); }
.tprof .tc { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.structure-page .fmt .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; }
@media (max-width: 760px) {
  .structure-page .howto { grid-template-columns: 1fr; }
  .tprof li { grid-template-columns: auto minmax(0, 1fr); }
  .tprof .tr, .tprof .tc { grid-column: 1 / -1; }
}

/* Tipps & Tricks auf der Workout-Detailseite (Feld tips) */
.wd-tips { margin: 0 0 1.2rem; padding-left: 1.2rem; display: grid; gap: .5rem; }
.wd-tips li::marker { color: var(--fire); }

/* Video nur im internen Bereich (website: on + intern: on) */
.btn.is-intern { cursor: default; opacity: .75; }

/* Workout-Wunsch (wish.js, Website und interner Bereich) */
.wish { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.wish-step { background: var(--surface); border: 2px solid var(--rail); border-radius: 10px; padding: 1.1rem 1.3rem; }
.wish-step h2 { margin: 0 0 .6rem; font: 700 var(--step-2)/1.15 var(--display); }
/* Schritte auf- und zuklappbar (<details>); im Kopf die aktuelle Auswahl */
.wish-step > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.wish-step > summary::-webkit-details-marker { display: none; }
.wish-step > summary h2 { margin: 0; }
.wish-step > summary h2::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--teal-ink); transition: transform .15s; }
.wish-step[open] > summary h2::before { transform: rotate(90deg); }
.wish-step[open] > summary { margin-bottom: .6rem; }
.wish-sum { color: var(--muted); font-size: .95rem; }
.wish-ex .via { font-weight: 400; opacity: .7; font-size: .9em; }
.wish-timers { margin-top: .4rem; }
.wish-step h3 { margin: 1rem 0 .45rem; font: 600 var(--step-1)/1.2 var(--display); color: var(--teal-ink); }
.wish-step h3 .n { font: 400 .9rem/1 var(--text); color: var(--muted); }
.wish-step .filters { margin: .6rem 0 0; padding: 0; border: 0; background: none; }
.wish-ex { max-height: 32rem; overflow-y: auto; padding-right: .3rem; }
.wish-ex-tools { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
.wish-ex-tools input[type="search"] { font: 400 1rem/1.3 var(--text); padding: .55rem .7rem; border: 2px solid var(--rail);
  border-radius: 8px; background: var(--board); color: var(--fg); min-width: 14rem; }
.wish-ex-tools .check { display: inline-flex; gap: .45rem; align-items: center; }
.wish-ex-tools .check input { width: 1.2rem; height: 1.2rem; accent-color: var(--fire); }
.wish-picked .chips { margin-bottom: .4rem; }
.wish-hits { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .45rem; }
.wish-hits a { font: 700 var(--step-1)/1.2 var(--display); }
.wish-hits .meta { color: var(--muted); margin-left: .4rem; }
.wish-summary { color: var(--muted); }
.wish-step-send .contact { margin-top: .4rem; }
.wish .linkish { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: .2em; }
.wo-wish { margin: 1rem 0 0; font-weight: 700; }
.wish .notice, .wish-login.notice:not([hidden]) { display: block; }

/* ---------- Intervall-Timer im Browser (timer.js) – Vollbild über der Seite ----------
   Farben wie im Video: Schmiedefeuer = Arbeit/Aktion, Petrol = Pause/Vorbereitung.
   Passt ohne Scrollen auf jeden Bildschirm: feste Höhe, Schriftgrößen auch nach der Höhe. */
html.tmr-open { overflow: hidden; }
.tmr { position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: #fff;
  display: flex; gap: 1.2rem; height: 100vh; height: 100dvh;
  padding: max(.6rem, env(safe-area-inset-top)) 1rem max(.6rem, env(safe-area-inset-bottom));
  overflow: hidden; text-align: center; }
.tmr-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: clamp(.25rem, 1.2vh, .6rem); }
/* Seitenleiste: Kapitel zum Springen bzw. Rundenzähler – nur wenn Platz ist */
.tmr-side { display: none; }
/* breit – oder Handy quer (wenig Höhe): Zähler/Kapitel rechts daneben; gleiche Abfrage in timer.js (wide) */
@media (min-width: 960px) and (min-aspect-ratio: 5/4), (max-height: 560px) and (min-aspect-ratio: 4/3) {
  .tmr.has-side .tmr-side, .tmr.has-counter .tmr-side { display: flex; flex-direction: column; gap: .5rem;
    flex: 0 0 clamp(15rem, 24vw, 21rem); min-height: 0; text-align: left; }
}
.tmr-side-title { margin: .4rem 0 0; font: 700 1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-dark); }
.tmr-chapters { list-style: none; margin: 0; padding: 0 .3rem 0 0; overflow-y: auto; min-height: 0; flex: 1 1 auto;
  display: grid; gap: .25rem; align-content: start; }
.tmr-chapters button { width: 100%; display: flex; gap: .7rem; align-items: baseline; text-align: left; cursor: pointer;
  background: none; border: 0; border-left: 4px solid transparent; border-radius: 6px; color: var(--on-dark);
  padding: .4rem .6rem; font: 600 1.05rem/1.25 var(--display); }
.tmr-chapters button:hover { background: #2c3a3b; color: #fff; }
.tmr-chapters button[aria-current="step"] { background: #2c3a3b; color: #fff; border-left-color: var(--fire); }
.tmr-ch-time { font-variant-numeric: tabular-nums; color: var(--teal-light); flex: none; min-width: 3.2em; }
/* Zähler (AMRAP): Sets + Wiederholungen, große Knöpfe – auf dem Tablet gut zu treffen */
.tmr-count { display: grid; gap: .45rem; flex: none; }
.tmr-count-values { display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; align-items: stretch; }
.tmr-count-box { display: grid; gap: .1rem; background: #2c3a3b; border-radius: 10px; padding: .3rem .6rem; }
.tmr-count-l { color: var(--on-dark); font: 600 .9rem/1.2 var(--display); }
.tmr-count-v { font: 700 clamp(1.8rem, 5.5vh, 2.8rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.tmr-minus { min-width: 3.2rem; border: 0; border-radius: 10px; background: #2c3a3b; color: #fff; font-size: 1.6rem; cursor: pointer; }
.tmr-minus:disabled { opacity: .4; cursor: default; }
.tmr-plus { min-height: clamp(3rem, 8vh, 4.4rem); border: 0; border-radius: 14px; background: var(--teal); color: #fff;
  font: 700 clamp(1.6rem, 5vh, 2.6rem)/1 var(--display); cursor: pointer; }
.tmr-plus:active { background: var(--teal-light); color: var(--ink); }
.tmr-count-reps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.tmr-plus-n { min-height: clamp(2.8rem, 7vh, 4rem); border: 0; border-radius: 12px; background: var(--fire); color: var(--ink);
  font: 700 clamp(1.4rem, 4vh, 2.2rem)/1 var(--display); cursor: pointer; }
.tmr-plus-n:active { background: #f2843f; }
.tmr-side .tmr-count { margin-top: auto; gap: .7rem; }
.tmr-side .tmr-count-v { font-size: clamp(2.6rem, 9vh, 4.5rem); }
.tmr-side .tmr-plus { min-height: clamp(5rem, 18vh, 9rem); font-size: clamp(2.4rem, 7vh, 4rem); }
.tmr-side .tmr-plus-n { min-height: clamp(4rem, 12vh, 6.5rem); font-size: clamp(1.8rem, 5vh, 3rem); }
/* Zähler auf dem Handy (unter der Steuerleiste): zwei Zeilen statt drei – Werte + „−“, darunter
   „+ Set“ und +1/+10/+20 nebeneinander; Uhr und Summen etwas kleiner, damit die Knöpfe groß bleiben.
   touch-action: schnelles Tippen auf +1 zoomt sonst die Seite (Doppeltipp). */
.tmr-count button, .tmr-ctrl button { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tmr-main .tmr-count { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: .4rem; }
.tmr-main .tmr-count-values { grid-column: 1 / -1; gap: .4rem; }
.tmr-main .tmr-count-reps { display: contents; }
.tmr-main .tmr-count-box { grid-auto-flow: column; justify-content: space-between; align-items: baseline; padding: .25rem .7rem; }
.tmr-main .tmr-count-v { font-size: clamp(1.6rem, 4.6vh, 2.4rem); }
.tmr-main .tmr-plus, .tmr-main .tmr-plus-n { min-height: clamp(3.4rem, 9vh, 4.6rem); font-size: clamp(1.4rem, 4.2vh, 2.1rem);
  border-radius: 12px; }
.tmr.count-inline .tmr-time { font-size: clamp(3.2rem, min(22vw, 14vh), 8rem); }
.tmr.count-inline .tmr-totals b { font-size: clamp(1.1rem, 3vh, 1.6rem); }
.tmr.count-inline .tmr-hint, .tmr.count-inline .tmr-next { display: none; }
/* Kopf mit Logo, Banner, Uhr, Fortschritt, Summen, Steuerung */
.tmr-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex: none; }
.tmr-brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.tmr-brand img { width: clamp(2rem, 5vh, 2.6rem); height: auto; flex: none; }
.tmr-title { margin: 0; min-width: 0; font: 600 1.1rem/1.2 var(--display); color: var(--on-dark); text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmr-close { background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.tmr-banner { border-radius: 12px; padding: clamp(.4rem, 1.5vh, .9rem) .8rem; background: var(--teal); color: #fff;
  flex: none; display: flex; flex-direction: column; justify-content: center; }
.tmr[data-kind="action"] .tmr-banner { background: var(--fire); color: var(--ink); }
.tmr-label { margin: 0; font: 700 clamp(2rem, min(10vw, 7.5vh), 4.6rem)/1.02 var(--display); text-wrap: balance;
  overflow-wrap: anywhere; }
.tmr-label-row { display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.tmr-more { border: 2px solid currentColor; background: rgb(255 255 255 / .15); color: inherit; border-radius: 999px;
  padding: .25rem .9rem; font: 700 clamp(1.1rem, 3vh, 1.5rem)/1.1 var(--display); cursor: pointer; }
.tmr-more:hover { background: rgb(255 255 255 / .3); }
.tmr-more[hidden] { display: none; }
.tmr-detail { list-style: none; margin: .3rem 0 0; padding: 0; font: 700 clamp(1.15rem, min(5.5vw, 3.6vh), 1.9rem)/1.2 var(--display);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .9rem; }
.tmr-detail:empty { display: none; }
.tmr-time { margin: 0; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center;
  font: 700 clamp(3.2rem, min(21vw, 17vh), 10rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tmr-time.up { color: var(--teal-light); }
.tmr-bar { height: 6px; border-radius: 3px; background: rgb(255 255 255 / .15); overflow: hidden; flex: none; }
.tmr-bar span { display: block; height: 100%; width: 0; background: var(--teal-light); transition: width .1s linear; }
.tmr[data-kind="action"] .tmr-bar span { background: var(--fire); }
.tmr-continue { align-self: center; font-size: 1.2rem; border: 0; cursor: pointer; flex: none; }
.tmr-where, .tmr-next { margin: 0; color: var(--on-dark); font: 600 clamp(.95rem, 2.2vh, 1.1rem)/1.25 var(--display);
  min-height: 1.25em; flex: none; }
/* Nächster Schritt groß unter der Uhr – in Arbeit, Pause und Get ready (timer.js → .up-next) */
.tmr-next.up-next { display: grid; gap: .1rem; justify-items: center; text-align: center; color: #fff; }
.tmr-next.up-next .tmr-next-lbl { font: 600 clamp(.9rem, 2vh, 1.05rem)/1.2 var(--display); color: var(--on-dark);
  text-transform: uppercase; letter-spacing: .06em; }
.tmr-next.up-next strong { font: 700 clamp(2.2rem, min(10vw, 7vh), 4.2rem)/1.05 var(--display); color: var(--fire); }
.tmr-next.up-next strong.is-pause { color: var(--teal-light); }
.tmr-next.up-next .tmr-next-detail { font: 700 clamp(1.1rem, min(5vw, 3.4vh), 1.8rem)/1.2 var(--display); }
.tmr-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; flex: none; }
.tmr-totals p { margin: 0; display: grid; gap: 0; }
.tmr-totals span { color: var(--on-dark); font-size: .85rem; }
.tmr-totals b { font: 700 clamp(1.3rem, min(5vw, 3.6vh), 2rem)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.tmr-ctrl { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; flex: none; }
.tmr-ctrl button { min-height: clamp(2.8rem, 7vh, 3.6rem); border: 0; border-radius: 12px; background: #2c3a3b; color: #fff;
  font-size: 1.6rem; cursor: pointer; }
.tmr-ctrl .tmr-play { background: var(--fire); color: var(--ink); }
.tmr-ctrl button:disabled { opacity: .4; cursor: default; }
.tmr-hint { margin: 0; color: var(--on-dark); font-size: .8rem; flex: none; }
@media (max-height: 560px) { .tmr-hint, .tmr-where { display: none; } }

/* Geschafft: Feuer-Petrol-Banner, Gesamtzeit in Feuer, großer Log-Button, Konfetti einmal */
.tmr[data-kind="done"] .tmr-banner { background: linear-gradient(120deg, var(--fire), #f2a33f 45%, var(--teal));
  color: var(--ink); animation: tmr-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.tmr[data-kind="done"] .tmr-label { font-size: clamp(2.6rem, min(14vw, 10vh), 6rem); }
.tmr[data-kind="done"] .tmr-time { color: var(--fire); }
.tmr[data-kind="done"] .tmr-where { display: block; color: #fff; font-size: clamp(1.1rem, 3vh, 1.5rem); }
.tmr[data-kind="done"] .tmr-bar span { background: linear-gradient(90deg, var(--fire), var(--teal-light)); }
.tmr-log { font-size: clamp(1.1rem, 3vh, 1.4rem); padding: .7em 1.6em; margin-top: .3rem; }
@keyframes tmr-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.tmr-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tmr-confetti i { position: absolute; top: -4vh; width: .7rem; height: 1.1rem; border-radius: 2px;
  animation: tmr-fall linear forwards; }
.tmr-confetti i.c0 { background: var(--fire); }
.tmr-confetti i.c1 { background: var(--teal); }
.tmr-confetti i.c2 { background: var(--teal-light); }
.tmr-confetti i.c3 { background: #fff; width: .5rem; height: .5rem; border-radius: 50%; }
@keyframes tmr-fall { to { transform: translate(var(--drift, 0), 110vh) rotate(var(--spin, 540deg)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .tmr[data-kind="done"] .tmr-banner { animation: none; } }
@media (min-width: 900px) { .tmr:not(.has-side):not(.has-counter) { padding-inline: max(1rem, calc(50vw - 26rem)); } }

/* ---------- Standard-Timer (timers.html) und Links von workout-structure.html */
.std-timers { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.std-timer { background: var(--surface); border: 2px solid var(--rail); border-radius: 12px; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .5rem; }
.std-timer h3 { margin: 0; font: 700 var(--step-1)/1.15 var(--display); }
.std-timer p { margin: 0; }
.std-timer .meta { color: var(--muted); font: 600 1.05rem/1.3 var(--display); }
.std-timer .wo-actions { margin-top: auto; }
.timers-page .fmt { margin-top: 2rem; }
.std-links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: .8rem 0; font-weight: 700; }
.std-links svg { width: 1.2em; height: 1.2em; color: var(--fire-ink); }
.std-toc { display: grid; gap: .5rem; margin: 1.2rem 0 2rem; }
.std-toc .flabel { margin: 0; }
.std-toc-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.std-toc-row .btn { text-decoration: none; min-height: 2.1rem; padding: .25rem .8rem; font-size: 1rem; }
.std-toc-fmt { font: 700 1.05rem/1.2 var(--display); color: var(--teal-ink); min-width: 7rem; }
.std-set summary { cursor: pointer; font: 600 1rem/1.3 var(--display); color: var(--teal-ink); }
.std-set[open] summary { margin-bottom: .5rem; }
.std-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem .8rem; }
.std-fields label { display: grid; gap: .2rem; font: 600 .95rem/1.2 var(--display); color: var(--muted); }
.std-in { display: flex; align-items: center; gap: .35rem; color: var(--fg); }
.std-in input { width: 5rem; font: 600 1.1rem/1.2 var(--text); padding: .35rem .5rem; border: 2px solid var(--rail);
  border-radius: 8px; background: var(--board); color: var(--fg); }
.std-in input:focus { border-color: var(--teal-ink); outline: none; }
