/* Gegenrechnung: Zeitungs-Titelseite. Linien statt Karten, keine Verläufe, keine runden Ecken. */
:root {
  --tinte: #16150F;
  --text: #2B2A24;
  --grau: #55534B;
  --linie: #D9D6CC;
  --rot: #C8201A;
  --gelb: #FFF3B0;
  --papier: #FFFFFF;
  --hell: #DAD7CE;
  --motto: #3A3830;
  --block: #16150F;
  --punkte: #B9B5A8;
  --gelb-flaeche: #F2C94C;
  color-scheme: light;
  --sans: Archivo, "Arial Narrow", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font-family: var(--serif); font-size: 18px; line-height: 1.55;
}
a { color: var(--tinte); }
a:hover { color: var(--rot); }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sans { font-family: var(--sans); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--papier); padding: 8px; z-index: 10; }

/* Kopf */
.kopf { padding-top: 18px; }
.kopf-oben { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-family: var(--sans); font-size: 14px; color: var(--grau); padding-bottom: 10px; border-bottom: 1px solid var(--tinte); }
.kopf-mitte { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 32px; padding: 14px 0 12px; border-bottom: 4px solid var(--tinte); }
.titelkopf { text-decoration: none; font-family: var(--sans); font-stretch: 68%; font-weight: 800; font-size: 84px; line-height: 0.9; letter-spacing: -1px; color: var(--tinte); }
.motto { margin: 0 0 6px; max-width: 330px; font-size: 16px; line-height: 1.4; font-style: italic; color: var(--motto); }
.rubriken { display: flex; gap: 6px 26px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--tinte); font-family: var(--sans); font-size: 15px; font-weight: 600; }
.rubriken a { text-decoration: none; }
.rubriken a[aria-current] { color: var(--rot); }

/* Kleine Bausteine */
.dachzeile { margin: 0; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--rot); }
.meta { margin: 0; font-family: var(--sans); font-size: 14px; color: var(--grau); }
.platzhalter { background: var(--gelb); }

/* Startseite: Aufmacher + Spalte */
.oben { padding-top: 28px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 32px; }
.aufmacher { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.aufmacher h1 { margin: 0; font-family: var(--sans); font-stretch: 78%; font-weight: 750; font-size: 54px; line-height: 1.0; letter-spacing: -0.5px; }
.aufmacher h1 a { text-decoration: none; }
.aufmacher .lead { margin: 0; font-size: 21px; line-height: 1.45; color: var(--text); }
.spalte { flex: 1 1 300px; min-width: 0; border-left: 1px solid var(--tinte); padding-left: 24px; display: flex; flex-direction: column; }
.spalte h2 { margin: 0 0 6px; font-family: var(--sans); font-size: 17px; font-weight: 800; }
.meldung { padding: 12px 0; border-bottom: 1px solid var(--linie); }
.meldung:last-of-type { border-bottom: none; }
.meldung p { margin: 0; font-family: var(--sans); font-size: 13px; color: var(--grau); }
.meldung h3 { margin: 4px 0 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.meldung h3 a { text-decoration: none; }
.kasten { margin-top: 18px; padding: 16px; background: var(--gelb); }
.kasten p { margin: 0; }
.kasten .klein { font-family: var(--sans); font-size: 13px; font-weight: 700; }
.kasten .gross { margin-top: 6px; font-size: 17px; line-height: 1.4; }

/* Zweite Reihe */
.reihe { padding-top: 24px; padding-bottom: 8px; }
.reihe-innen { border-top: 4px solid var(--tinte); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 28px; }
.gross-teaser { flex: 2 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.gross-teaser figure { flex: 1 1 200px; min-width: 0; margin: 0; }
.gross-teaser .txt { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.gross-teaser h2 { margin: 0; font-family: var(--sans); font-stretch: 80%; font-weight: 750; font-size: 32px; line-height: 1.05; }
.teaser { flex: 1 1 240px; min-width: 0; border-left: 1px solid var(--linie); padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.teaser h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; }
.teaser.kommentar h2 { font-style: italic; }
.gross-teaser h2 a, .teaser h2 a { text-decoration: none; }
.teaser p, .gross-teaser p { margin: 0; font-size: 17px; color: var(--text); }
.gross-teaser p.dachzeile, .teaser p.dachzeile { font-size: 15px; color: var(--rot); }

/* Redaktionsnotiz */
.notiz { padding-top: 36px; padding-bottom: 36px; }
.notiz-innen { border-top: 1px solid var(--tinte); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 24px 48px; }
.notiz h2 { flex: 1 1 220px; margin: 0; font-family: var(--sans); font-stretch: 80%; font-weight: 750; font-size: 30px; line-height: 1.05; }
.notiz .txt { flex: 2 1 420px; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 12px; }
.notiz .txt p { margin: 0; }

/* Newsletter */
.newsletter { background: var(--block); color: #FFFFFF; }
.newsletter a { color: #FFFFFF; }
.newsletter-innen { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; }
.newsletter h2 { margin: 0; font-family: var(--sans); font-stretch: 80%; font-weight: 750; font-size: 30px; line-height: 1.1; }
.newsletter .unter { margin: 6px 0 0; font-size: 17px; color: var(--hell); }
.newsletter form, .newsletter .formular { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.newsletter label { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.feldzeile { display: flex; gap: 10px; flex-wrap: wrap; }
.feldzeile input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 10px 12px; font-size: 16px; font-family: var(--sans); border: 1px solid #FFFFFF; border-radius: 0; background: #FFFFFF; color: var(--tinte); }
.knopf { min-height: 48px; padding: 10px 20px; font-size: 16px; font-weight: 700; font-family: var(--sans); background: var(--rot); color: #FFFFFF; border: none; border-radius: 0; cursor: pointer; }
.knopf[disabled] { background: #6B6960; cursor: not-allowed; }
.newsletter .hinweis { margin: 0; font-family: var(--sans); font-size: 13px; color: var(--hell); }
.newsletter .ml-form-embedWrapper, .newsletter .ml-form-embedBody, .newsletter .nl-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter .nl-form { flex: 0 0 auto; }
/* Der Block ist in beiden Modi dunkel: feste helle Schrift und das kräftige Rot (Kontrast mit weisser Schrift) */
.newsletter .unter, .newsletter .hinweis { color: #DAD7CE; }
.newsletter .knopf.primary { background: #C8201A; }
.newsletter .ml-field-group { display: flex; flex-direction: column; gap: 6px; }
.newsletter .ml-form-embedSubmit { display: flex; }
.newsletter .ml-form-embedSubmit .knopf { flex: 1 1 auto; }
.newsletter .ml-form-recaptcha { display: none; min-height: 78px; }
.newsletter .nl-aktiv .ml-form-recaptcha { display: block; }
.newsletter .ml-error input { border-color: #FF6F61; outline: 2px solid #FF6F61; }
.newsletter .ml-form-recaptcha.ml-error iframe { outline: 2px solid #FF6F61; }
.newsletter .nl-erfolg { margin: 0; padding: 14px 16px; background: var(--gelb-flaeche); color: #16150F; font-family: var(--sans); font-size: 16px; line-height: 1.4; }
.newsletter .hinweis a { text-underline-offset: 2px; }
.newsletter .nl-spam, .newsletter .nl-erfolg { overflow-wrap: anywhere; }
.newsletter .nl-spam { font-size: 14px; line-height: 1.45; }
.newsletter .nl-spam strong { color: #FFF3B0; }

/* Fuss */
.fuss { padding-top: 22px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--sans); font-size: 14px; color: var(--grau); }
.fuss nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Artikelseite */
.artikel { max-width: 720px; margin: 0 auto; padding: 32px 24px 48px; }
.artikel header { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--tinte); }
.artikel h1 { margin: 0; font-family: var(--sans); font-stretch: 78%; font-weight: 750; font-size: 48px; line-height: 1.02; letter-spacing: -0.5px; }
.artikel .lead { margin: 0; font-size: 21px; line-height: 1.45; color: var(--text); }
.artikel .kommentar-hinweis { margin: 0; padding: 8px 12px; background: var(--gelb); font-family: var(--sans); font-size: 14px; }
.inhalt h2 { font-family: var(--sans); font-stretch: 85%; font-weight: 750; font-size: 28px; line-height: 1.1; margin: 1.6em 0 0.4em; }
.inhalt h3 { font-family: var(--sans); font-size: 20px; margin: 1.4em 0 0.3em; }
.inhalt blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 3px solid var(--tinte); font-style: italic; }
.inhalt table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15px; margin: 1em 0; display: block; overflow-x: auto; }
.inhalt th, .inhalt td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--linie); }
.inhalt th { border-bottom: 2px solid var(--tinte); }
.quellen { margin-top: 36px; padding-top: 14px; border-top: 4px solid var(--tinte); font-family: var(--sans); font-size: 15px; }
.quellen h2 { font-size: 17px; margin: 0 0 8px; }
.quellen ol { margin: 0; padding-left: 20px; }
.korrektur { margin-top: 24px; padding: 12px 14px; border: 1px solid var(--tinte); font-family: var(--sans); font-size: 15px; }

/* Grafiken */
.grafik { margin: 1.6em 0; padding-top: 14px; border-top: 1px solid var(--tinte); display: flex; flex-direction: column; gap: 8px; }
.grafik figcaption { font-family: var(--sans); font-size: 17px; font-weight: 700; line-height: 1.3; }
.grafik .g-label { font-family: var(--sans); font-size: 15px; fill: var(--tinte); }
.grafik .g-wert { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: var(--tinte); }
.grafik .quelle { margin: 0; font-family: var(--sans); font-size: 13px; color: var(--grau); }

/* Listen (Rubrik, Archiv) */
.liste { max-width: 860px; margin: 0 auto; padding: 28px 24px 48px; }
.liste h1 { margin: 0 0 8px; font-family: var(--sans); font-stretch: 78%; font-weight: 750; font-size: 48px; line-height: 1; }
.liste-eintrag { padding: 16px 0; border-bottom: 1px solid var(--linie); }
.liste-eintrag h2 { margin: 4px 0; font-size: 24px; font-weight: 600; line-height: 1.2; }
.liste-eintrag h2 a { text-decoration: none; }
.liste-eintrag p { margin: 0; }
.leer { font-style: italic; color: var(--grau); }

/* Einfache Textseiten */
.seite { max-width: 720px; margin: 0 auto; padding: 32px 24px 48px; }
.seite h1 { font-family: var(--sans); font-stretch: 78%; font-weight: 750; font-size: 44px; line-height: 1.02; margin: 0 0 16px; }
.seite h2 { font-family: var(--sans); font-size: 22px; margin: 1.6em 0 0.3em; }

@media (max-width: 760px) {
  .titelkopf { font-size: 52px; }
  .aufmacher h1 { font-size: 36px; }
  .artikel h1, .liste h1, .seite h1 { font-size: 34px; }
  .spalte { border-left: none; padding-left: 0; border-top: 1px solid var(--tinte); padding-top: 14px; }
  .teaser { border-left: none; padding-left: 0; border-top: 1px solid var(--linie); padding-top: 14px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* ===== Rechnungsblatt: Karopapier, Summenstrich, Korrekturstift ===== */
:root { --karo: #DCE6EC; --karo-fein: #EEF3F6; }
.zahlen, .grafik, .rechnung, .meta { font-variant-numeric: tabular-nums; }

/* Wortmarke mit doppeltem Summenstrich */
.titelkopf { display: inline-block; position: relative; padding-bottom: 12px; }
.titelkopf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  border-top: 2px solid var(--rot); border-bottom: 2px solid var(--rot);
}
.kopf-mitte { border-bottom: 6px double var(--tinte); }
.reihe-innen { border-top: 6px double var(--tinte); }
.quellen { border-top: 6px double var(--tinte); }

/* Karopapier als Fläche */
.karo {
  background-color: var(--papier);
  background-image:
    linear-gradient(var(--karo-fein) 1px, transparent 1px),
    linear-gradient(90deg, var(--karo-fein) 1px, transparent 1px);
  background-size: 16px 16px;
}
.notiz { background: none; }
.notiz-innen { border-top: 1px solid var(--tinte); }
.notiz .txt { position: relative; padding: 18px 20px; }

/* Grafiken auf Karo, mit Korrekturstift-Notiz */
.grafik svg { background-image:
    linear-gradient(var(--karo) 1px, transparent 1px),
    linear-gradient(90deg, var(--karo) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px; }
.grafik .notiz-rot { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--rot); }
.grafik .notiz-rot::before { content: "↳ "; font-style: normal; }

/* Baustein «Rechnung»: Posten, Summe mit Doppelstrich */
.rechnung { margin: 1.6em 0; padding: 16px 18px 12px; border: 1px solid var(--tinte); font-family: var(--sans); font-size: 16px; }
.rechnung h4 { margin: 0 0 8px; font-size: 15px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.rechnung table { width: 100%; border-collapse: collapse; }
.rechnung td { padding: 5px 0; border-bottom: 1px dotted var(--punkte); vertical-align: baseline; }
.rechnung td.op { width: 1.4em; color: var(--grau); font-weight: 700; }
.rechnung td.betrag { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 16px; }
.rechnung tr.summe td { border-bottom: 6px double var(--tinte); padding-top: 9px; font-weight: 800; font-size: 18px; }
.rechnung tr.summe td.betrag { color: var(--rot); }
.rechnung .quelle { margin: 8px 0 0; font-size: 13px; color: var(--grau); }

/* Skizzen in Teasern */
.skizze { display: block; width: 100%; height: auto; }
.teaser .skizze { max-width: 220px; margin-bottom: 4px; }

@media (max-width: 760px) {
  .titelkopf { padding-bottom: 9px; }
  .titelkopf::after { height: 5px; border-top-width: 2px; border-bottom-width: 2px; }
}

/* Balkengrafik als HTML: auf dem Handy gut lesbar */
.g-feld { padding: 12px 10px; display: flex; flex-direction: column; gap: 10px;
  background-image: linear-gradient(var(--karo) 1px, transparent 1px), linear-gradient(90deg, var(--karo) 1px, transparent 1px);
  background-size: 20px 20px; }
.g-zeile { display: grid; grid-template-columns: minmax(90px, 30%) 1fr; gap: 10px; align-items: center; font-family: var(--sans); font-size: 15px; }
.g-label { text-align: right; line-height: 1.2; }
.g-spur { display: flex; align-items: center; gap: 8px; min-width: 0; }
.g-balken { height: 22px; background: var(--tinte); flex: none; max-width: calc(100% - 90px); }
.g-balken.rot { background: var(--rot); }
.g-wert { font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) {
  .g-zeile { grid-template-columns: 1fr; gap: 3px; }
  .g-label { text-align: left; }
}
.inhalt .rechnung table { display: table; margin: 0; font-size: 16px; }
.inhalt .rechnung td { padding-right: 0; }
.titelkopf { padding-bottom: 32px; }
@media (max-width: 760px) { .titelkopf { padding-bottom: 22px; } }

/* ===== Handgezeichnete Details ===== */
.titelkopf::after { border: none; height: 24px; background: url(/bilder/summenstrich.svg) no-repeat center / 100% 100%; }
@media (max-width: 760px) { .titelkopf::after { height: 17px; } }
.spalte h2, .rechnung h4, .quellen h2 { display: inline-block; padding-bottom: 6px; background: url(/bilder/strich.svg) no-repeat left bottom / 100% 8px; }
.grafik .notiz-rot::before { content: ""; display: inline-block; width: 26px; height: 20px; margin-right: 6px; vertical-align: -2px; background: url(/bilder/pfeil.svg) no-repeat center / contain; }
.kringel { display: inline-block; padding: 4px 12px; margin: -4px -12px; background: url(/bilder/kringel.svg) no-repeat center / 100% 100%; }
.teaser .skizze, .liste-kopf .skizze { max-width: 200px; }
.liste-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 6px double var(--tinte); padding-bottom: 10px; margin-bottom: 8px; }
.liste-kopf h1 { margin: 0; }
.leer-skizze { max-width: 260px; margin: 16px 0; }

/* Zeichnung im Artikelkopf und beim Aufmacher */
.artikel header.artikel-kopf { display: grid; grid-template-columns: 1fr minmax(150px, 230px); gap: 24px; align-items: end; }
.artikel-kopf figure, .aufmacher-skizze { margin: 0; }
.artikel-kopf figure svg, .aufmacher-skizze svg { display: block; width: 100%; max-width: 230px; }
.aufmacher-skizze { align-self: flex-start; width: 230px; max-width: 60%; margin: 0; }
@media (max-width: 760px) {
  .artikel header.artikel-kopf { grid-template-columns: 1fr; gap: 8px; }
  .artikel-kopf figure { order: -1; max-width: 170px; justify-self: start; margin-left: 0; }
  .aufmacher-skizze { width: 170px; }
}

/* ===== Dunkelmodus: Rechnungsblatt bei Nacht =====
   Folgt der Systemeinstellung. Der Knopf im Kopf setzt data-theme="hell" oder "dunkel". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) {
    --tinte: #ECE7DA; --text: #D9D4C6; --grau: #A9A497; --linie: #3A3D42; --rot: #FF6F61;
    --gelb: #3D3517; --papier: #15171B; --hell: #3A3D42; --motto: #C9C4B6; --block: #0C0D10;
    --punkte: #4A4E55; --karo: #262A30; --karo-fein: #1D2025; color-scheme: dark;
  }
}
:root[data-theme="dunkel"] {
  --tinte: #ECE7DA; --text: #D9D4C6; --grau: #A9A497; --linie: #3A3D42; --rot: #FF6F61;
  --gelb: #3D3517; --papier: #15171B; --hell: #3A3D42; --motto: #C9C4B6; --block: #0C0D10;
  --punkte: #4A4E55; --karo: #262A30; --karo-fein: #1D2025; color-scheme: dark;
}
/* Skizzen: Tinte und Rotstift folgen den Farben, die gelbe Fläche bleibt gelb */
svg [stroke="#16150F"] { stroke: var(--tinte); }
svg [fill="#16150F"] { fill: var(--tinte); }
svg [stroke="#C8201A"] { stroke: var(--rot); }
svg [fill="#C8201A"] { fill: var(--rot); }
/* Gezeichnete Striche als Bild: im Dunkeln die hellere Rot-Version */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) .titelkopf::after { background-image: url(/bilder/summenstrich-dunkel.svg); }
  :root:not([data-theme="hell"]) .spalte h2, :root:not([data-theme="hell"]) .rechnung h4, :root:not([data-theme="hell"]) .quellen h2 { background-image: url(/bilder/strich-dunkel.svg); }
  :root:not([data-theme="hell"]) .kringel { background-image: url(/bilder/kringel-dunkel.svg); }
  :root:not([data-theme="hell"]) .grafik .notiz-rot::before { background-image: url(/bilder/pfeil-dunkel.svg); }
  :root:not([data-theme="hell"]) .newsletter { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
}
:root[data-theme="dunkel"] .titelkopf::after { background-image: url(/bilder/summenstrich-dunkel.svg); }
:root[data-theme="dunkel"] .spalte h2, :root[data-theme="dunkel"] .rechnung h4, :root[data-theme="dunkel"] .quellen h2 { background-image: url(/bilder/strich-dunkel.svg); }
:root[data-theme="dunkel"] .kringel { background-image: url(/bilder/kringel-dunkel.svg); }
:root[data-theme="dunkel"] .grafik .notiz-rot::before { background-image: url(/bilder/pfeil-dunkel.svg); }
:root[data-theme="dunkel"] .newsletter { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }

/* Umschalter hell/dunkel */
.modus { font: inherit; color: var(--tinte); background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.modus:hover { color: var(--rot); }

/* ===== Neue Bausteine (Dez. 2026): Quittung, Rechner, Stempel, Schätz mal ===== */
:root {
  --bon: #FBFAF5; --bon-schatten: rgba(22, 21, 15, .45); --klebeband: rgba(242, 201, 76, .75);
  --rotstift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 22' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 120 8, 260 15, 380 9 C 470 5, 540 12, 598 7' fill='none' stroke='%23C8201A' stroke-width='3.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) {
    --bon: #1F2227; --bon-schatten: rgba(0, 0, 0, .7); --klebeband: rgba(242, 201, 76, .45);
    --rotstift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 22' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 120 8, 260 15, 380 9 C 470 5, 540 12, 598 7' fill='none' stroke='%23FF6F61' stroke-width='3.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dunkel"] {
  --bon: #1F2227; --bon-schatten: rgba(0, 0, 0, .7); --klebeband: rgba(242, 201, 76, .45);
  --rotstift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 22' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 120 8, 260 15, 380 9 C 470 5, 540 12, 598 7' fill='none' stroke='%23FF6F61' stroke-width='3.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kassenbon-Grundform */
.bon, .quittung {
  position: relative; background: var(--bon); color: var(--tinte); font-family: var(--sans);
  box-shadow: 0 14px 30px -18px var(--bon-schatten);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
}

/* Quittung: Quellen am Artikelende */
.quittung { max-width: 560px; margin: 44px auto 8px; padding: 26px 24px 40px; transform: rotate(-.4deg); font-size: 15px; line-height: 1.4; }
.quittung-kopf { text-align: center; border-bottom: 1px dashed var(--tinte); padding-bottom: 12px; margin-bottom: 6px; }
.quittung-marke { margin: 0; font-stretch: 68%; font-weight: 800; font-size: 30px; letter-spacing: -.5px; }
.quittung h2 { margin: 2px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); background: none; padding: 0; display: block; }
.quittung-klein { margin: 2px 0 0; font-size: 12.5px; color: var(--grau); }
.quittung-posten { list-style: none; margin: 0; padding: 0; }
.quittung-posten li { display: grid; grid-template-columns: 2em 1fr auto; gap: 2px 10px; padding: 7px 0; border-bottom: 1px dotted var(--punkte, #B9B5A8); align-items: baseline; }
.quittung-posten .nr { color: var(--grau); font-weight: 700; }
.quittung-posten .titel { min-width: 0; overflow-wrap: anywhere; }
.quittung-posten .datum { font-size: 12.5px; color: var(--grau); white-space: nowrap; text-align: right; }
.quittung-total { display: flex; justify-content: space-between; margin: 0; padding: 12px 0 6px; font-weight: 800; font-size: 19px; border-bottom: 6px double var(--tinte); }
.quittung-total span:last-child { color: var(--rot); }
.quittung-code { height: 34px; width: 60%; margin: 16px auto 0; opacity: .85;
  background: repeating-linear-gradient(90deg, var(--tinte) 0 2px, transparent 2px 4px, var(--tinte) 4px 7px, transparent 7px 9px, var(--tinte) 9px 10px, transparent 10px 13px); }
.quittung-dank { margin: 14px 0 0; text-align: center; font-family: var(--serif); font-style: italic; color: var(--rot); font-size: 17px; }
.quittung-dank a { color: var(--rot); }
@media (max-width: 520px) {
  .quittung { padding: 22px 16px 36px; transform: none; margin-left: -4px; margin-right: -4px; }
  .quittung-posten li { grid-template-columns: 1.8em 1fr; }
  .quittung-posten .datum { grid-column: 2; text-align: left; }
}

/* Rechner «Rechne selber» */
.rechner { position: relative; margin: 2em 0; padding: 22px 20px 20px; border: 2px solid var(--tinte); }
.rechner-eck { position: absolute; top: -15px; left: 16px; background: var(--rot); color: var(--papier); font-family: var(--sans); font-weight: 800; font-size: 14px; padding: 4px 10px; transform: rotate(-2deg); }
.inhalt .rechner h3 { margin: 6px 0 4px; font-family: var(--sans); font-stretch: 78%; font-weight: 750; font-size: 28px; line-height: 1.05; }
.rechner-unter { margin: 0 0 14px; font-family: var(--sans); font-size: 15px; color: var(--grau); }
.rechner-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rechner-wahl button { font-family: var(--sans); font-size: 15px; font-weight: 600; min-height: 44px; padding: 8px 12px; border: 2px solid var(--tinte); background: var(--papier); color: var(--tinte); cursor: pointer; border-radius: 0; }
.rechner-wahl button b { font-weight: 800; }
.rechner-wahl button[aria-pressed="true"] { background: var(--tinte); color: var(--papier); }
.rechner-eigen { margin: -4px 0 14px; }
.rechner-eigen label, .rechner-label { display: block; font-family: var(--sans); font-weight: 700; font-size: 15px; }
.rechner-eigen input { margin-top: 4px; width: 170px; min-height: 44px; padding: 6px 10px; font: 700 18px var(--sans); border: 2px solid var(--tinte); border-radius: 0; background: var(--papier); color: var(--tinte); }
.rechner-regler { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.rechner-regler input { flex: 1; min-width: 0; accent-color: var(--rot); height: 32px; }
.rechner-regler output { font-family: var(--sans); font-weight: 800; font-size: 20px; min-width: 62px; text-align: right; }
.rechner-blatt { background: var(--papier); border: 1px solid var(--tinte); padding: 12px 16px 8px; }
.rechner-zeile { display: flex; justify-content: space-between; gap: 10px; font-family: var(--sans); font-size: 17px; padding: 6px 0; border-bottom: 1px dotted var(--punkte, #B9B5A8); }
.rechner-zeile .op { display: inline-block; width: 1.4em; color: var(--grau); font-weight: 700; }
.rechner-summe { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; font-family: var(--sans); font-weight: 800; }
.rechner-betrag { font-stretch: 70%; font-size: 44px; line-height: 1; color: var(--rot); }
.rechner-strich { display: block; width: 100%; height: 16px; margin-top: 4px; }
.rechner-strich path { stroke-dasharray: 640; stroke-dashoffset: 0; }
.rechner-strich.zieh path { animation: rg-zieh 1s ease-out both; }
.rechner-strich.zieh path + path { animation-delay: .25s; }
@keyframes rg-zieh { from { stroke-dashoffset: 640; } to { stroke-dashoffset: 0; } }
.rechner-fuss { margin: 10px 0 0; font-family: var(--sans); font-size: 13.5px; line-height: 1.45; color: var(--grau); }
@media (max-width: 520px) { .rechner { padding: 22px 14px 16px; } .rechner-betrag { font-size: 38px; } .rechner-blatt { padding: 10px 12px 6px; } .rechner-zeile { font-size: 16px; } }

/* Stempel und Rotstift */
.stempel {
  display: inline-block; font-family: var(--sans); font-stretch: 75%; font-weight: 800; font-size: 26px; letter-spacing: .04em; line-height: 1;
  color: var(--rot); border: 4px solid currentColor; border-radius: 4px; padding: 6px 14px 4px; transform: rotate(-8deg); background: transparent;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='140' height='70' filter='url(%23n)'/%3E%3C/svg%3E");
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='140' height='70' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stempel-stimmt { color: var(--tinte); }
.stempel-teilweise { color: var(--tinte); }
.stempel-irrefuehrend { color: var(--grau); border-style: dashed; }
.stempel-mini { font-size: 14px; border-width: 3px; padding: 4px 6px 3px; transform: rotate(-6deg); text-align: center; }
.kopf-urteil { margin: 4px 0 0; }
.behauptung { position: relative; margin: 2.2em 0 0; padding: 22px 22px 26px; border: 1px solid var(--tinte); }
.behauptung-wer { margin: 0 0 8px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); }
.inhalt .behauptung blockquote { margin: 0; padding: 0; border: none; }
.behauptung blockquote p { margin: 0; font-size: 24px; line-height: 1.4; font-style: italic; }
.satz.durch { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--rotstift) no-repeat 0 58% / 100% 16px; }
.behauptung-korr { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--rot); }
.behauptung-korr::before { content: ""; display: inline-block; width: 26px; height: 20px; margin-right: 6px; vertical-align: -2px; background: url(/bilder/pfeil.svg) no-repeat center / contain; }
.behauptung .stempel { position: absolute; right: -10px; top: -24px; background: var(--papier); }
.urteil-skala { display: flex; list-style: none; margin: 10px 0 1.6em; padding: 0; font-family: var(--sans); font-size: 14px; font-weight: 700; }
.urteil-skala li { flex: 1; text-align: center; padding: 7px 4px; border: 1px solid var(--tinte); margin-left: -1px; color: var(--grau); }
.urteil-skala li.an { background: var(--rot); border-color: var(--rot); color: var(--papier); }
.liste-eintrag.mit-stempel { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.teaser .stempel-mini { align-self: flex-start; }
@media (max-width: 520px) { .behauptung blockquote p { font-size: 20px; } .behauptung-korr { font-size: 18px; } .behauptung .stempel { font-size: 16px; right: 24px; top: -24px; } .urteil-skala { font-size: 12px; } }
/* Animation: Rotstift zieht durch, dann kommt der Stempel */
@media (prefers-reduced-motion: no-preference) {
  .satz.durch { animation: rs-zieh .9s .4s ease-out both; }
  .behauptung-korr { animation: rs-auf .4s 1.2s both; }
  .behauptung .stempel { animation: rs-knall .25s 1.6s cubic-bezier(.3, 1.6, .5, 1) both; }
}
@keyframes rs-zieh { from { background-size: 0% 16px; } to { background-size: 100% 16px; } }
@keyframes rs-auf { from { opacity: 0; } to { opacity: 1; } }
@keyframes rs-knall { from { opacity: 0; transform: rotate(-8deg) scale(1.6); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .rechner-strich.zieh path { animation: none; } }

/* Startseite: Schätz mal + Zahl der Woche */
.karo-gross { background-image: linear-gradient(var(--karo) 1px, transparent 1px), linear-gradient(90deg, var(--karo) 1px, transparent 1px); background-size: 22px 22px; }
.spiel { margin-top: 28px; padding: 34px 0 40px; border-top: 6px double var(--tinte); border-bottom: 6px double var(--tinte); }
.spiel-innen { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.zettel { position: relative; background: var(--papier); border: 1px solid var(--tinte); box-shadow: 3px 4px 0 var(--tinte); padding: 24px 22px; }
.zettel::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: var(--klebeband); transform: rotate(-3deg); }
.schaetzen h2 { margin: 4px 0 6px; font-family: var(--sans); font-stretch: 78%; font-weight: 750; font-size: 40px; line-height: 1.02; }
.schaetz-hilfe { margin: 0 0 14px; font-size: 19px; color: var(--text); }
.schaetz-wert { margin: 0; text-align: center; font-family: var(--sans); font-stretch: 70%; font-weight: 800; font-size: 60px; line-height: 1; }
.schaetz-wert small { font-size: 22px; font-stretch: 90%; }
.schaetzen input[type=range] { width: 100%; accent-color: var(--tinte); height: 32px; margin: 10px 0 2px; }
.schaetz-achse { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 13px; color: var(--grau); }
.schaetz-knopf { display: block; width: 100%; margin-top: 16px; font-size: 18px; color: var(--papier); }
.lineal { position: relative; height: 78px; margin: 18px 8px 6px; border-bottom: 2px solid var(--tinte); }
.marke { position: absolute; bottom: -2px; transform: translateX(-50%); text-align: center; font-family: var(--sans); font-size: 13px; font-weight: 700; white-space: nowrap; }
.marke i { display: block; margin: 4px auto 0; width: 2px; height: 22px; background: currentColor; }
.marke-du { color: var(--grau); }
.marke-echt { color: var(--rot); }
.marke-echt b { font-size: 22px; }
.marke-echt i { width: 3px; height: 34px; }
.schaetz-urteil { margin: 14px 0 4px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--rot); outline: none; }
.schaetz-loesung { margin: 0 0 6px; font-size: 17px; }
.schaetzen .quelle { margin: 0; font-family: var(--sans); font-size: 13px; color: var(--grau); }
.schaetz-weiter { margin: 12px 0 0; font-family: var(--sans); font-weight: 700; font-size: 16px; }
.zahl-bon { padding: 24px 22px 34px; transform: rotate(1.2deg); max-width: 380px; justify-self: center; width: 100%; }
.bon-klein { margin: 0; text-align: center; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); border-bottom: 1px dashed var(--tinte); padding-bottom: 10px; }
.bon-zahl { margin: 10px 0 0; text-align: center; font-stretch: 68%; font-weight: 800; font-size: 76px; line-height: 1; }
.bon-einheit { margin: 2px 0 0; text-align: center; font-weight: 700; }
.bon-text { margin: 8px 0 0; text-align: center; font-family: var(--serif); font-size: 17px; }
.bon-quelle { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 0; padding-bottom: 6px; border-bottom: 6px double var(--tinte); font-weight: 700; font-size: 14px; }
.bon-dank { margin: 12px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 18px; }
.bon-dank a { color: var(--rot); }
@media (max-width: 760px) {
  .spiel { padding: 26px 0 32px; }
  .spiel-innen { grid-template-columns: 1fr; gap: 30px; }
  .schaetzen h2 { font-size: 32px; }
  .schaetz-wert { font-size: 52px; }
  .zettel { padding: 22px 16px; }
  .zahl-bon { transform: rotate(.5deg); }
}
/* Dunkelmodus: gezeichneter Pfeil in Rot hell */
@media (prefers-color-scheme: dark) { :root:not([data-theme="hell"]) .behauptung-korr::before { background-image: url(/bilder/pfeil-dunkel.svg); } }
:root[data-theme="dunkel"] .behauptung-korr::before { background-image: url(/bilder/pfeil-dunkel.svg); }
.weitere .teaser { flex: 0 1 calc((100% - 56px) / 3); min-width: 240px; border-left: none; padding-left: 0; }
@media (max-width: 760px) { .weitere .teaser { flex: 1 1 100%; } }

/* ===== Kurz gemeldet (src/meldungen) ===== */
.meldung-text { margin-top: 4px; }
.meldung-text p { margin: 0 0 6px; font-family: var(--serif); font-size: 15px; line-height: 1.45; color: var(--text); }
.spalte .meldung h3 { font-size: 17.5px; }
.meldung-text p:last-child { margin-bottom: 0; }
.meldung p.meldung-quelle { margin-top: 6px; font-size: 12.5px; color: var(--grau); }
.meldung-quelle a { color: inherit; }
.meldung h3 a { color: inherit; }
.meldung-alle { margin: 10px 0 0; font-family: var(--sans); font-size: 14px; font-weight: 700; }
.meldung-alle a { color: var(--rot); text-decoration: none; }
.meldung-alle a:hover { text-decoration: underline; }
.meldungen-liste .liste-unter { margin: 0 0 12px; color: var(--grau); }
.meldungen-liste .meldung { padding: 18px 0; }
.meldungen-liste .meldung:last-of-type { border-bottom: 1px solid var(--linie); }
.meldungen-liste .meldung h3 { font-size: 22px; }
.meldungen-liste .meldung p:first-child { font-size: 13.5px; }
.meldungen-liste .meldung-text, .meldungen-liste .meldung-text p { font-size: 17px; }
.meldung:target { background: var(--gelb); box-shadow: -8px 0 0 var(--gelb), 8px 0 0 var(--gelb); }
.meldung-kompakt { padding: 10px 0; }
.spalte .meldung-kompakt h3 { font-size: 17px; line-height: 1.3; }
.meldung-kompakt h3 a:hover { text-decoration: underline; text-decoration-color: var(--rot); }
.meldungen-liste .meldung { scroll-margin-top: 16px; }

/* Bausteine im Artikel: Kurz gesagt, Zahl, Schätz mal (Dezember 2026) */
.inhalt .kurz { margin: 30px 0 34px; padding: 26px 24px 18px; background: var(--gelb); }
.inhalt .kurz ul { margin: 8px 0 0; padding: 0; list-style: none; }
.inhalt .kurz li { position: relative; margin: 0 0 10px; padding-left: 34px; font-size: 18px; line-height: 1.45; }
.inhalt .kurz li::before { content: "✓"; position: absolute; left: 2px; top: -2px; font-family: var(--sans); font-weight: 800; font-size: 22px; color: var(--rot); transform: rotate(-6deg); }
.inhalt .zahl-artikel { max-width: 380px; margin: 34px auto; transform: rotate(-1deg); }
.inhalt .zahl-artikel .bon-zahl { color: var(--rot); }
.inhalt .schaetzen-artikel { margin: 34px 0; }
.inhalt .schaetzen-artikel h2 { margin: 4px 0 6px; font-size: 32px; }
.inhalt .schaetzen-artikel .schaetz-hilfe { font-size: 17px; }
.inhalt .schaetzen-artikel .knopf { color: var(--papier); }
@media (max-width: 640px) {
  .inhalt .kurz { padding: 22px 16px 12px; }
  .inhalt .kurz li { font-size: 17px; }
  .inhalt .schaetzen-artikel h2 { font-size: 26px; }
  .inhalt .zahl-artikel { max-width: none; }
}
/* ===== Schnellwege: «Nach oben» und «Startseite» (Dez. 2026) ===== */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#top:focus { outline: none; }
.schnell {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20;
  display: flex; font-family: var(--sans); font-size: 15px; font-weight: 700;
  background: var(--papier); border: 2px solid var(--tinte); box-shadow: 4px 4px 0 var(--rot);
  visibility: hidden; opacity: 0; transform: translateY(8px);
}
.schnell.an { visibility: visible; opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .schnell { transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
  .schnell.an { transition: opacity .2s, transform .2s; }
}
.schnell a { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; color: var(--tinte); text-decoration: none; }
.schnell a + a { border-left: 2px solid var(--tinte); }
.schnell a:hover { color: var(--papier); background: var(--rot); }
.schnell a:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
.schnell span[aria-hidden] { font-size: 18px; line-height: 1; }

/* Ende eines Artikels: Wege weiter */
.artikel-ende { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 14px; border-top: 6px double var(--tinte); font-family: var(--sans); font-size: 16px; font-weight: 700; }
.artikel-ende a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.artikel-ende a:first-child { color: var(--rot); }
.artikel-ende span[aria-hidden] { display: inline-block; text-decoration: none; }
