/*
 * gym-arc.app — „Iron & Glacier“ aus DESIGN.md, für das Web.
 * Farben, Schatten und Hero-Werte kommen als Variablen aus tokens.css
 * (generiert aus packages/shared). Hier stehen keine Farbwerte außer
 * Transparenzen auf den Token-Farben des immer dunklen Heros.
 */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 420ms;
  --t-hero: 900ms;
  /* z-Skala */
  --z-raised: 1;
  --z-sticky: 10;
  --z-skip: 100;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--stage-accent);
  color: var(--stage-on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero-wrap {
  position: relative;
  color: var(--hero-text);
  background:
    radial-gradient(60% 55% at 82% 8%, rgb(40 214 223 / var(--hero-glow-opacity)), transparent 70%),
    linear-gradient(180deg, var(--hero-from) 0%, var(--hero-via) 62%, var(--hero-to) 100%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
  isolation: isolate;
}
.hero-wrap a {
  color: inherit;
}
.hero-wrap :focus-visible {
  outline-color: var(--stage-focus);
}

.site-head {
  position: relative;
  z-index: var(--z-raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.brand-icon {
  border-radius: 22%;
  box-shadow: 0 0 0 1px rgb(242 244 246 / 0.12);
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--hero-text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--hero-text);
  background: var(--hero-control);
}
.site-nav .lang-switch {
  min-width: 44px;
  justify-content: center;
  margin-left: 4px;
  background: var(--hero-control);
  color: var(--hero-text);
}
@media (max-width: 760px) {
  .nav-wide {
    display: none !important;
  }
}

.hero--home {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(48px, 7vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 11vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.display .line {
  display: block;
}
.hero-lead {
  max-width: 34ch;
  margin-top: 24px;
  color: var(--hero-text-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 36px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}
.soon--hero {
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--hero-pill);
  color: var(--hero-pill-text);
}
.soon-detail {
  font-weight: 400;
  opacity: 0.8;
}
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage-accent);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--stage-accent);
  opacity: 0;
  animation: live 2.4s var(--ease) infinite;
}
@keyframes live {
  0% {
    transform: scale(0.4);
    opacity: 0.45;
  }
  70%,
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Bühne: Bogen, Bogi, Wert in der Öffnung */
.hero-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.hero-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-bogi {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 66%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.hero-readout {
  position: absolute;
  left: 50%;
  bottom: 1%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}
.hero-number {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-unit {
  font-size: 0.5em;
  color: var(--hero-text-muted);
}
.hero-label {
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hero-pill-text);
}

/* ── Bögen ────────────────────────────────────────────────────────────── */

.arc path {
  fill: none;
  stroke-linecap: round;
}
.arc-track {
  stroke: var(--fill);
}
.arc-track--hero {
  stroke: var(--hero-track);
}
.arc-fill {
  stroke: var(--accent);
  stroke-dasharray: 100 200;
  stroke-dashoffset: calc(100 - var(--value, 0) * 100);
  transition: stroke-dashoffset var(--t-slow) var(--ease), opacity var(--t-fast) linear;
}
.arc-fill--hero {
  stroke: var(--hero-fill);
  transition-duration: var(--t-hero);
}
.arc-fill.is-empty {
  opacity: 0;
}
.hero-arc .arc-fill--hero {
  filter: drop-shadow(0 0 10px rgb(40 214 223 / 0.45));
}
.hero-stage.is-closed .arc-fill--hero {
  animation: afterglow 640ms var(--ease) 1;
}
@keyframes afterglow {
  0% {
    filter: drop-shadow(0 0 22px rgb(40 214 223 / 0.9));
  }
  100% {
    filter: drop-shadow(0 0 10px rgb(40 214 223 / 0.45));
  }
}

/* ── Knöpfe und Kapseln ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
}
.btn--primary.btn--on-hero,
.hero-wrap .btn--primary {
  background: var(--stage-accent);
  color: var(--stage-on-accent);
}
.btn--primary .icon {
  transition: transform var(--t-base) var(--ease);
}
.btn--primary:hover .icon {
  transform: translateX(3px);
}
.btn--secondary,
.btn--quiet {
  background: var(--fill);
  color: var(--text);
}
.btn--quiet {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.btn[hidden] {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pill--neutral {
  background: var(--fill);
  color: var(--text);
}
.pill--accent {
  background: var(--accent-subtle);
  color: var(--accent-strong);
}
.flame {
  width: 20px;
  height: 20px;
}
.flame-body {
  fill: var(--flame);
}
.flame-core {
  fill: var(--flame-core);
}

/* ── Abschnitte ───────────────────────────────────────────────────────── */

.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 136px) var(--gutter);
}
.band + .band:not(.band--stage):not(.band--end) {
  border-top: 1px solid var(--border);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  }
  .split--flip > .copy {
    order: 2;
  }
  .split--week {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  }
  .split--data {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: start;
  }
  .split--pro {
    align-items: start;
  }
}
.narrow {
  max-width: 980px;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
}
.h2--big {
  font-size: clamp(3rem, 7vw, 5.5rem);
}
.h3 {
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lead {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
}
.facts {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  max-width: 52ch;
}
.facts li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.facts li:last-child {
  border-bottom: 1px solid var(--border);
}
.facts strong {
  color: var(--text);
  font-weight: 600;
}

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-rested);
  padding: clamp(18px, 2.4vw, 28px);
}
@media (prefers-color-scheme: dark) {
  .card {
    border: 1px solid var(--border);
  }
}

/* ── Logbuch-Demo ─────────────────────────────────────────────────────── */

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.log-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.log-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.log-bogi {
  width: 72px;
  height: 72px;
  flex: none;
  margin: -8px -4px -8px 0;
}
.sets {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-variant-numeric: tabular-nums;
}
.sets th {
  padding: 0 8px 2px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
}
.sets td {
  height: 56px;
  padding: 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: background-color var(--t-base) var(--ease);
}
.sets td:first-child {
  border-radius: var(--r-md) 0 0 var(--r-md);
  padding-left: 10px;
}
.sets td:last-child {
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding-right: 6px;
}
.sets .c-num {
  text-align: right;
  white-space: nowrap;
}
.sets th.c-num {
  text-align: right;
}
.sets .c-prev {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.sets .c-check {
  width: 60px;
  text-align: right;
}
.sets .c-set {
  width: 48px;
}
.set-type {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--fill);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.sets tr.is-done td {
  background: var(--success-subtle);
}
.sets tr.is-warmup td {
  background: transparent;
}
.check {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--fill);
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.check:active {
  transform: scale(0.94);
}
.check svg {
  width: 26px;
  height: 26px;
}
.check-mark {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check[aria-pressed="true"],
.check.is-on {
  background: var(--success);
}
.check[aria-pressed="true"] .check-mark,
.check.is-on .check-mark {
  stroke: var(--surface);
}
.check[aria-pressed="true"] .check-mark {
  stroke-dasharray: 1;
  animation: draw 280ms var(--ease) both;
}
.is-warmup .check.is-on {
  background: var(--fill);
}
.is-warmup .check.is-on .check-mark {
  stroke: var(--text-muted);
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
/* Die Kapsel hängt unter der Zahl und ändert so die Spaltenbreite nicht. */
.sets td.c-num {
  position: relative;
}
.pr-pill {
  display: none;
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent-strong);
  font-size: 0.6875rem;
  line-height: 1.35;
  white-space: nowrap;
  transform-origin: right center;
}
tr.is-done .pr-pill {
  display: inline-block;
  animation: latch-in 420ms var(--ease) both;
}
@keyframes latch-in {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  55% {
    transform: scale(1.037);
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.log-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 12px;
}
.rest {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 220px;
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-raised);
}
.rest[hidden] {
  display: none;
}
.rest-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.rest-ring rect {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: calc(100 - var(--remaining, 1) * 100);
  vector-effect: non-scaling-stroke;
}
.rest-phase {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}
.rest-time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.log-status {
  flex: 1 1 12rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Tageskarte ───────────────────────────────────────────────────────── */

.day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.caffeine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.caffeine .day-value {
  color: var(--text);
}
.caffeine-arc {
  width: 36px;
  height: 36px;
}
.day-mid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 20px 0 24px;
}
.day-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.day-value {
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.day-cap {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.day-arc {
  position: relative;
  width: clamp(140px, 36vw, 188px);
  aspect-ratio: 1;
}
.kcal-arc {
  width: 100%;
  height: 100%;
}
.day-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.day-big {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.macros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.macro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.macro-name {
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  hyphens: auto;
}
@media (max-width: 420px) {
  .macros {
    gap: 10px;
  }
  .macro-name {
    font-size: 0.8125rem;
  }
}
.macro-val {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.bar {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--fill);
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(var(--value, 0));
  transition: transform var(--t-slow) var(--ease);
}
.bar-fill.macro-protein {
  background: var(--macro-protein);
}
.bar-fill.macro-carbs {
  background: var(--macro-carbs);
}
.bar-fill.macro-fat {
  background: var(--macro-fat);
}

/* ── Woche ────────────────────────────────────────────────────────────── */

.week-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.week-count {
  color: var(--text-muted);
  font-size: 1.0625rem;
}
.week-count strong {
  margin-right: 4px;
  color: var(--text);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.bar--wide {
  height: 10px;
}
.week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(4px, 1.4vw, 10px);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pill-shape {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 52px;
  aspect-ratio: 0.62;
  border-radius: 999px;
  overflow: hidden;
}
.pill-shape svg {
  width: 55%;
  max-width: 22px;
}
.day-pill--done .pill-shape {
  background: var(--accent);
}
.day-pill--done .check-mark {
  stroke: var(--text-on-accent);
}
.day-pill--missed .pill-shape {
  background: var(--fill);
}
.day-pill--today .pill-shape {
  border: 2px solid var(--accent);
}
.day-pill--upcoming .pill-shape {
  border: 1.5px dashed var(--border-strong);
}
.today-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 40%;
}
.day-name {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.day-name.is-today {
  color: var(--accent-strong);
}

/* ── Bogi-Bühne ───────────────────────────────────────────────────────── */

.band--stage {
  position: relative;
  max-width: calc(var(--max) + 2 * var(--gutter));
  padding: 0 var(--gutter);
}
.band--stage > .stage-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px);
  border-radius: var(--r-xl);
  color: var(--hero-text);
  background:
    radial-gradient(55% 70% at 28% 45%, rgb(40 214 223 / 0.2), transparent 70%),
    linear-gradient(160deg, var(--hero-from), var(--hero-via) 70%, var(--hero-to));
  overflow: hidden;
}
@media (min-width: 900px) {
  .band--stage > .stage-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}
.stage-figure {
  display: grid;
  place-items: center;
}
.stage-bogi {
  width: min(100%, 400px);
  aspect-ratio: 1;
}
.stage-copy .lead {
  color: var(--hero-text-muted);
}
.moods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.mood {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--hero-control);
  color: var(--hero-text);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mood:hover {
  background: rgb(242 244 246 / 0.2);
}
.mood:active {
  transform: scale(0.96);
}
.mood[aria-checked="true"] {
  background: var(--stage-accent);
  color: var(--stage-on-accent);
}
.mood:focus-visible {
  outline-color: var(--stage-focus);
}
.mood-note {
  min-height: 3.2em;
  margin-top: 18px;
  color: var(--hero-text-muted);
}

/* ── Mehr ─────────────────────────────────────────────────────────────── */

.more {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 48px;
  margin: 40px 0 0;
}
@media (min-width: 760px) {
  .more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.more-row {
  padding: 20px 0 22px;
  border-top: 1px solid var(--border);
}
.more dt {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.more dd {
  margin: 6px 0 0;
  color: var(--text-muted);
}

/* ── Daten ────────────────────────────────────────────────────────────── */

.data-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.data-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.data-list strong {
  color: var(--text);
  font-weight: 600;
}
.data-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-subtle);
}
.data-mark svg {
  width: 18px;
}
.data-mark .check-mark {
  stroke: var(--accent-strong);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  font-weight: 600;
  text-decoration: none;
}
.text-link .icon {
  transition: transform var(--t-base) var(--ease);
}
.text-link:hover .icon {
  transform: translateX(3px);
}

/* ── Pro ──────────────────────────────────────────────────────────────── */

.quota {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.quota caption {
  padding-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
}
.quota th,
.quota td {
  padding: 14px 4px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.quota thead th {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding-top: 10px;
  padding-bottom: 10px;
}
.quota tbody th {
  font-weight: 600;
}
.quota .c-num {
  text-align: right;
}
.quota tbody td {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
}
.quota .c-pro {
  color: var(--accent-strong);
}

/* ── Schluss ──────────────────────────────────────────────────────────── */

.band--end {
  padding-top: clamp(24px, 4vw, 48px);
}
.end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-rested);
}
@media (prefers-color-scheme: dark) {
  .end {
    border: 1px solid var(--border);
  }
}
.end > div:last-child {
  flex: 1 1 320px;
}
.end-bogi {
  width: 140px;
  height: 140px;
  flex: none;
}

/* ── Fuß ──────────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--border);
}
.foot-inner {
  display: grid;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom));
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}
.foot-tag,
.foot-note {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin-left: -10px;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.foot-nav a:hover {
  color: var(--accent-strong);
}

/* ── Unterseiten ──────────────────────────────────────────────────────── */

.hero--page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(40px, 6vw, 72px);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5.25rem);
  line-height: 0.95;
}
.page-lead {
  max-width: 48ch;
  margin-top: 14px;
  color: var(--hero-text-muted);
  font-size: 1.125rem;
}

.prose-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 112px);
}
.prose-wrap > * + * {
  margin-top: 48px;
}
@media (min-width: 1000px) {
  .prose-wrap--toc {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  .prose-wrap--toc > * + * {
    margin-top: 0;
  }
  .toc {
    position: sticky;
    top: 24px;
  }
}
.toc-title {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.toc ol {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent-strong);
}
@media (max-width: 999px) {
  .toc ol {
    columns: 2 220px;
    column-gap: 24px;
  }
}

.prose {
  max-width: 76ch;
}
.prose section + section {
  margin-top: 48px;
}
.prose h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  scroll-margin-top: 24px;
}
.prose--imprint h2 {
  margin-top: 36px;
}
.prose--imprint h2:first-child {
  margin-top: 0;
}
.prose p + p,
.prose p + ul,
.prose ul + p,
.prose .table-scroll + p,
.prose p + .table-scroll,
.prose p + .address,
.prose .address + p {
  margin-top: 14px;
}
.prose ul {
  margin: 0;
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: 8px;
}
.prose li::marker {
  color: var(--accent);
}
.address {
  font-style: normal;
  line-height: 1.7;
}
.note {
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--accent-subtle);
  color: var(--text);
  margin-bottom: 40px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.prose-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.prose-table th,
.prose-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}
.prose-table thead th {
  border-top: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--surface-sunken);
}
.prose-table tbody th {
  font-weight: 600;
}
mark.todo {
  padding: 1px 6px;
  border-radius: var(--r-sm);
  background: var(--danger-subtle);
  color: var(--text);
  outline: 1px dashed var(--danger);
  outline-offset: -1px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.contact {
  max-width: 76ch;
}
.contact p {
  margin-top: 10px;
  color: var(--text-muted);
}
.contact strong {
  color: var(--text);
}
.faq {
  max-width: 76ch;
}
.faq .h2 {
  margin-bottom: 20px;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-of-type {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 10px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.chevron {
  color: var(--text-muted);
  transition: transform var(--t-base) var(--ease);
}
.faq-item[open] .chevron {
  transform: rotate(180deg);
}
.faq-item p {
  padding: 0 0 20px;
  color: var(--text-muted);
}
.aside {
  max-width: 76ch;
  color: var(--text-muted);
}

.not-found {
  display: grid;
  justify-items: start;
  gap: 24px;
}
.not-found p {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nf-bogi {
  width: 180px;
  height: 180px;
}

/* ── Erster Auftritt (nur mit Bewegung) ───────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .is-home .display .line,
  .is-home .hero-lead,
  .is-home .hero-actions {
    animation: rise 900ms var(--ease) both;
  }
  .is-home .display .line:nth-child(2) {
    animation-delay: 90ms;
  }
  .is-home .hero-lead {
    animation-delay: 180ms;
  }
  .is-home .hero-actions {
    animation-delay: 260ms;
  }
  .hero-readout {
    animation: fade 600ms var(--ease) 300ms both;
  }
  .page-title,
  .page-lead {
    animation: rise 700ms var(--ease) both;
  }
  .page-lead {
    animation-delay: 80ms;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 140ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
  .live-dot::after {
    display: none;
  }
}

/* Wochen-Pillen füllen sich von unten, nacheinander (site.js setzt die Staffel). */
.is-waiting .day-pill--done .pill-shape {
  clip-path: inset(100% 0 0 0 round 999px);
}
.day-pill--done .pill-shape.fill-up {
  animation: fill-up var(--t-slow) var(--ease) both;
}
@keyframes fill-up {
  from {
    clip-path: inset(100% 0 0 0 round 999px);
  }
  to {
    clip-path: inset(0 0 0 0 round 999px);
  }
}
