/* Spendenflow (design/gesamtkonzept, Abschnitt 2): eine Spalte, Buttons ≥ 48 px, klebender Fuß-CTA.
   Die Farbwelt der Organisation (/marke/{org}/farben.css) überschreibt die Variablen unten. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-display: swap; src: url("/static/fonts/schibsted-grotesk-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-display: swap; src: url("/static/fonts/schibsted-grotesk-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-display: swap; src: url("/static/fonts/schibsted-grotesk-latin-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-500.woff2") format("woff2"); }

/* Stil-Schriften (OFL, Fontsource): nur geladen, wenn „Festlich“ oder „Verspielt“ sie braucht. */
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("/static/fonts/fraunces-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/static/fonts/nunito-latin-800.woff2") format("woff2"); }

:root {
  --ink: #121A2B; --ink-2: #2A3A5C; --ink-panel: #1B2438; --ink-line: #25314A;
  --gold: #E0A33A; --gold-deep: #C4862A; --on-gold: #121A2B;
  --paper: #F7F5F1; --paper-2: #EDE7DF; --line: #D8CFC3; --white: #FFFFFF;
  --muted: #6B7486; --muted-dark: #8E9AB4; --muted-dark-2: #A9B4CC;
  --ok: #3F7D5C; --warn-bg: #F6E7C8; --warn-fg: #6B4E14; --alert-bg: #F7DCDA; --alert-fg: #8C2F28;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  /* Stil (Ebene 1): Standard ist „Seriös“; data-theme auf <html> überschreibt die Werte unten. */
  --font-display: var(--font); --display-weight: 700; --display-track: -0.02em;
  --r: 8px; --r-sm: 6px; --r-lg: 10px; --r-tile: 8px; --r-btn: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
body.dark { background: var(--ink); color: var(--paper); }
h1, p, fieldset, legend, ul { margin: 0; padding: 0; border: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.label--dark { color: var(--muted-dark); }
.hint { font-size: 12px; color: var(--muted); }
.hint--dark { color: var(--muted-dark-2); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.flow { flex: 1; display: flex; flex-direction: column; max-width: 480px; width: 100%; margin: 0 auto; }
.flow__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; background: var(--white); border-bottom: 1px solid var(--paper-2); }
.flow__back { width: 40px; height: 40px; margin-left: -10px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 20px; border-radius: var(--r); }
.flow__title { flex: 1; font-size: 15px; font-weight: 600; }
.flow__amount { font-weight: 700; font-size: 16px; }
.flow__body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 18px 16px 24px; }
.flow__foot { position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--paper-2); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.foot__hint { font-size: 12px; color: var(--muted); text-align: center; }

/* Sprachwahl DE · EN · FR (08.10.2026): klein oben rechts, die gewählte Sprache hervorgehoben */
.langs { display: flex; justify-content: flex-end; gap: 2px; margin: -10px -6px -12px 0; font-size: 12px; letter-spacing: 0.04em; }
.langs a { padding: 6px 8px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-weight: 600; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); background: var(--paper-2); }

.alert { padding: 12px 14px; border-radius: var(--r); background: var(--alert-bg); color: var(--alert-fg); font-size: 14px; }
.org { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.org__tile { width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.org__logo { display: block; height: 36px; width: auto; max-width: 160px; object-fit: contain; }
[hidden] { display: none !important; }
.h { font-family: var(--font-display); font-size: 20px; line-height: 1.2; font-weight: var(--display-weight); letter-spacing: var(--display-track); text-wrap: pretty; }
.h--dark { font-size: 27px; color: var(--paper); }
.p { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.p--dark { color: var(--muted-dark-2); }
body.dark .h, body.dark .h--dark { color: var(--paper); }

.progress { display: flex; flex-direction: column; gap: 8px; }
/* Balken als SVG: Prozentbreite ohne Inline-Style, verträgt sich mit der strengen CSP. */
.progress__bar { display: block; height: 10px; width: 100%; }
.progress__track { fill: var(--paper-2); }
.progress__track--dark { fill: var(--ink-line); }
.progress__fill { fill: var(--gold); }
.progress__nums { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.progress__nums b { font-size: 17px; font-weight: 700; color: var(--ink); }

.amounts, .field { display: flex; flex-direction: column; gap: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: flex; align-items: center; justify-content: center; height: 52px; border: 1.5px solid var(--line); border-radius: var(--r-tile); background: var(--white); font-size: 17px; font-weight: 700; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile:has(input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.custom { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 6px 6px 14px; border: 1.5px dashed var(--line); border-radius: var(--r-tile); background: var(--white); font-size: 15px; cursor: pointer; }
.custom input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.custom > span:nth-child(2) { flex: 1; }
.custom__field { display: flex; align-items: center; gap: 6px; }
.custom__field input { width: 96px; height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: inherit; font-family: var(--mono); font-weight: 700; font-size: 16px; text-align: right; }
.custom:has(input[type="radio"]:checked) { border-style: solid; border-color: var(--ink); }

input[type="text"], input[type="email"], textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); font: inherit; font-size: 16px; color: var(--ink); }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--ink); outline: none; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.row .w-plz { flex: 0 0 104px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 24px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }

.consent { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 26px; }
.switch input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.switch__track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line); transition: background-color 120ms; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform 120ms; }
.switch input:checked + .switch__track { background: var(--ok); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.switch__label { font-size: 15px; font-weight: 600; }
.consent__text { font-size: 12px; line-height: 1.5; color: var(--muted); }
.consent__lead { font-size: 15px; font-weight: 600; }

.feecover { display: flex; flex-direction: column; gap: 6px; }
.zb { background: var(--warn-bg); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.check--zb { font-size: 14px; }
.zb__hint { font-size: 12px; line-height: 1.5; color: var(--warn-fg); }
.zb__fields { display: flex; flex-direction: column; gap: 8px; }
.zb__fields.is-hidden { display: none; }
/* Umschalter „Als Gast | Privat | Firma“ (views/spende.eta) */
.who { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.who__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile--who { height: 46px; font-size: 15px; font-weight: 600; }
/* „Wie oft?“ (Dauerspenden, 04.11.2026): vier Kacheln, zwei je Zeile — „Vierteljährlich“ passt sonst nicht aufs Handy. */
.often .who__options { grid-template-columns: repeat(2, 1fr); }
/* Dauerspende verwalten (views/dauerspende.eta): Stand als Liste, Hinweis nach dem Speichern. */
.facts { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.alert--ok { background: var(--paper-2); color: var(--ok); }
.who__fields { display: flex; flex-direction: column; gap: 14px; }
[data-for].is-hidden { display: none; }

.cta { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: var(--r-btn); background: var(--ink); color: var(--paper); font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cta:hover { background: var(--ink-2); }
.cta--gold { background: var(--gold); color: var(--on-gold); margin-top: 8px; }
.cta--paypal { gap: 8px; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.cta--paypal:hover { background: var(--paper); }
.cta__logo { height: 18px; width: auto; }
.cta--gold:hover { background: var(--gold-deep); }

/* Danke */
.flow--dark { background: var(--ink); }
.flow__body--dark { padding: 30px 20px 32px; gap: 18px; }
.pulse { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0.6; animation: livepulse 2.4s ease-out infinite; }
@keyframes livepulse { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
.stand { background: var(--ink-panel); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.stand__row { display: flex; align-items: baseline; gap: 14px; }
.stand__pct { font-size: 16px; font-weight: 700; color: var(--gold); }
.stand__sum { font-family: var(--font-display); font-size: 30px; font-weight: var(--display-weight); letter-spacing: -0.03em; }
.confirms { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted-dark-2); }
.confirms li { display: flex; align-items: center; gap: 10px; }
.confirms li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
/* Weitersagen nach der Spende (Sammelseiten Stufe 1) */
.share { display: flex; flex-direction: column; gap: 8px; }
.cta--ghost-dark { background: transparent; color: var(--paper); border: 1.5px solid var(--ink-line); }
.cta--ghost-dark:hover { background: var(--ink-panel); }
.link--dark { align-self: center; color: var(--muted-dark-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.collector__text { white-space: pre-line; }

.flow__legal { max-width: 480px; width: 100%; margin: 0 auto; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; line-height: 1.5; color: var(--muted); text-align: center; }
body.dark .flow__legal { color: var(--muted-dark); }
.flow__legal a { color: inherit; }
.flow__legal-nav { font-size: 12px; }

/* Impressum und Datenschutzhinweise der Organisation (/{org}/impressum, /{org}/datenschutz) */
.legal { gap: 22px; }
.legal__section { display: flex; flex-direction: column; gap: 8px; }
.legal h2 { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: var(--display-weight); letter-spacing: var(--display-track); color: var(--ink); }
.legal address { font-style: normal; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.legal ul { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.legal b { font-weight: 600; color: var(--ink); }
.legal a { overflow-wrap: anywhere; }

/* Zahlartwahl (Handoff Abschnitt 2, Screen 3): Zeilen à 56 px mit Logo-Kachel */
.methods { display: flex; flex-direction: column; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.method:hover, .method:focus-visible { border-color: var(--ink); }
.method__tile { flex: none; width: 34px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.method__tile svg { width: 34px; height: 24px; display: block; }
.method__tile--paypal { background: var(--paper-2); }
.method__tile--paypal img { width: 28px; height: auto; }
.method__text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.method__text b { font-size: 15px; font-weight: 600; }
.method__text span { font-size: 12px; color: var(--muted); }
.method__dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); }
.method:hover .method__dot { border-color: var(--ink); }

/* Demomodus: Wasserzeichen quer über die Seite (SPEC 3.1 Schritt 3), gleiche Klasse später auf der Anzeige. */
.watermark { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; display: flex; flex-direction: column; justify-content: space-around; align-items: center; transform: rotate(-24deg) scale(1.4); }
.watermark span { font-family: var(--mono); font-size: 44px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(18, 26, 43, 0.08); white-space: nowrap; }
body.dark .watermark span { color: rgba(247, 245, 241, 0.09); }
.demo-bar { position: sticky; top: 0; z-index: 3; margin: 0; padding: 6px 12px; background: var(--warn-bg); color: var(--warn-fg); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }
/* Sandbox-Verein (26.09.2026): Test-Zahlungswege ohne echtes Geld; dezenter als der Demomodus. */
.sandbox-bar { background: var(--paper-2); color: var(--ink-2); }
.watermark--sandbox span { color: rgba(18, 26, 43, 0.045); }
body.dark .watermark--sandbox span { color: rgba(247, 245, 241, 0.05); }
.demo-box { background: var(--warn-bg); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
/* Probeseite ohne AVV (26.09.2026): nur Betrag. */
.probe-note { padding: 12px 14px; border-radius: var(--r); background: var(--paper-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.demo-box .label { color: var(--warn-fg); }
.demo-box .p { color: var(--warn-fg); }
.summary { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
a.foot__hint { text-decoration: underline; }

/* Stil (Ebene 1, Entscheidung 23.09.2026): Schrift, Formen, Bewegung. Die Farben kommen darüber aus farben.css. */
:root[data-theme="ruhig"] { --r: 14px; --r-sm: 10px; --r-lg: 18px; --r-tile: 14px; --r-btn: 14px; --display-weight: 600; --display-track: -0.01em; }
:root[data-theme="ruhig"] .flow__body { gap: 20px; padding-top: 26px; }
:root[data-theme="ruhig"] .tile, :root[data-theme="ruhig"] .custom, :root[data-theme="ruhig"] .method, :root[data-theme="ruhig"] .consent { border-width: 1px; }
:root[data-theme="ruhig"] .pulse::after { animation-duration: 4s; }

:root[data-theme="verspielt"] { --font-display: "Nunito", var(--font); --display-weight: 800; --r: 16px; --r-sm: 12px; --r-lg: 22px; --r-tile: 18px; --r-btn: 999px; --display-track: -0.01em; }
:root[data-theme="verspielt"] .h { font-size: 22px; }
:root[data-theme="verspielt"] .tile, :root[data-theme="verspielt"] .cta { transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1); }
:root[data-theme="verspielt"] .tile:has(input:checked) { transform: scale(1.04) rotate(-1.5deg); }
:root[data-theme="verspielt"] .cta:active { transform: scale(0.96); }
:root[data-theme="verspielt"] .pulse { animation: hop 1.8s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

:root[data-theme="festlich"] { --font-display: "Fraunces", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif; --display-weight: 600; --display-track: 0; --r: 3px; --r-sm: 2px; --r-lg: 4px; --r-tile: 3px; --r-btn: 3px; }
:root[data-theme="festlich"] .h { font-size: 23px; }
:root[data-theme="festlich"] .h--dark { font-size: 30px; }
:root[data-theme="festlich"] .flow__head { border-bottom: 1px solid var(--gold); }
:root[data-theme="festlich"] .stand { border: 1px solid var(--gold); }
:root[data-theme="festlich"] .tile:has(input:checked) { box-shadow: inset 0 0 0 2px var(--gold); }
:root[data-theme="festlich"] .cta { letter-spacing: 0.04em; }
:root[data-theme="festlich"] .label { letter-spacing: 0.2em; }

@media (prefers-reduced-motion: reduce) {
  .pulse::after, .pulse { animation: none; }
  :root[data-theme] .tile, :root[data-theme] .cta { transition: none; transform: none; }
}

/* Angaben von der letzten Spende, nur auf diesem Gerät gespeichert (flow.js). */
.remember { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--paper-2); border-radius: 8px; background: var(--white); font-size: 13px; color: var(--muted); }
.remember[hidden] { display: none; }

/* Sammelseiten der Unterstützer (views/sammeln*.eta, Stufe 2) */
.note { padding: 12px 14px; border-radius: var(--r); background: var(--paper-2); color: var(--ink); font-size: 14px; }
.link { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.inline { display: flex; flex-direction: column; gap: 8px; }
.url { font-size: 14px; overflow-wrap: anywhere; }
.check a { color: inherit; }
.collector-donations li { justify-content: space-between; color: var(--ink-2); }
.collector-donations li::before { display: none; }
.legal__list { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sammeln-cta { display: block; text-align: center; font-size: 14px; color: var(--ink-2); }
