/* Zwilling – in den Farben von creatorwerk: Creme, Espresso, Sand, Kupfer.
   Sand = vom Klon geschrieben, Creme/Weiß = von dir / vom Gegenüber. */
/* Schriften lokal (keine Google-Server, DSGVO-freundlich). Lizenz: SIL OFL, siehe fonts/ */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("/static/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg: #F4EFE6;
  --surface: #FBF8F2;
  --ink: #1C1B19;
  --ink-2: #4A4137;
  --ink-3: #6B5E4F;
  --line: #E0D5C4;
  --lagoon: #8A6038;
  --lagoon-dark: #6E4B2A;
  --twin: #E6DDCE;       /* Klon-Text */
  --twin-line: #CDBEA6;
  --amber: #8F5B12;
  --amber-bg: #F1E3C8;
  --red: #A1382A;
  --red-bg: #F5E1DA;
  --focus: #8A6038;
  --on-accent: #F4EFE6;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-1: 0 1px 2px rgba(28, 27, 25, .05), 0 1px 1px rgba(28, 27, 25, .03);
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1B19; --surface: #24221F; --ink: #F4EFE6; --ink-2: #CFC4B3; --ink-3: #A89A86;
    --line: #3A3631; --lagoon: #C49A6C; --lagoon-dark: #D9B68E; --on-accent: #1C1B19; --twin: #2E2A25; --twin-line: #4C4337;
    --amber: #E2B066; --amber-bg: #3A2E1B; --red: #F08C7C; --red-bg: #3D221D; --focus: #C49A6C;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--body);
}
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--lagoon); }
a:hover { color: var(--lagoon-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
small, .muted { color: var(--ink-3); }
.muted { font-size: .92rem; }
code { font-size: .88em; background: var(--bg); padding: .1em .35em; border-radius: 4px; word-break: break-all; }

/* ---------- App-Rahmen ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
}
.brand { font-family: var(--head); font-weight: 800; font-size: 1.45rem; padding: 0 10px 26px; line-height: 1; text-decoration: none;
  color: var(--ink); position: relative; display: inline-flex; align-items: flex-start; gap: 9px; }
.brand .mark { color: var(--ink); flex: none; margin-top: -3px; }
.ico { flex: none; display: block; }
.brand span { position: relative; display: inline-block; }
.brand span::after { /* das Spiegelbild: gekippt, nach unten ausgeblendet */
  content: attr(data-t); position: absolute; left: 0; top: 92%; transform: scaleY(-1); transform-origin: 50% 50%;
  color: var(--lagoon); opacity: .35; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 35%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 35%, #000 100%);
}
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav a > span:not(.badge) { flex: 1; }
.nav a .ico { color: var(--ink-3); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: var(--bg); color: var(--ink); }
  .nav a:hover .ico { color: var(--ink-2); }
}
.nav a[aria-current="page"] { background: var(--twin); color: var(--ink); }
.nav a[aria-current="page"] .ico { color: var(--lagoon); }
.nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.badge { background: var(--lagoon); color: var(--on-accent); border-radius: 999px; font-size: .75rem; padding: 1px 8px; font-weight: 700; }
.who-box { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.who-box .who { flex: 1; min-width: 0; font-size: .8rem; color: var(--ink-3); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-box .who b { color: var(--ink); font-size: .88rem; }
.icon-btn { padding: 7px !important; }
main { padding: 32px clamp(16px, 4vw, 48px) 64px; max-width: 1080px; width: 100%; min-width: 0; }
/* Grid-Elemente dürfen schrumpfen, sonst drücken lange Zeilen die Seite breit */
.grid-2 > *, .grid-3 > *, .test-layout > *, .hero > *, .mirror > *, .fact > * { min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 0; color: var(--ink-2); }

.mobile-top { display: none; }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(290px, 82vw); transform: translateX(-102%); transition: transform 320ms var(--ease-drawer); z-index: 20; box-shadow: 0 0 40px rgba(0,0,0,.18); }
  .side.open { transform: none; }
  .mobile-top .brand { padding-bottom: 14px; padding-top: 4px; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  main { padding-top: 20px; }
  h1 { font-size: 1.6rem; }
}
.scrim { position: fixed; inset: 0; background: rgba(28, 27, 25, .4); z-index: 15; transition: opacity 240ms ease; }
@starting-style { .scrim { opacity: 0; } }
.mobile-top .brand .mark { margin-top: -2px; }
/* Weniger Bewegung: Positionsanimationen weg, sanfte Überblendungen bleiben */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-property: opacity, background-color, color, border-color !important; }
  .typing-dots i { animation: none !important; }
}

/* ---------- Bausteine ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-1); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px;
  padding: 10px 20px; font: 600 .95rem var(--body); cursor: pointer; text-decoration: none;
  background: var(--lagoon); color: var(--on-accent);
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active:not([disabled]) { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--lagoon-dark); color: var(--on-accent); }
  .btn.ghost:hover { border-color: var(--ink-3); color: var(--ink); background: var(--bg); }
  .btn.danger:hover { background: var(--red-bg); color: var(--red); }
}
.btn.small { padding: 6px 14px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: wait; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
label.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 6px 16px 6px 0; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--lagoon); }
input:focus, select:focus, textarea:focus { border-color: var(--lagoon); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lagoon) 22%, transparent); }
.hint { color: var(--ink-3); font-size: .88rem; margin: 6px 0 0; }

.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 18px; font-weight: 600;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
@starting-style { .flash { opacity: 0; transform: translateY(-6px); } }
.flash.ok .ico { color: var(--lagoon); }
.flash.ok { background: var(--twin); }
.flash.err { background: var(--red-bg); color: var(--red); }
.demo-note { background: var(--amber-bg); color: var(--amber); padding: 10px 16px; border-radius: var(--radius-s); margin-bottom: 18px; font-size: .92rem; }
.demo-note a { color: inherit; font-weight: 700; }

.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.pill.v0 { background: #E4E6DA; color: #4E5A3A; }
.pill.v1 { background: #E9E1D3; color: #5C4A33; }
.pill.v2 { background: var(--twin); color: var(--lagoon-dark); }
.pill.v3 { background: #F0DCD3; color: #8A3D2A; }
.pill.v9 { background: var(--ink); color: var(--surface); }
.pill.pending { background: var(--amber-bg); color: var(--amber); }
.pill.sent { background: var(--twin); color: var(--lagoon-dark); }
.pill.failed, .pill.rejected { background: var(--red-bg); color: var(--red); }
@media (prefers-color-scheme: dark) {
  .pill.v0 { background: #2C3024; color: #C9D1B2; } .pill.v1 { background: #322B22; color: #D8C7AA; }
  .pill.v3 { background: #3F241C; color: #EDB8A6; }
}

/* ---------- Übersicht ---------- */
.mirror { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.ring { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring .track { stroke: var(--bg); }
.ring .ghost { stroke: var(--twin-line); opacity: .55; }
.ring .val { stroke: var(--lagoon); transition: stroke-dashoffset 900ms var(--ease-out); }
@starting-style { .ring .val { stroke-dashoffset: 100; } .ring .ghost { stroke-dashoffset: 100; } }
.ring .ghost { transition: stroke-dashoffset 1100ms var(--ease-out); }
.ring .num { position: relative; text-align: center; font-family: var(--head); font-weight: 800; font-size: 2.9rem; line-height: 1; color: var(--ink); }
.ring .num small { display: block; font-family: var(--body); font-size: .78rem; font-weight: 600; color: var(--ink-3); margin-top: 4px; letter-spacing: 0; }
.cov { display: grid; gap: 7px; }
.cov-row { display: grid; grid-template-columns: 140px 1fr 44px; gap: 10px; align-items: center; font-size: .88rem; }
.cov-bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.cov-bar i { display: block; height: 100%; background: var(--lagoon); border-radius: 99px; transform-origin: left;
  transition: transform 700ms var(--ease-out); }
@starting-style { .cov-bar i { transform: scaleX(0); } }
.cov-row:nth-child(2) i { transition-delay: 40ms; } .cov-row:nth-child(3) i { transition-delay: 80ms; }
.cov-row:nth-child(4) i { transition-delay: 120ms; } .cov-row:nth-child(5) i { transition-delay: 160ms; }
.cov-row:nth-child(6) i { transition-delay: 200ms; } .cov-row:nth-child(7) i { transition-delay: 240ms; }
.cov-row:nth-child(8) i { transition-delay: 280ms; } .cov-row:nth-child(9) i { transition-delay: 320ms; }
.cov-row:nth-child(10) i { transition-delay: 360ms; }
@media (max-width: 600px) { .mirror { grid-template-columns: 1fr; justify-items: center; } .mirror .cov { width: 100%; } .cov-row { grid-template-columns: 110px 1fr 38px; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 11px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list a.item { display: block; text-decoration: none; color: var(--ink); margin: -11px -10px; padding: 11px 10px; border-radius: var(--radius-s); transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .list a.item:hover { background: var(--bg); } }
.list .snippet { color: var(--ink-3); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.check b { width: 1.2em; flex: none; color: var(--lagoon); }
.check.off b { color: var(--ink-3); }
.stat { font-family: var(--head); font-size: 1.9rem; font-weight: 700; }

/* ---------- Interview ---------- */
.ask { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-1); }
.ask .progress { position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--bg); }
.ask .progress i { display: block; height: 100%; background: var(--lagoon); transform-origin: left; transition: transform 600ms var(--ease-out); }
.ask .q, .ask .context { transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), filter 280ms var(--ease-out); }
@starting-style { .ask .q { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.kbd { font-size: .78rem; color: var(--ink-3); }
.kbd kbd { font: 600 .74rem var(--body); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--bg); }
.ask .from { display: flex; gap: 12px; align-items: center; color: var(--ink-3); font-size: .9rem; margin-bottom: 14px; }
.avatar { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--twin); border: 2px solid var(--twin-line); display: grid; place-items: center; font-family: var(--head); font-weight: 800; color: var(--lagoon-dark); flex: none; margin-right: 5px; }
.avatar::after { /* der Zwilling dahinter */
  content: ""; position: absolute; inset: -2px -7px -2px 5px; border-radius: 50%; border: 2px solid var(--twin-line); opacity: .55; z-index: -1; }
.avatar { isolation: isolate; }
.ask .q { font-family: var(--head); font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 650; line-height: 1.2; max-width: 30ch; margin: 0 0 18px; }
.ask textarea { min-height: 130px; font-size: 1.05rem; }
.vis-choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.vis-choice input { position: absolute; opacity: 0; pointer-events: none; }
.vis-choice label { margin: 0; font-weight: 600; font-size: .88rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.vis-choice label:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .vis-choice input:not(:checked) + label:hover { border-color: var(--ink-3); } }
.vis-choice input:checked + label { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.vis-choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.context { background: var(--bg); border-left: 3px solid var(--twin-line); padding: 10px 14px; border-radius: 4px; font-size: .92rem; color: var(--ink-2); margin-bottom: 14px; white-space: pre-wrap; }

/* ---------- Chats ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: min(78%, 560px); padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.them { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.twin { background: var(--twin); border: 1px solid var(--twin-line); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.me { background: var(--ink); color: var(--surface); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.pending { background: var(--amber-bg); border: 1px dashed var(--amber); align-self: flex-end; }
.bubble.rejected, .bubble.failed { opacity: .6; text-decoration: line-through; align-self: flex-end; background: var(--red-bg); }
.bubble.new { transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
@starting-style { .bubble.new { opacity: 0; transform: translateY(8px) scale(0.98); } }
.bubble.them.new { transform-origin: bottom left; }
.bubble.twin.new, .bubble.me.new, .bubble.pending.new { transform-origin: bottom right; }
.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 14px 16px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--lagoon); opacity: .35; animation: dot 1.1s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.bubble .meta { display: block; font-size: .75rem; color: var(--ink-3); margin-top: 6px; white-space: normal; }
.bubble.me .meta { color: var(--ink-3); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }

.test-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
@media (max-width: 960px) { .test-layout { grid-template-columns: 1fr; } }
.chatbox { background: var(--bg); border-radius: var(--radius-m); padding: 16px; min-height: 340px; max-height: 60vh; overflow-y: auto; margin-bottom: 12px; }
.composer { display: flex; gap: 10px; }
.composer textarea { min-height: 48px; height: 48px; }
.why { font-size: .88rem; }
.why dt { color: var(--ink-3); margin-top: 10px; }
.why dd { margin: 2px 0 0; }
.meter { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--lagoon); }

/* ---------- Freigaben ---------- */
.draft { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px 20px; background: var(--surface); margin-bottom: 16px; box-shadow: var(--shadow-1); }
.draft .thread { background: var(--bg); border-radius: var(--radius-m); padding: 14px; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.draft .incoming { align-self: flex-start; max-width: 85%; }
.draft .reply { align-self: flex-end; width: min(85%, 560px); }
.draft textarea { background: var(--twin); border: 1px solid var(--twin-line); border-radius: 16px; border-bottom-right-radius: 4px; min-height: 84px; display: block; }
.draft .reason { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--amber); background: var(--amber-bg); padding: 3px 10px; border-radius: 999px; margin: 0; }
.draft .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.draft .actions .kbd { margin-right: auto; }
.draft .why-row { margin: 0 0 12px; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty-state .mark { color: var(--ink-3); opacity: .5; margin: 0 auto 10px; display: block; }
.empty-state p { margin: 0 auto; }

/* ---------- Wissen ---------- */
.fact { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.fact:first-of-type { border-top: 0; }
.fact .q { font-weight: 600; font-size: .95rem; }
.fact details summary { cursor: pointer; color: var(--lagoon); font-size: .88rem; }
.fact .a { white-space: pre-wrap; color: var(--ink-2); grid-column: 1 / -1; }
.fact form { grid-column: 1 / -1; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
th { font-weight: 600; color: var(--ink-3); border-top: 0; }
.scroll-x { overflow-x: auto; }

/* ---------- Landing ---------- */
.landing { max-width: 1060px; margin: 0 auto; padding: 28px 20px 80px; }
.landing nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(36px, 8vw, 90px); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; max-width: 13ch; }
.hero p { font-size: 1.15rem; color: var(--ink-2); }
.duo { display: grid; gap: 12px; }
.duo .bubble { max-width: 100%; animation: rise 520ms var(--ease-out) both; }
.duo .bubble:nth-child(2) { animation-delay: 380ms; } .duo .bubble:nth-child(3) { animation-delay: 900ms; } .duo .bubble:nth-child(4) { animation-delay: 1280ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 70px; counter-reset: s; }
.steps div { border-top: 3px solid var(--lagoon); padding-top: 14px; }
.hero h1 { text-wrap: balance; }
.steps div::before { counter-increment: s; content: counter(s); font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: var(--lagoon); display: block; }
@media (max-width: 760px) { .hero, .steps { grid-template-columns: 1fr; } }
.auth { max-width: 420px; margin: 8vh auto; padding: 0 16px; }

/* ---------- Widget ---------- */
.widget { display: flex; flex-direction: column; height: 100vh; max-width: 720px; margin: 0 auto; background: var(--surface); }
.widget header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.widget .disclose { background: var(--twin); padding: 8px 18px; font-size: .88rem; }
.widget .chatbox { flex: 1; border-radius: 0; max-height: none; margin: 0; }
.widget form { padding: 12px; border-top: 1px solid var(--line); }
.typing { display: flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--ink-3); padding: 6px 4px 0; margin: 0; }
.typing .typing-dots { padding: 0; }
.typing-dots.bubble { padding: 14px 16px; }
.widget .empty { color: var(--ink-3); text-align: center; max-width: 36ch; margin: 18vh auto 0; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 18px; position: sticky; top: 0; z-index: 5; padding: 8px 0; background: var(--bg); }
.subnav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; background: var(--surface); }
.subnav a:hover { color: var(--ink); border-color: var(--ink-3); }
[id] { scroll-margin-top: 64px; }
@media (max-width: 700px) {
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr { border-top: 1px solid var(--line); padding: 12px 0; }
  table.cards td { border: 0; padding: 4px 0; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-ext { font-weight: 500 !important; font-size: .92rem; }
.navlink { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 999px; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .navlink:hover { background: var(--surface); color: var(--ink); } }
@media (max-width: 560px) { .navlink { display: none; } }
.navlinks { display: flex; gap: 14px; flex-wrap: wrap; }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.todo-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.rate { display: flex; gap: 6px; align-self: flex-end; margin-top: -4px; flex-wrap: wrap; justify-content: flex-end; }
.rate button { font: 600 .78rem var(--body); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 3px 10px; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.rate button:active { transform: scale(.96); }
.rate button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.rate .done { font-size: .78rem; color: var(--lagoon); font-weight: 600; }
.fix { align-self: flex-end; width: min(78%, 560px); display: grid; gap: 6px; }
.fix textarea { min-height: 70px; background: var(--surface); }
.prompts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.prompts button { font: 500 .82rem var(--body); border: 1px dashed var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .prompts button:hover { border-color: var(--ink-3); color: var(--ink); } }

/* ---------- creatorwerk ---------- */
.by-cw { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; letter-spacing: .16em; color: var(--ink-3); text-decoration: none; }
.by-cw .cw-logo { color: var(--lagoon); }
.side .by-cw { padding: 0 12px 18px; margin-top: -12px; }
main { padding-bottom: 80px; }

/* ---------- Pfad unten auf jeder Seite: von überall überallhin ---------- */
.pfad { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); }
.pfad-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 12px; font-size: .9rem; color: var(--ink-3); max-width: none; }
.pfad-crumb a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; color: var(--ink); text-decoration: none; }
.pfad-crumb a .mark { color: var(--ink); }
.pfad-crumb b { color: var(--ink); }
.pfad ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pfad li a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .88rem;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.pfad li a .ico { color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .pfad li a:hover { border-color: var(--lagoon); color: var(--ink); } }
.pfad li a:active { transform: scale(.97); }
.pfad li a[aria-current="page"] { background: var(--twin); border-color: var(--twin-line); color: var(--ink); }
.pfad li a[aria-current="page"] .ico { color: var(--lagoon); }
.pfad li a.pfad-ext { border-style: dashed; font-weight: 500; }
@media (max-width: 520px) { .pfad ul { display: grid; grid-template-columns: 1fr 1fr; } .pfad li a { width: 100%; } }

/* ---------- Postfach ---------- */
.mail-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.mail-stats div, .kpis a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 14px; text-decoration: none; color: var(--ink); }
.mail-stats b, .kpis b { display: block; font: 700 1.5rem/1.1 var(--head); font-variant-numeric: tabular-nums; }
.mail-stats span, .kpis span { font-size: .8rem; color: var(--ink-3); }
@media (max-width: 760px) { .mail-stats { grid-template-columns: repeat(2, 1fr); } }
.mail-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mail-filter input[type=search] { flex: 1 1 240px; width: auto; }
.mail-filter select { width: auto; }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.mail-row { display: grid; grid-template-columns: 12px 180px 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; text-decoration: none; color: var(--ink-2); border-top: 1px solid var(--line); }
.mail-row:first-child { border-top: 0; }
.mail-row .from, .mail-row .subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mail-row .subj b { font-weight: 500; color: var(--ink); }
.mail-row.unread .from, .mail-row.unread .subj b { font-weight: 700; color: var(--ink); }
.mail-row .meta { display: flex; gap: 6px; align-items: center; font-size: .82rem; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .mail-row:hover { background: var(--bg); } }
@media (max-width: 700px) { .mail-row { grid-template-columns: 12px 1fr; } .mail-row .subj, .mail-row .meta { grid-column: 2; } }
.cat-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--line); }
.c-wichtig { background: var(--red); } .c-antworten { background: var(--lagoon); } .c-info { background: var(--ink-3); }
.c-spaeter { background: var(--twin-line); } .c-werbung { background: var(--line); }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.6; max-height: 70vh; overflow-y: auto; }
.ai-box { background: var(--twin); border-color: var(--twin-line); }
.auto-row { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.check form, form.check { margin: 0; }

/* ---------- Cockpit ---------- */
.svc-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.svc { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); font-size: .88rem; }
.svc i { width: 8px; height: 8px; border-radius: 50%; background: #3f8f5a; box-shadow: 0 0 0 3px color-mix(in srgb, #3f8f5a 20%, transparent); }
.svc.down i { background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent); }
.svc span { color: var(--ink-3); font-size: .8rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
@media (hover: hover) and (pointer: fine) { .kpis a:hover { border-color: var(--ink-3); } }
.cockpit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .cockpit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cockpit-grid { grid-template-columns: 1fr; } }
.cockpit-grid > * { min-width: 0; margin-bottom: 0; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; }
.tile-head h2 { font-size: 1.15rem; }
.tile-head a { font-size: .85rem; text-decoration: none; }
.big { font: 700 2.2rem/1 var(--head); font-variant-numeric: tabular-nums; margin: 6px 0 10px; }
.big small { font: 500 .85rem var(--body); color: var(--ink-3); margin-left: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 10px 0 0; }
.facts.four { grid-template-columns: repeat(4, 1fr); }
.facts dt { font-size: .76rem; color: var(--ink-3); }
.facts dd { margin: 0; font: 700 1.15rem var(--head); font-variant-numeric: tabular-nums; }
.facts dd.warn { color: var(--red); }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; gap: 8px; align-items: center; font-size: .82rem; margin: 4px 0; }
.bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar i { display: block; height: 8px; background: var(--lagoon); border-radius: 99px; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.list.compact li { padding: 6px 0; font-size: .88rem; }
.steps-mini { margin: 0; padding-left: 18px; font-size: .85rem; color: var(--ink-2); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.list.compact .muted, .mail-row .meta .muted { white-space: nowrap; }
