:root {
  --night: #1f2442;
  --deep: #161a33;
  --card: rgba(41, 47, 84, .72);
  --card-solid: #292f54;
  --card-2: #323a64;
  --line: rgba(236, 230, 219, .10);
  --line-2: rgba(236, 230, 219, .18);
  --text: #ece6db;
  --soft: #c9c4bd;
  --muted: #9ea3c4;
  --gold: #d8bd8a;
  --gold-2: #e9d3a8;
  --gold-ink: #2a2440;
  --rose: #e8b4b8;
  --rose-soft: rgba(232, 180, 184, .14);
  --sage: #a9c4b3;
  --danger: #f0a39b;
  --radius: 22px;
  --radius-s: 14px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  --tabs-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: radial-gradient(120% 70% at 50% -10%, #2b3260 0%, var(--night) 45%, var(--deep) 100%) fixed;
  background-color: var(--night);
  color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 24px);
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
a { color: var(--gold-2); }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, .serif { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 6.5vw, 2.7rem); }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

/* ---------- Kopf & Tabs ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 18px 10px;
  background: linear-gradient(to bottom, rgba(22, 26, 51, .92), rgba(22, 26, 51, .6) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 54px; height: 24px; }
.brand span { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .14em; font-weight: 500; }
.sos {
  text-decoration: none; color: var(--gold-ink); background: var(--rose);
  padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: .9rem;
}
main { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 8px 16px 0; outline: none; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(22, 26, 51, .94); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.tabs svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tabs a.on { color: var(--gold); }
.tabs a.on svg { fill: rgba(216, 189, 138, .18); }
@media (min-width: 900px) {
  .tabs { left: 50%; transform: translateX(-50%); bottom: 18px; width: 560px; border-radius: 24px; border: 1px solid var(--line-2); height: var(--tabs-h); padding: 0; }
}

/* ---------- Bausteine ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 14px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card.glow { border-color: rgba(216, 189, 138, .35); box-shadow: 0 0 40px -18px rgba(216, 189, 138, .6); }
.card.rose { background: linear-gradient(140deg, rgba(232, 180, 184, .16), rgba(41, 47, 84, .72)); border-color: rgba(232, 180, 184, .25); }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .2s ease, border-color .2s ease; }
a.card:active { transform: scale(.985); }
@media (hover: hover) { a.card:hover { border-color: var(--line-2); } }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--gold); color: var(--gold-ink); font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .15s ease, filter .15s ease;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.quiet { background: rgba(236, 230, 219, .08); color: var(--text); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(240, 163, 155, .4); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .card { margin: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; background: rgba(236, 230, 219, .08); font-size: .78rem; color: var(--soft); font-weight: 600; }
.pill.gold { background: rgba(216, 189, 138, .16); color: var(--gold-2); }
.pill.rose { background: var(--rose-soft); color: var(--rose); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; margin: 4px 0 12px; }
.back::before { content: "‹"; font-size: 1.4rem; line-height: 1; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty .twinkle { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 6px; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Formulare ---------- */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
label.f > small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], textarea, select {
  width: 100%; background: rgba(15, 18, 38, .55); border: 1px solid var(--line-2); border-radius: var(--radius-s);
  padding: 13px 14px; font-size: 16px; color: var(--text); outline: none; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-bottom: 12px; font-size: .95rem; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; margin-top: 2px; }
.err { color: var(--danger); font-size: .92rem; min-height: 1.2em; margin: 6px 0 10px; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: rgba(236, 230, 219, .16); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { transform: translateX(20px); background: var(--gold-ink); }

/* ---------- Start ---------- */
.hero { text-align: center; padding: 26px 8px 18px; }
.hero .mark { width: 170px; height: 72px; display: block; margin: 0 auto 10px; filter: drop-shadow(0 0 18px rgba(216, 189, 138, .35)); }
.hero h1 { margin-bottom: .25em; }
.hero p { color: var(--soft); max-width: 30em; margin: 0 auto 1.2em; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tile { margin: 0 !important; padding: 18px 16px; min-height: 132px; display: flex !important; flex-direction: column; justify-content: space-between; }
.tile .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(216, 189, 138, .14); color: var(--gold); margin-bottom: 10px; }
.tile .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tile strong { font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; display: block; }
.tile span { font-size: .84rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }
.tile.wide { grid-column: span 2; min-height: 0; flex-direction: row !important; align-items: center; gap: 14px; justify-content: flex-start; }
.tile.wide .ico { margin: 0; flex: none; }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; text-align: center; color: var(--gold-2); padding: 18px 10px 4px; }
.quote small { display: block; font-family: var(--sans); font-style: normal; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.list-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.list-link:last-child { border-bottom: 0; }
.list-link b { font-weight: 600; display: block; line-height: 1.35; }
.list-link small { color: var(--muted); }
.list-link .chev { color: var(--muted); font-size: 1.3rem; }
.badge { background: var(--rose); color: var(--gold-ink); border-radius: 99px; font-size: .75rem; font-weight: 800; padding: 1px 8px; }

/* ---------- Wegweiser ---------- */
.guide-head { padding: 6px 0 10px; }
.guide-head p { color: var(--soft); }
.progress { height: 6px; border-radius: 99px; background: rgba(236, 230, 219, .1); overflow: hidden; margin: 10px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--rose)); border-radius: 99px; transition: width .4s ease; }
.phase { margin: 22px 0 10px; }
.phase h2 { font-size: 1.4rem; margin-bottom: 2px; }
.phase p { color: var(--muted); font-size: .92rem; margin: 0; }
.step { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); margin-bottom: 10px; overflow: hidden; }
.step > button.head { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.step > button.head:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.step .tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; color: transparent; transition: all .2s; }
.step.done .tick { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.step .tick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; }
.step .t { flex: 1; font-weight: 600; line-height: 1.35; }
.step.done .t { color: var(--muted); }
.step .chev { color: var(--muted); transition: transform .2s; }
.step.open .chev { transform: rotate(90deg); }
.step .body { display: none; padding: 0 16px 16px 54px; color: var(--soft); font-size: .98rem; }
.step.open .body { display: block; }
.step .body ul { padding-left: 1.1em; margin: 0 0 1em; }
.step .body li { margin-bottom: .35em; }
.tip { background: var(--rose-soft); border-left: 3px solid var(--rose); padding: 10px 14px; border-radius: 0 12px 12px 0; margin: 10px 0; font-size: .93rem; color: var(--text); }
.tip.gold { background: rgba(216, 189, 138, .1); border-color: var(--gold); }
.src { font-size: .78rem; color: var(--muted); }
.src a { color: var(--muted); }
.article { font-size: 1.02rem; }
.article h2 { margin-top: 1.2em; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .4em; }
.say { display: grid; gap: 10px; }
.say div { padding: 12px 14px; border-radius: 14px; font-size: .96rem; }
.say .yes { background: rgba(169, 196, 179, .12); border: 1px solid rgba(169, 196, 179, .3); }
.say .no { background: rgba(240, 163, 155, .08); border: 1px solid rgba(240, 163, 155, .25); }

/* ---------- Forum ---------- */
.room { display: flex !important; gap: 14px; align-items: flex-start; }
.room .dot { width: 42px; height: 42px; flex: none; border-radius: 14px; background: rgba(216, 189, 138, .12); display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.room h3 { margin: 0 0 2px; font-size: 1.22rem; }
.room p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.room .meta { font-size: .78rem; color: var(--soft); margin-top: 6px; }
.thread-item h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 4px 0 4px; line-height: 1.35; }
.thread-item p { color: var(--soft); font-size: .93rem; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.by { font-size: .82rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.by b { color: var(--soft); font-weight: 700; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--gold-ink); }
.post { padding: 16px 18px; }
.post .head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post .text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.post.op { border-color: rgba(216, 189, 138, .3); }
.post.team { border-color: rgba(169, 196, 179, .45); }
.post.hiddenpost { opacity: .6; font-style: italic; }
.cw { position: relative; min-height: 170px; }
.cw .text { filter: blur(7px); user-select: none; max-height: 120px; overflow: hidden; }
.cw .cw-btn { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10px; }
.cw .cw-btn div { background: rgba(22, 26, 51, .92); border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 16px; font-size: .9rem; }
.reacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.react { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: .85rem; color: var(--soft); transition: all .15s; }
.react svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.react.on { background: rgba(216, 189, 138, .16); border-color: rgba(216, 189, 138, .5); color: var(--gold-2); }
.react.on svg { fill: rgba(216, 189, 138, .35); }
.react.pop { animation: pop .4s ease; }
@keyframes pop { 40% { transform: scale(1.15); } }
.more-btn { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.3rem; padding: 4px 10px; border-radius: 10px; }
.fab { position: fixed; right: 18px; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); z-index: 25; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
@media (min-width: 900px) { .fab { right: calc(50% - 360px); bottom: 104px; } }
.reply-box { margin-top: 18px; }
.reply-box textarea { min-height: 90px; }
.searchbar { display: flex; gap: 8px; margin-bottom: 14px; }

/* ---------- Himmel ---------- */
.sky-wrap { position: relative; height: calc(100dvh - 210px); min-height: 420px; margin: 0 -16px; overflow: hidden; touch-action: pan-y; }
.sky-star { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 10px; cursor: pointer; color: var(--gold); }
.sky-star svg { display: block; filter: drop-shadow(0 0 6px rgba(233, 211, 168, .7)); animation: tw 4s ease-in-out infinite; }
.sky-star.own svg { color: var(--rose); filter: drop-shadow(0 0 8px rgba(232, 180, 184, .8)); }
.sky-star.priv svg { opacity: .6; }
.sky-star .nm { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--serif); font-size: .9rem; color: var(--soft); pointer-events: none; opacity: .85; margin-top: -6px; }
@keyframes tw { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.sky-bar { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 8px; justify-content: center; }
.sky-intro { text-align: center; padding: 0 10px 6px; }
.sky-intro p { color: var(--soft); margin: 0; font-size: .95rem; }
.star-detail { text-align: center; }
.star-detail .big { width: 70px; height: 70px; color: var(--gold); margin: 0 auto 8px; display: block; filter: drop-shadow(0 0 16px rgba(233, 211, 168, .8)); }
.star-detail h2 { font-size: 2rem; margin-bottom: 0; }
.star-detail .msg { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: 14px 0; color: var(--text); white-space: pre-wrap; }

/* ---------- Ich ---------- */
.me-head { display: flex; gap: 14px; align-items: center; }
.me-head .avatar { width: 56px; height: 56px; font-size: 1.3rem; }
.mood { display: flex; gap: 8px; justify-content: space-between; margin-bottom: 12px; }
.mood button { flex: 1; min-height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: .75rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mood button i { font-style: normal; font-size: 1.2rem; color: var(--gold); }
.mood button.on { background: rgba(216, 189, 138, .16); border-color: var(--gold); color: var(--text); }
.entry { white-space: pre-wrap; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.35rem; letter-spacing: .1em; text-align: center; padding: 16px; border-radius: 16px; background: rgba(15, 18, 38, .6); border: 1px dashed var(--gold); color: var(--gold-2); user-select: all; margin: 12px 0; }

/* ---------- Hilfe ---------- */
.sos-card { background: linear-gradient(140deg, rgba(232, 180, 184, .22), rgba(41, 47, 84, .8)); border-color: rgba(232, 180, 184, .4); }
.phone { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.phone:last-child { border-bottom: 0; }
.phone b { display: block; line-height: 1.3; }
.phone small { color: var(--muted); display: block; line-height: 1.35; }
.phone a.btn { flex: none; }
.breathe { width: 140px; height: 140px; margin: 10px auto 14px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 211, 168, .55), rgba(216, 189, 138, .08) 70%); animation: breathe 10s ease-in-out infinite; display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem; color: var(--text); }
@keyframes breathe { 0%, 100% { transform: scale(.72); } 40% { transform: scale(1); } 60% { transform: scale(1); } }

/* ---------- Modal & Toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 12, 26, .7); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.sheet { background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 26px 26px 0 0; width: 100%; max-width: 560px; max-height: 88dvh; overflow: auto; padding: 22px 20px calc(22px + var(--safe-b)); animation: up .28s ease; }
@media (min-width: 700px) { .modal { align-items: center; } .sheet { border-radius: 26px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet .menu button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.sheet .menu button:last-child { border-bottom: 0; }
.sheet .menu button.red { color: var(--danger); }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 20px); transform: translate(-50%, 20px); background: var(--gold); color: var(--gold-ink); font-weight: 700; padding: 10px 18px; border-radius: 99px; z-index: 60; opacity: 0; pointer-events: none; transition: all .25s ease; max-width: calc(100vw - 32px); text-align: center; font-size: .93rem; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.foot { text-align: center; font-size: .8rem; color: var(--muted); padding: 20px 0 6px; }
.foot a { color: var(--muted); margin: 0 6px; }
.fade-in { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--gold); animation: spin 1s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ruhige Ansicht & reduzierte Bewegung */
.calm .sky-star svg, .calm .breathe { animation: none; }
.calm .react .n { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.calmbar { font-size: .84rem; color: var(--soft); background: rgba(236, 230, 219, .05); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 4px 0 14px; line-height: 1.45; }
.calmbar a { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.foot p { max-width: 34em; margin-left: auto !important; margin-right: auto !important; line-height: 1.5; }
.phone > div:first-child { flex: 1; min-width: 0; }
.phone .btn { white-space: nowrap; }

.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 85%; align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 14px; }
.msg.me { align-self: flex-end; background: rgba(216, 189, 138, .14); border-color: rgba(216, 189, 138, .35); border-radius: 18px 18px 6px 18px; }
.msg small { display: block; color: var(--muted); font-size: .76rem; margin-top: 4px; }
.tabs .badge { font-size: .62rem; padding: 0 6px; vertical-align: 1px; }
.foot p a { margin: 0; white-space: nowrap; }
.sophia { display: flex !important; gap: 16px; align-items: flex-start; }
.sophia-mark { width: 64px; height: 28px; flex: none; margin-top: 6px; }
.sophia h2 { font-size: 1.5rem; margin-bottom: 6px; }
.sophia p { color: var(--soft); font-size: .96rem; }
@media (max-width: 420px) { .sophia { flex-direction: column; gap: 6px; } }
.sky-star.till svg { color: var(--gold-2); filter: drop-shadow(0 0 14px rgba(233, 211, 168, .95)); }
.sky-star.till .nm { color: var(--gold-2); font-size: 1rem; }
.article blockquote { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--gold-2); margin: 10px 0 18px; padding-left: 14px; border-left: 2px solid var(--gold); }
.article .sig { font-family: var(--serif); font-size: 1.35rem; text-align: center; margin-top: 18px; }
/* Runde 3 */
.home-hello { text-align: center; padding: 10px 6px 4px; }
.home-hello h1 { font-size: clamp(1.8rem, 6vw, 2.3rem); }
.home-hello p { color: var(--soft); margin: 0 auto 10px; max-width: 30em; }
.sky-preview { position: relative; display: block; height: 340px; margin: 6px 0 14px; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--text);
  background: radial-gradient(90% 70% at 50% 15%, #353d72 0%, #232953 55%, #171b33 100%); border: 1px solid rgba(216, 189, 138, .25); box-shadow: 0 20px 60px -30px rgba(216, 189, 138, .45); }
.sp-star { position: absolute; transform: translate(-50%, -50%); color: var(--gold); pointer-events: none; }
.sp-star svg { display: block; filter: drop-shadow(0 0 6px rgba(233, 211, 168, .7)); animation: tw 5s ease-in-out infinite; animation-delay: inherit; }
.sp-star.own { color: var(--rose); }
.sp-star.till { color: var(--gold-2); }
.sp-star.till svg { filter: drop-shadow(0 0 14px rgba(233, 211, 168, .95)); }
.sp-star i { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-style: normal; font-size: .9rem; color: var(--gold-2); }
.sp-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 20px; text-align: center; background: linear-gradient(to top, rgba(22, 26, 51, .92), transparent); }
.sp-text p { font-size: 1.55rem; margin: 0 0 12px; }
.austausch-hint { text-align: center; padding: 16px 18px; }
.austausch-hint p { margin: 0 0 6px; color: var(--soft); font-size: .96rem; }
.austausch-hint .link { color: var(--gold-2); font-weight: 700; font-size: .92rem; }
.compact { padding: 14px 18px; }
.compact .list-link { padding: 9px 0; font-size: .93rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.memorial { text-align: center; border-color: rgba(216, 189, 138, .45); background: linear-gradient(180deg, rgba(216, 189, 138, .12), rgba(41, 47, 84, .8)); padding: 22px 18px; }
.memorial h2 { font-size: 1.5rem; }
.memorial p { color: var(--soft); }
.flame-wrap { height: 70px; display: flex; justify-content: center; align-items: flex-end; margin-bottom: 8px; }
.candle { width: 22px; height: 34px; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #efe6d4, #fffaf0 45%, #d9cdb6); position: relative; }
.candle::before { content: ""; position: absolute; left: 50%; top: -6px; width: 2px; height: 7px; background: #3b3530; transform: translateX(-50%); }
.flame { position: absolute; left: 50%; bottom: 100%; margin-bottom: 4px; width: 14px; height: 24px; transform: translateX(-50%) scale(0); transform-origin: 50% 90%; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 50% 75%, #fff8e1 0%, #ffd27a 40%, #f2994a 75%, rgba(242, 153, 74, 0) 100%); filter: drop-shadow(0 0 12px rgba(255, 196, 102, .9)); transition: transform .8s cubic-bezier(.2, .9, .3, 1.3); }
.memorial.lit .flame { transform: translateX(-50%) scale(1); animation: flicker 2.4s ease-in-out infinite .8s; }
@keyframes flicker { 0%, 100% { transform: translateX(-50%) scale(1) rotate(-1deg); } 30% { transform: translateX(-50%) scale(1.06, .96) rotate(1.5deg); } 60% { transform: translateX(-50%) scale(.96, 1.04) rotate(-1.5deg); } }
.namebox { margin-top: 26px; padding: 16px 18px; border-radius: 16px; background: rgba(216, 189, 138, .08); border: 1px solid rgba(216, 189, 138, .25); font-size: .95rem; }
.namebox p { margin: 0; color: var(--soft); }
.about-actions { display: grid; gap: 10px; margin: 26px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.sp-star.dim { opacity: .45; }
