/* VOICE   ruhig, persönlich, ermutigend – Christian Noack als Ansprechpartner, kein Alarm
   IDEA    ein Produkt aus der Familie von christian-noack.com: gleiche Nacht-Optik, gleiche Pills, gleiche Schriften
   PICTURE die Auswahl selbst: große Altersfelder in den Markenfarben, dann eine nummerierte Checkliste
   COLOUR  Marken-Palette (--bg #0C1418, Coral #FF5468 für Notfall und CTA, Grün, Gelb, Lila als Altersfarben)
   TYPE    Rubik für Titel, Inter für Text – selbst gehostet wie auf der Homepage
   LAYOUT  eine Spalte bis 780px; Altersfelder 2×2, auf dem Handy untereinander */

@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Markenfarben aus christian-noack.com (dunkel = Standard) */
:root {
  color-scheme: dark;
  --bg: #0C1418;
  --panel: #121C21;
  --panel-2: #182329;
  --line: #233038;
  --text: #EAF1F0;
  --text-soft: #8FA3A8;
  --coral: #FF5468;
  --coral-soft: #3A1E24;
  --green: #3DDC84;
  --green-soft: #132A1E;
  --yellow: #FFC24B;
  --purple: #9B7BFF;
  --on-accent: #0C1418;
  --nav-bg: rgba(12, 20, 24, 0.85);
  --radius: 16px;
  --font-head: "Rubik", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme=light] {
  color-scheme: light;
  --bg: #F1F3F5;
  --panel: #FFFFFF;
  --panel-2: #EDEFF2;
  --line: #D8DCE1;
  --text: #10151F;
  --text-soft: #57707A;
  --coral: #B8322B;
  --coral-soft: #FBE4E2;
  --green: #157055;
  --green-soft: #DFF3EA;
  --yellow: #8A6508;
  --purple: #6B4FBB;
  --on-accent: #FFFFFF;
  --nav-bg: rgba(255, 255, 255, 0.85);
}

* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 0% 100%, color-mix(in srgb, var(--green) 12%, transparent), transparent 70%), radial-gradient(50% 40% at 100% 0%, color-mix(in srgb, var(--coral) 10%, transparent), transparent 70%); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; font-weight: 700; }
h1 { font-size: clamp(32px, 5.4vw, 50px); letter-spacing: -0.02em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--coral); }
h2 { font-size: 22px; margin-top: 36px; }
h3 { font-size: 17px; }
a { color: var(--green); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #0C1418; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 max(16px, 4vw); }

/* Kopfzeile wie auf der Homepage */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px max(16px, 4vw); background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.brand-text strong span { color: var(--coral); }
.brand-text small { color: var(--text-soft); font-size: 11px; letter-spacing: 0.04em; }
.bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: transparent; color: var(--text); text-decoration: none; }
.pill-coral { background: var(--coral); border-color: var(--coral); color: var(--on-accent); }
.pill kbd { font: 600 11px/1 var(--font-body); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; color: var(--text-soft); }

.test-banner { margin: 0; padding: 6px max(16px, 4vw); background: var(--panel-2); color: var(--yellow); font-size: 13px; font-weight: 600; text-align: center; border-bottom: 1px solid var(--line); }

.crumbs { max-width: 780px; margin: 16px auto 0; padding: 0 max(16px, 4vw); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--text-soft); font-size: 14px; }
.crumbs button { border: 0; background: none; padding: 8px 4px; color: var(--green); text-decoration: underline; min-height: 44px; }

.view { padding: 32px 0 8px; }
.view > h1:focus { outline: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--text-soft); }
.badge strong { color: var(--green); font-weight: 600; }
.badge svg { width: 14px; height: 14px; color: var(--coral); }
.lead { color: var(--text-soft); font-size: 18px; margin: 14px 0 26px; max-width: 60ch; }

/* Altersfelder in den Markenfarben */
.ages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.age { --accent: var(--green); width: 100%; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; text-align: left; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel) 70%); transition: transform 0.15s ease, border-color 0.15s ease; }
.age:hover { border-color: var(--accent); transform: translateY(-2px); }
.age[data-id=kind] { --accent: var(--yellow); }
.age[data-id=jugend] { --accent: var(--purple); }
.age[data-id=erwachsen] { --accent: var(--text-soft); }
.age-label { font-family: var(--font-head); font-size: clamp(36px, 7vw, 52px); font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.03em; }
.age-sub { font-size: 15px; color: var(--text); }

.scenarios { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scenario { width: 100%; min-height: 64px; text-align: left; padding: 16px 52px 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); font-family: var(--font-head); font-size: 18px; font-weight: 600; position: relative; }
.scenario::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--green); }
.scenario:hover { border-color: var(--green); }
.scenario.danger { background: var(--coral-soft); border-color: var(--coral); }
.scenario.danger::after { color: var(--coral); }

.reassure { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--radius); background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); color: var(--text); font-weight: 600; font-size: 17px; }
.recognize { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.recognize h2 { margin: 0 0 6px; font-size: 16px; color: var(--text-soft); }
.recognize p { margin: 0; }

.steps-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.progress { margin: 0; color: var(--text-soft); font-size: 14px; white-space: nowrap; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.steps > li { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 14px 16px; transition: background 0.2s ease, border-color 0.2s ease; }
.steps > li.is-done { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.steps label { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: start; cursor: pointer; }
.steps input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--green); }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.is-done .num { background: var(--green); }
.is-done .txt { text-decoration: line-through; text-decoration-color: var(--text-soft); color: var(--text-soft); }

.contacts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.contacts.inline { margin: 12px 0 0 74px; grid-template-columns: 1fr; }
.contact { border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.contact p { margin: 0; }
.contact .meta { color: var(--text-soft); font-size: 14px; }
.phones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.phone { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--green); color: var(--on-accent); text-decoration: none; }
.phone span { font-size: 13px; opacity: 0.85; }
.phone strong { font-family: var(--font-head); font-size: 17px; white-space: nowrap; }
.web { font-size: 14px; overflow-wrap: anywhere; }
.note { color: var(--text-soft); font-size: 14px; margin: 24px 0 0; }

.foot { margin-top: 56px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 14px; }
.foot p { margin: 0 0 8px; }
.foot .heart { color: var(--coral); }
.legal-links a { margin-right: 16px; }
.support-note { margin: 14px 0 0; font-size: 14px; color: var(--text-soft); }
.support-note a { color: var(--coral); font-weight: 600; }
.legal { padding: 32px 0 8px; }
.legal h1 { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 8px; }
.legal h2 { font-size: 19px; margin-top: 28px; }
.legal p, .legal li { max-width: 68ch; }

/* Dialoge: Notfall und persönliche Begrüßung */
dialog { width: min(580px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--panel); color: var(--text); }
dialog::backdrop { background: rgba(6, 10, 12, 0.7); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-head h2 { margin: 0; color: var(--coral); }
.btn-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); font-size: 24px; line-height: 1; }
.dialog-lead { font-weight: 600; margin: 8px 0 0; }
dialog .contacts { grid-template-columns: 1fr; }

.welcome { padding: 0; overflow: hidden; }
.welcome-top { display: flex; align-items: center; gap: 16px; padding: 24px 24px 0; }
.photo { flex: none; display: block; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 20%, transparent); }
.photo.small { width: 56px; height: 56px; border-width: 2px; box-shadow: none; }
.owner .wa { margin: 4px 0 8px; }
.avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(140deg, var(--coral), var(--purple)); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.welcome-top h2 { margin: 0; font-size: 24px; }
.welcome-top p { margin: 2px 0 0; color: var(--text-soft); font-size: 14px; }
.welcome-body { padding: 16px 24px 0; }
.welcome-body p { margin: 0 0 12px; }
.welcome-body .promise { padding: 12px 16px; border-radius: 12px; background: var(--green-soft); font-weight: 600; }
.signature { font-family: var(--font-head); font-size: 18px; margin: 4px 0 0; }
.signature small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--text-soft); font-weight: 400; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 24px 24px; }
.welcome-actions .pill { flex: 1 1 200px; }
.pill-green { background: var(--green); border-color: var(--green); color: var(--on-accent); }


/* Fortschritt, Motivation, persönlicher Kontakt */
.meter { height: 8px; margin-top: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--yellow)); transition: width 0.4s ease; }
.finish { margin-top: 14px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(120deg, var(--green-soft), color-mix(in srgb, var(--purple) 18%, var(--panel))); border: 1px solid color-mix(in srgb, var(--green) 50%, transparent); }
.finish strong { font-family: var(--font-head); color: var(--green); font-size: 18px; margin-right: 4px; }
.finish:not([hidden]) { animation: rise 0.5s ease; }
.owner { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--panel); }
.owner h3 { margin-bottom: 4px; }
.owner p { margin: 0 0 6px; }
.owner .meta { color: var(--text-soft); font-size: 13px; }
.avatar.small { width: 44px; height: 44px; font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: var(--green); color: var(--on-accent); font-family: var(--font-head); font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.toast.show { animation: pop 0.35s ease; }
.burst { position: fixed; inset: 0; z-index: 25; pointer-events: none; }
.burst span { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; animation: spark 0.85s ease-out forwards; }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, 12px) scale(0.92); opacity: 0; } to { transform: translate(-50%, 0) scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.steps > li.is-done .num { animation: pop-num 0.3s ease; }
@keyframes pop-num { 50% { transform: scale(1.25); } }

/* Mut-Schild */
.shield-progress { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.shield-progress svg { flex: none; width: 64px; height: 64px; }
.shield-bg { fill: var(--panel-2); }
.shield-fill { fill: var(--green); transform: translateY(64px); transition: transform 0.6s ease; }
.shield-edge { fill: none; stroke: var(--coral); stroke-width: 3; }
.shield-check { fill: none; stroke: var(--on-accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.3s ease; }
.shield-progress.is-complete .shield-check { opacity: 1; }
.shield-progress.is-complete svg { animation: pop-num 0.5s ease; }
.shield-title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.shield-progress .progress { margin: 2px 0 0; }

/* Mutmacher */
.mut-card { margin: 12px 0; padding: 16px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--purple) 16%, var(--panel)); border: 1px solid color-mix(in srgb, var(--purple) 45%, transparent); }
.mut-card span { display: block; font-size: 13px; color: var(--purple); font-weight: 600; margin-bottom: 4px; }
.mut-card p { margin: 0; font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.3; }
.finish > p { margin: 0; }

/* Atemübung */
.calm-row { margin-top: 14px; }
.pill-calm { border-color: color-mix(in srgb, var(--purple) 55%, transparent); color: var(--text); background: color-mix(in srgb, var(--purple) 12%, transparent); }
.breath-stage { display: grid; justify-items: center; gap: 6px; padding: 28px 0 8px; }
.breath-circle { width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--green) 70%, #fff), var(--green) 55%, color-mix(in srgb, var(--purple) 60%, var(--green))); transform: scale(0.55); transition-property: transform; transition-timing-function: ease-in-out; box-shadow: 0 0 40px color-mix(in srgb, var(--green) 35%, transparent); }
.breath-circle.is-in, .breath-circle.is-hold { transform: scale(1); }
.breath-circle.is-out { transform: scale(0.55); }
.breath-label { margin: 18px 0 0; font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.breath-round { margin: 0; color: var(--text-soft); font-size: 14px; min-height: 1.5em; }
.breath-done .welcome-actions { padding: 0; }

@media (max-width: 600px) {
  .ages { grid-template-columns: 1fr; }
  .age { min-height: 104px; }
  .contacts.inline { margin-left: 0; }
  .bar-actions { width: 100%; }
  .bar-actions .pill { flex: 1; }
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
