/* Sterntaufe – Gestaltung
   Leitidee: ein gedruckter Sternatlas. Papier, Tinte, ein Messington, feine Linien.
   Mobile first; Breakpoints bei 40rem und 64rem. */

@font-face { font-family: "Spectral"; src: url("../fonts/spectral-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plexsans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plexsans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plexsans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f6f2e9;
  --paper-deep: #ede6d6;
  --card: #fbf9f4;
  --ink: #18202e;
  --ink-soft: #3a4252;
  --muted: #6a6f7b;
  --line: #d9d1bf;
  --line-strong: #b9ae95;
  --night: #0f1724;
  --night-2: #172133;
  --night-line: #2a3549;
  --starlight: #e9e3d3;
  --brass: #9c6f22;
  --brass-ink: #7c5715;
  --brass-pale: #f1e4c6;
  --mark: #b0412e;
  --ok: #2f6b45;
  --ok-pale: #e3efe5;
  --err: #a33a2c;
  --err-pale: #f6e1dc;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
::selection { background: var(--brass-pale); }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
small, .small { font-size: 0.875rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 44rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Etiketten in Kapitälchen-Anmutung, wie Beschriftungen in Sternkarten */
.label, .eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { display: block; margin-bottom: 0.9rem; color: var(--brass-ink); }
.mono, .coord { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.lead { font-size: 1.28rem; line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ---------- Kopf ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

.nav { font-family: var(--sans); font-size: 0.95rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass-ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.45em; }
.nav .btn { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 52rem) {
  .nav-toggle { display: block; position: relative; }
  .nav-toggle summary { list-style: none; cursor: pointer; font-family: var(--sans); font-size: 0.95rem; padding: 0.5rem 0.2rem; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle summary::after { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.5em; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-0.2em) rotate(45deg); }
  .nav-toggle[open] summary::after { transform: translateY(0.1em) rotate(-135deg); }
  .nav-toggle .nav { position: absolute; right: 0; top: 100%; z-index: 5; background: var(--card); border: 1px solid var(--line); min-width: 15rem; padding: 0.6rem 0; box-shadow: 0 10px 30px rgba(15, 23, 36, 0.12); }
  .nav-toggle .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-toggle .nav a { display: block; padding: 0.7rem 1.2rem; }
  .nav-toggle .nav .btn { margin: 0.4rem 1.2rem 0.2rem; text-align: center; }
  .nav-desktop { display: none; }
}

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.2;
  padding: 0.85rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--night-2); color: #fff; }
.btn-brass { background: var(--brass); border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-ink); border-color: var(--brass-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn-small { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.btn-light { background: var(--starlight); border-color: var(--starlight); color: var(--night); }
.btn-light:hover { background: #fff; color: var(--night); }
.btn[disabled], .btn.is-busy { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.link-arrow { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Himmelsfläche (dunkle Sektionen) ---------- */
.sky { background: var(--night); color: var(--starlight); position: relative; overflow: hidden; }
.sky a { color: #e2c68f; }
.sky .label, .sky .muted { color: #9aa3b5; }
.sky .eyebrow { color: #d5b678; }

.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { color: #c9cbd2; max-width: 34rem; }
.hero-chart { position: relative; }
.hero-chart figcaption { font-family: var(--sans); font-size: 0.75rem; color: #8e97aa; margin-top: 0.6rem; letter-spacing: 0.02em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 2rem; font-family: var(--sans); font-size: 0.9rem; color: #aeb5c4; }
.hero-facts strong { color: var(--starlight); font-weight: 500; }
@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-alt { background: var(--paper-deep); }

/* Was Sie bekommen: echte Dokumente statt Symbolbilder */
.deliverables { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.deliverable figure { margin: 0; }
.deliverable .frame { background: var(--card); border: 1px solid var(--line); padding: 0.6rem; aspect-ratio: 1.41; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.deliverable .frame img { width: 100%; height: 100%; object-fit: cover; }
.deliverable h3 { font-size: 1.15rem; margin: 1rem 0 0.3rem; }
.deliverable p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* Ablauf in drei Schritten */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; }
.steps li::before { content: counter(step); font-size: 2.4rem; line-height: 1; color: var(--brass); font-weight: 400; grid-row: span 2; }
.steps h3 { margin: 0.2rem 0 0.3rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Spendenhinweis – ehrlich, ohne Druck */
.donate-note { border-left: 3px solid var(--brass); padding: 0.3rem 0 0.3rem 1.4rem; }
.donate-note h2, .donate-note h3 { margin-bottom: 0.4rem; }

/* ---------- Fragen ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.15rem 2.2rem 1.15rem 0; position: relative; font-size: 1.15rem; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.95rem; font-family: var(--sans); font-weight: 400; font-size: 1.5rem; color: var(--brass); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .answer { padding: 0 0 1.4rem; max-width: 46rem; color: var(--ink-soft); }

/* ---------- Fließtext-Seiten ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.4rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.page-head .lead { max-width: 40rem; }

/* ---------- Formulare ---------- */
.form { font-family: var(--sans); font-size: 1rem; }
.field { margin-bottom: 1.4rem; }
.field > label, .field > .label-text, fieldset > legend {
  display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--ink);
}
.field .hint { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; line-height: 1.45; }
.field .error { display: block; font-size: 0.88rem; color: var(--err); margin-top: 0.35rem; }
input[type=text], input[type=email], input[type=date], input[type=search], input[type=password], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.75rem 0.85rem; min-height: 3rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.5; font-family: var(--serif); font-size: 1.05rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(156, 111, 34, 0.18); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--err); }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.row-2 { display: grid; gap: 0 1.2rem; }
@media (min-width: 40rem) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 0.7rem; align-items: flex-start; line-height: 1.45; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--brass); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.counter { float: right; font-size: 0.8rem; color: var(--muted); font-weight: 400; }

.alert { font-family: var(--sans); font-size: 0.98rem; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; border: 1px solid; }
.alert-error { background: var(--err-pale); border-color: #e2b8ae; color: #6f2419; }
.alert-ok { background: var(--ok-pale); border-color: #b9d6c0; color: #1f4a2f; }
.alert-info { background: var(--card); border-color: var(--line); color: var(--ink-soft); }

/* ---------- Taufablauf ---------- */
.progress { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; gap: 0; font-family: var(--sans); font-size: 0.85rem; border-bottom: 1px solid var(--line); }
.progress li { flex: 1; padding: 0 0 0.8rem; color: var(--muted); position: relative; }
.progress li span { font-family: var(--serif); font-size: 1.1rem; color: var(--line-strong); margin-right: 0.45rem; }
.progress li.is-active { color: var(--ink); }
.progress li.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass); }
.progress li.is-active span, .progress li.is-done span { color: var(--brass); }
.progress li.is-done { color: var(--ink-soft); }

.step-block { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.step-block:first-of-type { border-top: 0; padding-top: 0; }
.step-title { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.4rem; }
.step-title .num { font-size: 2rem; color: var(--brass); line-height: 1; }
.step-title h2 { margin: 0; font-size: 1.6rem; }

/* Auswahlkarten (Kategorie, Layout, Widmung) */
.choices { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box {
  display: block; height: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem 1.05rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice .box strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; margin-bottom: 0.25rem; color: var(--ink); }
.choice .box span { display: block; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.choice:hover .box { border-color: var(--line-strong); }
.choice input:checked + .box { border-color: var(--brass); background: #fff; box-shadow: inset 0 0 0 1px var(--brass); }
.choice input:focus-visible + .box { outline: 2px solid var(--brass); outline-offset: 2px; }

.layout-choices { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.layout-choices .box { padding: 0.5rem 0.5rem 0.7rem; }
.layout-choices img { width: 100%; aspect-ratio: 1.414; object-fit: cover; border: 1px solid var(--line); background: var(--paper-deep); margin-bottom: 0.55rem; }
.layout-choices img.is-portrait { aspect-ratio: 1.414; object-fit: contain; }
.layout-choices strong { font-size: 1rem !important; padding: 0 0.2rem; }
.layout-choices span { padding: 0 0.2rem; }

.filters { margin-top: 1.4rem; padding: 1.2rem 1.2rem 0.2rem; background: var(--paper-deep); border-radius: var(--radius); }
.filters summary { cursor: pointer; font-weight: 500; margin: -0.2rem 0 1rem; }
.filters:not([open]) { padding-bottom: 0.9rem; }
.filters:not([open]) summary { margin-bottom: 0; }

.specials { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.specials .box strong { font-size: 1.05rem; }

/* Sternkarte (Vorschlag / eigener Stern) */
.star-card { display: grid; gap: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.8rem); margin-top: 1.8rem; }
.star-card.is-loading { opacity: 0.55; }
.star-card h3 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 400; margin: 0 0 0.2rem; }
.star-card .catalog { font-family: var(--mono); font-size: 0.9rem; color: var(--muted); }
.star-card .map { border: 1px solid var(--line); background: #fff; }
.star-card .map img { width: 100%; aspect-ratio: 1000 / 697; }
.star-card .note { font-size: 0.95rem; color: var(--ink-soft); margin: 1rem 0 0; }
.badge { display: inline-block; font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 2px; background: var(--brass-pale); color: var(--brass-ink); margin-bottom: 0.8rem; }
@media (min-width: 52rem) { .star-card { grid-template-columns: 1fr 1.15fr; align-items: start; } }

.facts { margin: 1.2rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.2rem; font-family: var(--sans); font-size: 0.93rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

.empty-state { padding: 2rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-family: var(--sans); color: var(--muted); margin-top: 1.8rem; }

/* Dokumente */
.docs { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.doc .thumb { aspect-ratio: 1.414; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.doc .thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc .thumb.is-dark { background: #000; }
.doc .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.doc h3 { margin: 0; font-size: 1.2rem; }
.doc p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.doc .btn-row { margin-top: auto; }
.doc select { min-height: 2.6rem; padding: 0.45rem 0.7rem; font-size: 0.95rem; }

.certificate-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.certificate-head .name { font-size: clamp(2.4rem, 8vw, 4.4rem); font-weight: 400; line-height: 1.05; margin: 0.4rem 0 1rem; letter-spacing: -0.02em; }
.certificate-head .meta { font-family: var(--sans); font-size: 0.95rem; color: #aeb5c4; }
.certificate-head .meta strong { color: var(--starlight); font-weight: 500; }

/* Codeeingabe */
.code-box { max-width: 30rem; }
.code-box input { font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.06em; }
.inline-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.inline-form input { flex: 1 1 14rem; }

/* Spenden */
.amounts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.bank { font-family: var(--sans); font-size: 0.98rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; margin: 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-family: var(--mono); }
.qr { width: 11rem; background: #fff; padding: 0.6rem; border: 1px solid var(--line); }

/* ---------- Fuß ---------- */
.site-foot { background: var(--night); color: #aeb5c4; font-family: var(--sans); font-size: 0.9rem; padding: 3rem 0 2.5rem; margin-top: 0; }
.site-foot a { color: #d8dbe2; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 2rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot-grid h2 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #7f889b; font-weight: 500; margin-bottom: 0.9rem; }
.foot-org { font-family: var(--serif); font-size: 1.05rem; color: var(--starlight); line-height: 1.5; }
.foot-base { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--night-line); font-size: 0.8rem; color: #7f889b; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* ---------- Verwaltung ---------- */
.admin { font-family: var(--sans); font-size: 0.95rem; }
.admin h1 { font-family: var(--serif); font-size: 2rem; }
.admin-bar { background: var(--night); color: var(--starlight); font-family: var(--sans); font-size: 0.9rem; }
.admin-bar .wrap { display: flex; gap: 1.5rem; align-items: center; min-height: 3.2rem; flex-wrap: wrap; }
.admin-bar a { color: var(--starlight); text-decoration: none; }
.admin-bar a:hover { text-decoration: underline; }
.admin-bar .spacer { flex: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-weight: 500; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--paper-deep); }
table.data tr:last-child td { border-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.stat { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.1rem; border-radius: var(--radius); }
.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.pill { display: inline-block; font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 2px; background: var(--paper-deep); }
.pill.ok { background: var(--ok-pale); color: var(--ok); }
.pill.warn { background: var(--brass-pale); color: var(--brass-ink); }
.pill.err { background: var(--err-pale); color: var(--err); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-head, .site-foot, .btn, .nav { display: none !important; }
  body { background: #fff; }
}

/* Hilfsklassen (statt Inline-Styles; die CSP erlaubt keine style-Attribute) */
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-25 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.bg-black { background: #000 !important; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* Vorschau des gewählten Widmungstextes */
.quote-preview { margin: 0.9rem 0 0; padding: 0.9rem 1.1rem; border-left: 2px solid var(--brass); background: var(--card); font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.55; color: var(--ink-soft); }
.quote-preview cite { display: block; margin-top: 0.5rem; font-style: normal; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.quote-preview cite::before { content: "– "; }
.sky .btn-light, .sky .btn-light:hover { color: var(--night); }
.sky .btn { text-decoration: none; }
.layout-choices img { object-fit: contain; background: var(--paper-deep); }
figure { margin: 0; }
/* Codes sind groß-/kleinschreibungssensitiv: nie per CSS umwandeln */
.code-literal { text-transform: none; font-family: var(--mono); letter-spacing: 0.04em; font-size: 0.95rem; }
