/* Info und Unterstützen (Review 19.11.2026, B1): hell, gut lesbar (Kontrast > 7:1), ohne Scrollen.
   Inhalte stehen auf Blätterseiten (blaettern.js), unten links „Zurück“, daneben große Blätterknöpfe.
   Immer „Beitrag“ / „Unterstützung“, nie „Spende“. */
body:has(.blatt-seite):not(.bf-cvi) { background: radial-gradient(ellipse at 25% 0%, #fffaf0, #f1e6d0 75%); color: #1f3d33; }
#app:has(> .blatt-seite) { box-sizing: border-box; max-width: 1120px; height: 100dvh; overflow: hidden; }
.blatt-seite { box-sizing: border-box; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; margin: 0 auto; color: #1f3d33; }
.blatt-kopf { display: flex; align-items: center; gap: 14px 18px; margin: 0; min-width: 0; }
.blatt-kopf img { display: block; flex: none; width: auto; height: clamp(30px, 6vh, 52px); margin: 0; padding: 5px 10px; border-radius: 12px; background: #0c1d38; box-sizing: content-box; }
.blatt-kopf-text { flex: 1 1 auto; min-width: 0; }
.blatt-kopf h1 { margin: 0; color: #1f4a3c; font-size: clamp(1.45rem, 1.6vw + 2vh, 2.6rem); line-height: 1.1; overflow-wrap: normal; hyphens: auto; }
.blatt-kopf h1:focus { outline: none; }
.blatt-anzeige { flex: none; padding: 6px 14px; border-radius: 999px; background: #efe0c0; color: #1f3d33; font-weight: 800; font-size: 1rem; }
.blatt-inhalt { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 14px; font-size: clamp(1.05rem, .5vw + 1vh, 1.3rem); line-height: 1.45; }
.blatt-inhalt > * { flex: none; margin: 0; }
.blatt-inhalt > [hidden] { display: none !important; }
.blatt-seite.blatt-eng .blatt-inhalt { gap: 8px; font-size: .95rem; line-height: 1.35; }
.blatt-inhalt h2 { margin: 0; color: #1f4a3c; font-size: 1.3em; line-height: 1.2; }
.blatt-inhalt p, .blatt-inhalt li { color: #2b3a33; }
.blatt-knoepfe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.blatt-seite :is(button.knopf, .link-knopf) { min-width: 120px; min-height: 96px; font-size: 1.15rem; }
body:not(.bf-cvi) .blatt-seite :is(button.knopf, .link-knopf) { background: #0c1d38; color: #fff9e9; border: 3px solid #c98a2e; box-shadow: 0 5px 0 #0c1d3855; }
body:not(.bf-cvi) .blatt-seite :is(button.knopf, .link-knopf):is(:hover, :focus-visible) { border-color: #e0a84a; outline: 4px solid #0c1d38; outline-offset: 3px; }
body:not(.bf-cvi) .blatt-seite button.knopf:disabled { opacity: .45; }
.blatt-fuss { margin: 0; }
/* Niedrige Fenster (Handy quer): Leiste steht im Fluss unter dem Inhalt, Ziele bleiben 120 × 96. */
@media (max-height: 450px) {
  #app:has(> .blatt-seite) { padding: 8px 12px; }
  .blatt-seite { gap: 6px; }
  .blatt-fuss { display: flex; flex-wrap: nowrap; gap: 8px; }
  .blatt-fuss > .knopf { flex: 1 1 0; padding: 6px 8px; font-size: 1rem; }
  .blatt-kopf img { height: 28px; }
  .blatt-inhalt { font-size: 1rem; gap: 8px; }
}
@media (min-height: 451px) { .blatt-fuss > [data-blatt] { flex: 1 1 0; max-width: 300px; } }

/* Info-Seite */
.info-seite .info-marke { color: #8b3a32; font-size: .8rem; font-weight: 800; letter-spacing: .22em; }
.info-seite .info-cta { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; border-radius: 16px; background: #fff3d6; border: 1px solid #d8c39a; }
.info-seite .info-cta p { margin: 0; }
.info-ki-titel { display: flex; align-items: center; gap: .5em; }
.info-ki-titel .ki-zeichen { flex: none; width: 1.7em; height: 1.7em; padding: .25em; border-radius: 50%; background: #0c1d38; color: #ffc85e; }

/* Unterstützen */
.unterstuetzen-karte { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px 20px; padding: 16px; border: 1px solid #d6c49f; border-radius: 18px; background: #fffaf0; box-shadow: 0 6px 18px #6f533a12; }
.unterstuetzen-karte h2 { margin: 0 0 8px; }
.unterstuetzen-qr { display: block; width: clamp(110px, 26vh, 200px); height: auto; aspect-ratio: 1; background: #fff; border: 6px solid #fff; border-radius: 8px; }
.unterstuetzen-konto { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; }
.unterstuetzen-konto dt { color: #5c4a2c; font-weight: 700; }
.unterstuetzen-konto dd { margin: 0; overflow-wrap: anywhere; }
.unterstuetzen-nr { font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.unterstuetzen-hinweis { margin: 0; font-size: .92em; }
.unterstuetzen-link { margin-block: 4px 10px; }
.unterstuetzen-ehrlich { padding: 14px 18px; border-radius: 16px; background: #f3ebe0; border: 1px solid #d8c39a; }
.unterstuetzen-ehrlich p { margin: 0; }
@media (max-width: 600px) {
  .unterstuetzen-karte { grid-template-columns: 1fr; justify-items: start; }
  .unterstuetzen-qr { width: clamp(100px, 20vh, 160px); }
  .blatt-kopf img { height: 30px; }
  .blatt-anzeige { font-size: .9rem; padding: 4px 10px; }
}

/* CVI: Schwarz mit Kontrastfarbe */
body.bf-cvi .blatt-seite, body.bf-cvi .blatt-seite :is(h1, h2, p, li, dd, .info-marke, .blatt-anzeige) { color: var(--bf-cvi-text, #fff); }
body.bf-cvi .blatt-anzeige { background: #000; border: 2px solid var(--bf-cvi-farbe, #ffd400); }
body.bf-cvi :is(.unterstuetzen-karte, .unterstuetzen-ehrlich, .info-cta) { background: #000; border-color: var(--bf-cvi-farbe, #ffd400); box-shadow: none; }
body.bf-cvi .unterstuetzen-konto dt { color: var(--bf-cvi-farbe, #ffd400); }
body.bf-cvi .info-ki-titel .ki-zeichen { background: #000; color: var(--bf-cvi-farbe, #ffd400); border: 2px solid currentColor; }

/* AssistUK-Logo in den Köpfen */
.kopf-logo { display: block; height: clamp(28px, 3.5vw, 40px); width: auto; margin-block-end: .35rem; }
.dorf-logo { display: block; height: clamp(26px, 3vw, 36px); width: auto; margin: 0 auto .4rem; filter: drop-shadow(0 2px 8px #07131eaa); }
.dorf-auswahl-kopf .dorf-logo { margin-inline: 0; height: 28px; }
@media (max-width: 600px) {
  .dorf-logo { margin-inline: 0; }
}
/* Handy hoch: Leiste zweispaltig, damit jeder Knopf ≥ 120 breit bleibt; „Zurück“ unten links. */
@media (min-height: 451px) and (max-width: 560px) {
  #app .blatt-fuss { display: grid !important; grid-template-columns: 1fr 1fr !important; }
  #app .blatt-fuss > * { min-width: 0 !important; width: auto !important; flex: none !important; }
  #app .blatt-fuss > [data-action="zurueck"] { order: 99 !important; grid-column: 1 !important; }
}

/* Handy hoch: Leiste im Fluss (spielflaeche.css), darum kein Freiraum für eine feste Leiste nötig. */
@media (min-height: 451px) and (max-width: 700px) {
  #app:has(> .blatt-seite) { padding: 10px !important; }
  #app .blatt-fuss { position: static !important; margin: 0 !important; padding: 8px 0 0 !important; border-top: 1px solid #d8c39a; }
}
@media (max-width: 560px) {
  .blatt-kopf { flex-wrap: wrap; gap: 6px 12px; }
  .blatt-kopf-text { flex: 1 1 60%; }
  .blatt-kopf h1 { font-size: clamp(1.35rem, 6.5vw, 1.8rem); }
  .info-seite .info-marke { letter-spacing: .12em; }
}
.info-seite .info-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Niedrige Fenster: QR-Karte kompakt (Hinweistext steht als eigener Block danach). */
@media (max-height: 450px) {
  .unterstuetzen-karte { padding: 8px; gap: 6px 14px; }
  .unterstuetzen-qr { width: 96px; }
  .unterstuetzen-konto { font-size: .9rem; margin: 0; }
  .unterstuetzen-karte h2 { margin: 0 0 4px; font-size: 1.05rem; }
}
@media (max-width: 600px) {
  .unterstuetzen-karte { grid-template-columns: auto minmax(0, 1fr); }
  .unterstuetzen-qr { width: clamp(90px, 28vw, 130px); }
  .unterstuetzen-konto { grid-template-columns: 1fr; gap: 0; font-size: .92rem; }
  .unterstuetzen-konto dd { margin-bottom: 4px; }
}
