/* ==========================================================================
   hochzeits-gaestebuch.de · Entwurf 4 (Emil-Stil)
   Layout: eine schmale Spalte (max 760px), Hairlines statt Flächen, das Demo-Gerät
   als Kernstück, kleine Schrift, hell und dunkel aus denselben Tokens.
   ========================================================================== */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-display: swap; src: url("fonts/inter-tight-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url("fonts/inter-tight-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Silkscreen"; font-weight: 400; font-display: swap; src: url("fonts/silkscreen-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #F2EFE9;
  --surface: #FFFFFF;
  --surface-2: #EAE6DE;
  --text: #141311;
  --text-2: #6B6965;
  --text-3: #A09D97;
  --line: rgba(26, 25, 23, 0.09);
  --line-2: rgba(26, 25, 23, 0.16);
  --ink: #1A1917;          /* Primärbutton */
  --ink-text: #FFFFFF;
  --rec: #D7261E;
  --red: #D7261E;
  --ok: #141311;
  --shadow: 0 1px 2px rgba(26, 25, 23, 0.04), 0 8px 24px -12px rgba(26, 25, 23, 0.18);
  --shadow-lg: 0 1px 2px rgba(26, 25, 23, 0.05), 0 24px 48px -24px rgba(26, 25, 23, 0.3);
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --r: 10px; --r-lg: 16px;
  --col: 760px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110; --surface: #1A1917; --surface-2: #222120;
    --text: #EDEBE6; --text-2: #9C9A94; --text-3: #6A6862;
    --line: rgba(237, 235, 230, 0.09); --line-2: rgba(237, 235, 230, 0.16);
    --ink: #EDEBE6; --ink-text: #111110; --ok: #EDEBE6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface: #1A1917; --surface-2: #222120;
  --text: #EDEBE6; --text-2: #9C9A94; --text-3: #6A6862;
  --line: rgba(237, 235, 230, 0.09); --line-2: rgba(237, 235, 230, 0.16);
  --ink: #EDEBE6; --ink-text: #111110; --ok: #EDEBE6;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--font); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color 200ms ease, color 200ms ease; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--text); color: var(--bg); }

.col { width: min(100% - 40px, var(--col)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 28px; max-width: 560px; }
.sec-head p { margin-top: 8px; color: var(--text-2); }
.h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; text-wrap: balance; }
.h3 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.lead { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 56ch; }
.small { font-size: 13px; color: var(--text-2); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; background: var(--ink); color: var(--ink-text); font-size: 14px; font-weight: 500; letter-spacing: -0.006em; cursor: pointer; white-space: nowrap; user-select: none; transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03); }
.btn--sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn--lg { height: 42px; padding: 0 18px; font-size: 15px; border-radius: 9px; }
.btn svg { width: 14px; height: 14px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
  .btn--ghost:hover { background: var(--surface-2); }
}
/* Inhalt des Buttons wechselt mit Blur-Crossfade (z. B. Kopieren → Kopiert) */
.btn-content { display: inline-flex; align-items: center; gap: 8px; transition: filter 200ms ease, opacity 200ms ease; }
.btn.is-swapping .btn-content { filter: blur(2px); opacity: 0.6; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: var(--text); } }

/* ---------- Entwurfsleiste ---------- */
.draft { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 6px 20px; background: var(--ink); color: var(--ink-text); font-size: 12px; }
.draft label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.show-todos [data-todo] { outline: 1.5px dashed var(--rec); outline-offset: 3px; position: relative; }
.show-todos [data-todo]::after { content: attr(data-todo); position: absolute; left: 0; top: 0; transform: translateY(calc(-100% - 6px)); font: 500 11px/1.3 var(--font); color: #fff; background: var(--rec); padding: 2px 6px; border-radius: 4px; white-space: nowrap; z-index: 5; pointer-events: none; }

/* ---------- Header ---------- */
.head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.head.is-stuck { border-bottom-color: var(--line); }
body:has(.draft) .head { top: 29px; }
.head .col { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.head nav { display: flex; align-items: center; gap: 4px; }
.head nav a { padding: 6px 10px; border-radius: 7px; font-size: 13px; color: var(--text-2); transition: color 120ms ease, background-color 120ms ease; }
@media (hover: hover) and (pointer: fine) { .head nav a:hover { color: var(--text); background: var(--surface-2); } }
.theme { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text-2); margin-left: 4px; transition: transform 160ms var(--ease-out), background-color 120ms ease, color 120ms ease; }
.theme:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .theme:hover { background: var(--surface-2); color: var(--text); } }
.theme svg { width: 16px; height: 16px; }
.theme .sun, .theme .moon { position: absolute; transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.theme { position: relative; }
:root[data-theme="dark"] .theme .sun, :root:not([data-theme="light"]) .theme .sun { opacity: 0; transform: rotate(-30deg) scale(0.8); }
:root[data-theme="dark"] .theme .moon, :root:not([data-theme="light"]) .theme .moon { opacity: 1; transform: none; }
:root[data-theme="light"] .theme .sun, :root:not([data-theme]) .theme .sun { opacity: 1; transform: none; }
:root[data-theme="light"] .theme .moon, :root:not([data-theme]) .theme .moon { opacity: 0; transform: rotate(30deg) scale(0.8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .theme .sun { opacity: 0; transform: rotate(-30deg) scale(0.8); } :root:not([data-theme]) .theme .moon { opacity: 1; transform: none; } }
@media (max-width: 640px) { .head nav a { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 88px) 0 32px; }
.hero .lead { margin-top: 14px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 13px; color: var(--text-2); }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }

/* ---------- Demo-Gerät ---------- */
.demo { padding: 8px 0 56px; }
.demo-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--text-2); }
.device { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.device-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.device-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.device-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); transition: background-color 150ms ease; }
.device[data-state="rec"] .device-status i { background: var(--rec); animation: blink 1000ms steps(2, start) infinite; }
.device[data-state="greeting"] .device-status i, .device[data-state="lifted"] .device-status i { background: var(--ok); }
@keyframes blink { to { opacity: 0; } }

/* Clip-Path-Tabs: eine zweite, „aktive“ Kopie wird freigestellt */
.tabs { position: relative; display: inline-block; padding: 3px; border-radius: 8px; background: var(--surface-2); isolation: isolate; }
.tabs-layer { display: grid; grid-template-columns: 1fr 1fr; }
.tabs button, .tabs span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; background: transparent; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.tabs button { transition: transform 160ms var(--ease-out); }
.tabs button:active { transform: scale(0.97); }
.tabs-layer--active { position: absolute; inset: 3px; background: var(--surface); border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--line); pointer-events: none; clip-path: inset(0 50% 0 0 round 6px); transition: clip-path 200ms var(--ease-out); }
.tabs-layer--active span { color: var(--text); }
.tabs[data-mode="video"] .tabs-layer--active { clip-path: inset(0 0 0 50% round 6px); }
.tabs svg { width: 13px; height: 13px; }

/* Bildschirm */
.screen { position: relative; height: 230px; background: var(--surface-2); overflow: hidden; }
.screen-inner { position: absolute; inset: 14px; border-radius: 10px; overflow: hidden; }
.viewfinder { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 30%, #5f7f86 0%, #2b4448 60%, #1b2c2f 100%); opacity: 0; transition: opacity 240ms ease; }
.device[data-mode="video"][data-state="rec"] .viewfinder, .device[data-mode="video"][data-state="greeting"] .viewfinder { opacity: 1; }
.viewfinder::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px; }
.viewfinder .corner { position: absolute; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.7); }
.viewfinder .corner.tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; } .viewfinder .corner.tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; }
.viewfinder .corner.bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; } .viewfinder .corner.br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }
.viewfinder .person { position: absolute; left: 50%; bottom: 0; width: 160px; height: 120px; transform: translateX(-50%); }
.viewfinder .person i { position: absolute; left: 50%; top: 10px; width: 46px; height: 46px; border-radius: 50%; background: #e9dccb; transform: translateX(-50%); }
.viewfinder .person b { position: absolute; left: 50%; bottom: -30px; width: 150px; height: 90px; border-radius: 80px 80px 0 0; background: #e9dccb; transform: translateX(-50%); }
.device[data-state="rec"] .viewfinder .person { animation: bob 2600ms ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-3px); } }

.greeting { position: absolute; left: 50%; top: 50%; width: min(86%, 440px); transform: translate(-50%, calc(-50% + 6px)); opacity: 0; text-align: center; transition: opacity 200ms ease, transform 260ms var(--ease-out); pointer-events: none; }
.greeting .who { display: block; margin-bottom: 6px; color: var(--text-3); }
.greeting p { font-size: 17px; line-height: 1.45; letter-spacing: -0.012em; color: var(--text); }
.device[data-mode="video"] .greeting p, .device[data-mode="video"] .greeting .who { color: #fff; }
.device[data-state="greeting"] .greeting { opacity: 1; transform: translate(-50%, -50%); }
.device[data-state="idle"] .idle-msg { opacity: 1; }
.idle-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-3); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.idle-msg b { display: block; color: var(--text-2); font-weight: 500; margin-bottom: 2px; }
.done-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.done-msg b { display: block; font-weight: 500; }
.done-msg span { color: var(--text-2); font-size: 13px; }
.device[data-state="done"] .done-msg { opacity: 1; }

/* lebende Wellenform */
.live { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 18px; opacity: 0; transition: opacity 200ms ease; }
.device[data-state="rec"] .live { opacity: 1; }
.device[data-mode="video"] .live { height: 40px; bottom: 10px; align-items: center; }
.live i { display: block; width: 3px; height: 48px; border-radius: 2px; background: var(--text); transform: scaleY(0.08); transform-origin: center; transition: transform 100ms ease; }
.device[data-mode="video"] .live i { height: 22px; background: rgba(255, 255, 255, 0.85); }
.rec-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--text); opacity: 0; transform: translateY(-4px); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.rec-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); animation: blink 1000ms steps(2, start) infinite; }
.device[data-state="rec"] .rec-badge { opacity: 1; transform: none; }
.device[data-mode="video"] .rec-badge { background: rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.2); color: #fff; }

/* Hörer: ein Griff wie bei einer Schublade, nur nach oben */
.dock { position: relative; height: 120px; border-top: 1px solid var(--line); background: var(--surface); }
.handset { position: absolute; left: 50%; top: 42px; width: 180px; height: 36px; margin-left: -90px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; transition: transform 240ms var(--ease-drawer), box-shadow 200ms ease; }
.handset::before, .handset::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.handset::before { left: 4px; } .handset::after { right: 4px; }
.handset .grip { position: absolute; left: 50%; top: 50%; width: 36px; height: 4px; margin: -2px 0 0 -18px; border-radius: 2px; background: var(--line-2); }
.handset.is-dragging { transition: none; cursor: grabbing; }
.handset.is-instant { transition: none; }
.device:not([data-state="idle"]) .handset { box-shadow: var(--shadow-lg); }
@media (hover: hover) and (pointer: fine) { .device[data-state="idle"] .handset:hover { border-color: var(--text-3); } }
.dock-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 12px; color: var(--text-3); transition: opacity 150ms ease; }
.dock-arrow { position: absolute; left: 50%; top: 18px; margin-left: -6px; width: 12px; height: 12px; color: var(--text-3); transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.device:not([data-state="idle"]) .dock-arrow { opacity: 0; transform: translateY(4px); }
.device[data-state="idle"] .dock-arrow { animation: nudge 1800ms ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Nachrichtenliste */
.messages { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.messages-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.messages-head b { color: var(--text); font-weight: 500; }
.msg-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 240ms var(--ease-out); }
.msg-wrap > div { overflow: hidden; }
.msg-wrap.is-leaving { grid-template-rows: 0fr; }
.msg { display: grid; grid-template-columns: 32px 1fr auto auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); opacity: 1; transform: none; transition: opacity 240ms ease, transform 260ms var(--ease-out), background-color 120ms ease; }
.msg-wrap:last-child .msg { border-bottom: 0; }
@starting-style { .msg { opacity: 0; transform: translateY(-6px); } }
.msg-wrap:not(.in) .msg { opacity: 0; transform: translateY(-6px); }
@media (hover: hover) and (pointer: fine) { .msg:hover { background: var(--surface-2); } }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.msg .who { font-weight: 500; font-size: 14px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.msg .who .kind { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.msg .who .kind svg { width: 11px; height: 11px; }
.msg .sub { font-size: 12px; color: var(--text-3); }
.thumb { position: relative; display: flex; align-items: center; gap: 2px; height: 18px; width: 84px; }
.thumb i { display: block; flex: 1; height: 100%; border-radius: 1px; background: var(--text-3); opacity: 0.55; transform-origin: center; }
.thumb .prog { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; clip-path: inset(0 100% 0 0); }
.thumb .prog i { background: var(--text); opacity: 1; }
.msg .dur { color: var(--text-2); }
.play { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--text); transition: transform 160ms var(--ease-out), background-color 120ms ease, opacity 150ms ease; }
.play:active { transform: scale(0.94); }
.play svg { width: 11px; height: 11px; }
.play .ic-pause { display: none; } .play.is-playing .ic-pause { display: block; } .play.is-playing .ic-play { display: none; }
@media (hover: hover) and (pointer: fine) { .play:hover { background: var(--surface-2); } }
.msg-empty { padding: 22px 14px; text-align: center; font-size: 13px; color: var(--text-3); }
.messages-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.messages-foot .btn--sm { gap: 6px; }

/* Toasts (bottom-right, same direction in and out, swipe down to dismiss) */
.toaster { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(340px, calc(100vw - 40px)); pointer-events: none; }
.toast { position: absolute; right: 0; bottom: 0; width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 13px; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; opacity: 1; transform: translateY(0) scale(1); transition: transform 400ms ease, opacity 400ms ease; will-change: transform; }
@starting-style { .toast { opacity: 0; transform: translateY(100%); } }
.toast.is-dragging { transition: none; }
.toast.is-leaving { opacity: 0; transform: translateY(100%); transition: transform 200ms var(--ease-out), opacity 200ms ease; }
.toast .ok { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.toast .ok svg { width: 10px; height: 10px; }
.toast b { font-weight: 500; }
.toast .mono { margin-left: auto; color: var(--text-3); }
@media (max-width: 640px) { .toaster { right: 16px; bottom: 76px; } }

/* ---------- Ablauf ---------- */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--text-3); padding-top: 3px; }
.step p { color: var(--text-2); margin-top: 3px; max-width: 58ch; }
.step .tag { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-2); padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 5px; }

/* ---------- Vergleich ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 500; color: var(--text-2); font-size: 13px; width: 26%; }
.spec thead th { color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.spec td { color: var(--text); }
.spec td .small { display: block; }
.spec .price { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.spec .price small { font-size: 12px; font-weight: 400; color: var(--text-2); margin-left: 6px; letter-spacing: 0; }
.both { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.both p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
@media (max-width: 560px) { .both { flex-direction: column; align-items: flex-start; } }

/* ---------- Preise ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pcard { position: relative; cursor: pointer; }
.pcard input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pcard-in { display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out); }
.pcard-in b { font-weight: 500; }
.pcard-in span { font-size: 13px; color: var(--text-2); }
.pcard-in .pp { margin-top: 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.pcard input:checked + .pcard-in { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.pcard input:focus-visible + .pcard-in { outline: 2px solid var(--text); outline-offset: 3px; }
.pcard:active .pcard-in { transform: scale(0.985); }
.badge { position: absolute; top: -9px; right: 12px; z-index: 1; font-family: var(--mono); font-size: 10px; color: var(--ink-text); background: var(--ink); padding: 2px 7px; border-radius: 5px; }
.extras { display: grid; gap: 6px; margin-top: 10px; }
.extras label { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 150ms ease, opacity 150ms ease; }
.extras label:has(input:checked) { border-color: var(--text); }
.extras label.is-off { opacity: 0.4; pointer-events: none; }
.extras input { width: 16px; height: 16px; margin: 0; accent-color: var(--text); }
.extras .x-name { font-size: 14px; }
.extras .x-name small { display: block; font-size: 12px; color: var(--text-2); }
.extras .x-price { font-family: var(--mono); font-size: 12px; }
.field { margin-top: 28px; }
.field-lbl { display: block; font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.field-lbl small { font-weight: 400; color: var(--text-2); margin-left: 6px; }
.input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font: inherit; color: var(--text); transition: border-color 120ms ease, box-shadow 120ms ease; }
.input:focus { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 12%, transparent); outline: none; }
textarea.input { height: auto; min-height: 100px; padding: 10px 12px; resize: vertical; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dates div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--text-2); background: var(--surface); }
.dates b { display: block; color: var(--text); font-weight: 500; font-size: 13px; margin-top: 1px; }
.total { margin-top: 24px; display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.total .t-lines { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.total .t-lines div { display: flex; justify-content: space-between; gap: 16px; }
.total .t-sum { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; }
.total .t-sum small { font-size: 14px; font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.total .t-fine { grid-column: 1; font-size: 12px; color: var(--text-3); }
.total .btn { grid-column: 2; justify-self: end; }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } .total { grid-template-columns: 1fr; } .total .btn, .total .t-sum { justify-self: start; text-align: left; grid-column: 1; } }

/* ---------- Beispiele ---------- */
.quotes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.quote { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.quote p { font-size: 15px; line-height: 1.5; max-width: 60ch; }
.quote .meta { grid-column: 1 / -1; display: flex; gap: 12px; font-size: 12px; color: var(--text-3); }
.quote .meta b { font-weight: 500; color: var(--text-2); }
.quotes-note { margin-top: 12px; font-size: 12px; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.chips li { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; color: var(--text-2); }
.chips li.is-main { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; }
.about-photo { aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-3); font-size: 11px; text-align: center; padding: 8px; }
.about p + p { margin-top: 10px; }
.about .sig { margin-top: 14px; font-size: 13px; color: var(--text-2); }
.about .sig b { color: var(--text); font-weight: 500; }
@media (max-width: 480px) { .about { grid-template-columns: 1fr; } .about-photo { width: 120px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; background: none; border: 0; text-align: left; cursor: pointer; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.faq-q .ic { flex: none; width: 20px; height: 20px; display: grid; place-items: center; color: var(--text-3); transition: transform 200ms var(--ease-out), color 150ms ease; }
.faq-q .ic svg { width: 12px; height: 12px; }
.faq-q[aria-expanded="true"] .ic { transform: rotate(45deg); color: var(--text); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 220ms var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 16px; color: var(--text-2); max-width: 60ch; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------- Anfrage ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 22px; font-size: 14px; }
.contact a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.contact a svg { width: 15px; height: 15px; color: var(--text-2); }
.contact small { color: var(--text-2); font-weight: 400; }
.form { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form label { display: grid; gap: 5px; font-size: 12px; color: var(--text-2); }
.form .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.form .hint { font-size: 12px; color: var(--text-3); }
.preview { display: none; background: var(--surface-2); border-radius: 8px; padding: 12px; font: 12px/1.6 var(--mono); white-space: pre-wrap; color: var(--text-2); margin: 0; }
.preview.is-on { display: block; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { padding: 28px 0 100px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.foot .col { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px; }
.foot a { color: var(--text-2); }
@media (min-width: 641px) { .foot { padding-bottom: 36px; } }

/* ---------- Mobile Leiste ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; gap: 8px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.mbar .btn { flex: 1; }
@media (max-width: 640px) { .mbar { display: flex; } }

/* ---------- Einblenden (kurz, gestaffelt) ---------- */
.js .reveal { transition: opacity 300ms ease, transform 360ms var(--ease-out); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(8px); }
.js .reveal-group > * { transition: opacity 300ms ease, transform 360ms var(--ease-out); }
.js .reveal-group:not(.in) > * { opacity: 0; transform: translateY(8px); }
.js .reveal-group > *:nth-child(2) { transition-delay: 40ms; } .js .reveal-group > *:nth-child(3) { transition-delay: 80ms; }
.js .reveal-group > *:nth-child(4) { transition-delay: 120ms; } .js .reveal-group > *:nth-child(5) { transition-delay: 160ms; } .js .reveal-group > *:nth-child(6) { transition-delay: 200ms; }

/* ---------- Unterseiten ---------- */
.legal { max-width: 640px; padding-block: 48px; }
.legal h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 20px; }
.legal h2 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.legal p { margin-bottom: 10px; color: var(--text-2); font-size: 14px; }
.legal p strong { color: var(--text); font-weight: 500; }
.legal .back { display: inline-block; margin-bottom: 16px; font-size: 13px; color: var(--text-2); }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .handset, .toast, .msg, .greeting, .tabs-layer--active, .faq-a, .faq-q .ic, .btn, .play { transition-duration: 1ms; }
  .live i { transition: none; }
  .device[data-state="idle"] .dock-arrow, .device[data-state="rec"] .viewfinder .person, .device[data-state="rec"] .device-status i, .rec-badge i { animation: none; }
  .js .reveal:not(.in), .js .reveal-group:not(.in) > * { opacity: 1; transform: none; }
}


/* ==========================================================================
   Swiss-Schicht (Entwurf 5): Typografie, Rot, Raster, Nummern, Pictogramme
   ========================================================================== */
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 10.5vw, 84px); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; margin-top: 28px; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 36px); line-height: 1; letter-spacing: -0.025em; text-transform: uppercase; }
.h3 { font-weight: 600; letter-spacing: -0.012em; }
.lead { max-width: 52ch; }
.mono { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.btn { border-radius: 0; }
.btn--ghost { border-color: var(--text); box-shadow: none; }
.input, .form, .messages, .device, .total, .both, .pcard-in, .extras label, .dates div, .about-photo, .preview, .toast, .tabs, .tabs-layer--active, .tabs button, .tabs span, .rec-badge, .dial-strip { border-radius: 2px; }
.avatar { border-radius: 50%; }
.chips li { border-radius: 0; }
.kbd { border-radius: 2px; }

/* Hero-Raster */
.meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px 0; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line-2); color: var(--text-2); }
.meta-row span:nth-child(4) { text-align: right; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: stretch; margin-top: 32px; }
.hero-main { display: grid; align-content: space-between; gap: 22px; }
.hero-side { display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.redblock { background: var(--red); color: #fff; padding: 18px 18px 16px; display: grid; gap: 14px; align-content: space-between; min-height: 200px; }
.redblock .mono { color: rgba(255, 255, 255, 0.85); }
.rb-big { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 52px); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; }
.dots { min-height: 40px; background-image: radial-gradient(circle, var(--text) 1.3px, transparent 1.4px); background-size: 14px 14px; background-position: 0 0; opacity: 0.55; }
.hero .actions { margin-top: 0; }
.facts { margin-top: 28px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 12px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li::before { display: none; }
.facts li b { color: var(--red); font-weight: 500; margin-right: 2px; }
@media (max-width: 640px) { .meta-row { grid-template-columns: 1fr 1fr; } .meta-row span:nth-child(4) { text-align: left; } .hero-grid { grid-template-columns: 1fr; } .hero-side { grid-template-rows: auto; } .matrix { display: grid; } .redblock { min-height: 0; } }

/* Nummerierte Abschnitte */
.section { border-top: 0; }
.sec-head { display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; border-top: 2px solid var(--text); padding-top: 14px; max-width: none; }
.sec-head .idx { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.03em; color: var(--red); grid-row: 1 / span 2; }
.sec-head .h2 { grid-column: 2; }
.sec-head p { grid-column: 2; margin-top: 4px; max-width: 52ch; }
.idx-inline { display: inline-block; font-family: var(--display); font-weight: 800; color: var(--red); margin-right: 10px; font-size: 14px; letter-spacing: -0.02em; }
.demo { padding-top: 40px; }
.demo-label { border-top: 2px solid var(--text); padding-top: 12px; }
.step { grid-template-columns: 72px 1fr; }
.step .n { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 0.9; letter-spacing: -0.03em; color: var(--red); padding-top: 0; }
.step .tag { border-radius: 0; }

/* Pictogramm-Kacheln */
.ptiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.ptile { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: end; padding: 18px; min-height: 150px; }
.ptile svg { width: 56px; height: 56px; align-self: start; }
.ptile b { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.ptile .mono { display: block; margin-top: 8px; opacity: 0.85; }
.ptile--red { background: var(--red); color: #fff; }
.ptile--black { background: var(--text); color: var(--bg); }
.ptile--black circle[fill="var(--bg)"] { fill: var(--bg); }
@media (max-width: 480px) { .ptiles { grid-template-columns: 1fr; } }
.spec thead th { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: 16px; }
.spec .price { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--red); }

/* Preise */
.pcard-in .pp { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; }
.pcard input:checked + .pcard-in { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.pcard input:checked + .pcard-in .pp { color: var(--red); }
.badge { border-radius: 0; background: var(--red); color: #fff; }
.extras label:has(input:checked) { border-color: var(--red); }
.extras input { accent-color: var(--red); }
.total .t-sum { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.04em; color: var(--red); }

/* Zitate auf Schwarz */
.section--black { background: var(--text); color: var(--bg); }
.section--black .sec-head { border-top-color: var(--bg); }
.section--black .sec-head p, .section--black .muted, .section--black .quotes-note, .section--black .quote .meta { color: rgba(242, 239, 233, 0.6); }
.section--black .quote .meta b { color: rgba(242, 239, 233, 0.85); }
.section--black .quotes, .section--black .quote { border-color: rgba(242, 239, 233, 0.18); }
.section--black .quote p { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.section--black .quote p::first-letter { color: var(--red); }
.section--black .chips li { border-color: rgba(242, 239, 233, 0.3); color: rgba(242, 239, 233, 0.85); }
.section--black .chips li.is-main { background: var(--red); border-color: var(--red); color: #fff; }

/* Demo: roter Hörer, rote Aufnahme */
.handset { background: var(--red); border-color: var(--red); }
.handset::before, .handset::after { background: #B81E17; border-color: rgba(0, 0, 0, 0.15); }
.handset .grip { background: rgba(255, 255, 255, 0.85); }
@media (hover: hover) and (pointer: fine) { .device[data-state="idle"] .handset:hover { border-color: var(--text); } }
.live i { background: var(--red); }
.device[data-mode="video"] .live i { background: rgba(255, 255, 255, 0.85); }
.thumb .prog i { background: var(--red); }
.rec-badge { color: var(--red); border-color: var(--red); }
.rec-badge i { background: var(--red); }
.device[data-state="greeting"] .device-status i, .device[data-state="lifted"] .device-status i { background: var(--text); }
.greeting p { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.idle-msg b { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: 18px; }
.done-msg b { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: 18px; color: var(--red); }
.brand i { background: var(--red); }
.toast .ok { background: var(--red); }

/* Kolophon */
.foot { border-top: 2px solid var(--text); padding-top: 18px; }
.colophon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; color: var(--text-2); }
.colophon > div { display: grid; gap: 4px; align-content: start; }
.colophon span:first-child { color: var(--text); }
.colophon nav { display: grid; gap: 4px; }
.colophon a { color: var(--text); }
@media (max-width: 640px) { .colophon { grid-template-columns: 1fr 1fr; } }
.about { border-top: 2px solid var(--text); padding-top: 16px; }
.about .idx { display: block; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.03em; color: var(--red); margin-bottom: 8px; }


/* ---------- Foto-Platzhalter (Layoutflächen) ---------- */
.photo { position: relative; aspect-ratio: 4 / 5; background-color: var(--surface-2); background-image: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--text) 9%, transparent) 9px 10px); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.photo::before, .photo::after { content: ""; position: absolute; background: var(--text); opacity: 0.35; }
.photo::before { left: 50%; top: 10px; bottom: 10px; width: 1px; }
.photo::after { top: 50%; left: 10px; right: 10px; height: 1px; }
.photo .ph-lbl { position: relative; z-index: 1; background: var(--bg); color: var(--text); padding: 6px 10px; border: 1px solid var(--text); text-align: center; max-width: 86%; }
.photo--wide { aspect-ratio: 3 / 2; margin-top: 28px; }
.photo--sq { aspect-ratio: 1; }
.about-photo.photo { border-radius: 0; padding: 0; font-size: inherit; }
.pcardx { display: grid; gap: 0; }
.pcardx .ptile { min-height: 0; }
.pcardx .photo { border-bottom: 0; }

/* ---------- Kreis-Leitfaden ---------- */
.cycle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.cycle-wrap { position: sticky; top: 96px; }
.cycle { width: 100%; height: auto; display: block; }
.cy-ring { fill: none; stroke: var(--text); stroke-width: 1.2; }
.cy-prog { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: butt; transition: stroke-dashoffset 300ms var(--ease-out); }
.cy-arrow { color: var(--text); opacity: 0.6; }
.cy-marker { transform-box: view-box; transform-origin: 240px 228px; transition: transform 320ms var(--ease-out); }
.cy-marker circle { fill: var(--red); }
.cnode { cursor: pointer; }
.cnode .cn-bg { fill: var(--bg); stroke: var(--text); stroke-width: 1.2; transition: fill 150ms ease, stroke 150ms ease, r 150ms ease; }
.cnode .cn-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; fill: var(--text); transition: fill 150ms ease; pointer-events: none; }
.cnode.is-on .cn-bg { fill: var(--red); stroke: var(--red); r: 19; }
.cnode.is-on .cn-n { fill: #fff; }
.cnode.is-done .cn-bg { fill: var(--text); stroke: var(--text); }
.cnode.is-done .cn-n { fill: var(--bg); }
@media (hover: hover) and (pointer: fine) { .cnode:hover .cn-bg { stroke: var(--red); } }
.cnode:focus-visible { outline: none; }
.cnode:focus-visible .cn-bg { stroke: var(--red); stroke-width: 2.5; }
.cn-lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--text-2); }
.cy-center-n { font-family: var(--display); font-weight: 800; font-size: 64px; letter-spacing: -0.04em; fill: var(--red); }
.cy-center-t { font-size: 10px; fill: var(--text-2); }
.cy-center-cap { font-size: 9.5px; fill: var(--text-3); }
.csteps { border-top: 1px solid var(--line-2); }
.cstep button { display: grid; grid-template-columns: 56px 1fr; gap: 12px; width: 100%; padding: 14px 0 14px 10px; border: 0; background: none; text-align: left; cursor: pointer; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.cstep button:active { transform: scale(0.995); }
.cstep .cs-n { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.03em; color: var(--text-3); transition: color 150ms ease; }
.cstep .cs-body { display: grid; gap: 4px; }
.cstep .cs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.cstep .cs-head b { font-weight: 600; letter-spacing: -0.012em; }
.cstep .cs-head .mono { color: var(--text-3); }
.cstep .cs-text { color: var(--text-2); font-size: 14px; line-height: 1.5; max-width: 52ch; }
.cstep.is-on button { border-left-color: var(--red); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.cstep.is-on .cs-n { color: var(--red); }
.cstep.is-done .cs-n { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .cstep button:hover { background: var(--surface); } }
@media (max-width: 760px) { .cycle-grid { grid-template-columns: 1fr; } .cycle-wrap { position: static; max-width: 360px; margin-inline: auto; } .cstep .cs-text { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .cy-marker, .cy-prog { transition-duration: 1ms; } }


/* ==========================================================================
   Computerliebe-Schicht (5d): Pixelherzen, Punktmatrix-Anzeige, 80er-Pixelschrift
   ========================================================================== */
.px { font-family: "Silkscreen", var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.pxh { width: 14px; height: 12px; fill: var(--red); flex: none; display: inline-block; vertical-align: -1px; }
.pxh--inline { width: 11px; height: 9px; margin: 0 1px; }
.pxh--corner { position: absolute; top: 16px; right: 16px; width: 21px; height: 18px; fill: #fff; }
.redblock { position: relative; }
.pxh--beat { animation: beat 1300ms ease-in-out infinite; transform-origin: center; }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.25); } 28% { transform: scale(1); } 42% { transform: scale(1.12); } 70% { transform: scale(1); } }
.rec-badge { gap: 7px; }
.rec-badge i { display: none; }
.toast .ok { background: var(--red); border-radius: 50%; }
.cy-heart { fill: var(--red); }

/* Punktmatrix: 36 × 9, zwei Herzen, ein Signal läuft hinüber */
.matrix { display: grid; gap: 8px; align-content: start; }
.mx-grid { display: grid; grid-template-columns: repeat(36, 1fr); gap: 3px; aspect-ratio: 36 / 9; }
.mx-grid i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--text); opacity: 0.18; transition: opacity 120ms ease, background-color 120ms ease, transform 160ms var(--ease-out); }
.mx-grid i.h { background: var(--red); opacity: 1; }
.mx-grid i.s { background: var(--red); opacity: 1; transform: scale(1.35); }
.mx-grid i.t { background: var(--red); opacity: 0.45; }
.mx-grid.pulse-l i.h.l, .mx-grid.pulse-r i.h.r { transform: scale(1.3); }
.mx-lbl { display: flex; justify-content: space-between; gap: 8px; }
@media (max-width: 640px) { .matrix { display: grid; } .hero-side { grid-template-rows: auto auto; } }
@media (prefers-reduced-motion: reduce) { .pxh--beat { animation: none; } .mx-grid i { transition: none; } }


/* ---------- Herz-Pong ---------- */
.game { display: grid; gap: 10px; }
.game-frame { background: var(--text); border: 2px solid var(--text); aspect-ratio: 8 / 5; }
#pong { width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; cursor: crosshair; outline: none; }
#pong:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.game-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.game-bar b { color: var(--red); font-size: 14px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.game-btns { display: flex; gap: 8px; }
.game-win { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--red); color: #fff; }
.game-win[hidden] { display: none; }
.game-win b { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
.game-win .code { display: inline-block; margin: 10px 0 6px; font-family: "Silkscreen", var(--mono); font-size: 18px; letter-spacing: 0.15em; background: #fff; color: var(--red); padding: 4px 10px; }
.game-win p { font-size: 13px; color: rgba(255, 255, 255, 0.9); }
.game-win .btn { background: #fff; color: var(--red); }
.game-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.game-rules p { font-size: 13px; color: var(--text-2); margin-top: 4px; }
@media (max-width: 640px) { .game-rules { grid-template-columns: 1fr; } .game-win { grid-template-columns: 1fr; } }
