/* Adapted from korallhq/korall-news static/korall.css at commit
   90c1f9c94218e32997a6335ef5edadb8bd55c3d9, with the complete additions from
   docs/design-review-2026-10/uebergabe/korall-ergaenzungen.css at korall-news commit
   94f46b5ba15c5cbfae0497e988798a43bebadf41. Keep shared tokens and components in step. */

@font-face { font-family: "Source Serif 4"; src: url("schriften/source-serif-4.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("schriften/source-serif-4-kursiv.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("schriften/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("schriften/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("schriften/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600; font-display: swap; }

:root {
  --violett-900: #23103f; --violett-800: #3a1866; --violett-700: #5b2a9d; --violett-500: #8058c4;
  --flieder-300: #b9a3e3; --flieder-200: #d9caf2; --flieder-100: #ede6f8;
  --papier-50: #fbf9f3; --papier-100: #f5f2e8; --papier-200: #ece7d8; --papier-300: #dcd5c2;
  --tinte: #22192f; --tinte-leise: #5d5370;
  --koralle: #e8324f; --koralle-hell: #ff6b82; --koralle-text: #b8203b;
  --seegras: #2f7a4f; --seegras-flaeche: #e2efe5;
  --bernstein: #a86400; --bernstein-text: #8a5200; --bernstein-flaeche: #f6ead3;
  --fehler-flaeche: #f8e1e4; --aus: #b5ab92;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --linie: 1px solid var(--papier-300);
  --fokus: 0 0 0 2px var(--papier-50), 0 0 0 4px var(--koralle);
  --primaer-text: #fbf9f3;
  --marke: #5b2a9d;            /* brand surfaces stay violet in dark mode too */
  color-scheme: light;
}

/* Dark mode “deep sea”: follows the system; data-theme can override it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier-100: #140d1c; --papier-50: #1f1629; --papier-200: #2a1f37; --papier-300: #3a2d4d;
    --tinte: #efe9dc; --tinte-leise: #b3a8c2;
    --violett-700: #c9b6f0; --violett-500: #a68bdc; --flieder-100: #2c2140; --flieder-300: #6f5a96;
    --koralle: #ff6b82; --koralle-text: #ff8a9c; --seegras: #7fd3a0; --seegras-flaeche: #1d3326;
    --bernstein: #f0b544; --bernstein-text: #f0b544; --bernstein-flaeche: #3a2c12; --fehler-flaeche: #3a1820;
    --primaer-text: #140d1c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier-100: #140d1c; --papier-50: #1f1629; --papier-200: #2a1f37; --papier-300: #3a2d4d;
  --tinte: #efe9dc; --tinte-leise: #b3a8c2;
  --violett-700: #c9b6f0; --violett-500: #a68bdc; --flieder-100: #2c2140; --flieder-300: #6f5a96;
  --koralle: #ff6b82; --koralle-text: #ff8a9c; --seegras: #7fd3a0; --seegras-flaeche: #1d3326;
  --bernstein: #f0b544; --bernstein-text: #f0b544; --bernstein-flaeche: #3a2c12; --fehler-flaeche: #3a1820;
  --primaer-text: #140d1c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier-100); color: var(--tinte); font: 400 17px/1.55 var(--font-serif);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
a { color: var(--violett-700); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
code { font: 400 .88em var(--font-mono); background: var(--papier-200); padding: 1px 5px; }
:focus-visible { outline: none; box-shadow: var(--fokus); }
.icon { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Typography */
.display { font: 600 72px/.92 var(--font-serif); letter-spacing: -.01em; text-transform: uppercase; color: var(--violett-700); }
.t1 { font: 600 40px/1.1 var(--font-serif); }
.t2 { font: 600 28px/1.2 var(--font-serif); }
.t3 { font: 600 20px/1.3 var(--font-serif); }
.label { font: 600 12px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--violett-700); }
.label.leise { color: var(--tinte-leise); }
.meta { font: 400 13px/1.4 var(--font-mono); color: var(--tinte-leise); }
.leise { color: var(--tinte-leise); }
.klein { font-size: 15px; }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border: 1.5px solid var(--violett-700); border-radius: 0; background: var(--violett-700); color: var(--primaer-text);
  font: 600 13px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--violett-800); border-color: var(--violett-800); text-decoration: none; }
.btn.sekundaer { background: transparent; color: var(--violett-700); }
.btn.sekundaer:hover { background: var(--flieder-100); }
.btn.leise { height: auto; padding: 4px 0; border: 0; background: transparent; color: var(--violett-700);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--flieder-300); }
.btn.leise:hover { text-decoration-color: var(--violett-700); }
.btn.gefahr { background: transparent; color: var(--koralle-text); border-color: var(--koralle-text); }
.btn.gefahr:hover, .btn.gefahr[aria-pressed="true"] { background: var(--koralle-text); color: var(--papier-50); }
.btn.voll { width: 100%; height: 48px; }
.btn.klein { height: 32px; padding: 0 12px; font-size: 12px; }
.btn.mittel { height: 36px; padding: 0 14px; font-size: 12px; }
.btn[aria-pressed="true"]:not(.gefahr) { background: var(--violett-700); color: var(--primaer-text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Forms */
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld > label, .feld > .feld-titel { font: 600 16px/1.3 var(--font-serif); display: flex; align-items: center; gap: 8px; }
.feld > label .meta { margin-left: auto; }
.hinweis { font-size: 14px; line-height: 1.45; color: var(--tinte-leise); }
.eingabe, input[type="text"], input[type="number"], input[type="email"] {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--flieder-300); border-radius: 0;
  background: var(--papier-50); color: var(--tinte); font: 400 17px var(--font-serif); }
input:focus-visible { border: 2px solid var(--violett-700); box-shadow: var(--fokus); }
input.mono, .mono-feld { font: 400 15px var(--font-mono); }
.reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 24px; }
.stapel { display: flex; flex-direction: column; gap: 20px; }
/* Status */
.status { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; }
.punkt { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--aus); }
.ok .punkt, .punkt.ok { background: var(--seegras); } .ok { color: var(--seegras); }
.plan .punkt, .punkt.plan { background: transparent; border: 2px solid var(--violett-700); } .plan { color: var(--violett-700); }
.pause .punkt, .punkt.pause { background: var(--bernstein); } .pause { color: var(--bernstein-text); }
.err .punkt, .punkt.err { background: var(--koralle-text); } .err { color: var(--koralle-text); }
.off .punkt, .punkt.off { background: var(--aus); } .off { color: var(--tinte-leise); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px;
  font: 600 12px/1.2 var(--font-mono); white-space: nowrap; }
.badge.ok { background: var(--seegras-flaeche); } .badge.plan { background: var(--flieder-100); }
.badge.pause { background: var(--bernstein-flaeche); } .badge.err { background: var(--fehler-flaeche); }
.badge.off { background: var(--papier-200); }
.badge.voll { background: var(--violett-700); color: var(--primaer-text); }


/* Surfaces and messages */
.panel { background: var(--papier-50); border: var(--linie); padding: 22px 26px; }
.meldung { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--violett-700);
  background: var(--flieder-100); font-size: 16px; }
.meldung.fehler { background: var(--fehler-flaeche); border-color: var(--koralle-text); }
.meldung.fehler .icon { color: var(--koralle-text); }
.meldung.ok { background: var(--seegras-flaeche); border-color: var(--seegras); }
.meldung .btn.leise { margin-left: auto; }
.meldung:has(.update-schritte) { flex-direction: column; align-items: flex-start; gap: 8px; }
.meldung p { margin: 0; }
.update-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.update-schritte li { color: var(--text-leise, inherit); opacity: .65; }
.update-schritte li.fertig { opacity: .85; }
.update-schritte li.aktuell { opacity: 1; font-weight: 600; }
.update-schritte span { display: inline-block; width: 1.2em; }

/* Account shell: the app's typography and surfaces without its sidebar. */
main { max-width: 1180px; margin: 0 auto; padding: 32px 40px 24px; min-height: 100vh;
  display: flex; flex-direction: column; gap: 40px; }
.seitenkopf { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding-bottom: 24px; border-bottom: 2px solid var(--violett-700); }
.marke { color: var(--violett-700); text-decoration: none; font: 700 36px/1 var(--font-serif); letter-spacing: -.02em; }
.seitenkopf nav { font: 500 13px/1.4 var(--font-mono); }
.inhalt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
h1 { font: 600 40px/1.1 var(--font-serif); margin-bottom: 16px; color: var(--violett-700); }
h2 { font: 600 28px/1.2 var(--font-serif); margin: 32px 0 16px; }
h3 { font: 600 20px/1.3 var(--font-serif); margin: 24px 0 12px; }
p { margin-bottom: 16px; max-width: 72ch; }
p:last-child { margin-bottom: 0; }
.panel, .meldung { margin: 20px 0; min-width: 0; }
form.reihe { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
form.reihe > .feld { flex: 1 1 220px; }
form.reihe > .btn { flex: 0 1 auto; }
form.reihe > .leise { padding-bottom: 10px; }
.panel > form.reihe { margin-top: 24px; }
.inhalt > h1 + form { margin-top: 24px; }
.btn { max-width: 100%; height: auto; min-height: 40px; padding-top: 10px; padding-bottom: 10px;
  white-space: normal; text-align: center; line-height: 1.3; }
/* The reference hover remains legible with deep-sea primary button text. */
.btn:hover:not(.sekundaer):not(.gefahr) { background: var(--violett-500); border-color: var(--violett-500); }
.status { white-space: normal; line-height: 1.4; }
.warn { color: var(--bernstein-text); }
pre { font: 400 13px/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.rechtstext { max-width: 72ch; }
.rechtstext ul { padding-left: 24px; margin: 16px 0 24px; }
.rechtstext li + li { margin-top: 8px; }
footer { border-top: var(--linie); padding-top: 24px; font: 400 12px/1.5 var(--font-mono); }

/* Semantic account/admin tables use the app's table surface and heading pattern. */
.tabelle { background: var(--papier-50); border: var(--linie); max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 12px 18px; overflow-wrap: anywhere; }
th { border-bottom: 2px solid var(--violett-700); font: 600 11px/1.4 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-leise); }
td { border-top: var(--linie); }
tbody tr:first-child td { border-top: 0; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
td.zahl { font: 400 13px/1.55 var(--font-mono); }
.panel > .tabelle { border: 0; }

@media (max-width: 640px) {
  main { padding: 24px 20px; gap: 28px; }
  .seitenkopf { align-items: flex-start; gap: 16px; }
  .seitenkopf nav { width: 100%; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .panel { padding: 18px 16px; }
  form.reihe { align-items: stretch; }
  form.reihe > .feld, form.reihe > .btn { flex: 1 1 100%; }
  form.reihe > .leise { padding: 0; }
  /* Keep column headers available to assistive technology in the stacked layout. */
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr + tr { border-top: 2px solid var(--papier-300); }
  td, td.zahl { padding: 10px 12px; text-align: left; }
  td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 6px;
    font: 600 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-leise); }
  tbody tr:first-child td + td { border-top: var(--linie); }
  td:empty { display: none; }
}

/* Website account pages: shared components arranged without the instance sidebar. */
.f1 { background: oklch(.66 .12 25); } .f2 { background: oklch(.66 .12 65); }
.f3 { background: oklch(.66 .12 150); } .f4 { background: oklch(.66 .12 215); }
.f5 { background: oklch(.66 .12 300); } .f6 { background: oklch(.66 .12 100); }
.f7 { background: oklch(.5 .11 255); } .f8 { background: oklch(.52 .09 135); }
.f9 { background: oklch(.55 .13 345); } .f10 { background: oklch(.76 .12 80); }
.f11 { background: oklch(.76 .09 190); } .f12 { background: oklch(.8 .06 30); }
main { max-width: none; padding: 0; gap: 0; min-height: calc(100vh - 4px); }
.seitenkopf { padding: 22px max(24px, calc((100vw - 1136px) / 2)); border-bottom: var(--linie);
  justify-content: flex-start; flex-wrap: nowrap; gap: 32px; }
.marke { display: inline-flex; align-items: center; gap: 10px; font-size: 28px; }
.marke svg { flex: none; } .marke svg > path:first-child { fill: currentColor; }
.marke svg > circle { fill: var(--papier-100); }
.website-nav { display: flex; align-items: center; gap: 28px; }
.seitenkopf .website-nav { font: 400 17px/1.4 var(--font-serif); }
.website-nav a { text-decoration: none; color: var(--tinte); }
.account-nav { margin-left: auto; } .account-nav form { display: inline-flex; }
.inhalt { width: 100%; max-width: 1280px; margin: 0 auto; padding: 72px; }
.inhalt .display { font-size: 60px; max-width: 580px; margin-bottom: 24px; }
.inhalt > .label { margin-bottom: 22px; }
.website-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 96px; align-items: start; }
.website-grid > section { min-width: 0; max-width: 600px; }
.stapel > p, .stapel > h1 { margin: 0; } .stapel > .panel { margin: 0; }
.website-grid .panel { margin: 0; }
.process-desktop { display: block; } .process-mobile { display: none; }
.process-steps { counter-reset: step; list-style: none; margin: 12px 0 0; padding: 0; }
.process-steps[start="2"] { counter-reset: step 1; }
.process-steps[start="3"] { counter-reset: step 2; }
.process-steps li { position: relative; counter-increment: step; padding: 16px 0 16px 46px; border-top: var(--linie); }
.process-steps li:first-child { border-top: 0; }
.process-steps li::before { content: counter(step); position: absolute; left: 0; top: 16px; width: 28px; height: 28px;
  display: grid; place-items: center; border: 2px solid var(--violett-500); border-radius: 50%; color: var(--violett-700);
  font: 600 12px/1 var(--font-mono); }
.process-steps p { margin: 0; } summary { cursor: pointer; font-weight: 600; }
.inhalt > .weg { max-width: 600px; margin-bottom: 44px; }
.address-preview { padding: 18px 20px; border: 1px dashed var(--flieder-300); }
.address-preview p { margin-bottom: 14px; }
.id-help summary { display: flex; align-items: center; gap: 12px; }
.frage { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--koralle-text); color: var(--papier-50); font: 600 12px var(--font-mono); }
.id-help p, .price-note { margin: 14px 0 0; padding: 16px 18px; background: var(--flieder-100); }
.consent { font-size: 15px; line-height: 1.5; } input[type="checkbox"] { accent-color: var(--violett-700); }
.price-note p { margin: 0; } .price-note b { color: var(--violett-700); font-size: 22px; }
.mail-preview { margin-top: 40px !important; padding: 0; box-shadow: 0 24px 50px -34px rgba(34,25,47,.4); }
.mail-preview > div { padding: 16px; } .mail-preview > .meta { border-bottom: var(--linie); font-size: 12px; }
.mail-help ul { margin: 0; padding-left: 20px; } .mail-help li + li { margin-top: 6px; }
.btn:disabled { cursor: default; opacity: .65; }
.link-card { max-width: 560px; border-top: 3px solid var(--violett-500); }
.link-card h1 { color: var(--tinte); } .link-card .btn { width: 100%; }
.link-card.expired { border-top-color: var(--bernstein); }
.account-layout { display: grid; grid-template-columns: minmax(0, 740px) minmax(240px, 340px); gap: 56px; }
.account-layout > aside { align-self: start; margin: 0; }
.account-card { margin: 0; border-top: 3px solid var(--violett-500); padding: 32px 36px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.card-heading h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; } .card-heading .status { font-size: 11px; }
.account-card .weg { margin-bottom: 28px; }
.account-card.waiting .atmen { float: left; margin: 4px 20px 12px 0; width: 76px; }
.account-card .meldung { clear: both; margin: 20px 0 0; }
.account-card .meldung p { margin: 0; }
.account-card.ready { background: var(--marke); border-color: var(--marke); color: #f5f2e8; }
.account-card.ready h2, .account-card.ready .siegel { color: #f5f2e8; }
.account-card.ready .siegel .domain, .account-card.ready .siegel .trenn { color: #d9caf2; }
.account-card.ready .siegel .kennung { color: #f5f2e8; background: #8058c4; }
.account-card.ready .btn { background: #f5f2e8; border-color: #f5f2e8; color: #5b2a9d; }
.account-card.ready .card-heading { flex-direction: column-reverse; align-items: flex-start; }
.account-card.paused { background: var(--bernstein-flaeche); border-color: var(--bernstein); }
.account-card.fault { background: var(--fehler-flaeche); border-color: var(--koralle-text); }
footer { display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px max(24px, calc((100vw - 1136px) / 2)); }
@media (max-width: 1100px) {
  .website-nav { gap: 16px; } .account-email { display: none; }
  .website-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .inhalt { padding: 56px 32px; }
}
@media (max-width: 860px) {
  .seitenkopf { padding: 14px 18px; gap: 16px; align-items: center; }
  .marke { font-size: 24px; } .marke svg { width: 28px; height: 28px; }
  .website-nav, .hosting-note { display: none; }
  .seitenkopf .account-nav { width: auto; font-size: 11px; gap: 12px; }
  .account-nav > .btn { display: none; }
  .inhalt { padding: 40px 20px 48px; }
  .inhalt .display { font-size: 40px; }
  .website-grid, .account-layout { display: flex; flex-direction: column; gap: 20px; }
  .website-grid > section, .website-grid > aside, .account-layout > * { width: 100%; max-width: none; }
  .process-desktop { display: none; } .process-mobile { display: block; width: 100%; }
  .process-mobile .label { display: none; }
  .website-grid > .process-mobile { order: 2; }
  .website-grid .order-note { margin-top: 0; }
  .mailbox > section { display: contents; } .mailbox > section > * { width: 100%; }
  .mailbox .mail-preview { order: 1; margin-top: 0 !important; }
  .mailbox .mail-help { order: 2; } .mailbox-close { display: none; }
  .account-card { padding: 20px 18px; }
  .card-heading h2 { font-size: 24px; } .card-heading .status { font-size: 10px; }
  .account-layout > aside { display: none; }
  .link-card { margin: 0; }
  .account-card.ready .btn { width: 100%; }
  footer { padding: 24px 20px 32px; font-size: 12px; }
}

/* The mobile sign-in order follows W3 without scripting. */
@media (max-width: 860px) {
  .login-layout > section { display: contents; }
  .login-layout > section > * { width: 100%; }
  .login-layout .order-note { order: 3; }
  .ready-way { display: none; }
}

/* Ready cards use the narrower W6 layout; waiting cards retain their companion panels. */
.ready-layout { display: block; max-width: 860px; }
.account-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-extras > section { margin: 0; padding: 20px 0; }
.account-extras h2, .account-layout > aside h2 { margin: 0 0 10px; }
.account-info { border-top: var(--linie); padding-top: 20px; overflow-wrap: anywhere; }
.account-info p { margin-bottom: 0; font-size: 15px; color: var(--tinte-leise); }
.ready-way { max-width: 600px; }
@media (max-width: 860px) {
  .account-extras { display: block; }
  .account-extras > section { padding-block: 16px; }
}

/* korall – Ergänzungen aus dem Design-Review (Oktober 2026).
   An korall.css anhängen. Bestehende Tokens werden genutzt, neue sind mit NEU markiert.
   Gilt für korall.news UND die Instanz (gleiche Datei ausliefern). Alles ohne JavaScript. */

/* ── NEU: Bewegung ─────────────────────────────────────────── */
:root {
  --dauer-kurz: 160ms;      /* Rückmeldung: Knopf, Schalter */
  --dauer: 320ms;           /* Ein- und Aufklappen */
  --dauer-buehne: 640ms;    /* nur Website: Bühnenauftritt */
  --stroemung: cubic-bezier(.2, .7, .2, 1);
  /* NEU: Zustand „wartet“ (nutzt bestehende Fliedertöne) */
  --wartet-flaeche: var(--flieder-100);
  --wartet-linie: var(--violett-500);
}
@keyframes auftauchen { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes atmen { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes wachsen { from { flex-grow: 0; } to { flex-grow: 1; } }
@keyframes drehen { to { transform: rotate(360deg); } }
.auftauchen { animation: auftauchen var(--dauer-buehne) var(--stroemung) both; }
.auftauchen.spaeter { animation-delay: .15s; }

/* ── A1: Titel in Satzschreibung ───────────────────────────── */
.display { text-transform: none; letter-spacing: -.015em; line-height: .98; }
.display.buehne { font-size: 84px; line-height: .95; }   /* Website-Hero */

/* ── A2: Riff-Leiste (oberster Rand beider Oberflächen) ────── */
.riff-leiste { display: flex; gap: 2px; height: 4px; }
.riff-leiste span { flex: 1; }
/* Markup: <div class="riff-leiste" aria-hidden="true"><span class="f1"></span> … <span class="f12"></span></div> */

/* ── A3: Zustand „wartet“ ──────────────────────────────────── */
.wartet { color: var(--violett-700); }
.punkt.wartet, .wartet .punkt { background: transparent; border: 2px dashed var(--wartet-linie); width: 10px; height: 10px; }
.badge.wartet { background: var(--wartet-flaeche); border: 1px dashed var(--wartet-linie); }
.meldung.wartet { background: var(--wartet-flaeche); border: 1px dashed var(--wartet-linie); }
.meldung.hinweis { background: var(--bernstein-flaeche); border-color: var(--bernstein); }
.waechst { display: flex; flex-direction: column; gap: 18px; padding: 32px 34px; background: var(--wartet-flaeche);
  border: 1px dashed var(--wartet-linie); }
.atmen { display: flex; gap: 3px; align-items: flex-end; height: 32px; }
.atmen i { width: 5px; height: 100%; background: var(--flieder-300); transform-origin: bottom; animation: atmen 2.4s ease-in-out infinite; }
.atmen i:nth-child(4n+3) { background: var(--koralle); }
.atmen i:nth-child(2) { animation-delay: .2s; } .atmen i:nth-child(3) { animation-delay: .4s; } .atmen i:nth-child(4) { animation-delay: .6s; }
.atmen i:nth-child(5) { animation-delay: .8s; } .atmen i:nth-child(6) { animation-delay: 1s; } .atmen i:nth-child(7) { animation-delay: 1.2s; }
.atmen i:nth-child(8) { animation-delay: 1.4s; } .atmen i:nth-child(9) { animation-delay: 1.6s; } .atmen i:nth-child(10) { animation-delay: 1.8s; }
.kreis-laeuft { width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--wartet-linie); animation: drehen 6s linear infinite; }

/* ── A4: Der Weg (Bestellweg, Assistent, Lese-App) ─────────── */
.weg { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.weg .station { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 84px; text-align: center;
  font: 500 11px/1.25 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-leise); }
.weg .station::before { content: attr(data-nr); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--flieder-300); font: 600 13px/1 var(--font-mono); color: var(--tinte-leise); }
.weg .station.fertig::before { content: "✓"; background: var(--seegras); border-color: var(--seegras); color: var(--papier-50); }
.weg .station[aria-current="step"] { color: var(--violett-700); font-weight: 600; }
.weg .station[aria-current="step"]::before { background: var(--violett-700); border-color: var(--violett-700); color: var(--primaer-text);
  box-shadow: 0 0 0 5px var(--flieder-100); }
.weg .strich { flex: 1; min-width: 8px; height: 0; border-top: 2px dashed var(--flieder-300); margin-bottom: 22px; }
.weg .station.fertig + .strich { border-top: 2px solid var(--seegras); }
@media (max-width: 860px) {
  .weg .station { min-width: 40px; font-size: 0; gap: 0; }
  .weg .station[aria-current="step"] { font-size: 11px; gap: 8px; }
  .weg .strich { margin-bottom: 0; }
}

/* ── NEU: Adress-Siegel ────────────────────────────────────── */
.siegel { display: inline-flex; align-items: center; flex-wrap: wrap; font: 500 20px/1 var(--font-mono); }
.siegel .trenn, .siegel .domain { color: var(--tinte-leise); }
.siegel .kennung { padding: 5px 8px; background: var(--flieder-100); color: var(--violett-700); border-radius: 4px; letter-spacing: .04em; }
.siegel.klein { font-size: 14px; }

/* ── NEU: Wahlkarten mit Hörprobe (Stimme, Klangwelt, Lese-Weg) ── */
.stimm-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.stimm-karte { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--papier-50);
  border: var(--linie); cursor: pointer; }
.stimm-karte:has(input:checked) { border: 2px solid var(--violett-700); background: var(--flieder-100); padding: 15px 17px; }
.stimm-karte:has(input:focus-visible) { box-shadow: var(--fokus); }
.stimm-karte audio { width: 100%; height: 34px; }
.stimm-karte .avatar { width: 40px; height: 40px; color: #22192f; }
.bald-karte { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px dashed var(--flieder-300); }
.bald-karte .avatar { background: transparent; border: 1.5px dashed var(--flieder-300); color: var(--tinte-leise); }
.marke-klein { font: 600 10px/1 var(--font-mono); letter-spacing: .08em; padding: 3px 6px; text-transform: uppercase;
  background: var(--violett-700); color: var(--primaer-text); }
.marke-klein.offen { background: transparent; border: 1px solid var(--flieder-300); color: var(--violett-700); }
.marke-klein.test { background: transparent; border: 1px dashed var(--bernstein); color: var(--bernstein-text); }

/* ── NEU: Fokus-Layout für den Assistenten (ohne Seitenleiste) ── */
.fokus { display: flex; flex-direction: column; min-height: 100vh; }
.fokus-kopf { display: flex; align-items: center; gap: 24px; padding: 20px 64px; border-bottom: var(--linie); }
.fokus-inhalt { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 44px 24px 40px; display: flex; flex-direction: column; gap: 24px; }
.fokus-fuss { position: sticky; bottom: 0; border-top: var(--linie); background: var(--papier-50); }
.fokus-fuss > div { max-width: 860px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 20px; }
.fokus-fuss .btn { margin-left: auto; }
.fortschritt-mobil { display: none; }
@media (max-width: 860px) {
  .fokus-kopf { padding: 12px 16px; }
  .fokus-inhalt { padding: 24px 16px 28px; gap: 18px; }
  .fokus .weg { display: none; }
  .fortschritt-mobil { display: flex; gap: 3px; height: 6px; }
  .fortschritt-mobil span { flex: 1; background: var(--papier-300); }
  .fortschritt-mobil .fertig { background: var(--seegras); } .fortschritt-mobil .jetzt { background: var(--violett-700); }
}

/* ── NEU: Website-Bänder (korall.news) ─────────────────────── */
.band { padding: 88px 72px; }
.band.tief { background: var(--violett-800); color: #f5f2e8; }
.band.flaeche { background: var(--papier-50); border-block: var(--linie); }
/* Public product pages. */
.badge, .status { white-space: nowrap; flex-shrink: 0; }
.site-bands { max-width: none; padding: 0; }
.band-content { max-width: 1136px; margin-inline: auto; }
.site-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.site-hero .display { text-transform: none; color: var(--violett-700); font-size: clamp(44px, 4.8vw, 64px); line-height: 1.06; }
.site-hero .stapel { max-width: 520px; }
.site-hero .meta { font-size: 12px; }
.site-bands .t2, .about-page .t2, .product-guide .t2 { font-size: 36px; line-height: 1.15; }
.band .label, .about-page .label, .product-guide .label { margin-bottom: 16px; }
.site-text-link { font-size: 16px; }
.site-thirds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.site-thirds article { border-top: var(--linie); padding-top: 20px; }
.site-thirds .t3 { font-size: 24px; } .site-thirds p { font-size: 17px; margin-bottom: 0; }
.site-voices { border-top: var(--linie); border-bottom: var(--linie); margin-top: 40px; padding-block: 20px; }
.site-voices > summary { cursor: pointer; font-weight: 600; color: var(--violett-700); }
.site-voices > summary .meta { margin-left: 12px; font-size: 12px; font-weight: 400; }
.site-voices > p { margin-top: 20px; }
.voice-samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.voice-sample { min-width: 0; display: flex; flex-direction: column; align-items: start; }
.voice-sample h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.voice-sample p { flex: 1; }
.voice-initial { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font: 600 12px var(--font-mono); color: #22192f; }
.site-offer { padding: 32px; background: var(--flieder-100); }
.site-offer .label { font-size: 12px; } .site-offer .meta { font-size: 12px; margin-top: 16px; margin-bottom: 0; }
.site-price { font-size: 48px; color: var(--violett-700); }
.beta-form { display: flex; gap: 10px; } .beta-form input { min-width: 0; width: 100%; }
.beta-form .btn { flex-shrink: 0; }
.beta-form.has-turnstile { flex-direction: column; }
.about-section, .guide-section { padding: 56px 0; align-items: start; border-bottom: var(--linie); }
.about-section:first-child { padding-top: 16px; } .about-section:last-child, .guide-section:last-of-type { border-bottom: 0; }
.about-page .display, .product-guide .display { text-transform: none; color: var(--violett-700); }
.product-guide .guide-intro { max-width: 760px; padding-bottom: 24px; }
.guide-finish { margin-top: 32px; padding: 32px; background: var(--flieder-100); }
.device-window { min-width: 0; overflow: hidden; border: var(--linie); border-radius: 8px; background: var(--papier-50); }
.device-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: var(--linie); }
.device-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--flieder-300); }
.device-window picture { display: block; }
.device-window img { width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: top; }
.site-faq .site-columns { align-items: start; }
.faq-items details { border-bottom: var(--linie); padding-block: 16px; }
.faq-items details:first-child { border-top: var(--linie); }
.faq-items summary { cursor: pointer; font-weight: 600; color: var(--violett-700); }
.faq-items p { margin-top: 12px; font-size: 16px; color: var(--tinte-leise); }
.mobile-menu { display: none; }
@media (max-width: 1100px) {
  .site-columns { gap: 40px; } .voice-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beta-form { flex-direction: column; }
}
@media (max-width: 860px) {
  .mobile-menu { display: block; position: relative; } .mobile-menu summary { font-size: 10px; }
  .mobile-menu nav { position: absolute; top: 100%; right: 0; z-index: 2; display: flex; flex-direction: column; gap: 16px;
    background: var(--papier-50); padding: 20px; border: var(--linie); min-width: 180px; }
  .seitenkopf .account-nav { margin-left: auto; } .seitenkopf .mobile-menu { margin-left: auto; }
  .site-columns, .site-thirds { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .site-hero .display { font-size: 42px; }
  .site-bands .t2, .about-page .t2, .product-guide .t2 { font-size: 30px; }
  .voice-samples { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-offer { padding: 24px; }
  .about-section, .guide-section { padding: 32px 0; } .about-section:first-child { padding-top: 0; }
}

/* Homepage: a compact product composition and a day told in four moments. */
.hero-product { min-width: 0; margin: 0; }
.hero-devices { position: relative; padding: 16px 44px 52px 0; }
.hero-devices .device-window { box-shadow: 0 18px 36px -24px var(--tinte-leise); }
.hero-devices .device-window img { height: 350px; }
.device-phone { width: 184.6px; aspect-ratio: 923 / 2000; flex: none; overflow: hidden;
  outline: 5px solid var(--papier-300); border-radius: 22px; background: var(--papier-50); }
.device-phone img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-devices .device-phone { position: absolute; width: 128px; right: 0; bottom: 0; }
.hero-product figcaption { margin-top: 20px; font-size: 11px; }
.home-steps { list-style: none; padding: 0; }
.home-steps li { border-top: var(--linie); padding-top: 20px; }
.home-steps .label { margin-bottom: 12px; }
.home-more { margin-top: 24px; }
.site-steps, .site-features { border-block: var(--linie); }
.site-day { background: var(--papier-50); }
.day-intro { margin: 16px 0 8px; }
/* Phones and tablets: a vertical line on the left, one station after another. */
.day-timeline { list-style: none; margin: 32px 0 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 28px;
  border-left: 2px solid var(--flieder-200); }
.day-station { position: relative; display: grid; gap: 10px; min-width: 0; }
.day-time { justify-self: start; position: relative; padding: 4px 10px; border-radius: 99px; background: var(--violett-700);
  color: var(--primaer-text); font-size: 11px; letter-spacing: .08em; }
.day-time::before { content: ""; position: absolute; left: -33px; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--violett-700); box-shadow: 0 0 0 5px var(--papier-50); transform: translateY(-50%); }
.day-card { display: grid; gap: 12px; min-width: 0; }
.day-frame { height: 230px; overflow: hidden; border: var(--linie); border-radius: 10px; background: var(--papier-100); }
.day-frame picture { display: contents; }
.day-frame img { display: block; width: 100%; height: 100%; }
.day-frame-browser img { object-fit: cover; object-position: top left; }
/* Phone screenshots stay whole, as a phone on a soft background. */
.day-frame-phone { background: var(--flieder-100); padding: 18px 0 0; display: flex; justify-content: center; }
.day-frame-phone img { width: 52%; height: auto; align-self: flex-start; border: 6px solid #22192f; border-bottom: 0;
  border-radius: 26px 26px 0 0; box-shadow: 0 16px 30px -12px rgba(34, 25, 47, .35); }
.day-frame-review { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px; background: var(--flieder-100); color: var(--violett-700); text-align: center; }
.day-frame-review > svg { width: 32px; height: 32px; flex: none; }
.day-frame-review .label { margin: 0; font-size: 10px; letter-spacing: .06em; }
.day-review-title { max-width: 26ch; font-size: 22px; line-height: 1.2; }
.day-waveform { display: flex; align-items: center; justify-content: center; gap: 4px; height: 28px; flex: none; }
.day-waveform span { width: 4px; height: 12px; border-radius: 2px; background: currentColor; }
.day-waveform span:nth-child(3n) { height: 22px; }
.day-waveform span:nth-child(4n) { height: 28px; }
.day-waveform span:nth-child(5n) { height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .day-waveform span { animation: day-wave 3.8s ease-in-out infinite alternate; }
  .day-waveform span:nth-child(3n) { animation-delay: -1.2s; }
  .day-waveform span:nth-child(4n) { animation-delay: -2.4s; }
  @keyframes day-wave { from { transform: scaleY(.65); } to { transform: scaleY(1); } }
}
.day-text h3 { margin: 0; }
.day-text p.leise { margin-top: 4px; font-size: 16px; }
.day-caption { margin-top: 6px; font-size: 11px; }
.day-frame[role="button"] { cursor: zoom-in; }
.day-frame[role="button"]:focus-visible { outline: 2px solid var(--koralle); outline-offset: 4px; }
@media (min-width: 900px) {
  /* Four stations on one line: cards 36% wide, centred at 20/40/60/80%,
     odd stations above the line, even ones below, so neighbours never touch. */
  .day-timeline { padding: 0; border: 0; grid-template-columns: repeat(50, minmax(0, 1fr));
    grid-template-rows: auto 56px auto; gap: 0; }
  .day-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--flieder-200); }
  .day-station { display: contents; }
  .day-station:nth-child(1) > * { grid-column: 2 / span 18; }
  .day-station:nth-child(2) > * { grid-column: 12 / span 18; }
  .day-station:nth-child(3) > * { grid-column: 22 / span 18; }
  .day-station:nth-child(4) > * { grid-column: 32 / span 18; }
  .day-time { grid-row: 2; align-self: center; justify-self: center; z-index: 1; }
  .day-time::before { display: none; }
  .day-station:nth-child(odd) .day-card { grid-row: 1; align-self: end; padding-bottom: 18px; }
  .day-station:nth-child(even) .day-card { grid-row: 3; align-self: start; padding-top: 18px; }
  /* A short stem joins card and time. */
  .day-card { position: relative; }
  .day-card::after { content: ""; position: absolute; left: 50%; width: 2px; height: 18px; background: var(--flieder-300); }
  .day-station:nth-child(odd) .day-card::after { bottom: 0; }
  .day-station:nth-child(even) .day-card::after { top: 0; }
  .day-station:nth-child(even) .day-card { grid-template-rows: auto auto; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .day-frame[data-day-zoom] { transition: transform 200ms ease-out, box-shadow 200ms ease-out; }
  .day-frame[data-day-zoom]:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px var(--tinte-leise); }
}
/* In-page view of a picture instead of a new tab. */
.day-zoom { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 90vh; overflow: visible; }
.day-zoom::backdrop { background: rgba(20, 13, 28, .72); }
.day-zoom img { display: block; max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto; border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); background: var(--papier-50); }
.day-zoom form { position: absolute; top: -14px; right: -14px; }
.day-zoom button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--papier-50); color: var(--tinte);
  font-size: 20px; cursor: pointer; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
@media (prefers-reduced-motion: no-preference) {
  .day-zoom[open] { animation: day-zoom-in 220ms ease-out; }
  .day-zoom[open]::backdrop { animation: day-fade 220ms ease-out; }
  @keyframes day-zoom-in { from { opacity: 0; transform: scale(.94); } }
  @keyframes day-fade { from { opacity: 0; } }
}
.feature-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.feature-tile { padding: 24px; border: var(--linie); background: var(--papier-50); }
.feature-tile > svg { width: 28px; height: 28px; color: var(--violett-700); margin-bottom: 20px; }
.feature-tile p { margin-top: 12px; font-size: 17px; }
.site-finish { background: var(--flieder-100); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature-tile { transition: transform 180ms ease; }
  .feature-tile:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: no-preference) {
  .day-card.reveal-pending { opacity: 0; transform: translateY(16px); }
  .day-card.reveal-entering { animation: day-arrive 500ms ease both; }
  @keyframes day-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1100px) {
  .site-home .website-nav { gap: 14px; font-size: 15px; }
}
@media (max-width: 859px) {
  .hero-devices { padding: 16px 30px 40px 0; }
  .hero-devices .device-window img { height: 240px; }
  .hero-devices .device-phone { width: 100px; border-radius: 16px; }
  .feature-tiles { grid-template-columns: minmax(0, 1fr); }
}
/* Guide: six quiet steps, with the same browser and phone frames as the homepage. */
.guide-intro > p:last-child { max-width: 580px; font-size: 20px; }
.guide-layout, .guide-steps, .guide-picture { min-width: 0; }
.guide-index { display: none; }
.guide-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px;
  align-items: center; scroll-margin-top: 32px; }
.guide-section:nth-child(even) .guide-copy { grid-column: 2; grid-row: 1; }
.guide-section:nth-child(even) .guide-picture { grid-column: 1; grid-row: 1; }
.guide-copy .label { margin-bottom: 0; }
.guide-picture { position: relative; }
.guide-picture .device-window { box-shadow: 0 18px 36px -24px var(--tinte-leise); }
.guide-picture .device-window picture { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.guide-picture .device-window img { position: absolute; inset: 0; height: 100%; max-height: none; }
.guide-picture-full .device-window picture { aspect-ratio: auto; }
.guide-picture-full .device-window img { position: static; height: auto; }
.guide-picture .device-phone { position: absolute; width: 25%; right: 12px; bottom: -18px; border-radius: 16px;
  box-shadow: 0 18px 36px -24px var(--tinte-leise); }
.guide-picture [role="button"] { cursor: zoom-in; }
.guide-picture [role="button"]:focus-visible { outline: 2px solid var(--koralle); outline-offset: 4px; }
@media (min-width: 1100px) {
  .guide-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
  .guide-index { display: block; position: sticky; top: 32px; align-self: start; padding-top: 56px; }
  .guide-index ol { list-style: none; margin: 0; padding: 0; border-left: var(--linie); }
  .guide-index a { display: flex; align-items: baseline; gap: 10px; padding: 10px 0 10px 12px;
    border-left: 2px solid transparent; margin-left: -1px; color: var(--tinte-leise); text-decoration: none; font-size: 15px; }
  .guide-index .meta { font-size: 11px; flex: none; white-space: nowrap; }
  .guide-index a:hover, .guide-index a[aria-current="step"] { border-color: var(--violett-700); color: var(--violett-700); }
  .guide-index a[aria-current="step"] { font-weight: 600; }
}
@media (max-width: 860px) {
  .guide-section { grid-template-columns: minmax(0, 1fr); gap: 24px; scroll-margin-top: 90px; }
  .guide-section:nth-child(even) .guide-copy, .guide-section:nth-child(even) .guide-picture { grid-column: auto; grid-row: auto; }
  .guide-intro > p:last-child { font-size: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .guide-section.reveal-pending:not(:focus-within) { opacity: 0; }
  .guide-section.reveal-entering { animation: day-fade 500ms ease both; }
}
.faq-page { max-width: 760px; margin-inline: auto; }
.faq-page .display { text-transform: none; color: var(--violett-700); }
.faq-page > header { margin-bottom: 40px; }
.faq-section { margin-top: 28px; }
.faq-section .label { margin-bottom: 10px; }
.faq-section details { scroll-margin-top: 24px; }
.faq-section details:target { border-color: var(--violett-500); }
.faq-section details > a { display: inline-block; margin-top: 12px; }
@media (max-width: 1280px) {
  .seitenkopf { gap: 20px; } .website-nav { gap: 18px; } .account-email { display: none; }
}
@media (max-width: 860px) {
  .guide-finish { padding: 24px; }
  .account-layout > aside { display: block; }
}

/* H3: operator pages share the account components, with stacked metrics and steps. */
.account-nav a[aria-current="page"] { font-weight: 600; text-decoration-thickness: 2px; }
.admin-page .label + h1 { margin-top: 12px; }
.ops-navigation { display: flex; flex-wrap: wrap; gap: 6px 20px; border-bottom: var(--linie); padding-bottom: 16px; margin-bottom: 28px; }
.ops-navigation a { padding: 8px 0; color: var(--tinte-leise); text-decoration: none; }
.ops-navigation a[aria-current="page"] { color: var(--violett-700); font-weight: 600; text-decoration: underline; text-underline-offset: 8px; }
.admin-page { min-width: 0; }
.admin-page .tabelle { min-width: 0; }
.admin-page table { min-width: 680px; }
.ops-customers table { min-width: 1000px; }
.ops-filters { margin-bottom: 24px; align-items: end; }
form.ops-filters > .feld { flex: 0 1 260px; }
.ops-filters select { width: 100%; }
.ops-customers td { overflow-wrap: normal; }
.ops-observation { display: block; color: var(--tinte-leise); font-size: 12px; margin-top: 4px; }
.ops-health .admin-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ops-health { border-top: 3px solid var(--seegras); }
.ops-deletion { border-left: 3px solid var(--bernstein-text); }
.ops-deletion h2 { margin-top: 0; }
.ops-deleted { padding-block: 16px; }
.admin-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-cards .panel { margin: 0; }
.admin-card { border-top: 3px solid var(--violett-700); }
.admin-card h3 { margin: 0; flex: 1 1 240px; min-width: 0; }
.admin-card .card-heading { align-items: flex-start; flex-wrap: wrap; }
.admin-card .card-heading + p { margin-top: 14px; }
.admin-page .siegel { line-height: 1.5; }
.admin-page .siegel > span { overflow-wrap: anywhere; min-width: 0; }
.admin-notice { justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.admin-notice > div { flex: 1 1 240px; min-width: 0; }
.admin-notice p { margin: 10px 0 0; }
.admin-notice > form { align-self: center; }
.admin-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.admin-facts > div { min-width: 0; border-top: var(--linie); padding-top: 10px; }
.admin-facts dt { font: 500 11px/1.4 var(--font-mono); color: var(--tinte-leise); }
.admin-facts dd { margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.admin-page meter { display: block; width: 100%; min-width: 100px; height: 16px; accent-color: var(--seegras); }
.admin-page meter::-webkit-meter-bar { background: var(--papier-200); border: var(--linie); border-radius: 0; }
.admin-page meter::-webkit-meter-optimum-value { background: var(--seegras); }
.admin-page meter::-moz-meter-bar { background: var(--seegras); }
.admin-details { margin-top: 24px; }
.admin-invite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-details > summary { cursor: pointer; color: var(--violett-700); font-weight: 600; }
.admin-details > summary.err { color: var(--koralle-text); }
.admin-details[open] > summary { margin-bottom: 18px; }
.admin-page .panel > .t3 { margin-top: 0; }
.admin-page .feld .hinweis { margin: 0; }
.admin-page .admin-way { align-items: flex-start; }
.admin-page .admin-way .station { min-width: 0; flex: 1; font-size: 10px; gap: 8px; }
.admin-way .station .meta { font-size: 10px; text-transform: none; letter-spacing: 0; }
.admin-page .admin-way .strich { margin: 14px 4px 0; flex: 0 0 12px; }
.admin-page .admin-way .station.gescheitert { color: var(--koralle-text); }
.admin-page .admin-way .station.gescheitert::before { content: "!"; background: var(--fehler-flaeche);
  border-color: var(--koralle-text); color: var(--koralle-text); box-shadow: none; }
.admin-history { list-style: none; padding: 0; margin: 0; }
.admin-history li { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.admin-history li + li { border-top: var(--linie); }
@media (max-width: 860px) {
  .ops-health .admin-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-cards { grid-template-columns: minmax(0, 1fr); }
  .admin-page .admin-way { flex-direction: column; align-items: stretch; gap: 12px; }
  .admin-page .admin-way .station { display: grid; grid-template-columns: 28px minmax(0, 1fr); text-align: left;
    align-items: center; font-size: 11px; gap: 8px 14px; }
  .admin-way .station .meta { grid-column: 2; }
  .admin-page .admin-way .strich { display: none; }
}
@media (max-width: 640px) {
  .admin-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .admin-history li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Homepage bands, with optional voice samples. */
.site-home .band { padding-block: 64px; scroll-margin-top: 80px; }
.site-home .site-voices { margin-top: 0; }
@media (max-width: 1100px) { :is(.site-home, .site-public) .seitenkopf { gap: 20px; } }
@media (max-width: 860px) {
  .site-home .band { padding: 40px 20px; }
  :is(.site-home, .site-public) .seitenkopf { position: sticky; top: 0; z-index: 10; padding: 10px 16px; gap: 12px;
    background: var(--papier-100); align-items: center; }
  :is(.site-home, .site-public) .seitenkopf .account-nav { display: none; }
  .site-home-cta { margin-left: auto; height: 36px; padding-inline: 10px; font-size: 10px; letter-spacing: .02em; }
  :is(.site-home, .site-public) .seitenkopf .mobile-menu { margin-left: 0; }
  :is(.site-home, .site-public) .mobile-menu summary { height: 36px; padding-inline: 8px; }
  :is(.site-home, .site-public) .mobile-menu nav { max-height: calc(100dvh - 80px); overflow-y: auto; }
  .device-window img { max-height: 320px; }
}

/* Reduced motion leaves the homepage static; shared components keep their fallback. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .site-home *, .site-home *::before, .site-home *::after { animation: none !important; transition: none !important; }
}

/* Voice previews: the same control as in korall instead of the browser's own player. */
.hoerprobe { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 14px 5px 5px; border: 1.5px solid var(--violett-700);
  border-radius: 999px; background: transparent; color: var(--violett-700); text-decoration: none;
  font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.hoerprobe:hover { background: var(--flieder-100); }
.hoerprobe:focus-visible { box-shadow: var(--fokus); outline: none; }
.hoerprobe-knopf { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--violett-700); color: var(--papier-50); }
.hoerprobe-knopf .icon { width: 13px; height: 13px; }
.hoerprobe-pause, .hoerprobe[aria-pressed="true"] .hoerprobe-play { display: none; }
.hoerprobe[aria-pressed="true"] .hoerprobe-pause { display: block; }
.hoerprobe-spur { flex: none; width: 56px; height: 3px; border-radius: 2px; background: var(--papier-300); overflow: hidden; }
.hoerprobe-spur > span { display: block; width: 0; height: 100%; background: var(--violett-700); transition: width .25s linear; }
@media (prefers-reduced-motion: reduce) { .hoerprobe-spur > span { transition: none; } }

/* One visible theme action; native forms also work without JavaScript. */
.site-theme-toggle { display: flex; flex: none; }
.site-theme-toggle form { margin: 0; }
.site-theme-button { width: 40px; height: 40px; padding: 0; background: transparent; color: var(--violett-700); border: var(--linie); }
.site-theme-light { display: none; }
:root[data-theme="dark"] .site-theme-dark { display: none; }
:root[data-theme="dark"] .site-theme-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-theme-dark { display: none; }
  :root:not([data-theme="light"]) .site-theme-light { display: block; }
}
@media (max-width: 860px) {
  .site-theme-button { width: 36px; height: 36px; }
  :is(.site-home, .site-public) .seitenkopf { gap: 8px; }
  :is(.site-home, .site-public) .seitenkopf .marke { gap: 6px; }
}
