/* ==========================================================================
   Gemeindewerke Windach – Theme-Stylesheet
   Nachbau des Live-Designs (gemeindewerke-windach.de) ohne Bootstrap.
   Maße gemessen an der Live-Seite bei 1440 px und 375 px.
   ========================================================================== */

/* ---------- Schriften (lokal, WOFF2, Latin) ---------- */
@font-face { font-family: 'Ubuntu';  font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/ubuntu-300.woff2) format('woff2'); }
@font-face { font-family: 'Ubuntu';  font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ubuntu-500.woff2) format('woff2'); }
@font-face { font-family: 'Ubuntu';  font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ubuntu-700.woff2) format('woff2'); }
@font-face { font-family: 'Volkhov'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/volkhov-400.woff2) format('woff2'); }
@font-face { font-family: 'Volkhov'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/volkhov-700.woff2) format('woff2'); }

/* ---------- Design-Tokens ---------- */
:root {
  --blau: #2766ad;
  --blau-hell: #2c89bd;
  --gruen: #90d86f;
  --grau: #e5e5e5;
  --grau-text: #666666;
  --text: #212529;
  --weiss: #ffffff;
  --schrift-text: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --schrift-titel: 'Volkhov', Georgia, serif;
  --container: 1320px;
  --gutter: 12px;
  --abstand: 45px;
  /* Animationsschema: eine Dauer und eine Kurve für alles */
  --dauer-kurz: 180ms;
  --dauer: 350ms;
  --dauer-lang: 600ms;
  --kurve: cubic-bezier(.22, .61, .36, 1);
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
button { font: inherit; line-height: 1.5; cursor: pointer; }
table { border-collapse: collapse; }

/* ---------- Container ---------- */
.site {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 1399.98px) { .site { max-width: 1140px; } }
@media (max-width: 1199.98px) { .site { max-width: 960px; } }
@media (max-width: 991.98px)  { .site { max-width: 720px; } }
@media (max-width: 767.98px)  { .site { max-width: 540px; } }
@media (max-width: 575.98px)  { .site { max-width: none; } }

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5 { margin: 0 0 8px; line-height: 1.2; font-weight: 500; }
h1 {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 52px;
  text-transform: uppercase;
  margin-top: 5px;
}
h2, h3, h4 {
  font-family: var(--schrift-text);
  font-weight: 500;
  text-transform: uppercase;
}
h2 { font-size: 32px; }
h3 { font-size: 28px; margin-top: var(--abstand); text-align: center; }
h4 { font-size: 24px; margin: 10px 0 20px; }
h5 { font-size: 20px; margin-top: 7px; }
p, li, a, td, th { font-family: var(--schrift-text); font-weight: 300; }
p { font-size: 18px; margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 32px; }
li { font-size: 18px; }
a { color: #000; text-decoration: none; transition: color var(--dauer-kurz) var(--kurve); }
a:hover { color: var(--blau-hell); }
strong, b { font-weight: 700; }
hr {
  border: 0;
  border-top: 2px solid currentColor;
  opacity: .25;
  margin: var(--abstand) 0;
}
.small-text { color: var(--grau-text); font-size: 13px; margin-bottom: 0; }
.index-title { font-size: 20px; }
.t-center { text-align: center; }
.mt-contentstart { margin-top: var(--abstand); }

/* Abstände (Bootstrap-Skala, nur die genutzten) */
.mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 48px; }
.mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; } .mb-5 { margin-bottom: 48px; }
.pt-2 { padding-top: 8px; } .pt-3 { padding-top: 16px; } .pb-4 { padding-bottom: 24px; } .pb-5 { padding-bottom: 48px; }

/* ---------- Schaltflächen ---------- */
button, .btn {
  display: inline-block;
  border: none;
  border-radius: 6px;
  background-color: var(--grau);
  color: #000;
  padding: 0 12px;
  font-family: var(--schrift-text);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn--blau, .btn-primary, #draht { background-color: var(--blau); color: var(--weiss); }
.btn--gruen { background-color: var(--gruen); color: var(--weiss); }
.btn--grau { background-color: var(--grau); color: #000; }
.btn-primary { padding: 10px 20px; }
.btn, button { transition: filter var(--dauer-kurz) var(--kurve), transform var(--dauer-kurz) var(--kurve), box-shadow var(--dauer-kurz) var(--kurve); }
.btn:hover, button:hover { color: inherit; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.btn:active, button:active { transform: translateY(0); box-shadow: none; }
.btn--blau:hover, .btn-primary:hover, .btn--gruen:hover { color: var(--weiss); }

/* ---------- Raster ---------- */
.row { display: flex; flex-wrap: wrap; margin: 0 calc(-1 * var(--gutter)); padding-top: 25px; }
.row > * { flex: 0 0 auto; width: 100%; padding: 0 var(--gutter); }
.col { flex: 1 0 0; width: auto; }
@media (min-width: 768px) {
  .col-md-4 { width: 33.3333%; } .col-md-6 { width: 50%; } .col-md-8 { width: 66.6667%; } .col-md-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.3333%; } .col-lg-6 { width: 50%; } .col-lg-12 { width: 100%; }
}

/* ---------- Navigation ---------- */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--gutter);
}
.navbar-brand {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 16px;
  padding: 5px 0;
  white-space: nowrap;
}
.navbar-logo { display: block; width: 448px; max-width: 100%; height: auto; }
.navbar-toggler {
  display: none;
  padding: 4px 12px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 4px;
  background: transparent;
  line-height: 1;
  font-size: 20px;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background: no-repeat center / 100% url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; }
.navbar--home .navbar-collapse { flex: 1 1 auto; justify-content: space-between; }
.nav-wrap { padding-top: 25px; margin: 0 10px 0 -12px; }
.navbar--home .nav-wrap { padding-top: 0; margin-right: 0; }
.navbar-nav { display: flex; list-style: none; margin: 0; padding: 0 12px 0 0; }
.nav-item { position: relative; text-transform: uppercase; }
.nav-link {
  display: block;
  padding: 8px;
  font-family: var(--schrift-text);
  font-size: 16px;
  font-weight: 300;
  color: #000;
}
.nav-link:hover { color: var(--blau-hell); }
.gemeinde-link { font-weight: 700; color: var(--blau); }
.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: .255em;
  vertical-align: .255em;
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-left: .3em solid transparent;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 160px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--weiss);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.dropdown-menu { display: block; opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none; transition: opacity var(--dauer-kurz) var(--kurve), transform var(--dauer-kurz) var(--kurve), visibility 0s linear var(--dauer-kurz); }
.dropdown.open > .dropdown-menu { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.dropdown-item {
  display: block;
  padding: 4px 16px;
  font-size: 16px;
  white-space: nowrap;
  color: #000;
}
.dropdown-item:hover { background: #f1f1f1; color: var(--blau-hell); }
.icon-row { display: flex; padding-top: 25px; margin: 0 -12px; }
.icon-navi-link { display: block; width: 55px; padding-left: 8px; }
.navi-icons { width: 38px; height: auto; margin: 15px 0; }

/* Tablet-Querformat: Menü und Icons untereinander (wie live .desktop-align) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar--sub .navbar-collapse { flex-direction: column; align-items: flex-end; }
  .navbar--sub .navi-icons { margin: 0; }
}

/* Mobil (unter 992 px): Hamburger-Menü */
@media (max-width: 991.98px) {
  .navbar-brand { flex: 0 1 45%; }
  .navbar-logo { width: 115%; max-width: none; }
  .navbar-toggler { display: inline-block; }
  .navbar--home .navbar-toggler { margin-left: auto; }
  .navbar-collapse { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; }
  .navbar-collapse.show { display: flex; animation: einblenden var(--dauer) var(--kurve); }
  .nav-wrap { margin: 0; }
  .icon-row { margin: 0; }
  .navbar-nav { flex-direction: column; padding-right: 0; }
  .dropdown-menu { position: static; box-shadow: none; padding: 0 0 8px 16px; display: none; opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: none; }
  .dropdown.open > .dropdown-menu { display: block; animation: einblenden var(--dauer) var(--kurve); }
  .icon-row { padding-top: 10px; }
}
@media (max-width: 599.98px) {
  .navbar-brand { flex-basis: 75%; }
  .navbar-logo { width: 105%; max-width: none; }
  .nav-link { padding-left: 12px; }
  .icon-row { padding-left: 15px; }
  .icon-navi-link { width: 75px; }
  .navi-icons { width: 50px; }
}

/* ---------- Seitenelemente ---------- */
.header-image { display: block; width: 100%; }
.logo-index { width: 65%; margin-top: 35px; padding: 0 50px; }
@media (max-width: 599.98px) {
  .logo-index { width: 100%; padding: 0; }
  h1 { font-size: 25px; padding-top: 10px; }
  h3, h4 { font-size: 16px; }
}

/* ---------- Inhaltsblöcke ---------- */
.block { margin: 0; }
.block--hinweis, .block--zahlen, .block--downloads, .block--einbettung, .block--bild { margin-bottom: 24px; }
.richtext img { max-width: 100%; height: auto; }
.richtext .fr-dib, .richtext img[style*="display: block"] { display: block; margin: 8px auto; }
.richtext a { text-decoration: underline; text-decoration-color: rgba(0,0,0,.3); }

.block--bild img { display: block; margin: 0 auto; }
.block--bild-halb img { width: 50%; }
.block--bild-klein img { width: 40%; }
.block--bild figcaption { margin-top: 8px; text-align: center; font-family: var(--schrift-text); font-size: 14px; color: var(--grau-text); }

.bild-text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.block--bild-rechts .bild-text__bild { order: 2; }
@media (max-width: 767.98px) { .bild-text { grid-template-columns: 1fr; } .block--bild-rechts .bild-text__bild { order: 0; } }

.downloads { list-style: none; padding: 0; margin: 0 0 24px; }
.downloads li { margin-bottom: 6px; }
.downloads a { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.downloads img { width: 50px; height: 50px; flex: none; }

.bautenstand__datum { color: var(--blau); }
.bautenstand__bild { display: block; width: 100%; margin-bottom: 16px; }

.zahlen { width: 100%; max-width: 640px; margin-bottom: 16px; font-size: 18px; }
.zahlen td, .zahlen th { padding: 6px 12px 6px 0; border-bottom: 1px solid rgba(0,0,0,.1); text-align: left; vertical-align: top; }
.zahlen__wert { white-space: nowrap; text-align: right !important; }
.zahlen__titel th { padding-top: 20px; font-weight: 500; text-transform: uppercase; border-bottom: 2px solid rgba(0,0,0,.25); }

.block--hinweis { padding: 24px; background: rgba(0, 0, 0, .03); border-radius: 5px; }
.block--hinweis p:last-child { margin-bottom: 0; }


.einbettung { display: grid; place-content: center; gap: 16px; min-height: 240px; padding: 24px; text-align: center; background: rgba(0, 0, 0, .03); border-radius: 5px; }
.einbettung--geladen { display: block; padding: 0; background: none; }
.einbettung iframe { width: 100%; height: var(--hoehe, 600px); border: 0; }

/* Accordion (Details) */
.accordion details { border-bottom: 1px solid rgba(0, 0, 0, .125); }
.accordion summary {
  list-style: none;
  padding: 16px 20px 32px;
  font-family: var(--schrift-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary { transition: color var(--dauer-kurz) var(--kurve), background-color var(--dauer-kurz) var(--kurve); }
.accordion summary:hover { background: rgba(0, 0, 0, .025); }
.accordion summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--dauer) var(--kurve); }
.accordion .accordion-body { overflow: hidden; }
.accordion details[open] summary { color: var(--blau-hell); }
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion .accordion-body { padding: 0 20px 16px; }

/* ---------- Projekt-Layout (wie Live: Card mit 16 px Innenabstand) ---------- */
.blog-layout { padding: 25px 28px 0 12px; }
.projekt { padding: 16px; }
.projekt h1.card-title { margin-top: 5px; }
.richtext .fr-dii { display: inline; }
.richtext .fr-dib { display: block; margin: 5px auto; }
.richtext .fr-dib.fr-fil { margin-left: 0; }
.richtext .fr-dib.fr-fir { margin-right: 0; }
.richtext table { width: 100%; margin-bottom: 16px; }
.richtext td, .richtext th { padding: 4px 8px; vertical-align: top; font-size: 18px; }

/* Referenzen-Raster: 4 Kategorie-Spalten, 16 px Spaltenabstand */
.referenz-raster { display: flex; flex-wrap: wrap; margin: -16px -8px 0; padding: 25px 0 48px; }
.referenz-spalte { width: 25%; padding: 0 8px; margin-top: 16px; }
.index-icon { width: 50px; margin-bottom: 15px; }
.refHead { font-size: 1.2em; padding-bottom: 24px; }
.kachel { padding-bottom: 24px; }
.kachel a { display: block; }
.kachel .card-banner { transition: background-size var(--dauer-lang) var(--kurve), box-shadow var(--dauer) var(--kurve); }
.kachel a:hover .card-banner { background-size: 108% auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.postTitle { transition: transform var(--dauer) var(--kurve); }
.kachel a:hover .postTitle { transform: translateY(-3px); }
.card-banner {
  position: relative;
  height: 150px;
  overflow: hidden;
  background-color: #ddd;
  background-size: 100% auto;
  background-position: 0 50%;
  background-repeat: no-repeat;
  text-align: center;
}
.kachel--gross .card-banner { height: 210px; }
.abdunkler { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 55%); }
.postTitle {
  position: absolute;
  left: 0; right: 0; top: 95px;
  margin: 0;
  padding: 0 25px;
  font-size: 1em;
  color: #fff;
  text-transform: uppercase;
}
.postTitle--gross { top: 155px; font-size: 25px; line-height: 1.2; }
@media (max-width: 991.98px) { .referenz-spalte { width: 50%; } }
@media (max-width: 599.98px) { .referenz-spalte { width: 100%; } }

/* Galerie: 250 x 150 Kacheln mit 3 px Rand wie live, Lightbox */
.galerie { display: flex; flex-wrap: wrap; }
.galerie a { display: block; margin: 3px; }
.galerie img { display: block; width: 250px; height: 150px; object-fit: cover; transition: transform var(--dauer) var(--kurve), box-shadow var(--dauer) var(--kurve); }
.galerie a:hover img { transform: scale(1.04); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
@media (max-width: 599.98px) {
  .galerie a { width: calc(50% - 6px); }
  .galerie img { width: 100%; height: auto; aspect-ratio: 5 / 3; }
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox[open] { animation: einblenden var(--dauer) var(--kurve); }
.lightbox__bild { transition: opacity var(--dauer-kurz) var(--kurve); }
.lightbox__bild.wechselt { opacity: 0; }
.lightbox__bild { display: block; max-width: 96vw; max-height: 88vh; margin: 0 auto; object-fit: contain; }
.lightbox__leiste { display: flex; justify-content: center; gap: 12px; padding: 12px; }
.lightbox__leiste button { background: rgba(255,255,255,.15); color: #fff; min-width: 44px; height: 44px; font-size: 22px; line-height: 44px; padding: 0 14px; }
.lightbox__leiste span { color: #fff; font-family: var(--schrift-text); line-height: 44px; }

/* ---------- Über uns ---------- */
.container-inner { padding: 0 12px; }
.team .person h2 { text-align: center; }
.team .person p { text-align: center; }

/* ---------- Formular (Maße wie Bootstrap-Formular auf der Live-Seite) ---------- */
.form-group { margin: 0; }
.control-label { display: inline-block; font-family: var(--schrift-titel); font-weight: 400; font-size: 16px; line-height: 1.5; }
.form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-family: var(--schrift-titel);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  appearance: none;
}
.form-control:focus { outline: 0; border-color: #86b7fe; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }
textarea.form-control { min-height: 134px; resize: vertical; }
.kontaktformular .btn-primary { margin-top: 50px; padding: 10px 20px; border-radius: 4px; font-family: var(--schrift-titel); font-size: 16px; font-weight: 400; line-height: 1.5; }
.kontaktformular .btn-primary[disabled] { opacity: .65; }
.honig { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.feld-fehler { display: block; margin: 4px 0 0; font-size: 14px; color: #b02a37; }
.feld-fehler:empty { display: none; }
.form-group.has-error .form-control, .form-control.error { border-color: #b02a37; }
.formular-erfolg { padding: 24px; margin-top: 16px; background: rgba(144, 216, 111, .18); border-radius: 6px; }
.formular-erfolg p:last-child { margin-bottom: 0; }
.datenschutz-hinweis { margin-top: 24px; font-size: 14px; }
.datenschutz-hinweis p { font-size: 14px; color: var(--grau-text); }
.oc-flash-message { font-family: var(--schrift-text); }

/* ---------- Erweiterte Inhaltsblöcke ---------- */
.block--akkordeon, .block--aufzaehlung, .block--kennzahlen, .block--personen, .block--projektkacheln,
.block--schaltflaechen, .block--spalten, .block--termine, .block--logoleiste, .block--hinweisbox, .block--karte,
.block--zitat, .block--hervorhebung { margin-bottom: 24px; }

/* Aufzählung */
.liste { padding-left: 28px; margin: 0 0 16px; }
.liste li { margin-bottom: 6px; }
.liste--haken, .liste--pfeil { list-style: none; padding-left: 0; }
.liste--haken li, .liste--pfeil li { position: relative; padding-left: 32px; }
.liste--haken li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 14px; border-right: 3px solid var(--gruen); border-bottom: 3px solid var(--gruen); transform: rotate(45deg); }
.liste--pfeil li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 9px; height: 9px; border-right: 2px solid var(--blau); border-top: 2px solid var(--blau); transform: rotate(45deg); }
.liste--nummer { padding-left: 28px; }
.liste--spalten-2 { columns: 2; column-gap: 48px; }
@media (max-width: 767.98px) { .liste--spalten-2 { columns: 1; } }

/* Kennzahlen */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding: 25px 0; text-align: center; }
.kennzahl img { width: 60px; height: 60px; margin-bottom: 10px; }
.kennzahl__wert { font-family: var(--schrift-text); font-weight: 500; font-size: 44px; line-height: 1.1; color: var(--blau); }
.kennzahl__einheit { font-size: 24px; }
.kennzahl__label { margin: 8px 0 0; font-weight: 500; font-size: 18px; }

/* Personen */
.personen { display: grid; gap: 24px; }
.personen--2 { grid-template-columns: repeat(2, 1fr); }
.personen--3 { grid-template-columns: repeat(3, 1fr); }
.person__funktion { margin: 48px 0 48px; text-align: center; }
.person__foto { width: 60%; }
.personen--3 .person__foto { width: 70%; }
@media (max-width: 767.98px) { .personen--2, .personen--3 { grid-template-columns: 1fr; } }

/* Projektkacheln */
.kachelraster { display: grid; gap: 24px; padding-top: 8px; }
.kachelraster--2 { grid-template-columns: repeat(2, 1fr); }
.kachelraster--3 { grid-template-columns: repeat(3, 1fr); }
.kachelraster--4 { grid-template-columns: repeat(4, 1fr); }
.kachelraster .kachel { padding-bottom: 0; }
.kachelraster .postTitle--gross { font-size: 20px; top: 160px; }
@media (max-width: 991.98px) { .kachelraster--3, .kachelraster--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599.98px) { .kachelraster--2, .kachelraster--3, .kachelraster--4 { grid-template-columns: 1fr; } }

/* Schaltflächen */
.block--schaltflaechen { display: flex; flex-wrap: wrap; gap: 12px; }
.schaltflaechen--mitte { justify-content: center; }
.block--schaltflaechen .btn { padding: 10px 20px; }

/* Zitat / Hervorhebung */
.block--zitat { padding: 8px 0 8px 28px; border-left: 4px solid var(--blau); }
.block--zitat blockquote { margin: 0; }
.block--zitat blockquote p { font-size: 24px; font-weight: 300; line-height: 1.4; margin: 0 0 8px; }
.block--zitat blockquote p::before { content: "\201E"; }
.block--zitat blockquote p::after { content: "\201C"; }
.block--zitat figcaption { font-family: var(--schrift-text); font-size: 14px; color: var(--grau-text); }
.hervorhebung { font-family: var(--schrift-text); font-weight: 500; font-size: 24px; line-height: 1.4; margin-bottom: 8px; }

/* Spalten */
.spalten { display: grid; gap: 24px; }
.spalten--2 { grid-template-columns: repeat(2, 1fr); }
.spalten--3 { grid-template-columns: repeat(3, 1fr); }
.spalte h4 { margin-top: 0; }
@media (max-width: 767.98px) { .spalten--2, .spalten--3 { grid-template-columns: 1fr; } }

/* Termine */
.termine { list-style: none; padding: 0; margin: 0; }
.termin { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(0, 0, 0, .125); }
.termin__datum { flex: 0 0 90px; text-align: center; padding: 8px 0; border-radius: 6px; background: var(--blau); color: #fff; font-family: var(--schrift-text); }
.termin__tag { display: block; font-size: 32px; font-weight: 500; line-height: 1.1; }
.termin__monat { display: block; font-size: 14px; }
.termin__inhalt h4 { margin: 0 0 4px; }
.termin__meta { margin-bottom: 8px; font-size: 16px; color: var(--grau-text); }
.termin__inhalt .richtext p:last-child { margin-bottom: 0; }

/* Logo-Leiste */
.logoleiste { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px 48px; padding: 16px 0; }
.logoleiste img { height: auto; }
.logoleiste--klein img { max-width: 120px; }
.logoleiste--mittel img { max-width: 180px; }
.logoleiste--gross img { max-width: 250px; }

/* Hinweisbox */
.hinweisbox { padding: 20px 24px; border-left: 6px solid var(--blau); border-radius: 6px; background: rgba(39, 102, 173, .08); }
.hinweisbox--wichtig { border-color: var(--gruen); background: rgba(144, 216, 111, .18); }
.hinweisbox--stoerung { border-color: #b02a37; background: rgba(176, 42, 55, .08); }
.hinweisbox__titel { margin: 0 0 8px; }
.hinweisbox .richtext p:last-child { margin-bottom: 0; }

/* Karte */
.karte__beschriftung { margin-top: 8px; }

/* Trenner */
.block--abstand { height: 24px; }
.abstand--mittel { height: 48px; }
.abstand--gross { height: 96px; }

/* ---------- Startseite ---------- */
.startseite { padding: 0 12px; }
.startseite h2 { font-size: 25px; }
.startseite .row > hr { margin-top: 0; }
.highlight .kachel { padding-bottom: 0; }
.row--inner { padding: 25px 12px 0; }
.oekostrom { padding-bottom: 48px; }
.oekostrom h3 { margin-top: 45px; }

/* Bildwechsler: 1248 x 500, Bildunterschrift als weißer Balken, Icons als Navigationspunkte */
.hero-area { padding-top: 35px; }
.hero-slider { position: relative; }
.hero-viewport { position: relative; height: 500px; overflow: hidden; }
.hero-track { display: flex; height: 100%; transition: transform 1s ease; will-change: transform; }
.hero-slide { position: relative; flex: 0 0 100%; min-height: 500px; background: #e5e5e5 no-repeat center / cover; }
.carousel-caption { position: absolute; right: 0; bottom: -10px; left: 0; padding: 0; color: #000; background: #fff; text-align: center; }
.carousel-caption h2 { margin: 48px 0 16px; font-size: 32px; }
.hero-dots { display: flex; justify-content: center; align-items: center; width: 100%; height: 45px; }
.hero-dot {
  width: 35px; height: 35px; margin: 15px; padding: 0;
  border: 0; border-radius: 0;
  background: #fff no-repeat center / contain;
  filter: grayscale(1); opacity: .5;
  cursor: pointer;
}
.hero-dot { transition: filter var(--dauer) var(--kurve), opacity var(--dauer) var(--kurve), transform var(--dauer-kurz) var(--kurve); }
.hero-dot:hover { transform: scale(1.15); opacity: .8; }
.hero-dot.active { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-track { transition: none; } }

/* Nahwärme-Teaser */
.teaser-cont { position: relative; width: 100%; height: 350px; }
.teaser-left-cont {
  float: left; width: 50%; height: 100%; padding: 2em;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  border-top-left-radius: 5px; border-bottom-left-radius: 5px;
  background: rgba(0, 0, 0, .03);
}
.teaser-right-cont { float: right; width: 50%; height: 100%; border-top-right-radius: 5px; border-bottom-right-radius: 5px; background: #ddd no-repeat center / cover; }
.teaser-head h2 { text-align: center; }
.teaser-info p { margin: 0 0 16px; }
.teaser-link .btn-primary { margin-top: 50px; padding: 10px 20px; border-radius: 4px; background-color: var(--gruen); font-family: var(--schrift-titel); font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.logo-foerder { position: absolute; left: 15px; bottom: 15px; width: 180px; }
.teaser-content { height: 0; overflow: hidden; transition: height var(--dauer-lang) var(--kurve); }
.teaser-content.open-teaser { height: 385px; }
.teaser-title { margin-top: 45px; }
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, 250px); justify-content: center; padding: 25px 0; }
.thema { text-align: center; }
.thema img { width: 100px; height: auto; }
.thema p { margin: 10px 0 8px; font-family: var(--schrift-text); font-weight: 500; font-size: 1.3em; }
.zaehler { font-family: var(--schrift-text); font-size: 1.7em; font-weight: 300; }
@media (max-width: 599.98px) {
  .teaser-cont { height: auto; }
  .teaser-left-cont, .teaser-right-cont { float: none; width: 100%; height: auto; border-radius: 5px 5px 0 0; }
  .teaser-right-cont { height: 200px; border-radius: 0 0 5px 5px; }
  .teaser-head h2 { font-size: 1.1em; }
  .teaser-content.open-teaser { height: auto; }
  .teaser-grid { grid-template-columns: repeat(auto-fit, 150px); }
  .hero-viewport, .hero-slide { height: 320px; min-height: 320px; }
}

/* ---------- Fußzeile ---------- */
.footer-text { padding-top: 25px; margin-bottom: 16px; text-align: center; }

/* ---------- Animationsschema: Einblenden beim Scrollen ---------- */
@keyframes einblenden { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.js .erscheint { opacity: 0; transform: translateY(18px); transition: opacity var(--dauer-lang) var(--kurve), transform var(--dauer-lang) var(--kurve); }
.js .erscheint.ist-sichtbar { opacity: 1; transform: none; }
.js .erscheint:nth-child(2) { transition-delay: 60ms; }
.js .erscheint:nth-child(3) { transition-delay: 120ms; }
.js .erscheint:nth-child(4) { transition-delay: 180ms; }

/* ---------- Zugänglichkeit ---------- */
:focus-visible { outline: 2px solid var(--blau-hell); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .erscheint { opacity: 1; transform: none; }
}
