/*
 * Vereinario – Website auf vereinario.de (Startseite, Handbuch, 404).
 *
 * Gestaltung: ein Kassenbuch. Kühles, liniertes Papier, Tinte, Feuerrot (Standard-Vereinsfarbe
 * der App) für Handlungen und den Prüfstempel, Kontogrün für Einnahmen. Schrift wie in der App:
 * Barlow Condensed für Überschriften und Beträge, Barlow für Text.
 * Passt zu einer strengen CSP: keine <style>-Blöcke, kein style="…", kein JavaScript.
 * Hell und dunkel folgen der Systemeinstellung; Kassenblatt und Kassenzettel bleiben als
 * Papier in beiden Fällen hell. Die Variablennamen nutzt auch handbuch/handbuch.css.
 */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/schrift/Barlow-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/schrift/Barlow-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/schrift/Barlow-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/schrift/Barlow-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/schrift/Barlow-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/schrift/Barlow-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/schrift/BarlowCondensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/schrift/BarlowCondensed-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/schrift/BarlowCondensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/schrift/BarlowCondensed-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

/* ---------------------------------------------------------------- Farben und Maße */

:root {
  color-scheme: light dark;

  --grund: #f2f5f1;          /* Papier, leicht grünlich wie ein Kontobuch */
  --flaeche: #ffffff;
  --flaeche-2: #e6ece6;
  --text: #1a1d21;           /* Tinte, wie in der App */
  --text-leise: #545b61;
  --linie: #d3ddd6;          /* Lineatur */
  --linie-stark: #afbdb4;
  --akzent: #af2b1e;         /* Feuerrot */
  --akzent-text: #9c2418;
  --knopf: #af2b1e;
  --knopf-hover: #952316;
  --glut: rgb(175 43 30 / 0.08);
  --gruen: #1d6b45;          /* Kontogrün: Einnahmen, „ja“ */
  --gruen-grund: rgb(29 107 69 / 0.09);
  --rot: #af2b1e;
  --rot-grund: rgb(175 43 30 / 0.07);
  --bernstein: #a86a00;
  --bernstein-grund: rgb(168 106 0 / 0.09);
  --schatten: 0 1px 1px rgb(26 29 33 / 0.04), 0 10px 30px -14px rgb(26 29 33 / 0.22);
  --schatten-bild: 0 1px 2px rgb(26 29 33 / 0.06), 0 24px 54px -26px rgb(26 29 33 / 0.4);

  /* Papier (Kassenblatt, Kassenzettel) bleibt auch im Dunkeln hell */
  --papier: #fbfcfa;
  --papier-tinte: #1a1d21;
  --papier-leise: #5d666b;
  --papier-linie: #cfe0d6;
  --papier-rot: #d98f86;
  --stempel: #b8352a;

  --schrift: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --schrift-anzeige: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --schrift-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --breite: 1160px;
  --rand: clamp(16px, 4vw, 32px);
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #121518;
    --flaeche: #1b1f23;
    --flaeche-2: #171b1e;
    --text: #e8ece9;
    --text-leise: #a1a9a4;
    --linie: #2c3337;
    --linie-stark: #435057;
    --akzent: #e0503f;
    --akzent-text: #f2806f;
    --knopf: #c43a2c;
    --knopf-hover: #d4473a;
    --glut: rgb(224 80 63 / 0.14);
    --gruen: #5cc28e;
    --gruen-grund: rgb(92 194 142 / 0.12);
    --rot: #e0503f;
    --rot-grund: rgb(224 80 63 / 0.1);
    --bernstein: #e0a33c;
    --bernstein-grund: rgb(224 163 60 / 0.12);
    --schatten: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -18px rgb(0 0 0 / 0.7);
    --schatten-bild: 0 2px 4px rgb(0 0 0 / 0.3), 0 26px 60px -24px rgb(0 0 0 / 0.75);
    --papier: #eef2ee;
  }
}

/* ---------------------------------------------------------------- Grundlagen */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--schrift-anzeige);
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--akzent);
  color: #fff;
}

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

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.huelle-schmal {
  max-width: 880px;
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprungmarke {
  position: absolute;
  left: var(--rand);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--grund);
  text-decoration: none;
  font-weight: 600;
}

.sprungmarke:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- Kopf */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--grund) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--linie);
}

.kopf .huelle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.wortmarke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--schrift-anzeige);
  font-weight: 700;
  font-size: 27px;
  line-height: 1;
}

.wortmarke .it {
  color: var(--akzent);
}

.navi {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navi a:not(.knopf) {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-leise);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.navi a:not(.knopf):hover {
  color: var(--text);
  background: var(--glut);
}

.navi .knopf {
  margin-left: 10px;
}

/* ---------------------------------------------------------------- Knöpfe */

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: var(--schrift);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.knopf-voll {
  background: var(--knopf);
  color: #fff;
}

.knopf-voll:hover {
  background: var(--knopf-hover);
}

.knopf-rand {
  border-color: var(--linie-stark);
  color: var(--text);
}

.knopf-rand:hover {
  border-color: var(--text);
}

.knopf-klein {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 15px;
}

.knopf-breit {
  width: 100%;
}

/* Pfeile in Knöpfen gibt es nicht mehr (Handbuch-Altbestand) */
.pfeil,
.lampe {
  display: none;
}

/* ---------------------------------------------------------------- Bühne mit Kassenblatt */

.buehne {
  padding-block: clamp(48px, 8vw, 96px) clamp(72px, 10vw, 120px);
}

.buehne-raster {
  display: grid;
  gap: clamp(56px, 7vw, 72px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 40px);
}

@media (min-width: 980px) {
  .buehne-raster {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }
}

.buehne h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 108px);
  line-height: 0.92;
}

@media (max-width: 559px) {
  .buehne h1 br {
    display: none;
  }
}

.einleitung {
  max-width: 34em;
  margin: 0;
  color: var(--text-leise);
  font-size: 20px;
  line-height: 1.55;
}

.buehne-hinweis {
  max-width: 32em;
  margin: 18px 0 0;
  color: var(--text-leise);
  font-size: 15px;
}

.kassenblatt {
  position: relative;
  margin-inline: 4px 14px;
  margin-bottom: 36px;
  padding: 22px 22px 30px;
  border: 1px solid #d9e3dc;
  border-radius: 6px;
  background: var(--papier);
  color: var(--papier-tinte);
  box-shadow: var(--schatten-bild);
  transform: rotate(1.1deg);
}

.blatt-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--papier-rot);
}

.blatt-kopf strong {
  font-family: var(--schrift-anzeige);
  font-size: 24px;
  font-weight: 700;
}

.blatt-kopf span {
  color: var(--papier-leise);
  font-size: 14px;
}

.blatt {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14.5px;
  line-height: 1.35;
}

/* Feste Spaltenbreiten: die Beträge bestimmen das Maß, der Buchungstext nimmt den Rest */
.blatt thead .sp-datum { width: 4.6em; }
.blatt thead .sp-nr { width: 3.6em; }
.blatt thead .zahl { width: 6.4em; }

.blatt th,
.blatt td {
  padding: 8px 8px;
  text-align: left;
  vertical-align: baseline;
}

.blatt thead th {
  padding-top: 12px;
  color: var(--papier-leise);
  font-size: 12.5px;
  font-weight: 600;
}

.blatt tbody td,
.blatt thead th {
  border-bottom: 1px solid var(--papier-linie);
}

.blatt .zahl {
  border-left: 1px solid #ecc9c4;
  text-align: right;
  white-space: nowrap;
}

.blatt td.zahl {
  font-family: var(--schrift-anzeige);
  font-size: 16.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.blatt .sp-nr {
  color: var(--papier-leise);
  text-align: center;
}

.blatt .sp-datum {
  color: var(--papier-leise);
  white-space: nowrap;
}

.blatt .ein {
  color: #1d6b45;
}

.blatt .aus {
  color: #af2b1e;
}

.blatt .vortrag td {
  color: var(--papier-leise);
}

.blatt tfoot th {
  padding-top: 12px;
  font-family: var(--schrift-anzeige);
  font-size: 18px;
  font-weight: 700;
}

.blatt tfoot td {
  padding-top: 12px;
}

/* Doppelter Summenstrich: die Summe ist abgeschlossen */
.blatt td.summe {
  border-top: 4px double var(--papier-tinte);
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 559px) {
  .kassenblatt {
    margin-inline: 0;
    padding: 16px 12px 18px;
  }

  .blatt {
    font-size: 13px;
  }

  .blatt thead .zahl {
    width: 23%;
  }

  .blatt th,
  .blatt td {
    padding: 7px 5px;
  }

  .blatt td.zahl {
    font-size: 15px;
  }

  .blatt td.summe {
    font-size: 17px;
  }

  .blatt .sp-datum,
  .blatt .sp-nr {
    display: none;
  }
}

/* Der Prüfstempel – die einzige Bewegung der Seite */
/* Sitzt auf der unteren Blattkante, unter der Summe – die Summe bleibt lesbar */
.stempel {
  position: absolute;
  right: 26px;
  bottom: -50px;
  display: grid;
  justify-items: center;
  margin: 0;
  padding: 8px 18px 7px;
  border: 5px double var(--stempel);
  border-radius: 8px;
  color: var(--stempel);
  line-height: 1;
  opacity: 0.9;
  transform: rotate(-9deg);
  animation: stempeln 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.6s both;
}

.stempel strong {
  font-family: var(--schrift-anzeige);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stempel span {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@keyframes stempeln {
  from {
    opacity: 0;
    transform: rotate(-16deg) scale(1.8);
  }
  60% {
    opacity: 0.95;
    transform: rotate(-8deg) scale(0.95);
  }
  to {
    opacity: 0.9;
    transform: rotate(-9deg) scale(1);
  }
}

/* ---------------------------------------------------------------- Abschnitte */

.abschnitt {
  padding-block: clamp(72px, 10vw, 128px);
}

.abschnitt-flaeche {
  background: var(--flaeche-2);
}

.ueberschrift {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.ueberschrift h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1;
}

.ueberschrift p {
  max-width: 36em;
  margin: 16px 0 0;
  color: var(--text-leise);
  font-size: 19px;
}

/* Kleine Bezeichnung in normaler Schreibweise (auch im Handbuch genutzt) */
.marke-klein,
.kicker {
  margin: 0 0 10px;
  color: var(--akzent-text);
  font-size: 15px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- Funktionen */

.gruppen {
  display: grid;
  gap: 48px 40px;
}

@media (min-width: 900px) {
  .gruppen {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gruppe h3 {
  margin: 0;
  padding-top: 14px;
  border-top: 3px solid var(--text);
  font-size: 26px;
  line-height: 1.1;
}

.posten {
  margin: 10px 0 0;
}

.posten dt {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--linie);
  font-family: var(--schrift-anzeige);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

.gruppe .posten dt:first-child {
  margin-top: 4px;
  border-top: 0;
}

.posten dd {
  margin: 6px 0 0;
  color: var(--text-leise);
  font-size: 16.5px;
  line-height: 1.55;
}

.vereinsfarben {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--linie);
}

.vereinsfarben p {
  flex: 1 1 28em;
  max-width: 44em;
  margin: 0;
  color: var(--text-leise);
  font-size: 17px;
}

.vereinsfarben p strong {
  color: var(--text);
  font-weight: 600;
}

.farbpaare {
  display: flex;
  padding-left: 10px;
}

.farbpaare span {
  width: 40px;
  height: 40px;
  margin-left: -10px;
  border: 2px solid var(--grund);
  border-radius: 50%;
}

.paar-a { background: linear-gradient(135deg, #af2b1e 50%, #1a1d21 50%); }
.paar-b { background: linear-gradient(135deg, #1f4fa3 50%, #f2c230 50%); }
.paar-c { background: linear-gradient(135deg, #1d6b45 50%, #ffffff 50%); }
.paar-d { background: linear-gradient(135deg, #5b2a86 50%, #d9d9d9 50%); }
.paar-e { background: linear-gradient(135deg, #0f6e8c 50%, #e85d2a 50%); }

/* ---------------------------------------------------------------- Rundgang */

.zeige {
  display: grid;
  gap: 28px;
  align-items: center;
}

.zeige + .zeige {
  margin-top: clamp(64px, 9vw, 104px);
}

@media (min-width: 900px) {
  .zeige {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 56px;
  }

  .zeige-um {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  }

  .zeige-um .zeige-bild {
    order: 2;
  }
}

.zeige-bild img,
.paar-bild img {
  width: 100%;
  border: 1px solid var(--linie);
  border-radius: 8px;
  box-shadow: var(--schatten-bild);
}

/* Name des Reiters in der App, unterstrichen wie dort der aktive Reiter */
.reiter {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--akzent);
  color: var(--akzent-text);
  font-family: var(--schrift-anzeige);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.zeige-text h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
}

.zeige-text p:not(.reiter) {
  margin: 14px 0 0;
  color: var(--text-leise);
  font-size: 17.5px;
}

/* ---------------------------------------------------------------- Ablauf (auch im Handbuch) */

.fluss {
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--flaeche);
  box-shadow: var(--schatten);
}

.fluss-schritte {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 820px) {
  .fluss-schritte {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.schritt {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 20px 22px 22px;
  border: 1px solid var(--linie-stark);
  border-radius: 8px;
  background: var(--grund);
}

.schritt strong {
  font-family: var(--schrift-anzeige);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

.schritt > span:last-child {
  color: var(--text-leise);
  font-size: 15.5px;
  line-height: 1.5;
}

.schritt-nr {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--knopf);
  color: #fff;
  font-family: var(--schrift-anzeige);
  font-size: 19px;
  font-weight: 700;
}

.schritt-wer {
  color: var(--akzent-text);
  font-size: 14.5px;
  font-weight: 600;
}

/* Pfeile zwischen den Schritten: unten (schmal) bzw. rechts (breit) */
.schritt + .schritt::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -22px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--akzent);
  border-bottom: 2px solid var(--akzent);
  transform: translateX(-50%) rotate(45deg);
}

@media (min-width: 820px) {
  .schritt + .schritt::before {
    left: -27px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }
}

.fluss-gabel {
  position: relative;
  height: 48px;
}

.fluss-gabel::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: 24px;
  border-left: 2px dashed var(--linie-stark);
}

.fluss-gabel span {
  position: absolute;
  left: calc(100% / 6);
  right: calc(100% / 6);
  top: 24px;
  height: 24px;
  border: 2px dashed var(--linie-stark);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.fluss-gabel span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  height: 24px;
  border-left: 2px dashed var(--linie-stark);
}

@media (max-width: 819px) {
  .fluss-gabel span {
    left: 24px;
    right: auto;
    width: 0;
    border-radius: 0;
    border-width: 0 0 0 2px;
  }

  .fluss-gabel span::after {
    display: none;
  }

  .fluss-gabel::before {
    left: 24px;
  }
}

.fluss-enden {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 820px) {
  .fluss-enden {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.ende {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px 22px 20px;
  border: 1px solid var(--linie);
  border-top-width: 4px;
  border-radius: 8px;
}

.ende strong {
  font-family: var(--schrift-anzeige);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}

.ende span {
  color: var(--text-leise);
  font-size: 15.5px;
  line-height: 1.5;
}

.ende-gruen {
  border-top-color: var(--gruen);
  background: var(--gruen-grund);
}

/* Spende: Bernstein – angenommen, aber nicht erstattet; Rot bleibt der Ablehnung vorbehalten */
.ende-akzent {
  border-top-color: var(--bernstein);
  background: var(--bernstein-grund);
}

.ende-rot {
  border-top-color: var(--rot);
  background: var(--rot-grund);
}

.fluss-fuss {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--linie-stark);
  color: var(--text-leise);
  font-size: 15.5px;
}

.paar {
  display: grid;
  gap: 32px;
  align-items: end;
  margin-top: clamp(40px, 6vw, 64px);
}

@media (min-width: 820px) {
  .paar {
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
    gap: 44px;
  }
}

.paar-handy img {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border: 1px solid var(--linie);
  border-radius: 26px;
  box-shadow: var(--schatten-bild);
}

.paar figcaption {
  margin-top: 12px;
  color: var(--text-leise);
  font-size: 15px;
  text-align: center;
}

/* ---------------------------------------------------------------- Rollen: wer darf was */

.matrix-rahmen {
  overflow-x: auto;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--flaeche);
  box-shadow: var(--schatten);
}

.matrix {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.matrix th,
.matrix td {
  padding: 15px 18px;
  text-align: center;
}

.matrix thead th {
  border-bottom: 2px solid var(--text);
  font-family: var(--schrift-anzeige);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
}

.matrix tbody th {
  font-size: 16.5px;
  font-weight: 500;
  text-align: left;
}

.matrix tbody tr + tr th,
.matrix tbody tr + tr td {
  border-top: 1px solid var(--linie);
}

.matrix th:first-child {
  width: 46%;
  text-align: left;
}

.matrix .ja::before,
.matrix .nein::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
}

.matrix .ja::before,
.haken li::before {
  width: 22px;
  height: 22px;
  background: var(--gruen);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.matrix .nein::before {
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--linie-stark);
}

/* ---------------------------------------------------------------- Sicherheit */

.posten-zwei {
  display: grid;
  gap: 0 48px;
  margin: 0;
}

@media (min-width: 820px) {
  .posten-zwei {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.posten-zwei > div {
  padding: 20px 0 22px;
  border-top: 1px solid var(--linie);
}

.posten-zwei dt {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 23px;
}

.posten-zwei dd {
  max-width: 34em;
}

/* ---------------------------------------------------------------- Preise als Kassenzettel */

.preise {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 680px) {
  .preise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enthalten {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .preise {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 40px;
  }

  .enthalten {
    grid-column: auto;
    padding-top: 8px;
  }
}

.zettel {
  --zacke: 9px;
  position: relative;
  padding: 30px 28px 46px;
  background: var(--papier);
  color: var(--papier-tinte);
  /* Abgerissene Unterkante */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zacke)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zacke)) 100%;
}

.zettel h3 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1;
}

.zettel-posten {
  margin: 0;
  padding: 14px 0 6px;
  border-top: 1px dashed #9ea8a3;
}

.zettel-posten > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
}

.zettel-posten dt {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 8px;
  color: var(--papier-leise);
  font-size: 16px;
}

/* Punktlinie zwischen Posten und Betrag */
.zettel-posten dt::after {
  content: '';
  flex: 1;
  border-bottom: 2px dotted #b7c1bb;
  transform: translateY(-4px);
}

.zettel-posten dd {
  margin: 0;
  font-family: var(--schrift-anzeige);
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.zettel-posten .zettel-summe {
  margin: 6px 0;
  padding: 12px 0;
  border-block: 1px dashed #9ea8a3;
}

.zettel-posten .zettel-summe dt {
  color: var(--papier-tinte);
  font-size: 18px;
  font-weight: 600;
}

.zettel-posten .zettel-summe dd {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.zettel-hinweis {
  margin: 10px 0 22px;
  color: var(--papier-leise);
  font-size: 14.5px;
}

.zettel .knopf-rand {
  border-color: #9ea8a3;
  color: var(--papier-tinte);
}

.zettel .knopf-rand:hover {
  border-color: var(--papier-tinte);
}

.stempel-klein {
  top: 22px;
  right: 18px;
  bottom: auto;
  padding: 6px 12px 5px;
  border-width: 4px;
  transform: rotate(7deg);
  animation: none;
}

.stempel-klein strong {
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.enthalten h3 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.1;
}

.haken {
  margin: 0;
  padding: 0;
  list-style: none;
}

.haken li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--linie);
  font-size: 17px;
  line-height: 1.4;
}

.haken li::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.preise-fuss {
  max-width: 50em;
  margin: 36px 0 0;
  color: var(--text-leise);
  font-size: 15.5px;
}

/* ---------------------------------------------------------------- Fragen (auch im Handbuch) */

.fragen {
  border-bottom: 1px solid var(--linie);
}

.fragen details {
  border-top: 1px solid var(--linie);
}

.fragen summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-family: var(--schrift-anzeige);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.fragen summary::-webkit-details-marker {
  display: none;
}

.fragen summary::before,
.fragen summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--akzent);
  transition: transform 0.2s ease;
}

.fragen summary::after {
  transform: rotate(90deg);
}

.fragen details[open] summary::after {
  transform: rotate(0deg);
}

.fragen details p {
  max-width: 40em;
  margin: -6px 0 22px;
  color: var(--text-leise);
  font-size: 17px;
}

/* ---------------------------------------------------------------- Schluss */

.schluss {
  padding-block: clamp(64px, 9vw, 104px);
  background: #1a1d21;
  color: #eef1ee;
}

.schluss-raster {
  display: grid;
  gap: 28px 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .schluss-raster {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.schluss h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1;
}

.schluss p {
  max-width: 36em;
  margin: 16px 0 0;
  color: #b9c1bc;
  font-size: 19px;
}

.schluss .knoepfe {
  margin-top: 0;
}

.schluss .knopf-voll {
  background: #c43a2c;
}

.schluss .knopf-voll:hover {
  background: #d4473a;
}

.schluss .knopf-rand {
  border-color: rgb(238 241 238 / 0.35);
  color: #eef1ee;
}

.schluss .knopf-rand:hover {
  border-color: #eef1ee;
}

@media (prefers-color-scheme: dark) {
  .schluss {
    background: #0b0d0f;
    border-block: 1px solid var(--linie);
  }
}

/* ---------------------------------------------------------------- Fuß */

.fuss {
  padding-block: 40px 52px;
  border-top: 1px solid var(--linie);
  color: var(--text-leise);
  font-size: 15px;
}

.fuss .huelle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.fuss .wortmarke {
  color: var(--text);
  font-size: 22px;
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.fuss nav a {
  text-decoration: none;
}

.fuss nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.fuss p {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
}

/* ---------------------------------------------------------------- Fehlerseite */

.fehlerseite {
  min-height: 60vh;
  padding-block: clamp(64px, 12vw, 140px);
}

.fehlerseite h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.95;
}

.fehlerseite .einleitung {
  margin-top: 24px;
}

/* ---------------------------------------------------------------- Sichtbarkeit je Breite
   Am Ende der Datei, damit sie gleich spezifische Regeln wie .knopf { display: inline-flex } schlagen */

@media (max-width: 899px) {
  .nur-breit {
    display: none;
  }
}

@media (max-width: 599px) {
  .nur-mittel {
    display: none;
  }
}

@media (min-width: 900px) {
  .nur-schmal {
    display: none;
  }
}

/* ---------------------------------------------------------------- Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stempel {
    animation: none;
  }

  .fragen summary::after,
  .knopf {
    transition: none;
  }
}
