/* Between Us – CI „Dark & Seductive“ (Konzept 02). Regeln: design-system/between-us/MASTER.md */

/* Between Us — Dark & Seductive / visual concept tokens */
:root {
  --bu-bg: #0D0910;
  --bu-surface: #171019;
  --bu-surface-raised: #271522;
  --bu-bordeaux: #4A2438;
  --bu-velvet: #82516A;
  --bu-rose: #D6A0A0;
  --bu-champagne: #C8A77B;
  --bu-text: #F6E9E4;
  --bu-text-muted: #B79EA9;
  --bu-stroke: rgba(235,204,202,.16);
  --bu-radius-card: 20px;
  --bu-radius-button: 999px;
  --bu-glow-soft: 0 0 38px rgba(214,160,160,.18);
  --bu-heading-font: 'EB Garamond', Georgia, serif;
  --bu-ui-font: Inter, Arial, sans-serif;
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* Anwendungs-Tokens, abgeleitet aus den CI-Tokens */
:root {
  --bg: var(--bu-bg);
  --bg-2: #120C14;                       /* Eingabefelder, zwischen After Dark und Nocturne */
  --surface: var(--bu-surface);
  --surface-2: var(--bu-surface-raised);
  --surface-3: var(--bu-bordeaux);
  --line: var(--bu-stroke);
  --line-2: rgba(235, 204, 202, .28);
  --text: var(--bu-text);
  --text-2: #DCC9CC;                     /* Fließtext sekundär */
  --muted: var(--bu-text-muted);
  --rose: var(--bu-rose);
  --rose-2: #E4B6B3;                     /* Rose Glow, Hover */
  --champagne: var(--bu-champagne);
  --velvet: var(--bu-velvet);
  --bordeaux: var(--bu-bordeaux);
  --on-light: var(--bu-bg);              /* Schrift auf Rosé/Champagner */
  --yes: #A9BDB0;                        /* gedämpft, nie grell */
  --maybe: var(--bu-champagne);
  --no: #D99A9A;

  --radius-s: 14px;
  --radius: var(--bu-radius-card);
  --radius-l: 26px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  --shadow-l: 0 24px 60px rgba(0, 0, 0, .55);
  --glow: var(--bu-glow-soft);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 180ms;
  --t: 240ms;

  --tabs-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --font: var(--bu-ui-font);
  --serif: var(--bu-heading-font);

  --z-tabs: 20;
  --z-sheet: 40;
  --z-overlay: 50;
  --z-toast: 60;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* Gedimmte Lounge: ruhiges Licht, keine Dauerbewegung */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vmax 55vmax at 85% 8%, rgba(74, 36, 56, .55), transparent 70%),
    radial-gradient(60vmax 50vmax at 0% 100%, rgba(130, 81, 106, .16), transparent 70%);
}

a { color: var(--rose); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .35em; text-wrap: balance; }
h1 { font-size: 2.3rem; letter-spacing: -.005em; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }
h1 em, h2 em, h3 em, .wordmark em { font-style: italic; color: var(--rose); font-weight: 400; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 8px; }

.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 18px; height: 18px; }
.icon.lg { width: 30px; height: 30px; }
.icon.fill { fill: currentColor; stroke: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: calc(var(--safe-t) + 8px); }

/* ---------- Marke ---------- */

.wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.signet { display: block; overflow: visible; }

.eyebrow {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font: 600 .72rem/1.2 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--champagne);
}

/* ---------- Layout ---------- */

.view {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 18px) 16px calc(var(--tabs-h) + var(--safe-b) + 28px);
  min-height: 100dvh;
  outline: none;
}
.view.no-tabs { padding-bottom: 32px; }
.view > * { animation: enter var(--t) var(--ease-out) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-bottom: 22px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; min-height: 44px; }
.head h1 { margin: 0; }
.intro { margin-bottom: 22px; }
.intro h1 { font-size: 2.5rem; margin-bottom: 10px; }
.intro p { color: var(--muted); margin: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-title h2 { margin: 0; font-size: 1.4rem; }
.section-title a { font-size: .88rem; text-decoration: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 4px 12px; border-radius: var(--bu-radius-button);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; color: var(--text-2); white-space: nowrap; text-decoration: none;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}
/* Hero-Karte: seidiges Bordeaux mit Umlaufbahnen */
.panel.feature {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(130, 81, 106, .45), transparent 60%),
    linear-gradient(165deg, var(--bu-bordeaux) 0%, var(--bu-surface-raised) 55%, var(--bu-surface) 100%);
  border-color: rgba(214, 160, 160, .22);
  box-shadow: var(--glow);
}
.panel.feature::after {
  content: ""; position: absolute; right: -90px; top: -70px; width: 260px; height: 260px; pointer-events: none;
  background: url("icons/signet.svg") center / contain no-repeat; opacity: .16;
}
.panel.feature > * { position: relative; z-index: 1; }
.panel.gold { background: linear-gradient(165deg, rgba(200, 167, 123, .13), var(--surface) 65%); border-color: rgba(200, 167, 123, .28); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--bu-radius-button);
  background: var(--rose); color: var(--on-light);
  font: 600 .98rem var(--font);
  cursor: pointer; text-decoration: none; touch-action: manipulation;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
}
.btn:hover { background: var(--rose-2); box-shadow: var(--glow); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.gold { background: var(--champagne); color: var(--on-light); }
.btn.gold:hover { background: #D6B98F; }
.btn.danger { background: transparent; color: var(--no); border-color: rgba(217, 154, 154, .45); }
.btn.danger:hover { background: rgba(217, 154, 154, .08); box-shadow: none; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn .arrow { transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1 1 0; }
.linkbtn { background: none; border: 0; color: var(--text-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 4px; min-height: 44px; }

.iconbtn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none;
  border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--rose);
  cursor: pointer; text-decoration: none; transition: background-color var(--t-fast), transform var(--t-fast);
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn:active { transform: scale(.92); }

/* ---------- Formulare ---------- */

label, .label { display: block; font-size: .9rem; font-weight: 500; color: var(--text-2); margin: 0 0 6px; }
input, textarea, select {
  width: 100%; min-height: 48px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  padding: 12px 14px; font: inherit; font-size: 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input::placeholder, textarea::placeholder { color: #8E7884; }
input:focus, textarea:focus, select:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px rgba(214, 160, 160, .18); }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
label.btn { display: inline-flex; margin: 0; font-size: .98rem; color: var(--text); }
.field { margin-bottom: 16px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.error { color: var(--no); font-size: .9rem; margin: 4px 0 12px; }
.error:empty { display: none; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw button { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }

.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; }
.check-row input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--rose); flex: none; }

.code-display {
  font: 600 2.1rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums;
  letter-spacing: .28em; text-align: center; padding: 18px 10px 18px 20px; margin: 12px 0;
  background: var(--bg-2); border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--champagne);
}
input.code-input { text-transform: uppercase; letter-spacing: .3em; text-align: center; font-size: 1.3rem; font-weight: 600; }

/* Segment-Umschalter */
.seg { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--bu-radius-button); padding: 4px; margin-bottom: 18px; }
.seg a, .seg button {
  flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: none; color: var(--muted); border-radius: var(--bu-radius-button);
  font: 600 .9rem var(--font); cursor: pointer; text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.seg [aria-current="page"], .seg [aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Intensität (Lichtpunkte statt Flammen: Intimität, nicht Explizitheit) ---------- */

.dots { display: inline-flex; gap: 4px; vertical-align: middle; align-items: center; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 6px rgba(214, 160, 160, .5); }
.dots i.off { background: transparent; box-shadow: inset 0 0 0 1px rgba(214, 160, 160, .4); }

.levels { display: grid; gap: 8px; }
.level-opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 60px; padding: 10px 14px; border-radius: var(--radius-s);
  background: var(--bg-2); border: 1px solid var(--line-2);
  cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast);
}
.level-opt { position: relative; }
.level-opt input { position: absolute; inset: 0; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
.level-opt:has(input:checked) { border-color: var(--rose); background: rgba(214, 160, 160, .08); }
.level-opt:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }
.level-opt b { display: block; font-weight: 600; }
.level-opt small { color: var(--muted); font-size: .85rem; }
.level-opt .tag18 { font-size: .72rem; font-weight: 700; color: var(--champagne); border: 1px solid rgba(200, 167, 123, .5); border-radius: 6px; padding: 1px 6px; }

/* ---------- Auth ---------- */

.hero { text-align: center; padding: 28px 0 4px; }
.hero .signet { width: 120px; height: 120px; margin: 0 auto; filter: drop-shadow(0 0 26px rgba(214, 160, 160, .25)); }
.hero .wordmark { display: block; font-size: 3rem; margin-top: 12px; }
.hero .claim { color: var(--muted); margin-top: 6px; }
.promises { display: grid; gap: 12px; margin: 26px 0 24px; padding: 0; list-style: none; }
.promises li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.promises .icon { color: var(--rose); margin-top: 1px; }

/* ---------- Home ---------- */

.question { font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; margin: 4px 0 12px; }
.bubble { padding: 14px 16px; border-radius: 16px; background: rgba(13, 9, 16, .55); margin-bottom: 10px; white-space: pre-wrap; overflow-wrap: break-word; border: 1px solid var(--line); }
.bubble .who { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.bubble.theirs { background: rgba(200, 167, 123, .08); }
.locked { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--line-2); }
.feature textarea { background: rgba(13, 9, 16, .55); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tiles a {
  display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; min-height: 120px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.tiles a:hover { background: var(--surface-2); border-color: var(--line-2); box-shadow: var(--glow); }
.tiles .icon { color: var(--rose); }
.tiles a.gold .icon { color: var(--champagne); }
.tiles b { display: block; font-weight: 600; margin-bottom: 2px; }
.tiles small { color: var(--muted); font-size: .84rem; }
details.history summary { cursor: pointer; color: var(--text-2); min-height: 44px; display: flex; align-items: center; }
.hist { padding: 12px 0; border-top: 1px solid var(--line); }
.hist .q { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 8px; }

/* ---------- Swipe-Deck ---------- */

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  border-radius: var(--bu-radius-button); padding: 0 14px; font: 500 .88rem var(--font); cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.chip .icon { width: 16px; height: 16px; }
.chip[aria-pressed="true"] { background: var(--rose); color: var(--on-light); border-color: var(--rose); }

.progress { height: 3px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 2px 0 16px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--velvet), var(--rose)); border-radius: 99px; transition: width var(--t) var(--ease-out); }

/* Karte füllt den Platz zwischen Kopf und Antwort-Buttons, ohne dass diese unter die Tabs rutschen */
.deck { position: relative; height: clamp(300px, calc(100dvh - 486px), 470px); margin-bottom: 16px; }
.card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 24px; border-radius: var(--radius-l);
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(130, 81, 106, .35), transparent 60%),
    linear-gradient(170deg, var(--bu-surface-raised) 0%, var(--bu-surface) 65%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-l);
  touch-action: none; user-select: none; cursor: grab;
  will-change: transform;
}
.card:active { cursor: grabbing; }
.card.behind { transform: scale(.94) translateY(16px); opacity: .5; pointer-events: none; }
.card.anim { transition: transform 260ms var(--ease-out), opacity 200ms ease-in; }
.card .meta-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .meta-top .eyebrow { margin: 0; }
.card .art { margin: auto 0 16px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(214, 160, 160, .3); color: var(--rose); background: rgba(214, 160, 160, .06); }
.card .art .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.card h2 { font-size: 2.15rem; }
.card p { color: var(--text-2); font-size: 1.03rem; margin: 0; }
.card .mood { margin-top: 16px; align-self: flex-start; }
.stamp {
  position: absolute; top: 26px; padding: 6px 12px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .95rem var(--font); letter-spacing: .14em; text-transform: uppercase;
  border: 1.5px solid; opacity: 0; background: rgba(13, 9, 16, .7);
}
.stamp.yes { left: 22px; color: var(--rose); transform: rotate(-8deg); }
.stamp.no { right: 22px; color: var(--muted); transform: rotate(8deg); }
.stamp.maybe { left: 50%; top: auto; bottom: 26px; transform: translateX(-50%); color: var(--champagne); }

.deck-empty .signet { width: 96px; height: 96px; }
.hint .icon, .under-actions .icon { width: 15px; height: 15px; vertical-align: -2px; }
.deck-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; background: var(--surface); border-radius: var(--radius-l); border: 1px dashed var(--line-2); }

.actions { display: flex; justify-content: center; align-items: flex-start; gap: 14px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--text-2); font: 500 .76rem var(--font); letter-spacing: .02em; cursor: pointer; padding: 0; touch-action: manipulation; }
.act .disc {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2);
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), box-shadow var(--t-fast);
}
.act:hover .disc { background: var(--surface-2); }
.act:active .disc { transform: scale(.9); }
.act:disabled { opacity: .4; cursor: default; }
.act.sm .disc { width: 46px; height: 46px; margin-top: 7px; }
.act.no .disc { color: var(--text-2); }
.act.maybe .disc { color: var(--champagne); }
.act.yes .disc { background: var(--rose); color: var(--on-light); border-color: transparent; }
.act.yes:hover .disc { background: var(--rose-2); box-shadow: var(--glow); }
.act.limit .disc { color: var(--muted); }
.act .icon { width: 25px; height: 25px; }
.act.sm .icon { width: 20px; height: 20px; }
.act[aria-pressed="true"] .disc { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--rose); }
.under-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.under-actions a, .under-actions span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Listen ---------- */

.list { display: grid; gap: 10px; }
.item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
a.item:hover { background: var(--surface-2); }
.item .art { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(214, 160, 160, .28); color: var(--rose); }
.item .art .icon { width: 20px; height: 20px; }
.item .body { min-width: 0; }
.item h3 { font: 500 1.2rem/1.25 var(--serif); margin: 0 0 3px; overflow-wrap: break-word; hyphens: auto; }
.item p { margin: 0; color: var(--text-2); font-size: .92rem; }
.item.done h3 { text-decoration: line-through; color: var(--muted); }
.item .meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 500; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.tag .icon { width: 13px; height: 13px; }
.tag.match { background: rgba(214, 160, 160, .14); color: var(--rose-2); }
.tag.talk { background: rgba(200, 167, 123, .13); color: var(--champagne); }
.tag.date { background: rgba(169, 189, 176, .13); color: var(--yes); }
.toggle {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-2); background: none; color: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background-color var(--t-fast), border-color var(--t-fast);
}
.toggle[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: var(--on-light); }
.answer-select { width: auto; min-height: 40px; padding: 6px 10px; font-size: .88rem; border-radius: 10px; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font: 500 .82rem var(--font); cursor: pointer; }
.switch[aria-pressed="true"] { background: rgba(200, 167, 123, .13); border-color: rgba(200, 167, 123, .45); color: var(--champagne); }

.empty { text-align: center; padding: 32px 20px; }
.empty > .icon { width: 40px; height: 40px; color: var(--muted); margin-bottom: 8px; stroke-width: 1.4; }

/* ---------- Runen ---------- */

.rune-art { color: var(--champagne); width: 190px; height: 190px; margin: 0 auto; display: block; filter: drop-shadow(0 0 18px rgba(200, 167, 123, .25)); }
.rune-art svg { width: 100%; height: 100%; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps .num { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(200, 167, 123, .5); color: var(--champagne); display: grid; place-items: center; font-size: .8rem; font-weight: 600; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: .9rem; }
.book { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.book .cover { width: 56px; height: 74px; border-radius: 4px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, var(--bu-bordeaux), var(--bu-bg) 75%); border: 1px solid rgba(200, 167, 123, .45); box-shadow: var(--shadow), inset 0 0 0 3px var(--bu-bg), inset 0 0 0 3.6px rgba(200, 167, 123, .35); }
.book .cover svg { width: 34px; height: 34px; }
.bar { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--champagne); border-radius: 99px; }

.scanner { position: fixed; inset: 0; z-index: var(--z-sheet); background: var(--bg); display: flex; flex-direction: column; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner .shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 0, transparent 38vmin, rgba(13, 9, 16, .7) calc(38vmin + 60px)); }
/* Rahmen mit Ecken – entspricht dem Bildausschnitt, den der Decoder liest (78 % der kürzeren Seite, mittig) */
.scanner .frame { position: absolute; left: 50%; top: 50%; width: 78vmin; max-width: 440px; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.scanner .frame i { position: absolute; width: 34px; height: 34px; border: 2px solid var(--rose); }
.scanner .frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.scanner .frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.scanner .frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.scanner .frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.scanner .beam { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-2), transparent); box-shadow: 0 0 18px rgba(240, 189, 182, .7);
  animation: beam 2s ease-in-out infinite alternate; }
.scanner.idle .beam { display: none; }
@keyframes beam { from { transform: translateY(-36vmin); opacity: .3; } 50% { opacity: 1; } to { transform: translateY(36vmin); opacity: .3; } }
.scanner .top { position: relative; z-index: 1; padding: calc(var(--safe-t) + 14px) 16px 0; }
.scanner .top .bar-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.scanner .top .iconbtn { background: rgba(13, 9, 16, .55); }
.scanner .top h1 { font-size: 2rem; margin: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.scanner .bottom { position: relative; z-index: 1; margin-top: auto; padding: 18px 16px calc(var(--safe-b) + 18px); background: linear-gradient(transparent, rgba(13, 9, 16, .85) 35%); }
.scanner .status { text-align: center; color: var(--text); min-height: 3em; margin: 0 0 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }

/* ---------- Overlay ---------- */

.overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  display: grid; place-items: center; padding: 20px;
  background: rgba(13, 9, 16, .86); backdrop-filter: blur(12px);
  animation: fade var(--t) ease-out;
}
/* Über dem Scanner deckend, damit Rahmen und Statuszeilen nicht durchscheinen */
.scanner ~ .overlay { background: rgba(13, 9, 16, .97); }
.overlay .box { max-width: 400px; width: 100%; text-align: center; max-height: 100%; overflow-y: auto; padding: 4px; }
.overlay .burst { width: 76px; height: 76px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(214, 160, 160, .35); color: var(--rose); box-shadow: var(--glow); }
.overlay .burst .icon { width: 34px; height: 34px; }
.overlay .burst.gold { border-color: rgba(200, 167, 123, .4); color: var(--champagne); }
.overlay h1 { font-size: 2.4rem; }
.overlay .answer-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.overlay .answer-row .act .disc { width: 54px; height: 54px; }
@keyframes fade { from { opacity: 0; } }

/* Match: zwei Umlaufbahnen finden zueinander, der gemeinsame Lichtpunkt atmet einmal auf */
.match-signet { width: 150px; height: 150px; margin: 0 auto 4px; }
.match-signet .e1 { animation: orbit-l 1.4s var(--ease-out) both; }
.match-signet .e2 { animation: orbit-r 1.4s var(--ease-out) both; }
.match-signet .core { animation: breath 1.8s ease-out .6s both; transform-box: fill-box; transform-origin: center; }
@keyframes orbit-l { from { transform: translateX(-34px); opacity: .3; } }
@keyframes orbit-r { from { transform: translateX(34px); opacity: .3; } }
@keyframes breath { 0% { opacity: 0; transform: scale(.4); } 55% { opacity: 1; transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }

/* Glücksrad */
.wheel-wrap { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 8px auto 20px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--line-2); box-shadow: var(--glow); transition: transform 3.2s cubic-bezier(.12, .7, .1, 1); }
.wheel-pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border: 11px solid transparent; border-top: 18px solid var(--champagne); filter: drop-shadow(0 2px 4px #000); z-index: 1; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); z-index: var(--z-toast);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: var(--bu-text); color: var(--bu-bg);
  padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: .92rem;
  box-shadow: var(--shadow-l); max-width: calc(100% - 32px);
  animation: toast-in var(--t) var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Tabs ---------- */

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabs);
  display: flex; justify-content: center;
  padding-bottom: var(--safe-b);
  background: rgba(13, 9, 16, .92); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabs a {
  position: relative; flex: 1; max-width: 112px; height: var(--tabs-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 500; letter-spacing: .02em;
  transition: color var(--t-fast);
}
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"] .icon { color: var(--rose); filter: drop-shadow(0 0 8px rgba(214, 160, 160, .45)); }

/* =====================================================================
   Splash, Badge, Funken
   ===================================================================== */

.splash {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(60vmax 50vmax at 50% 42%, rgba(74, 36, 56, .55), transparent 70%), var(--bu-bg);
  transition: opacity 420ms ease, visibility 0s linear 420ms;
}
.splash .wordmark { font-size: 2.4rem; }
.splash-signet { width: 132px; height: 132px; overflow: visible; }
.splash-signet .e1 { animation: orbit-l 1.4s var(--ease-out) both; }
.splash-signet .e2 { animation: orbit-r 1.4s var(--ease-out) both; }
.splash-signet .core { animation: breath 1.8s ease-out .5s both; transform-box: fill-box; transform-origin: center; }
body.ready .splash { opacity: 0; visibility: hidden; }

.badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--rose); color: var(--on-light); font: 700 .68rem/18px var(--font); text-align: center; }

.sparks { display: flex; align-items: center; gap: 14px; }
.sparks .rays { display: inline-flex; gap: 3px; color: var(--champagne); }
.sparks .rays .icon { width: 18px; height: 18px; }
.sparks .rays .off { color: rgba(200, 167, 123, .28); }
.sparks b { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; display: block; line-height: 1.1; }
.sparks small { color: var(--muted); font-size: .84rem; }
.spark-badge { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--champagne); border: 1px solid rgba(200, 167, 123, .35); border-radius: 99px; padding: 1px 7px; }
.spark-badge .icon { width: 11px; height: 11px; }

/* =====================================================================
   Chat
   ===================================================================== */

.chat-layout { display: grid; gap: 16px; }
.chat-list { display: grid; gap: 8px; align-content: start; }
.chat-list a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.chat-list a:hover { background: var(--surface-2); }
.chat-list a[aria-current="page"] { border-color: rgba(214, 160, 160, .45); background: var(--surface-2); }
.chat-list .art { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(214, 160, 160, .3); color: var(--rose); }
.chat-list b { display: block; font-weight: 600; }
.chat-list small { color: var(--muted); font-size: .82rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list .group { font: 600 .7rem var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); margin: 12px 4px 2px; }

.chat-pane { display: flex; flex-direction: column; min-height: 0; height: calc(100dvh - var(--safe-t) - var(--tabs-h) - var(--safe-b) - 40px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-head h2 { margin: 0; font-size: 1.45rem; }
.chat-head small { color: var(--muted); display: block; }
.thread { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 16px 44px; overscroll-behavior: contain; }
.thread .day { align-self: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.thread .empty { margin: auto; }
.msg { max-width: min(80%, 520px); align-self: flex-start; padding: 9px 13px 7px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--line);
  overflow-wrap: break-word; position: relative; }
.msg .txt { white-space: pre-wrap; display: block; }
.msg.mine { align-self: flex-end; background: rgba(214, 160, 160, .16); border-color: rgba(214, 160, 160, .3); border-radius: 18px 18px 6px 18px; }
.msg .meta { display: flex; gap: 8px; align-items: center; justify-content: flex-end; font-size: .7rem; color: var(--muted); margin-top: 3px; }
.msg .who { display: flex; gap: 8px; align-items: center; font-size: .78rem; font-weight: 600; color: var(--champagne); margin-bottom: 2px; }
.msg.deleted { font-style: italic; color: var(--muted); }
.msg .card-ref { display: flex; gap: 8px; align-items: center; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: rgba(13, 9, 16, .45); border: 1px solid var(--line); font-family: var(--serif); font-size: 1.05rem; color: var(--text); text-decoration: none; }
.msg .card-ref .icon { color: var(--rose); }
.msg .menu { position: absolute; top: 2px; right: -42px; }
.msg.mine .menu { right: auto; left: -42px; }
.msg .menu button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.msg .menu button:hover { background: var(--surface-2); color: var(--text); }
.composer { padding-top: 10px; border-top: 1px solid var(--line); }
.composer form { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 48px; max-height: 160px; resize: none; border-radius: 24px; padding: 12px 16px; }
.composer .send { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--rose); color: var(--on-light); display: grid; place-items: center; cursor: pointer; }
.composer .send:disabled { opacity: .4; }
.attach { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rules { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; font-size: .92rem; }
.menu-sheet { display: grid; gap: 8px; text-align: left; }

/* =====================================================================
   Responsive: Tablet (ab 768 px) und Desktop (ab 1024 px)
   ===================================================================== */

.tabs .brand, .side-install, .desk-only { display: none; }

.discover-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
.discover-grid > *, .home-grid > *, .chat-layout > *, .us-grid > *, .play-grid > * { min-width: 0; }
.discover-grid .side-col { grid-area: side; }
.discover-grid .deck-col { grid-area: main; }

@media (min-width: 768px) {
  .view { max-width: 820px; padding-left: 32px; padding-right: 32px; padding-top: calc(var(--safe-t) + 32px); }
  h1 { font-size: 2.6rem; }
  .intro h1 { font-size: 3rem; }
  .list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .tabs a { max-width: 140px; font-size: .78rem; }
  .deck { height: clamp(380px, calc(100dvh - 520px), 520px); }
  .actions { gap: 22px; }
  .act .disc { width: 66px; height: 66px; }
  .us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .us-grid > .panel { margin: 0; }
  .us-grid > .wide { grid-column: 1 / -1; }
  .overlay .box { max-width: 460px; }
}

@media (min-width: 1024px) {
  body.with-nav { padding-left: 248px; }
  .tabs {
    top: 0; bottom: 0; right: auto; width: 248px;
    flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: calc(var(--safe-t) + 28px) 16px 24px; border-top: 0; border-right: 1px solid var(--line);
    background: rgba(13, 9, 16, .78);
  }
  .tabs .brand { display: block; height: auto; padding: 4px 14px 30px; }
  .tabs .brand .wordmark { font-size: 1.75rem; }
  .tabs a { flex: none; max-width: none; height: 50px; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 14px; border-radius: 14px; font-size: .95rem; }
  .tabs a:hover { background: var(--surface); color: var(--text); }
  .tabs a[aria-current="page"] { background: var(--surface); }
  .tabs a[aria-current="page"]::before { left: 0; top: 13px; width: 3px; height: 24px; border-radius: 0 3px 3px 0; }
  .tabs .brand[aria-current="page"] { background: none; }
  .tabs .brand::before { display: none; }
  .tabs .badge { position: static; margin-left: auto; }
  .side-install { display: flex; align-items: center; gap: 8px; margin-top: auto; min-height: 44px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line-2); background: none; color: var(--text-2); font: 500 .88rem var(--font); cursor: pointer; }
  .side-install[hidden] { display: none; }
  .side-install:hover { background: var(--surface); color: var(--text); }
  .desk-only { display: block; }

  .view { max-width: 1200px; padding: calc(var(--safe-t) + 40px) 48px 56px; }
  .view.no-tabs { max-width: 560px; }
  .toast { bottom: 28px; left: calc(50% + 124px); }
  .topbar .wordmark { visibility: hidden; } /* steht schon in der Seitenleiste */

  .home-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
  .home-grid .col-side > .section-title:first-child { margin-top: 0; }
  .intro h1 { font-size: 3.4rem; }

  .discover-grid { grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); grid-template-areas: "main side"; gap: 48px; align-items: start; }
  .discover-grid .side-col { position: sticky; top: 40px; }
  .discover-grid .chips { flex-wrap: wrap; overflow: visible; margin: 0 0 16px; padding: 0; }
  .deck { height: min(560px, calc(100dvh - 300px)); }

  .chat-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
  .chat-layout .chat-list { position: sticky; top: 40px; }
  .chat-pane { height: calc(100dvh - var(--safe-t) - 96px); }

  .us-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .play-grid > * { margin: 0; }
}

@media (max-width: 1023px) {
  .chat-layout.in-thread > .chat-list { display: none; }
  .chat-layout:not(.in-thread) > .chat-pane { display: none; }
}

@media (min-width: 1440px) {
  .view { max-width: 1320px; }
  .list { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
}

/* Querformat am Handy: Karte niedriger, damit die Antworten erreichbar bleiben */
@media (max-height: 520px) and (orientation: landscape) {
  .deck { height: 260px; }
}

/* Chat füllt die Höhe: Kopf und Segmente oben, Verlauf scrollt, Eingabe bleibt unten */
.view.chat-view { display: flex; flex-direction: column; height: 100dvh; min-height: 0; padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 12px); }
.view.chat-view > .head, .view.chat-view > .seg { flex: none; }
.chat-view .chat-layout { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.chat-view .chat-pane { height: auto; min-height: 0; }
.chat-view .chat-list { overflow-y: auto; max-height: 100%; }
@media (min-width: 1024px) {
  .view.chat-view { padding-bottom: 28px; }
  .chat-view .chat-layout .chat-list { position: static; }
}

/* =====================================================================
   Feinschliff für Tablet & Desktop (UI-Skill: Breite begrenzen, keine
   gestreckten Steuerelemente, Glas nur für die App-Leisten, Leere füllen)
   ===================================================================== */

/* Kopfzeile: Titel und Bereichsumschalter in einer Zeile */
.head { flex-wrap: wrap; row-gap: 14px; }
.head > .seg { flex: 1 0 100%; margin: 0; }
.intro p, .panel > p, .item p { max-width: 65ch; }

/* Profil unten in der Seitenleiste */
.side-profile { display: none; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font: 500 1.05rem var(--serif); color: var(--on-light); background: linear-gradient(135deg, var(--champagne), var(--rose)); }
.avatar.partner { background: linear-gradient(135deg, var(--velvet), var(--bordeaux)); color: var(--text); margin-left: -12px; box-shadow: 0 0 0 2px var(--bg); }

/* Zuletzt gematcht */
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.recent a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; min-height: 128px; transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast); }
.recent a:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.recent .art { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(214, 160, 160, .3); color: var(--rose); }
.recent b { font: 500 1.15rem/1.2 var(--serif); }
.recent small { color: var(--muted); font-size: .8rem; margin-top: auto; }

/* Karte: Signet als Wasserzeichen statt leerer Fläche */
.card::before {
  content: ""; position: absolute; right: -14%; top: -10%; width: 78%; aspect-ratio: 1; pointer-events: none;
  background: url("icons/signet.svg") center / contain no-repeat; opacity: .09;
}
.card > * { position: relative; }

@media (min-width: 768px) {
  /* Segment-Umschalter nicht über die ganze Breite ziehen */
  .seg { display: inline-flex; width: auto; max-width: 100%; }
  .seg a, .seg button { flex: 0 0 auto; padding: 0 20px; }
  .head > .seg { flex: 0 0 auto; margin-left: auto; }
  .view > .seg { margin-bottom: 22px; }
}

@media (min-width: 1024px) {
  /* Glas-Seitenleiste mit Profil */
  .tabs { background: rgba(23, 16, 25, .62); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); }
  .side-profile { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 14px; border-radius: 18px;
    background: rgba(13, 9, 16, .45); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
  .side-profile:hover { border-color: var(--line-2); }
  .side-profile b { display: block; font-weight: 600; font-size: .92rem; }
  .side-profile small { display: block; color: var(--muted); font-size: .78rem; }
  .side-profile + .side-install { margin-top: 10px; }
  .side-install { margin-top: 10px; justify-content: center; }
  .side-profile[hidden] + .side-install { margin-top: auto; }

  /* Kopfzeile: großer Titel links, Umschalter rechts */
  .head { margin-bottom: 26px; flex-wrap: nowrap; }
  .head h1 { font-size: 2.9rem; }
  .topbar { display: none; }

  /* Home */
  .home-grid { gap: 40px; }
  .home-grid .col-main .question { font-size: 2.15rem; max-width: 24ch; }
  .home-grid .panel.feature { padding: 30px; }
  .home-grid .col-side { position: sticky; top: 40px; }
  .intro { margin-bottom: 28px; }

  /* Entdecken */
  .deck { height: min(540px, calc(100dvh - 300px)); }
  .card { padding: 32px; }
  .card h2 { font-size: 2.6rem; }
  .card p { font-size: 1.12rem; max-width: 34ch; }

  /* Chat als eigenes Fenster */
  .chat-view .chat-pane { background: rgba(23, 16, 25, .7); border: 1px solid var(--line); border-radius: 24px; padding: 0; overflow: hidden; }
  .chat-view .chat-pane .chat-head { padding: 18px 24px; background: rgba(13, 9, 16, .35); }
  .chat-view .chat-pane .thread { padding: 18px 64px; }
  .chat-view .chat-pane .composer { padding: 14px 20px 18px; background: rgba(13, 9, 16, .35); }
  .chat-view .chat-pane > .empty { margin: auto; }
  .chat-list a { padding: 10px 12px; border-radius: 14px; background: transparent; border-color: transparent; }
  .chat-list a:hover { background: var(--surface); }
  .chat-list a[aria-current="page"] { background: var(--surface-2); border-color: var(--line); }
  .chat-list .panel { margin-bottom: 6px !important; }
  .msg { max-width: min(68%, 560px); }

  /* Wir: Masonry statt Lücken */
  .us-grid { display: block; columns: 2; column-gap: 20px; }
  .us-grid > * { break-inside: avoid; margin: 0 0 20px !important; display: block; }

  /* Listen etwas luftiger */
  .list { gap: 14px; }
  .item { padding: 18px 20px; }
  a.item, .item { transition: border-color var(--t-fast), background-color var(--t-fast); }
  .item:hover { border-color: var(--line-2); }
}

@media (min-width: 1440px) {
  .home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); }
  .us-grid { columns: 3; }
}

/* Dezente Scrollbalken passend zum dunklen Design */
* { scrollbar-width: thin; scrollbar-color: rgba(235, 204, 202, .18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(235, 204, 202, .16); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(235, 204, 202, .3); }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
a.tag { text-decoration: none; transition: background-color var(--t-fast), color var(--t-fast); }
a.tag:hover { background: var(--surface-3); color: var(--text); }
.card { overflow: hidden; }

/* =====================================================================
   Einführung & Berechtigungen – Vollbild im CI „Dark & Seductive“
   ===================================================================== */

body.ob-open { overflow: hidden; }
.onboard {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  color: var(--text); overflow: hidden;
  background:
    radial-gradient(70vmax 55vmax at 50% 34%, rgba(74, 36, 56, .7), transparent 70%),
    radial-gradient(40vmax 30vmax at 90% 100%, rgba(130, 81, 106, .18), transparent 70%),
    var(--bu-bg);
  animation: fade 420ms ease both;
}
/* feiner Sternenstaub, statisch */
.onboard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(246, 233, 228, .5), transparent),
    radial-gradient(1px 1px at 78% 12%, rgba(246, 233, 228, .4), transparent),
    radial-gradient(1.4px 1.4px at 64% 72%, rgba(200, 167, 123, .5), transparent),
    radial-gradient(1px 1px at 22% 82%, rgba(246, 233, 228, .35), transparent),
    radial-gradient(1.2px 1.2px at 88% 52%, rgba(214, 160, 160, .45), transparent),
    radial-gradient(1px 1px at 40% 8%, rgba(246, 233, 228, .3), transparent),
    radial-gradient(1px 1px at 8% 56%, rgba(200, 167, 123, .4), transparent);
}
.onboard.ob-leave { animation: ob-out 360ms ease forwards; }
@keyframes ob-out { to { opacity: 0; transform: scale(1.02); } }

.ob-top { position: relative; z-index: 2; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  padding: calc(var(--safe-t) + 14px) 16px 0; max-width: 1040px; width: 100%; margin: 0 auto; }
.ob-top .iconbtn { background: transparent; }
.ob-skip { color: var(--muted); font-size: .9rem; text-decoration: none; }
.ob-skip:hover { color: var(--text); }
.ob-progress { display: flex; gap: 6px; justify-content: center; }
.ob-progress i { width: 26px; height: 3px; border-radius: 2px; background: rgba(246, 233, 228, .14); transition: background-color 400ms ease, width 400ms var(--ease-out); }
.ob-progress i.on { background: linear-gradient(90deg, var(--champagne), var(--rose)); width: 34px; }

.ob-stage { position: relative; z-index: 1; flex: 1; min-height: 0; }
.ob-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 24px calc(var(--safe-b) + 24px); text-align: center; gap: 8px;
  transition: transform 460ms cubic-bezier(.22, .9, .25, 1), opacity 360ms ease;
}
.ob-slide.ob-in-right { transform: translateX(14%); opacity: 0; }
.ob-slide.ob-in-left { transform: translateX(-14%); opacity: 0; }
.ob-slide.ob-out-left { transform: translateX(-10%); opacity: 0; pointer-events: none; }
.ob-slide.ob-out-right { transform: translateX(10%); opacity: 0; pointer-events: none; }

.ob-art { width: min(62vw, 260px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 6px; flex: none; }
.ob-art > svg, .ob-art .signet { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 30px rgba(214, 160, 160, .22)); }
.ob-art .ob-signet .e1 { animation: orbit-l 1.6s var(--ease-out) both; }
.ob-art .ob-signet .e2 { animation: orbit-r 1.6s var(--ease-out) both; }
.ob-art .ob-signet .core { animation: breath 2s ease-out .6s both; transform-box: fill-box; transform-origin: center; }
.ob-art .ob-core { animation: breath 1.8s ease-out .5s both; transform-box: fill-box; transform-origin: center; }
.ob-art .ob-c1 { animation: ob-tilt-l 1.2s var(--ease-out) both; transform-box: fill-box; transform-origin: center; }
.ob-art .ob-c2 { animation: ob-tilt-r 1.2s var(--ease-out) both; transform-box: fill-box; transform-origin: center; }
@keyframes ob-tilt-l { from { opacity: 0; translate: -18px 6px; } }
@keyframes ob-tilt-r { from { opacity: 0; translate: 18px 6px; } }
.ob-art .ob-bell { animation: ob-swing 1.8s ease-in-out .3s both; transform-box: view-box; transform-origin: 100px 44px; }
@keyframes ob-swing { 0% { rotate: 0deg; } 20% { rotate: 9deg; } 40% { rotate: -7deg; } 60% { rotate: 4deg; } 80% { rotate: -2deg; } 100% { rotate: 0deg; } }
.ob-art .ob-app { animation: ob-rise .9s var(--ease-out) .3s both; transform-box: fill-box; transform-origin: center; }
@keyframes ob-rise { from { opacity: 0; transform: translateY(8px) scale(.7); } }

.ob-cam { position: relative; width: 100%; height: 100%; }
.ob-cam > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ob-cam .ob-rune, .ob-rune.solo { position: absolute; inset: 27%; filter: drop-shadow(0 0 16px rgba(200, 167, 123, .35)); }
.ob-rune.solo { position: static; width: 82%; height: 82%; margin: auto; }
.ob-rune svg { width: 100%; height: 100%; display: block; }
.ob-cam .ob-beam { animation: ob-beam 2.4s ease-in-out .4s 2 alternate both; filter: drop-shadow(0 0 6px #F0BDB6); }
@keyframes ob-beam { from { transform: translateY(-46px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(46px); opacity: .2; } }
.ob-cam video { position: absolute; inset: 22%; width: 56%; height: 56%; object-fit: cover; border-radius: 50%; opacity: 0; transition: opacity 400ms ease;
  box-shadow: 0 0 0 2px rgba(214, 160, 160, .6), 0 0 40px rgba(214, 160, 160, .3); }
.ob-cam.live video { opacity: 1; }
.ob-cam.live .ob-rune { opacity: 0; transition: opacity 300ms ease; }

.ob-text { display: flex; flex-direction: column; align-items: center; max-width: 420px; width: 100%; }
.ob-text h1 { font-size: clamp(2.1rem, 7vw, 2.9rem); margin: 4px 0 10px; }
.ob-text h1 em { display: inline; }
.ob-text > p { color: var(--text-2); font-size: 1.05rem; margin: 0 0 16px; max-width: 34ch; }
.ob-points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; text-align: left; width: 100%; max-width: 340px; }
.ob-points li { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .94rem; }
.ob-points li span { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(200, 167, 123, .4); color: var(--champagne); }
.ob-status { min-height: 1.6em; margin-bottom: 10px; font-size: .92rem; }
.ob-ok { display: inline-flex; align-items: center; gap: 8px; color: var(--yes); animation: fade 300ms ease; }
.ob-ok .icon { width: 18px; height: 18px; }
.ob-note { color: var(--text-2); }
.ob-actions { width: 100%; max-width: 340px; display: grid; gap: 4px; }
.ob-actions .btn { min-height: 54px; font-size: 1.02rem; box-shadow: var(--glow); }
.ob-actions .linkbtn { color: var(--muted); text-decoration: none; }
.ob-actions .linkbtn:hover { color: var(--text); }

@media (max-height: 700px) {
  .ob-art { width: min(44vw, 170px); }
  .ob-points { gap: 6px; margin-bottom: 10px; }
  .ob-text > p { margin-bottom: 10px; }
}

/* Desktop & Tablet quer: Illustration links, Text rechts */
@media (min-width: 900px) and (min-height: 560px) {
  .ob-slide { flex-direction: row; gap: 72px; text-align: left; padding: 24px 48px 48px; max-width: 1040px; margin: 0 auto; }
  .ob-art { width: 340px; margin: 0; }
  .ob-text { align-items: flex-start; }
  .ob-text h1 { font-size: 3.2rem; }
  .ob-points { max-width: none; }
  .ob-actions { max-width: 320px; justify-items: start; }
  .ob-actions .btn { width: 100%; }
  .ob-progress { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-slide { transition: none; }
}

/* =====================================================================
   Korrekturen aus dem Review (Spezifität, Barrierefreiheit, Performance)
   ===================================================================== */

:root {
  --line-strong: rgba(235, 204, 202, .5);   /* Umrandung von Bedienelementen: ≥ 3:1 (WCAG 1.4.11) */
  --z-onboard: 90;
  --z-splash: 100;
}

/* Stempel bleiben absolut positioniert (wurden von „.card > *“ überschrieben) */
.card > .stamp { position: absolute; }

/* Profil gehört nur in die Desktop-Seitenleiste – nie in die untere Tab-Leiste */
.tabs a.side-profile { display: none; }
@media (min-width: 1024px) {
  .tabs a.side-profile {
    display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px;
    height: auto; max-width: none; margin-top: auto; padding: 14px; border-radius: 18px;
    background: rgba(13, 9, 16, .45); border: 1px solid var(--line); color: var(--text); font-size: .92rem; font-weight: 500;
  }
  .tabs a.side-profile:hover { border-color: var(--line-2); background: rgba(13, 9, 16, .45); }
  .tabs a.side-profile::before { display: none; }
}

/* Aktiver Tab nicht nur über Farbe: Indikatorstrich (oben am Handy, links am Desktop) */
.tabs a[data-tab][aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--rose);
}
.tabs a[data-tab][aria-current="page"] span { font-weight: 700; }
@media (min-width: 1024px) {
  .tabs a[data-tab][aria-current="page"]::before { top: 13px; left: 0; transform: none; width: 3px; height: 24px; border-radius: 0 3px 3px 0; }
}

/* Bedienelemente mit ausreichendem Kontrast der Umrandung */
input, textarea, select, .check-row, .level-opt, .toggle, .switch, .chip { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { border-color: var(--rose); }
.toggle { color: rgba(235, 204, 202, .45); }
.toggle[aria-pressed="true"] { color: var(--on-light); }
.dots i.off { box-shadow: inset 0 0 0 1.5px rgba(214, 160, 160, .7); }
.sparks .rays .off { color: rgba(200, 167, 123, .55); }
.feature textarea::placeholder { color: var(--muted); }

/* Toast: Live-Region bleibt im Dokument, damit Screenreader die Meldung sicher ansagen */
.toast[hidden] { display: flex !important; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); }
.toast { transition: opacity var(--t) ease, transform var(--t) var(--ease-out); }
.toast:not([hidden]) { animation: none; }

/* Endlos-Animation bei „Bewegung reduzieren“ ganz abschalten (sonst flackert der Strahl) */
@media (prefers-reduced-motion: reduce) {
  .scanner .beam { animation: none !important; opacity: .6; transform: none; }
}

/* Sichere Bereiche links/rechts (Querformat mit Notch / Dynamic Island) */
.view { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.tabs { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.ob-top, .scanner .top, .scanner .bottom { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 768px) {
  .view { padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
}
@media (min-width: 1024px) {
  .view { padding-left: 48px; padding-right: 48px; }
}

/* Fokus darf nicht hinter der festen Tab-Leiste verschwinden (WCAG 2.4.11) */
html { scroll-padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); }

/* Touch-Ziele mindestens 44 px (Designregel) */
.chip, .seg a, .seg button, .btn.small, .answer-select, .switch { min-height: 44px; }
.msg .menu button { width: 44px; height: 44px; }
.pill[href] { min-height: 40px; }

/* Chat bei 1024–1279 px nicht zu schmal */
@media (min-width: 1024px) and (max-width: 1279px) {
  .chat-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
  .chat-view .chat-pane .thread { padding: 16px 48px; }
  .msg { max-width: 82%; }
}

/* Unsichtbare Weichzeichner sparen (Seitenleiste liegt über keinem Inhalt, Overlays sind fast deckend) */
@media (min-width: 1024px) { .tabs { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 12, 20, .96); } }
.overlay { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13, 9, 16, .93); }
.tabs { -webkit-backdrop-filter: blur(16px); }

/* z-Index über Tokens; Toast über der Einführung */
.onboard { z-index: var(--z-onboard); }
.splash, .skip { z-index: var(--z-splash); }
.toast { z-index: 95; }
@media (min-width: 1024px) { .toast { max-width: calc(100% - 280px); } }

/* Hintergrund unbedienbar, solange ein Dialog offen ist */
[inert] { user-select: none; }

/* Generated category photography: shared thumbnails and full-bleed discovery cards. */
.art.card-art { overflow: hidden; flex-shrink: 0; background: var(--bu-surface-raised); }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card > .art.card-art {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  border: 0; border-radius: inherit; pointer-events: none;
}
.card > .card-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,9,16,.74) 0%, rgba(13,9,16,.12) 28%, rgba(13,9,16,.83) 58%, #0d0910 100%);
}
.card > .meta-top, .card > h2, .card > p, .card > .mood { position: relative; z-index: 1; }
.card > h2 { margin-top: auto; overflow-wrap: anywhere; }
.card > .stamp { z-index: 2; }
.card > p { color: var(--bu-text); }

/* Team Space: CI-Farben, ruhige Flächen und klare Arbeitsbereiche. */
.staff-header{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:16px 0 26px}.staff-header h1{font-size:clamp(2.4rem,5vw,3.8rem);line-height:1.06;margin:14px 0}.staff-header h1 em{color:var(--rose);font-weight:400}.staff-identity{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:16px;color:var(--champagne);font-size:.8rem}.staff-identity small{display:block;color:var(--muted);margin-top:6px}.staff-nav{display:flex;gap:6px;overflow-x:auto;padding:7px;background:var(--surface);border:1px solid var(--line);border-radius:18px;margin-bottom:26px}.staff-nav a{white-space:nowrap;text-decoration:none;padding:12px 16px;color:var(--muted);font-size:.85rem;border-radius:12px}.staff-nav a[aria-current]{background:var(--bordeaux);color:var(--text)}.staff-nav b{display:inline-block;background:var(--rose);color:var(--bg);border-radius:9px;padding:1px 6px;margin-left:5px}.staff-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.staff-stat{display:flex;flex-direction:column;padding:22px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,var(--surface-2),var(--surface));color:var(--text);text-decoration:none}.staff-stat span{font-size:.76rem;color:var(--muted)}.staff-stat strong{font:3rem var(--serif);margin:12px 0;color:var(--champagne)}.staff-stat small{font-size:.7rem;color:var(--rose)}.staff-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.staff-welcome{background:radial-gradient(ellipse at top right,rgba(130,81,106,.22),transparent 75%),var(--surface)}.staff-welcome h2{font-size:2rem;margin:20px 0}.staff-welcome .btn{margin:12px 0}.staff-rooms>div{padding:14px 0;border-bottom:1px solid var(--line)}.staff-rooms>div:last-child{border:0}.staff-rooms strong{font-size:.88rem}.staff-rooms span{float:right;color:var(--champagne);font-size:.75rem}.staff-rooms p{font-size:.78rem;color:var(--muted);margin:7px 0 0}.staff-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.staff-section-head h2{margin:0}.staff-section-head p{margin-bottom:0}.staff-report h3{margin:16px 0 8px}.staff-quote{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg-2);padding:18px;border-left:2px solid var(--champagne);border-radius:0 12px 12px 0}.staff-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.staff-filters{display:flex;align-items:end;gap:14px;margin:20px 0}.staff-filters label:first-child{flex:1}.staff-filters label{font-size:.8rem}.staff-filters input,.staff-filters select{margin-top:7px}.staff-member{display:flex;gap:16px;align-items:center;margin-bottom:12px;padding:20px}.staff-avatar{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--bordeaux);color:var(--champagne);font:1.5rem var(--serif)}.staff-member-info{flex:1;min-width:0}.staff-member-info h3{margin:0 0 5px}.staff-member-info p{font-size:.78rem;overflow-wrap:anywhere;color:var(--muted);margin:0 0 9px}.staff-member-controls{display:flex;gap:12px;align-items:center}.staff-member-controls select{font-size:.8rem;min-height:40px;padding:8px 12px;margin-top:6px}.staff-pagination{display:flex;gap:16px;align-items:center;justify-content:center;margin:24px 0}.staff-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.staff-library-card{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--surface)}.staff-library-card>.art.card-art{width:100%;height:auto;aspect-ratio:3/2;border-radius:0;margin:0}.staff-library-card>div:last-child{padding:18px}.staff-library-card h3{font-size:1.35rem;margin:10px 0}.staff-library-card p{font-size:.8rem;color:var(--muted);line-height:1.6}.staff-library-card .eyebrow{font-size:.6rem}.staff-timeline{list-style:none;padding:0;margin:0}.staff-timeline li{display:flex;gap:20px;border-bottom:1px solid var(--line);padding:22px 4px}.staff-timeline-dot{width:9px;height:9px;border-radius:50%;background:var(--champagne);box-shadow:0 0 16px #c8a77b33;flex:none;margin-top:5px}.staff-timeline p,.staff-timeline time{font-size:.8rem;color:var(--muted);margin:7px 0}.staff-nav a:focus-visible,.staff-stat:focus-visible{outline:2px solid var(--rose);outline-offset:3px}
@media(max-width:900px){.staff-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-member{flex-wrap:wrap}.staff-member-controls{width:100%;padding-left:60px;flex-wrap:wrap}.staff-columns{grid-template-columns:1fr}.staff-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.staff-header{align-items:start;flex-direction:column;gap:8px}.staff-identity{padding:10px 14px}.staff-identity small{display:inline;margin-left:10px}.staff-nav{margin:0 -4px 22px}.staff-nav a{padding:11px 12px}.staff-stat{padding:18px}.staff-filters{flex-wrap:wrap}.staff-filters label:first-child{flex-basis:100%}.staff-filters label:nth-child(2){flex:1}.staff-member-controls{padding-left:0}.staff-card-grid{grid-template-columns:1fr}.staff-section-head{align-items:start}.staff-header h1{font-size:2.6rem}}

.library-level{display:flex;gap:12px;align-items:center;font-size:.78rem;color:var(--muted);margin-bottom:16px}.library-level select{width:auto;max-width:75%;font-size:.8rem;padding:10px 14px}.ideas-filter{justify-content:space-between;align-items:end;margin:20px 0}.ideas-filter label{flex:1;max-width:480px;font-size:.8rem}.ideas-filter select{margin-top:7px}.idea-card .staff-actions{gap:9px}.idea-card .staff-actions .linkbtn{width:100%;text-align:left}.idea-card p{white-space:pre-line}.explore-nav{overflow-x:auto}
@media(max-width:540px){.ideas-filter{flex-wrap:wrap}.ideas-filter label{flex-basis:100%}.library-level{align-items:start}.library-level select{max-width:70%}}

/* Zusätzliche Filter lassen auf kleinen Bildschirmen Platz für alle Antworten. */
@media(max-width:767px){
 .discover-grid .deck{height:clamp(270px,calc(100dvh - 570px),420px)}
 .discover-grid .card{padding:20px}.discover-grid .card h2{font-size:1.75rem}
 .discover-grid .card p{font-size:.9rem}.discover-grid .card .mood{margin-top:10px}
 .seg[aria-label="Entdecken"] a{font-size:.72rem;gap:4px;padding:10px 8px}
 .seg[aria-label="Entdecken"] .icon{width:14px;height:14px}
}

/* Themenfrage: eigenes Kartenbild – Champagner-Rahmen, leuchtendes Siegel, Freischalt-Zeile */
.card.theme-card {
  align-items: center; text-align: center;
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(200, 167, 123, .17), transparent 70%),
    radial-gradient(120% 70% at 50% 115%, rgba(130, 81, 106, .45), transparent 62%),
    linear-gradient(170deg, #2A1624 0%, var(--bu-surface) 72%);
  border-color: rgba(200, 167, 123, .48);
  box-shadow: var(--shadow-l), 0 0 48px rgba(200, 167, 123, .10);
}
.card.theme-card::before { display: none; }
.deck { container-type: size; }
.card.theme-card::after {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid rgba(200, 167, 123, .26); border-radius: calc(var(--radius-l) - 7px);
}
.theme-card > .meta-top { align-self: stretch; }
.theme-sigil {
  position: relative; width: 84px; height: 84px; margin: auto auto 0; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--champagne); border: 1px solid rgba(200, 167, 123, .55);
  background: radial-gradient(circle, rgba(200, 167, 123, .20), rgba(200, 167, 123, .03) 68%);
  box-shadow: 0 0 0 7px rgba(200, 167, 123, .06), 0 0 0 8px rgba(200, 167, 123, .14), 0 0 44px rgba(200, 167, 123, .28);
  animation: theme-glow 4.8s ease-in-out infinite;
}
.theme-sigil .icon { width: 34px; height: 34px; stroke-width: 1.3; }
@keyframes theme-glow {
  50% { box-shadow: 0 0 0 7px rgba(200, 167, 123, .09), 0 0 0 8px rgba(200, 167, 123, .22), 0 0 64px rgba(200, 167, 123, .42); }
}
.card > .theme-topic {
  margin: 20px 0 0; color: var(--champagne);
  font: 600 .7rem/1.3 var(--font); letter-spacing: .24em; text-transform: uppercase;
}
.theme-card > h2 { margin: 10px 0 0; text-wrap: balance; }
.card > .theme-desc {
  margin: 12px auto 0; max-width: 32ch; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.card > .theme-unlock {
  margin: auto 0 4px; padding: 9px 16px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(200, 167, 123, .42); border-radius: var(--bu-radius-button);
  background: rgba(200, 167, 123, .08); color: var(--champagne); font-size: .86rem; line-height: 1.3;
}
.theme-unlock b { color: var(--bu-text); font-weight: 600; }
.theme-unlock .icon { flex-shrink: 0; }
/* Kompakt, wenn das Deck niedrig ist (kleine Handys): Siegel kleiner, Beschreibung kürzer */
@container (max-height: 440px) {
  .theme-sigil { width: 54px; height: 54px; box-shadow: 0 0 0 5px rgba(200, 167, 123, .06), 0 0 0 6px rgba(200, 167, 123, .14), 0 0 30px rgba(200, 167, 123, .26); }
  .theme-sigil .icon { width: 24px; height: 24px; }
  .card > .theme-topic { margin-top: 12px; }
  .theme-card > h2 { font-size: 1.75rem; margin-top: 6px; }
  .card > .theme-desc { -webkit-line-clamp: 2; font-size: .95rem; margin-top: 8px; }
  .card > .theme-unlock { padding: 7px 13px; font-size: .8rem; }
}
@container (max-height: 340px) {
  .card > .theme-desc { display: none; }
}
@media (min-width: 768px) {
  .theme-sigil { width: 104px; height: 104px; }
  .theme-sigil .icon { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .theme-sigil { animation: none; } }

/* ---------- Privatsphäre: einheitlicher Hinweis mit Schloss ---------- */
.privacy-note {
  display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px 14px;
  border: 1px solid rgba(200, 167, 123, .28); border-radius: var(--radius-s);
  background: rgba(200, 167, 123, .06); color: var(--text-2); font-size: .84rem; line-height: 1.45; text-align: left;
}
.privacy-note .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--champagne); }
.privacy-note b { color: var(--champagne); font-weight: 600; }
.chat-list .privacy-note { margin: 14px 4px 0; }
.promises a { color: var(--rose); }
.seg-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 10px; background: var(--rose); color: var(--on-light); font-size: .7rem; font-weight: 700;
}
.tag.gold { background: rgba(200, 167, 123, .16); color: var(--champagne); }

.privacy-panel { border-color: rgba(200, 167, 123, .3); background: radial-gradient(90% 80% at 100% 0%, rgba(200, 167, 123, .08), transparent 70%), var(--surface); }
.privacy-panel h2 { display: flex; align-items: center; gap: 10px; }
.privacy-panel h2 .icon { color: var(--champagne); }
.privacy-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.privacy-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: .92rem; }
.privacy-list .icon { flex: none; margin-top: 3px; color: var(--champagne); }

.privacy-page { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; padding-bottom: 24px; }
.privacy-page .hero { text-align: center; padding: 12px 0 4px; }
.privacy-page .burst { width: 76px; height: 76px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(200, 167, 123, .45); color: var(--champagne); box-shadow: 0 0 44px rgba(200, 167, 123, .22); }
.privacy-page .burst .icon { width: 32px; height: 32px; }
.privacy-page h1 { font-size: clamp(2rem, 6vw, 3rem); text-wrap: balance; }
.privacy-page h1 em { color: var(--rose); }
.privacy-page .panel { margin: 0; }
.privacy-page > .btn { justify-self: start; }
.privacy-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.privacy-facts li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.privacy-facts li > .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; border: 1px solid rgba(200, 167, 123, .35); color: var(--champagne); }
.privacy-facts b { display: block; font-weight: 600; margin-bottom: 2px; }
.privacy-facts span { color: var(--text-2); font-size: .92rem; line-height: 1.5; }

/* ---------- Fotos im Paar-Chat ---------- */
.composer .tool {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); color: var(--rose); background: var(--bg-2);
}
.composer .tool:hover { background: var(--surface-2); }
.composer .tool:focus-within { outline: 2px solid var(--rose); outline-offset: 2px; }
.msg .photo {
  position: relative; display: block; padding: 0; margin: 2px 0 4px; border: 0; background: none; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; max-width: 260px;
}
.msg .photo img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; background: var(--bg-2); min-height: 120px; }
.msg .photo.once, .msg .photo.gone {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px; cursor: pointer; text-align: left; font: inherit;
  border: 1px dashed rgba(200, 167, 123, .5); background: rgba(200, 167, 123, .07); color: var(--champagne); max-width: none;
}
.msg .photo.once small { display: block; color: var(--muted); font-size: .76rem; }
.msg .photo.once b { color: var(--text); font-weight: 600; }
.msg .photo.gone { cursor: default; font-size: .85rem; font-style: italic; color: var(--muted); border-color: var(--line); background: none; padding: 8px 12px; }
.once-badge {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 5px; align-items: center; padding: 3px 9px;
  border-radius: 99px; background: rgba(13, 9, 16, .78); color: var(--champagne); font-size: .7rem;
}
.photo-preview { display: block; width: 100%; max-height: 46vh; object-fit: contain; border-radius: var(--radius); margin: 14px 0; background: var(--bg-2); }
.once-toggle { margin-bottom: 4px; text-align: left; }
.once-toggle .icon { color: var(--champagne); vertical-align: -2px; }
.photo-overlay { background: rgba(5, 3, 7, .97); }
.photo-overlay .box { max-width: min(1100px, 100%); }
.photo-view { display: grid; gap: 14px; justify-items: center; }
.photo-view img { max-width: 100%; max-height: 78vh; border-radius: var(--radius); cursor: zoom-out; box-shadow: var(--shadow-l); }

/* ---------- Private Nachrichten ---------- */
.dm-request { margin: 10px 0 0; border-color: rgba(200, 167, 123, .35); }
.dm-request p { margin-top: 0; }
.dm-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 10px 0 0; padding: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.private-intro .privacy-note { max-width: 520px; }
#dmReqText { min-height: 96px; resize: vertical; }

/* ---------- Installations-Hinweis als Bottom-Sheet ---------- */
.sheet-overlay { place-items: end center; padding: 0; }
.sheet-overlay .box {
  max-width: 480px; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  background: radial-gradient(90% 60% at 50% 0%, rgba(200, 167, 123, .14), transparent 70%), var(--bu-surface);
  border: 1px solid rgba(200, 167, 123, .3); border-bottom: 0; box-shadow: 0 -24px 60px rgba(0, 0, 0, .5);
  animation: sheet-up 380ms var(--ease-out);
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.install-icon img { display: block; margin: 0 auto 12px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(200, 167, 123, .4), 0 0 40px rgba(200, 167, 123, .25); }
.install-sheet h2 { text-wrap: balance; }
.install-sheet h2 em { color: var(--rose); }
.install-perks { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 10px; text-align: left; }
.install-perks li { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: .92rem; }
.install-perks .icon { color: var(--champagne); flex: none; }
.install-sheet .steps { text-align: left; margin-bottom: 18px; }
.install-sheet .steps b .icon { color: var(--champagne); vertical-align: -2px; }
@media (min-width: 768px) {
  .sheet-overlay { place-items: center; padding: 20px; }
  .sheet-overlay .box { border-radius: 26px; border-bottom: 1px solid rgba(200, 167, 123, .3); }
}
@media (prefers-reduced-motion: reduce) { .sheet-overlay .box { animation: none; } }
/* Liste darf nie breiter als ihre Spalte werden – lange Zeilen kürzen sich mit „…“ */
.chat-list { grid-template-columns: minmax(0, 1fr); }
.chat-list a > span { min-width: 0; }
/* Installations-Banner auf der Startseite */
.install-banner { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px 14px; align-items: center; margin-bottom: 18px; }
.install-banner .art { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(200, 167, 123, .4); color: var(--champagne); }
.install-banner h3 { margin: 0 0 2px; }
.install-banner p { margin: 0; color: var(--text-2); font-size: .88rem; }
.install-banner .btn { grid-column: 1 / -1; justify-self: stretch; }
@media (min-width: 768px) {
  .install-banner { grid-template-columns: 44px minmax(0, 1fr) auto 44px; }
  .install-banner .btn { grid-column: 3; grid-row: 1; }
}
.chat-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Eigene Karten ---------- */
.own-intro h2 em { color: var(--rose); }
.own-intro .privacy-note { max-width: 560px; }
.own-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.own-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.own-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.own-card .eyebrow { margin: 0; }
.own-card h3 { margin: 0; font-size: 1.45rem; }
.own-card p { margin: 0; color: var(--text-2); }
.own-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.own-card .staff-actions { margin-top: auto; padding-top: 6px; }
.own-status.none { background: rgba(214, 160, 160, .12); color: var(--rose-2); }
.own-status.pending { background: rgba(200, 167, 123, .14); color: var(--champagne); }
.own-status.approved { background: rgba(169, 189, 176, .14); color: var(--yes); }
.own-status.rejected { background: rgba(217, 154, 154, .12); color: var(--no); }
.own-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line); font-size: .86rem; }
.own-note .icon { flex: none; margin-top: 2px; color: var(--champagne); }
.form-overlay .box { max-width: 520px; text-align: left; }
.form-overlay .box > .eyebrow, .form-overlay .box > h2 { text-align: center; }
.form-overlay h2 em { color: var(--rose); }
.card-form { display: grid; gap: 4px; margin-top: 12px; }
.card-form textarea { resize: vertical; min-height: 92px; }
.card-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.share-row span { display: grid; gap: 2px; }
.share-row small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.staff-suggestion { display: grid; gap: 12px; }
.staff-suggestion label { display: grid; gap: 6px; font-size: .8rem; }
.staff-suggestion .row { display: flex; justify-content: space-between; align-items: center; }
.staff-suggestion .staff-filters { margin: 0; flex-wrap: wrap; }
/* Segment-Leisten mit vielen Einträgen dürfen auf dem Handy seitlich scrollen statt zu quetschen */
@media (max-width: 767px) {
  .seg { overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg a, .seg button { flex: 0 0 auto; white-space: nowrap; padding: 0 14px; }
}
.form-overlay { background: rgba(13, 9, 16, .985); align-items: start; }
.form-overlay .box { padding-top: 12px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.form-overlay .box { background: var(--bu-bg); border-radius: var(--radius-l); padding-left: 4px; padding-right: 4px; }
