/* Zwischentöne – Gestaltung
   Material: Tinte, Papier, Textmarker, Randnotiz.
   Schriften: Bricolage Grotesque (Überschriften, Bedienelemente), Literata (Lesetext, Randnotizen).
   Alle Schriften lokal eingebunden (keine Drittanbieter-Anfragen). */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #1b2142;
  --ink-soft: #2f3765;
  --pencil: #5d6377;
  --rule: #d9dde6;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --marker: #ffe14d;
  --marker-soft: #fff4ad;
  --note: #3d43c4;
  --note-wash: #e9ebfb;
  --ok: #1f7a4d;
  --danger: #b42318;
  --danger-wash: #fdeceb;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
svg.chart { display: block; max-width: 100%; height: auto; }
a { color: var(--note); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--note); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }
.lead { font-size: 1.28rem; line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--pencil); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Kopf & Fuß ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 88%, white); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.wordmark svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--display); font-size: .97rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--note); }
.site-header .btn { margin-left: 4px; }
@media (max-width: 860px) { .nav { display: none; } .site-header .btn { margin-left: auto; } }
@media (max-width: 380px) { .site-header .wrap { gap: 10px; } .wordmark { font-size: 1.08rem; } .site-header .btn.small { padding: 9px 10px; font-size: .84rem; white-space: nowrap; } }

.site-footer { margin-top: 96px; border-top: 1px solid var(--rule); padding: 40px 0 56px; font-family: var(--display); font-size: .95rem; color: var(--pencil); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: baseline; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--note); }

/* ---------- Schaltflächen & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1; padding: 14px 20px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.btn:hover { background: var(--ink-soft); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--surface); }
.btn.small { padding: 10px 14px; font-size: .92rem; border-radius: 10px; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--note); text-decoration: underline; cursor: pointer; }

label, legend { font-family: var(--display); font-weight: 600; }
legend { padding: 0; }
input[type="text"], input[type="email"], input[type="search"], textarea, select {
  width: 100%; font: 400 1rem/1.5 var(--display); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--rule); border-radius: 10px; padding: 11px 13px;
}
input:focus, textarea:focus, select:focus { border-color: var(--note); outline: none; box-shadow: 0 0 0 3px var(--note-wash); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-family: var(--display); font-size: .88rem; color: var(--pencil); margin-top: 6px; }
.field { margin: 0 0 22px; }
.field > label { display: block; margin-bottom: 8px; }

/* Annotierter Chat – das Herzstück */
.transcript { position: relative; font-family: var(--display); }
.transcript .day { text-align: center; font-size: .8rem; color: var(--pencil); margin: 2px 0 14px; }
.turn { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 10px; }
.turn.b { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.turn.b .bubble { justify-self: end; background: var(--note-wash); border-bottom-right-radius: 6px; }
.turn.a .bubble { border-bottom-left-radius: 6px; }
.bubble { position: relative; margin: 0; background: var(--surface); border-radius: 18px; padding: 9px 14px 7px; max-width: 42ch; font-size: .97rem; line-height: 1.42; box-shadow: 0 1px 0 rgba(27, 33, 66, .08); }
.bubble .who { display: block; font-size: .76rem; font-weight: 600; color: var(--pencil); margin-bottom: 2px; }
.bubble time { display: block; text-align: right; font-size: .72rem; color: var(--pencil); margin-top: 2px; }
.mark { background-image: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 92%, transparent 92%); background-repeat: no-repeat; background-size: 100% 100%; padding: 0 1px; }
.note { font-family: var(--text); font-style: italic; font-size: .92rem; line-height: 1.38; color: var(--note); border-left: 2px solid var(--note); padding: 2px 0 2px 12px; margin: 6px 0 0; }
.note strong { font-style: normal; font-family: var(--display); font-weight: 600; font-size: .82rem; display: block; color: var(--note); }
.turn .note:empty { display: none; }
@media (max-width: 640px) {
  .turn, .turn.b { grid-template-columns: 1fr; gap: 6px; }
  .turn.b .bubble { order: -1; }
  .turn.b .note { justify-self: end; text-align: right; border-left: 0; border-right: 2px solid var(--note); padding: 2px 12px 2px 0; }
}
.transcript-caption { font-family: var(--display); font-size: .85rem; color: var(--pencil); margin-top: 18px; }

.specimen { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.sheet { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(22px, 4vw, 38px); box-shadow: 0 18px 40px -28px rgba(27, 33, 66, .35); }
.sheet h4 { font-size: 1.05rem; margin: 0 0 4px; }
.sheet .scoreline { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; font-family: var(--display); }
.sheet .scoreline b { font-size: 1.15rem; }
.sheet .scoreline svg { flex: 1; }
.sheet blockquote { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--marker); background: #fffdf0; font-size: .97rem; }
.sheet blockquote cite { display: block; font-style: normal; font-family: var(--display); font-size: .8rem; color: var(--pencil); margin-top: 6px; }
.sheet + .sheet { margin-top: 18px; }
.specimen-list { list-style: none; padding: 0; margin: 0; }
.specimen-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.specimen-list li:first-child { padding-top: 0; }
.specimen-list b { font-family: var(--display); display: block; }
@media (max-width: 880px) { .specimen { grid-template-columns: 1fr; } }

/* Preise als Vergleichstabelle */
.pricing { width: 100%; border-collapse: collapse; font-family: var(--display); background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); }
.pricing th, .pricing td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.pricing thead th { vertical-align: bottom; }
.pricing thead .tier-name { font-size: 1.25rem; font-weight: 700; display: block; }
.pricing thead .price { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; }
.pricing .highlight { background: #f7f8ff; }
.pricing thead th.highlight { box-shadow: inset 0 3px 0 var(--note); }
.pricing tbody th { font-weight: 500; color: var(--ink-soft); width: 34%; }
.pricing td { text-align: center; position: relative; }
.pricing td svg { width: 18px; height: 18px; color: var(--ok); }
.pricing .dash { color: var(--rule); }
.pricing tfoot td { border-bottom: 0; }
.price-note { font-family: var(--display); font-size: .88rem; color: var(--pencil); margin-top: 12px; }
@media (max-width: 760px) {
  .pricing-wrap { overflow-x: auto; position: relative; }
  .pricing { min-width: 640px; }
}

.privacy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; list-style: none; padding: 0; margin: 0; }
.privacy li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--rule); }
.privacy svg { width: 24px; height: 24px; color: var(--note); margin-top: 2px; }
.privacy b { font-family: var(--display); display: block; }
.privacy span { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 760px) { .privacy { grid-template-columns: 1fr; } }

.notice { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--ink); border-radius: 8px; padding: 22px 24px; }
.notice h3 { margin-bottom: 8px; }
.notice.warn { border-left-color: var(--danger); background: var(--danger-wash); }

.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.08rem; padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--pencil); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; max-width: 64ch; color: var(--ink-soft); }

/* ---------- Analyse-Strecke ---------- */
.flow { padding: clamp(32px, 5vw, 64px) 0 0; }
.flow-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: 28px; }
.flow-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0; }
.stepper { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 0; font-family: var(--display); font-size: .92rem; counter-reset: s; }
.stepper li { counter-increment: s; display: flex; align-items: center; gap: 8px; color: var(--pencil); }
.stepper li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--rule); display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--surface); }
.stepper li + li::after { content: none; }
.stepper li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.stepper li[aria-current="step"]::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper li.done::before { background: var(--note-wash); border-color: var(--note-wash); color: var(--note); }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 4vw, 36px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.5rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.dropzone { display: grid; place-items: center; text-align: center; gap: 10px; border: 2px dashed #b9bfd0; border-radius: 14px; padding: clamp(28px, 6vw, 56px) 20px; background: #fafbfd; cursor: pointer; transition: border-color .15s, background .15s; font-family: var(--display); }
.dropzone:hover, .dropzone.over { border-color: var(--note); background: var(--note-wash); }
.dropzone svg { width: 42px; height: 42px; color: var(--note); }
.dropzone strong { font-size: 1.2rem; }
.dropzone .formats { font-size: .9rem; color: var(--pencil); }
.progressbar { height: 8px; border-radius: 99px; background: var(--note-wash); overflow: hidden; margin-top: 14px; }
.progressbar span { display: block; height: 100%; width: 0; background: var(--note); border-radius: 99px; transition: width .3s; }
.error { color: var(--danger); background: var(--danger-wash); border-radius: 10px; padding: 12px 14px; font-family: var(--display); font-size: .95rem; margin-top: 14px; }
.ok-msg { color: var(--ok); font-family: var(--display); }

.platforms details { border-bottom: 1px solid var(--rule); }
.platforms summary { padding: 13px 0; font-family: var(--display); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.platforms summary span { font-weight: 400; color: var(--pencil); font-size: .9rem; }
.platforms ol { margin: 0 0 16px; padding-left: 1.3em; font-size: .98rem; }
.platforms li { margin-bottom: 4px; }

.conv-list { list-style: none; padding: 0; margin: 14px 0 0; max-height: 460px; overflow: auto; border: 1px solid var(--rule); border-radius: 12px; }
.conv-list li + li { border-top: 1px solid var(--rule); }
.conv-list button { width: 100%; text-align: left; background: var(--surface); border: 0; padding: 14px 16px; cursor: pointer; font-family: var(--display); display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; }
.conv-list button:hover, .conv-list button:focus-visible { background: var(--note-wash); }
.conv-list .t { font-weight: 600; }
.conv-list .m { color: var(--pencil); font-size: .88rem; }
.conv-list .n { grid-row: span 2; align-self: center; font-weight: 700; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); margin-bottom: 24px; font-family: var(--display); }
.kpis div { padding: 14px 16px 6px 0; }
.kpis b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.kpis span { font-size: .88rem; color: var(--pencil); }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--display); font-size: .88rem; color: var(--ink-soft); margin: 10px 0 0; }
.lg-item { display: inline-flex; align-items: center; gap: 7px; }
.lg-swatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

.people-table { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: .95rem; margin-top: 18px; }
.people-table th, .people-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.people-table td.num, .people-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.people-table th { font-weight: 500; color: var(--pencil); font-size: .85rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--rule); border-radius: 99px; font-family: var(--display); font-weight: 500; cursor: pointer; background: var(--surface); }
.chip .dot { width: 10px; height: 10px; margin: 0; padding: 0; border: 0; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:checked + span .dot { box-shadow: 0 0 0 2px #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--note); outline-offset: 2px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-grid.tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .choice-grid, .choice-grid.tiers { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: block; height: 100%; padding: 14px 16px; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--surface); cursor: pointer; font-family: var(--display); }
.choice b { display: block; font-size: 1.02rem; }
.choice small { display: block; color: var(--pencil); font-size: .86rem; line-height: 1.35; margin-top: 2px; }
.choice .price { font-size: 1.35rem; font-weight: 800; margin-top: 8px; display: block; letter-spacing: -0.02em; }
.choice .cov { display: block; font-size: .8rem; color: var(--pencil); margin-top: 6px; }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: #fbfcff; }
.choice input:focus-visible + span { outline: 3px solid var(--note); outline-offset: 2px; }

.consents { display: grid; gap: 12px; margin: 8px 0 20px; }
.consents label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-family: var(--display); font-weight: 400; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.consents input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.switch { display: flex; gap: 10px; align-items: center; font-family: var(--display); font-weight: 400; }
.switch input { width: 18px; height: 18px; accent-color: var(--ink); }

.summary { font-family: var(--display); border-top: 1.5px solid var(--ink); margin-top: 6px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 14px 0; }
.summary dt { color: var(--pencil); }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-size: 1.4rem; font-weight: 800; }
.order-btn { width: 100%; padding: 17px 20px; font-size: 1.08rem; }

.warnings { list-style: none; margin: 16px 0 0; padding: 0; font-family: var(--display); font-size: .92rem; }
.warnings li { padding: 8px 12px; background: var(--marker-soft); border-radius: 8px; margin-bottom: 6px; }

/* ---------- Statusseite ---------- */
.status-card { max-width: 720px; }
.status-steps { list-style: none; padding: 0; margin: 22px 0 0; font-family: var(--display); }
.status-steps li { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--pencil); border-top: 1px solid var(--rule); }
.status-steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--rule); flex: none; }
.status-steps li.done { color: var(--ink); }
.status-steps li.done::before { background: var(--ok); border-color: var(--ok); }
.status-steps li.active { color: var(--ink); font-weight: 600; }
.status-steps li.active::before { border-color: var(--note); background: var(--marker); }
.big-progress { height: 12px; border-radius: 99px; background: var(--note-wash); overflow: hidden; margin: 18px 0 8px; }
.big-progress span { display: block; height: 100%; background: var(--note); width: 0; transition: width .6s ease; }

/* ---------- Rechtstexte ---------- */
.legal { padding-top: 48px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5em; }
.legal .placeholder { background: var(--marker-soft); padding: 0 .2em; }
.legal-hint { font-family: var(--display); font-size: .92rem; background: var(--marker-soft); border-radius: 10px; padding: 12px 16px; margin-bottom: 28px; }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: .88rem; background: var(--surface); }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.admin-table th { background: var(--paper); position: sticky; top: 64px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--note-wash); color: var(--note); }
.badge.done { background: #e3f3ea; color: var(--ok); }
.badge.failed, .badge.refunded { background: var(--danger-wash); color: var(--danger); }
.badge.expired, .badge.deleted { background: #eceef2; color: var(--pencil); }

/* ---------- Hintergrundmuster (im Admin wählbar) ---------- */
body[data-pattern]::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: var(--pattern-strength, 1); pointer-events: none; }
body[data-pattern="bubbles"]::before { background-image: url("../img/pattern-bubbles.svg"); background-size: 280px 280px; }
body[data-pattern="chat"] { background-color: #eef1f8; }
body[data-pattern="chat"]::before { background-image: url("../img/pattern-chat.svg"); background-size: 360px 330px; }
body[data-pattern="notebook"], .pattern-swatch[data-pattern="notebook"] { background-color: #fffdf6; }
body[data-pattern="notebook"]::before, .pattern-swatch[data-pattern="notebook"] {
  background-image:
    linear-gradient(90deg, transparent 47px, #f3b6ae 47px, #f3b6ae 49px, transparent 49px),
    linear-gradient(#dbe4f5 1.5px, transparent 1.5px);
  background-size: 100% 100%, 100% 32px;
}
.pattern-swatch[data-pattern="bubbles"] { background: var(--paper) url("../img/pattern-bubbles.svg") 0 0 / 200px 200px; }
.pattern-swatch[data-pattern="chat"] { background: #eef1f8 url("../img/pattern-chat.svg") 0 0 / 240px 220px; }
.pattern-swatch[data-pattern="none"] { background: var(--paper); }
@media (max-width: 640px) { body[data-pattern="notebook"]::before { background-image: linear-gradient(#dbe4f5 1.5px, transparent 1.5px); background-size: 100% 32px; } }
.logo-image { height: 30px; width: auto; display: block; }
.site-banner a { color: inherit; }
.page-body img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---------- Gestaltung: Chat & Notizblock ---------- */
:root { --bubble-shadow: 0 10px 28px -18px rgba(27, 33, 66, .5); --glass: rgba(255, 255, 255, .86); }
.site-header { background: var(--glass); backdrop-filter: saturate(1.4) blur(10px); }
.site-banner { margin: 0; padding: 10px var(--gutter); text-align: center; font-family: var(--display); font-weight: 600; font-size: .95rem; background: var(--marker); color: var(--ink); }
.site-banner.closed { background: var(--ink); color: #fff; }
.btn { border-radius: 16px 16px 16px 5px; box-shadow: 0 8px 18px -12px rgba(27, 33, 66, .7); }
.btn.secondary { background: var(--surface); box-shadow: none; }
.btn.secondary:hover { background: var(--marker-soft); }
.btn.small { border-radius: 13px 13px 13px 4px; }

.flow > .wrap, .legal { position: relative; }
.legal { padding-top: 28px; }
.legal > .wrap { background: var(--glass); backdrop-filter: blur(3px); border-radius: 22px; padding-top: 32px; padding-bottom: 32px; box-shadow: var(--bubble-shadow); }
.two-col > .panel { margin-top: 0; }
.flow-head h1 { line-height: 1.1; }
.site-footer { background: var(--glass); margin-top: 56px; }

/* Chatfenster im Hero */
.transcript { background: #e9edf8; border-radius: 26px; padding: 0 clamp(12px, 2vw, 20px) 18px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(27, 33, 66, .6), 0 0 0 1px rgba(27, 33, 66, .07); }
.chat-head { display: flex; align-items: center; gap: 12px; margin: 0 calc(-1 * clamp(12px, 2vw, 20px)) 14px; padding: 12px 18px; background: var(--ink); color: #fff; }
.chat-head b { display: block; font-size: 1rem; line-height: 1.2; }
.chat-head small { display: block; font-size: .78rem; opacity: .75; }
.avatars { display: flex; }
.avatars i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .85rem; background: var(--marker); color: var(--ink); border: 2px solid var(--ink); }
.avatars i + i { margin-left: -10px; background: #bfc6f7; }
.transcript .day { width: fit-content; margin: 2px auto 14px; padding: 3px 12px; border-radius: 99px; background: rgba(255, 255, 255, .85); }
.bubble { box-shadow: 0 2px 6px -2px rgba(27, 33, 66, .25); }
.turn.b .bubble { background: #dde1fb; }
.note { background: rgba(255, 255, 255, .82); border-radius: 0 10px 10px 0; padding: 6px 10px 6px 12px; }
.transcript-caption { background: rgba(255, 255, 255, .85); border-radius: 10px; padding: 6px 12px; width: fit-content; }

/* Berichtsauszüge als Notizblatt */
.sheet { position: relative; border-radius: 10px; padding-left: clamp(42px, 6vw, 62px); background-color: #fffdf6;
  background-image: linear-gradient(90deg, transparent 29px, #f3b6ae 29px, #f3b6ae 31px, transparent 31px), linear-gradient(#e1e8f6 1px, transparent 1px);
  background-size: 100% 100%, 100% 30px; transform: rotate(-.5deg); }
.sheet + .sheet { transform: rotate(.5deg); }
.sheet::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 18px; width: 12px; background: radial-gradient(circle at 6px 6px, #cdd3e4 5px, transparent 5.5px) 0 0 / 12px 44px repeat-y; }
.sheet blockquote { background: rgba(255, 244, 173, .6); }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet + .sheet { transform: none; } }

.pricing { border-radius: 20px; }
.pricing .highlight { background: #f4f5fe; }
.pricing thead th.highlight { box-shadow: inset 0 4px 0 var(--marker); }
.privacy li { border-top: 0; }
.panel { border-radius: 20px; box-shadow: var(--bubble-shadow); }
.flow-head { background: var(--glass); border-radius: 18px; padding: 16px 20px; }
.dropzone { border-radius: 22px 22px 22px 6px; }
.status-card { background: var(--surface); }

/* ---------- Startseite: Die Seite spricht dich an ---------- */
html { scroll-padding-top: 84px; scroll-padding-bottom: 96px; }
.home main { overflow-x: clip; }
.home .site-footer { margin-top: 0; }

.typing { display: inline-flex; align-items: center; gap: 5px; padding: 13px 16px; border-radius: 18px 18px 18px 5px; background: var(--surface); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--pencil); }

@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } }
@keyframes gone { to { opacity: 0; visibility: hidden; } }
@keyframes fade { from { opacity: 0; } }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes word { from { opacity: 0; transform: translateY(.35em) rotate(1.5deg); } }
@keyframes mark-in { from { background-size: 0% 100%; color: #fff; } 40% { color: #fff; } to { background-size: 100% 100%; color: var(--ink); } }
@keyframes band { to { transform: translateX(-50%); } }

/* Einstieg */
.opener { position: relative; display: flex; align-items: center; min-height: calc(100svh - 65px - 62px); padding: clamp(24px, 5vh, 60px) 0; color: #fff; background: linear-gradient(color-mix(in srgb, var(--ink) 66%, transparent), color-mix(in srgb, var(--ink) 66%, transparent)), var(--ink) url("../img/pattern-bubbles.svg") 0 0 / 280px 280px; background-blend-mode: normal, soft-light; }
.opener > .wrap { width: 100%; position: relative; }
.opener-title { margin: 0 0 clamp(14px, 3vh, 26px); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; line-height: 1.3; letter-spacing: 0; color: rgba(255, 255, 255, .82); }
.opener-title .mark { background: none; color: var(--marker); padding: 0; }
.hooks { display: grid; margin-bottom: clamp(16px, 3vh, 28px); }
.hook { grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.hook.on { visibility: visible; }
.hook-q { margin: 0 0 clamp(14px, 2.4vh, 22px); font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 9.4vw, 5.8rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.hook-q .mark { padding: 0 .1em; margin: 0 -.04em; border-radius: .08em; color: var(--ink); background-image: linear-gradient(var(--marker), var(--marker)); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hook-reply { display: grid; justify-items: start; }
.hook-reply > * { grid-area: 1 / 1; }
.hook-a { max-width: 36ch; margin: 0; padding: 10px 16px; border-radius: 18px 18px 18px 5px; background: var(--surface); color: var(--ink); font-family: var(--display); font-weight: 500; font-size: clamp(1.02rem, 2.2vw, 1.3rem); line-height: 1.3; }
.hook .typing { justify-self: start; align-self: start; }
.opener .lead { max-width: 60ch; margin-bottom: 0; font-size: clamp(1rem, 1.6vw, 1.14rem); color: rgba(255, 255, 255, .86); }
.opener .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(18px, 3vh, 28px) 0 clamp(14px, 2.4vh, 20px); }
.btn.loud { padding: 17px 24px; font-size: 1.12rem; font-weight: 700; background: var(--marker); border-color: var(--marker); color: var(--ink); }
.btn.loud:hover { background: #fff; border-color: #fff; }
.btn.ghost { padding: 17px 20px; background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.assurances { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font-family: var(--display); font-size: .93rem; color: rgba(255, 255, 255, .78); }
.assurances li { display: flex; gap: 8px; align-items: baseline; }
.assurances svg { width: 15px; height: 15px; flex: none; transform: translateY(2px); color: var(--marker); }
.motion-toggle { position: absolute; top: 4px; right: var(--gutter); padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .62); font-family: var(--display); font-size: .8rem; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) { .motion-toggle { position: static; display: block; margin-top: 12px; } }

/* Laufband mit Sätzen, die jeder kennt */
.band { overflow: hidden; padding: 12px 0; background: var(--marker); }
.band-track { display: flex; width: max-content; }
.band-set { display: flex; gap: 12px; padding-right: 12px; }
.band b { padding: 7px 14px; border-radius: 15px 15px 15px 4px; background: var(--surface); color: var(--ink); font-family: var(--display); font-size: .98rem; font-weight: 600; white-space: nowrap; }
.band b:nth-child(even) { border-radius: 15px 15px 4px 15px; background: var(--ink); color: #fff; }
.band:hover .band-track, .still .band-track { animation-play-state: paused; }

/* Abschnitte */
.scene { position: relative; padding: clamp(56px, 9vw, 120px) 0; }
.scene h2, .closing h2 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.scene h2 .mark { padding: 0 .08em; }
.scene .lead { font-size: clamp(1.08rem, 1.7vw, 1.24rem); }
.scene-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.scene-head .lead { margin-bottom: 0; }
.scene-action { margin: 28px 0 0; }

/* Mitlesen */
.reading-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.reading-head { position: sticky; top: 104px; }
.reading-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.punch { margin-top: clamp(48px, 8vw, 104px); text-align: center; }
.punch-line { margin: 0 0 18px; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1.04; letter-spacing: -.035em; }
.punch-line .mark { padding: 0 .1em; }
.punch .lead { max-width: 52ch; margin: 0 auto 26px; }
@media (max-width: 960px) {
  .reading-grid { grid-template-columns: 1fr; }
  .reading-head { position: static; }
}

/* Bericht */
.report { background: var(--surface); }
.specimen { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .specimen { grid-template-columns: 1fr; } .specimen > :first-child { order: 1; } }

/* Fragen je Analyseart */
.questions { background: var(--ink); color: #fff; }
.questions .lead { color: rgba(255, 255, 255, .82); }
.questions .mark { color: var(--ink); }
.question-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .22); }
.question-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 28px; padding: clamp(14px, 2.2vw, 22px) 0; border-bottom: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; transition: color .15s, padding-left .2s; }
.question-list .q { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3.3vw, 2.3rem); line-height: 1.14; letter-spacing: -.02em; }
.question-list .c { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .72); font-family: var(--display); font-size: .95rem; white-space: nowrap; }
.question-list svg { width: 18px; height: 18px; transition: transform .2s; }
.question-list a:hover, .question-list a:focus-visible { color: var(--marker); padding-left: 10px; }
.question-list a:hover .c, .question-list a:focus-visible .c { color: var(--marker); }
.question-list a:hover svg, .question-list a:focus-visible svg { transform: translateX(4px); }
.question-list a:focus-visible { outline-color: var(--marker); }
@media (max-width: 640px) { .question-list a { grid-template-columns: 1fr; } }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 20px 20px 10px; border-radius: 22px 22px 22px 6px; background: var(--surface); box-shadow: var(--bubble-shadow); }
.steps li:nth-child(even) { border-radius: 22px 22px 6px 22px; background: var(--marker-soft); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.steps h3 { margin-bottom: 6px; font-size: 1.14rem; }
.steps p { font-size: .98rem; color: var(--ink-soft); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Preise */
.tier-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; padding: 0; list-style: none; }
.tier-card { position: relative; display: flex; flex-direction: column; padding: clamp(20px, 2.6vw, 30px); border-radius: 24px 24px 24px 8px; background: var(--surface); box-shadow: var(--bubble-shadow), 0 0 0 1px var(--rule); font-family: var(--display); }
.tier-card h3 { margin: 0; font-size: 1.4rem; }
.tier-tag { margin: 2px 0 14px; color: var(--pencil); font-size: .95rem; line-height: 1.3; }
.tier-price { margin: 0 0 18px; font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.tier-card ul { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .97rem; line-height: 1.35; }
.tier-card li { display: flex; gap: 8px; align-items: baseline; }
.tier-card li svg { width: 15px; height: 15px; flex: none; transform: translateY(2px); color: var(--ok); }
.tier-card .btn { margin-top: auto; }
.tier-card.top { background: var(--ink); box-shadow: var(--bubble-shadow); color: #fff; }
.tier-card.top .tier-tag { color: rgba(255, 255, 255, .75); }
.tier-card.top li svg { color: var(--marker); }
.tier-card.top .btn { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.tier-card.top .btn:hover { background: #fff; border-color: #fff; }
.tier-flag { position: absolute; top: -12px; left: 20px; padding: 3px 12px; border-radius: 99px; background: var(--marker); color: var(--ink); font-size: .82rem; font-weight: 700; }
.compare { font-family: var(--display); }
.compare summary { width: fit-content; padding: 8px 0; font-weight: 600; cursor: pointer; }
@media (max-width: 860px) { .tier-cards { grid-template-columns: 1fr; gap: 22px; } }

/* Datenschutz, Hinweis, FAQ */
.safe { background: var(--surface); }
.privacy li { border-top: 0; }
.calm { padding-bottom: 0; }
.faq > .wrap { padding-top: clamp(24px, 4vw, 44px); padding-bottom: clamp(24px, 4vw, 44px); border-radius: 26px; background: var(--glass); backdrop-filter: blur(3px); box-shadow: var(--bubble-shadow); }

/* Abschluss */
.closing { padding: clamp(72px, 12vw, 160px) 0; background: var(--marker); color: var(--ink); }
.closing h2 { max-width: 20ch; font-size: clamp(2.3rem, 6.4vw, 5rem); margin-bottom: 20px; }
.closing .mark { background: none; padding: 0; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.closing .lead { max-width: 46ch; color: var(--ink); }
.closing .btn { padding: 17px 24px; font-size: 1.12rem; font-weight: 700; }

/* Begleit-Nachricht */
.nudge { position: fixed; z-index: 30; right: max(16px, calc((100vw - var(--wrap)) / 2)); bottom: 18px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: min(440px, calc(100vw - 32px)); padding: 10px 12px; border-radius: 20px 20px 20px 6px; background: var(--surface); box-shadow: 0 18px 40px -16px rgba(27, 33, 66, .6), 0 0 0 1px rgba(27, 33, 66, .1); font-family: var(--display); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .25s, transform .25s, visibility .25s; }
.nudge.on { opacity: 1; visibility: visible; transform: none; }
.nudge-avatar { display: block; width: 34px; height: 34px; }
.nudge-avatar svg { display: block; width: 100%; height: 100%; }
.nudge-body { min-width: 0; }
.nudge p { margin: 0; font-size: .96rem; font-weight: 500; line-height: 1.28; }
.nudge .typing { display: none; padding: 8px 0; background: none; }
.nudge.writing .typing { display: inline-flex; }
.nudge.writing p { display: none; }
.nudge .btn { white-space: nowrap; }
.nudge-close { position: absolute; top: -10px; right: -8px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; }
.nudge-close svg { width: 12px; height: 12px; }
@media (max-width: 560px) {
  .nudge { right: 12px; bottom: 12px; width: calc(100vw - 24px); grid-template-columns: minmax(0, 1fr) auto; }
  .nudge-avatar { display: none; }
}

/* Auf unruhigen Mustern bekommt Text eine Papierfläche */
body:is([data-pattern="bubbles"], [data-pattern="chat"]) :is(.reading-head, .path .scene-head, .prices .scene-head, .punch) { padding: 18px 22px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(3px); box-shadow: var(--bubble-shadow); }

/* Bewegung: nur für alle, die sie nicht abgeschaltet haben */
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: dot 1s infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  .hook.on .w { display: inline-block; animation: word .4s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i) * 65ms); }
  .hook-q .mark { background-repeat: no-repeat; }
  .hook.on .hook-q .mark { animation: mark-in .5s ease-out .45s both; }
  .hook.on .typing { animation: pop .2s ease-out .7s both, gone .01s linear 1.7s forwards; }
  .hook.on .hook-a { animation: pop .3s cubic-bezier(.2, .9, .3, 1.3) 1.7s both; }
  .band-track { animation: band 70s linear infinite; }

  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.2, .8, .3, 1); transition-delay: calc(var(--n, 0) * 70ms); }
  .js .reveal.from-left { transform: translateX(-32px) rotate(-2deg); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .sheet.reveal.in { transform: rotate(-.5deg); }
  .js .sheet.reveal.in + .sheet.reveal.in { transform: rotate(.5deg); }

  .js .turn .bubble { opacity: 0; transform: translateY(14px) scale(.96); transform-origin: left bottom; transition: opacity .35s, transform .35s cubic-bezier(.2, .9, .3, 1.3); }
  .js .turn.b .bubble { transform-origin: right bottom; }
  .js .turn.in .bubble { opacity: 1; transform: none; }
  .js .turn .mark { background-size: 0% 100%; transition: background-size .6s cubic-bezier(.3, .7, .3, 1) .35s; }
  .js .turn.in .mark { background-size: 100% 100%; }
  .js .turn .note { opacity: 0; transform: translateX(-6px); transition: opacity .4s .75s, transform .4s .75s; }
  .js .turn.in .note { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hook .typing { display: none; } }

/* ---------- Bestellweg: Frage für Frage ---------- */
.flow-head h1 .mark { padding: 0 .08em; }
.say { display: block; width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 11px 16px; border-radius: 18px 18px 18px 5px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.say:focus { outline: none; }
.say .muted { color: rgba(255, 255, 255, .72); font-weight: 400; }
.say .mark { color: var(--ink); }
.ask { min-width: 0; margin: 0 0 30px; padding: 0; border: 0; }
.ask:last-of-type { margin-bottom: 0; }
.ask-next { margin-top: 12px; }
.ask.answered .ask-next { display: none; }
.spotlights { display: grid; justify-items: start; gap: 8px; margin: 0 0 24px; }
.spotlights p { margin: 0; padding: 9px 15px; border-radius: 16px 16px 16px 5px; background: var(--note-wash); font-family: var(--display); font-size: 1.05rem; line-height: 1.32; }
.spotlights b { font-weight: 800; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 20px 0; padding: clamp(18px, 3vw, 28px); border-radius: 20px; background: var(--ink); }
.more .say { margin: 0; padding: 0; background: none; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.22; }
.more .btn { margin-left: auto; background: var(--marker); border-color: var(--marker); color: var(--ink); }
.more .btn:hover { background: #fff; border-color: #fff; }
.discard { margin: 16px 0 0; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .ask:not([hidden]) { animation: fade .35s ease-out both; }
  .spotlights p { animation: pop .3s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i) * .7s); }
}

/* ---------- Verwaltung ---------- */
.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 65px); }
.admin-nav { background: var(--ink); color: #fff; padding: 22px 14px; font-family: var(--display); display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { color: #d8dcf2; text-decoration: none; padding: 10px 14px; border-radius: 14px 14px 14px 4px; font-weight: 500; }
.admin-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-nav a[aria-current="page"] { background: var(--marker); color: var(--ink); font-weight: 700; }
.admin-nav .sep { margin-top: auto; font-size: .9rem; }
.admin-main { padding: clamp(18px, 3vw, 36px); min-width: 0; }
.admin-main h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; font-family: var(--display); }
.stat-grid div { background: var(--surface); border-radius: 18px 18px 18px 6px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--rule); }
.stat-grid b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.stat-grid span { font-size: .86rem; color: var(--pencil); }
.check-list { list-style: none; margin: 0; padding: 0; font-family: var(--display); }
.check-list li { display: grid; grid-template-columns: 22px 170px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "!"; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--marker); color: var(--ink); }
.check-list li.ok::before { content: "✓"; background: #e3f3ea; color: var(--ok); }
.check-list span { color: var(--pencil); font-size: .92rem; }
.pattern-choice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pattern-choice label { cursor: pointer; font-weight: 600; font-size: .92rem; }
.pattern-choice input { position: absolute; opacity: 0; }
.pattern-swatch { display: block; height: 110px; border-radius: 14px; box-shadow: 0 0 0 1.5px var(--rule); margin-bottom: 6px; }
.pattern-choice input:checked + .pattern-swatch { box-shadow: 0 0 0 3px var(--ink); }
.pattern-choice input:focus-visible + .pattern-swatch { outline: 3px solid var(--note); outline-offset: 3px; }
.tier-editor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.toast { font-family: var(--display); font-weight: 600; background: #e3f3ea; color: var(--ok); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.admin-main .admin-table th { position: static; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-family: var(--display); font-size: .88rem; }
.admin-filter a { padding: 4px 11px; border-radius: 99px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule); color: var(--ink); text-decoration: none; }
.admin-filter a[aria-current="true"] { background: var(--ink); color: #fff; }
input[type="number"] { width: 100%; font: 400 1rem/1.5 var(--display); border: 1.5px solid var(--rule); border-radius: 10px; padding: 11px 13px; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; overflow-x: auto; padding: 8px; }
  .admin-nav a { white-space: nowrap; }
  .admin-nav .sep { margin: 0; }
  .stat-grid, .pattern-choice { grid-template-columns: 1fr 1fr; }
  .tier-editor { grid-template-columns: 1fr; }
  .check-list li { grid-template-columns: 22px minmax(0, 1fr); }
  .check-list span { grid-column: 2; }
}
