:root {
  --bg: oklch(96.5% .02 85);
  --fg: oklch(32% .055 345);
  --card: oklch(98.5% .014 85);
  --primary: oklch(42% .11 345);
  --primary-fg: oklch(97% .015 85);
  --secondary: oklch(93% .035 350);
  --muted: oklch(94% .025 350);
  --muted-fg: oklch(52% .04 345);
  --accent: oklch(62% .15 350);
  --gold: oklch(70% .12 75);
  --border: oklch(88% .035 350);
  --row: 52px;
  --rows: 5;
  --radius: 1rem;
  --display: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --q: "Quicksand", "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Banner (Haupttitelbild, wie im Original) ---------- */
.banner { border-bottom: 1px solid color-mix(in oklch, var(--gold) 70%, transparent); }
.banner-mob img { display: block; width: 100%; height: auto; }
.banner-desk { display: none; position: relative; height: 33vh; overflow: hidden; }
.banner-desk .tile { position: absolute; top: 0; bottom: 0; width: 40%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%); }
.banner-desk .tile > div { height: 100%; -webkit-mask-image: var(--m); mask-image: var(--m); }
.banner-desk img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (min-width: 768px) { .banner-mob { display: none; } .banner-desk { display: block; } }

.page {
  position: relative;
  max-width: 760px; margin: 0 auto; padding: 0 16px 64px;
}
.page::before {
  content: ""; position: absolute; inset: 0 -16px auto; height: 640px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 20%, oklch(92% .04 350 / .7), transparent 70%);
}

.topnav { display: flex; justify-content: flex-end; padding: 20px 0 8px; }
.about-link { text-decoration: none; font-weight: 500; }
.about-link:hover { text-decoration: underline; }

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.langs button {
  border: 1px solid var(--border); background: var(--card); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; cursor: pointer; color: var(--muted-fg);
}
.langs button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 40px 0 8px; }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .32em; font-size: 12px; font-weight: 600; color: var(--accent); }
h1 { margin: 14px 0 10px; font: 500 clamp(52px, 11vw, 80px)/1 var(--display); letter-spacing: -.01em; }
h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.sub { margin: 0 auto; max-width: 34em; color: var(--muted-fg); font-size: clamp(16px, 2.4vw, 18px); }

/* ---------- Drehrad ---------- */
.picker { margin-top: 28px; }
.picker-row { display: flex; justify-content: center; align-items: stretch; gap: 14px; }

.drum {
  position: relative; width: min(260px, 64vw);
  height: calc(var(--row) * var(--rows));
  border-radius: 24px;
  background: linear-gradient(180deg, oklch(93% .03 350), var(--card) 30%, var(--card) 70%, oklch(93% .03 350));
  box-shadow: inset 0 0 0 1px var(--border), 0 12px 40px -18px oklch(42% .11 345 / .45);
  outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.drum:focus-visible { box-shadow: inset 0 0 0 2px var(--accent), 0 12px 40px -18px oklch(42% .11 345 / .45); }
.drum-viewport {
  position: absolute; inset: 0; overflow-y: scroll; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scrollbar-width: none; perspective: 520px;
  cursor: grab;
}
.drum-viewport::-webkit-scrollbar { display: none; }
.drum-viewport.dragging, .drum-viewport.spinning { scroll-snap-type: none; }
.drum-viewport.dragging { cursor: grabbing; }
.drum-pad { height: calc(var(--row) * (var(--rows) - 1) / 2); }
.drum-item {
  height: var(--row); display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center;
  font: 500 30px/1 var(--display); font-variant-numeric: tabular-nums;
  color: var(--fg); will-change: transform, opacity; transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.drum-item.on { color: var(--primary); font-weight: 500; }
.drum-band {
  position: absolute; left: 10px; right: 10px; top: 50%; height: var(--row); transform: translateY(-50%);
  border-radius: 14px; pointer-events: none;
  border-top: 1px solid color-mix(in oklch, var(--accent) 45%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 45%, transparent);
  background: oklch(62% .15 350 / .07);
}
.drum-band::before, .drum-band::after {
  content: "✦"; position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 13px;
}
.drum-band::before { left: 12px; } .drum-band::after { right: 12px; }
.drum-fade { position: absolute; left: 0; right: 0; height: 38%; pointer-events: none; border-radius: 24px; }
.drum-fade.top { top: 0; background: linear-gradient(var(--card), transparent); }
.drum-fade.bottom { bottom: 0; background: linear-gradient(transparent, var(--card)); }

/* schnelle Leiste (grob: 1 … 1000) */
.scrub {
  position: relative; width: 44px; border-radius: 999px; cursor: ns-resize; touch-action: none;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--border);
}
.scrub-track { position: absolute; inset: 14px 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.scrub-track span { font-size: 10px; line-height: 1; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.scrub-thumb {
  position: absolute; left: 4px; right: 4px; height: 26px; top: 14px; margin-top: -13px;
  border-radius: 999px; background: var(--primary); color: var(--primary-fg);
  font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -4px oklch(42% .11 345 / .6);
  transition: transform .15s;
}
.scrub.active .scrub-thumb { transform: scale(1.12); }

.hint { text-align: center; margin: 10px 0 0; font-size: 13px; color: var(--muted-fg); }

.actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0 22px; }
.numbox input {
  width: 128px; height: 46px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); text-align: center; font-size: 17px; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.numbox input::-webkit-inner-spin-button, .numbox input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.numbox input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(62% .15 350 / .15); }
.or { color: var(--muted-fg); font-size: 14px; }

.btn {
  border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; font-weight: 500;
  background: var(--primary); color: var(--primary-fg); transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: var(--card); color: var(--fg); border: 1px solid var(--border); }
.btn.small { padding: 7px 14px; font-size: 14px; }

/* ---------- Akkordeons ---------- */
.acc { border: 1px solid var(--border); background: oklch(94% .03 350 / .7); border-radius: var(--radius); margin: 12px 0; }
.acc summary {
  list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 500; display: flex; align-items: center; gap: 8px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "⌄"; margin-left: auto; transition: transform .2s; font-size: 18px; line-height: 0; transform: translateY(-3px); }
.acc[open] summary::after { transform: rotate(180deg) translateY(-3px); }
.acc > :not(summary) { margin: 0 16px 14px; }
.star { color: var(--gold); }
.small { font-size: 13px; color: var(--muted-fg); }
.count { font-size: 12px; color: var(--muted-fg); font-weight: 400; }

/* ---------- Fragenkarte ---------- */
.card {
  margin-top: 26px; background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 24px clamp(16px, 5vw, 40px) 28px;
  box-shadow: 0 24px 60px -30px oklch(42% .11 345 / .35);
}
.card-head { display: flex; align-items: center; justify-content: space-between; }
.qlabel { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--muted-fg); }
.step {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--primary);
}
.step:disabled { opacity: .3; cursor: default; }
.qtext {
  margin: 18px 0 22px; text-align: center; font: 400 clamp(22px, 4.2vw, 34px)/1.35 var(--q);
  text-wrap: balance; min-height: 2.7em;
  transition: opacity .18s;
}
.qtext.fading { opacity: 0; }

.people { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.people button { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 14px; cursor: pointer; }
.people button[aria-pressed="true"] { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.addperson { display: flex; gap: 8px; }
.addperson input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; background: var(--card); }

.answer textarea {
  width: 100%; resize: vertical; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); padding: 14px 16px; min-height: 150px; outline: none;
}
.answer textarea:focus { border-color: var(--accent); }
.answer-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.saved { font-size: 14px; color: var(--accent); }

.alist { list-style: none; margin: 0; padding: 0; }
.alist li { border-top: 1px solid var(--border); padding: 10px 0; }
.alist .meta { font-size: 12px; color: var(--muted-fg); display: flex; gap: 8px; align-items: center; }
.alist .meta button { margin-left: auto; border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 12px; }
.alist .q { font-size: 14px; font-weight: 500; margin: 4px 0 2px; }
.alist .a { white-space: pre-wrap; margin: 0; font-size: 14px; }
.alist-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.allpdf { text-align: center; margin-top: 30px; }
.allpdf a { text-decoration: none; font-weight: 500; }
.allpdf a:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
.about h1 { font-size: clamp(40px, 8vw, 56px); margin: 20px 0 24px; }
.about p { font-size: 17px; line-height: 1.7; }
.about .sign { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--accent); margin-top: 28px; }

.print-only { display: none; }

@media (max-width: 520px) {
  :root { --row: 48px; }
  .hero { padding-top: 26px; }
  .actions { gap: 10px; }
  .or { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .qtext, .scrub-thumb, .btn { transition: none; }
}

@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; }
  body > :not(#printArea) { display: none !important; }
  .print-only { display: block; }
  #printArea { font: 11pt/1.5 var(--sans); color: #222; }
  #printArea h1 { font: 500 22pt/1.2 var(--display); color: oklch(42% .11 345); margin: 0 0 4mm; }
  #printArea .entry { break-inside: avoid; border-top: .3mm solid #ddd; padding: 4mm 0; }
  #printArea .meta { font-size: 8.5pt; color: #777; letter-spacing: .05em; text-transform: uppercase; }
  #printArea .q { font-weight: 600; margin: 1mm 0; }
  #printArea .a { white-space: pre-wrap; margin: 0; }
}
