/* werben-elbe.de – Website. Farben und Aufbau der alten Seite (Rot #df1526,
   Schwarz, helle Grautöne), modernisiert (E01). Systemschriften, keine
   fremden Dienste. Kontraste nach WCAG AA (BITV, E19). */

:root {
  --rot: #c8102e;          /* etwas dunkler als #df1526 für Kontrast 5,6:1 auf Weiß */
  --rot-hell: #df1526;
  --rot-dunkel: #9e0c24;
  --text: #1d1d1f;
  --text-leise: #555;
  --linie: #dcdcdc;
  --flaeche: #f5f5f5;
  --flaeche-2: #ebebeb;
  --weiss: #fff;
  --fokus: #1a5fb4;
  --radius: 6px;
  --breite: 1160px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: var(--schrift);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1.0625rem/1.65 var(--schrift); color: var(--text); background: var(--flaeche); }
img { max-width: 100%; height: auto; }
a { color: var(--rot); text-underline-offset: .15em; }
a:hover { color: var(--rot-dunkel); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--schrift-titel); line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin-top: 0; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

.skiplink { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--weiss); padding: .6em 1em; }
.skiplink:focus { left: 1em; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hinweis-leiste { background: var(--rot-dunkel); color: var(--weiss); text-align: center; padding: .5em 1em; font-weight: 600; }

/* Kopf ------------------------------------------------------------------ */
.kopf { background: var(--weiss); border-top: 5px solid var(--rot-hell); }
.kopf__innen { max-width: var(--breite); margin: 0 auto; padding: .8rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.marke { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); margin-right: auto; }
.marke__logo { max-height: 84px; width: auto; display: block; }
.marke__name { font: 700 1.4rem var(--schrift-titel); }
.kopf-suche { display: flex; gap: .3rem; }
.kopf-suche input { width: 14rem; max-width: 50vw; padding: .45em .7em; border: 1px solid var(--linie); border-radius: var(--radius); }
.kopf-suche button, button[type=submit] { background: var(--rot); color: var(--weiss); border: 0; border-radius: var(--radius); padding: .5em 1em; font-weight: 600; }
.kopf-suche button:hover, button[type=submit]:hover { background: var(--rot-dunkel); }

.menue-knopf { display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--linie); border-radius: var(--radius); padding: .45em .8em; }
.menue-knopf__balken, .menue-knopf__balken::before, .menue-knopf__balken::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menue-knopf__balken::before, .menue-knopf__balken::after { content: ""; position: absolute; left: 0; }
.menue-knopf__balken::before { top: -6px; }
.menue-knopf__balken::after { top: 6px; }

.hauptmenue { background: var(--text); }
.hauptmenue__liste { max-width: var(--breite); margin: 0 auto; padding: 0 .5rem; list-style: none; display: flex; flex-wrap: wrap; }
.hauptmenue__punkt { position: relative; }
.hauptmenue__punkt > a { display: block; padding: .8rem 1rem; color: var(--weiss); text-decoration: none; font-weight: 600; }
.hauptmenue__punkt > a:hover, .hauptmenue__punkt:focus-within > a { background: var(--rot); }
.unter-knopf { display: none; }
.untermenue { display: none; position: absolute; top: 100%; left: 0; min-width: 16rem; z-index: 20; list-style: none; margin: 0; padding: .3rem 0;
  background: var(--weiss); border: 1px solid var(--linie); border-top: 3px solid var(--rot); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.untermenue a { display: block; padding: .45rem 1rem; color: var(--text); text-decoration: none; }
.untermenue a:hover { background: var(--flaeche); color: var(--rot); }
.untermenue ul { list-style: none; padding-left: 1rem; }
.hauptmenue__punkt:hover > .untermenue, .hauptmenue__punkt:focus-within > .untermenue { display: block; }

.kopfbild { height: clamp(90px, 14vw, 220px); background: url("kopf.jpg") center / cover no-repeat; }

/* Rahmen ---------------------------------------------------------------- */
.rahmen { max-width: var(--breite); margin: 1.5rem auto; padding: 0 1rem; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; }
.inhalt { background: var(--weiss); padding: clamp(1rem, 3vw, 2.2rem); border-radius: var(--radius); min-width: 0; }
.seitenleiste { display: flex; flex-direction: column; gap: 1rem; }
.kasten { background: var(--weiss); padding: 1rem 1.2rem; border-radius: var(--radius); border-top: 3px solid var(--rot-hell); }
.kasten h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.kasten ul { margin: 0; padding-left: 1.1rem; }
.kasten .anzahl { color: var(--text-leise); font-size: .9em; }
.kasten__text > :first-child { margin-top: 0; }
.kasten__text img { height: auto; }
.linkliste { columns: 1; }

/* Listen ---------------------------------------------------------------- */
.startseite-titel { font-size: 1.5rem; margin-bottom: .2rem; }
.startseite-titel__zusatz { font-weight: 400; color: var(--text-leise); }
.abschnitt { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); border-bottom: 2px solid var(--rot-hell); padding-bottom: .3rem; margin-top: 1rem; }
.beitragsliste { list-style: none; padding: 0; margin: 0; }
.beitrag-karte { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--linie); }
.beitrag-karte:not(:has(.beitrag-karte__bild)) { grid-template-columns: 1fr; }
.beitrag-karte__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; background: var(--flaeche); }
.beitrag-karte h2 { font-size: 1.25rem; margin: 0 0 .2rem; }
.beitrag-karte h2 a { color: var(--text); text-decoration: none; }
.beitrag-karte h2 a:hover { color: var(--rot); text-decoration: underline; }
.beitrag-karte p { margin: .3rem 0; }
.meta { color: var(--text-leise); font-size: .92rem; }
.weiter a { font-weight: 600; }

.blaettern { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 2rem 0 .5rem; flex-wrap: wrap; }
.blaettern ul { list-style: none; display: flex; gap: .3rem; padding: 0; margin: 0; }
.blaettern a, .blaettern span { display: inline-block; min-width: 2.4em; text-align: center; padding: .35em .6em; border-radius: var(--radius); border: 1px solid var(--linie); text-decoration: none; }
.blaettern span[aria-current] { background: var(--rot); color: var(--weiss); border-color: var(--rot); }
.blaettern .luecke { padding: .35em .3em; }

/* Text ------------------------------------------------------------------ */
.artikel .meta { margin-top: -.3rem; }
.text { overflow-wrap: break-word; }
.text figure { margin: 1.2rem 0; }
.text figcaption, .beitragsbild figcaption { color: var(--text-leise); font-size: .9rem; margin-top: .3rem; }
.text img { border-radius: 3px; }
.text .bild-links { float: left; margin: .3rem 1.2rem .8rem 0; max-width: 45%; }
.text .bild-rechts { float: right; margin: .3rem 0 .8rem 1.2rem; max-width: 45%; }
.text .bild-mitte { margin-left: auto; margin-right: auto; text-align: center; }
.text::after { content: ""; display: table; clear: both; }
.text blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 4px solid var(--rot-hell); background: var(--flaeche); }
.text hr { border: 0; border-top: 1px solid var(--linie); margin: 1.5rem 0; }
.text pre { white-space: pre-wrap; background: var(--flaeche); padding: .8rem; border-radius: var(--radius); }
.spalten { display: grid; gap: 1.2rem; margin: 1rem 0; }
.spalten-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spalten-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spalten-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spalte > :first-child { margin-top: 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: 1rem 0; }
.galerie img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.tabelle { overflow-x: auto; margin: 1rem 0; }
.tabelle table { border-collapse: collapse; min-width: 100%; }
.tabelle th, .tabelle td { border: 1px solid var(--linie); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.beitragsbild { margin: 0 0 1.2rem; }
.beitragsbild img { border-radius: var(--radius); width: 100%; }
.brotkrumen ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .92rem; color: var(--text-leise); }
.brotkrumen li + li::before { content: "›"; margin-right: .3rem; }
.unterseiten { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
.zurueck { margin-top: 2rem; }
.einleitung { font-size: 1.1rem; color: var(--text-leise); }

/* Galerien -------------------------------------------------------------- */
.galerie-raster { margin: 1.5rem 0; }
.galerie-titel { font-size: 1.1rem; }
.galerie-raster ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.galerie-raster img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 3px; background: var(--flaeche); }
.galerie-raster a:hover img { opacity: .85; }
.galerie-uebersicht { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.galerie-uebersicht a { display: block; text-decoration: none; color: var(--text); background: var(--flaeche); border-radius: var(--radius); overflow: hidden; height: 100%; }
.galerie-uebersicht img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.galerie-uebersicht__titel { display: block; font-weight: 600; padding: .5rem .7rem 0; }
.galerie-uebersicht__zahl { display: block; color: var(--text-leise); font-size: .9rem; padding: 0 .7rem .6rem; }
.lichtbox { border: 0; padding: 0; background: #111; color: #eee; max-width: 96vw; max-height: 96vh; border-radius: var(--radius); }
.lichtbox::backdrop { background: rgba(0,0,0,.8); }
.lichtbox figure { margin: 0; }
.lichtbox img { display: block; max-width: 94vw; max-height: 82vh; margin: 0 auto; }
.lichtbox figcaption { padding: .5rem 1rem; text-align: center; }
.lichtbox__knoepfe { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem; }
.lichtbox__knoepfe button { background: #333; color: #fff; border: 0; border-radius: var(--radius); padding: .5em 1em; }

/* Video (Zwei-Klick, E15) ------------------------------------------------ */
.video-zweiklick { aspect-ratio: 16 / 9; background: var(--text) url("kopf.jpg") center / cover; border-radius: var(--radius); margin: 1.2rem 0; position: relative; overflow: hidden; }
.video-zweiklick__inhalt { position: absolute; inset: 0; background: rgba(0,0,0,.72); color: var(--weiss); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; text-align: center; font-size: .95rem; }
.video-zweiklick__inhalt a { color: var(--weiss); }
.video-zweiklick__start { background: var(--rot); color: var(--weiss); border: 0; border-radius: 999px; padding: .7em 1.4em; font-weight: 700; }
.video-zweiklick iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Termine --------------------------------------------------------------- */
.termine-nav { color: var(--text-leise); }
.terminliste { list-style: none; padding: 0; }
.termin { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linie); }
.termin__datum { font-weight: 700; color: var(--rot); }
.termin__wochentag { display: block; font-weight: 400; color: var(--text-leise); }
.termin h2 { margin: 0; font-size: 1.15rem; }
.kalender { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 1rem 0; }
.kalender caption { font-weight: 700; text-align: left; padding: .3rem 0; }
.kalender th, .kalender td { border: 1px solid var(--linie); padding: .3rem; vertical-align: top; }
.kalender td { height: 4.5rem; font-size: .85rem; }
.kalender td.anders { color: #999; background: var(--flaeche); }
.kalender td.heute { outline: 2px solid var(--rot); outline-offset: -2px; }
.kalender .tag { display: block; font-weight: 700; }
.kalender .eintrag { display: block; background: #fde7ea; border-radius: 3px; padding: 0 .2rem; margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.termin-kurz { list-style: none; padding: 0 !important; }
.termin-kurz time { font-weight: 700; color: var(--rot); margin-right: .3rem; }

/* Formular und Suche ----------------------------------------------------- */
.formular { max-width: 40rem; }
.feld { margin: 0 0 1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: .25rem; }
.feld input[type=text], .feld input[type=email], .feld textarea { width: 100%; padding: .55em .7em; border: 1px solid #949494; border-radius: var(--radius); }
.feld--check { display: grid; grid-template-columns: auto 1fr; gap: .5rem; align-items: start; }
.feld--check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; }
.feld--check label { font-weight: 400; }
.feld--check .fehler { grid-column: 1 / -1; }
.feld--fehler input, .feld--fehler textarea { border-color: var(--rot); border-width: 2px; }
.fehler { color: var(--rot-dunkel); font-weight: 600; margin: .25rem 0 0; }
.feld--versteckt { position: absolute; left: -9999px; }
.meldung { padding: .8rem 1rem; border-radius: var(--radius); background: var(--flaeche); }
.meldung--ok { background: #e6f4ea; border-left: 4px solid #1e7e34; }
.meldung--fehler { background: #fde7ea; border-left: 4px solid var(--rot); }
.suche-gross { margin: 1rem 0; }
.suche-gross label { display: block; font-weight: 600; margin-bottom: .3rem; }
.suche-gross__zeile { display: flex; gap: .4rem; }
.suche-gross input { flex: 1; padding: .55em .7em; border: 1px solid #949494; border-radius: var(--radius); }
.kontaktdaten { margin-top: 2rem; }

/* Fuß ------------------------------------------------------------------- */
.fuss { margin-top: 3rem; color: #c9c9cc; background: linear-gradient(180deg, #232326 0%, #1a1a1c 100%); border-top: 4px solid var(--rot-hell); font-size: .95rem; }
.fuss a { color: #f1f1f3; text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; text-underline-offset: .2em; }
.fuss a:focus-visible { outline-color: #8ab4ff; }
.fuss__innen { max-width: var(--breite); margin: 0 auto; padding: 2.75rem 1rem 2.25rem; display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 1fr)); gap: 2rem 2.5rem; }
.fuss__marke { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.fuss__wappen { display: inline-grid; place-items: center; min-width: 4.5rem; min-height: 4.5rem; max-width: 100%; background: var(--weiss); border-radius: 14px; padding: .6rem .9rem; box-shadow: 0 6px 18px rgba(0,0,0,.35); margin-bottom: .6rem; }
.fuss__wappen img { display: block; max-width: 15rem; max-height: 3.6rem; width: auto; height: auto; }
.fuss__wappen-text { font: 800 2rem var(--schrift-titel); color: var(--rot); }
.fuss__name { margin: 0; color: var(--weiss); font: 700 1.15rem/1.3 var(--schrift-titel); }
.fuss__zusatz { margin: 0; color: #a9a9ae; font-size: .9rem; }
.fuss__anschrift { font-style: normal; margin-top: .6rem; line-height: 1.55; }
.fuss h2 { margin: 0 0 .9rem; color: var(--weiss); font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.fuss h2::after { content: ""; display: block; width: 2rem; height: 2px; margin-top: .45rem; background: var(--rot-hell); border-radius: 2px; }
.fuss__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.fuss__liste--icons li { display: grid; grid-template-columns: 1.15rem 1fr; gap: .6rem; align-items: center; }
.fuss__liste svg { width: 1.05rem; height: 1.05rem; fill: var(--rot-hell); }
.fuss__leiste { background: #141416; border-top: 1px solid #2c2c30; font-size: .85rem; color: #9a9aa0; }
.fuss__leiste-innen { max-width: var(--breite); margin: 0 auto; padding: .9rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.fuss__leiste p { margin: 0; }
.fuss__leiste nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.fuss__leiste a { color: #d7d7db; }
.fuss__hoch { margin-left: auto; white-space: nowrap; }
@media (max-width: 900px) { .fuss__innen { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fuss__marke { grid-column: 1 / -1; } }
@media (max-width: 520px) { .fuss__innen { grid-template-columns: 1fr; padding-top: 2rem; } .fuss__hoch { margin-left: 0; } }

/* Klein ----------------------------------------------------------------- */
@media (max-width: 900px) {
  .rahmen { grid-template-columns: 1fr; }
  .spalten-3, .spalten-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .menue-knopf { display: inline-flex; }
  .kopf-suche { order: 3; width: 100%; }
  .kopf-suche input { flex: 1; width: auto; max-width: none; }
  .js .hauptmenue { display: none; }
  .js .hauptmenue.offen { display: block; }
  .hauptmenue__liste { flex-direction: column; padding: 0; }
  .hauptmenue__punkt { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid #333; }
  .unter-knopf { display: block; background: none; border: 0; color: var(--weiss); width: 3rem; }
  .unter-knopf::after { content: "+"; font-size: 1.3rem; }
  .unter-knopf[aria-expanded=true]::after { content: "–"; }
  .untermenue { position: static; grid-column: 1 / -1; box-shadow: none; border: 0; background: #2b2b2b; }
  .untermenue a { color: var(--weiss); }
  .hauptmenue__punkt:hover > .untermenue { display: none; }
  .hauptmenue__punkt.offen > .untermenue, .no-js .hauptmenue__punkt:focus-within > .untermenue { display: block; }
  .beitrag-karte { grid-template-columns: 1fr; }
  .spalten-2, .spalten-3, .spalten-4 { grid-template-columns: 1fr; }
  .termin { grid-template-columns: 1fr; gap: .2rem; }
  .text .bild-links, .text .bild-rechts { float: none; max-width: 100%; margin: 1rem 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .kopf, .seitenleiste, .fuss, .blaettern, .kopf-suche { display: none; }
  .rahmen { display: block; }
  body { background: #fff; }
}
