:root {
  --ink: #2a1a10;
  --ink-soft: #5a4030;
  --paper: #fbf6ee;
  --sand: #f3e7d3;
  --amber: #e8a33d;
  --amber-deep: #b4531a;
  --night: #24150c;
  --line: rgba(42, 26, 16, .14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 700px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem max(1.25rem, calc((100% - 1080px) / 2));
  background: rgba(36, 21, 12, .9);
  backdrop-filter: blur(10px);
  color: #fff4e2;
}
.brand, .footer-brand {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: .18em; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: .6rem;
}
.grain { width: .55em; height: .55em; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px rgba(232, 163, 61, .8); }

nav { display: flex; align-items: center; gap: 1.6rem; }
nav a { text-decoration: none; font-size: .95rem; opacity: .88; }
nav a:hover { opacity: 1; }
nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--amber); }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff4e2; margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 2px solid var(--amber);
  background: var(--amber); color: var(--night);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  padding: .85rem 1.5rem; border-radius: 999px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: #f4b95a; border-color: #f4b95a; transform: translateY(-1px); }
.btn-small { padding: .5rem 1.1rem; font-size: .9rem; opacity: 1; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: currentColor; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 780px);
  display: grid; place-items: center; text-align: center;
  color: #fff7e8; overflow: hidden; background: var(--night);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(29, 17, 10, .5), rgba(29, 17, 10, .1) 60%); }
.hero-text { position: relative; z-index: 1; padding: 5rem 1.25rem; max-width: 760px; }
.eyebrow, .kicker {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem;
}
.kicker { color: var(--amber-deep); }
.hero h1 { font-size: clamp(3.4rem, 13vw, 8rem); letter-spacing: .14em; margin-right: -.14em; text-shadow: 0 2px 30px rgba(29, 17, 10, .6); }
.claim { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 2rem); margin: .6rem 0 1.4rem; text-shadow: 0 1px 14px rgba(29, 17, 10, .7); }
.lede { max-width: 540px; margin: 0 auto 2rem; text-shadow: 0 1px 12px rgba(29, 17, 10, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.dark { background: var(--night); color: #f7ead6; }
.section.dark .kicker { color: var(--amber); }
.section.warm { background: var(--sand); }
.intro { max-width: 720px; font-size: 1.15rem; color: var(--ink-soft); }

/* Brief */
.letter { font-family: var(--serif); font-size: 1.2rem; line-height: 1.75; }
.salutation { font-style: italic; color: var(--amber-deep); font-size: 1.35rem; }
.signature { margin-top: 2rem; font-style: italic; color: var(--ink-soft); }
.signature span { font-size: 1.9rem; color: var(--ink); }

/* Frage */
.question { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .2em; opacity: .85; }
.answer { font-family: var(--serif); font-size: clamp(3rem, 10vw, 5.5rem); line-height: 1.1; color: var(--amber); margin-bottom: .5em; }
.after { font-size: 1.15rem; opacity: .9; }

/* Ort */
.verbs { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.verbs li { background: var(--paper); padding: 1.6rem 1.2rem; font-size: .95rem; color: var(--ink-soft); }
.verbs span { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: .4rem; }

/* Lauf */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.big-number { display: block; font-size: clamp(5rem, 16vw, 9rem); line-height: .9; color: var(--amber-deep); font-variant-numeric: lining-nums; }
.motto { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--amber-deep); margin-top: 1.5rem; }
.motto.light { color: var(--amber); }
.profile { width: 100%; height: auto; }

/* Schritte */
.steps { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: #fff; }
.steps p { margin: .4rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.step-state { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); background: var(--sand); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .9rem; }
.step-state.now { background: var(--amber); color: var(--night); }
.callout { background: var(--sand); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.callout p { margin: 0; font-family: var(--serif); font-size: 1.25rem; max-width: 640px; }

/* ---------- Spenden ---------- */
.donate-split { align-items: start; }
.donate { background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.donate fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.donate legend { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); padding: 0; margin-bottom: .6rem; }

.segmented, .amounts { display: grid; gap: .5rem; }
.segmented { grid-template-columns: 1fr 1fr; }
.amounts { grid-template-columns: repeat(4, 1fr); }
.segmented label, .amounts label { position: relative; cursor: pointer; }
.segmented input, .amounts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span, .amounts span {
  display: block; text-align: center; padding: .8rem .4rem; border: 2px solid var(--line);
  border-radius: 12px; font-weight: 600; background: #fff; transition: border-color .15s, background .15s;
}
.amounts span { font-family: var(--serif); font-size: 1.35rem; }
.segmented input:checked + span, .amounts input:checked + span { border-color: var(--amber-deep); background: #fdf0d9; }
.segmented input:focus-visible + span, .amounts input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.segmented label:hover span, .amounts label:hover span { border-color: var(--amber); }

.custom { display: block; margin-top: .9rem; font-size: .9rem; color: var(--ink-soft); }
.custom-field { display: flex; align-items: center; margin-top: .35rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; padding-left: .9rem; }
.custom-field:focus-within { border-color: var(--amber-deep); }
.custom-field em { font-style: normal; font-weight: 600; color: var(--ink-soft); }
.custom-field input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.1rem; color: var(--ink); padding: .75rem .8rem; outline: none; }
.hint { min-height: 1.4em; margin: .6rem 0 0; font-size: .9rem; font-style: italic; color: var(--amber-deep); }
.error { color: #a12a17; font-size: .92rem; margin: .8rem 0 0; }

.result { margin-top: 1.4rem; padding: 1.3rem; border-radius: 14px; background: var(--sand); outline: none; }
.result h3 { margin-bottom: .6rem; }
.result p { font-size: .97rem; }
.result p:last-child { margin-bottom: 0; }
.bank { margin: 0 0 1rem; }
.bank-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.bank dt { color: var(--ink-soft); }
.bank dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: #1a0f08; color: #d9c8b0; padding: 3rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; }
.footer-brand { color: #fff4e2; margin-bottom: .3rem; }
.site-footer p { margin: 0; }
.small { font-size: .88rem; opacity: .8; text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .verbs { grid-template-columns: repeat(2, 1fr); }
  .verbs li:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(36, 21, 12, .98); padding: .5rem 1.25rem 1.25rem;
  }
  nav.open { display: flex; }
  nav a { padding: .85rem 0; font-size: 1.05rem; }
  nav a.btn { margin-top: .6rem; padding: .8rem; }
  .small { text-align: left; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .letter { font-size: 1.1rem; }
}
