/* Historische Arbeitsgemeinschaft für Schaumburg – Facelift 2026.
   Farben aus der alten Seite: Blau #1D5FA2 / #1D5690, Rot #DE210F (Schriftzug, Wappen), Hellblau #A5BFDA, Grau-Menüleiste */
:root {
  --blau: #1d5fa2;
  --blau-dunkel: #164a80;
  --blau-hell: #a5bfda;
  --blau-zart: #eef3f9;
  --rot: #c81e0c;        /* etwas dunkler als #DE210F, damit Text auf Weiß gut lesbar ist */
  --grau: #e4e6e9;
  --grau-linie: #c9cdd2;
  --text: #22262b;
  --text-leise: #5d646c;
  --radius: 8px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f3f4f6; color: var(--text); font: 17px/1.6 var(--schrift); }
img { max-width: 100%; height: auto; }
a { color: var(--blau); text-underline-offset: .15em; }
a:hover { color: var(--rot); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.rahmen { max-width: 1180px; margin: 0 auto; background: #fff; box-shadow: 0 0 30px rgba(20,40,70,.12); }
@media (min-width: 1220px) { .rahmen { margin: 20px auto; border-radius: var(--radius); overflow: hidden; } }

/* Kopf wie bisher: Wappen links, darüber blaues Band, Bildleiste, darunter der rote Schriftzug */
.kopf { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.75rem; align-items: center;
  padding: 0 clamp(1rem, 3vw, 2rem) .9rem; border-top: 12px solid var(--blau); }
.wappen { grid-row: 1 / 3; align-self: center; padding-top: .9rem; }
.wappen img { display: block; width: 72px; height: auto; }
.bildleiste { display: flex; border-top: 4px solid var(--blau-hell); }
.bildleiste img { display: block; height: 76px; width: auto; }
.name { color: var(--rot); font-size: clamp(1.2rem, 2.6vw, 1.8rem); line-height: 1.2; text-decoration: none; font-weight: 500; }
.name:hover { color: var(--blau-dunkel); }
.suche { display: flex; margin: .35rem clamp(.5rem, 2vw, 1.5rem) .35rem auto; }
.suche input { width: 11rem; font: inherit; font-size: .9rem; padding: .3rem .6rem; border: 1px solid var(--grau-linie); border-right: 0; border-radius: 6px 0 0 6px; }
.suche button { font: inherit; font-size: .9rem; padding: .3rem .8rem; border: 0; background: var(--rot); color: #fff; border-radius: 0 6px 6px 0; cursor: pointer; }
.suche button:hover { background: var(--blau-dunkel); }

/* Hauptmenü: graue Leiste wie bisher */
.hauptmenue { display: flex; flex-wrap: wrap; align-items: center; background: var(--grau); border-top: 1px solid var(--grau-linie); border-bottom: 3px solid var(--blau); }
.hauptmenue ul { list-style: none; margin: 0; padding: 0 clamp(.5rem, 2vw, 1.5rem); display: flex; flex-wrap: wrap; }
.hauptmenue a { display: block; padding: .7rem 1rem; color: var(--text); text-decoration: none; font-weight: 600; }
.hauptmenue a:hover { background: #fff; color: var(--blau); }
.hauptmenue a[aria-current] { background: var(--blau); color: #fff; }

.spalten { display: grid; grid-template-columns: 1fr; }
.spalten.mit-menue { grid-template-columns: 230px minmax(0, 1fr); }
.spalten.mit-rechts { grid-template-columns: minmax(0, 1fr) 230px; }
.spalten.mit-menue.mit-rechts { grid-template-columns: 230px minmax(0, 1fr) 230px; }

.untermenue { background: var(--blau-zart); padding: 1.25rem 0 2rem; border-right: 1px solid #dde5ee; }
.untermenue summary { display: none; }
.untermenue ul { list-style: none; margin: 0; padding: 0; }
.untermenue a { display: block; padding: .4rem 1rem .4rem 1.25rem; color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.3; font-size: .95rem; }
.untermenue ul ul a { padding-left: 2.1rem; font-weight: 500; }
.untermenue ul ul ul a { padding-left: 2.9rem; }
.untermenue a:hover { background: #fff; color: var(--blau); }
.untermenue a[aria-current] { background: #fff; color: var(--rot); box-shadow: inset 4px 0 0 var(--rot); }

.inhalt { padding: 1.75rem clamp(1rem, 4vw, 2.75rem) 3rem; min-width: 0; }
.pfad { font-size: .85em; color: var(--text-leise); margin-bottom: .5rem; }
.pfad a { color: inherit; }
h1 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.25; margin: 0 0 1.25rem; color: var(--blau-dunkel); font-weight: 650; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 1.5rem 0 .75rem; color: var(--blau-dunkel); }
h3 { font-size: 1.08rem; margin: 1.3rem 0 .4rem; color: var(--blau-dunkel); }

.startbild { margin: 0 0 1.5rem; }
.startbild img { display: block; width: 100%; border-radius: 6px; }
.startbild figcaption { font-size: .8rem; color: var(--text-leise); margin-top: .3rem; }

.baustein { margin: 0 0 2rem; }
.baustein::after { content: ""; display: block; clear: both; }
.bild { margin: 0 0 1rem; }
.bild img { display: block; border-radius: 4px; box-shadow: 0 1px 6px rgba(20,40,70,.18); }
.bild.mitte img { margin: 0 auto; }
.bild.links { float: left; max-width: 40%; margin: .3rem 1.5rem 1rem 0; }
.bild.rechts { float: right; max-width: 40%; margin: .3rem 0 1rem 1.5rem; }
.bild.links ~ .bild.links { clear: left; }
.bild.rechts ~ .bild.rechts { clear: right; }
.text p { margin: 0 0 .8em; }
.text, .liste { overflow-wrap: anywhere; }
.quelle { font-size: .9rem; color: var(--text-leise); }
.tabelle { overflow-x: auto; }
.tabelle table { border-collapse: collapse; }
.tabelle td, .tabelle th { padding: .3rem .6rem; vertical-align: top; border-bottom: 1px solid #e5e8ec; }
hr { border: 0; border-top: 1px solid var(--grau-linie); margin: 1rem 0; }

.liste { list-style: none; padding: 0; margin: 0; }
.liste > li { padding: .75rem 0; border-bottom: 1px solid #e5e8ec; }
.liste p { margin: 0; }
.liste .mehr, .downloads a { font-weight: 600; white-space: nowrap; }
.liste .mehr::before { content: "→ "; }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.galerie figure { margin: 0; }
.galerie a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--grau); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.galerie a:hover img { transform: scale(1.04); }
.galerie figcaption { font-size: .8rem; color: var(--text-leise); margin-top: .3rem; line-height: 1.3; }

.karten { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.karten a { display: block; height: 100%; padding: .85rem 1rem; background: var(--blau-zart); border-left: 4px solid var(--blau); border-radius: 6px; text-decoration: none; color: var(--text); font-weight: 600; line-height: 1.35; }
.karten a:hover { border-left-color: var(--rot); color: var(--rot); background: #fff; box-shadow: 0 1px 6px rgba(20,40,70,.15); }

.rechts { padding: 1.75rem 1.25rem; font-size: .9rem; color: var(--text-leise); border-left: 1px solid #e5e8ec; }
.rechts p { margin: 0 0 .5rem; }

/* Verzeichnisse und Seitensuche */
.vz-form { background: var(--blau-zart); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0; }
.vz-zeile { margin: 0 0 .75rem; }
.vz-form input[type=search], .seitensuche input { font: inherit; padding: .4rem .6rem; border: 1px solid var(--grau-linie); border-radius: 6px; width: min(100%, 22rem); }
.vz-form button, .vz-nav button, .seitensuche button { font: inherit; padding: .4rem 1rem; border: 0; border-radius: 6px; background: var(--blau); color: #fff; cursor: pointer; }
.vz-form button:hover, .vz-nav button:hover { background: var(--rot); }
.vz-optionen { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.vz-optionen fieldset { border: 0; padding: 0; margin: 0; }
.vz-optionen legend { font-weight: 700; padding: 0; margin-bottom: .2rem; }
.vz-optionen label { display: block; font-size: .95rem; }
.vz-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1rem 0; font-size: .95rem; }
.vz-nav select { font: inherit; padding: .2rem; }
.vz-nav button[disabled] { opacity: .35; cursor: default; }
.vz-treffer { list-style: none; padding: 0; margin: 0; }
.vz-treffer li { padding: .7rem 0; border-top: 1px solid #e5e8ec; }
.vz-treffer li:last-child { border-bottom: 1px solid #e5e8ec; }
.vz-treffer b { display: block; }
.vz-treffer span { display: block; }
mark { background: #fff1a8; padding: 0 .05em; }
.hinweis { background: #fff4e5; padding: .6rem 1rem; border-radius: 6px; }

.fuss { background: var(--blau); color: #fff; padding: .9rem clamp(1rem, 3vw, 2rem); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .88rem; }
.fuss a { color: #fff; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(10,20,35,.92); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; display: block; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; padding: .5rem; }
.lightbox button { position: fixed; background: rgba(0,0,0,.5); color: #fff; border: 0; font-size: 2rem; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lb-zu { top: 1rem; right: 1rem; } .lb-vor { left: 1rem; top: 50%; } .lb-nach { right: 1rem; top: 50%; }

@media (max-width: 1000px) {
  .bildleiste img { height: 56px; }
  .spalten.mit-rechts { grid-template-columns: minmax(0, 1fr); }
  .spalten.mit-menue.mit-rechts { grid-template-columns: 230px minmax(0, 1fr); }
  .rechts { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #e5e8ec; display: flex; flex-wrap: wrap; gap: 0 2rem; }
  .rechts hr { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bildleiste { display: none; }
  .kopf { gap: 1rem; padding-bottom: .75rem; }
  .wappen { grid-row: 1; padding-top: .75rem; }
  .wappen img { width: 46px; }
  .name { padding-top: .75rem; }
  .hauptmenue ul { flex-wrap: nowrap; overflow-x: auto; padding: 0; scrollbar-width: none; width: 100%; }
  .suche { width: 100%; margin: 0; padding: .5rem; background: #fff; border-top: 1px solid var(--grau-linie); }
  .suche input { flex: 1; width: auto; }
  .hauptmenue a { white-space: nowrap; padding: .65rem .85rem; }
  .spalten.mit-menue, .spalten.mit-menue.mit-rechts { grid-template-columns: minmax(0, 1fr); }
  .untermenue { padding: 0; border-right: 0; border-bottom: 1px solid #dde5ee; }
  .untermenue summary { display: block; padding: .75rem 1rem; font-weight: 700; cursor: pointer; color: var(--blau-dunkel); }
  .untermenue summary::after { content: " ▾"; }
  .untermenue details[open] summary::after { content: " ▴"; }
  .bild.links, .bild.rechts { float: none; max-width: 100%; margin: 0 0 1rem; }
}
@media print {
  .suche, .bildleiste, .hauptmenue, .untermenue, .rechts, .lightbox, .vz-form { display: none !important; }
  .spalten { display: block !important; } .rahmen { box-shadow: none; } body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
