/* Lunet Warteliste: Stufen-Umschalter Rise / Orbit / Galaxy.
   Kein JavaScript. Drei Radios (name="stufe") steuern per :has() am Container .st,
   welcher Info-Block, welche Beispielansicht und welche Funktionen voll dastehen.
   Ohne :has()-Unterstützung bleibt einfach Orbit stehen. Tokens kommen aus lunet.css. */

/* ── Umschalter ────────────────────────────────────────────────────── */

.st-wahl { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }

.st-schiene {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin-top: 12px;             /* Platz für „Unser Tipp“ über Orbit */
  padding: 4px;
  border-radius: 24px;
  background: var(--tile);
}

.st-daumen {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 20px;
  background: var(--bg);
  box-shadow:
    0 0 0 1px rgb(11 11 10 / 0.05),
    0 1px 2px rgb(11 11 10 / 0.06),
    0 6px 16px -8px rgb(11 11 10 / 0.18);
  transform: translateX(100%);
  transition: transform 240ms var(--ease-out);
}
.st:has(#st-rise:checked) .st-daumen { transform: translateX(0); }
.st:has(#st-galaxy:checked) .st-daumen { transform: translateX(200%); }

.st-opt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 10px 6px;
  border-radius: 20px;
  color: var(--mid);
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 140ms var(--ease-out);
}
.st-opt:active { transform: scale(0.97); }
.st-opt:has(.st-radio:checked) { color: var(--ink); }
.st-opt:has(.st-radio:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .st-opt:hover { color: var(--ink); }
}

/* Echte Radios, nur unsichtbar. Bleiben fokussierbar, Pfeiltasten gehen. */
.st-radio {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.st-opt-name { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.st-opt-preis { font-size: 13px; line-height: 1.3; white-space: nowrap; }
.st-opt-preis s { color: var(--faint); text-decoration-thickness: 1px; }
.st-opt-zeit { display: none; }
@media (min-width: 600px) {
  .st-opt-name { font-size: 17px; }
  .st-opt-zeit { display: inline; }
}

.st-tipp {
  position: absolute;
  top: -13px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding-inline: 8px;
  border-radius: 999px;
  background: var(--orbit);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* ── Bühne: Info links, Beispielansicht rechts ─────────────────────── */

.st-buehne { display: grid; gap: 16px; }
.st-buehne > * { min-width: 0; }
@media (min-width: 960px) {
  .st-buehne { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 40px; align-items: stretch; }
}

/* Alle Varianten liegen im selben Grid-Feld übereinander. Die Höhe richtet sich
   nach der größten, dadurch springt beim Umschalten nichts. */
.st-stapel { display: grid; }
.st-stapel > [data-st] {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  filter: blur(4px);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    filter 220ms var(--ease-out),
    visibility 0s linear 220ms;
}
.st-stapel > [data-st="orbit"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: blur(0);
  transition-delay: 0s;
}
.st:has(#st-rise:checked) .st-stapel > [data-st="orbit"],
.st:has(#st-galaxy:checked) .st-stapel > [data-st="orbit"] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  filter: blur(4px);
  transition-delay: 0s, 0s, 0s, 220ms;
}
.st:has(#st-rise:checked) .st-stapel > [data-st="rise"],
.st:has(#st-galaxy:checked) .st-stapel > [data-st="galaxy"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: blur(0);
  transition-delay: 0s;
}

/* ── Info-Block ────────────────────────────────────────────────────── */

.st-info {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border-radius: 28px;
  background: var(--tile);
}
.st-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.032em;
}
.st-fuer { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--mid); max-width: 30em; }

.st-preis { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 24px 0 0; }
.st-preis-neu { font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -0.05em; }
.st-preis-alt { font-size: 20px; color: var(--faint); text-decoration-thickness: 1.5px; }
.st-preis-zeit { font-size: 15px; color: var(--mid); }
.st-notiz { margin: 10px 0 0; color: var(--mid); }

.st-zahlen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
}
.st-zahlen > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  padding: 14px 12px 12px;
  border-radius: 18px;
  background: var(--bg);
}
.st-zahlen dt { font-size: 12.5px; line-height: 1.3; color: var(--mid); }
.st-zahlen dd { margin: 0; font-size: 26px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.st-zahlen dd span { font-size: 13px; font-weight: 400; letter-spacing: -0.01em; color: var(--mid); }

.st-plus { margin: 24px 0 10px; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.st-neu { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.st-neu li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.st-neu svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--pos); }

.st-bald {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 4px;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--fill-strong);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
  vertical-align: 1px;
}

.st-aktion { margin-top: auto; padding-top: 26px; }
.st-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding-inline: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 140ms var(--ease-out);
}
.st-knopf svg { width: 17px; height: 17px; transition: transform 200ms var(--ease-out); }
.st-knopf:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .st-knopf:hover { background: #262624; }
  .st-knopf:hover svg { transform: translateX(3px); }
}

/* ── Beispielansichten ─────────────────────────────────────────────── */

.st-ansicht {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin: 0;
}
.st-demo { width: 100%; max-width: 520px; margin-inline: auto; }
.st-fussnote { margin: 0; text-align: center; color: var(--faint); }
.st-leise { margin: 0; color: var(--mid); }

/* Rise: Home */
.st-home-oben { display: flex; align-items: center; gap: 18px; }
.st-ring { position: relative; flex: none; width: 92px; height: 92px; }
.st-ring svg { display: block; width: 100%; height: 100%; }
.st-ring-spur { fill: none; stroke: var(--fill-strong); stroke-width: 10; }
.st-ring-wert { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 72 100; }
.st-ring-zahl {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.st-home-text { min-width: 0; }
.st-home-score { margin: 3px 0 10px; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.st-streak {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding-inline: 11px;
  border-radius: 999px;
  background: var(--tile);
  font-size: 13px;
  color: var(--ink-2);
}
.st-streak b { font-weight: 500; color: var(--ink); }
.st-streak-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }

.st-woche { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--tile); }
.st-woche-satz { margin: 4px 0 0; font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: -0.018em; }

.st-reels { margin: 8px 0 0; padding: 0; list-style: none; }
.st-reels li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-block: 10px;
}
.st-reels li + li { box-shadow: inset 0 1px 0 var(--line); }
.st-reel-bild {
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  border-radius: 9px;
  background: radial-gradient(80% 70% at 70% 100%, #5a5a52 0%, rgb(90 90 82 / 0) 70%), linear-gradient(180deg, #24241f 0%, #111110 100%);
  color: rgb(245 245 242 / 0.85);
}
.st-reel-bild-2 { background: radial-gradient(80% 70% at 30% 100%, #6b5f4c 0%, rgb(107 95 76 / 0) 70%), linear-gradient(180deg, #2a2620 0%, #13110e 100%); }
.st-reel-bild-3 { background: radial-gradient(80% 70% at 50% 0%, #4d5560 0%, rgb(77 85 96 / 0) 70%), linear-gradient(180deg, #1d2025 0%, #0e0f11 100%); }
.st-reel-bild svg { width: 13px; height: 13px; }
.st-reel-text { display: flex; flex-direction: column; min-width: 0; }
.st-reel-text b { overflow: hidden; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; white-space: nowrap; text-overflow: ellipsis; }
.st-reel-text .mono { color: var(--mid); }
.st-faktor {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding-inline: 9px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 13px;
  font-weight: 500;
}
.st-faktor-gut { background: var(--pos-soft); color: var(--pos); }
.st-faktor-schwach { background: var(--rot-soft); color: var(--neg); }

/* Orbit: Cockpit */
.st-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.st-k { display: flex; flex-direction: column; min-width: 0; padding: 12px; border-radius: 18px; background: var(--tile); }
.st-k-breit { grid-column: 1 / -1; }
.st-k-wert { margin: 4px 0 8px; font-size: 18px; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.st-k-gross { margin-top: auto; font-size: 30px; letter-spacing: -0.045em; color: var(--pos); }
.st-k-klein { margin: 4px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--mid); }

.st-balken-bild, .st-flaeche-bild { display: block; width: 100%; height: 56px; margin-top: auto; }
.st-flaeche-bild { height: 48px; }
.st-b-reel { fill: var(--ink); }
.st-b-karussell { fill: var(--orbit); }
.st-flaeche { fill: var(--blau); fill-opacity: 0.12; }
.st-linie { fill: none; stroke: var(--blau); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.st-legende { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 8px 0 0; font-size: 12px; line-height: 1.35; color: var(--mid); }
.st-legende span { display: inline-flex; align-items: center; gap: 5px; }
.st-legende b { font-weight: 500; color: var(--ink); }
.st-legende-senkrecht { flex-direction: column; gap: 6px; margin: 0; }
.st-punkt { flex: none; width: 7px; height: 7px; border-radius: 2px; }
.st-punkt-ink { background: var(--ink); }
.st-punkt-orbit { background: var(--orbit); }

.st-donut-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.st-donut { flex: none; width: 64px; height: 64px; }
.st-donut-a, .st-donut-b { fill: none; stroke-width: 6; }
.st-donut-a { stroke: var(--orbit); }
.st-donut-b { stroke: var(--ink); }

.st-k-zeile { display: flex; justify-content: space-between; gap: 8px; }
.st-umsatz { margin: 8px 0 10px; font-size: 13px; color: var(--mid); }
.st-umsatz b { margin-right: 4px; font-size: 22px; font-weight: 500; letter-spacing: -0.035em; color: var(--ink); }
.st-balken { height: 8px; overflow: hidden; border-radius: 999px; background: var(--fill-strong); }
.st-balken-wert { display: block; height: 100%; border-radius: 999px; background: var(--ink); transform: scaleX(0.627); transform-origin: left center; }

/* Galaxy: Konten */
.st-konten-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px 40px;
  gap: 10px;
  padding: 0 10px 6px 56px;
  font-size: 11px;
  color: var(--faint);
}
.st-konten-kopf span:not(:first-child) { text-align: right; }
.st-konten { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.st-konten li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 60px 40px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 16px;
}
.st-konten li.st-konto-aktiv { background: var(--tile); }
.st-mono {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
}
.st-m1 { background: var(--ink); color: var(--on-ink); }
.st-m2 { background: var(--orbit-soft); color: var(--orbit); }
.st-m3 { background: var(--pos-soft); color: var(--pos); }
.st-m4 { background: var(--rot-soft); color: var(--neg); }
.st-m5 { background: var(--tile-2); color: var(--ink-2); }
.st-konto-text { display: flex; flex-direction: column; min-width: 0; }
.st-konto-text b { display: flex; align-items: center; gap: 6px; overflow: hidden; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; white-space: nowrap; }
.st-konto-text .mono { overflow: hidden; color: var(--mid); white-space: nowrap; text-overflow: ellipsis; }
.st-aktiv {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--pos-soft);
  color: var(--pos);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
.st-konto-zahl { font-size: 13.5px; text-align: right; color: var(--ink-2); }
.st-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 13px;
  font-weight: 500;
}
.st-score-gut { background: var(--pos-soft); color: var(--pos); }
.st-konten-fuss { margin: 10px 0 0; padding-left: 56px; color: var(--mid); }

/* ── Funktionsliste ────────────────────────────────────────────────── */

.st-liste { margin-top: 64px; }
.st-liste-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  box-shadow: inset 0 -1px 0 var(--line);
}
.st-liste-titel { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.028em; }
.st-liste-hinweis { margin: 0; font-size: 14px; color: var(--mid); }

.st-spalten { column-count: 1; column-gap: 40px; }
@media (min-width: 640px) { .st-spalten { column-count: 2; } }
@media (min-width: 960px) { .st-spalten { column-count: 3; } }

.st .f-gruppe { margin-bottom: 26px; }
.st .f-titel { margin: 0 0 6px; color: var(--mid); break-after: avoid; }
.st .f-gruppe ul { margin: 0; padding: 0; list-style: none; }
.st .f-gruppe li {
  --aus: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-block: 8px;
  break-inside: avoid;
}

.st .f-haken {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--pos-soft);
  color: var(--pos);
}
.st .f-haken svg { width: 12px; height: 12px; }
/* Grauer Deckel über dem Haken: nicht enthalten heißt leerer Kreis. */
.st .f-haken::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--tile-2);
  opacity: var(--aus);
  transition: opacity 200ms var(--ease-out);
}

.st .f-text { min-width: 0; font-size: 14.5px; line-height: 1.4; }
.st .f-text > b { font-weight: 500; letter-spacing: -0.012em; color: var(--ink); }
.st .f-kurz { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--mid); }

.st .f-haken,
.st .f-text > b,
.st .f-kurz,
.st .f-bald {
  opacity: calc(1 - 0.6 * var(--aus));
  transition: opacity 200ms var(--ease-out);
}

.st .f-bald {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--fill-strong);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
  vertical-align: 1px;
}

/* Etikett „ab Orbit“ / „ab Galaxy“: nur sichtbar, wenn die Funktion in der gewählten Stufe fehlt. */
.st .f-ab {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 6px;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--orbit-soft);
  color: var(--orbit);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: 1px;
  white-space: nowrap;
  opacity: var(--aus);
  transition: opacity 200ms var(--ease-out);
}
.st .f-ab:empty { display: none; }
.st li[data-ab="galaxy"] .f-ab { background: var(--ink); color: var(--on-ink); }

/* Welche Funktionen blass sind. Standard (Orbit): nur Galaxy fehlt. */
.st li[data-ab="galaxy"] { --aus: 1; }
.st:has(#st-rise:checked) li:is([data-ab="orbit"], [data-ab="galaxy"]) { --aus: 1; }
.st:has(#st-galaxy:checked) li[data-ab="galaxy"] { --aus: 0; }

.st-fuss { margin: 12px 0 0; max-width: 46em; font-size: 14px; color: var(--mid); }

/* ── Handy ─────────────────────────────────────────────────────────── */

@media (max-width: 479px) {
  .st-info { padding: 22px 18px 18px; border-radius: 26px; }
  .st-preis-neu { font-size: 48px; }
  .st-zahlen > div { padding: 12px 10px 10px; border-radius: 16px; }
  .st-zahlen dd { font-size: 22px; }
  .st-zahlen dd span { font-size: 12px; }
  .st-aktion .st-knopf { width: 100%; justify-content: center; }
  .st-home-oben { gap: 14px; }
  .st-ring { width: 80px; height: 80px; }
  .st-ring-zahl { font-size: 24px; }
  .st-k { padding: 11px; border-radius: 16px; }
  .st-k-gross { font-size: 26px; }
  .st-konten li { grid-template-columns: 34px minmax(0, 1fr) 56px 36px; gap: 8px; padding: 8px; }
  .st-konten-kopf { grid-template-columns: minmax(0, 1fr) 56px 36px; gap: 8px; padding: 0 8px 6px 50px; }
  .st-mono { width: 34px; height: 34px; }
  .st-konten-fuss { padding-left: 50px; }
  .st-liste { margin-top: 48px; }
}

/* ── Weniger Bewegung: nichts fliegt, nur Überblenden ─────────────── */

@media (prefers-reduced-motion: reduce) {
  .st-daumen { transition: none; }
  .st-opt:active, .st-knopf:active { transform: none; }
  .st-knopf svg { transition: none; }
  @media (hover: hover) and (pointer: fine) { .st-knopf:hover svg { transform: none; } }
  .st-stapel > [data-st],
  .st-stapel > [data-st="orbit"],
  .st:has(#st-rise:checked) .st-stapel > [data-st],
  .st:has(#st-galaxy:checked) .st-stapel > [data-st] {
    transform: none;
    filter: none;
  }
  .st-stapel > [data-st] { transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .st-stapel > [data-st="orbit"] { transition-delay: 0s; }
  .st:has(#st-rise:checked) .st-stapel > [data-st="orbit"],
  .st:has(#st-galaxy:checked) .st-stapel > [data-st="orbit"] { transition-delay: 0s, 200ms; }
  .st:has(#st-rise:checked) .st-stapel > [data-st="rise"],
  .st:has(#st-galaxy:checked) .st-stapel > [data-st="galaxy"] { transition-delay: 0s; }
}
