/* Einzelsocke – „Waschsalon, 1978“. Keine externen Ressourcen. */

@font-face {
  font-family: "Bagel Fat One";
  src: url("/fonts/bagel-fat-one-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --fliese: #CFE8DD;
  --email: #F5F8F7;
  --chrom: #8E9AA3;
  --pulver: #FF6B1A;
  --tinte: #16233F;
  --lauge: #5BB8E8;

  --bg: var(--fliese);
  --surface: var(--email);
  --text: var(--tinte);
  --muted: #3E4B60;
  --line: var(--chrom);
  --grout: #B7D6C9;
  --error: #A3260B;
  --ok: #1C6B45;
  --button-text: var(--tinte);

  --font-display: "Bagel Fat One", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible", system-ui, sans-serif;
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--tinte);
    --surface: #24384F;
    --text: var(--email);
    --muted: #C5D1D9;
    --grout: #1C2D47;
    --error: #FF9C80;
    --ok: #8EE0B5;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  /* Kacheln: feine Fugen, rein per CSS */
  background-image:
    linear-gradient(var(--grout) 1px, transparent 1px),
    linear-gradient(90deg, var(--grout) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.page {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}
/* Ab Laptop-Breite zweispaltig: links Bullauge, Zähler und direkt darunter „Was ist SOCKE?“,
   rechts Formular, Aufkleber und Wallet-Anleitung. Die rechte Spalte überspannt beide Zeilen,
   die zweite Zeile ist flexibel – so entsteht links keine Lücke, wenn das Formular länger ist.
   Mobil bleibt alles untereinander. */
@media (min-width: 62rem) {
  /* Nur die Startseite: Rechtstexte und Sockengeschichten bleiben einspaltig und schmal (lesbare Zeilen) */
  .page-start { max-width: 68rem; padding-left: 2rem; padding-right: 2rem; }
  main.start { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 2.5rem; align-items: start; }
  .col-a { grid-column: 1; grid-row: 1; }
  .col-b { grid-column: 2; grid-row: 1 / span 2; }
  .col-info { grid-column: 1; grid-row: 2; }
  /* „Socke melden“-Sprung: Formular steht hier ohnehin daneben. Zwei Klassen, damit die spätere
     Regel .cta { display: inline-block } nicht gewinnt */
  .cta.nur-mobil { display: none; }
}

h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
a { color: inherit; text-underline-offset: .2em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

:focus-visible {
  outline: 3px solid var(--lauge);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

[hidden] { display: none !important; }

/* ---------- Kopf ---------- */
.top { text-align: center; position: relative; padding-top: 1.75rem; }

.lang {
  position: absolute; top: 0; right: 0;
  font-size: .95rem; display: flex; gap: .35rem; align-items: center;
}
.lang a { padding: .25rem .35rem; text-decoration: none; border-radius: 6px; }
.lang a[aria-current="true"] { font-weight: 700; text-decoration: underline; }

.brand { font-size: clamp(2.3rem, 11vw, 3.4rem); margin: .25rem 0 0; letter-spacing: .01em; }
.brand-i { position: relative; display: inline-block; }
.brand-dot {
  position: absolute; left: 50%; top: -.06em;
  width: .3em; height: .44em; transform: translateX(-42%) rotate(10deg);
  overflow: visible;
}
.brand-dot-sock { fill: var(--pulver); stroke: var(--tinte); stroke-width: 14; stroke-linejoin: round; }
.brand-sub { margin: .1rem 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Bullauge ---------- */
.hero { text-align: center; }

.drum { position: relative; width: min(100%, 22rem); margin: 1rem auto 0; }
.drum-svg { display: block; width: 100%; height: auto; overflow: visible; }

.drum-back { fill: var(--email); }
.drum-holes circle { fill: var(--chrom); opacity: .35; }
.ghost { fill: none; stroke: var(--tinte); stroke-width: 8; stroke-dasharray: 18 13; stroke-linecap: round; opacity: .55; }
.sock { fill: var(--pulver); stroke: var(--tinte); stroke-width: 8; stroke-linejoin: round; }
.cuff { fill: var(--email); stroke: var(--tinte); stroke-width: 8; stroke-linejoin: round; }
.cuff-stripes { stroke: var(--lauge); stroke-width: 7; stroke-linecap: round; fill: none; }
.water { fill: var(--lauge); opacity: .85; }

.glass { fill: var(--lauge); opacity: .08; }
.glare { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; opacity: .55; }
.ring { fill: none; stroke: var(--chrom); stroke-width: 30; }
.ring-edge { fill: none; stroke: var(--tinte); stroke-width: 5; }
.handle { fill: var(--chrom); stroke: var(--tinte); stroke-width: 4; }

.tumble { transform-origin: 256px 256px; animation: tumble 20s linear infinite; }
@keyframes tumble { to { transform: rotate(360deg); } }

.drum.spin .tumble { animation-duration: .45s; }
.drum.spin .drum-svg { animation: shake .12s linear infinite; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(1.5px, -1px); }
  75% { transform: translate(-1.5px, 1px); }
}

.door { transform-origin: 44px 256px; transition: transform .7s cubic-bezier(.3, .7, .3, 1); }
.drum.open .door { transform: scaleX(.14); }
.drum.open .tumble { animation-play-state: paused; }

.closed-sign { display: none; }
.closed-string { fill: none; stroke: var(--tinte); stroke-width: 4; }
.closed-board { fill: var(--pulver); stroke: var(--tinte); stroke-width: 5; }
.closed-text { font-family: var(--font-display); font-size: 34px; fill: var(--tinte); }
.closed .closed-sign { display: inline; }
.closed .tumble { animation: none; }

.drum-result {
  position: absolute; inset: 16%;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--email) 94%, transparent);
  color: var(--tinte);
  text-align: center;
  font-weight: 700;
  font-size: clamp(.85rem, 3.6vw, 1rem);
  line-height: 1.3;
}
.drum-result-text { margin: 0; }
.drum-result.ok .drum-result-text::before { content: "🧦 "; }

.hero-title { font-size: clamp(1.5rem, 6.4vw, 2rem); margin: 1.25rem 0 .4rem; }
.hero-text { margin: 0 auto; max-width: 28rem; }
.pause-text {
  margin: 1rem 0 0; padding: .75rem 1rem;
  background: var(--surface); border: 2px solid var(--pulver); border-radius: var(--radius);
  font-weight: 700;
}

/* ---------- Sockenkurs (Restzeit-Anzeige) ---------- */
.kurs {
  margin: 1.5rem 0 0; padding: 1rem;
  background: var(--tinte); color: var(--email);
  border: 4px solid var(--chrom); border-radius: var(--radius);
  text-align: center;
}
.kurs-display { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .6rem; font-weight: 700; }
.seg { display: inline-flex; gap: 3px; padding: .35rem .5rem; background: #0C1529; border-radius: 8px; }
.seg svg { width: 1.35rem; height: 2.3rem; }
.seg svg.narrow { width: .45rem; }
.seg .on { fill: var(--pulver); }
.seg .off { fill: #FFFFFF; opacity: .07; }
.seg svg.lead .on { opacity: .25; } /* führende Nullen wie auf einem Zählwerk */
.kurs-paare { margin: .5rem 0 0; font-weight: 700; color: var(--pulver); }
/* Programmwahl-Knopf: Zeiger dreht je Stufe um 54° (−135° … +135°) */
.programm { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: .8rem 0 0; }
.programm-knopf { width: 4.5rem; height: 4.5rem; flex: none; }
.programm-knopf .tick { fill: var(--chrom); opacity: .45; }
.programm-knopf .tick.an { fill: var(--pulver); opacity: 1; }
.programm-knopf .knopf-ring { fill: var(--chrom); }
.programm-knopf .knopf { fill: var(--email); }
.zeiger { fill: var(--pulver); transform-origin: 50px 50px; transition: transform .8s ease-out; }
.zeiger.stufe-0 { transform: rotate(-135deg); }
.zeiger.stufe-1 { transform: rotate(-81deg); }
.zeiger.stufe-2 { transform: rotate(-27deg); }
.zeiger.stufe-3 { transform: rotate(27deg); }
.zeiger.stufe-4 { transform: rotate(81deg); }
.zeiger.stufe-5 { transform: rotate(135deg); }
.programm-text { margin: 0; text-align: left; }
.kurs-rate { margin: .6rem 0 0; font-weight: 700; }
.kurs-korb { margin: .6rem 0 0; font-size: .95rem; }
.kurs-chart { display: block; width: 100%; height: 3.25rem; margin: .5rem 0 0; }
.kurs-chart polyline { fill: none; stroke: var(--lauge); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.kurs-hinweis { margin: .5rem 0 0; font-size: .85rem; color: #C5D1D9; }

/* ---------- Maschinenfront / Formular ---------- */
.front {
  margin: 1.5rem 0 0; padding: 1.25rem 1rem 1.5rem;
  background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--line);
}
.front-title { font-size: 1.6rem; margin: 0 0 1rem; text-align: center; }

fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin: 0 0 1.1rem; }
.field label, .quiz > legend { display: block; font-weight: 700; margin-bottom: .3rem; }

input[type="text"], textarea {
  width: 100%;
  font: inherit; color: var(--text);
  background: var(--bg);
  border: 2px solid var(--line); border-radius: 12px;
  padding: .65rem .75rem;
}
input#wallet { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; }
textarea { resize: vertical; min-height: 5.5rem; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }

.hint { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); }
.count { text-align: right; margin-top: .1rem; }
.status { margin: .25rem 0 0; font-size: .9rem; font-weight: 700; min-height: 1.35em; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--error); }

.quiz { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.question {
  border: 2px solid var(--line); border-radius: 14px;
  margin: .6rem 0 0; padding: .5rem .75rem .75rem; min-width: 0;
}
.question[aria-invalid="true"] { border-color: var(--error); }
.question legend { font-weight: 700; padding: 0 .25rem; }
.num {
  display: inline-grid; place-items: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--pulver); color: var(--tinte);
  font-family: var(--font-display); font-size: .95rem;
}
.question label { display: flex; gap: .55rem; align-items: center; padding: .3rem 0; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--pulver); flex: none; margin: 0; }

.check { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1.1rem; cursor: pointer; }
.check input { margin-top: .2rem; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.errors {
  margin: 0 0 1rem; padding: .75rem 1rem;
  border: 2px solid var(--error); border-radius: 12px;
  color: var(--error); font-weight: 700;
}
.errors-title { margin: 0; }
.errors ul { margin: .3rem 0 0; padding-left: 1.2rem; }

/* Drehknopf-Button */
.knob {
  display: flex; align-items: center; gap: .8rem;
  margin: .5rem auto 0; padding: .55rem 1.4rem .55rem .55rem;
  font: inherit; font-family: var(--font-display); font-size: 1.3rem;
  color: var(--button-text); background: var(--pulver);
  border: 3px solid var(--tinte); border-radius: 999px;
  box-shadow: 0 4px 0 var(--tinte);
  cursor: pointer;
}
.knob:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--tinte); }
.knob-dial {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--email); border: 3px solid var(--tinte);
  position: relative; transition: transform .3s ease;
}
.knob-dial::after {
  content: ""; position: absolute; left: 50%; top: 3px;
  width: 4px; height: 40%; margin-left: -2px; border-radius: 2px; background: var(--tinte);
}
.knob:hover .knob-dial { transform: rotate(45deg); }
.knob[aria-busy="true"] .knob-dial { transform: rotate(270deg); }
.knob:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }

.link-button {
  font: inherit; font-size: .9em; font-weight: 700; color: inherit;
  background: none; border: 0; padding: .2rem; text-decoration: underline; cursor: pointer;
}

/* ---------- Aufkleber ---------- */
.sticker {
  margin: 1.5rem 0 0; padding: 1.25rem 1rem;
  background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius);
  text-align: center;
}
.sticker h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
.sticker > p { margin: .4rem 0; }
.sticker-img {
  display: block; width: min(100%, 18rem); height: auto; margin: .75rem auto;
  filter: drop-shadow(0 4px 6px rgba(22, 35, 63, .25));
}
.sticker-toggle { justify-content: center; margin: .5rem 0 0; text-align: left; }
.sticker-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: .75rem 0 .25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0 0; }
.cta-ghost { background: var(--surface); color: var(--text); border-color: var(--text); }
.cta {
  display: inline-block; margin-top: .2rem; padding: .4rem 1rem;
  background: var(--pulver); color: var(--tinte);
  border: 3px solid var(--tinte); border-radius: 999px;
  font-family: var(--font-display); font-size: 1.05em; text-decoration: none;
}
.print-sheet { display: none; }

/* Druckansicht: 6 Aufkleber auf A4 (2 × 3), je 66 × 84 mm – passt mit 10 mm Rand auf eine Seite */
@page { size: A4; margin: 10mm; }
/* Nur wenn „Drucken“ beim Aufkleber gedrückt wurde (Klasse setzt sticker.js) – sonst drucken Seiten normal */
@media print {
  body.print-stickers { background: #FFFFFF; }
  body.print-stickers .page { display: none !important; }
  body.print-stickers .print-sheet {
    display: grid !important;
    grid-template-columns: repeat(2, 66mm);
    gap: 6mm 12mm; justify-content: center; align-content: start;
  }
  .print-sheet img { width: 66mm; height: auto; break-inside: avoid; }
}

/* ---------- Was ist SOCKE ---------- */
/* Spendenlink als fünftes Pflegesymbol: Icon (Waschmittel-Kanister mit Herz) + Text darunter, ganzer Eintrag klickbar */
#spende-link { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-decoration: none; }
#spende-link span { text-decoration: underline; text-underline-offset: .2em; }
.care svg.spende-icon { stroke-width: 1.6; stroke-linecap: round; }
.spende-icon .herz { fill: var(--pulver); stroke: none; }
.about { margin: 2rem 0 0; }
.about h2 { font-size: 1.5rem; margin: 0 0 .5rem; }
.contract { margin-top: 1rem; }
.contract-label { margin: 0; font-weight: 700; }
.contract-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .25rem 0; }
.contract-addr { word-break: break-all; font-size: .9rem; background: var(--surface); padding: .3rem .5rem; border-radius: 8px; }
.small-button {
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--tinte);
  background: var(--email); border: 2px solid var(--tinte); border-radius: 999px;
  padding: .2rem .8rem; cursor: pointer;
}
.warn {
  margin: .75rem 0 0; padding: .6rem .8rem;
  border-left: 5px solid var(--pulver); background: var(--surface); border-radius: 6px;
  font-weight: 700;
}
.note { font-size: .95rem; color: var(--muted); }
.testnetz-steps { margin: .5rem 0; }
.testnetz-steps ol { margin: .3rem 0; padding-left: 1.4rem; }

/* ---------- Wallet-Anleitung (Waschprogramme) ---------- */
.guide-wrap { margin: 2rem 0 0; }
.guide {
  background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: .25rem 1rem;
}
.guide[open] { padding-bottom: 1rem; }
.guide summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem 0;
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after {
  content: ""; flex: none;
  width: .7rem; height: .7rem;
  border-right: 3px solid currentColor; border-bottom: 3px solid currentColor;
  transform: rotate(45deg); margin-top: -.3rem;
}
.guide[open] summary::after { transform: rotate(-135deg); margin-top: .3rem; }
.guide summary h2 { font-size: 1.4rem; margin: 0; }
.guide-intro { margin: 0 0 .5rem; }

.programme { list-style: none; margin: 0; padding: 0; }
.step { border-top: 2px dashed var(--line); padding: .9rem 0 .6rem; }
.step-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .4rem; font-size: 1.05rem; }
.dial {
  display: inline-grid; place-items: center; flex: none;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--email); color: var(--tinte);
  border: 3px solid var(--chrom);
  font-family: var(--font-display); font-size: 1rem;
}
.step p { margin: .3rem 0; }
.step-action { margin: .5rem 0 0; }
.wallet-button { font-size: 1rem; padding: .35rem 1rem; background: var(--pulver); }
.values {
  display: grid; grid-template-columns: max-content 1fr; gap: .25rem .75rem;
  margin: .5rem 0 0; font-size: .92rem;
}
.values dt { font-weight: 700; }
.values dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.values .contract-row { margin: 0; }
.guide-notes { margin: .75rem 0 0; padding-left: 1.2rem; font-size: .95rem; }
.guide-notes li { margin: .2rem 0; }

@media (max-width: 400px) {
  .values { grid-template-columns: 1fr; }
  .values dd { margin-bottom: .35rem; }
}

/* ---------- Pflegeetikett ---------- */
.label {
  --zz: 10px;
  position: relative;
  margin: 2.5rem auto 0; max-width: 24rem;
  padding: 1.25rem 1rem 1rem;
  background: #FFFFFF; color: var(--tinte);
  text-align: center; font-size: .9rem;
  box-shadow: 0 2px 6px rgba(22, 35, 63, .15);
}
.label::before, .label::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--zz);
  background-size: calc(var(--zz) * 2) var(--zz);
  background-repeat: repeat-x;
}
.label::before {
  top: calc(var(--zz) * -1);
  background-image: conic-gradient(from 135deg at 50% 0, #FFFFFF 90deg, transparent 0);
}
.label::after {
  bottom: calc(var(--zz) * -1);
  background-image: conic-gradient(from -45deg at 50% 100%, #FFFFFF 90deg, transparent 0);
}
.care { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr)); gap: .5rem; }
.care li { display: flex; flex-direction: column; align-items: center; gap: .25rem; line-height: 1.2; }
.care svg { width: 2.6rem; height: 2.2rem; fill: none; stroke: var(--tinte); stroke-width: 2.5; stroke-linejoin: round; }
.care svg .x { stroke-width: 2.5; }
.care svg text { fill: var(--tinte); stroke: none; font-family: var(--font-text); font-weight: 700; font-size: 12px; }
.label-line { margin: .9rem 0 .25rem; font-weight: 700; }
.label-links { margin: 0; }
.label a { color: var(--tinte); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .5rem; }
.legal-home { font-family: var(--font-display); font-size: 1.5rem; text-decoration: none; }
.legal {
  margin: 1rem 0 0; padding: 1.25rem 1rem 1.5rem;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
}
.legal h1 { font-size: 1.9rem; margin: 0 0 .75rem; }
.legal h2 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
.legal p, .legal li { overflow-wrap: anywhere; }
.legal ul { padding-left: 1.2rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: .5rem 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .35rem .4rem; border-bottom: 1px solid var(--line); }
.legal-hinweis {
  padding: .7rem .9rem; margin: 0 0 1rem;
  border-left: 5px solid var(--pulver); background: var(--bg); border-radius: 6px; font-weight: 700;
}
/* Platzhalter, die Benny vor Veröffentlichung ausfüllen muss – absichtlich auffällig */
.legal h3 { font-size: 1.05rem; margin: 1.1rem 0 .3rem; }
.legal ul { padding-left: 1.2rem; }
.legal-widerspruch { padding: .6rem .8rem; border-left: 4px solid var(--pulver); background: var(--surface); }
.platzhalter { background: #FFE08A; color: #16233F; padding: 0 .25em; border-radius: 3px; font-weight: 700; }
.legal-stand { font-size: .85rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 360px) {
  .page { padding-left: .6rem; padding-right: .6rem; }
  .care { grid-template-columns: repeat(2, 1fr); }
  .seg svg { width: 1.1rem; height: 1.9rem; }
}

/* ---------- Sockengeschichten (5.10) ---------- */
.stories { padding: 1rem 0 2rem; }
.stories h1 { font-family: var(--font-display); font-size: 2rem; margin: .5rem 0 .5rem; }
.story-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 1rem; }
.story {
  background: var(--email); color: var(--tinte);
  border: 3px solid var(--tinte); border-radius: 1rem; padding: 1rem 1.1rem;
}
.story-text { margin: 0; font-size: 1.1rem; white-space: pre-line; overflow-wrap: anywhere; }
.story-text::before { content: "🧦 "; }
.story-quiz { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.story-quiz li { font-size: .85rem; padding: .1rem .55rem; border: 2px solid var(--chrom); border-radius: 999px; }
.story-meta { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }
