/* ineedtotalktosomeone – Fassung 9 (14.11.2026)
   Night with a sunset afterglow: deep violet, warm apricot, an illustrated landscape on the start page.
   Own font file (Nunito, OFL licence) served from this site – nothing is loaded from other servers. No trackers.
   Motion is gentle and switches off with "reduce motion". */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Fassung 13 (Feedback Nr. 15, 18.11.2026: "Farben einladender, nicht so düster"; Vincent: dunkel, aber wärmer):
     lighter, warmer plum-violet instead of near-black (old: bg #110e1d, bg-2 #16122a, surface #1e1936, surface-2 #272045, surface-3 #342b5a, line #3d3466, line-soft #2b2449) */
  --bg: #221a35;
  --bg-2: #2a2040;
  --surface: #31264a;
  --surface-2: #3b2d55;
  --surface-3: #483666;
  --line: #5a4878;
  --line-soft: #44365e;
  --text: #f8f3f0;
  --muted: #ddd3e8;
  --faint: #b9aecb;
  --accent: #ffb98f;
  --accent-strong: #ffd2b3;
  --accent-ink: #2b1810;
  --accent-soft: rgba(255, 185, 143, .12);
  --accent-line: rgba(255, 185, 143, .42);
  --rose: #f08aa0;
  --me: #5c3553;
  --me-text: #fff4ef;
  --warm: #3a2032;
  --warm-line: #7c465b;
  --warm-text: #ffd4c6;
  --moon: #ffd9b3;
  --focus: #ffe5d0;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --ease: cubic-bezier(.22, .8, .26, 1);
  --page: 760px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  color: var(--text);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px; font-weight: 500; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3[tabindex], h1:focus-visible, h2:focus-visible, h3[tabindex]:focus-visible { outline: none; }
::selection { background: rgba(240, 185, 140, .32); }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

h1 { font-size: clamp(1.75rem, 5.2vw, 2.25rem); line-height: 1.16; margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 1.3rem; line-height: 1.28; margin: 0 0 10px; font-weight: 800; letter-spacing: -.012em; text-wrap: balance; }
h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 6px; font-weight: 800; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding-left: 1.2em; }
li { margin: 6px 0; }
a { color: var(--accent); text-underline-offset: 3px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.sub, .hint { color: var(--muted); }
.hint { font-size: .9rem; margin: 3px 0 10px; }
.note { color: var(--faint); font-size: .88rem; margin-top: 14px; }

/* ---------- night sky (a few still stars, very quiet) ---------- */
.sky { position: fixed; inset: 0 0 auto 0; height: 78vh; width: 100%; z-index: -1; pointer-events: none; color: #fff;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%);
  opacity: .9; transition: opacity .8s ease; }
.sky circle { opacity: .34; }
.sky .tw { animation: twinkle 7s ease-in-out infinite; }
.sky .tw2 { animation: twinkle 9s ease-in-out 2.5s infinite; }
.sky .tw3 { animation: twinkle 11s ease-in-out 5s infinite; }
@keyframes twinkle { 0%, 100% { opacity: .18; } 50% { opacity: .6; } }
body.in-chat .sky { opacity: .4; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-2); color: var(--text); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease; }
.top.scrolled { border-bottom-color: var(--line-soft); }
.top-inner { display: flex; align-items: center; gap: 10px; max-width: 1120px; margin: 0 auto; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; border: 0; background: none; padding: 4px 6px 4px 2px; cursor: pointer; color: var(--text); border-radius: 999px; }
.brand-text { font-weight: 700; font-size: 15px; letter-spacing: .012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moon-s { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 6px -3.5px 0 0 var(--moon); transform: rotate(-8deg); }

.nav { position: relative; display: flex; gap: 2px; }
.nav-ind { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 999px; background: var(--surface-3); pointer-events: none;
  transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), background-color .4s ease; }
.nav-ind.warm { background: rgba(255, 185, 143, .2); }
.nav button { position: relative; border: 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.nav button.on { color: var(--text); }
.nav button.help { color: var(--accent); }
.nav button.help::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

.lang-select { position: relative; flex-shrink: 0; }
.lang-select select { appearance: none; -webkit-appearance: none; width: auto; margin: 0; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23bcb7c0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 11px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 30px 6px 13px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.font-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 700; height: 33px; min-width: 40px; padding: 0 10px; border-radius: 999px; cursor: pointer; flex-shrink: 0; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.font-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- test banner ---------- */
/* test phase: feedback is easy to find – a line right under the menu on every view */
.banner { width: 100%; margin: 0; padding: 9px 16px; background: linear-gradient(90deg, #3a2265, #6a3672 60%, #8b4379); color: #fbeef0; font-size: .92rem; font-weight: 600; text-align: center; }
.banner .link { color: #fff; font-weight: 800; padding: 0 4px; text-decoration-color: rgba(255, 255, 255, .6); }
.nav button.fb { color: var(--rose); }
.test-badge { display: inline-block; margin: 0 0 16px; padding: 5px 14px; border-radius: 999px; border: 1.5px solid rgba(240, 138, 160, .7); background: rgba(240, 138, 160, .14); color: #ffd3dc; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .2s ease; }
.chat-test { margin: 0 auto 6px; padding: 7px 14px; max-width: 34em; border-radius: 14px; border: 1px dashed rgba(240, 138, 160, .5); color: var(--muted); font-size: .84rem; text-align: center; }
.quiet-end { text-align: right; }
.quiet-end .link { font-size: .86rem; color: var(--faint); text-decoration-color: rgba(165, 157, 187, .45); }
.test-real { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; color: var(--text); font-weight: 600; }

/* ---------- layout ---------- */
main { flex: 1; width: 100%; max-width: var(--page); margin: 0 auto; padding: 22px 16px 36px; outline: none; }
body.in-welcome main { max-width: none; padding: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
#view-welcome, #view-reasons { animation: viewIn .65s var(--ease) both; }
#view-chat { animation: viewFade .5s ease both; }
#view-welcome.leaving, #view-reasons.leaving, #view-chat.leaving { animation: viewOut .19s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes viewOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-12px); } }
@keyframes viewFade { from { opacity: 0; } to { opacity: 1; } }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: 26px 24px; margin: 0 0 16px; }

.btn { border: 0; font-weight: 800; cursor: pointer; border-radius: 999px; padding: 13px 26px; background: linear-gradient(135deg, #ffc9a0 0%, #ffa98f 100%); color: var(--accent-ink);
  transition: transform .18s var(--ease), background-color .2s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.975); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.soft { background: var(--surface-3); color: var(--text); }
.btn:disabled { opacity: .55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.actions.center { justify-content: center; }
.actions.spread { justify-content: space-between; }
.link { border: 0; background: none; color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; cursor: pointer; padding: 4px; border-radius: 8px; transition: text-decoration-color .2s ease; }

/* ---------- start page (Fassung 9): illustrated hero, write right away, sections ---------- */
.hero9 { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - 62px); min-height: calc(100dvh - 62px);
  background: linear-gradient(180deg, #221a35 0%, #2f2152 22%, #4d2d6f 42%, #8f4982 58%, #de8581 71%, #f8b088 80%, #f8b088 100%); }
.hero-stars { position: absolute; inset: 0 0 auto 0; width: 100%; height: 62%; z-index: -1; pointer-events: none; }
.hero-stars circle { opacity: .5; }
.hero-stars .tw { animation: twinkle 7s ease-in-out infinite; }
.hero-stars .tw2 { animation: twinkle 9s ease-in-out 2.5s infinite; }
.hero-stars .tw3 { animation: twinkle 11s ease-in-out 5s infinite; }
.hero9-moon { position: absolute; z-index: -1; right: 11%; top: 13%; width: 118px; height: 118px; border-radius: 50%;
  box-shadow: inset 32px -19px 0 0 var(--moon); transform: rotate(-12deg); animation: float 10s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(-12deg) translateY(-8px); } }
.cloud { position: absolute; z-index: -1; left: -300px; height: 30px; border-radius: 999px; background: #f3c9d4; opacity: .13; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 999px; background: inherit; }
.cloud::before { left: 16%; width: 36%; height: 190%; }
.cloud::after { left: 44%; width: 30%; height: 150%; }
.cloud.c1 { top: 7%; width: 150px; height: 22px; opacity: .1; animation-duration: 120s; animation-delay: -70s; }
.cloud.c2 { top: 61%; width: 240px; animation-duration: 100s; animation-delay: -28s; }
.cloud.c3 { top: 68%; width: 300px; height: 34px; background: #ffc7a6; opacity: .16; animation-duration: 140s; animation-delay: -95s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 560px)); } }
.shoot { position: absolute; z-index: -1; top: 12%; left: 46%; width: 110px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9)); transform: rotate(18deg); animation: shoot 17s ease-in 6s infinite; }
@keyframes shoot { 0%, 93% { opacity: 0; transform: translate(-160px, -50px) rotate(18deg); } 95% { opacity: 1; } 100% { opacity: 0; transform: translate(190px, 62px) rotate(18deg); } }
.scene .win { animation: lamp 6s ease-in-out infinite; }
.scene .win.w2 { animation-delay: 2.3s; }
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.hero9 { --sy: 0; }
.hero-stars { translate: 0 calc(var(--sy) * .22px); }
.hero9-moon { translate: 0 calc(var(--sy) * .32px); }
.hero9-art { translate: 0 calc(var(--sy) * .1px); }
.hero9-art { position: absolute; z-index: -1; left: 0; right: 0; bottom: -1px; height: clamp(200px, 32vh, 330px); }
.scene { display: block; width: 100%; height: 100%; }
.hero9-in { padding-top: clamp(28px, 6vh, 72px); padding-bottom: clamp(190px, 27vh, 290px); display: grid; gap: 26px; align-items: start; }
.hero9-help { background: rgba(34, 26, 53, .8); border: 1.5px solid rgba(255, 255, 255, .13); border-radius: 26px; padding: 22px 20px 18px; animation: rise .8s var(--ease) .2s both; }
.hero9-help h2 { font-size: 1.25rem; margin-bottom: 4px; }
.hero9-help .lines { margin-top: 12px; }
.hero9-help .line { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
.link.more-help { display: inline-block; margin-top: 12px; font-size: .92rem; font-weight: 700; }
.pickbox .where-pick { background: none; border: 0; padding: 0; margin-top: 2px; animation: none; }
.ai-note { margin: 12px 2px 0; font-size: .82rem; color: var(--faint); line-height: 1.5; }
.ai-note a { color: var(--muted); }
.hero9-copy { max-width: 640px; }
.hero9-copy > * { animation: rise .8s var(--ease) both; }
.hero9-copy > :nth-child(2) { animation-delay: .07s; }
.hero9-copy > :nth-child(3) { animation-delay: .15s; }
.hero9-copy > :nth-child(n+4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero9 h1 { font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 18px; }
.hero9 .lead { font-size: clamp(1.08rem, 2.3vw, 1.3rem); color: #e4dcee; max-width: 30em; margin-bottom: 26px; }

.startbox { background: rgba(34, 26, 53, .72); border: 1.5px solid rgba(255, 255, 255, .13); border-radius: 26px; padding: 16px 16px 12px; }
.startbox:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.startbox-label { display: block; font-weight: 700; font-size: .98rem; color: var(--muted); margin: 0 4px 8px; }
.startbox-row { display: flex; gap: 10px; align-items: flex-end; }
.startbox textarea { flex: 1; min-height: 64px; max-height: 220px; resize: none; border: 0; background: transparent; box-shadow: none !important; padding: 4px; font-size: 1.12rem; line-height: 1.5; border-radius: 8px; }
.startbox .btn { flex-shrink: 0; padding: 14px 22px; }
.link.guided { display: inline-block; margin: 10px 0 0 2px; font-size: .95rem; color: var(--muted); text-decoration-color: rgba(205, 197, 219, .4); }
.where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; color: #e4dcee; font-size: .95rem; }
.where-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(34, 26, 53, .55); color: var(--text); font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease; }
.where-pick { margin-top: 12px; background: rgba(34, 26, 53, .82); border: 1.5px solid rgba(255, 255, 255, .13); border-radius: 22px; padding: 14px; animation: pop .25s var(--ease) both; }
.where-pick .hint { margin-top: 0; }
.link.urgent { display: inline-block; color: #ffe1d6; text-decoration-color: rgba(255, 225, 214, .5); margin-top: 16px; padding: 6px 2px; font-weight: 700; }

input[type="text"], textarea, select { width: 100%; color: var(--text); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input[type="text"]:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 42px; }
.results { list-style: none; margin: 6px 0 0; padding: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; animation: pop .22s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.results li { margin: 0; }
.results button { width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.results button:focus { background: var(--surface-3); outline: none; }
.results .none { color: var(--muted); padding: 9px 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1.5px solid var(--line); background: transparent; color: var(--text); font-size: .94rem; font-weight: 600; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .18s var(--ease); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); font-weight: 700; }
.chip[aria-pressed="true"]::before { content: ""; display: inline-block; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -3px); margin-right: 8px; }
.chip.soft-red { border-style: dashed; border-color: var(--warm-line); }
.where-pick .chip { font-size: .9rem; padding: 6px 13px; }

.sec { padding: clamp(56px, 9vw, 96px) 0; }
.sec-alt { background: linear-gradient(180deg, var(--bg-2), #2e2346); border-block: 1px solid var(--line-soft); }
.sec h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.025em; margin-bottom: clamp(24px, 4vw, 40px); }
.steps9 { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: none; }
.step9 { margin: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: 26px 24px; }
.step9-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px; font-weight: 900; font-size: 1.1rem; color: var(--accent-ink); background: linear-gradient(135deg, #ffc9a0, #f08aa0); }
.step9 p, .safe9 p { color: var(--muted); margin: 0; }
.finds9 { display: grid; gap: 16px; }
.find9 { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: 24px 22px; color: var(--text);
  transition: transform .25s var(--ease), border-color .25s ease, background-color .25s ease; }
.find9 strong { font-size: 1.15rem; font-weight: 800; }
.find9 > span:last-child { color: var(--muted); }
.find9-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; margin-bottom: 10px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.find9-ic svg { width: 24px; height: 24px; }
.safes9 { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.safe9 { margin: 0; display: flex; gap: 16px; align-items: flex-start; }
.safe9 .find9-ic { margin: 0; }
.safe9 strong { display: block; font-size: 1.08rem; font-weight: 800; margin-bottom: 2px; }
/* Fassung 13: protection as one short line under the four areas */
.safe-line { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; color: var(--muted); font-size: .95rem; max-width: 46em; }
.safe-line .find9-ic { flex: none; }
.sec-note { margin: 30px 0 0; color: var(--faint); font-size: .92rem; max-width: 46em; }
.sec-urgent { padding-top: 0; }
.urgent9 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; border-radius: 30px; padding: clamp(26px, 4vw, 40px);
  background: linear-gradient(120deg, #3a2265 0%, #6a3672 55%, #a04f74 100%); }
.urgent9 h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 8px; }
.urgent9 p { margin: 0; color: #f0e6f1; max-width: 38em; }
.urgent9 > div { flex: 1 1 320px; }
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease); }
.rv-on .rv.in { opacity: 1; transform: none; }
.steps9 .rv:nth-child(2), .finds9 .rv:nth-child(2), .safes9 .rv:nth-child(2) { transition-delay: .08s; }
.steps9 .rv:nth-child(3), .finds9 .rv:nth-child(3), .safes9 .rv:nth-child(3) { transition-delay: .16s; }
.finds9 .rv:nth-child(4) { transition-delay: .24s; }

.card-country { margin: 0 0 2px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.card-country .link { font-size: .86rem; padding: 0 4px; }
.link.wrong { display: block; margin: 12px 0 0; padding: 2px 0; font-size: .86rem; color: var(--faint); text-decoration-color: rgba(165, 157, 187, .45); }

/* ---------- chat ---------- */
body.in-chat main { padding-bottom: 128px; }
.log { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.msg { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; animation: msgIn .5s var(--ease) both; }
.msg.me { animation-name: msgMe; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes msgMe { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.msg.still { animation: none; }
.msg.grouped { margin-top: 0; }
.msg.grouped .avatar { visibility: hidden; }
.msg.bot { justify-content: flex-start; padding-right: 7%; }
.msg.me { justify-content: flex-end; padding-left: 14%; margin-top: 20px; }
.msg.wide { padding-right: 0; }
.avatar { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-soft); margin-top: 6px; position: relative; }
.avatar::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; box-shadow: inset 5px -3px 0 0 var(--moon); transform: rotate(-8deg); }
.bubble { padding: 12px 17px; border-radius: 20px; max-width: 100%; line-height: 1.62; overflow-wrap: anywhere; }
.bubble p:last-child, .bubble ul:last-child { margin-bottom: 0; }
.bot .bubble { background: var(--surface); border: 1px solid var(--line-soft); }
.msg.bot:not(.grouped) .bubble { border-top-left-radius: 7px; }
.me .bubble { background: var(--me); color: var(--me-text); border-bottom-right-radius: 7px; }
.msg.wide .bubble { flex: 1; min-width: 0; }
.msg.urgent .bubble { background: var(--warm); border-color: var(--warm-line); }
.bubble p.soft { color: var(--faint); font-size: .9rem; }
.typing .bubble { padding: 15px 18px; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .35; animation: blink 1.3s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .16s; }
.dots i:nth-child(3) { animation-delay: .32s; }
@keyframes blink { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: .9; transform: translateY(-3px); } }

.topic-label { font-weight: 700; color: var(--accent); margin-bottom: 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.helps-intro { margin: 12px 0 4px; font-weight: 700; }
.bubble ul { padding-left: 1.15em; }
.bubble ul li::marker { color: var(--accent); }
.step { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin: 0; }
.step strong { color: var(--accent-strong); }
.reason-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.bubble .reason-list { padding-left: 0; }
.reason-list li { margin: 0; padding: 11px 14px 11px 16px; border-radius: 14px; background: var(--bg-2); border-left: 3px solid var(--accent); }
.copybox { background: var(--bg-2); border: 1.5px dashed var(--line); border-radius: 14px; padding: 11px 14px; font-style: italic; }
.more-tips { margin: 6px 0 0; }
.more-tips summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .92rem; padding: 4px 0; width: fit-content; border-radius: 8px; }
.more-tips ul { margin-top: 6px; animation: pop .25s var(--ease) both; }

.controls { margin: 18px 0 0 40px; animation: msgIn .5s var(--ease) both; }
.controls:empty { display: none; }
.controls .chips { margin: 0 0 12px; }
.replies { display: flex; flex-wrap: wrap; gap: 8px; }
/* every answer looks the same – nothing is suggested */
.reply { border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: .95rem; padding: 10px 17px; border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .18s var(--ease); }
.reply:active { transform: scale(.97); }
.reply.small { font-size: .88rem; padding: 7px 14px; background: transparent; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.tool { text-align: left; cursor: pointer; background: var(--bg-2); border: 1.5px solid var(--line-soft); border-radius: 16px; padding: 13px 15px; transition: border-color .2s ease, transform .18s var(--ease), background-color .2s ease; }
.tool:active { transform: scale(.98); }
.tool strong { display: block; }
.tool span { color: var(--muted); font-size: .88rem; }

.newmsg { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 7; display: flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-size: .9rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); animation: pillIn .35s var(--ease) both; }
@keyframes pillIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
body:not(.in-chat) .newmsg { display: none; }

.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(42, 32, 64, 0), var(--bg-2) 38%); animation: viewFade .4s ease both; }
.composer-inner { max-width: var(--page); margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 26px; padding: 6px 6px 6px 18px;
  transition: border-color .2s ease, box-shadow .2s ease; }
.composer-inner:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.composer textarea { border: 0; padding: 10px 0; min-height: 44px; max-height: 200px; resize: none; background: transparent; box-shadow: none !important; line-height: 1.45; border-radius: 0; }
.send { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; transition: transform .18s var(--ease), background-color .2s ease; }
.send:active { transform: scale(.94); }

/* ---------- helplines ---------- */
.lines { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.bubble .lines { padding-left: 0; }
.line { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0; }
.urgent .line { background: rgba(0, 0, 0, .2); border-color: rgba(255, 255, 255, .06); }
.line-name { font-weight: 600; display: block; }
.line-note { color: var(--muted); font-size: .86rem; display: block; }
.nums { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.num { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--accent-ink); background: var(--accent); text-decoration: none; white-space: nowrap; border-radius: 999px; padding: 6px 15px; transition: background-color .2s ease, transform .18s var(--ease); }
.num:active { transform: scale(.97); }
.num.alt { font-size: .95rem; padding: 5px 12px; background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.line-head { margin: 16px 0 0; font-size: .78rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.emergency { margin: 12px 0 0; font-weight: 600; }
.emergency a { color: var(--warm-text); font-variant-numeric: tabular-nums; }
.checked { color: var(--faint); font-size: .8rem; margin: 10px 0 0; }

/* ---------- reasons ---------- */
.segs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--bg-2); border: 1px solid var(--line-soft); padding: 4px; border-radius: 999px; margin-top: 6px; }
.seg { flex: 1 1 auto; border: 0; background: transparent; color: var(--muted); font-size: .92rem; font-weight: 600; padding: 9px 12px; border-radius: 999px; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.seg[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.intro { background: transparent; border: 0; padding: 6px 2px 4px; }
.intro .segs { margin: 0 0 26px; }
.intro .lead { max-width: 36em; }
.rgroup { margin-top: 34px; }
.rgroup h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin: 0 0 6px; padding: 0 2px; }
.hundred { list-style: none; padding: 0; margin: 0; }
.hundred li { display: flex; gap: 16px; align-items: baseline; margin: 0; padding: 14px 12px 14px 2px; border-bottom: 1px solid var(--line-soft); border-radius: 0; transition: background-color .5s ease, opacity .6s ease, transform .6s var(--ease); }
.hundred li:last-child { border-bottom: 0; }
.rn { flex-shrink: 0; width: 2.1em; text-align: right; color: var(--faint); font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.reveal .hundred li { opacity: 0; transform: translateY(10px); }
.reveal .hundred li.in { opacity: 1; transform: none; }
.hundred li.glow { background: var(--accent-soft); border-radius: 14px; border-bottom-color: transparent; padding-left: 12px; }
.hundred li.glow .rn { color: var(--accent); }

/* ---------- panel (dialog) ---------- */
dialog { border: 1px solid var(--line-soft); border-radius: 28px; padding: 0; max-width: 580px; width: calc(100% - 32px); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
dialog[open] { animation: dialogIn .34s var(--ease) both; }
dialog[open]::backdrop { animation: viewFade .3s ease both; }
dialog.closing { animation: dialogOut .17s ease both; }
dialog.closing::backdrop { animation: backdropOut .17s ease both; }
dialog::backdrop { background: rgba(8, 10, 15, .66); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dialogOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes backdropOut { from { opacity: 1; } to { opacity: 0; } }
.panel-inner { position: relative; padding: 28px 24px 24px; max-height: 88vh; max-height: 88dvh; overflow: auto; overscroll-behavior: contain; }
.panel-inner h2 { padding-right: 46px; font-size: 1.4rem; }
.icon-btn { border: 0; background: var(--surface-3); color: var(--text); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; transition: background-color .2s ease, transform .18s var(--ease); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.close { position: absolute; top: 20px; right: 20px; z-index: 2; }
.panel-inner select { margin-top: 6px; appearance: none; -webkit-appearance: none; padding-right: 38px;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23bcb7c0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; }
.panel-inner textarea { min-height: 220px; resize: vertical; }
.panel-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: .92rem; }

.ex-desc { color: var(--muted); font-size: .95rem; margin: 14px 0 0; min-height: 3em; }
.breath-wrap { display: grid; place-items: center; padding: 30px 0 8px; }
.breath-stage { position: relative; width: min(230px, 62vw); height: min(230px, 62vw); display: grid; place-items: center; }
.breath-stage::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--line); }
.breath { position: relative; width: 100%; height: 100%; border-radius: 50%; transform: scale(.55);
  background: radial-gradient(circle at 38% 32%, var(--accent-strong), var(--accent) 45%, #c98a5f 100%);
  transition-property: transform; transition-timing-function: cubic-bezier(.45, .05, .55, .95); }
.breath::before, .breath::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid var(--accent); }
.breath::before { inset: -9%; opacity: .32; }
.breath::after { inset: -19%; opacity: .13; }
.breath-label { font-weight: 700; font-size: 1.2rem; margin-top: 26px; min-height: 1.6em; text-align: center; }
.breath-count { color: var(--faint); font-size: .9rem; text-align: center; font-variant-numeric: tabular-nums; min-height: 1.5em; }
.ground-step { font-size: 1.15rem; font-weight: 600; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 18px; padding: 22px; margin: 16px 0 0; animation: pop .35s var(--ease) both; }
.progress { display: flex; gap: 6px; margin-top: 14px; }
.progress span { height: 5px; flex: 1; border-radius: 5px; background: var(--surface-3); transition: background-color .4s ease; }
.progress span.on { background: var(--accent); }

/* ---------- feedback ---------- */
.fb-honest { background: var(--accent-soft); border-radius: 16px; padding: 13px 15px; margin: 4px 0 0; color: var(--text); }
.fb-step { animation: stepIn .4s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.fb-count { color: var(--faint); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 0; }
.fb-step h3 { font-size: 1.12rem; margin: 2px 0 0; letter-spacing: -.01em; }
.fb-label { margin: 20px 0 4px; font-size: .97rem; font-weight: 700; display: block; }
.fb-hint { color: var(--muted); font-size: .86rem; margin: 0 0 8px; }
textarea.fb { min-height: 96px; resize: vertical; }
.rating .seg { font-size: .84rem; padding: 9px 6px; }
.fb-areas { display: grid; gap: 10px; margin-top: 10px; }
.fb-area { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.fb-area > span { flex: 1 1 180px; font-size: .95rem; }
.scale { display: flex; gap: 5px; }
.dot { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--muted); font-size: .88rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .18s var(--ease); }
.dot:active { transform: scale(.92); }
.dot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fb-step .chips { margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-soft); padding: 28px 20px 34px; color: var(--faint); }
.foot-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 12px 24px; grid-template-columns: 1fr; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: .95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-link { border: 0; background: none; color: var(--muted); font-size: .92rem; font-weight: 600; cursor: pointer; text-decoration: none; padding: 4px 0; border-radius: 6px; transition: color .2s ease; }
.foot-note { margin: 0; font-size: .84rem; }
body.in-chat .foot { border-top: 0; padding: 0 16px 132px; margin-top: -112px; position: relative; }
body.in-chat .foot-in { max-width: var(--page); justify-items: center; }
body.in-chat .foot-brand, body.in-chat .foot-note { display: none; }
body.in-chat .foot-links { justify-content: center; }
body.in-chat .foot-link { font-size: .84rem; color: var(--faint); }
.noscript { max-width: 640px; margin: 20px auto; padding: 16px; background: var(--warm); border-radius: 16px; }

/* ---------- legal pages (impressum.html, datenschutz.html) ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 26px 20px 60px; }
.legal .back { display: inline-block; margin: 0 0 26px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.12rem; margin: 30px 0 8px; }
.legal h3 { font-size: 1rem; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal address { font-style: normal; color: var(--text); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-m); padding: 16px 18px; margin: 10px 0 14px; line-height: 1.7; }
.legal .todo { color: var(--warm-text); background: var(--warm); border: 1px dashed var(--warm-line); border-radius: 8px; padding: 1px 7px; }
.legal hr { border: 0; border-top: 1px solid var(--line-soft); margin: 44px 0 34px; }
.legal .stand { color: var(--faint); font-size: .86rem; }
.legal-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 4px; font-size: .9rem; }

/* ---------- pointer devices: hover states ---------- */
@media (hover: hover) {
  .brand:hover .brand-text { color: var(--accent-strong); }
  .nav button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
  .nav button.on:hover { background: transparent; }
  .lang-select select:hover, .font-btn:hover { border-color: var(--accent-line); }
  .btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 169, 143, .22); }
  .btn.ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
  .btn.soft:hover { background: var(--line); box-shadow: none; }
  .btn:disabled:hover { transform: none; box-shadow: none; filter: none; }
  .link:hover { text-decoration-color: currentColor; }
  .chip:hover { border-color: var(--accent-line); background: var(--surface); }
  .chip[aria-pressed="true"]:hover { background: var(--accent-soft); }
  .results button:hover { background: var(--surface-3); }
  .reply:hover { background: var(--surface-2); border-color: var(--accent-line); transform: translateY(-1px); }
  .tool:hover { border-color: var(--accent-line); transform: translateY(-2px); }
  .send:hover, .newmsg:hover { background: var(--accent-strong); }
  .num:hover { background: var(--accent-strong); }
  .num.alt:hover { background: var(--accent-soft); }
  .seg:hover { color: var(--text); }
  .dot:hover { border-color: var(--accent-line); color: var(--text); }
  .dot[aria-pressed="true"]:hover { color: var(--accent-ink); }
  .icon-btn:hover { background: var(--line); }
  .foot-link:hover, .legal .back:hover { color: var(--text); }
  .test-badge:hover { background: rgba(240, 138, 160, .26); }
  .find9:hover { transform: translateY(-4px); border-color: var(--accent-line); background: var(--surface-3); }
  .where-btn:hover { border-color: var(--accent-line); }
  .link.wrong:hover { color: var(--muted); }
  .more-tips summary:hover { color: var(--accent-strong); }
}

/* ---------- larger text option (A+) ---------- */
html.big body { font-size: 20.5px; }
html.big .line-note, html.big .bubble p.soft, html.big .note { font-size: .95rem; }

/* ---------- start page: tablet and up ---------- */
@media (min-width: 720px) {
  .steps9 { grid-template-columns: repeat(3, 1fr); }
  .finds9 { grid-template-columns: repeat(2, 1fr); }
  .safes9 { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .foot-in { grid-template-columns: 1fr auto; align-items: center; }
  .foot-note { grid-column: 1 / -1; }
}
/* ---------- start page: phone ---------- */
@media (max-width: 719px) {
  .hero9-moon { width: 62px; height: 62px; right: 7%; top: 22px; box-shadow: inset 17px -10px 0 0 var(--moon); }
  .hero9-in { padding-top: 104px; padding-bottom: 210px; }
  .hero9-art { height: 190px; }
  .startbox-row { flex-direction: column; align-items: stretch; }
  .startbox .btn { width: 100%; }
  .startbox textarea { min-height: 76px; }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  body { font-size: 18px; }
  .finds9 { grid-template-columns: repeat(4, 1fr); }
  .hero9.has-help .hero9-in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; }
  .hero9.has-help .hero9-help { margin-top: 104px; }
  .hero9.has-help .hero9-moon { width: 86px; height: 86px; right: 7%; top: 26px; box-shadow: inset 24px -14px 0 0 var(--moon); }
  main { padding-top: 34px; }
  .msg.bot { padding-right: 14%; }
  .msg.me { padding-left: 22%; }
  .bubble { padding: 14px 20px; }
  .controls .chips { gap: 10px; }
  .panel-inner { padding: 32px 30px 28px; }
  .icon-btn.close { top: 24px; right: 24px; }
  html.big body { font-size: 21.5px; }
}

/* ---------- phone ---------- */
@media (max-width: 880px) {
  .top-inner { flex-wrap: wrap; row-gap: 8px; padding: 10px 14px 8px; }
  .brand-text { font-size: 14.5px; }
  .nav { order: 5; width: 100%; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px; }
  .nav button { flex: 1 1 0; padding: 7px 4px; font-size: 14px; text-align: center; }
  .nav button.help::before { margin-right: 6px; }
  html { scroll-padding-top: 120px; }
  .brand { flex: 1 1 0; }
}
@media (max-width: 640px) {
  .top-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-text { font-size: 14px; letter-spacing: 0; }
  .lang-select select { font-size: 13px; padding: 6px 26px 6px 11px; background-position: right 9px center; }
  .font-btn { min-width: 38px; padding: 0 8px; }
  .intro .segs { border-radius: 22px; }
  .intro .seg { flex: 1 1 100%; border-radius: 18px; }
  .rating { border-radius: 18px; }
  .rating .seg { flex: 1 1 0; padding: 10px 2px; font-size: .78rem; border-radius: 14px; }
  .banner { font-size: .8rem; padding: 6px 12px; }
  main { padding-top: 18px; }
  .card { padding: 22px 18px; border-radius: 24px; }
  .msg.bot { padding-right: 2%; }
  .msg.me { padding-left: 12%; }
  .avatar { width: 26px; height: 26px; }
  .avatar::after { inset: 6px; box-shadow: inset 4.5px -2.5px 0 0 var(--moon); }
  .msg { gap: 8px; }
  .controls { margin-left: 0; }
  .actions .btn { flex: 1 1 auto; }
  /* panels slide up from the bottom like a sheet */
  dialog { margin: auto auto 0; width: 100%; max-width: none; border-radius: 26px 26px 0 0; border-width: 1px 0 0; }
  dialog[open] { animation-name: sheetIn; }
  dialog.closing { animation-name: sheetOut; }
  .panel-inner { padding: 26px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 90vh; max-height: 90dvh; }
  .panel-inner::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--surface-3); }
  .dot { width: 36px; height: 36px; }
  html.big body { font-size: 19px; }
}
@media (max-width: 400px) { .brand-text { font-size: 12.5px; } .moon-s { width: 18px; height: 18px; } }
@keyframes sheetIn { from { opacity: .6; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes sheetOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(30px); } }
@media (max-height: 760px) {
  .breath-stage { width: min(170px, 46vw); height: min(170px, 46vw); }
  .breath-wrap { padding: 20px 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .shoot { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv-on .rv { opacity: 1; transform: none; }
  .reveal .hundred li { opacity: 1; transform: none; }
}

/* ---------- Mensch-Check (Vincent 16.11.2026) ---------- */
.human-gate { padding: 2px 2px 4px; }
.human-label { font-weight: 700; font-size: .98rem; color: var(--muted); margin: 0 2px 10px; }
.human-btn { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 360px; min-height: 58px; padding: 12px 18px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--text); text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-m);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .15s var(--ease); }
.human-btn:hover:not(:disabled) { border-color: var(--accent-line); background: var(--accent-soft); }
.human-btn:active:not(:disabled) { transform: scale(.985); }
.human-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.human-btn:disabled { cursor: default; }
.human-box { flex: none; position: relative; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--accent-line); background: rgba(34, 26, 53, .6);
  transition: background .25s var(--ease), border-color .25s var(--ease); }
.human-btn.busy .human-box { border-color: var(--line); border-top-color: var(--accent); border-radius: 50%; animation: human-spin .8s linear infinite; }
.human-btn.done { border-color: var(--accent-line); }
.human-btn.done .human-box { background: var(--accent); border-color: var(--accent); }
.human-btn.done .human-box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px; border: solid var(--accent-ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.human-note { margin: 10px 2px 0; font-size: .84rem; color: var(--muted); line-height: 1.5; max-width: 46ch; }
.controls .human-gate { background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: var(--r-l); padding: 16px; margin: 4px 0; }
.controls .human-label { text-transform: none; letter-spacing: 0; font-size: .98rem; color: var(--text); }
@keyframes human-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .human-btn.busy .human-box { animation-duration: 2.4s; } }


/* ---------- Fassung 14b (18.11.2026): the start page as a camera flight from night to morning ----------
   Vincent's examples (Vorbilder/*.mp4). 1st try "gefällt mir nicht" (too empty, too little motion, not like the videos) →
   a drawn landscape fills the screen (journey.js): sky, stars, moon, 4 mountain ranges with fog, clouds the camera flies
   through, sunrise (light rays removed 18.11., 14h), the valley with the lit house. Scroll sets --p, --fly, --cloud, --dawn on #stage. */
.stage { position: fixed; inset: 0; z-index: -2; pointer-events: none; display: none; overflow: hidden; --p: 0; --fly: 0; --cloud: 0; --dawn: 0; }
body.in-welcome .stage { display: block; }
body.in-welcome > .sky { display: none; }
body.in-welcome #view-welcome { overflow-x: hidden; overflow-x: clip; }
.st-sky { position: absolute; inset: 0; }
/* 14c: first light instead of night (Vincent: "erster Eindruck … er muss sich sicher fühlen", gewählt: sanfter Morgen) */
.st-night { background: linear-gradient(180deg, #4f5a99 0%, #7378b8 26%, #a597cc 50%, #e8adb6 74%, #ffd5b6 100%); }
.st-dawn { background: linear-gradient(180deg, #7f98d4 0%, #c3b2dc 26%, #f6bfa8 50%, #ffd6a2 70%, #fff0d2 100%); opacity: var(--dawn); }
.st-stars, .st-specks { position: absolute; inset: 0; }
.st-moon { position: absolute; right: 13%; top: 15vh; width: 92px; height: 92px; border-radius: 50%; box-shadow: inset 25px -14px 0 0 #fff3ea;
  transform: translateY(calc(var(--p) * 40vh)) rotate(-12deg); opacity: calc(.8 - var(--p) * 2.4); }
.st-scene, .st-clouds { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* camera: near ranges grow and sink faster than far ones = flying forward */
.st-scene .range { transform-origin: 800px 900px; transform-box: view-box; }
.st-scene .r0 { transform: translateY(calc(var(--fly) * 40px)) scale(calc(1 + var(--fly) * .08)); }
.st-scene .r1 { transform: translateY(calc(var(--fly) * 90px)) scale(calc(1 + var(--fly) * .18)); }
.st-scene .r2 { transform: translateY(calc(var(--fly) * 170px)) scale(calc(1 + var(--fly) * .34)); }
.st-scene .r3 { transform: translateY(calc(var(--fly) * 300px)) scale(calc(1 + var(--fly) * .6)); }
.st-scene .dawn-tint { opacity: var(--dawn); }
.st-scene .snow { fill: #fdfbff; }
.st-scene .snow-s { fill: #d9d2ef; }
.st-scene .firstlight { opacity: calc(.8 + var(--dawn) * .2); }
.st-scene .fog { animation: fogDrift 38s ease-in-out infinite alternate; }
.st-scene .r1 .fog { animation-duration: 46s; animation-delay: -12s; }
.st-scene .r2 .fog { animation-duration: 54s; animation-delay: -30s; }
@keyframes fogDrift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
.st-scene .valley { transform: translateY(calc((1 - var(--dawn)) * 160px)); opacity: calc(var(--dawn) * 1.4); }
.st-scene .valley .win { animation: lamp 6s ease-in-out infinite; }
.st-scene .valley .w2 { animation-delay: 2.3s; }
.st-scene .sunwrap { opacity: var(--dawn); transform: translateY(calc((1 - var(--dawn)) * 420px)); }
.st-clouds { opacity: var(--cloud); transform: scale(calc(1 + var(--cloud) * .5 + var(--fly) * .9)); transform-origin: 50% 60%; }

body.in-welcome .top { background: rgba(48, 44, 96, .32); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
body.in-welcome .top.scrolled { border-bottom-color: rgba(255, 255, 255, .08); }
body.in-welcome .foot { background: rgba(44, 39, 82, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top-color: rgba(255, 255, 255, .08); }

/* hero sits on the scene */
.hero9 { background: none; overflow: visible; }
.hero9-in { padding-bottom: clamp(70px, 16vh, 170px); }
.hero9 h1 { font-weight: 900; font-size: clamp(2.6rem, 7.6vw, 5rem); line-height: 1.02; letter-spacing: -.035em; text-shadow: 0 2px 28px rgba(40, 30, 90, .35); }
.hero9 .lead { color: #ece5f5; text-shadow: 0 1px 16px rgba(10, 6, 30, .6); }
.hero9 .test-badge { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.startbox, .hero9-help, .where-pick { background: rgba(36, 30, 78, .42); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.pickbox .where-pick { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero9-help .line { background: rgba(255, 255, 255, .05); }

/* sections */
.j-say, .j-ways, .j-help, .j-dawn { position: relative; }
.j-say { min-height: 95vh; display: flex; align-items: center; }
.say { margin: 0; max-width: 13em; font-weight: 900; font-size: clamp(2.6rem, 8.6vw, 6rem); line-height: 1.02; letter-spacing: -.04em; color: #fff; text-shadow: 0 4px 40px rgba(10, 6, 30, .5); }
.j-ways { min-height: 100vh; padding: 12vh 0; display: flex; align-items: center; }
.j-h { font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.2rem); color: #efe8f7; margin: 0 0 22px; text-shadow: 0 1px 12px rgba(10, 6, 30, .6); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  padding: 20px 18px; border-radius: 24px; background: rgba(36, 30, 78, .4); border: 1px solid rgba(255, 255, 255, .17);
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25);
  transition: transform .45s var(--ease), border-color .3s ease, background-color .3s ease; }
.tile strong { font-size: 1.15rem; font-weight: 800; }
.tile-d { color: #ddd4ea; font-size: .92rem; line-height: 1.45; }
.tile-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 8px; background: rgba(255, 185, 143, .16); color: var(--accent-strong); }
.tile-ic svg { width: 22px; height: 22px; }
.tiles .rv:nth-child(2) { transition-delay: .1s; } .tiles .rv:nth-child(3) { transition-delay: .2s; } .tiles .rv:nth-child(4) { transition-delay: .3s; }
@media (hover: hover) { .tile:hover { transform: translateY(-6px); border-color: rgba(255, 210, 179, .5); background: rgba(40, 28, 70, .5); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .tile { padding: 26px 22px; min-height: 230px; } }
.j-help { min-height: 110vh; display: flex; align-items: center; padding: 14vh 0; }
.j-help .wrap > .glass { max-width: 760px; padding: clamp(24px, 4vw, 44px); border-radius: 30px; background: rgba(36, 30, 78, .42); border: 1px solid rgba(255, 255, 255, .17);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.j-big { font-weight: 900; font-size: clamp(2.3rem, 6.6vw, 4.6rem); line-height: 1.03; letter-spacing: -.035em; margin: 0 0 22px; max-width: 13em; color: #fff; text-shadow: 0 3px 34px rgba(10, 6, 30, .5); }
.j-p { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.55; color: #f1eaf7; max-width: 30em; margin: 0 0 26px; text-shadow: 0 1px 14px rgba(10, 6, 30, .55); }
.j-safe { margin: 40px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); color: #e4dcef; font-size: .95rem; max-width: 42em; text-shadow: 0 1px 12px rgba(10, 6, 30, .6); }
.j-dawn { min-height: 150vh; padding-top: 18vh; }
.j-dawn .j-big { color: #2b2050; text-shadow: 0 2px 24px rgba(255, 240, 220, .6); }
.j-dawn .j-p { color: #33275a; text-shadow: 0 1px 14px rgba(255, 240, 220, .7); }
.j-dawn .btn.light { background: #2f2659; color: #fff6ee; }
.btn.light { background: #fff6ee; color: #2b1810; }

/* words come out of a blur, one after another */
.rv-on [data-words] .wd { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.25em);
  transition: opacity .9s ease, filter .9s ease, transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.rv-on [data-words].in .wd { opacity: 1; filter: none; transform: none; }

@media (max-width: 719px) {
  .hero9-in { padding-bottom: 90px; }
  .st-moon { width: 58px; height: 58px; right: 8%; top: 236px; box-shadow: inset 16px -9px 0 0 var(--moon); }
  .tile { padding: 16px 14px; border-radius: 20px; }
  .tile-d { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .st-scene .fog { animation: none; }
  .rv-on [data-words] .wd { opacity: 1; filter: none; transform: none; }
}

/* ---------- 14c: softer menu and test strip on every view (Vincent: "die Bar … smoother") ---------- */
.nav { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-ind { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.nav button { color: rgba(240, 234, 250, .78); font-weight: 700; transition: color .3s ease; }
.nav button.on { color: #fff; }
@media (max-width: 880px) { .nav { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); } }
.top { -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); background: rgba(30, 24, 58, .82); }
.banner { background: rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .1); color: #f3ecf8; font-weight: 600; font-size: .86rem; padding: 7px 16px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.in-welcome .banner { position: relative; z-index: 2; }
/* 14c: a soft shade behind the start text, so it stays readable in front of the light mountains */
.hero9-copy { position: relative; }
.hero9-copy::before { content: ""; position: absolute; z-index: -1; inset: -12% -18% -10% -30%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(52, 44, 108, .55), rgba(52, 44, 108, .28) 60%, rgba(52, 44, 108, 0)); }
.hero9 .lead { color: #fff; }

/* ---------- 14c: the conversation sits on the same landscape (Vincent: "im Chat sieht alles Standard aus") ---------- */
body.in-chat .stage { display: block; }
body.in-chat > .sky { display: none; }
body.in-chat .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58, 52, 118, .34), rgba(58, 52, 118, .14) 55%, rgba(58, 52, 118, .3)); }
body.in-chat .bot .bubble { background: rgba(62, 55, 128, .5); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
body.in-chat .me .bubble { background: rgba(255, 190, 160, .38); border: 1px solid rgba(255, 214, 190, .35); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
body.in-chat .msg.urgent .bubble { background: rgba(120, 50, 80, .55); border-color: rgba(255, 180, 190, .4); }
body.in-chat .avatar { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.in-chat .reply { background: rgba(62, 55, 128, .42); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.in-chat .composer-inner { background: rgba(62, 55, 128, .55); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
body.in-chat .chat-test { background: rgba(40, 33, 86, .45); border-color: rgba(255, 190, 200, .4); color: #efe8f7; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.in-chat .bubble p.soft { color: #d9d0e8; }
body.in-chat .composer { background: linear-gradient(180deg, rgba(70, 64, 136, 0), rgba(70, 64, 136, .55) 50%); }
body.in-chat .top, body.in-reasons .top { background: rgba(48, 44, 96, .32); }

/* back to a running conversation (start page) */
.back-chat { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px 10px; padding: 8px 16px 8px 10px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: .95rem; color: #2b1810;
  background: #fff1e6; border: 0; box-shadow: 0 8px 30px rgba(30, 20, 70, .25); transition: transform .3s var(--ease); }
.back-chat span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 170, 130, .35); }
.back-chat svg { width: 16px; height: 16px; }
@media (hover: hover) { .back-chat:hover { transform: translateY(-2px); } }
.topic-label { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 800; color: var(--accent-strong); }

/* ---------- 14d: one world for all views + transitions (Vincent: "wenn ich auf Reasons gehe … keine Animation") ---------- */
body.in-reasons .stage { display: block; }
body.in-reasons > .sky { display: none; }
body.in-reasons .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58, 50, 116, .42), rgba(58, 50, 116, .12) 45%, rgba(58, 50, 116, .3)); }
body.in-reasons .foot, body.in-chat .foot { background: none; }
body.in-reasons .foot { border-top-color: rgba(255, 255, 255, .12); }

/* view change: the old view blurs away, the camera flies through the clouds, the new one comes out of the blur */
#view-welcome.leaving, #view-reasons.leaving, #view-chat.leaving { animation: viewLeave .43s ease both; }
.entering { animation: viewEnter .9s var(--ease) both; }
@keyframes viewLeave { to { opacity: 0; filter: blur(14px); transform: scale(.97) translateY(-12px); } }
@keyframes viewEnter { from { opacity: 0; filter: blur(16px); transform: scale(1.03) translateY(16px); } to { opacity: 1; filter: none; transform: none; } }

/* reasons page on the landscape */
#view-reasons .intro h1 { font-weight: 900; font-size: clamp(2.3rem, 6.4vw, 4rem); line-height: 1.04; letter-spacing: -.035em; color: #fff; text-shadow: 0 3px 30px rgba(40, 30, 90, .45); }
#view-reasons .intro .lead { color: #fff; text-shadow: 0 1px 16px rgba(40, 30, 90, .55); }
#view-reasons .segs { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
#view-reasons .seg { color: rgba(245, 240, 252, .85); font-weight: 700; }
#view-reasons .seg[aria-pressed="true"] { background: rgba(255, 255, 255, .2); color: #fff; }
#view-reasons .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rgroup { margin-top: 56px; }
.rgroup h2 { text-transform: none; letter-spacing: -.02em; font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 900; color: #fff; text-shadow: 0 2px 22px rgba(40, 30, 90, .5); margin: 0 0 16px; }
.hundred li { gap: 16px; align-items: flex-start; padding: 16px 18px; margin: 0 0 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px;
  background: rgba(52, 44, 108, .46); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); color: #fff; line-height: 1.5; }
.hundred li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.rn { width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 196, 160, .22); color: #ffe2cf; font-size: .8rem; text-align: center; }
.hundred li.glow { background: rgba(255, 190, 150, .34); border-color: rgba(255, 220, 190, .6); padding-left: 18px; }
.reveal .hundred li, .reveal .rgroup h2 { opacity: 0; filter: blur(8px); transform: translateY(26px) scale(.97);
  transition: opacity .8s ease, filter .8s ease, transform .8s var(--ease), background-color .5s ease; transition-delay: calc(var(--d, 0) * 70ms); }
.reveal .hundred li.in, .reveal .rgroup h2.in { opacity: 1; filter: none; transform: none; }
.reveal [data-words] .wd { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.25em); transition: opacity .9s ease, filter .9s ease, transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.reveal [data-words].in .wd { opacity: 1; filter: none; transform: none; }

/* panels (breathe, help, feedback, about) as glass with a soft entrance */
dialog { background: rgba(52, 44, 108, .66); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  -webkit-backdrop-filter: blur(26px) saturate(1.25); backdrop-filter: blur(26px) saturate(1.25); box-shadow: 0 30px 90px rgba(20, 14, 60, .45); }
dialog::backdrop { background: rgba(36, 30, 80, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog[open] { animation: glassIn .55s var(--ease) both; }
@keyframes glassIn { from { opacity: 0; filter: blur(12px); transform: translateY(24px) scale(.95); } to { opacity: 1; filter: none; transform: none; } }
dialog .line, dialog .card { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
dialog .sub, dialog .hint { color: #e6def2; }
.breath-stage::before { border-color: rgba(255, 255, 255, .35); }
@media (max-width: 640px) { dialog[open] { animation-name: sheetIn; } }
@media (prefers-reduced-motion: reduce) {
  .reveal .hundred li, .reveal .rgroup h2, .reveal [data-words] .wd { opacity: 1; filter: none; transform: none; }
}

/* ---------- 14e: breathe page at the mountain lake ---------- */
body.in-breathe .stage { display: block; }
body.in-breathe > .sky { display: none; }
body.in-breathe .top { background: rgba(48, 44, 96, .3); }
body.in-breathe .foot { background: none; border-top-color: rgba(255, 255, 255, .12); }
.st-scene .lake { opacity: 0; transition: opacity 1.4s ease; }
.st-scene .r2, .st-scene .r3 { transition: opacity 1.2s ease; }
body.in-breathe .st-scene .lake { opacity: 1; }
body.in-breathe .st-scene .r2, body.in-breathe .st-scene .r3 { opacity: 0; }
body.in-breathe .st-scene .valley { visibility: hidden; }
.st-scene .sunrefl { transform-box: fill-box; transform-origin: center; transform: scale(calc(.75 + var(--breath, 0) * .55), calc(1 + var(--breath, 0) * .4)); opacity: calc(.55 + var(--breath, 0) * .45); }
.st-scene .rip { transform-box: fill-box; transform-origin: center; stroke-width: 1.2; transform: scale(calc(.6 + var(--breath, 0) * .9)); opacity: calc(.12 + var(--breath, 0) * .4); }
.st-scene .rip.r2 { opacity: calc(.08 + var(--breath, 0) * .28); }
.st-scene .rip.r3 { opacity: calc(.05 + var(--breath, 0) * .18); }
.st-scene .lakemist { transform: translateY(calc(var(--breath, 0) * -46px)); opacity: calc(.45 + var(--breath, 0) * .45); }
.st-scene .shim { animation: shim 5s ease-in-out infinite alternate; }
.st-scene .shim:nth-child(2n) { animation-duration: 7s; animation-delay: -2s; }
@keyframes shim { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
body.in-breathe .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58, 50, 116, .4), rgba(58, 50, 116, .08) 50%, rgba(58, 50, 116, 0)); transition: opacity .8s ease; }
body.breathing .stage::after { opacity: .5; }

.br-head h1 { font-weight: 900; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1.02; letter-spacing: -.04em; color: #fff; text-shadow: 0 3px 30px rgba(40, 30, 90, .45); margin-bottom: 12px; }
.br-head .lead { color: #fff; text-shadow: 0 1px 16px rgba(40, 30, 90, .55); max-width: 32em; }
.ex-grid { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 720px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ex { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: #fff;
  padding: 20px 20px 18px; border-radius: 24px; background: rgba(52, 44, 108, .42); border: 1px solid rgba(255, 255, 255, .17);
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25);
  transition: transform .45s var(--ease), border-color .3s ease, background-color .3s ease, opacity .8s ease, filter .8s ease; transition-delay: calc(var(--d, 0) * 70ms); }
.ex strong { font-size: 1.25rem; font-weight: 900; letter-spacing: -.01em; }
.ex-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 6px; }
.ex-ev { font-size: .76rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.ex-ev.ev-many { background: rgba(170, 230, 200, .25); color: #e3fff0; }
.ex-ev.ev-one { background: rgba(255, 214, 160, .25); color: #fff1dc; }
.ex-ev.ev-small, .ex-ev.ev-few { background: rgba(255, 255, 255, .12); color: #ece6f6; }
.ex-min { font-size: .82rem; font-weight: 700; color: #e6def2; }
.ex-when { font-size: .92rem; font-weight: 700; color: #ffe2cf; }
.ex-how { font-size: .92rem; color: #ece6f6; line-height: 1.5; }
.ex-go { margin-top: 10px; font-weight: 800; font-size: .92rem; padding: 8px 16px; border-radius: 999px; background: #fff1e6; color: #2b1810; }
@media (hover: hover) { .ex:hover { transform: translateY(-5px); border-color: rgba(255, 220, 190, .5); background: rgba(62, 52, 124, .52); } }
.rv-on .ex.rv { opacity: 0; filter: blur(8px); transform: translateY(24px) scale(.97); }
.rv-on .ex.rv.in { opacity: 1; filter: none; transform: none; }
.br-note { margin: 26px 0 10px; color: #fff; font-size: .95rem; max-width: 40em; text-shadow: 0 1px 12px rgba(40, 30, 90, .6); }
.br-src { color: #efe8f7; font-size: .9rem; margin-bottom: 30px; }
.br-src summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.br-src a { color: #ffe2cf; }

/* exercise mode: everything else fades away, the lake breathes */
body.breathing .top, body.breathing .banner, body.breathing .foot, body.breathing .br-head, body.breathing .ex-grid, body.breathing .br-note, body.breathing .br-src { opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.br-run { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px 16px; animation: viewEnter .9s var(--ease) both; }
.run-in { width: 100%; max-width: 520px; text-align: center; color: #fff; }
.run-name { font-weight: 800; color: #fff4ea; text-shadow: 0 1px 14px rgba(40, 30, 90, .6); margin-bottom: 20px; }
.orb-wrap { position: relative; width: min(300px, 74vw); aspect-ratio: 1; margin: 0 auto 28px; display: grid; place-items: center; }
.run-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.run-ring circle { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 2; }
.run-ring .prog { stroke: #ffe2cf; stroke-linecap: round; stroke-dasharray: 351.9; stroke-dashoffset: 351.9; }
.orb { position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; --b: 0; transform: scale(calc(.55 + var(--b) * .45));
  background: radial-gradient(circle at 50% 40%, rgba(255, 245, 235, .5), rgba(255, 200, 180, .18) 60%, rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(40, 30, 90, .25); }
.run-word { position: relative; display: grid; gap: 4px; }
.run-word span { font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; text-shadow: 0 2px 20px rgba(40, 30, 90, .45); }
.run-word small { font-size: .95rem; font-weight: 700; color: #fff4ea; text-shadow: 0 1px 12px rgba(40, 30, 90, .6); }
.run-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.br-run .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.run-step { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 900; line-height: 1.2; letter-spacing: -.02em; margin: 10px 0 22px; text-shadow: 0 2px 20px rgba(40, 30, 90, .5); min-height: 3.6em; display: grid; place-items: center; }
.run-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.run-dots span { width: 34px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .25); transition: background-color .4s ease; }
.run-dots span.on { background: #ffe2cf; }
.run-big { font-size: clamp(2.2rem, 8vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; text-shadow: 0 2px 20px rgba(40, 30, 90, .45); margin-bottom: 10px; }
.run-text { font-size: 1.08rem; margin: 0 auto 24px; max-width: 26em; text-shadow: 0 1px 14px rgba(40, 30, 90, .6); }
@media (prefers-reduced-motion: reduce) { .st-scene .shim { animation: none; } .rv-on .ex.rv { opacity: 1; filter: none; transform: none; } }
/* 14g: the older ".rv-on .rv" transition reset the stagger of the breathe cards */
.rv-on .ex.rv { transition: opacity .8s ease, filter .8s ease, transform .8s var(--ease), border-color .3s ease, background-color .3s ease; transition-delay: calc(var(--d, 0) * 80ms); }
