/*
 * Selbsthilfegruppe für Menschen im Autismusspektrum in Lübeck – Entwurf
 * Schema nach dem Vorbild autismus-community.de (Verlauf, Hilfen-Kasten,
 * weiße Knöpfe, dunkle Fußleiste), sauber neu geschrieben.
 */

:root {
  /* aus dem Vorbild autismus-community.de */
  --verlauf-1: #003366;
  --verlauf-2: #5a7fa6;
  --verlauf-3: #e6e6e6;
  --tief: #061b4d;
  --kasten: rgba(0, 25, 55, .62);
  --fokus: #ffbf47;
  --schatten: 0 10px 26px rgba(0, 0, 0, .28);
  /* Gruppenfarben (autismus-netzwerk.de) */
  --text: #1d2733;
  --text-2: #4a5560;
  --hell: #eef3f8;
  --rand: #c9d6e4;
  --link: #0b4a80;
  --akzent: #003366;
  --rot: #c30b18;
  /* Flächen */
  --flaeche: #ffffff;
  --knopf: #ffffff;
  --knopf-text: #003366;
  --knopf-hover: #e6eef7;
  --haupt-knopf: #003366;
  --haupt-knopf-text: #ffffff;
  --haupt-knopf-hover: #0b4a80;
  --band: #eef3f8;
  --feld-rand: #4a5560;
  --ok-flaeche: #e3f1e8;
  --ok-rand: #1f6f43;
  --ok-text: #0f3d24;
  --fehler-flaeche: #fbe9ea;
  --fehler-text: #5c0a10;
  --gelb-flaeche: #fff7e0;
  --gelb-text: #3d2c00;
  --da-flaeche: #e3f1e8;
  --da-text: #14532d;
  --radius-gross: 14px;
  --radius: 12px;
  --radius-klein: 10px;
  color-scheme: light;
}

html.dunkel {
  --text: #e3e9ef;
  --text-2: #b8c4d1;
  --hell: #16283c;
  --rand: #2e4258;
  --link: #a9cdf0;
  --akzent: #cfe0f2;
  --rot: #ff9b9b;
  --flaeche: #0f1c2b;
  --knopf: #dbe3ec;
  --knopf-text: #003366;
  --knopf-hover: #c9d6e4;
  --haupt-knopf: #dbe3ec;
  --haupt-knopf-text: #061b4d;
  --haupt-knopf-hover: #c9d6e4;
  --band: #13263b;
  --kasten: rgba(255, 255, 255, .08);
  --feld-rand: #8a9bb0;
  --ok-flaeche: #143323;
  --ok-rand: #6fcf97;
  --ok-text: #d4f3e0;
  --fehler-flaeche: #3a1418;
  --fehler-text: #ffd9dc;
  --gelb-flaeche: #3a2f10;
  --gelb-text: #ffe9b0;
  --da-flaeche: #163a26;
  --da-text: #c6f0d4;
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: #33506e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
/* Hintergrund wie im Vorbild: Verlauf dunkelblau → graublau → hellgrau, abgedunkelt */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22)),
    linear-gradient(135deg, var(--verlauf-1), var(--verlauf-2), var(--verlauf-3));
}
html.dunkel body::before { background: linear-gradient(135deg, #00060f, #0b1626 55%, #1a2433); }
html.sw { filter: grayscale(1); }

img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--tief);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--fokus);
}
html.dunkel a:focus-visible, html.dunkel button:focus-visible, html.dunkel input:focus-visible,
html.dunkel textarea:focus-visible, html.dunkel summary:focus-visible {
  outline-color: var(--fokus);
  box-shadow: 0 0 0 3px #000;
}
main:focus { outline: none; }

.sym {
  width: 22px; height: 22px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.nur-vorleser {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sprunglink {
  position: absolute; left: 16px; top: -120px; z-index: 300;
  background: #fff; color: #003366; font-weight: 700;
  padding: .7rem 1rem; border-radius: var(--radius-klein); box-shadow: var(--schatten);
}
.sprunglink:focus { top: 8px; }

/* ---------- Entwurf-Hinweis ---------- */
.entwurf-band {
  margin: 0; padding: .4rem 16px;
  display: flex; justify-content: center; align-items: center; gap: .5rem;
  background: var(--band); color: var(--akzent);
  font-size: .95rem; line-height: 1.4; text-align: center;
}
html:not(.dunkel) .entwurf-band { color: var(--tief); }
.entwurf-band .sym { width: 18px; height: 18px; }

/* ---------- Kopf: Hilfen-Kasten links, Name rechts ---------- */
/* Hilfen oben links am Rand wie autismus-community.de (Helge 07.11.2026 01:01) */
.kopf {
  max-width: none; margin: 0; padding: 20px 20px 0;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.hilfen {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 7px; border-radius: var(--radius-gross);
  background: var(--kasten); box-shadow: var(--schatten);
}
html:not(.js) .hilfen { display: none; }
.hilfen button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; min-width: 46px; padding: 0 14px; margin: 0;
  border: 2px solid transparent; border-radius: var(--radius-klein);
  background: transparent; color: #fff;
  font: 700 1rem/1 Arial, Helvetica, sans-serif; cursor: pointer;
}
.hilfen button:hover { background: rgba(255, 255, 255, .18); }
.hilfen button[aria-pressed="true"] { background: #fff; color: var(--tief); }
.hilfen-meldung {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0;
}
.marke {
  color: #fff; text-decoration: none; text-align: right;
  font-size: 1.2rem; font-weight: 700; line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  padding: .35rem 0;
}
.marke span { font-size: 1rem; font-weight: 400; }
.marke:hover { text-decoration: underline; }

/* ---------- Hauptmenü: weiße Knöpfe mit Symbol ---------- */
.haupt { max-width: 80rem; margin: 1.5rem auto 0; padding: 0 16px; text-align: center; }
.haupt ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.haupt a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: .65rem 1.3rem;
  border: 2px solid transparent; border-radius: var(--radius);
  background: var(--knopf); color: var(--knopf-text);
  font-size: 1.1rem; line-height: 1.2; text-decoration: none;
  box-shadow: var(--schatten);
}
.haupt a:hover { background: var(--knopf-hover); }
.haupt a[aria-current="page"] {
  background: var(--tief); color: #fff; border-color: #fff; font-weight: 700;
}
html.dunkel .haupt a[aria-current="page"] { background: #003366; }
.abmelden { display: inline-block; margin: 12px 0 0; }
.abmelden button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: .6rem 1.2rem;
  border: 2px solid rgba(255, 255, 255, .9); border-radius: var(--radius);
  background: var(--kasten); color: #fff;
  font: 1.05rem/1.2 Arial, Helvetica, sans-serif; cursor: pointer;
}
.abmelden button:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Bühne: Lübeck-Panorama groß im Hintergrund ----------
 * Helge 06.11.2026 17:44: kein Bild auf blauem Grund, sondern das Bild groß im
 * Hintergrund, der Himmel läuft nach oben hinter Hilfen und Menü weiter.
 * Das Foto steht immer in voller Breite (nichts abgeschnitten); darüber
 * verlängerter Himmel, ganz oben dieselbe Himmelsfarbe als Fläche.
 * Unten läuft das Wasser weich in den Seitenhintergrund aus.
 * Bild: Schriftzug entfernt, Himmel nach oben ergänzt (bilder/panorama-weit-*.jpg).
 */
.buehne {
  --buehne-bild: url("../bilder/panorama-weit-1920.jpg");
  --buehne-auslauf: clamp(70px, 12vw, 230px);
  position: relative;
  background-color: #275386;
  background-image:
    linear-gradient(to bottom, rgba(6, 27, 77, .55), rgba(6, 27, 77, .16) 34%, rgba(6, 27, 77, 0) 55%),
    var(--buehne-bild);
  background-repeat: no-repeat;
  background-position: 0 0, 50% 100%;
  background-size: 100% 100%, 100% auto;
  /* weicher, fließender Auslauf (Helge 18:03: „Farbübergang zu grob“): mehrere Stufen, sanfte Kurve */
  --buehne-maske: linear-gradient(to bottom,
    #000 calc(100% - var(--buehne-auslauf)),
    rgba(0, 0, 0, .94) calc(100% - var(--buehne-auslauf) * .84),
    rgba(0, 0, 0, .80) calc(100% - var(--buehne-auslauf) * .68),
    rgba(0, 0, 0, .60) calc(100% - var(--buehne-auslauf) * .52),
    rgba(0, 0, 0, .38) calc(100% - var(--buehne-auslauf) * .36),
    rgba(0, 0, 0, .18) calc(100% - var(--buehne-auslauf) * .20),
    rgba(0, 0, 0, .05) calc(100% - var(--buehne-auslauf) * .08),
    transparent);
  -webkit-mask-image: var(--buehne-maske);
  mask-image: var(--buehne-maske);
}
@media (max-width: 60rem) {
  .buehne { --buehne-bild: url("../bilder/panorama-weit-960.jpg"); }
}
/* Platz für die Stadtansicht unter dem Menü: Turmspitzen bleiben frei */
.buehne-bild { aspect-ratio: 960 / 400; }  /* 300 Stadtansicht + 100 verlängertes Wasser */
.buehne .marke {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65), 0 2px 12px rgba(0, 0, 0, .5);
}
html.dunkel .buehne {
  background-image:
    linear-gradient(rgba(0, 6, 15, .5), rgba(0, 6, 15, .5)),
    var(--buehne-bild);
}
/* Sehr breite Bildschirme und stark verkleinerte Ansicht (Helge 07.11.2026 00:58: „bei 25% wirkt es sehr merkwürdig“):
 * erst ab 2560 px wächst das Foto nicht weiter, seine Ränder laufen schmal in eine unscharfe Fortsetzung aus.
 * Bis 2560 px bleibt das Foto randlos und scharf (Helge 01:05: „wieso am Rand so extrem milchig“). */
@media (min-width: 160rem) {
  .buehne {
    background-image:
      linear-gradient(to bottom, rgba(6, 27, 77, .55), rgba(6, 27, 77, .16) 34%, rgba(6, 27, 77, 0) 55%),
      url("../bilder/panorama-mitte-1920-v2.webp"),
      url("../bilder/panorama-rand-v2.jpg");
    background-size: 100% 100%, 160rem auto, 100% 100%;
    background-position: 0 0, 50% 100%, 50% 100%;
  }
  html.dunkel .buehne {
    background-image:
      linear-gradient(rgba(0, 6, 15, .5), rgba(0, 6, 15, .5)),
      url("../bilder/panorama-mitte-1920-v2.webp"),
      url("../bilder/panorama-rand-v2.jpg");
  }
  .buehne-bild { aspect-ratio: auto; height: 66.667rem; }
}
/* Seitentitel steht im ausgelaufenen Wasser: fließender Übergang, weniger Höhe */
.buehne + main { position: relative; z-index: 1; padding-top: 0; margin-top: calc(var(--buehne-auslauf-main, clamp(70px, 12vw, 230px)) * -0.62); }

/* Bühne bleibt stehen, der Inhalt gleitet beim Scrollen darüber nach oben (Helge 07.11.2026 01:12:
 * „Der Kasten gleitet nicht nach oben. Der Kasten liegt starr auf dem Schiff.“). Die Bühne rastet ein,
 * sobald ihre Unterkante den Bildschirmrand erreicht (Höhe ≈ 41,67vw + 330px). */
.buehne { position: sticky; top: min(0px, calc(100vh - 41.67vw - 330px)); z-index: 0; }
@media (min-width: 160rem) { .buehne { top: min(0px, calc(100vh - 66.667rem - 330px)); } }
/* Gleiten endet kurz unter dem Namen (Helge 01:19: „dass es sich nicht oben über den Namen schiebt“):
 * die Bühne rastet nur über eine begrenzte Strecke ein (Hülle = Bühne + Gleitstrecke), danach läuft alles
 * gemeinsam weiter. Gleitstrecke = Bildhöhe (41,67vw) − Anfangsüberlappung − 30px Abstand. */
.buehne-huelle { position: relative; }
.buehne-spur { height: calc(41.67vw - clamp(70px, 12vw, 230px) * .62 - 30px); }
.buehne-huelle + main { margin-top: calc(-1 * (41.67vw - 30px)); }
@media (min-width: 160rem) {
  .buehne-spur { height: calc(66.667rem - 142.6px - 30px); }
  .buehne-huelle + main { margin-top: calc(-1 * (66.667rem - 30px)); }
}
.buehne-huelle + main, .buehne-huelle ~ .fuss-rahmen { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .buehne { position: relative; top: auto; } }
/* Kästen leicht durchscheinend, damit das Weiß über dem Foto nicht blendet (Helge 01:13: „Das Weiße sticht ja das Auge aus“).
 * 85 % Deckkraft + Weichzeichner: Text bleibt auch über dunklen Bildstellen über 4,5:1. */
/* Beim Gleiten wird der Kasten durchscheinender (Helge 01:20: „beim gleiten wird es mehr transparenter“):
 * von 94 % auf 75 % Deckkraft, Weichzeichner 16px – Text bleibt über 4,5:1. Ohne Unterstützung im Browser: fest 85 %. */
@property --glas { syntax: '<percentage>'; inherits: false; initial-value: 75%; }
main .blatt {
  /* dunkleres Rot für Entwurfs-Hinweise im Glas: über 4,5:1 auch bei 62 % Deckkraft (Handy-Prüfung 07.11.2026 02:06: vorher 3,24:1) */
  --rot: #7a0a12;
  background: color-mix(in srgb, var(--flaeche) var(--glas), transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  backdrop-filter: blur(20px) saturate(1.1);
  /* dunklere Grau- und Linkfarbe im Glas, damit der Kontrast bei mehr Durchscheinen über 4,5:1 bleibt */
  --text-2: #34404c; --link: #083a66;
}
html.dunkel main .blatt { --glas: 86%; --text-2: #b8c4d1; --link: #a9cdf0; --rot: #ff9b9b; }
@keyframes glas-gleiten { from { --glas: 86%; } to { --glas: 62%; } }
@keyframes glas-gleiten-dunkel { from { --glas: 92%; } to { --glas: 80%; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main .blatt { animation: glas-gleiten linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    html.dunkel main .blatt { animation-name: glas-gleiten-dunkel; }
  }
}

/* ---------- Inhalt ---------- */
main { max-width: 64rem; margin: 0 auto; padding: 1.75rem 16px 2.5rem; }
.seitentitel {
  margin: 0 0 1.5rem; text-align: center; color: #fff;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); line-height: 1.1; font-weight: 700;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  text-wrap: balance;
}
.start-titel { font-size: clamp(2.1rem, 1.1rem + 3vw, 3.7rem); max-width: 20em; margin-left: auto; margin-right: auto; }
/* Startseite: Titel oben im Himmel unter dem Menü (Helge 07.11.2026 00:56) */
.buehne-titel { position: relative; z-index: 1; margin: clamp(1.25rem, 3.5vw, 3rem) auto 0; padding: 0 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .55), 0 4px 18px rgba(0, 0, 0, .45); }

.blatt {
  background: var(--flaeche); color: var(--text);
  border-radius: var(--radius-gross); box-shadow: var(--schatten);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  margin: 0 0 1.5rem;
}
.blatt > p, .blatt > ul, .blatt > ol, .blatt li, .blatt figcaption { max-width: 68ch; }
.blatt h2 {
  margin: 0 0 .75rem; color: var(--akzent);
  font-size: 1.6rem; line-height: 1.25;
}
.blatt h2 .sym, .aktuelles h2 .sym { width: 26px; height: 26px; vertical-align: -5px; margin-right: .5rem; }
.blatt h2:not(:first-child), .h2-folge { margin-top: 1.9rem; }
.blatt h3 { margin: 1.5rem 0 .5rem; font-size: 1.25rem; line-height: 1.3; }
.blatt p { margin: 0 0 1rem; }
.blatt > :last-child { margin-bottom: 0; }
.klein { font-size: 1rem; color: var(--text-2); }
.gross { font-size: 1.3rem; line-height: 1.5; }

/* Zwei Fassungen: Standard-Sprache und Leichte Sprache */
.fassung.leicht { display: none; }
html.leicht-an .fassung.leicht { display: block; }
html.leicht-an .fassung.standard { display: none; }
p.fassung.leicht { margin: 0; }
html.leicht-an .fassung.leicht p, html.leicht-an .fassung.leicht li { font-size: 1.25rem; line-height: 1.75; }
.ls-hinweis {
  display: flex; align-items: flex-start; gap: .55rem;
  margin: 0 0 1.25rem !important; padding: .55rem .85rem;
  background: var(--hell); border-radius: var(--radius-klein);
  color: var(--text-2); font-size: 1rem !important; line-height: 1.45 !important;
}
.erklaerung {
  margin: 1.25rem 0 0; padding: 1rem 1.25rem;
  background: var(--hell); border-left: 6px solid var(--akzent); border-radius: var(--radius-klein);
}
.erklaerung p:last-child { margin-bottom: 0; }
.schritte { padding-left: 1.6rem; margin: 0 0 1rem; }
.schritte li { margin: 0 0 .75rem; padding-left: .25rem; }

/* Knöpfe in den Inhaltsflächen */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: .65rem 1.3rem;
  border: 2px solid var(--haupt-knopf); border-radius: var(--radius);
  background: var(--haupt-knopf); color: var(--haupt-knopf-text);
  font: 700 1.05rem/1.2 Arial, Helvetica, sans-serif; text-decoration: none; cursor: pointer;
}
.knopf:hover { background: var(--haupt-knopf-hover); border-color: var(--haupt-knopf-hover); }
.knopf-zweit { background: transparent; color: var(--akzent); border-color: var(--akzent); font-weight: 400; }
.knopf-zweit:hover { background: var(--hell); border-color: var(--akzent); }
.knopf-haupt { font-size: 1.15rem; padding: .8rem 1.6rem; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- Blocksatz (Helge 06.11.2026 17:45: „überall BLOCKSATZ“) ----------
 * Mit automatischer Silbentrennung (lang="de"), damit keine großen Lücken
 * zwischen den Wörtern entstehen. Links und E-Mail-Adressen werden nie getrennt.
 */
.blatt p, .blatt li, .blatt figcaption, .aktuelles p, .erklaerung p, .meldung p, .vorfuehr-band p {
  text-align: justify;
  -webkit-hyphens: auto; hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}
.blatt a, .email, .adresse, .linkliste li, .terminliste li, .weitere li, .pflege-liste li {
  -webkit-hyphens: manual; hyphens: manual;
}
.linkliste li, .terminliste li, .weitere li, .pflege-liste li, .ls-hinweis, .email { text-align: left; }
/* Leichte Sprache: Regeln verlangen linksbündig und keine automatische Trennung */
html.leicht-an .fassung.leicht p, html.leicht-an .fassung.leicht li, html.leicht-an p.fassung.leicht {
  text-align: left;
  -webkit-hyphens: manual; hyphens: manual;
}

/* ---------- Startseite ---------- */

.aktuelles {
  background: var(--flaeche); color: var(--text);
  border-radius: var(--radius-gross); box-shadow: var(--schatten);
  border-left: 10px solid var(--fokus);
  padding: 1.25rem clamp(1.25rem, 3.5vw, 2.5rem); margin: 0 0 1.5rem;
}
.aktuelles h2 { margin: 0 0 .5rem; font-size: 1.5rem; color: var(--akzent); }
.aktuelles p { margin: 0; font-size: 1.2rem; max-width: 68ch; }

.naechster { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: flex-start; margin: 0 0 1.25rem; }
.kalenderblatt {
  flex: none; width: 9.5rem; display: flex; flex-direction: column; align-items: center;
  border: 3px solid #003366; border-radius: var(--radius-gross); overflow: hidden;
  background: var(--flaeche); text-align: center;
}
html.dunkel .kalenderblatt { border-color: var(--akzent); }
.kb-tag { align-self: stretch; padding: .45rem .5rem; background: #003366; color: #fff; font-weight: 700; font-size: 1.05rem; }
.kb-zahl { font-size: 4.6rem; font-weight: 700; line-height: 1; padding-top: .55rem; color: var(--akzent); }
.kb-monat { font-size: 1rem; color: var(--text-2); padding: .3rem .5rem .75rem; line-height: 1.3; }
.naechster-text { flex: 1 1 18rem; }
/* Kartenausschnitt neben dem nächsten Treffen (Helge 07.11.2026 00:44); Bild lokal, Karte © OpenStreetMap-Mitwirkende */
.karte-auszug { flex: 0 1 22rem; margin: 0 0 0 auto; }
.karte-auszug a { display: block; border-radius: var(--radius-klein); }
.karte-auszug img { display: block; width: 100%; height: auto; border: 1px solid var(--rand); border-radius: var(--radius-klein); }
.karte-auszug figcaption { margin-top: .4rem; font-size: .85rem; line-height: 1.4; color: var(--text-2); }
@media (max-width: 52rem) { .karte-auszug { flex-basis: 100%; margin-left: 0; } }
.naechster-text p { text-align: left; hyphens: manual; }
.naechster-text h3 { margin: 0 0 .5rem; font-size: 1.6rem; }
.naechster-marke { margin: 0 0 .25rem !important; font-weight: 700; color: var(--text-2); font-size: 1.05rem; }
.naechster-marke.heute {
  display: inline-block; padding: .15rem .65rem; border-radius: 8px;
  background: var(--fokus); color: var(--tief);
}
.naechster-zeit { font-size: 1.35rem; line-height: 1.45; }
.termin-hinweis {
  display: flex; gap: .55rem; align-items: flex-start;
  padding: .6rem .85rem; background: var(--hell); border-radius: var(--radius-klein);
}
.weitere-titel { margin-top: .5rem !important; }
.weitere { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.weitere li { padding: .75rem 0; border-top: 1px solid var(--rand); }
.weitere li:last-child { border-bottom: 1px solid var(--rand); }

.start-raster { display: grid; gap: 1.5rem; align-items: stretch; margin-bottom: 1.5rem; }
.start-raster > .blatt { margin: 0; }
@media (min-width: 52rem) {
  .start-raster { grid-template-columns: 1.1fr .9fr; }
  /* gleich hohe Kacheln (Helge 07.11.2026 00:38) */
  .raumbild { display: flex; flex-direction: column; justify-content: center; }
  .raumbild img { flex: 1 1 auto; min-height: 0; max-height: 22rem; height: auto; object-fit: cover; }
}
.raumbild img { display: block; width: 100%; border-radius: var(--radius-klein); }
.raumbild figcaption { margin-top: .75rem; color: var(--text-2); font-size: 1rem; }
figure { margin: 0; }

/* ---------- Treffen & Anfahrt ---------- */
.terminliste { list-style: none; padding: 0; margin: 0 0 1.25rem; max-width: none !important; }
.terminliste li {
  display: grid; gap: .15rem; max-width: none;
  padding: .9rem 1.1rem; margin: 0 0 .75rem;
  border: 1px solid var(--rand); border-radius: var(--radius);
}
.terminliste li.ist-naechster { border: 2px solid var(--akzent); background: var(--hell); }
.tl-datum { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; }
.tl-marke {
  font-style: normal; font-weight: 700; font-size: .95rem; white-space: nowrap;
  background: var(--fokus); color: var(--tief); padding: .1rem .5rem; border-radius: 6px;
}
.tl-hinweis { color: var(--text-2); font-size: 1rem; }
.adresse {
  font-style: normal; font-size: 1.2rem; line-height: 1.5;
  margin: 0 0 1.25rem; padding: .85rem 1.1rem; max-width: 34rem;
  background: var(--hell); border-left: 6px solid var(--akzent); border-radius: var(--radius-klein);
}
.foto { margin: 0 0 1.5rem; }
.foto img { display: block; border-radius: var(--radius-klein); }
.foto figcaption { margin-top: .5rem; font-size: 1rem; color: var(--text-2); }
.email { display: flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; }
.email .sym { width: 28px; height: 28px; }

/* ---------- Bibliothek ---------- */
.buecher { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.buecher th {
  text-align: left; padding: .7rem .8rem; background: var(--hell);
  border-bottom: 2px solid var(--akzent); color: var(--akzent);
}
.buecher td { padding: .75rem .8rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
.buecher td strong { font-weight: 700; }
.status { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.status-da { background: var(--da-flaeche); color: var(--da-text); }
.status-weg { background: var(--fehler-flaeche); color: var(--fehler-text); }
@media (max-width: 40rem) {
  .buecher thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .buecher, .buecher tbody, .buecher tr, .buecher td { display: block; width: 100%; }
  .buecher tr { padding: .75rem 0; border-bottom: 1px solid var(--rand); }
  .buecher td { border: 0; padding: .15rem 0; }
  .buecher td::before {
    content: attr(data-titel) ": "; display: block;
    font-size: .9rem; font-weight: 700; color: var(--text-2);
  }
}

/* ---------- Links ---------- */
.linkliste { list-style: none; padding: 0; margin: 0; }
.linkliste li { margin: 0 0 .5rem; }
.linkliste a, .ohne-link {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: .35rem 0; font-size: 1.15rem;
}
.entwurf-notiz {
  display: flex; align-items: flex-start; gap: .45rem;
  margin: 0 0 .5rem 2.1rem; font-size: .95rem; color: var(--rot);
}
.entwurf-notiz .sym { width: 18px; height: 18px; margin-top: .15rem; }

/* ---------- Impressum / Datenschutz ---------- */
.rechtstext h3 { font-size: 1.15rem; }
.rechtstext p { font-size: 1.05rem; }
details.englisch { margin-top: 2rem; border-top: 1px solid var(--rand); padding-top: 1rem; }
details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--akzent); }
.platzhalter-band {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--flaeche); color: var(--text);
  border: 3px dashed var(--rot); border-radius: var(--radius-gross);
  padding: 1.1rem 1.4rem; margin: 0 0 1.5rem;
}
.platzhalter-band .sym { width: 30px; height: 30px; color: var(--rot); }
.platzhalter-band p { margin: 0; }
.gliederung { padding-left: 1.8rem; margin: 0; }
.gliederung li { margin: 0 0 1.25rem; }
.gliederung h3 { margin: 0 0 .25rem; }
.gliederung p { margin: 0 0 .25rem; }
.fehlt { color: var(--rot); font-weight: 700; font-size: 1rem; }

/* ---------- Pflegebereich ---------- */
.formular-blatt { max-width: 48rem; margin-left: auto; margin-right: auto; }
.hilfe-kasten, .meldung-blatt { max-width: 48rem; margin-left: auto; margin-right: auto; }
.ist-pflege main > .blatt:not(.formular-blatt):not(.hilfe-kasten):not(.meldung-blatt) { max-width: 48rem; margin-left: auto; margin-right: auto; }
.meldung-blatt { padding: .75rem; }
.formular .feld { margin: 0 0 1.35rem; }
.formular label, .formular legend { display: block; font-weight: 700; font-size: 1.1rem; margin: 0 0 .35rem; color: var(--text); }
.formular label.wahl {
  display: flex; align-items: center; gap: .7rem; font-weight: 400;
  min-height: 44px; margin: 0 0 .25rem; cursor: pointer;
}
.wahl input { width: 24px; height: 24px; margin: 0; accent-color: #003366; }
.optional { font-weight: 400; color: var(--text-2); }
.feld-hilfe { margin: 0 0 .4rem !important; font-size: 1rem; color: var(--text-2); }
.formular input[type="text"], .formular input[type="email"], .formular input[type="password"],
.formular input[type="date"], .formular input[type="time"], .formular textarea {
  display: block; width: 100%; max-width: 32rem; min-height: 52px;
  padding: .6rem .8rem; margin: 0;
  font: 1.125rem/1.4 Arial, Helvetica, sans-serif; color: var(--text);
  background: var(--flaeche); border: 2px solid var(--feld-rand); border-radius: var(--radius-klein);
}
.formular textarea { max-width: 40rem; min-height: 7.5rem; resize: vertical; }
.feld-reihe { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.feld-datum input { width: 15rem !important; }
.feld-zeit input { width: 10rem !important; }
fieldset.feld { border: 0; padding: 0; margin: 0 0 1.35rem; }
fieldset.feld-gruppe { border: 1px solid var(--rand); border-radius: var(--radius); padding: 1rem 1.25rem .25rem; margin: 0 0 1.35rem; }
fieldset.feld-gruppe legend { padding: 0 .4rem; color: var(--akzent); font-size: 1.2rem; }
.meldung {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.2rem; margin: 0 0 1.25rem; border-radius: var(--radius);
  border-left: 8px solid;
}
.meldung .sym { width: 28px; height: 28px; }
.meldung p { margin: 0 0 .25rem; }
.meldung ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.meldung-ok { background: var(--ok-flaeche); border-color: var(--ok-rand); color: var(--ok-text); }
.meldung-fehler { background: var(--fehler-flaeche); border-color: var(--rot); color: var(--fehler-text); }
.meldung-blatt .meldung { margin: 0; }
.vorfuehr-band {
  display: flex; gap: .8rem; align-items: flex-start;
  max-width: 48rem; margin: 0 auto 1.5rem; padding: 1rem 1.25rem;
  background: var(--gelb-flaeche); color: var(--gelb-text);
  border: 2px solid var(--fokus); border-radius: var(--radius-gross); box-shadow: var(--schatten);
}
.vorfuehr-band .sym { width: 28px; height: 28px; }
.vorfuehr-band p { margin: 0 0 .6rem; }
.vorfuehr-band form { margin: 0; }
.vorfuehr-band .knopf-zweit { color: var(--gelb-text); border-color: var(--gelb-text); }
.pflege-liste { list-style: none; padding: 0; margin: 0; max-width: none !important; }
.pflege-liste li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rand); max-width: none;
}
.pflege-liste li.ist-aus .pl-text { color: var(--text-2); }
.pl-status { display: inline-flex; align-items: center; gap: .4rem; font-size: 1rem; color: var(--text-2); }
.pl-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }
.pl-knoepfe form { margin: 0; }
details.vergangen { margin-top: 1.25rem; }
.ablage-zeile {
  max-width: 48rem; margin: 0 auto; padding: .5rem 1rem; text-align: center;
  background: var(--kasten); color: #fff; border-radius: var(--radius-klein); font-size: .95rem;
}
.ablage { margin-top: 1.25rem !important; }

/* ---------- Fußleiste ---------- */
.fuss-rahmen { text-align: center; padding: 0 16px 28px; }
.fuss {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 1.1rem;
  background: var(--kasten); border-radius: var(--radius-klein);
  padding: .3rem 1.25rem; font-size: 1rem; box-shadow: var(--schatten);
}
.fuss a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #fff; font-weight: 700; text-decoration: none;
}
.fuss a:hover { text-decoration: underline; }
.fuss a + a::before { content: "·" / ""; margin-right: 1.1rem; font-weight: 400; }

/* Vorlesen stoppen: schwebt, solange vorgelesen wird */
.vorlesen-stopp {
  position: fixed; right: 16px; bottom: 16px; z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 1.2rem;
  background: var(--tief); color: #fff; border: 2px solid #fff; border-radius: var(--radius);
  font: 700 1.05rem/1 Arial, Helvetica, sans-serif; cursor: pointer; box-shadow: var(--schatten);
}

/* ---------- Bewegung: nur sehr dezente Übergänge ---------- */
.hilfen button, .haupt a, .knopf, .abmelden button { transition: background-color .15s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Handy ---------- */
@media (max-width: 48rem) {
  .kopf { padding: 14px 16px 0; }
  .marke { text-align: left; font-size: 1.1rem; }
  .marke br { display: none; }
}
@media (max-width: 37.5rem) {
  .hilfen { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hilfen button { padding: 0 10px; font-size: .95rem; justify-content: flex-start; text-align: left; line-height: 1.15; }
  .haupt ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .haupt a { width: 100%; height: 100%; padding: .6rem .8rem; font-size: 1.02rem; justify-content: flex-start; text-align: left; }
  .fuss { padding: .3rem .9rem; gap: 0 .7rem; font-size: .98rem; }
  .fuss a + a::before { margin-right: .7rem; }
  .naechster { gap: 1rem; }
  .kalenderblatt { width: 8rem; }
  .kb-zahl { font-size: 3.8rem; }
  .knopf { width: 100%; }
  .pl-knoepfe { width: 100%; }
  .pl-knoepfe .knopf, .pl-knoepfe form { flex: 1 1 10rem; }
  .vorlesen-stopp { left: 16px; right: 16px; justify-content: center; }
}
@media (max-width: 22rem) {
  .haupt ul { grid-template-columns: 1fr; }
}

/* Kompakter am Rechner (Helge 07.11.2026 01:24: „die Kästen etwas kleiner und anpassen, dass unten nicht abgeschnitten“):
 * Termine + Wichtig/Raum zusammen ca. 895 px statt 1134 px hoch – passt bei 1920×1080 auf einen Bildschirm. */
@media (min-width: 60rem) {
  main .blatt { padding: 1.6rem 2rem; margin-bottom: 1rem; }
  .blatt h2 { margin-bottom: .6rem; }
  .termine-start .naechster { margin-bottom: .75rem; gap: 1rem 1.75rem; }
  .naechster-text h3 { font-size: 1.4rem; margin-bottom: .3rem; }
  .naechster-zeit { font-size: 1.2rem; line-height: 1.4; }
  .naechster-text p { margin-bottom: .6rem; }
  .kalenderblatt { width: 8.5rem; }
  .karte-auszug { flex-basis: 18rem; }
  .karte-auszug figcaption { white-space: nowrap; margin-top: .25rem; }
  .karte-auszug figcaption a { display: inline; }
  .weitere-titel { margin: .25rem 0 .35rem !important; font-size: 1.1rem; }
  .weitere { margin-bottom: .6rem; }
  .weitere li { padding: .45rem 0; }
  .termine-start > p:last-child { font-size: 1rem; line-height: 1.55; }
  .start-raster { gap: 1rem; margin-bottom: 1rem; grid-template-columns: 1.35fr .65fr; }
  .start-raster .blatt p { margin-bottom: .7rem; }
  .blatt .h2-folge { margin-top: 1.1rem; }
}

/* Am Rechner auf allen Seiten mit Bühne (Startseite 01:36; Unterseiten nach Helge 07.11.2026 01:39:
 * „die Technik auch auf die anderen Buttons ausbreiten“ – gilt für alle Seiten mit Bühne): die Seite bleibt stehen, nur die Kästen gleiten (Helge 07.11.2026 01:30/01:33:
 * „dass die Kästen so weit gehen, dass die Seite nicht nach oben wegwandert“). Bild, Hilfen, Menü und Name
 * stehen fest; die Kästen laufen in einem eigenen Bereich bis unter das Menü nach oben (Helge 01:35: „bis zur
 * roten Linie“) und blenden dort weich aus.
 * Mausrad und Tasten über dem Bild bewegen ebenfalls die Kästen (js/hilfen.js). Handy: unverändert. */
@media screen and (min-width: 60rem) and (min-height: 34rem) {
  html:has(.buehne-huelle), body:has(.buehne-huelle) { height: 100%; overflow: hidden; }
  body:has(.buehne-huelle) .buehne-huelle + main {
    position: fixed; z-index: 1; left: 0; right: 0; bottom: 0; top: var(--glas-oben, 13rem);
    max-width: none; margin: 0; padding: 0 16px 4.5rem;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    /* keine Maske: sie würde den Weichzeichner der Kästen abschalten (Name schien scharf durch) */
  }
  body:has(.buehne-huelle) .buehne-huelle + main > * { max-width: 64rem; margin-left: auto; margin-right: auto; }
  /* Anfangs liegen die Kästen unten, nur der obere Rand von „Termine“ schaut hervor */
  body:has(.buehne-huelle) .buehne-huelle + main::before { content: ""; display: block; height: calc(100vh - var(--glas-oben, 13rem) - 4.5rem); }
  /* Unterseiten: Seitentitel und ein gutes Stück vom ersten Kasten sind sofort zu sehen (Helge 01:39: „da ist bis dato nichts“) */
  body:has(.buehne-huelle):not(:has(.buehne-titel)) .buehne-huelle + main::before { height: calc((100vh - var(--glas-oben, 13rem)) * .42); }
  body:has(.buehne-huelle) .fuss-rahmen { position: fixed; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 16px 14px; }
  /* Fußleiste: Text, der darunter durchgleitet, wird weichgezeichnet, damit sich keine zwei Schriften überlagern */
  body:has(.buehne-huelle) .fuss { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

/* Fußleiste nicht mehr über den Kästen (Helge 07.11.2026 01:46: „nach rechts oder in den Hintergrund“).
 * Breite Bildschirme (ab 88rem): Fußleiste senkrecht rechts unten im freien Bildrand neben den Kästen.
 * Schmalere Rechner (60–88rem): rechts ist kein Platz – dort enden die Kästen über der Fußleiste.
 * Startseite: beim Aufruf ist noch kein Kasten zu sehen, nur Bild und Name (Helge 01:47: „fehlerhaft, weil Teile
 * unten beim Start der Seite zu sehen sind“); die Kästen kommen erst beim Scrollen. */
@media screen and (min-width: 60rem) and (min-height: 34rem) {
  body:has(.buehne-huelle) .buehne-huelle + main { bottom: 4.6rem; padding-bottom: 1rem; }
  body:has(.buehne-huelle) .buehne-huelle + main::before { height: calc(100vh - var(--glas-oben, 13rem) - 4.6rem + 1rem); }
}
@media screen and (min-width: 88rem) and (min-height: 34rem) {
  body:has(.buehne-huelle) .buehne-huelle + main { bottom: 0; padding-bottom: 1.5rem; }
  body:has(.buehne-huelle) .buehne-huelle + main::before { height: calc(100vh - var(--glas-oben, 13rem) + 1rem); }
  body:has(.buehne-huelle) .fuss-rahmen { left: auto; right: 32px; bottom: 16px; padding: 0; text-align: left; }
  body:has(.buehne-huelle) .fuss { flex-direction: column; align-items: flex-start; gap: 0; padding: .4rem 1rem; }
  body:has(.buehne-huelle) .fuss a + a::before { content: none; }
  /* „Vorlesen stoppen“ nach links unten, damit es die Fußleiste nicht verdeckt */
  body:has(.buehne-huelle) .vorlesen-stopp { right: auto; left: 32px; }
}

/* Startseite auf breiten Rechnern zweispaltig (Helge 07.11.2026 01:51: „ein kleiner Fehler“ – am Ende war der Kopf
 * von „Termine“ unter den Knöpfen abgeschnitten, weil die Kästen höher waren als der freie Platz).
 * Termine links, Wichtig/Hinweis und Raum rechts; beide Spalten gleich hoch (Helge 02:00). Breite so begrenzt,
 * dass rechts die senkrechte Fußleiste frei bleibt.
 * Leichte Sprache ebenso (Helge 02:01: „beim Umschalten auf Leichte Sprache sind die Kastenänderungen nicht
 * wirksam“): links Willkommen und Termine, rechts Wichtig und Raum. */
@media screen and (min-width: 100rem) and (min-height: 34rem) {
  html:not(.leicht-an) body:has(.buehne-titel) main > div.fassung.standard,
  html.leicht-an body:has(.buehne-titel) main > div.fassung.leicht {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; align-items: stretch;
    max-width: min(100rem, calc(100vw - 23.5rem));
  }
  html.leicht-an body:has(.buehne-titel) main > div.fassung.leicht { grid-template-rows: auto 1fr; }
  body:has(.buehne-titel) main > div.fassung > .blatt { grid-column: 1; margin: 0; }
  body:has(.buehne-titel) main > div.fassung > .start-raster { grid-column: 2; grid-row: 1; margin: 0; grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 1rem; }
  body:has(.buehne-titel) main > div.fassung.leicht > .start-raster { grid-row: 1 / span 2; }
  body:has(.buehne-titel) main > div.fassung > .start-raster .raumbild { justify-content: flex-start; }
  body:has(.buehne-titel) main > div.fassung > .start-raster .raumbild img { max-height: 13rem; flex: none; }
}

/* Unterseiten: Seitentitel oben unter den Knöpfen, Kästen unten (Helge 07.11.2026 01:54: „der Kasten runter, das Wort
 * Kontakt nach oben wie bei den anderen Seiten“; 01:53: „Links brauchen nicht gescrollt werden“).
 * Der Titel steht fest wie der Name auf der Startseite; die Kästen gleiten beim Scrollen über ihn bis unter die Knöpfe.
 * Passt der Inhalt ganz auf den Bildschirm, steht er unten und es muss nicht gescrollt werden; ist er länger,
 * beginnt er direkt unter dem Titel. */
@media screen and (min-width: 60rem) and (min-height: 34rem) {
  body:has(.buehne-huelle):not(:has(.buehne-titel)) .buehne-huelle + main { display: flex; flex-direction: column; justify-content: safe flex-end; }
  body:has(.buehne-huelle):not(:has(.buehne-titel)) .buehne-huelle + main > * { flex: none; width: 100%; }
  body:has(.buehne-huelle):not(:has(.buehne-titel)) .buehne-huelle + main > h1.seitentitel {
    position: fixed; z-index: -1; left: 0; right: 0; top: calc(var(--glas-oben, 13rem) + .25rem);
    width: auto; max-width: none; margin: 0; padding: 0 16px;
  }
  body:has(.buehne-huelle):not(:has(.buehne-titel)) .buehne-huelle + main::before { flex: none; height: calc(clamp(2.2rem, 1.5rem + 3vw, 4rem) * 1.1 + 2rem); }
}

/* Fußleiste am Handy ohne Trennpunkte: beim Umbruch stand sonst ein Punkt am Zeilenanfang („· Pflegebereich“)
 * (Handy-Prüfung 07.11.2026 02:15). */
@media (max-width: 37.5rem) {
  .fuss { gap: 0 1.25rem; }
  .fuss a + a::before { content: none; }
}


/* Im Verbund mit – zwei Länderspalten + Überregional (08.11.2026) */
.verbund-spalten { display: grid; grid-template-columns: 1fr 1fr; margin-top: .75rem; }
.verbund-land { padding: 0 1.5rem 0 0; }
.verbund-land + .verbund-land { padding: 0 0 0 1.5rem; border-left: 2px solid rgba(128, 128, 128, .45); }
.verbund-kopf { display: flex; align-items: center; gap: .7rem; margin: 0 0 .8rem; padding-bottom: .55rem;
  font-size: 1.2rem; border-bottom: 2px solid rgba(128, 128, 128, .45); }
.verbund-kopf img { width: 2.5rem; height: auto; flex: none; }
.verbund-ueber { margin-top: 1.6rem; }
@media (max-width: 44rem) {
  .verbund-spalten { grid-template-columns: 1fr; }
  .verbund-land, .verbund-land + .verbund-land { padding: 0; border-left: 0; }
  .verbund-land + .verbund-land { margin-top: 1.2rem; }
}
