/* Mühlenarchiv – Matrizenblatt im Archiv (Gestaltung „Matrize“, beschlossen 28.09.2026, muehlen/CLAUDE.md)
   Saugpapier, Karteiblätter mit zwei Lochungen, Aktenzeichen in gesperrten Versalien,
   violette Matrizenlinien, gestrichelte Abrisskanten, eckige Formen (0–1 px), Knöpfe als umrandete Rechtecke.
   Schriften lokal (OFL), keine Fremdabrufe. */

@font-face { font-family: "Young Serif"; font-weight: 400; font-display: swap;
  src: url("schrift/young-serif-regular.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap;
  src: url("schrift/public-sans-regular.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap;
  src: url("schrift/public-sans-semibold.woff2") format("woff2"); }

:root {
  --papier: #EFEEE8;        /* Saugpapier, Grund */
  --blatt: #F7F6F1;         /* Karteiblatt */
  --tinte: #2A1B30;
  --tinte-2: #5A4A5E;       /* Nebentext */
  --violett: #713A87;       /* Matrize: Linien, Aktenzeichen, Knöpfe */
  --violett-hauch: #E7DCEB;
  --auf-violett: #FFFFFF;
  --kante: #C9C5BA;         /* Blattkante */
  --loch: #DCDAD2;
  --fuss-grund: #2A1B30;
  --fuss-text: #EFEAF2;
  --fuss-leise: #CBBFD1;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #19141C;
    --blatt: #231B28;
    --tinte: #EDE6F0;
    --tinte-2: #BFB1C6;
    --violett: #C9A0E0;
    --violett-hauch: #34283B;
    --auf-violett: #19141C;
    --kante: #3B3042;
    --loch: #120E14;
    --fuss-grund: #100C12;
    --stein-rand: #B49CC2;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 1.0625rem/1.62 "Public Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violett); font-weight: 600; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violett); outline-offset: 3px; }

h1, h2, h3, .marke { font-family: "Young Serif", Georgia, serif; font-weight: 400; line-height: 1.12; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); margin: 0 0 0.4em; }
h3 { font-size: 1.3rem; margin: 0 0 0.35em; }
p { margin: 0 0 0.9em; }

.huelle { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ueberspringen { position: absolute; left: -999px; top: 8px; background: var(--blatt); padding: 10px 14px; z-index: 10; border: 1px solid var(--violett); }
.ueberspringen:focus { left: 8px; }

/* Aktenzeichen: gesperrte Versalien */
.akte { display: block; font: 600 0.8rem/1.4 "Public Sans", sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violett); margin-bottom: 0.6em; }
/* Abrisskante statt Trennlinie */
.abriss { border: 0; border-top: 2px dashed var(--violett); opacity: 0.45; margin: 0; }

/* ---------- Bausteine: Karteiblatt mit Lochung, Knopf ---------- */
.blatt {
  position: relative; background: var(--blatt); border: 1px solid var(--kante); border-radius: 1px;
  padding: 22px 22px 14px 46px;
}
.blatt::before, .blatt::after {
  content: ""; position: absolute; left: 14px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--loch); box-shadow: inset 1px 2px 2px rgba(0,0,0,0.25);
}
.blatt::before { top: 22px; }
.blatt::after { bottom: 22px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.55em 1.2em;
  font: 600 1rem/1.2 "Public Sans", sans-serif; color: var(--violett); background: var(--blatt);
  border: 2px solid var(--violett); border-radius: 0; cursor: pointer; text-decoration: none;
}
.knopf--voll { background: var(--violett); color: var(--auf-violett); }
.knopf:hover { background: var(--violett-hauch); }
.knopf--voll:hover { background: var(--violett); filter: brightness(1.1); }

/* ---------- Kopf ---------- */
.kopf { padding: 14px 0; border-bottom: 2px dashed color-mix(in srgb, var(--violett) 40%, transparent); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; color: var(--tinte); text-decoration: none; font-weight: 400; }
.marke img { width: 36px; height: 36px; border: 1px solid var(--kante); }
.kopf nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; align-items: center; }
.kopf nav a { color: var(--tinte); text-decoration: none; display: inline-block; padding: 10px 0; }
.kopf nav a:hover { text-decoration: underline; }
.kopf nav .sprache { border: 2px solid var(--violett); color: var(--violett); padding: 8px 14px; }
@media (max-width: 780px) { .kopf nav li:not(.immer) { display: none; } }

/* ---------- Bald-Hinweis (noch nicht veröffentlicht) ---------- */
.bald { display: inline-block; border: 2px dashed var(--violett); padding: 12px 18px; margin: 4px 0 6px; background: var(--blatt); }
.bald strong { display: block; font: 1.15rem "Young Serif", serif; font-weight: 400; }
.bald span { font-size: 0.95rem; color: var(--tinte-2); }

/* ---------- Held ---------- */
.held { padding: 34px 0 60px; }
.held .huelle { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) { .held .huelle { grid-template-columns: 1.05fr 0.95fr; } }
.held h1 { font-size: clamp(2.5rem, 11.5vw, 5rem); margin: 0 0 0.2em; white-space: nowrap; }
@media (min-width: 940px) { .held h1 { font-size: clamp(3.2rem, 5.6vw, 5rem); } }
.versprechen { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 32em; }
.fakten { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 22px; font: 600 0.82rem "Public Sans", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violett); }
.fakten li:not(:last-child)::after { content: "·"; margin-left: 12px; }
.hinweis { font-size: 0.95rem; color: var(--tinte-2); max-width: 32em; margin-top: 6px; }

/* Probefund: Neunermühle als Matrizenzeichnung */
.fund { padding-bottom: 20px; }
.fund h2 { font-size: 1.6rem; margin-bottom: 0.2em; }
.fund .aufgabe { font-weight: 600; }
.muehle { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin: 10px auto 14px; }
.muehle svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.muehle .linien { stroke: var(--violett); stroke-width: 0.8; fill: none; stroke-linecap: square; filter: drop-shadow(0 0 0.6px var(--violett)); }
.muehle .punkt { fill: var(--violett); }
.muehle .treffer { stroke: var(--violett); stroke-width: 3; opacity: 0.35; }
.feld {
  position: absolute; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 0; padding: 0; background: transparent; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.feld::after { content: ""; width: 58%; height: 58%; border-radius: 50%; }
.feld[data-stein="w"]::after { background: #F7F6F1; border: 2.5px solid var(--violett); }
.feld[data-stein="s"]::after { background: #2A1B30; border: 2.5px solid var(--stein-rand, #2A1B30); }
.feld[data-stein="offen"]::after { border: 2.5px dashed var(--violett); background: var(--blatt); }
.feld[data-stein="falsch"]::after { border: 2px solid var(--tinte-2); width: 30%; height: 30%; }
.feld:disabled { cursor: default; }
.fund-status { min-height: 3.2em; margin: 0 0 10px; }
.fund-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 64px 0; }
.abschnitt--blatt { background: var(--blatt); border-block: 1px solid var(--kante); }
.vorspann { font-size: 1.15rem; max-width: 40em; color: var(--tinte-2); margin-bottom: 30px; }
.raster { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.abschnitt--blatt .blatt { background: var(--papier); }

/* So geht's */
.schritte { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.schritte li { counter-increment: s; }
.schritte li .akte::before { content: "Schritt " counter(s) " · "; }
:lang(en) .schritte li .akte::before { content: "Step " counter(s) " · "; }

/* Spielarten-Liste als Register */
.register { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); border-top: 2px dashed color-mix(in srgb, var(--violett) 45%, transparent); }
.register li { padding: 12px 4px; border-bottom: 2px dashed color-mix(in srgb, var(--violett) 45%, transparent); }
.register b { font: 1.2rem "Young Serif", serif; font-weight: 400; display: block; }
.register span { color: var(--tinte-2); font-size: 0.95rem; }

/* Screenshots */
.galerie { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; margin: 0 -4px; list-style: none; }
.galerie li { flex: 0 0 auto; width: 220px; scroll-snap-align: start; }
@media (min-width: 900px) { .galerie li { width: 240px; } }
figure { margin: 0; }
.galerie img { border: 1px solid var(--kante); }
figcaption { margin-top: 12px; font-weight: 600; font-size: 0.98rem; }

/* Preise */
.preise { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .preise { grid-template-columns: 1fr 1fr; } }
.preise ul { padding-left: 1.1em; margin: 0 0 0.6em; }
.preise li { margin-bottom: 0.45em; }
.preise li::marker { color: var(--violett); }
.betrag { font: 2.4rem/1 "Young Serif", serif; margin: 0.1em 0 0.35em; }
.kleingedruckt { font-size: 0.93rem; color: var(--tinte-2); }

/* FAQ */
.fragen { display: grid; gap: 12px; max-width: 860px; }
.fragen details { background: var(--blatt); border: 1px solid var(--kante); }
.fragen summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; font-size: 1.06rem; list-style: none; position: relative; min-height: 48px; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px dashed var(--violett); }
.fragen details[open] summary::after { border-style: solid; background: var(--violett); }
.fragen details > div { padding: 0 20px 8px; border-top: 2px dashed color-mix(in srgb, var(--violett) 30%, transparent); padding-top: 12px; }

/* Abschluss + Fuß */
.schluss { text-align: center; }
.schluss .vorspann { margin-inline: auto; }
.fuss { background: var(--fuss-grund); color: var(--fuss-text); padding: 40px 0 34px; margin-top: 30px; }
.fuss a { color: var(--fuss-text); }
.fuss ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.fuss li a { display: inline-block; padding: 6px 0; }
.fuss p { margin: 0 0 8px; font-size: 0.93rem; color: var(--fuss-leise); }

/* Badge (erst beim Start eingeschaltet) */
.badge { display: inline-block; margin-left: -10px; }
.badge img { width: 240px; height: auto; }
@media (max-width: 600px) { .fund { padding-left: 34px; padding-right: 14px; } .fund.blatt::before, .fund.blatt::after { left: 9px; width: 14px; height: 14px; } }
