/* Grundschule Theme 1.1 - mobile first, Barrierefreiheit nach EN 301 549 (WCAG 2.1 AA) */

/* ---------- Farbwelten (Design pro Hauptmenuepunkt) ----------
   --primaer: Texte/Flaechen mit weisser Schrift (Kontrast >= 4,5:1 geprueft)
   --akzent : nur Zierde (Rahmen, Streifen), nie als einzige Information
   --hell   : Hintergrund fuer Karten und Leisten */
.design-standard { --primaer: #1D5F8F; --primaer-dunkel: #164a70; --akzent: #F2610C; --hell: #EAF2F8; }
.design-orange   { --primaer: #A33F00; --primaer-dunkel: #7d2f00; --akzent: #F2610C; --hell: #FDEFE6; }
.design-gruen    { --primaer: #2E6B0F; --primaer-dunkel: #214f0b; --akzent: #4C8F13; --hell: #EEF6E6; }
.design-blau     { --primaer: #164A70; --primaer-dunkel: #0f3452; --akzent: #2A8AD0; --hell: #E6F0F8; }
.design-beere    { --primaer: #8E1B5A; --primaer-dunkel: #6b1444; --akzent: #D6336C; --hell: #FBE9F1; }
.design-sonne    { --primaer: #5E4700; --primaer-dunkel: #473600; --akzent: #F5B800; --hell: #FFF6D6; }

:root {
  --text: #222222;
  --bg: #FFFFFF;
  --rand: #d4d4d4;
  --radius: 12px;
  --tipp: 3rem;           /* Mindesthoehe fuer Tippflaechen (ca. 48px) */
  --fs: 112.5%;
  --leiste: #FFFFFF;      /* Hintergrund Kopfbereich */
}
* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Nunito", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 70rem; margin: 0 auto; padding: 1rem; }
.content { padding-top: 1rem; padding-bottom: 1.5rem; }
.content > * { max-width: 46rem; }
.content:focus { outline: none; }

/* Sprunglinks */
.skip-links { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; color: #000; padding: .75rem 1rem; z-index: 100; border: 3px solid #000; border-radius: 8px; }

a { color: var(--primaer); text-underline-offset: .15em; }
/* Sichtbarer Fokus: doppelter Ring (dunkel + hell), auf jedem Hintergrund erkennbar */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--primaer-dunkel); outline-offset: 2px; box-shadow: 0 0 0 6px #fff;
}

h1, h2, h3 { line-height: 1.25; color: var(--primaer); }
h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-top: 0; }
h2 { font-size: clamp(1.3rem, 4.5vw, 1.7rem); }
h3 { font-size: 1.2rem; }

img, video, iframe { max-width: 100%; height: auto; border-radius: var(--radius); }
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
td, th { padding: .5rem .75rem; border: 1px solid #bdbdbd; text-align: left; vertical-align: top; }
caption { text-align: left; font-weight: 700; padding: .5rem 0; color: var(--primaer); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .35rem; }

/* Bereichsleiste (Name des Hauptmenuepunkts, in dessen Farbwelt) */
.bereich {
  display: inline-block; margin: 0 0 1rem; padding: .25rem .9rem;
  font-weight: 700; font-size: .9rem; letter-spacing: .02em;
  color: #fff; background: var(--primaer); border-bottom: 4px solid var(--akzent); border-radius: 8px 8px 0 0;
}
.content > .bereich { max-width: none; }

/* Brotkrumen */
.breadcrumb { padding-top: .5rem; padding-bottom: 0; font-size: .9rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "\203A"; margin-right: .35rem; color: #595959; }
.breadcrumb a, .breadcrumb [aria-current] { display: inline-block; padding: .25rem .1rem; }

/* Werkzeugleiste Darstellung (nur mit JavaScript) */
.a11y-tools {
  position: fixed; bottom: .75rem; right: .75rem; z-index: 50; /* links statt rechts: "right" durch "left" ersetzen */
  max-width: calc(100vw - 1.5rem); background: #f3f3f3; border: 2px solid #595959; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.a11y-tools[hidden] { display: none; }
.js .a11y-tools:not([hidden]) { display: block; }
.a11y-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .4rem .5rem; }
/* Platz am Seitenende, damit die feste Leiste nichts verdeckt */
.site-footer { padding-bottom: 5rem; }
.a11y-label { font-size: .85rem; font-weight: 700; }
.a11y-tools button {
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 .8rem; font: inherit; font-size: .85rem; font-weight: 700;
  color: var(--text); background: #fff; border: 2px solid #595959; border-radius: 8px; cursor: pointer;
}
.a11y-tools button[aria-pressed="true"] { background: #000; color: #fff; }

/* Darstellung: kleiner "Aa"-Knopf auf allen Geraeten, das Feld klappt erst beim Antippen auf */
.a11y-tools { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: .4rem; background: transparent; border: 0; box-shadow: none; max-width: calc(100vw - 1.5rem); }
.js .a11y-tools:not([hidden]) { display: flex; }
.a11y-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; padding: 0 .75rem;
  font: inherit; font-size: 1rem; font-weight: 700; color: var(--text); background: #f3f3f3; border: 2px solid #595959; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer;
}
.a11y-toggle[aria-expanded="true"] { background: #000; color: #fff; }
.a11y-tools .a11y-inner { background: #f3f3f3; border: 2px solid #595959; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.a11y-tools:not(.a11y-offen) .a11y-inner { display: none; }
html.a11y-kontrast .a11y-tools .a11y-inner { background: #000; border-color: #fff; }
html.a11y-kontrast .a11y-toggle { background: #000; color: #fff; border-color: #fff; }
html.a11y-kontrast .a11y-toggle[aria-expanded="true"] { background: #FFE600; color: #000; }

/* Downloads (z. B. PDF) */
.downloads { margin: 2rem 0; }
.download-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.download-eintrag { border: 2px solid var(--primaer); border-radius: 10px; background: var(--hell); }
.download-link { display: block; padding: .75rem 1rem; min-height: 2.75rem; color: var(--primaer-dunkel); font-weight: 700; text-decoration: underline; }
.download-info { font-weight: 400; margin-left: .35rem; white-space: nowrap; }
.download-text { display: block; padding: 0 1rem .75rem; }
html.a11y-kontrast .download-eintrag { background: #000; border-color: #fff; }
html.a11y-kontrast .download-link { color: #FFE600; }

/* Kopfbereich */
.site-header { background: var(--leiste); border-bottom: 6px solid var(--akzent); position: relative; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; padding-top: .5rem; padding-bottom: .5rem; }
.logo { flex: 1 1 100%; display: block; text-align: center; line-height: 0; text-decoration: none; }
.logo img { display: block; width: 100%; max-width: 68rem; height: auto; margin: 0 auto; border-radius: 0; }

/* Menue-Knopf (Handy) */
.nav-toggle {
  display: none; align-items: center; gap: .6rem;
  min-height: var(--tipp); padding: 0 1rem;
  font: inherit; font-weight: 700; color: #fff;
  background: var(--primaer); border: 0; border-radius: var(--radius); cursor: pointer;
}
.js .nav-toggle { display: inline-flex; width: 100%; justify-content: center; }
.bars, .bars::before, .bars::after { display: block; width: 1.4rem; height: 3px; background: currentColor; border-radius: 2px; content: ""; }
.bars { position: relative; }
.bars::before { position: absolute; top: -7px; }
.bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* Hauptmenue: jeder Punkt mit eigener Farbwelt (Streifen links bzw. unten) */
.site-nav { width: 100%; }
.js .site-nav:not(.open) { display: none; }
.nav, .sub { list-style: none; margin: 0; padding: 0; }
.nav > li { border-top: 1px solid rgba(0,0,0,.12); margin: 0; border-left: 6px solid var(--akzent); }
.nav a {
  display: flex; align-items: center; min-height: var(--tipp);
  padding: .55rem .85rem; font-size: 1.05rem; color: var(--primaer); font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.nav a:hover, .nav .active > a, .nav a[aria-current="page"] { background: var(--primaer); color: #fff; }
.sub { padding-left: 1rem; margin-bottom: .5rem; }
.sub a { font-weight: 400; min-height: 2.75rem; }
/* Partner-Untermenue mit Logos */
.sub-partner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.sub-partner li { margin: 0; }
.nav .sub-partner a.sub-logo-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .5rem; text-align: center; border: 1px solid var(--rand); border-radius: var(--radius); background: #fff; color: var(--primaer-dunkel); font-weight: 700; }
.sub-logo { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3.5rem; background: #fff; }
.sub-logo img { max-width: 100%; max-height: 3.5rem; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.sub-logo-name { font-size: .8rem; line-height: 1.2; }
.nav .sub-partner a.sub-logo-link:hover, .nav .sub-partner a.sub-logo-link:focus-visible { background: var(--hell); color: var(--primaer-dunkel); }

/* News-Leiste unter dem Menue (feste Liste, keine Laufschrift) */
.news-strip { background: var(--hell); border-top: 1px solid var(--rand); }
.news-inner { padding-top: .3rem; padding-bottom: .3rem; display: grid; gap: .15rem; }
.news-title { margin: 0; font-size: .9rem; line-height: 1.2; color: var(--primaer); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.news-list li { margin: 0; }
.news-list a { display: block; padding: 0 0 .1rem; min-height: 1.5rem; font-size: .9rem; line-height: 1.25; font-weight: 700; }
.news-datum { display: block; font-size: .75rem; line-height: 1.2; margin: 0; color: #333; }
.news-alle { font-size: .85rem; display: inline-block; padding: .1rem 0; min-height: 1.5rem; }

/* Termine, Nachrichten, Karten */
.seiten-datum { margin: 0 0 .75rem; font-weight: 700; color: #333; }
.hinweis { margin-top: 1.5rem; }
.content > .karten-liste, .content > .partner-grid, .content > .album-grid, .content > .galerie, .content > .termin-tabelle, .content > .news-seite, .content > .faq { max-width: none; }
.karten-liste, .partner-grid, .album-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.karte, .partner-card, .album-card { margin: 0; }
.karte-link, .partner-link, .album-link {
  display: flex; flex-direction: column; gap: .5rem; height: 100%;
  padding: 1rem; color: var(--text); text-decoration: none;
  background: #fff; border: 2px solid #c9c9c9; border-top: 6px solid var(--akzent); border-radius: var(--radius);
}
.karte-link:hover, .partner-link:hover, .album-link:hover { border-color: var(--primaer); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.karte-datum { display: flex; flex-direction: column; font-weight: 700; color: var(--primaer); }
.karte-tag { font-size: .85rem; color: #333; }
.karte-titel, .partner-name, .album-titel { font-size: 1.15rem; font-weight: 700; color: var(--primaer); line-height: 1.3; }
.karte-text, .partner-text, .album-text { font-size: .95rem; }

.termin-tabelle { margin-top: 1rem; }
.termin-tabelle th[scope="row"] { white-space: nowrap; background: var(--hell); }
.termin-tabelle thead th { background: var(--primaer); color: #fff; }

.news-seite { list-style: none; padding: 0; margin: 1rem 0 0; }
.news-eintrag { margin: 0 0 1.5rem; padding: 0 0 1rem 1rem; border-left: 6px solid var(--akzent); }
.news-eintrag-titel { margin: 0 0 .25rem; font-size: 1.3rem; }

/* Schon gewusst? */
.faq { margin-top: 1rem; display: grid; gap: .6rem; }
.faq-eintrag { background: var(--hell); border: 2px solid var(--primaer); border-radius: var(--radius); }
.faq-eintrag summary { cursor: pointer; padding: .75rem 1rem; min-height: var(--tipp); font-weight: 700; color: var(--primaer-dunkel); }
.faq-antwort { padding: 0 1rem 1rem; }

/* Partner */
.partner-logo { display: flex; align-items: center; justify-content: center; min-height: 9rem; background: #fff; }
.partner-logo img { max-width: 100%; max-height: 9rem; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.partner-nur-logo .partner-logo { min-height: 8rem; }
.partner-more { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--primaer); font-size: .95rem; }

/* Fotogalerie */
.album-bild { display: block; aspect-ratio: 3 / 2; background: var(--hell); border-radius: 8px; overflow: hidden; }
.album-bild img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.album-leer { display: flex; height: 100%; align-items: center; justify-content: center; color: #444; font-size: .9rem; }
.album-anzahl { font-size: .85rem; color: #333; }
.galerie { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.galerie li { margin: 0; }
.galerie a { display: block; border-radius: var(--radius); }
.galerie img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie-text { display: block; font-size: .85rem; margin-top: .25rem; }
.lightbox { width: min(95vw, 70rem); max-height: 95vh; padding: 1rem; border: 3px solid var(--primaer-dunkel, #164a70); border-radius: var(--radius); background: #fff; color: var(--text); }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox img { display: block; margin: 0 auto; max-height: 70vh; width: auto; border-radius: 0; }
.lightbox-text { margin: .5rem 0 0; text-align: center; min-height: 1.6rem; }
.lightbox-leiste { display: flex; gap: .5rem; justify-content: center; margin-top: .5rem; flex-wrap: wrap; }
.lightbox button { min-height: var(--tipp); min-width: var(--tipp); padding: 0 1rem; font: inherit; font-weight: 700; color: #fff; background: #164a70; border: 0; border-radius: var(--radius); cursor: pointer; }

/* Fusszeile */
.site-footer { background: var(--primaer-dunkel); color: #fff; margin-top: 2rem; }
.site-footer a { color: #fff; display: inline-block; padding: .5rem .25rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-links li { margin: 0; }

/* Tablet und Desktop: Menue waagerecht mit Aufklappmenue */
@media (min-width: 56rem) {
  :root { --fs: 125%; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .js .site-nav:not(.open), .site-nav { display: block; width: 100%; }
  .nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
  .nav > li { position: relative; border-top: 0; border-left: 0; border-bottom: 5px solid var(--akzent); border-radius: var(--radius) var(--radius) 0 0; }
  .nav a { padding: .65rem 1rem; font-size: 1.05rem; }
  .sub a { font-size: 1rem; }
  .sub {
    display: none; position: absolute; left: 0; top: 100%; z-index: 20;
    min-width: 16rem; padding: .5rem; margin: 0;
    background: #fff; border: 2px solid var(--primaer); border-radius: var(--radius);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
  }
  .nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
  .sub-partner { display: none; grid-template-columns: repeat(3, 9rem); gap: .6rem; left: auto; right: 0; min-width: 0; width: max-content; max-width: 90vw; }
  .nav li:hover > .sub-partner, .nav li:focus-within > .sub-partner { display: grid; }
  .sub-logo { min-height: 4.5rem; }
  .sub-logo img { max-height: 4.5rem; }
  .news-inner { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 1rem; }
  .news-list { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.5rem; }
}

/* Benutzer-Einstellungen "Darstellung": Schriftgroesse */
html.a11y-font-1 { font-size: calc(var(--fs) * 1.15); }
html.a11y-font-2 { font-size: calc(var(--fs) * 1.3); }
html.a11y-font-3 { font-size: calc(var(--fs) * 1.5); }
html.a11y-fontklein { font-size: calc(var(--fs) * .9); }

/* Hoher Kontrast: schwarz/weiss/gelb */
html.a11y-kontrast body { background: #000; color: #fff; }
html.a11y-kontrast .site, html.a11y-kontrast .site[class] { --primaer: #FFE600; --primaer-dunkel: #FFE600; --akzent: #FFE600; --hell: #000; --text: #fff; --leiste: #000; --rand: #fff; }
html.a11y-kontrast .nav > li { --primaer: #FFE600; --akzent: #FFE600; }
html.a11y-kontrast a { color: #FFE600; }
html.a11y-kontrast h1, html.a11y-kontrast h2, html.a11y-kontrast h3, html.a11y-kontrast caption { color: #fff; }
html.a11y-kontrast .nav a, html.a11y-kontrast .news-list a { color: #FFE600; }
html.a11y-kontrast .nav .sub-partner a.sub-logo-link { background: #000; color: #FFE600; border-color: #fff; }
html.a11y-kontrast .nav a:hover, html.a11y-kontrast .nav .active > a, html.a11y-kontrast .nav a[aria-current="page"],
html.a11y-kontrast .bereich, html.a11y-kontrast .nav-toggle, html.a11y-kontrast .termin-tabelle thead th { background: #FFE600; color: #000; }
html.a11y-kontrast .sub, html.a11y-kontrast .karte-link, html.a11y-kontrast .partner-link, html.a11y-kontrast .album-link,
html.a11y-kontrast .faq-eintrag, html.a11y-kontrast .lightbox { background: #000; color: #fff; border-color: #fff; }
html.a11y-kontrast .karte-titel, html.a11y-kontrast .partner-name, html.a11y-kontrast .album-titel, html.a11y-kontrast .faq-eintrag summary,
html.a11y-kontrast .karte-datum, html.a11y-kontrast .partner-more { color: #FFE600; }
html.a11y-kontrast .karte-tag, html.a11y-kontrast .news-datum, html.a11y-kontrast .seiten-datum, html.a11y-kontrast .album-anzahl, html.a11y-kontrast .breadcrumb li + li::before { color: #fff; }
html.a11y-kontrast .termin-tabelle th[scope="row"] { background: #000; }
html.a11y-kontrast td, html.a11y-kontrast th { border-color: #fff; }
html.a11y-kontrast .site-footer { background: #000; border-top: 4px solid #FFE600; }
html.a11y-kontrast .site-footer a { color: #FFE600; }
html.a11y-kontrast .a11y-tools { background: #000; color: #fff; border-color: #fff; }
html.a11y-kontrast .a11y-tools button { background: #000; color: #fff; border-color: #fff; }
html.a11y-kontrast .a11y-tools button[aria-pressed="true"] { background: #FFE600; color: #000; }
html.a11y-kontrast a:focus-visible, html.a11y-kontrast button:focus-visible, html.a11y-kontrast summary:focus-visible { outline-color: #FFE600; box-shadow: 0 0 0 6px #000; }
html.a11y-kontrast .logo img { background: #fff; }
html.a11y-kontrast .album-bild, html.a11y-kontrast .album-leer { background: #000; color: #fff; }
html.a11y-kontrast .lightbox button { background: #FFE600; color: #000; }

/* Weniger Bewegung, Druck */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .skip-links, .a11y-tools, .breadcrumb, .news-strip { display: none; } }

/* ---------- Partner-Banner (Ort: rechts, links, unten; Anordnung: leiste, untereinander, nebeneinander) ---------- */
.partner-banner { padding: 1rem; margin: 0; }
.pb-titel { font-size: 1.1rem; color: var(--primaer); margin: 0 0 .75rem; }
.pb-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .75rem; }
.pb-liste li { margin: 0; }
.pb-link { display: flex; align-items: center; justify-content: center; min-height: var(--tipp); height: 100%; padding: .5rem; background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); text-decoration: none; color: var(--primaer-dunkel); font-weight: 700; text-align: center; }
.pb-link:hover, .pb-link:focus-visible { border-color: var(--primaer); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pb-link { flex-direction: column; gap: .35rem; }
.pb-name { font-size: .95rem; line-height: 1.3; }
.pb-link img { max-width: 100%; height: auto; max-height: 5.5rem; object-fit: contain; border-radius: 0; }
.pb-untereinander .pb-liste { grid-template-columns: 1fr; }
.pb-leiste .pb-liste { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .75rem; padding-bottom: .5rem; scroll-snap-type: x proximity; }
.pb-leiste .pb-liste li { flex: 0 0 11rem; scroll-snap-align: start; }
.spalten-unten > .partner-banner { max-width: 70rem; margin: 0 auto; }
@media (min-width: 64rem) {
  .spalten-rechts, .spalten-links { display: flex; align-items: flex-start; gap: 1.5rem; max-width: 84rem; margin: 0 auto; }
  .spalten-rechts > main.content, .spalten-links > main.content { flex: 1 1 0; min-width: 0; max-width: none; margin: 0; }
  .spalten-rechts > .partner-banner, .spalten-links > .partner-banner { flex: 0 0 15rem; margin-top: 1rem; }
  .spalten-links > .partner-banner { order: -1; }
  .spalten-rechts .pb-liste, .spalten-links .pb-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spalten-rechts .pb-untereinander .pb-liste, .spalten-links .pb-untereinander .pb-liste,
  .spalten-rechts .pb-leiste .pb-liste, .spalten-links .pb-leiste .pb-liste { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .spalten-rechts .pb-leiste .pb-liste li, .spalten-links .pb-leiste .pb-liste li { flex: none; }
}

/* ---------- Hintergrundbild (Einstellungen grundschuleHintergrund...) ---------- */
.site-hg { min-height: 100vh; }
.hg-karte .content, .hg-karte .partner-banner { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.hg-karte .content { margin-top: 1rem; margin-bottom: 1rem; }
.hg-karte .spalten-rechts > main.content, .hg-karte .spalten-links > main.content { margin: 1rem 0; }
.hg-karte .breadcrumb { background: rgba(255,255,255,.92); border-radius: var(--radius); }
html.a11y-kontrast .site-hg { background: none !important; }
html.a11y-kontrast .hg-karte .content, html.a11y-kontrast .hg-karte .partner-banner { background: #000; box-shadow: none; }
html.a11y-kontrast .pb-link { background: #000; color: #FFE600; border-color: #fff; }

/* ---------- Karussell (Startseite), barrierefrei: Zurueck/Weiter/Anhalten, kein Weiterschalten ohne Einstellung ---------- */
.kar-wrap { padding-bottom: 0; }
.karussell { margin: 0 0 1.5rem; background: var(--primaer-dunkel); color: #fff; }
.kar-folien { list-style: none; margin: 0; padding: 0; }
.kar-folie { position: relative; display: flex; align-items: flex-end; min-height: 16rem; margin: 0; background: var(--primaer); overflow: hidden; }
.kar-folie[hidden] { display: none; }
.kar-folie img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.kar-text { position: relative; z-index: 1; max-width: 44rem; margin: 0; padding: 1.25rem 1.5rem; background: var(--primaer-dunkel); color: #fff; }
.karussell .kar-titel { margin: 0; font-size: clamp(1.5rem, 4.5vw, 2.4rem); line-height: 1.15; color: #fff; }
.karussell .kar-titel a { color: #fff; text-decoration-thickness: 2px; }
.kar-unter { margin: .5rem 0 0; font-size: 1.1rem; color: #fff; }
.kar-steuerung { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .75rem; background: #111; color: #fff; }
.kar-steuerung[hidden] { display: none; }
.kar-steuerung button { min-height: 2.75rem; padding: 0 1rem; font: inherit; font-weight: 700; color: #111; background: #fff; border: 2px solid #fff; border-radius: 0; cursor: pointer; }
.kar-status { margin-left: auto; font-size: .9rem; }
html.a11y-kontrast .karussell, html.a11y-kontrast .kar-folie, html.a11y-kontrast .kar-text { background: #000; color: #fff; }
html.a11y-kontrast .kar-text { border: 2px solid #FFE600; }
html.a11y-kontrast .karussell .kar-titel a { color: #FFE600; }
html.a11y-kontrast .kar-steuerung button { background: #FFE600; color: #000; border-color: #FFE600; }

/* ---------- Auswahlkasten "Ich bin ... und interessiert an ..." ---------- */
.auswahl { margin: 0 0 2rem; padding: 1.25rem; background: var(--hell); border-top: 4px solid var(--akzent); }
.auswahl h2 { margin: 0 0 1rem; }
.auswahl-form:not([hidden]) { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: end; }
.auswahl-feld { display: grid; gap: .35rem; }
.auswahl label { font-weight: 700; color: #111; }
.auswahl select { min-height: var(--tipp); padding: .5rem; font: inherit; color: #111; background: #fff; border: 2px solid #595959; border-radius: 0; }
.auswahl-los { min-height: var(--tipp); padding: 0 1.25rem; font: inherit; font-weight: 700; color: #fff; background: var(--primaer); border: 0; border-radius: 0; cursor: pointer; }
.auswahl-meldung { grid-column: 1 / -1; margin: 0; min-height: 1.5rem; font-weight: 700; }
.auswahl-js .auswahl-listen { display: none; }
.auswahl-listen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.auswahl-listen h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.auswahl-listen ul { margin: 0; padding-left: 1.2rem; }
html.a11y-kontrast .auswahl { background: #000; border: 2px solid #fff; }
html.a11y-kontrast .auswahl label { color: #fff; }
html.a11y-kontrast .auswahl-los { background: #FFE600; color: #000; }

/* ---------- Dritte Menuebene ---------- */
.sub-3 { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 .9rem; }
.sub-3 a { font-size: .95rem; }

/* ---------- Menue-Schrift (im Backend einstellbar: grundschuleMenue..., grundschuleUntermenue...) ---------- */
.nav > li > a {
  font-weight: var(--menue-staerke, 500); font-size: max(.8rem, calc(1.05rem * var(--menue-skala, 1)));
  letter-spacing: var(--menue-abstand, normal); text-transform: var(--menue-gross, none);
  font-family: var(--menue-schrift, inherit); font-stretch: var(--menue-breite, normal);
}
.sub a {
  font-weight: var(--unter-staerke, 400); font-size: max(.8rem, calc(1rem * var(--menue-skala, 1)));
  letter-spacing: var(--menue-abstand, normal); font-family: var(--menue-schrift, inherit); font-stretch: var(--menue-breite, normal);
}
