/* ==========================================================================
   TapAlive — ui.css
   Visuelle Ebene: Gerätemockups, animierte App-Szenen, Motion, Navigation.
   Ergänzt style.css und nutzt dieselben Design-Tokens.
   Alles respektiert prefers-reduced-motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Zusätzliche Tokens
   -------------------------------------------------------------------------- */
:root {
  --device-bezel: #15201d;
  --screen: #ffffff;
  --screen-alt: #f2f6f4;
  --screen-text: #141918;
  --screen-soft: #5d6b68;
  --ring-track: #dfe8e4;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --device-bezel: #1e2a26;
    --screen: #101715;
    --screen-alt: #16211d;
    --screen-text: #eef2f1;
    --screen-soft: #9aa8a5;
    --ring-track: #263430;
  }
}
:root[data-theme="dark"] {
  --device-bezel: #1e2a26;
  --screen: #101715;
  --screen-alt: #16211d;
  --screen-text: #eef2f1;
  --screen-soft: #9aa8a5;
  --ring-track: #263430;
}

/* --------------------------------------------------------------------------
   2. Gerätemockup
   -------------------------------------------------------------------------- */
.device {
  position: relative;
  width: 100%;
  max-width: 268px;
  margin-inline: auto;
  aspect-ratio: 9 / 19;
  background: var(--device-bezel);
  border-radius: 38px;
  padding: 9px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, .08) inset,
    0 28px 60px -18px rgba(11, 15, 14, .45),
    0 8px 20px -8px rgba(11, 15, 14, .3);
}

.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--screen);
  display: grid;
}

/* Dynamic Island / Notch */
.device::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  border-radius: var(--r-full);
  background: var(--device-bezel);
  z-index: 6;
  pointer-events: none;
}

/* Statusleiste */
.scene__status {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px 0;
  font-size: 11px;
  font-weight: 650;
  color: var(--screen-text);
  pointer-events: none;
}
.scene__status span:last-child { letter-spacing: .08em; }

/* --------------------------------------------------------------------------
   3. App-Szenen (die „Video"-Schleife ohne Videodatei)
   -------------------------------------------------------------------------- */
.scenes { position: relative; display: grid; }
.scenes > .scene { grid-area: 1 / 1; }

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 46px 18px 22px;
  background: var(--screen);
  opacity: 0;
  animation: scene-cycle 15s var(--ease) infinite;
}
.scene:nth-child(1) { animation-delay: 0s; }
.scene:nth-child(2) { animation-delay: 5s; }
.scene:nth-child(3) { animation-delay: 10s; }

/* Echte Ueberblendung ohne Luecke.
   Die drei Szenen liegen uebereinander und haben einen deckenden Hintergrund.
   Entscheidend: Eine Szene bleibt voll sichtbar, BIS die naechste vollstaendig
   eingeblendet ist, und verschwindet erst danach. Die naechste Szene liegt in
   der DOM-Reihenfolge darueber und verdeckt sie waehrenddessen; beim Sprung von
   Szene 3 zurueck auf Szene 1 blendet Szene 1 unsichtbar darunter ein und wird
   durch das Ausblenden von Szene 3 freigelegt. So faellt die Deckung nie unter 1.
   Zeitachse bei 15 s Dauer: naechste Szene startet bei 33,33 %. */
@keyframes scene-cycle {
  0%      { opacity: 0; }
  0.8%    { opacity: 1; }   /* eingeblendet nach 0,12 s             */
  34.5%   { opacity: 1; }   /* haelt bis 5,175 s - naechste steht   */
  35.3%   { opacity: 0; }   /* in 0,12 s aus, verdeckt bzw. gibt    */
  100%    { opacity: 0; }   /* beim Rundenwechsel Szene 1 frei      */
}

.scene__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 4px;
}
.scene__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--screen-text);
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.scene__foot {
  margin-top: auto;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--screen-soft);
  text-align: center;
}

/* --- Szene 1: Check-in-Knopf mit Fortschrittsring --- */
.checkin {
  display: grid;
  place-items: center;
  gap: 14px;
  /* vertikal im verbleibenden Raum zentrieren */
  margin: auto 0 14px;
}
.checkin__dial { position: relative; width: 150px; height: 150px; }
.checkin__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.checkin__track { fill: none; stroke: var(--ring-track); stroke-width: 7; }
.checkin__value {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 390;
  stroke-dashoffset: 78;
  animation: ring-drain 15s linear infinite;
}
@keyframes ring-drain {
  0%   { stroke-dashoffset: 78; }
  30%  { stroke-dashoffset: 140; }
  100% { stroke-dashoffset: 140; }
}

.checkin__btn {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 8px;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
  text-wrap: balance;
  box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--accent) 65%, transparent);
  animation: btn-breathe 3.2s var(--ease) infinite;
}
.checkin__btn small { display: block; font-size: 9.5px; font-weight: 600; opacity: .85; margin-top: 2px; }
@keyframes btn-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

.checkin__time {
  font-size: 11px;
  color: var(--screen-soft);
  text-align: center;
  line-height: 1.4;
}
.checkin__time strong { display: block; font-size: 17px; color: var(--screen-text); letter-spacing: -.01em; }

/* --- Szene 2: Erinnerungs-Benachrichtigung --- */
.notif {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  margin-bottom: 9px;
  border-radius: 13px;
  background: var(--screen-alt);
  border: 1px solid var(--ring-track);
  animation: notif-in .55s var(--ease) both;
}
.scene:nth-child(2) .notif:nth-of-type(1) { animation-delay: 5.3s; }
.scene:nth-child(2) .notif:nth-of-type(2) { animation-delay: 5.7s; }
@keyframes notif-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.notif__icon {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.notif__icon svg { width: 15px; height: 15px; stroke: var(--on-accent); fill: none; stroke-width: 2.2; }
.notif__body { min-width: 0; }
.notif__title { font-size: 11.5px; font-weight: 700; color: var(--screen-text); line-height: 1.3; }
.notif__text  { font-size: 10.5px; color: var(--screen-soft); line-height: 1.4; margin-top: 1px; }

/* --- Szene 3: Alarm ausgelöst --- */
.alert-card {
  padding: 13px;
  border-radius: 14px;
  background: var(--alert-bg);
  border: 1px solid color-mix(in srgb, var(--alert) 34%, transparent);
  margin-bottom: 11px;
}
.alert-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--alert);
  margin-bottom: 6px;
}
.alert-card__head svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.alert-card__text { font-size: 10.5px; color: var(--screen-text); line-height: 1.45; }

.sent-list { display: grid; gap: 7px; }
.sent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--screen-alt);
  font-size: 10.5px;
  color: var(--screen-text);
  animation: sent-in .45s var(--ease) both;
}
.scene:nth-child(3) .sent:nth-child(1) { animation-delay: 10.4s; }
.scene:nth-child(3) .sent:nth-child(2) { animation-delay: 10.8s; }
.scene:nth-child(3) .sent:nth-child(3) { animation-delay: 11.2s; }
@keyframes sent-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}
.sent__check {
  flex: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.sent__check svg { width: 10px; height: 10px; stroke: var(--on-accent); fill: none; stroke-width: 3.2; }
.sent strong { font-weight: 650; }
.sent span { margin-left: auto; color: var(--screen-soft); font-size: 9.5px; }

/* Mini-Karte mit Standortpunkt */
.mini-map {
  position: relative;
  height: 64px;
  border-radius: 11px;
  margin-top: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--screen-alt)) 0%, var(--screen-alt) 100%);
  border: 1px solid var(--ring-track);
}
.mini-map::before,
.mini-map::after {
  content: "";
  position: absolute;
  background: var(--ring-track);
}
.mini-map::before { inset: auto 0 38% 0; height: 1.5px; }
.mini-map::after  { inset: 0 44% 0 auto; width: 1.5px; }
.mini-map__pin {
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  z-index: 2;
}
.mini-map__wave {
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: wave-out 2.6s var(--ease) infinite;
}
.mini-map__wave:nth-of-type(2) { animation-delay: 1.3s; }
@keyframes wave-out {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(4.2); opacity: 0; }
}

/* --------------------------------------------------------------------------
   4. Hero-Layout mit Gerät
   -------------------------------------------------------------------------- */
.hero--split .hero__inner { max-width: var(--wrap); text-align: left; }
.hero--split .hero__sub { margin-inline: 0; }
.hero--split .btn-row { justify-content: flex-start; }

.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-visual { display: grid; place-items: center; }

/* Sanfter Lichtschein hinter dem Gerät */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 110%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent) 20%, transparent) 0%,
    transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero-visual .device { position: relative; z-index: 1; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .hero--split .device { max-width: 292px; }
}

/* --------------------------------------------------------------------------
   5. Vertrauensleiste
   -------------------------------------------------------------------------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.trust-bar__item svg { flex: none; width: 17px; height: 17px; color: var(--accent-text); }

/* --------------------------------------------------------------------------
   6. Schritte mit Verbindungslinie
   -------------------------------------------------------------------------- */
.steps--line { position: relative; }

@media (min-width: 760px) {
  .steps--line::before {
    content: "";
    position: absolute;
    top: 48px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg,
      var(--accent-soft) 0%, var(--accent) 50%, var(--accent-soft) 100%);
    border-radius: 2px;
    transform-origin: left center;
    transition: transform 1.1s var(--ease) .15s;
    z-index: 0;
  }
  /* Ohne JavaScript steht die Linie sofort – nur mit JS wird sie gezeichnet. */
  .reveal-armed .steps--line::before { transform: scaleX(0); }
  .reveal-armed .steps--line.is-visible::before { transform: scaleX(1); }
  .steps--line .step { position: relative; z-index: 1; }
}

/* --------------------------------------------------------------------------
   7. Countdown-Demo (SOS)
   -------------------------------------------------------------------------- */
.sos-demo {
  display: grid;
  gap: 16px;
  padding: 30px 24px;
  border-radius: var(--r-lg);
  /* leicht getoent, damit die Karte sich vom Seitenhintergrund abhebt */
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.sos-demo__dial {
  position: relative;
  width: 148px;
  height: 148px;
  margin-inline: auto;
}
.sos-demo__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sos-demo__track { fill: none; stroke: var(--ring-track); stroke-width: 9; }
/* 6-Sekunden-Schleife: 5 s Countdown + 1 s „SOS".
   Der Ring leert sich in 5 s und steht in der letzten Sekunde voll in Rot,
   damit zu keinem Zeitpunkt eine leere Flaeche zu sehen ist. */
.sos-demo__value {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 408;
  animation: sos-sweep 6s linear infinite, sos-color 6s linear infinite;
}
@keyframes sos-sweep {
  0%       { stroke-dashoffset: 0; }
  83.33%   { stroke-dashoffset: 408; }
  83.34%   { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 0; }
}
@keyframes sos-color {
  0%      { stroke: #3fb782; }
  33%     { stroke: #a9d97e; }
  55%     { stroke: #e8cf6e; }
  72%     { stroke: #e8a45e; }
  83.33%  { stroke: #d9534a; }
  100%    { stroke: #d9534a; }
}
.sos-demo__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.sos-demo__num span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: sos-digit 6s steps(1) infinite;
}
.sos-demo__num span:nth-child(1) { animation-delay: 0s; }
.sos-demo__num span:nth-child(2) { animation-delay: 1s; }
.sos-demo__num span:nth-child(3) { animation-delay: 2s; }
.sos-demo__num span:nth-child(4) { animation-delay: 3s; }
.sos-demo__num span:nth-child(5) { animation-delay: 4s; }
/* Die sechste Sekunde zeigt „SOS" in Alarmfarbe. */
.sos-demo__num span:nth-child(6) { animation-delay: 5s; color: var(--alert); font-size: 1.7rem; }
@keyframes sos-digit {
  0%       { opacity: 1; }
  16.667%  { opacity: 0; }
  100%     { opacity: 0; }
}
.sos-demo p { margin: 0; color: var(--text-soft); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   8. Nachrichten-Vorschau (SMS)
   -------------------------------------------------------------------------- */
.sms {
  max-width: 400px;
  margin-inline: auto;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.sms__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.sms__head svg { width: 17px; height: 17px; color: var(--accent-text); }
.sms__bubble {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px 18px 18px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text);
}
.sms__bubble a { word-break: break-all; }
.sms__time {
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--text-mute);
  padding-left: 4px;
}

/* --------------------------------------------------------------------------
   9. Inhaltsverzeichnis: klebend auf großen Schirmen
   -------------------------------------------------------------------------- */
/* Greift automatisch nur auf Seiten, die wirklich ein Inhaltsverzeichnis haben.
   Browser ohne :has() behalten das einspaltige Layout — ebenfalls in Ordnung. */
@media (min-width: 1100px) {
  .legal .wrap--narrow:has(> .toc) {
    max-width: 1080px;
    display: grid;
    grid-template-columns: 236px 1fr;
    /* nur horizontal trennen – ein row-gap wuerde jeden Absatz auseinanderreissen */
    column-gap: 52px;
    row-gap: 0;
    align-items: start;
  }
  .legal .wrap--narrow:has(> .toc) > :not(.toc) { grid-column: 2; }
  .legal .wrap--narrow:has(> .toc) > .toc {
    grid-column: 1;
    grid-row: 1 / span 60;
    position: sticky;
    top: 92px;
    margin-bottom: 0;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
  }
  .legal .wrap--narrow:has(> .toc) > .toc ol { columns: 1; }
}

.toc a[aria-current="true"] {
  color: var(--accent-text);
  font-weight: 700;
}

/* Lesefortschritt */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent);
  z-index: 150;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. Sticky-CTA (mobil) und Zurück-nach-oben
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform .34s var(--ease);
}
.sticky-cta.is-shown { transform: none; }
.sticky-cta__text {
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 620;
  color: var(--text);
  line-height: 1.3;
}
.sticky-cta__text small { display: block; font-weight: 500; color: var(--text-mute); font-size: var(--fs-xs); }
.sticky-cta .btn { margin-left: auto; flex: none; }

@media (min-width: 760px) { .sticky-cta { display: none; } }

.to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 80;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-soft);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent-text); border-color: var(--accent); }
.to-top svg { width: 21px; height: 21px; }

@media (max-width: 759px) {
  .to-top { bottom: 84px; right: 14px; }
}

/* --------------------------------------------------------------------------
   11. Erweiterte Scroll-Animationen
   -------------------------------------------------------------------------- */
/* Ausgeblendet wird NUR, wenn main.js laeuft und die Klasse reveal-armed
   gesetzt hat. Laedt oder startet main.js nicht - veraltete Zwischenspeicher,
   404, Skriptfehler, Blocker -, bleibt saemtlicher Inhalt sichtbar.
   main.js blendet vorher alles ein, was ohnehin im Blickfeld liegt, und
   versteckt damit nur Elemente ausserhalb des Sichtbereichs. So entsteht
   beim Laden auch kein Aufblitzen. */
.reveal-armed .reveal-up    { opacity: 0; transform: translateY(22px); }
.reveal-armed .reveal-left  { opacity: 0; transform: translateX(-20px); }
.reveal-armed .reveal-right { opacity: 0; transform: translateX(20px); }
.reveal-armed .reveal-in    { opacity: 0; transform: scale(.965); }

.reveal-up, .reveal-left, .reveal-right, .reveal-in {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  will-change: opacity, transform;
}
.reveal-armed .reveal-up.is-visible,
.reveal-armed .reveal-left.is-visible,
.reveal-armed .reveal-right.is-visible,
.reveal-armed .reveal-in.is-visible { opacity: 1; transform: none; }

/* Im Moment des Scharfschaltens darf nichts animieren, sonst wuerden
   Elemente knapp unterhalb der Kante sichtbar ausblenden. */
.reveal-arming .reveal-up, .reveal-arming .reveal-left,
.reveal-arming .reveal-right, .reveal-arming .reveal-in { transition: none !important; }

/* Karten mit weichem Rand-Highlight beim Zeigen */
.card--hover { position: relative; overflow: hidden; }
.card--hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 48%, transparent),
    transparent 46%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}
.card--hover:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   12. Abschnittsnavigation (Sprungmarken)
   -------------------------------------------------------------------------- */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.jump a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.jump a:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   13. Vergleichstabelle: Ja/Nein deutlicher
   -------------------------------------------------------------------------- */
.yes, .no {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0;
}
.yes { background: var(--accent-soft); }
.no  { background: var(--bg-alt); border: 1px solid var(--line); }
.yes::before {
  content: "";
  width: 11px; height: 11px;
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.no::before {
  content: "";
  width: 9px; height: 1.5px;
  border-radius: 2px;
  background: var(--text-mute);
}

/* --------------------------------------------------------------------------
   14. Abo-Hinweiskasten (Store-Pflichtangaben)
   -------------------------------------------------------------------------- */
.sub-terms {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.sub-terms h3 {
  font-size: var(--fs-base);
  margin-bottom: .6em;
  color: var(--text);
}
.sub-terms ul { padding-left: 1.2em; margin-bottom: 0; }
.sub-terms li { margin-bottom: .45em; }

/* --------------------------------------------------------------------------
   15. Bewegungsreduktion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .scene {
    animation: none;
    opacity: 1;
  }
  /* Ohne Bewegung nur die erste Szene zeigen */
  .scenes > .scene:not(:first-child) { display: none; }

  .checkin__value,
  .checkin__btn,
  .sos-demo__value,
  .mini-map__wave,
  .notif,
  .sent { animation: none !important; }

  .checkin__value { stroke-dashoffset: 110; }
  .sos-demo__value { stroke-dashoffset: 150; stroke: #e8a45e; }
  .sos-demo__num span:first-child { opacity: 1; }
  .sos-demo__num span:not(:first-child) { display: none; }
  .notif, .sent { opacity: 1; transform: none; }

  .reveal-armed .steps--line::before,
  .steps--line::before { transform: scaleX(1); transition: none; }
  .sticky-cta, .to-top { transition: none; }
  /* Muss .reveal-armed .reveal-* schlagen, daher mit gleicher Spezifitaet. */
  .reveal-armed .reveal-up, .reveal-armed .reveal-left,
  .reveal-armed .reveal-right, .reveal-armed .reveal-in,
  .reveal-up, .reveal-left, .reveal-right, .reveal-in { opacity: 1; transform: none; }
}

@media print {
  .device, .sos-demo, .sticky-cta, .to-top, .progress, .jump { display: none !important; }
}

/* --------------------------------------------------------------------------
   16. Jahrespreis unter dem Monatspreis
   -------------------------------------------------------------------------- */
.plan__year {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 11px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.35;
}
