/* Freifunk Lippe – gemeinsame Basis aller Varianten.
   Farben nach den Freifunk-Styles (wiki.freifunk.net/Freifunk-Styles):
   Gelb #ffb400 (Flächen), Magenta #dc0067 (Akzente, nicht großflächig), Blau #009ee0 (nur punktuell).
   Gelb und Blau nie als Textfarbe auf Hell: Kontrast < 3:1. */

/* ---------- Schriften (selbst gehostet, OFL) ---------- */
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("../fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens (Standard = helle Papier-Variante) ---------- */
:root {
  --ff-gelb: #ffb400;
  --ff-magenta: #dc0067;
  --ff-blau: #009ee0;
  --ff-schwarz: #1a171b;

  --page-bg: #f1eee8;
  --page-tex: var(--papier);
  --ink: #1a171b;
  --muted: #514b55;
  --surface: #ffffff;
  --line: #d9d3c8;
  --link: #c4005c;            /* abgedunkeltes Magenta: 5:1 auf Papier, 6:1 auf Weiß */
  --stat-mensch: #c4005c; --stat-bot: #8a7444;   /* Statistik: beide mind. 3:1 auf Weiß */
  --btn-bg: #dc0067;          /* Weiß darauf: 4,95:1 */
  --btn-ink: #ffffff;
  --btn-hover: #b80056;
  --focus: #1a171b;

  --kopf-bg: #f1eee8;
  --kopf-ink: #1a171b;
  --hero-bg: transparent;
  --hero-ink: #1a171b;
  --hero-muted: #514b55;
  --mark-bg: #ffb400;
  --mark-ink: inherit;
  --ring-1: #dc0067;
  --ring-2: #ffb400;
  --denkmal: #1a171b;
  --denkmal-fill: #ffffff;
  --wald: color-mix(in srgb, #ffb400 38%, transparent);
  --land-hinten: #e6dcc6;       /* Papierschichten des Teutoburger Walds */
  --land-mitte: #f3cf7a;
  --land-h: clamp(110px, 16vw, 230px);
  --flaeche-bg: #ffb400;        /* große Farbfläche im Seitenrhythmus */
  --flaeche-ink: #1a171b;
  --flaeche-muted: #2e2a30;
  --st-fill: #ffffff;
  --sektion-weiss: #ffffff;
  --sek-rand: #1a171b;
  --sek-ink: #1a171b;

  --zahlen-bg: #ffb400;
  --zahlen-ink: #1a171b;
  --zahlen-num: #1a171b;
  --alt-bg: #ffffff;
  --fuss-bg: #1a171b;
  --fuss-ink: #f3efe8;
  --fuss-link: #ffcc4d;

  --shadow: 0 1px 2px rgb(26 23 27 / .06), 0 10px 30px -12px rgb(26 23 27 / .22);
  --shadow-hoch: 0 2px 4px rgb(26 23 27 / .06), 0 22px 44px -16px rgb(26 23 27 / .32);
  --rund: 20px 14px 22px 12px / 14px 22px 12px 20px;   /* leicht unregelmäßig, wie ausgeschnitten */

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --head-case: uppercase;
  --head-scale: 1;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --lisa-h: clamp(150px, 24vw, 270px);
  --scale: 1;

  /* Papierstruktur als winzige SVG-Kachel */
  --papier: url("../img/deko/papier.svg");
}


/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--scale)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg) var(--page-tex);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }   /* AVIF/WebP-Hülle ohne Einfluss aufs Layout */
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .16em; }
h1, h2, h3 { font-family: var(--font-head); text-transform: var(--head-case); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; font-weight: 700; }
h2 { font-size: calc(clamp(2rem, 6vw, 3rem) * var(--head-scale)); }
h3 { font-size: calc(1.45rem * var(--head-scale)); font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ff-schwarz); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.intro { color: var(--muted); max-width: 38rem; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Knöpfe ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 14px 18px 13px 19px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .2s;
}
.btn:hover { transform: translateY(-3px); text-decoration: none; }
.btn--primaer { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 8px 18px -10px rgb(220 0 103 / .8); }
.btn--primaer:hover { background: var(--btn-hover); box-shadow: 0 14px 24px -12px rgb(220 0 103 / .9); }
.btn--sekundaer { border-color: var(--sek-rand); color: var(--sek-ink); background: transparent; }
.btn--sekundaer:hover { background: color-mix(in srgb, var(--sek-rand) 8%, transparent); }
.btn--rand { border-color: currentColor; color: var(--link); background: transparent; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--kopf-bg); color: var(--kopf-ink); transition: box-shadow .3s; }
.kopf.gescrollt { box-shadow: 0 6px 20px -14px rgb(0 0 0 / .45); }
.kopf__inner { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
/* Logo: Bildzeichen (Ringe mit Hermann) und daneben der Name als Text, so bleibt es groß und in jedem Modus lesbar */
.logo { flex-shrink: 0; display: flex; align-items: center; gap: .55rem; color: var(--kopf-ink); text-decoration: none; }
.logo img { height: 46px; width: auto; }
.logo__text { font-family: var(--font-body); font-weight: 700; font-size: 1.12rem; line-height: 1.02; letter-spacing: -.01em; }
.kopf__tools { display: flex; gap: .4rem; margin-left: auto; }
.tool {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .4rem .75rem;
  font: inherit; font-weight: 700; font-size: .95rem;
  color: var(--kopf-ink); background: transparent;
  border: 2px solid color-mix(in srgb, var(--kopf-ink) 25%, transparent); border-radius: 12px;
  cursor: pointer;
}
.tool:hover, .tool[aria-expanded="true"] { border-color: var(--kopf-ink); }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--kopf-ink); text-decoration: none; font-weight: 700; display: block; padding: .6rem 0; }
.nav a:hover { color: var(--link); text-decoration: underline; }
/* Untermenüs (<details>): mobil eingerückt an einer Mesh-Linie, breit als Zettel unter dem Eintrag */
.nav__gruppe > summary { display: flex; align-items: center; justify-content: space-between; gap: .3rem; padding: .6rem 0; font-weight: 700; color: var(--kopf-ink); cursor: pointer; list-style: none; }
.nav__gruppe > summary::-webkit-details-marker { display: none; }
.nav__gruppe > summary .icon { width: 1.15rem; height: 1.15rem; transition: rotate .2s; }
.nav__gruppe[open] > summary .icon { rotate: 180deg; }
.nav__gruppe > summary:hover { color: var(--link); }
.nav .nav__unter { margin: 0 0 .5rem .35rem; padding-left: .9rem; border-left: 2px dashed color-mix(in srgb, var(--kopf-ink) 45%, transparent); }
.nav__unter a { padding: .5rem 0; font-size: .98rem; }
.nav a.aktiv, .nav__gruppe.aktiv > summary { text-decoration: underline; text-decoration-color: var(--ff-gelb); text-decoration-thickness: 3px; text-underline-offset: .4em; }
.nav a[aria-current="page"] { color: var(--link); }

/* Mobil: Menü klappt unter der Kopfzeile auf */
html.js .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--kopf-bg); padding: .5rem clamp(1rem, 4vw, 2rem) 1rem; box-shadow: 0 16px 24px -18px rgb(0 0 0 / .5); display: none; }
html.js .nav.offen { display: block; }
html.no-js .nav { order: 3; width: 100%; }
html.no-js .kopf__inner { flex-wrap: wrap; }
html.no-js .tool { display: none; }

@media (min-width: 60rem) {
  .logo img { height: 56px; }
  .logo__text { font-size: 1.3rem; }
  html.js .nav, html.no-js .nav { position: static; display: block; padding: 0; box-shadow: none; background: none; width: auto; order: 0; margin-left: auto; }
  .nav > ul { display: flex; align-items: center; gap: 1.6rem; }
  .nav__gruppe { position: relative; }
  .nav__gruppe > summary { justify-content: flex-start; }
  .nav .nav__unter { position: absolute; z-index: 60; top: calc(100% + .6rem); left: -1rem; min-width: 15.5rem; margin: 0; padding: .55rem;
    background: var(--surface); border: 0; border-top: 5px solid var(--ff-gelb); border-radius: var(--rund); box-shadow: var(--shadow-hoch); rotate: -.5deg; }
  .nav__unter a { color: var(--ink); padding: .55rem .75rem; border-radius: 10px; }
  .nav__unter a:hover { color: var(--ink); background: color-mix(in srgb, var(--ff-gelb) 25%, transparent); text-decoration: none; }
  html[data-contrast="hoch"] .nav__unter { border: 2px solid #000; border-top-width: 5px; }
  .kopf__tools { margin-left: 1rem; }
  .tool--menu { display: none !important; }
}

/* Ansicht-Panel */
/* Ansicht: schwebender Punkt unten links, Panel öffnet sich darüber */
.ansicht-knopf {
  position: fixed; z-index: 55; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; padding: 0;
  color: var(--kopf-ink); background: var(--kopf-bg); border: 2px solid color-mix(in srgb, var(--kopf-ink) 30%, transparent); border-radius: 50%;
  box-shadow: var(--shadow-hoch); cursor: pointer; transition: transform .25s ease, border-color .2s;
}
.ansicht-knopf .icon { width: 1.6rem; height: 1.6rem; }
.ansicht-knopf:hover { transform: translateY(-3px); border-color: var(--kopf-ink); }
.ansicht-knopf[aria-expanded="true"] { border-color: var(--ff-gelb); }
html.no-js .ansicht-knopf { display: none; }
.ansicht {
  position: fixed; z-index: 56; left: max(1rem, env(safe-area-inset-left)); bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.25rem);
  width: min(21rem, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); overflow-y: auto;
  background: var(--surface); color: var(--ink);
  border-radius: var(--rund); box-shadow: var(--shadow-hoch);
  padding: 1.25rem; border: 1px solid var(--line);
}
.ansicht[hidden] { display: none; }
.ansicht__titel { font-size: 1.4rem; }
.ansicht__zeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; border-top: 1px solid var(--line); }
.stepper { display: flex; align-items: center; gap: .5rem; }
.stepper button, .ansicht__reset {
  min-width: 44px; min-height: 44px; font: inherit; font-weight: 700;
  border: 2px solid var(--ink); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer;
}
.stepper output { min-width: 3.5rem; text-align: center; font-weight: 700; }
.schalter input { appearance: none; width: 3.2rem; height: 1.9rem; border-radius: 1rem; background: #8a8490; position: relative; cursor: pointer; margin: 0; flex-shrink: 0; transition: background .2s; }
.schalter input::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; transition: transform .2s; }
.schalter input:checked { background: var(--btn-bg); }
.schalter input:checked::after { transform: translateX(1.3rem); }
.ansicht__reset { width: 100%; margin-top: .75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-bg); color: var(--hero-ink); padding: clamp(2.5rem, 7vw, 5rem) 0 calc(var(--land-h) * .95); overflow: hidden; }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 1rem; align-items: center; }
.hero h1 { font-size: calc(clamp(3rem, 12vw, 6.2rem) * var(--head-scale)); line-height: 1.12; margin-bottom: .35em; }
.hero mark { background: linear-gradient(transparent 58%, var(--mark-bg) 58% 92%, transparent 92%); color: var(--mark-ink); padding: 0 .06em; }
.hero__lead { font-size: clamp(1.15rem, 2.6vw, 1.35rem); max-width: 34rem; color: var(--hero-muted); }
.hero__marke { color: var(--hero-ink); font-weight: 700; }
.hero__art { position: relative; align-self: end; min-height: calc(var(--lisa-h) * 1.95); margin-bottom: calc(var(--land-h) * -.86); display: grid; place-items: end center; }
.denkmal { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: calc(var(--lisa-h) * 1.55); aspect-ratio: 300 / 420; }
.denkmal svg { width: 100%; height: 100%; overflow: visible; }
.denkmal__wald { fill: var(--land-mitte); }
.land { position: absolute; left: 0; bottom: 0; width: 100%; height: var(--land-h); z-index: 0; pointer-events: none; }
.land--vorne { z-index: 2; fill: var(--zahlen-bg); }
.land__hinten { fill: var(--land-hinten); }
.land__mitte { fill: var(--land-mitte); }
.land__haus path { fill: var(--denkmal-fill); stroke: var(--denkmal); stroke-width: 2; stroke-linejoin: round; }
.land__funk path { fill: none; stroke: var(--ring-1); stroke-width: 2.2; stroke-linecap: round; }
.land__mesh { fill: none; stroke: var(--denkmal); stroke-width: 1.6; stroke-dasharray: 3 8; stroke-linecap: round; opacity: .65; }
.land__knoten { fill: var(--ring-1); }
html[data-motion="an"] .land__funk path { animation: funk 2.8s ease-in-out infinite; }
html[data-motion="an"] .land__funk path:nth-child(2) { animation-delay: .3s; }
.denkmal__bau { fill: var(--denkmal-fill); stroke: var(--denkmal); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.deko { position: absolute; border-radius: 50%; }
.deko--blau { width: 22px; height: 22px; background: var(--ff-blau); top: 12%; right: 18%; }
.deko--gelb { width: 34px; height: 34px; background: var(--ff-gelb); top: 38%; left: 8%; }
html[data-motion="an"] .deko { animation: schweben 5s ease-in-out infinite alternate; }
html[data-motion="an"] .deko--gelb { animation-duration: 6.5s; animation-delay: -2s; }
/* Sockeloberkante liegt bei y = 334 von 420, Mitte bei x = 160 von 300 */
.lisa-spot--hero { position: absolute; left: 53.3%; bottom: 20.5%; transform: translateX(-50%); width: calc(var(--lisa-h) * .3); height: var(--lisa-h); }

@media (min-width: 52rem) {
  .hero__inner { grid-template-columns: 1.25fr 1fr; gap: 2rem; }
  .hero__art { min-height: calc(var(--lisa-h) * 2.05); }
}

/* Abgerissene Papierkante zwischen Abschnitten */
.riss { position: absolute; left: 0; width: 100%; height: clamp(18px, 3vw, 36px); pointer-events: none; }
.riss--flaeche-oben { top: calc(-1 * clamp(18px, 3vw, 36px) + 1px); fill: var(--flaeche-bg); }
.riss--flaeche-unten { bottom: calc(-1 * clamp(18px, 3vw, 36px) + 1px); fill: var(--flaeche-bg); transform: scaleY(-1); }
.riss--oben { top: calc(-1 * clamp(18px, 3vw, 36px) + 1px); bottom: auto; fill: var(--fuss-bg); transform: scaleY(-1); }

/* ---------- Live-Zahlen ---------- */
.zahlen { position: relative; background: var(--zahlen-bg); color: var(--zahlen-ink); padding: .75rem 0 1.5rem; --zahl-fs: calc(clamp(2.6rem, 10vw, 4.8rem) * var(--head-scale)); }
.zahlen__inner { display: grid; grid-template-columns: 1fr; align-items: center; }
.zahlen__liste { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 0; }
/* Mesh-Linie verbindet die Zahlen über ihre Knotenpunkte: schmal 2 × 2 (Linie in der ersten Reihe), breit alle vier in einer Reihe */
.zahlen__liste::before { content: ""; position: absolute; left: 4px; right: calc((100% - .75rem) / 2 - 4px); top: calc(var(--zahl-fs) + .25rem + .5rem); border-top: 2px dashed currentColor; opacity: .55; }
@media (min-width: 40rem) {
  .zahlen { --zahl-fs: calc(clamp(2.3rem, 6vw, 4.2rem) * var(--head-scale)); }
  .zahlen__liste { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .zahlen__liste::before { right: calc((100% - 3.75rem) / 4 - 4px); }
}
.zahl { display: flex; flex-direction: column; }
.zahl dd { order: -1; }
.zahl dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: var(--zahl-fs); line-height: 1; color: var(--zahlen-num); font-variant-numeric: tabular-nums; }
.zahl dt { position: relative; z-index: 1; display: flex; width: fit-content; padding-right: .6rem; background: var(--zahlen-bg); align-items: flex-start; gap: .45rem; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1.25; margin-top: .25rem; }
.zahl dt::before { content: ""; flex-shrink: 0; width: 9px; height: 9px; margin-top: .2rem; border-radius: 50%; background: var(--zahlen-num); box-shadow: 0 0 0 3px var(--zahlen-bg); }
.zahlen__hinweis, .zahlen__fehlt { grid-column: 1 / -1; margin: .9rem 0 0; font-size: .9rem; display: flex; align-items: baseline; gap: .5rem; }
.puls { position: relative; top: .05em; }
.zahlen__fehlt { margin: 0; font-weight: 700; font-size: 1rem; }
.puls { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
html[data-motion="an"] .puls { animation: puls 2s ease-out infinite; }
.lisa-spot--zahlen { display: none; }
@media (min-width: 52rem) {
  .zahlen__inner { position: relative; padding-right: 14rem; }
  .lisa-spot--zahlen { display: block; position: absolute; right: clamp(1rem, 4vw, 2rem); bottom: 0; width: 12rem; height: calc(var(--lisa-h) * .6); }
}

/* ---------- Typografische Stimme ---------- */
.dach { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font-family: var(--font-head); font-weight: 500; font-size: .95rem; text-transform: uppercase; letter-spacing: .14em; color: var(--link); }
.dach::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; transform: rotate(-4deg); }
.strich, .kringel { position: relative; isolation: isolate; white-space: nowrap; }
.strich::after { content: ""; position: absolute; z-index: -1; left: -3%; right: -3%; bottom: -.1em; height: .34em;
  background: url("../img/deko/strich.svg") 0 0 / 100% 100% no-repeat; }
.kringel::after { content: ""; position: absolute; z-index: -1; inset: -.38em -.42em -.3em;
  background: url("../img/deko/kringel.svg") 0 0 / 100% 100% no-repeat; }
.flaeche .strich::after { filter: brightness(0) invert(1); }
h2:has(.kringel) { line-height: 1.3; }

/* ---------- Abschnitte ---------- */
.wege, .freifunk, .sponsoren { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.wege { padding-top: clamp(1rem, 3vw, 2rem); }
.kopfzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.kopfzeile .lisa-spot { flex-shrink: 0; width: calc(var(--lisa-h) * .7); height: calc(var(--lisa-h) * .9); }

.karten { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.karte {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; rotate: var(--dreh, 0deg);
  background: var(--surface); color: var(--ink);
  padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--rund);
  box-shadow: var(--shadow); border-top: 6px solid var(--akzent, var(--ff-gelb));
  transition: transform .35s cubic-bezier(.2,.8,.3,1), rotate .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s;
}
.karte:hover { transform: translateY(-6px); rotate: 0deg; box-shadow: var(--shadow-hoch); }
.karte--1 { --dreh: -1.2deg; --band-x: 50%; --band-dreh: -4deg; }
.karte--2 { --akzent: var(--ff-magenta); --dreh: .9deg; --band-x: 26%; --band-dreh: 6deg; }
.karte--3 { --akzent: var(--ff-blau); --dreh: -.6deg; --band-x: 74%; --band-dreh: -7deg; }
/* Klebeband: hält die Karte (und Zettel), wie aufgeklebt */
.zettel::before { content: ""; }
.karte__klebeband, .zettel::before { position: absolute; z-index: 2; top: -19px; left: var(--band-x); width: 128px; height: 38px; translate: -50% 0; rotate: var(--band-dreh);
  background:
    linear-gradient(180deg, rgb(255 255 255 / .55) 0 18%, rgb(255 255 255 / 0) 34% 70%, rgb(255 255 255 / .28) 86%),
    repeating-linear-gradient(90deg, rgb(120 100 60 / .06) 0 1px, transparent 1px 5px),
    rgb(246 236 204 / .72);
  box-shadow: 0 1px 1px rgb(26 23 27 / .12), 0 4px 10px -4px rgb(26 23 27 / .28);
  backdrop-filter: blur(.4px);
  clip-path: polygon(0 6%, 3% 0, 6% 9%, 9% 1%, 12% 7%, 88% 2%, 91% 9%, 94% 0, 97% 8%, 100% 3%, 99% 24%, 100% 42%, 98% 60%, 100% 78%, 99% 97%, 96% 91%, 93% 100%, 90% 92%, 87% 99%, 13% 96%, 10% 100%, 7% 91%, 4% 99%, 1% 93%, 2% 74%, 0 56%, 2% 38%, 0 20%); }
html[data-contrast="hoch"] .karte__klebeband, html[data-contrast="hoch"] .zettel::before { background: #fff; box-shadow: 0 0 0 2px #000; }
/* Lisa als runder Aufkleber */
.aufkleber { position: relative; display: block; width: 5.5rem; height: 5.5rem; margin-bottom: 1rem; border-radius: 50%; overflow: hidden; rotate: -5deg;
  background: color-mix(in srgb, var(--akzent, var(--ff-gelb)) 30%, var(--surface)); border: 4px solid #fff; box-shadow: 0 3px 8px rgb(26 23 27 / .2); }
.aufkleber img { position: absolute; left: 50%; top: 6%; height: 270%; width: auto; max-width: none; translate: -50% 0; }
.karte--2 .aufkleber img { top: 14%; }
/* Mesh zwischen den Karten */
@media (min-width: 52rem) {
  .karte:not(:last-child)::after { content: ""; position: absolute; z-index: -1; top: 4.3rem; right: -1.4rem; width: 1.6rem; border-top: 3px dashed var(--denkmal); opacity: .5; }
}
.karte p { color: var(--muted); }
.karte .btn { margin-top: auto; }
@media (min-width: 52rem) { .karten { grid-template-columns: repeat(3, 1fr); } }
/* Mobil: Karten nebeneinander zum Wischen, die nächste schaut am Rand hervor */
@media (max-width: 51.99rem) {
  .karten:not(.karten--zwei) { --rand: clamp(1rem, 4vw, 2rem); grid-auto-flow: column; grid-auto-columns: min(80%, 21rem); gap: 1rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
    margin-inline: calc(-1 * var(--rand)); padding: 1.75rem var(--rand) 1.5rem; scroll-padding-inline: var(--rand); }
  .karte { scroll-snap-align: start; }
}

.flaeche { position: relative; z-index: 1; background: var(--flaeche-bg); color: var(--flaeche-ink); --link: var(--flaeche-ink); --muted: var(--flaeche-muted); --focus: var(--flaeche-ink); }
.stationen { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2.75rem; }
.station { position: relative; }
.station__bild { display: flex; justify-content: center; }
.station__bild svg { width: 132px; height: auto; fill: none; stroke: var(--flaeche-ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.station .st-flaeche, .station .st-router { fill: var(--st-fill); }
.station .st-akzent { fill: var(--ff-blau); }
.station .st-funk-grund path { stroke: var(--flaeche-bg); stroke-width: 5.5; }
.station .st-funk path { stroke: var(--ff-magenta); stroke-width: 2; }
html[data-motion="an"] .station .st-funk path { animation: funk 2.4s ease-in-out infinite; }
html[data-motion="an"] .station .st-funk path:nth-child(2) { animation-delay: .25s; }
html[data-motion="an"] .station .st-funk path:nth-child(3) { animation-delay: .5s; }
.station__ort { margin: .6rem 0 .1rem; font-family: var(--font-head); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }
.station p:last-child { color: var(--muted); margin: 0; }
/* Mesh-Verbindung zur nächsten Station: mobil senkrecht, breit waagerecht */
.station:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -2.4rem; height: 2rem; border-left: 2px dashed var(--flaeche-ink); opacity: .6; }
@media (min-width: 52rem) {
  .stationen { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .station:not(:last-child)::after { left: calc(50% + 74px); right: calc(-50% - 2.5rem + 74px); top: 57px; bottom: auto; height: 0; border-left: 0; border-top: 2px dashed var(--flaeche-ink); }
}
/* Vier Absätze unter den Stationen, getrennt durch eine gestrichelte Mesh-Linie */
.ff-text { display: grid; gap: 1.1rem 2.5rem; margin: 3rem 0 0; padding-top: 2.25rem; border-top: 2px dashed var(--flaeche-ink); }
.ff-text p { margin: 0; color: var(--muted); line-height: 1.6; }
.ff-text strong { color: var(--flaeche-ink); }
@media (min-width: 52rem) { .ff-text { grid-template-columns: 1fr 1fr; } }
.sponsoren { background: var(--sektion-weiss); padding-top: clamp(4rem, 9vw, 6.5rem); }

.logos { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
/* Weiße Kachel für jedes Logo, auch im Dunkelmodus: so bleiben alle Logos in ihren Originalfarben gut lesbar */
.sponsor { flex: 0 1 calc(50% - .45rem); display: grid; place-items: center; height: 6.5rem; padding: .9rem 1rem;
  background: #fff; border-radius: var(--rund); box-shadow: var(--shadow); border: 1px solid #ece6da;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s; }
.sponsor:hover { transform: translateY(-4px); box-shadow: var(--shadow-hoch); }
.sponsor img { max-width: 100%; height: auto; }
@media (min-width: 40rem) { .sponsor { flex-basis: calc((100% - 1.8rem) / 3); } }
@media (min-width: 60rem) { .sponsor { flex-basis: calc((100% - 3.6rem) / 5); } }
/* Mobil: zwei Reihen, nach rechts wischen für weitere Logos */
@media (max-width: 39.99rem) {
  .logos { --rand: clamp(1rem, 4vw, 2rem); display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: 42%; justify-content: start; gap: .75rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
    margin-inline: calc(-1 * var(--rand)); padding: .5rem var(--rand) 1rem; scroll-padding-inline: var(--rand); }
  .sponsor { scroll-snap-align: start; height: 5.5rem; }
}

/* Neuigkeiten: bewusst klein und ruhig */
.sponsoren { position: relative; z-index: 1; }
.riss--weiss-unten { bottom: calc(-1 * clamp(18px, 3vw, 36px) + 1px); fill: var(--sektion-weiss); transform: scaleY(-1); }
html[data-contrast="hoch"] .riss--weiss-unten { display: none; }
.news { padding: clamp(4rem, 9vw, 6rem) 0 clamp(3.5rem, 8vw, 5rem); }
.news__alle { margin-top: 1.75rem; }
.tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); min-width: 4.5rem; }
.mehr { font-weight: 700; }

/* ---------- Footer ---------- */
.fuss { position: relative; background: var(--fuss-bg); color: var(--fuss-ink); padding: 3rem 0 5.5rem; margin-top: 2rem; --focus: var(--ff-gelb); }
.fuss a { color: var(--fuss-link); }
.fuss h2 { font-size: calc(2rem * var(--head-scale)); }
.fuss__inner { display: grid; gap: 2rem; align-items: end; }
.fuss address { font-style: normal; margin-bottom: 1rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss__wege li, .fuss__links li { padding: .3rem 0; }
.fuss__register { font-size: .9rem; opacity: .85; margin-top: 1rem; }
.fuss .lisa-spot--abschied { height: calc(var(--lisa-h) * .9); width: 100%; }
.fuss__orte { font-size: .85rem; opacity: .8; margin-top: 2rem; border-top: 1px solid rgb(255 255 255 / .15); padding-top: 1rem; }
@media (min-width: 52rem) { .fuss__inner { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ---------- Unterseiten: Seitenkopf (folgt Tag & Nacht wie der Hero) ---------- */
.seitenkopf { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); --muted: var(--hero-muted); padding: clamp(1.25rem, 4vw, 2.5rem) 0 calc(clamp(18px, 3vw, 36px) + clamp(1.5rem, 4vw, 2.5rem)); }
.seitenkopf__inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.seitenkopf h1 { font-size: calc(clamp(2.5rem, 9vw, 4.4rem) * var(--head-scale)); line-height: 1.12; margin-bottom: .35em; }
.seitenkopf .intro { font-size: clamp(1.1rem, 2.4vw, 1.25rem); margin: 0; }
.lisa-spot--seite { flex-shrink: 0; width: calc(var(--lisa-h) * .7); height: var(--lisa-h); }
.riss--seite { bottom: -1px; fill: var(--page-bg); }
.krumen ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .92rem; color: var(--hero-muted); }
.krumen li + li::before { content: "›"; margin: 0 .5rem; }
.krumen a { color: var(--link); }
.krumen a, .krumen span { display: inline-block; padding-block: .6rem; }   /* Klickfläche ≥ 44 px */

.anleitungen { padding-top: clamp(2rem, 5vw, 3rem); }
.karte h2 { font-size: calc(1.45rem * var(--head-scale)); font-weight: 500; }
.karte h3 { font-size: calc(1.45rem * var(--head-scale)); font-weight: 500; }

/* Zwei Karten auf Unterseiten (Wege, Beiträge, Hilfe) */
.karten__block { margin: 0 0 3rem; }
.karten__titel { font-size: calc(1.7rem * var(--head-scale)); margin-bottom: .5rem; }
.anleitung .karten { padding: .75rem 0 0; }
.anleitung .karte { margin: 0; }
@media (min-width: 40rem) { .karten--zwei { grid-template-columns: 1fr 1fr; } }
.karte__betrag { margin: -.2rem 0 .5rem; font-family: var(--font-head); font-size: calc(1.6rem * var(--head-scale)); font-weight: 700; color: var(--ink); }
.karten__fuss { margin: 1.5rem 0 0; color: var(--muted); }

/* Schrittleiste „Firmware installieren“: Kreise an einer Mesh-Linie */
.leiste { margin: 0 0 2.75rem; }
.leiste ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; }
.anleitung .leiste li { position: relative; margin: 0; }
.leiste li:not(:last-child)::after { content: ""; position: absolute; top: 1.55rem; left: 50%; width: 100%; border-top: 3px dashed var(--ink); opacity: .35; }
.leiste a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .2rem; text-align: center; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .88rem; line-height: 1.25; }
.leiste__nr { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--ff-gelb);
  font-family: var(--font-head); font-size: 1.25rem; box-shadow: 0 0 0 4px var(--page-bg); }
.leiste li.aktiv .leiste__nr { background: var(--ff-gelb); color: var(--ff-schwarz); }
.leiste a:hover .leiste__text { color: var(--link); text-decoration: underline; }

/* Wege A–D zum Aufspielen */
.weg { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 .5rem; font-size: calc(1.3rem * var(--head-scale)); scroll-margin-top: 6rem; }
.weg__buchstabe { display: inline-grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 8px 11px 7px 10px;
  background: var(--btn-bg); color: var(--btn-ink); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.fw-weg { margin: .7rem 0 0; font-size: .93rem; }
.fw-weg a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.fw-weg .weg__buchstabe { width: 1.6rem; height: 1.6rem; font-size: .95rem; }

.karte__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: 1rem; border-radius: 50%; rotate: -5deg;
  background: color-mix(in srgb, var(--akzent, var(--ff-gelb)) 30%, var(--surface)); border: 4px solid #fff; box-shadow: 0 3px 8px rgb(26 23 27 / .2); }
.karte__icon .icon { width: 2.3rem; height: 2.3rem; }

/* Anleitung: schmale Lesespalte */
.anleitung { padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 8vw, 5rem); }
.anleitung__inner > * { max-width: 50rem; }
.anleitung ul { padding-left: 1.25rem; }
.anleitung li { margin-bottom: .35em; }

.bedarf { position: relative; rotate: -.6deg; margin: 0 0 3rem; padding: 1.75rem 1.5rem 1.25rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); --band-x: 18%; --band-dreh: -5deg; }
.bedarf h2 { font-size: calc(1.45rem * var(--head-scale)); font-weight: 500; }
.bedarf ul { list-style: none; margin: 0; padding: 0; }
.bedarf li { position: relative; padding-left: 2.1rem; margin-bottom: .6rem; }
/* gezeichneter Haken in Magenta */
.bedarf li::before { content: ""; position: absolute; left: .35rem; top: .2em; width: .55rem; height: 1rem; border: solid var(--ff-magenta); border-width: 0 3px 3px 0; rotate: 40deg; border-radius: 1px; }

/* Schritte, verbunden durch eine Mesh-Linie */
.schritte { position: relative; list-style: none; margin: 0; padding: 0; }
.schritte::before { content: ""; position: absolute; left: calc(1.6rem - 1.5px); top: 1.6rem; bottom: 2rem; border-left: 3px dashed var(--ink); opacity: .4; }
.schritt { position: relative; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 1rem; margin-bottom: 2.5rem; scroll-margin-top: 6rem; }
.schritt__nr { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--ff-gelb); color: var(--ff-schwarz);
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; box-shadow: 0 0 0 5px var(--page-bg); }
.schritt:last-child .schritt__nr { background: var(--ff-magenta); color: #fff; }
.schritt__text { min-width: 0; padding-top: .4rem; }
.schritt h2 { font-size: calc(1.7rem * var(--head-scale)); }
.schritt p, .schritt li { color: var(--muted); }
.schritt strong { color: var(--ink); }

.tabelle { margin: 1rem 0 .4rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); overflow: hidden; }
.tabelle table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.4; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
.tabelle thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tabelle tbody tr:last-child > * { border-bottom: 0; }
.tabelle tbody th { color: var(--ink); }
.tabelle td { color: var(--muted); }
.tabelle__preis { white-space: nowrap; }
.tabelle__fuss { font-size: .85rem; }
/* Schmal: jede Zeile als kleiner Block (Modell und Preis oben, Hinweis darunter) */
/* (gilt nicht für Zahlentabellen der Statistik, .tabelle--daten) */
@media (max-width: 40rem) {
  .tabelle:not(.tabelle--daten) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabelle:not(.tabelle--daten) tr { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
  .tabelle:not(.tabelle--daten) tbody tr:last-child { border-bottom: 0; }
  .tabelle:not(.tabelle--daten) th, .tabelle:not(.tabelle--daten) td { padding: 0; border: 0; }
  .tabelle:not(.tabelle--daten) td:last-child { grid-column: 1 / -1; margin-top: .15rem; }
}

/* Hinweis als aufgeklebter gelber Zettel */
.zettel { position: relative; rotate: .8deg; margin: 1.5rem 0 .5rem; padding: 1.4rem 1.25rem 1rem; background: var(--ff-gelb);
  border-radius: 3px 4px 14px 3px; box-shadow: 0 10px 20px -12px rgb(26 23 27 / .55); --band-x: 82%; --band-dreh: 6deg; }
.schritt .zettel, .zettel strong { color: var(--ff-schwarz); }
.zettel__titel { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }

/* Fragen zum Aufklappen */
.fragen { border-top: 1px solid var(--line); }
.frage { border-bottom: 1px solid var(--line); }
.frage > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .9rem 0; cursor: pointer; list-style: none; }
.frage > summary::-webkit-details-marker { display: none; }
.frage > summary :is(h2, h3) { margin: 0; font-family: var(--font-body); text-transform: none; font-size: 1.15rem; line-height: 1.35; letter-spacing: 0; }
.frage > summary::after { content: ""; flex-shrink: 0; width: .7rem; height: .7rem; margin-right: .4rem; border: solid var(--link); border-width: 0 3px 3px 0; rotate: 45deg; translate: 0 -.2rem; transition: rotate .25s, translate .25s; }
.frage[open] > summary::after { rotate: 225deg; translate: 0 .2rem; }
.frage > summary:hover :is(h2, h3) { color: var(--link); }
.fragen-gruppe { margin: 0 0 2.5rem; }
.fragen-gruppe__titel { font-size: calc(1.7rem * var(--head-scale)); }
.frage__antwort { padding: 0 0 1rem; color: var(--muted); }

/* Neuigkeiten: Übersicht, Beitrag */
.beitrag-karte__platzhalter { display: grid; place-items: center; width: 100%; height: 100%; background: color-mix(in srgb, var(--ff-gelb) 35%, var(--surface)); color: var(--ink); }
.beitrag-karte__platzhalter .icon { width: 40%; height: 40%; }
/* Pinnwand-Karten (Übersicht, Startseite, „Weitere Neuigkeiten“): Foto im Papierrahmen 16:10 mit Klebeband,
   farbige Oberkante und Drehung im Wechsel wie die drei Karten der Startseite */
.nk { position: relative; display: flex; flex-direction: column; rotate: var(--dreh, 0deg); background: var(--surface); color: var(--ink);
  padding: .6rem .6rem 1.1rem; border-radius: 4px 4px var(--rund) var(--rund); border-top: 5px solid var(--akzent, var(--ff-gelb)); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), rotate .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s; }
.nk:hover, .nk:focus-within { transform: translateY(-5px); rotate: 0deg; box-shadow: var(--shadow-hoch); }
.nk--1 { --dreh: -.8deg; --band-x: 50%; --band-dreh: -4deg; }
.nk--2 { --akzent: var(--ff-magenta); --dreh: .7deg; --band-x: 30%; --band-dreh: 5deg; }
.nk--3 { --akzent: var(--ff-blau); --dreh: -.4deg; --band-x: 70%; --band-dreh: -6deg; }
.nk .karte__klebeband { top: -24px; width: 96px; height: 30px; }
.nk__bild { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: #fff; }
.nk__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nk__text { display: flex; flex-direction: column; flex: 1; padding: .85rem .5rem 0; }
.nk__datum { font-size: .85rem; color: var(--muted); }
.nk__titel { margin: .2rem 0 .4rem; font-size: calc(1.2rem * var(--head-scale)); line-height: 1.25; }
.nk__titel a { color: var(--ink); text-decoration: none; }
.nk__titel a::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte klickbar */
.nk__titel a:hover, .nk__titel a:focus-visible { color: var(--link); }
.nk__anreisser { margin: 0; color: var(--muted); font-size: .95rem; }
.nk__weiter { position: relative; z-index: 1; margin-top: auto; padding-top: .8rem; font-weight: 700; }
html[data-contrast="hoch"] .nk { border: 2px solid #000; border-top-width: 5px; }
.nk-raster { display: grid; gap: 2.25rem 1.75rem; padding-top: 1.25rem; }
@media (min-width: 40rem) { .nk-raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .nk-raster { grid-template-columns: repeat(3, 1fr); } }
/* Startseite und „Weitere“: mobil nebeneinander zum Wischen */
@media (max-width: 39.99rem) {
  .nk-raster--wischen { --rand: clamp(1rem, 4vw, 2rem); grid-auto-flow: column; grid-auto-columns: min(78%, 20rem); gap: 1rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
    margin-inline: calc(-1 * var(--rand)); padding: 1.75rem var(--rand) 1.25rem; scroll-padding-inline: var(--rand); }
  .nk-raster--wischen .nk { scroll-snap-align: start; }
}
/* Aufmacher: Bild links, Text rechts */
.nk--gross { margin: 1rem 0 1rem; rotate: -.5deg; }
.nk--gross .nk__titel { font-size: calc(1.9rem * var(--head-scale)); margin: .3rem 0 .6rem; }
.nk--gross .nk__anreisser { font-size: 1.05rem; color: var(--ink); }
@media (min-width: 52rem) {
  .nk--gross { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 2rem; align-items: center; padding: .7rem 1.5rem .7rem .7rem; }
  .nk--gross .nk__text { padding: 1rem 0; }
}
/* Jahre an der Mesh-Linie */
.jahrgang { margin-top: 3.5rem; }
.jahrgang__titel { position: relative; display: flex; align-items: center; gap: 1rem; margin: 0; font-size: calc(1.5rem * var(--head-scale)); }
.jahrgang__titel span { display: inline-flex; align-items: center; gap: .6rem; }
.jahrgang__titel span::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--ff-magenta); box-shadow: 0 0 0 4px var(--page-bg); }
.jahrgang__titel::after { content: ""; flex: 1; border-top: 3px dashed var(--ink); opacity: .3; }
.blaettern { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; margin-top: 2rem; color: var(--muted); }
/* Beitrag als Leseseite: Bild im Papierrahmen breiter als der Text, zentrierte Lesespalte */
.beitrag__oben { max-width: 42rem; margin: 0 auto 1.5rem; font-weight: 700; }
.beitrag__bild { position: relative; width: fit-content; max-width: min(100%, 56rem); margin: 1rem auto 2.75rem; padding: .6rem .6rem .7rem;
  background: #fff; border-radius: 3px; box-shadow: var(--shadow-hoch); rotate: -.6deg; --band-x: 50%; --band-dreh: -3deg; }
.beitrag__bild img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(34rem, 70vh); border-radius: 2px; }
.beitrag__bild figcaption { margin-top: .45rem; font-size: .8rem; color: #514b55; }
html[data-contrast="hoch"] .beitrag__bild { border: 2px solid #000; rotate: 0deg; }
.beitrag__text { max-width: 42rem; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; }
.beitrag__text p, .beitrag__text li { color: var(--ink); }
.beitrag__text p { margin: 0 0 1.1rem; }
.beitrag__text a { overflow-wrap: anywhere; }
.beitrag__text h2 { margin: 2.5rem 0 .9rem; font-size: calc(1.55rem * var(--head-scale)); }
.beitrag__text h2::after { content: ""; display: block; width: 4.5rem; height: .32em; margin-top: .3rem; background: url("../img/deko/strich.svg") 0 0 / 100% 100% no-repeat; }
.beitrag__text h3 { margin: 1.75rem 0 .6rem; font-size: calc(1.2rem * var(--head-scale)); }
.beitrag__zettel { margin: 1.75rem 0; }
.beitrag__zettel p { margin: 0; color: var(--ff-schwarz); }
.beitrag__textbild { margin: 1.5rem 0; }
.beitrag__textbild img { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.beitrag__weitere { max-width: 64rem; margin: 4.5rem auto 0; }
.beitrag__weitere-titel { font-size: calc(1.5rem * var(--head-scale)); }
.beitrag__mitmachen { max-width: 64rem; margin: 3rem auto 0; }
.beitrag__text blockquote { margin: 1.25rem 0; padding: .75rem 1.1rem; border-left: 5px solid var(--ff-gelb); background: var(--surface); border-radius: 0 var(--rund) var(--rund) 0; }
.beitrag__text blockquote p { margin: 0; color: var(--ink); font-style: italic; }
.beitrag__text code { padding: .05rem .3rem; font-size: .9em; background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 4px; overflow-wrap: anywhere; }
.beitrag__text pre { margin: 1rem 0; padding: .9rem 1rem; overflow-x: auto; background: var(--ff-schwarz); color: #f3efe8; border-radius: 10px; font-size: .88rem; line-height: 1.5; }
.beitrag__text pre code { padding: 0; background: none; color: inherit; overflow-wrap: normal; }
.redaktion__textbild { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .5rem; border-radius: 10px; }
.redaktion__textbild.neu { background: color-mix(in srgb, var(--ff-gelb) 30%, var(--surface)); }
.redaktion__textbild img { display: block; width: 120px; height: auto; border-radius: 6px; }
.redaktion__textbild code { font-size: .85rem; overflow-wrap: anywhere; user-select: all; }

/* Redaktion */
.redaktion__meldung { padding: .8rem 1rem; margin-bottom: 1.5rem; background: color-mix(in srgb, var(--ff-gelb) 30%, var(--surface)); border-radius: var(--rund); font-weight: 700; }
.redaktion__karte { max-width: 34rem; padding: 1.5rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); }
.redaktion__karte h2 { font-size: calc(1.5rem * var(--head-scale)); }
.redaktion__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.redaktion__abmelden { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .9rem; color: var(--muted); }
.redaktion__liste th a { font-weight: 700; }
.redaktion__aktionen { white-space: nowrap; }
.redaktion__aktionen { display: flex; justify-content: flex-end; align-items: baseline; gap: .9rem; white-space: nowrap; }
.redaktion__aktionen form { display: inline; margin: 0; }
.linkknopf { padding: 0; font: inherit; color: var(--link); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.redaktion__archiv-titel { margin-top: 2.5rem; font-size: calc(1.35rem * var(--head-scale)); }
.status--archiviert { border: 1.5px solid var(--muted); color: var(--muted); }
.status { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status--veroeffentlicht { background: color-mix(in srgb, var(--ff-gelb) 45%, var(--surface)); color: var(--ink); }
.status--geplant { border: 1.5px solid var(--link); color: var(--link); }
.status--entwurf { border: 1.5px dashed var(--muted); color: var(--muted); }
.redaktion__formular { max-width: 46rem; }
.redaktion__formular .klein { display: inline; margin-left: .3rem; }
.formular__hilfe { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }
.formular__zeile { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 2rem; }
.formular__haken { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; }
.formular .formular__haken input { width: auto; min-height: 0; }
.redaktion__bild { margin: 0; padding: 1rem 1.25rem; border: 2px solid var(--line); border-radius: var(--rund); display: grid; gap: 1rem; }
.redaktion__bild legend { padding: 0 .4rem; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; }
.redaktion__bild-jetzt { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.redaktion__bild-jetzt img { display: block; width: 150px; height: 150px; border-radius: 10px; object-fit: cover; }
.formular input[type="file"] { padding: .5rem; }
.werkzeuge { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.werkzeuge[hidden] { display: none; }
.werkzeuge button { min-height: 40px; padding: .3rem .8rem; font: inherit; font-size: .9rem; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.werkzeuge button:hover { border-color: var(--ink); }

/* Wer wir sind: Text und Karte, Kontakt-Zettel, runde Fotos */
.wir { padding-top: clamp(2rem, 5vw, 3rem); }
.wir__spalten { display: grid; gap: 2rem; align-items: start; margin-bottom: 2.5rem; }
@media (min-width: 56rem) { .wir__spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.wir__text { max-width: 38rem; }
.wir__text h2 { font-size: calc(1.7rem * var(--head-scale)); }
.wir__text p { color: var(--muted); }
.wir__karte { margin: 0; }
.wir__karte figcaption { margin-top: .5rem; font-size: .9rem; color: var(--muted); text-align: center; }
.lippe-karte { display: block; width: 100%; height: auto; overflow: visible; }
.lk-gemeinde { fill: var(--surface); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; transition: fill .2s; }
.lk-gemeinde:hover { fill: color-mix(in srgb, var(--ff-gelb) 45%, var(--surface)); }
.lk-gemeinden { filter: drop-shadow(0 6px 10px rgb(26 23 27 / .15)); }
.lk-fluesse path { fill: none; stroke: var(--ff-blau); stroke-width: 1.6; stroke-linecap: round; opacity: .7; pointer-events: none; }
.lk-mesh line { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .45; pointer-events: none; }
.lk-knoten { fill: var(--ff-magenta); stroke: var(--surface); stroke-width: 1.5; pointer-events: none; }
.lk-name { fill: var(--ink); font-family: var(--font-body); font-size: 10px; font-weight: 700; pointer-events: none;
  paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
html[data-contrast="hoch"] .lk-gemeinden { filter: none; }
html[data-contrast="hoch"] .lk-mesh line { opacity: 1; }
.menschen { margin-bottom: 1rem; }
.menschen h2 { font-size: calc(1.7rem * var(--head-scale)); }
.anleitung .menschen__liste { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; max-width: 46rem; }
@media (min-width: 40rem) { .anleitung .menschen__liste { grid-template-columns: repeat(4, 1fr); } }
.anleitung .mensch { display: flex; flex-direction: column; align-items: center; margin: 0; text-align: center; }
.mensch__foto { display: block; width: 7.5rem; height: 7.5rem; margin-bottom: .7rem; border-radius: 50%; overflow: hidden; rotate: -3deg;
  border: 4px solid #fff; box-shadow: 0 0 0 2px var(--ff-gelb), var(--shadow); background: var(--line); }
.mensch:nth-child(even) .mensch__foto { rotate: 3deg; box-shadow: 0 0 0 2px var(--ff-magenta), var(--shadow); }
.mensch__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mensch__name { font-weight: 700; line-height: 1.3; }
.mensch__rolle { font-size: .88rem; color: var(--muted); }
html[data-contrast="hoch"] .mensch__foto { border-color: #000; box-shadow: none; }

/* Rechtstexte: Inhaltsverzeichnis und Abschnitte */
.inhalt { margin: 0 0 2.5rem; padding: 1.25rem 1.5rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); border-top: 5px solid var(--ff-gelb); }
.inhalt h2 { font-size: calc(1.35rem * var(--head-scale)); }
.anleitung .inhalt ol { margin: 0; padding-left: 1.4rem; columns: 2 16rem; column-gap: 2rem; }
.anleitung .inhalt li { margin: 0 0 .3rem; break-inside: avoid; }
.rechtstext__abschnitt { margin: 0 0 2.25rem; scroll-margin-top: 6rem; }
.rechtstext__abschnitt h2 { font-size: calc(1.6rem * var(--head-scale)); }
.rechtstext__abschnitt p, .rechtstext__abschnitt li { color: var(--muted); }
.rechtstext__abschnitt strong { color: var(--ink); }
.rechtstext__stand { font-size: .9rem; color: var(--muted); }
.rechtstext__abschnitt ol { padding-left: 1.6rem; }
.rechtstext__abschnitt ol li { margin-bottom: .5rem; }
.rechtstext__abschnitt .buchstaben { list-style: lower-alpha; margin-top: .4rem; }
.rechtstext__abschnitt h3 { margin-top: 1.5rem; font-size: calc(1.2rem * var(--head-scale)); }
html[data-contrast="hoch"] .inhalt { border: 2px solid #000; border-top-width: 5px; }

/* Statistik */
.bericht { padding-top: clamp(2rem, 5vw, 3rem); }
.kennzahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin: 0 0 1.5rem; }
.kennzahl { padding: 1rem 1.1rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); border-top: 5px solid var(--ff-gelb); }
.kennzahl:first-child { border-top-color: var(--stat-mensch); }
.kennzahl:nth-child(3) { border-top-color: var(--stat-bot); }
.kennzahl dt { font-weight: 700; }
.kennzahl dt span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.kennzahl dd { margin: .3rem 0 0; font-family: var(--font-head); font-weight: 700; font-size: calc(2rem * var(--head-scale)); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tafel { margin: 0 0 1.5rem; padding: 1.25rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); min-width: 0; }
.tafel h2 { font-size: calc(1.35rem * var(--head-scale)); }
.tafel__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.klein { font-family: var(--font-body); font-size: .8rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.legende { display: flex; gap: 1.1rem; margin: 0; font-size: .9rem; }
.legende span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; margin-right: .4rem; border-radius: 3px; vertical-align: -.05rem; }
.legende__mensch::before { background: var(--stat-mensch); }
.legende__bot::before { background: var(--stat-bot); }
.diagramm { overflow-x: auto; margin-top: .5rem; }
.diagramm svg { display: block; width: 100%; min-width: 620px; height: auto; }
.achse { stroke: var(--line); stroke-width: 1; }
.achse--null { stroke: var(--muted); }
.achse__text { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.balken--mensch { fill: var(--stat-mensch); }
.balken--bot { fill: var(--stat-bot); }
.tag__treffer { fill: transparent; }
.tag:hover .tag__treffer { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.diagramm__info { min-height: 1.5em; margin: .4rem 0 0; font-size: .92rem; color: var(--muted); }
.tabelle-auf { margin-top: .5rem; }
.tabelle-auf summary { cursor: pointer; padding: .4rem 0; font-weight: 700; color: var(--link); }
.tabelle-auf .tabelle { box-shadow: none; border: 1px solid var(--line); }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
table.daten { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
table.daten th, table.daten td { padding: .45rem .5rem; text-align: right; border-bottom: 1px solid var(--line); }
table.daten th:first-child { text-align: left; font-weight: 400; }
table.daten thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
table.daten tfoot th, table.daten tfoot td { font-weight: 700; border-bottom: 0; }
.meter { display: block; margin-left: auto; }
.meter__grund { fill: var(--line); }
.meter__wert { fill: var(--stat-bot); }
.leer { margin: 0; color: var(--muted); }
.notiz { max-width: 50rem; font-size: .9rem; color: var(--muted); }
html[data-contrast="hoch"] .kennzahl, html[data-contrast="hoch"] .tafel { border: 2px solid #000; }
@media (max-width: 56rem) { .kennzahlen { grid-template-columns: 1fr 1fr; } .zwei-spalten { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .kennzahlen { grid-template-columns: 1fr; } }
/* Zahlentabellen auf dem Handy kompakter */
@media (max-width: 40rem) {
  table.daten { font-size: .85rem; }
  table.daten th, table.daten td { padding: .4rem .3rem; }
  table.daten thead th { font-size: .7rem; letter-spacing: .02em; }
  .tafel { padding: 1rem .85rem; }
}

/* Spendenkonto */
.spenden { margin: 3rem 0 0; scroll-margin-top: 6rem; }
.spenden h2 { font-size: calc(1.7rem * var(--head-scale)); }
.konto { position: relative; margin: 1.75rem 0 1.5rem; padding: 1.75rem 1.5rem 1.25rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); rotate: .4deg; --band-x: 78%; --band-dreh: 5deg; }
.konto dl { margin: 0; display: grid; gap: .55rem; }
.konto dl div { display: grid; grid-template-columns: 10rem 1fr; gap: .1rem .75rem; }
.konto dt { color: var(--muted); }
.konto dd { margin: 0; font-weight: 700; }
.konto__iban code { font-size: 1.1rem; }
.konto__kopieren { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.1rem 0 0; }
.konto__status { color: var(--muted); font-size: .92rem; }
html.no-js .konto__kopieren { display: none; }
.btn--klein .icon { width: 1.15rem; height: 1.15rem; }
@media (max-width: 32rem) { .konto dl div { grid-template-columns: 1fr; } }

/* Kontakt: Formular und direkte Wege */
.kontakt__inner { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .kontakt__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.kontakt h2 { font-size: calc(1.7rem * var(--head-scale)); }
.formular { display: grid; gap: 1.15rem; }
.formular__feld label { display: block; margin-bottom: .35rem; font-weight: 700; }
.formular :is(input, select, textarea) { width: 100%; min-height: 52px; padding: .6rem .9rem; font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--rund); }
.formular textarea { min-height: 11rem; resize: vertical; }
.formular [aria-invalid="true"] { border-color: var(--link); }
.formular__fehler { margin: .35rem 0 0; color: var(--link); font-weight: 700; font-size: .93rem; }
.formular__hinweis { margin: 0 0 1.25rem; padding: 1rem 1.25rem; background: var(--surface); border-left: 6px solid var(--link); border-radius: var(--rund); box-shadow: var(--shadow); }
.formular__hinweis p { margin: 0 0 .4rem; font-weight: 700; }
.anleitung .formular__hinweis ul { margin: 0; }
.formular__pflicht, .formular__datenschutz { margin: 0; font-size: .92rem; color: var(--muted); }
.formular__falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular .btn { justify-self: start; }
.anleitung .kontakt__wege ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.anleitung .kontakt__weg { display: flex; gap: 1rem; margin: 0; padding: 1rem 1.1rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); }
.kontakt__icon { display: grid; place-items: center; flex-shrink: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: color-mix(in srgb, var(--ff-gelb) 35%, var(--surface)); color: var(--ink); }
.kontakt__icon .icon { width: 1.4rem; height: 1.4rem; }
.kontakt__weg h3 { margin: 0 0 .2rem; font-size: calc(1.15rem * var(--head-scale)); }
.kontakt__weg p { margin: 0 0 .35rem; color: var(--muted); font-size: .95rem; }
.kontakt__weg a { font-weight: 700; overflow-wrap: anywhere; }
.kontakt__weg address { font-style: normal; }
.kontakt__signal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

/* Firmware herunterladen */
.btn--klein { min-height: 44px; padding: .45rem 1rem; font-size: .95rem; gap: .5rem; }
/* Update-Knopf in Freifunk-Gelb wie die Kennzeichnung oben; Fast-Schwarz auf Gelb hat 10:1 */
.btn--gelb { background: var(--ff-gelb); color: var(--ff-schwarz); box-shadow: 0 8px 18px -10px rgb(160 110 0 / .8); }
.btn--gelb:hover { background: #ffc633; box-shadow: 0 14px 24px -12px rgb(160 110 0 / .9); }
html[data-contrast="hoch"] .btn--gelb { border-color: #000; color: #000; }
.fw-mb { font-weight: 400; font-size: .85em; opacity: .85; }
.fw-stand { margin: 0 0 1.5rem; font-size: 1.05rem; }
.fw-arten { display: grid; gap: .75rem; margin: 0 0 2rem; }
.fw-art { padding: .9rem 1.1rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); border-left: 6px solid var(--ff-magenta); }
.fw-art--2 { border-left-color: var(--ff-gelb); }
.fw-art dt { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fw-art dd { margin: 0; color: var(--muted); }
@media (min-width: 40rem) { .fw-arten { grid-template-columns: 1fr 1fr; } }
.fw-suche { margin: 0 0 1rem; }
.fw-liste { border-top: 1px solid var(--line); }
.fw-suche label { display: block; margin-bottom: .35rem; font-weight: 700; }
.fw-suche input { width: 100%; min-height: 52px; padding: .6rem 1rem; font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--rund); }
.fw-suche input:focus-visible, .formular :is(input, select, textarea):focus-visible { border-color: var(--link); outline: 3px solid var(--focus); outline-offset: 2px; }
.fw-treffer { min-height: 1.5em; margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }
html.no-js .fw-suche { display: none; }
.fw-anzahl { margin-left: .4rem; font-family: var(--font-body); font-size: .85rem; font-weight: 400; color: var(--muted); }
.anleitung .fw-geraete { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.anleitung .fw-geraet { margin: 0; padding: .9rem 1rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); }
.fw-geraet__name { margin: 0 0 .6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.fw-geraet__name code { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.fw-geraet__knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.fw-hinweis { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
.fw-pruef { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.fw-pruef summary { cursor: pointer; padding: .3rem 0; }
.fw-pruef code { display: block; overflow-wrap: anywhere; font-size: .8rem; }
.fw-quelle { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
/* Empfohlene Geräte: Abzeichen, Hinweis, eigene Gruppe für die Vorabversion */
.fw-empfohlen { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--ff-magenta); color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.fw-empfohlen-hinweis { margin: 0 0 1.25rem; font-size: .95rem; color: var(--muted); }
.fw-anleitung { margin: .5rem 0 0; font-size: .9rem; }
.fw-vorab > summary h2 { color: var(--ink); }
.fw-vorab { border-left: 6px solid var(--ff-magenta); padding-left: .9rem; }
.fw-vorab__text { margin: 0 0 .9rem; color: var(--muted); }

/* Router aussuchen: Links je Modell unter dem Hinweis */
.empf-links { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin-top: .35rem; font-weight: 700; }
.empf-links a { color: var(--link); }
.empf-vorab { font-weight: 400; font-size: .85em; color: var(--muted); }
.empfehlungen .tabelle td:last-child { color: var(--muted); }

/* Wegweiser: Ablauf je Weg in der Karte */
.karte__weg { margin: .25rem 0 1.25rem; padding: 0; list-style: none; counter-reset: weg; }
.karte__weg li { position: relative; padding: 0 0 .55rem 2rem; color: var(--ink); counter-increment: weg; }
.karte__weg li::before { content: counter(weg); position: absolute; left: 0; top: .05em; display: grid; place-items: center;
  width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ff-gelb); color: var(--ff-schwarz); font-size: .8rem; font-weight: 700; }
.karte__weg li:not(:last-child)::after { content: ""; position: absolute; left: .68rem; top: 1.5rem; bottom: .1rem; border-left: 2px dashed var(--line); }
.karten__fuss { margin: 1.25rem 0 0; text-align: center; }

/* Hinweis am Seitenanfang und „Weiter“-Knopf am Ende eines Weges */
.zettel--oben { margin: 0 0 2.5rem; }
.naechster { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin: 1rem 0 2.5rem;
  padding: 1.25rem; border: 2px dashed var(--line); border-radius: var(--rund); text-align: center; }
.naechster span { font-family: var(--font-head); font-size: calc(1.3rem * var(--head-scale)); }

/* Partner: Logo auf weißer Kachel (wie Sponsoren), darunter Ort und Kontakt */
.partner { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.partner__karte { display: grid; gap: 0 1.25rem; padding: 1rem; background: var(--surface); border-radius: var(--rund); box-shadow: var(--shadow); }
.partner__logo { display: grid; place-items: center; height: 5.5rem; margin: 0 0 .9rem; padding: .75rem 1rem; background: #fff; border-radius: var(--rund); border: 1px solid #ece6da; }
@media (min-width: 36rem) {
  .partner__karte { grid-template-columns: 13rem 1fr; grid-template-rows: auto auto 1fr; }
  .partner__logo { grid-row: 1 / -1; margin: 0; height: 100%; min-height: 6rem; }
}
.partner__logo img { max-width: 100%; height: auto; }
.partner__name { margin: 0; font-size: calc(1.25rem * var(--head-scale)); font-weight: 500; }
.partner__ort { display: inline-flex; align-items: center; gap: .2rem; margin-left: .3rem; font-family: var(--font-body); font-size: .85rem; font-weight: 400; color: var(--muted); }
.partner__ort .icon { width: 1rem; height: 1rem; }
.schritt .partner__text { margin: .35rem 0 .6rem; font-size: .95rem; }
.partner__kontakt { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.1rem; font-size: .95rem; }
.schritt .partner, .schritt .partner__kontakt { padding-left: 0; }
.schritt .partner__kontakt li { margin: 0; }
.partner__kontakt a { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; overflow-wrap: anywhere; }
.partner__kontakt .icon { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

.hilfekasten { margin: 3rem 0 2rem; padding: 1.75rem 1.5rem; border-radius: var(--rund); rotate: .4deg; --sek-rand: var(--flaeche-ink); --sek-ink: var(--flaeche-ink); }
.hilfekasten h2 { font-size: calc(1.7rem * var(--head-scale)); }

.weiter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.weiter a { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .75rem 1rem; background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none;
  border-radius: var(--rund); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s; }
.weiter a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hoch); color: var(--link); }
.weiter a span { flex: 1; }
.weiter .icon:first-child { color: var(--link); }
@media (min-width: 40rem) { .weiter ul { grid-template-columns: 1fr 1fr; } }

/* ---------- Lisa ---------- */
.lisa { position: absolute; left: 0; top: 0; z-index: 30; height: calc(var(--lisa-h) * var(--pose-skala, 1)); pointer-events: none; will-change: transform; opacity: 0; transition: opacity .6s; }
.lisa.bereit { opacity: 1; }
.lisa--hermann { --pose-skala: 1.55; }   /* Startpose, bis app.js übernimmt */
.lisa img { height: 100%; width: auto; filter: drop-shadow(0 10px 10px rgb(26 23 27 / .18)); transform-origin: 50% 90%; }
html[data-motion="an"] .lisa img { animation: schweben 3.4s ease-in-out infinite alternate; }
html.no-js .lisa { display: none; }
.spur { position: absolute; left: 0; top: 0; z-index: 29; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ring-1); pointer-events: none; animation: spur 1.8s ease-out forwards; }

/* ---------- Scroll-Einblendung ---------- */
html.js[data-motion="an"] .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
html.js[data-motion="an"] .reveal.sichtbar { opacity: 1; transform: none; }

@keyframes schweben { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-12px) rotate(1.2deg); } }
@keyframes funk { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes spur { from { opacity: .85; transform: scale(1); } to { opacity: 0; transform: scale(.3); } }
@keyframes puls { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 10px transparent; } }

/* Ohne Animationen: nichts bewegt sich, nichts gleitet */
html[data-motion="aus"] *, html[data-motion="aus"] *::before, html[data-motion="aus"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="aus"] { scroll-behavior: auto; }

/* ---------- Hoher Kontrast (AAA, 7:1) ---------- */
html[data-contrast="hoch"][data-variant] {
  --page-bg: #ffffff; --page-tex: none; --ink: #000000; --muted: #000000; --surface: #ffffff; --line: #000000;
  --link: #8f0043; --btn-bg: #8f0043; --btn-ink: #ffffff; --btn-hover: #000000; --focus: #000000;
  --kopf-bg: #ffffff; --kopf-ink: #000000;
  --hero-bg: #ffffff; --hero-ink: #000000; --hero-muted: #000000; --mark-bg: #ffb400; --mark-ink: #000000;
  --denkmal: #000000; --denkmal-fill: #ffffff; --wald: #e6e6e6; --ring-1: #8f0043;
  --land-hinten: #eeeeee; --land-mitte: #d6d6d6; --flaeche-bg: #ffffff; --flaeche-ink: #000000; --flaeche-muted: #000000; --st-fill: #ffffff; --sektion-weiss: #ffffff;
  --sek-rand: #000000; --sek-ink: #000000;
  --zahlen-bg: #000000; --zahlen-ink: #ffffff; --zahlen-num: #ffb400;
  --alt-bg: #ffffff; --fuss-bg: #000000; --fuss-ink: #ffffff; --fuss-link: #ffe08a;
  --shadow: none; --shadow-hoch: none;
  --stat-mensch: #8f0043; --stat-bot: #000000;
}
html[data-contrast="hoch"] .karte, html[data-contrast="hoch"] .ansicht, html[data-contrast="hoch"] .bedarf, html[data-contrast="hoch"] .tabelle,
html[data-contrast="hoch"] .weiter a, html[data-contrast="hoch"] .hilfekasten { border: 2px solid #000; }
html[data-contrast="hoch"] .zettel { background: #fff; border: 3px solid #000; }
html[data-contrast="hoch"] .schritt__nr { background: #fff; color: #000; border: 3px solid #000; }
html[data-contrast="hoch"] .schritt:last-child .schritt__nr { background: #8f0043; color: #fff; }
html[data-contrast="hoch"] .krumen a, html[data-contrast="hoch"] .weiter a { text-decoration: underline; }
html[data-contrast="hoch"] .sponsor, html[data-contrast="hoch"] .partner__logo { border: 2px solid #000; }
html[data-contrast="hoch"] .fw-empfohlen { background: #000; color: #fff; }
html[data-contrast="hoch"] .fw-vorab { border-left-color: #000; }
html[data-contrast="hoch"] a { text-decoration-thickness: .12em; }
html[data-contrast="hoch"] .nav a { text-decoration: underline; }
html[data-contrast="hoch"] :focus-visible { outline-width: 4px; }
html[data-contrast="hoch"] .fuss { --focus: #ffb400; }
html[data-contrast="hoch"] .flaeche { border-block: 3px solid #000; }
html[data-contrast="hoch"] .riss--flaeche-oben, html[data-contrast="hoch"] .riss--flaeche-unten { display: none; }

/* ---------- Dunkelmodus (automatisch nach Systemeinstellung) ---------- */
@media (prefers-color-scheme: dark) {
  html:not([data-contrast])[data-variant] {
    color-scheme: dark;
    --page-bg: #141217; --page-tex: none; --ink: #f3efe8; --muted: #c3bcc8; --surface: #1f1c23; --line: #3a353f;
    --link: #ff6aa6; --btn-hover: #f0247f; --focus: #ffb400;
    --stat-mensch: #ff6aa6; --stat-bot: #d6b25e;
    --kopf-bg: #141217; --kopf-ink: #f3efe8;
    --hero-bg: transparent; --hero-ink: #f3efe8; --hero-muted: #c3bcc8; --mark-bg: transparent; --mark-ink: #ffb400;
    --denkmal: #f3efe8; --denkmal-fill: #2a2630; --wald: #221f27; --land-hinten: #1d1a21; --land-mitte: #28242d; --flaeche-bg: #24202a; --flaeche-ink: #f3efe8; --flaeche-muted: #c3bcc8; --st-fill: #2f2a35; --sektion-weiss: #1b181f;
    --sek-rand: #f3efe8; --sek-ink: #f3efe8;
    --zahlen-bg: #ffb400; --zahlen-ink: #1a171b; --zahlen-num: #1a171b;
    --alt-bg: #1b181f; --fuss-bg: #0c0b0e;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / .7); --shadow-hoch: 0 22px 44px -16px rgb(0 0 0 / .8);
  }
}
