/* KIRede – Gestaltung „Redekarten“
   Grund ist die grüne Schreibunterlage, auf ihr liegen Karteikarten mit roter
   Kopflinie und blauen Linien. Jeder Anlass hat seine Kartenfarbe.
   Tokens und Regeln: DESIGN.md */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Shantell Sans";
  src: url("/fonts/shantell-sans-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  /* Unterlage */
  --unterlage: #1d4d3c;
  --unterlage-tief: #133628;
  --unterlage-hell: #2b6450;
  --auf-gruen: #f2f6f1;
  --auf-gruen-2: #bfd5c8;

  /* Karte */
  --karte: #fbfcfd;
  --karte-schatten: 0 1px 2px rgb(10 30 22 / .25), 0 10px 24px -6px rgb(10 30 22 / .45);
  --karte-schatten-hoch: 0 2px 4px rgb(10 30 22 / .25), 0 22px 40px -10px rgb(10 30 22 / .55);
  --linie: #c9d9ec;
  --kopflinie: #d9434e;

  /* Tinte */
  --tinte: #1b2330;
  --tinte-2: #3f4958;
  --tinte-3: #5a6474;

  /* Handlung */
  --rot: #c3313d;
  --rot-tief: #a2242f;
  --fokus: #2463c9;
  --ok: #1f7a4d;
  --ok-hell: #dff3e7;
  --fehler: #b3202c;
  --fehler-hell: #fde3e5;
  --hinweis-hell: #fff4c9;

  /* Kartenfarben der Anlässe (Karteikarten in Farbe) */
  --k-rosa: #f7bdd0;
  --k-gelb: #f6d75a;
  --k-taube: #b2c6dc;
  --k-orange: #f4a46b;
  --k-mint: #a8dcbd;
  --k-flieder: #cfbde8;
  --k-himmel: #9fd0f0;
  --k-weiss: #fbfcfd;

  --f-titel: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --f-text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Shantell Sans", "Atkinson Hyperlegible Next", sans-serif;

  --radius: 4px;
  --zeile: 1.9rem; /* Linienabstand der Karten */
  --raum: clamp(4rem, 9vw, 8rem);

  color-scheme: light;
  accent-color: var(--rot);
}

/* ---------- Grundlage ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 5rem; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--auf-gruen);
  background-color: var(--unterlage);
  /* Filz der Schreibunterlage */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--k-gelb); color: var(--tinte); }
:focus-visible { outline: 3px solid var(--k-gelb); outline-offset: 3px; border-radius: 2px; }
.karte :focus-visible, .papier :focus-visible { outline-color: var(--fokus); }

h1, h2, h3, h4 {
  font-family: var(--f-titel);
  font-weight: 760;
  font-stretch: 88%;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); font-stretch: 92%; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
strong { font-weight: 700; }
img, svg { max-width: 100%; }
.zahl { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--k-gelb); color: var(--tinte); padding: .6rem 1rem; font-weight: 700; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.wrap { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.wrap--schmal { width: min(100% - 2rem, 52rem); margin-inline: auto; }
.abschnitt { padding-block: var(--raum); }
.abschnitt--tief { background-color: var(--unterlage-tief); }
.leise { color: var(--auf-gruen-2); }
.mitte { text-align: center; }

/* ---------- Karte ---------- */
.karte {
  --kf: var(--k-weiss);
  --pad: clamp(1.1rem, 3vw, 2rem);
  position: relative;
  color: var(--tinte);
  background-color: var(--kf);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--zeile) - 1px), var(--linie) calc(var(--zeile) - 1px), var(--linie) var(--zeile));
  background-position: 0 .6rem;
  border-radius: var(--radius);
  box-shadow: var(--karte-schatten);
  padding: 1rem var(--pad) 1.6rem;
}
.karte--blank { background-image: none; }
.karte--ohnelinien { background-image: none; }
/* Farbige Karten: Linien in der dunkleren Schattierung der Kartenfarbe */
.karte--rosa    { --kf: var(--k-rosa);    --linie: #e89bb4; --kopflinie: #b8334a; }
.karte--gelb    { --kf: var(--k-gelb);    --linie: #dfbd35; --kopflinie: #b5403a; }
.karte--taube   { --kf: var(--k-taube);   --linie: #95abc4; --kopflinie: #4f6480; }
.karte--orange  { --kf: var(--k-orange);  --linie: #de8a4e; --kopflinie: #a63a2a; }
.karte--mint    { --kf: var(--k-mint);    --linie: #86c49f; --kopflinie: #2f7552; }
.karte--flieder { --kf: var(--k-flieder); --linie: #b49fd6; --kopflinie: #6b4a9a; }
.karte--himmel  { --kf: var(--k-himmel);  --linie: #7db8df; --kopflinie: #2d6aa0; }

.karte__kopf {
  min-height: calc(var(--kopf, 3.4rem) - .2rem);
  margin: -1rem calc(-1 * var(--pad)) 0; padding: 1rem var(--pad) .45rem;
  background: var(--kf); border-bottom: 2px solid var(--kopflinie); border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  font-family: var(--f-titel); font-weight: 720; font-stretch: 90%; font-size: 1.1rem; letter-spacing: -0.01em;
  padding-bottom: .45rem;
}
.karte__kopf small { font-family: var(--f-hand); font-weight: 500; font-size: .95rem; color: var(--tinte-2); letter-spacing: 0; }
.karte__inhalt { padding-top: calc(var(--zeile) * .5); }
.karte__inhalt p, .karte__inhalt li { line-height: var(--zeile); }
.karte__nr {
  font-family: var(--f-hand); font-weight: 700; font-size: 1rem; color: var(--rot-tief);
}

.hand { font-family: var(--f-hand); font-weight: 500; }

/* Papierfläche für Lesetexte (eine große Karte ohne Linienraster) */
.papier {
  color: var(--tinte);
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--karte-schatten);
  padding: clamp(1.4rem, 4vw, 3.5rem);
}
.papier h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; }
.papier h3 { font-size: 1.2rem; margin-top: 1.6em; }
.papier h2:first-child, .papier h3:first-child { margin-top: 0; }
.papier p, .papier li { max-width: 70ch; color: var(--tinte-2); }
.papier a { color: var(--rot-tief); }
.papier ul { padding-left: 1.2rem; }
.papier li { margin-bottom: .35rem; }
.papier table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .98rem; }
.papier th, .papier td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.papier th { font-family: var(--f-titel); font-weight: 700; color: var(--tinte); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .7rem 1.4rem;
  font-family: var(--f-titel); font-weight: 720; font-stretch: 92%; font-size: 1.08rem; letter-spacing: -0.005em; line-height: 1.1;
  color: #fff; background: var(--rot);
  border: 2px solid var(--rot); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 1px rgb(0 0 0 / .2), 0 6px 14px -6px rgb(120 10 20 / .6);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .18s, box-shadow .18s;
}
.knopf:hover { background: var(--rot-tief); border-color: var(--rot-tief); text-decoration: none; transform: translateY(-1px); color: #fff; }
.knopf:active { transform: translateY(1px); box-shadow: 0 1px 1px rgb(0 0 0 / .2); }
.knopf:disabled, .knopf[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.knopf svg { width: 1.15em; height: 1.15em; flex: none; }
.knopf--gross { min-height: 3.6rem; padding: .9rem 1.8rem; font-size: 1.2rem; }
.knopf--tinte { background: var(--tinte); border-color: var(--tinte); box-shadow: 0 1px 1px rgb(0 0 0 / .2), 0 6px 14px -6px rgb(0 0 0 / .5); }
.knopf--tinte:hover { background: #000; border-color: #000; }
.knopf--leise { background: transparent; color: var(--tinte); border-color: var(--tinte); box-shadow: none; }
.knopf--leise:hover { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.knopf--hell { background: var(--auf-gruen); color: var(--unterlage-tief); border-color: var(--auf-gruen); }
.knopf--hell:hover { background: #fff; color: var(--unterlage-tief); border-color: #fff; }
.knopf--klein { min-height: 2.5rem; padding: .45rem .9rem; font-size: .98rem; }
.knopf--breit { width: 100%; }

.weiter {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--k-gelb); text-decoration-thickness: 3px; text-underline-offset: .3em;
}
.weiter::after { content: ""; width: .9em; height: .9em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.weiter:hover::after { transform: translateX(3px); }
.karte .weiter, .papier .weiter { text-decoration-color: var(--kopflinie); }

/* ---------- Kopf und Fuß ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgb(19 54 40 / .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.marke { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--auf-gruen); }
.marke:hover { text-decoration: none; }
.marke__karte {
  width: 2.1rem; height: 1.5rem; border-radius: 2px; background: var(--karte); position: relative; flex: none;
  transform: rotate(-6deg); box-shadow: 0 2px 4px rgb(0 0 0 / .35);
  background-image: linear-gradient(to bottom, transparent 5px, var(--kopflinie) 5px, var(--kopflinie) 7px, transparent 7px, transparent 11px, var(--linie) 11px, var(--linie) 12px, transparent 12px, transparent 16px, var(--linie) 16px, var(--linie) 17px, transparent 17px);
}
.marke__name { font-family: var(--f-titel); font-weight: 800; font-stretch: 85%; font-size: 1.45rem; letter-spacing: -0.03em; }
.marke__name b { color: var(--k-gelb); font-weight: 800; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a { text-decoration: none; padding: .55rem .8rem; border-radius: var(--radius); font-weight: 600; color: var(--auf-gruen-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--auf-gruen); background: rgb(255 255 255 / .07); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--k-gelb); }
.nav .knopf { color: #fff; margin-left: .5rem; }
.nav .knopf:hover { background: var(--rot-tief); }
.nav-schalter { display: none; }

@media (max-width: 860px) {
  .nav-schalter {
    display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--auf-gruen);
    border: 2px solid rgb(255 255 255 / .25); border-radius: var(--radius); padding: .45rem .8rem; font-weight: 700; font-family: var(--f-text); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--unterlage-tief); padding: .5rem 1rem 1.2rem; border-bottom: 1px solid rgb(255 255 255 / .1);
  }
  .nav.offen { display: flex; }
  .nav a { padding: .85rem .5rem; border-bottom: 1px solid rgb(255 255 255 / .07); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--k-gelb); }
  .nav .knopf { margin: 1rem 0 0; border-bottom: 0; }
}

.fuss { background: var(--unterlage-tief); padding: 4rem 0 2.5rem; color: var(--auf-gruen-2); font-size: .98rem; }
.fuss h2 { font-size: 1.05rem; font-stretch: 95%; letter-spacing: 0; color: var(--auf-gruen); margin-bottom: .8rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .4rem; }
.fuss a { color: var(--auf-gruen-2); text-decoration: none; }
.fuss a:hover { color: var(--auf-gruen); text-decoration: underline; }
.fuss__unten { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; }

/* ---------- Meldungen ---------- */
.meldung {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem;
  color: var(--tinte); background: var(--karte); box-shadow: var(--karte-schatten);
  border-top: 4px solid var(--tinte-3);
}
.meldung svg { width: 1.35rem; height: 1.35rem; flex: none; margin-top: .1rem; }
.meldung p { margin: 0; }
.meldung--ok { border-top-color: var(--ok); }
.meldung--ok svg { color: var(--ok); }
.meldung--fehler { border-top-color: var(--fehler); }
.meldung--fehler svg { color: var(--fehler); }
.meldung--hinweis { border-top-color: #c79a00; }

/* ---------- Formulare ---------- */
.feld { margin-bottom: 1.3rem; }
.feld label, .feld .label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--tinte); }
.feld .pflicht { color: var(--rot); margin-left: .15rem; }
.feld .hilfe { display: block; font-size: .92rem; color: var(--tinte-3); margin-top: .3rem; }
.eingabe {
  display: block; width: 100%;
  font: inherit; font-size: 1.05rem; color: var(--tinte);
  background: #fff; border: 2px solid #8a94a3; border-radius: var(--radius);
  padding: .7rem .85rem; min-height: 3rem;
  transition: border-color .15s, box-shadow .15s;
}
.eingabe::placeholder { color: #6b7483; }
.eingabe:hover { border-color: var(--tinte-2); }
.eingabe:focus { outline: none; border-color: var(--fokus); box-shadow: 0 0 0 3px rgb(36 99 201 / .25); }
.eingabe[aria-invalid="true"], .eingabe.is-invalid { border-color: var(--fehler); }
textarea.eingabe { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
select.eingabe {
  appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2330' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem;
}
.eingabe--code { font-family: var(--f-titel); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-stretch: 95%; }
.fehlertext { color: var(--fehler); font-weight: 600; font-size: .94rem; margin-top: .35rem; display: block; }
.haken { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.haken input { width: 1.35rem; height: 1.35rem; margin-top: .1rem; flex: none; cursor: pointer; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Startseite: Held ---------- */
.held { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); position: relative; }
.held__raster > * { min-width: 0; }
.held__raster { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.held__karte { --kopf: 4.2rem; --zeile: 2.35rem; --pad: clamp(1.4rem, 3.4vw, 3rem); padding: 1rem var(--pad) 2rem; transform: rotate(-1.2deg); }
.held__karte .karte__kopf { font-size: 1rem; }
.held__karte h1 { margin: .35em 0 .3em; font-size: clamp(2.4rem, 4.9vw, 4.4rem); line-height: 1.03; }
.held__karte h1 em { font-style: normal; background: linear-gradient(to top, var(--k-gelb) .42em, transparent .42em); padding: 0 .06em; }
.held__text { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: var(--zeile); color: var(--tinte-2); max-width: 34ch; margin-bottom: calc(var(--zeile) * .6); }
.held__aktion { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.held__preis { font-family: var(--f-hand); font-size: 1.05rem; color: var(--tinte-2); line-height: var(--zeile); }
.held__preis strong { color: var(--tinte); }

/* Kartenstapel: Anlass wählen. Jede Karte zeigt ihren Kopf, die vorderste ganz. */
.faecher { position: relative; }
.faecher__titel { font-family: var(--f-hand); color: var(--auf-gruen); font-size: 1.15rem; margin: 0 0 1rem; }
.faecher__titel svg { width: 2.6rem; height: 1.6rem; vertical-align: -0.35rem; color: var(--k-gelb); }
.faecher ol { list-style: none; margin: 0; padding: 0; position: relative; height: calc(4 * 3.55rem + 13.5rem); }
.faecher li { position: absolute; left: 0; right: 0; top: calc(var(--i) * 3.55rem); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.faecher li:nth-child(1) { --i: 0; --r: -2.2deg; --x: 1.4rem; }
.faecher li:nth-child(2) { --i: 1; --r: 1.6deg;  --x: -.6rem; }
.faecher li:nth-child(3) { --i: 2; --r: -1deg;   --x: 1rem; }
.faecher li:nth-child(4) { --i: 3; --r: 2deg;    --x: -.2rem; }
.faecher li:nth-child(5) { --i: 4; --r: -.8deg;  --x: .6rem; }
.faecher li { transform: translateX(var(--x)) rotate(var(--r)); }
.faecher li:is(:hover, :focus-within) { transform: translateX(calc(var(--x) + 1.8rem)) rotate(var(--r)); z-index: 10; }
.faecher .karte { --kopf: 3.3rem; --zeile: 1.75rem; display: block; text-decoration: none; min-height: 13.5rem; padding-bottom: 1rem; box-shadow: 0 1px 2px rgb(10 30 22 / .3), 0 -2px 10px -4px rgb(10 30 22 / .35), 0 14px 26px -10px rgb(10 30 22 / .55); }
.faecher .karte__kopf { font-size: 1.3rem; }
.faecher .karte__kopf::after { content: ""; width: 1.1rem; height: 1.1rem; flex: none; background: currentColor; opacity: 0; transform: translateX(-.4rem); transition: opacity .2s, transform .2s; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; align-self: center; }
.faecher li:is(:hover, :focus-within) .karte__kopf::after { opacity: 1; transform: none; }
.faecher .karte p { font-size: 1rem; line-height: var(--zeile); margin: 0; color: var(--tinte-2); }
.faecher .karte .hand { display: block; color: var(--tinte); font-size: 1.05rem; line-height: var(--zeile); }
.faecher__mehr { margin: 1.6rem 0 0; }
.faecher__mehr a { color: var(--auf-gruen); }

/* Stapel: einmal austeilen beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .js .faecher li { animation: austeilen .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
  @keyframes austeilen { from { transform: translateX(var(--x)) translateY(calc(var(--i) * -3.55rem)) rotate(0deg); } }
  .js .held__karte { animation: auflegen .7s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes auflegen { from { transform: rotate(-3deg) translateY(.8rem); } }
}

@media (max-width: 991px) {
  .held__raster { grid-template-columns: minmax(0, 1fr); }
  .held__karte { transform: rotate(-.6deg); }
  .faecher ol { height: auto; display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1rem; padding: .6rem 1rem 1.4rem; scrollbar-width: thin; scrollbar-color: var(--unterlage-hell) transparent; }
  .faecher li, .faecher li:is(:hover, :focus-within) { position: static; transform: none; width: 15.5rem; flex: none; scroll-snap-align: start; animation: none !important; }
  .faecher li:nth-child(odd) .karte { transform: rotate(-1.2deg); }
  .faecher li:nth-child(even) .karte { transform: rotate(1deg); }
  .faecher .karte { min-height: 12rem; }
  .faecher .karte__kopf::after { opacity: 1; transform: none; }
  .faecher__mehr { margin-top: .4rem; }
}

/* ---------- Startseite: Ablauf ---------- */
.ablauf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; margin-top: 3rem; }
.ablauf > :nth-child(1) { transform: rotate(-1deg); }
.ablauf > :nth-child(2) { transform: rotate(.8deg) translateY(1.5rem); }
.ablauf > :nth-child(3) { transform: rotate(-.5deg) translateY(.5rem); }
.ablauf .karte { min-height: 100%; }
.ablauf dl { margin: 0; }
.ablauf dt { font-size: .85rem; color: var(--tinte-2); font-weight: 600; line-height: 1; padding-top: .55rem; }
.ablauf dd { font-family: var(--f-hand); font-size: 1.06rem; margin: 0; line-height: calc(var(--zeile) - .55rem); padding-bottom: .1rem; }
.ablauf .zitat { font-size: 1.02rem; line-height: var(--zeile); color: var(--tinte); }
.ablauf ul { list-style: none; padding: 0; margin: 0; }
.ablauf li { line-height: var(--zeile); display: flex; gap: .55rem; align-items: baseline; }
.ablauf li svg { width: 1rem; height: 1rem; color: var(--ok); flex: none; transform: translateY(.15rem); }
.beispiel { display: inline-block; font-family: var(--f-hand); font-size: .85rem; font-weight: 600; color: #8f2a25; border: 1.5px solid currentColor; border-radius: 3px; padding: 0 .4rem; line-height: 1.5; transform: rotate(3deg); }
@media (max-width: 991px) {
  .ablauf { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .ablauf > :nth-child(n) { transform: none; }
}

/* ---------- Karteikasten der Anlässe ---------- */
.kasten {
  margin-top: 3rem; padding: clamp(1rem, 2.5vw, 1.8rem); border-radius: 6px;
  background: #0f2c21; box-shadow: inset 0 3px 12px rgb(0 0 0 / .5);
}
.kasten ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1rem; }
.kasten a { display: block; text-decoration: none; height: 100%; }
.kasten .karte { --kopf: 2.9rem; --zeile: 1.65rem; height: 100%; padding-bottom: 1.1rem; transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
.kasten a:hover .karte, .kasten a:focus-visible .karte { transform: translateY(-.35rem) rotate(-.6deg); box-shadow: var(--karte-schatten-hoch); }
.kasten .karte__kopf { font-size: 1.12rem; }
.kasten .karte p { font-size: .98rem; line-height: var(--zeile); color: var(--tinte); margin: .3rem 0 0; }

/* ---------- Preise ---------- */
.preise { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.preisliste { list-style: none; margin: 0; padding: 0; }
.preisliste li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dashed var(--linie); }
.preisliste li:last-child { border-bottom: 0; }
.preisliste .name { font-family: var(--f-titel); font-weight: 720; font-stretch: 90%; font-size: 1.3rem; }
.preisliste .dauer { grid-column: 1; color: var(--tinte-2); font-size: .98rem; font-family: var(--f-titel); font-stretch: 95%; font-weight: 500; }
.preisliste .betrag { grid-row: 1 / span 2; grid-column: 2; font-family: var(--f-titel); font-weight: 800; font-stretch: 85%; font-size: 2rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
@media (max-width: 767px) { .preise { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.fragen { display: grid; gap: .75rem; }
.fragen details { background: var(--karte); color: var(--tinte); border-radius: var(--radius); box-shadow: var(--karte-schatten); }
.fragen summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.3rem; position: relative;
  font-family: var(--f-titel); font-weight: 700; font-stretch: 92%; font-size: 1.15rem; letter-spacing: -0.01em;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem;
  background: var(--kopflinie);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%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='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s;
}
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details[open] summary { box-shadow: inset 0 -2px 0 var(--kopflinie); }
.fragen .antwort { padding: 1rem 1.3rem 1.2rem; color: var(--tinte-2); max-width: 70ch; }
.fragen .antwort p:last-child { margin: 0; }

/* ---------- Unterseiten ---------- */
.seitenkopf { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.seitenkopf h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: .3em; }
.seitenkopf p { font-size: 1.15rem; color: var(--auf-gruen-2); max-width: 46ch; }
.seite { padding-bottom: var(--raum); }

/* ---------- Generator ---------- */
.reiter { display: flex; gap: .35rem; padding-left: .8rem; position: relative; z-index: 1; overflow-x: auto; scrollbar-width: none; }
.reiter::-webkit-scrollbar { display: none; }
.reiter__tab {
  flex: none; display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem .7rem; border-radius: 6px 6px 0 0;
  background: var(--unterlage-hell); color: #dbe8df;
  font-family: var(--f-titel); font-weight: 700; font-stretch: 92%; font-size: 1rem;
  border: 0; cursor: default;
}
.reiter__tab .n { font-family: var(--f-hand); font-weight: 700; }
.reiter__tab[aria-current="step"] { background: var(--karte); color: var(--tinte); box-shadow: 0 -2px 6px rgb(0 0 0 / .15); }
.reiter__tab.erledigt { background: #3f7a63; color: var(--auf-gruen); }
.reiter__tab.erledigt::before { content: ""; width: .95rem; height: .95rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' 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='black' stroke-width='3.2' 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; }
.formkarte { --kopf: 0rem; border-top-left-radius: 0; padding: clamp(1.3rem, 3.5vw, 2.6rem); background-image: none; }
.schritt[hidden] { display: none; }
.schritt__titel { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3em; }
.schritt__text { color: var(--tinte-2); margin-bottom: 1.6rem; }

.wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .8rem; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl label {
  display: block; height: 100%; cursor: pointer; position: relative;
  border-radius: var(--radius); padding: .9rem 1rem 1rem; color: var(--tinte);
  background: var(--kf, var(--karte)); border: 2px solid transparent;
  box-shadow: 0 1px 2px rgb(0 0 0 / .18), 0 4px 10px -4px rgb(0 0 0 / .25);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s, border-color .15s;
}
.wahl label:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(0 0 0 / .2), 0 10px 18px -8px rgb(0 0 0 / .35); }
.wahl .titel { display: block; font-family: var(--f-titel); font-weight: 720; font-stretch: 90%; font-size: 1.12rem; line-height: 1.2; padding-bottom: .4rem; margin-bottom: .4rem; border-bottom: 2px solid var(--kl, var(--kopflinie)); }
.wahl .text { display: block; font-size: .95rem; color: var(--tinte-2); line-height: 1.4; }
.wahl--laenge .text { font-family: var(--f-titel); font-stretch: 95%; font-weight: 500; }
.wahl input:checked + label { border-color: var(--tinte); box-shadow: 0 0 0 3px var(--tinte), 0 10px 18px -8px rgb(0 0 0 / .35); transform: translateY(-2px); }
.wahl input:checked + label::after {
  content: ""; position: absolute; right: .6rem; top: .6rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--tinte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 1rem no-repeat;
}
.wahl input:focus-visible + label { outline: 3px solid var(--fokus); outline-offset: 3px; }
.wahl--laenge { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wahl--laenge .preis { display: block; font-family: var(--f-titel); font-weight: 800; font-stretch: 85%; font-size: 1.8rem; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.wahl--laenge .bezahlt { display: inline-block; margin-top: .4rem; font-size: .85rem; font-weight: 700; color: var(--ok); }
@media (max-width: 600px) { .wahl--laenge { grid-template-columns: 1fr; } }

.k-rosa { --kf: var(--k-rosa); --kl: #b8334a; }
.k-gelb { --kf: var(--k-gelb); --kl: #b5403a; }
.k-taube { --kf: var(--k-taube); --kl: #4f6480; }
.k-orange { --kf: var(--k-orange); --kl: #a63a2a; }
.k-mint { --kf: var(--k-mint); --kl: #2f7552; }
.k-flieder { --kf: var(--k-flieder); --kl: #6b4a9a; }
.k-himmel { --kf: var(--k-himmel); --kl: #2d6aa0; }

.schritt__nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 2px solid var(--linie); }
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.4rem; }
.felder .feld--breit { grid-column: 1 / -1; }
@media (max-width: 700px) { .felder { grid-template-columns: 1fr; } }

.kasse { margin-top: 1.8rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.kasse__teil { border: 2px solid var(--linie); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: #fff; }
.kasse__teil h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.kasse__teil p { font-size: .95rem; color: var(--tinte-2); }
.kasse__oder { display: none; }
#paypal-knopf { min-height: 3rem; margin-top: .8rem; }
.paypal-sperre { font-size: .93rem; color: var(--tinte-3); font-style: italic; }
@media (max-width: 800px) { .kasse { grid-template-columns: 1fr; } }

.code-zeile { display: flex; gap: .6rem; }
.code-zeile .eingabe { flex: 1; min-width: 0; }

/* Ladeansicht während die KI schreibt */
.schreibt {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 1rem;
  background: rgb(19 54 40 / .92); backdrop-filter: blur(4px);
}
.schreibt.an { display: grid; }
.schreibt .karte { --kopf: 3.4rem; width: min(100%, 30rem); text-align: left; }
.schreibt__zeilen { padding-top: .9rem; }
.schreibt__zeilen span { display: block; height: .7rem; margin: 1.2rem 0; border-radius: 3px; background: var(--tinte); opacity: .14; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .schreibt__zeilen span { animation: schreiben 2.4s cubic-bezier(.4, 0, .2, 1) infinite; }
  .schreibt__zeilen span:nth-child(2) { animation-delay: .4s; }
  .schreibt__zeilen span:nth-child(3) { animation-delay: .8s; }
  .schreibt__zeilen span:nth-child(4) { animation-delay: 1.2s; }
  @keyframes schreiben { 0% { transform: scaleX(0); opacity: .3; } 55%, 100% { transform: scaleX(1); opacity: .14; } }
}

/* ---------- Ergebnis ---------- */
.ergebnis { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 991px) { .ergebnis { grid-template-columns: 1fr; } }
.rede { --kopf: 3.6rem; --zeile: 2.05rem; padding-bottom: 2.5rem; }
.rede__text {
  font-size: 1.15rem; line-height: var(--zeile); color: var(--tinte); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 68ch;
  padding-top: calc(var(--zeile) * .5); min-height: 20rem; outline: none; border-radius: 2px;
}
.rede__text:focus-visible { outline: 3px solid var(--fokus); outline-offset: 6px; }
.rede__leiste { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; font-size: .92rem; color: var(--tinte-3); margin-top: 1rem; }
.speicherstand { font-family: var(--f-hand); }
.seitenspalte { display: grid; gap: 1.2rem; position: sticky; top: 5.5rem; }
@media (max-width: 991px) { .seitenspalte { position: static; } }
.seitenspalte .karte { --kopf: 3rem; }
.seitenspalte .knopf { width: 100%; justify-content: flex-start; }
.aktionen { display: grid; gap: .6rem; padding-top: .9rem; }
.angaben { margin: 0; padding-top: .6rem; font-size: .93rem; }
.angaben dt { color: var(--tinte-3); font-weight: 600; margin-top: .5rem; }
.angaben dd { margin: 0; color: var(--tinte); overflow-wrap: anywhere; }
.versionen { list-style: none; padding: .6rem 0 0; margin: 0; font-size: .92rem; }
.versionen li { padding: .5rem 0; border-bottom: 1px dashed var(--linie); }
.versionen li:last-child { border-bottom: 0; }

.ueberarbeiten { margin-top: 1.5rem; }
.ueberarbeiten .karte { --kopf: 3.2rem; }

/* Vortragsmodus: die Rede als nummerierte Redekarten */
.vortrag { position: fixed; inset: 0; z-index: 300; background: var(--unterlage); display: none; flex-direction: column; }
.vortrag.an { display: flex; }
.vortrag__kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem clamp(1rem, 3vw, 2rem); color: var(--auf-gruen); }
.vortrag__buehne { flex: 1; display: grid; place-items: center; padding: 0 clamp(.8rem, 3vw, 2rem); overflow: hidden; min-height: 0; }
.vortrag .karte { --kopf: 3.6rem; --zeile: clamp(2.3rem, 4.6vh, 3rem); width: min(100%, 52rem); max-height: 100%; overflow-y: auto; padding-bottom: 2rem; }
.vortrag .karte__inhalt { font-size: clamp(1.25rem, 2.6vh, 1.7rem); line-height: var(--zeile); white-space: pre-wrap; }
.vortrag__fuss { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 1rem; color: var(--auf-gruen); }
.vortrag__stand { font-family: var(--f-hand); font-size: 1.1rem; min-width: 7rem; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .vortrag .karte.neu { animation: umblaettern .35s cubic-bezier(.16, 1, .3, 1); }
  .vortrag .karte.neu.zurueck { animation-name: umblaettern-z; }
  @keyframes umblaettern { from { transform: translateX(2.5rem) rotate(1.5deg); opacity: 0; } }
  @keyframes umblaettern-z { from { transform: translateX(-2.5rem) rotate(-1.5deg); opacity: 0; } }
}

dialog.teilen { border: 0; padding: 0; background: transparent; max-width: min(100% - 2rem, 34rem); width: 100%; }
dialog.teilen::backdrop { background: rgb(10 30 22 / .7); }

/* ---------- Premium ---------- */
.pakete { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: stretch; }
.pakete > li { list-style: none; }
.pakete .karte { --kopf: 3.4rem; height: 100%; display: flex; flex-direction: column; }
.pakete .karte__inhalt { flex: 1; display: flex; flex-direction: column; }
.paket__preis { font-family: var(--f-titel); font-weight: 800; font-stretch: 82%; font-size: clamp(2.6rem, 4vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; margin: .6rem 0 .2rem; font-variant-numeric: tabular-nums; }
.paket__je { font-family: var(--f-hand); color: var(--tinte-2); margin-bottom: 1rem; }
.paket__liste { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.paket__liste li { line-height: var(--zeile); display: flex; gap: .55rem; align-items: baseline; }
.paket__liste svg { width: 1rem; height: 1rem; flex: none; color: var(--ok); transform: translateY(.15rem); }
.paket--beliebt { transform: translateY(-.8rem) rotate(.6deg); }
.stempel {
  display: inline-block; font-family: var(--f-hand); font-weight: 700; font-size: .9rem; color: var(--rot-tief);
  border: 2px solid currentColor; border-radius: 4px; padding: 0 .45rem; transform: rotate(-4deg);
}
@media (max-width: 900px) { .pakete { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } .paket--beliebt { transform: none; } }
.js .paketwahl:not(.an) { display: none; }

.code-gross {
  font-family: var(--f-titel); font-weight: 800; font-stretch: 85%; font-size: clamp(1.4rem, 4.5vw, 2.4rem); letter-spacing: .04em;
  background: #fff; border: 2px dashed var(--tinte-3); border-radius: var(--radius); padding: 1rem; text-align: center; overflow-wrap: anywhere;
  user-select: all;
}

/* ---------- Admin ---------- */
.admin-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.kennzahlen div { background: var(--karte); color: var(--tinte); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--karte-schatten); }
.kennzahlen dt { font-size: .88rem; color: var(--tinte-3); font-weight: 600; }
.kennzahlen dd { margin: 0; font-family: var(--f-titel); font-weight: 800; font-stretch: 88%; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.tabelle th, .tabelle td { padding: .55rem .6rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: middle; white-space: nowrap; }
.tabelle th { font-family: var(--f-titel); font-weight: 700; color: var(--tinte); background: #f1f5fa; }
.tabelle .code { font-family: var(--f-titel); font-weight: 700; letter-spacing: .03em; }
.etikett { display: inline-block; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: #e8edf3; color: var(--tinte-2); }
.etikett--ok { background: var(--ok-hell); color: var(--ok); }
.etikett--aus { background: var(--fehler-hell); color: var(--fehler); }
.balken { display: grid; gap: .35rem; padding-top: .6rem; }
.balken div { display: grid; grid-template-columns: 4rem 1fr 4.5rem; gap: .6rem; align-items: center; font-size: .9rem; }
.balken span.b { height: .9rem; border-radius: 2px; background: var(--unterlage-hell); min-width: 2px; }

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; color: #000; }
  .kopf, .fuss, .seitenspalte, .ueberarbeiten, .rede__leiste, .skip { display: none !important; }
  .karte, .papier { box-shadow: none; }
}

/* Redekarten drucken: je Karte eine Seite (A6 quer) */
.druckkarten { display: none; }
@media print {
  html.druck-karten body > *:not(.druckkarten) { display: none !important; }
  html.druck-karten .druckkarten { display: block; }
  html.druck-karten .druckkarten .karte { --kopf: 2.2rem; --zeile: 1.55rem; page-break-after: always; break-after: page; box-shadow: none; border: 1px solid #999; min-height: 95mm; font-size: 12pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.druck-karten .druckkarten .karte__inhalt { white-space: pre-wrap; line-height: var(--zeile); }
  @page { margin: 12mm; }
}

/* ---------- Nachbesserungen aus der Design-Kritik ---------- */
.fuss li { margin: 0; }
.fuss li a { display: inline-block; padding: .55rem 0; }
.weiter { padding-block: .55rem; }
.fehlerliste { margin: 0 0 1.2rem; }
.schritt__summe { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; margin: 1.6rem 0 0; padding: .9rem 1.1rem; background: #f1f5fa; border-radius: var(--radius); color: var(--tinte); }
.schritt__summe strong { font-family: var(--f-titel); font-stretch: 92%; font-size: 1.1rem; }
.seitenspalte h2, .ueberarbeiten h2 { font: inherit; margin: 0; letter-spacing: inherit; }

/* Ruhiger Ton für Trauerreden: keine Handschrift, Kopflinie in Taubenblau */
.ruhig .karte__nr, .ruhig .karte__kopf small, .ruhig .speicherstand, .ruhig .hand { font-family: var(--f-text); font-weight: 600; }
.ruhig .karte__nr { color: #4f6480; }
.ruhig .karte { --kopflinie: #4f6480; }

@media (max-width: 600px) {
  .reiter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 0; gap: .25rem; }
  .reiter__tab { font-size: .86rem; padding: .55rem .4rem .6rem; justify-content: center; gap: .3rem; }
  .reiter__tab .lang { display: none; }
  .code-zeile { flex-wrap: wrap; }
  .code-zeile .eingabe { flex-basis: 100%; }
  .code-zeile .knopf { flex: 1; }
  .held__karte { --zeile: 2rem; }
  .knopf { min-height: 2.9rem; }
}
@media (min-width: 601px) { .reiter__tab .kurz { display: none; } }
@media (max-width: 480px) {
  .held__aktion .knopf { width: 100%; }
}
@media (max-width: 600px) {
  .kasten { padding: .7rem; }
  .kasten ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .kasten .karte { --pad: .8rem; --zeile: 1.45rem; padding-bottom: .7rem; }
  .kasten .karte__kopf { font-size: .98rem; min-height: 2.6rem; }
  .kasten .karte p { font-size: .88rem; }
}
@media (max-width: 480px) { .held__karte .karte__kopf small { display: none; } }

/* ---------- Anlass-Seiten ---------- */
.brotkrumen { font-size: .95rem; color: var(--auf-gruen-2); margin-bottom: 1rem; }
.brotkrumen a { color: var(--auf-gruen-2); }
.brotkrumen a:hover { color: var(--auf-gruen); }
.anlass-kopf p { font-size: 1.18rem; max-width: 52ch; color: var(--auf-gruen); }
.anlass { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: start; }
.anlass__text h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2em; }
.anlass__text h2:first-child { margin-top: 0; }
.anlass__text p { font-size: 1.08rem; line-height: 1.7; }
.anlass__beispiel { --kopf: 3.2rem; --zeile: 2rem; margin-top: 1rem; box-shadow: 0 1px 2px rgb(0 0 0 / .15), 0 8px 18px -8px rgb(0 0 0 / .3); }
.anlass__beispiel p { color: var(--tinte); font-size: 1.08rem; line-height: var(--zeile); max-width: none; margin: 0; }
.anlass__klein { font-size: .92rem !important; color: var(--tinte-3) !important; margin-top: .6rem; }
.anlass__fragen { margin-top: 1rem; }
.anlass__fragen details { box-shadow: none; border: 1.5px solid var(--linie); }
.anlass__seite { position: sticky; top: 5.5rem; }
.anlass__felder { list-style: none; padding: 0; margin: 0; }
.anlass__felder li { padding: .35rem 0; border-bottom: 1px dashed rgb(27 35 48 / .2); font-size: .98rem; }
.anlass__felder li:last-child { border-bottom: 0; }
.anlass__felder .pflicht { color: var(--rot-tief); margin-left: .15rem; }
@media (max-width: 991px) { .anlass { grid-template-columns: 1fr; } .anlass__seite { position: static; } }
