:root {
  --color-primary: #7fb54a;
  --color-primary-dark: #5a8434;
  --color-bg: #f5f5f5;
  --color-text: #4e8e0f;
  --color-muted: #777;
  --color-grey-header: #f5f5f5;

  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* =========================================================
   Basis
   ========================================================= */

/* =========================================================
   Header und Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.logo a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo-subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Logo Header Oben Rechts */

.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 720px) {
  .site-logo {
    height: 42px;
  }
}

/* NAVIGATION */

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.3rem 0.4rem;
  position: relative;
}

.main-nav li.active a::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: var(--color-primary);
}

/* MOBILE NAV */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* =========================================================
   Grundlayout und wiederverwendbare Elemente
   ========================================================= */

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* =========================================================
   Startseite
   ========================================================= */

/* Hero */
.hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  position: relative;
  height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  background: #fff;
}

/* Hintergrundbild */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: none;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: 50% 35%;
}

/* dunkle Schicht oben  */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.40) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

/* Inhalt (Text + Button) */
.hero__content {

  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 0 1.25rem;
  color: #fff;
}

/* Inhalt (Text + Button) Verzögert anzeigen lassen ("reinfliegen") */
.hero__content {
  opacity: 0; /* Text ist anfangs unsichtbar */
  animation: fadeIn 1.5s ease-in-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1; 
  }

}

.hero__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(3.2rem, 3.2vw + 1rem, 4rem);
  letter-spacing: 0.01em;
}

.hero__subtitle {
  margin: 1rem 0 1.25rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Button Förderung */
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}

.hero__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

/* weißer Wellen Bereich unten */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(150px, 18vh, 210px);
  background: #fff;
  z-index: 3;

  clip-path: polygon(
    0 55%,
    30% 35%,
    70% 70%,
    100% 45%,
    100% 100%,
    0 100%
  );
}

/* Partnerlogos Index 
.hero__partners {
  position: absolute;
  z-index: 4;
  left: 10%;
  display: flex;
  gap: 28px;
  align-items: center;

  bottom: calc(clamp(150px, 18vh, 210px) - 240px);
}

.hero__partner {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.hero__partner img {
  display: block;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

@media (max-width: 900px) {
  .hero {
    height: 520px;
  }

  .hero__partners {
    left: 6%;
    gap: 18px;
    bottom: calc(clamp(150px, 18vh, 210px) - 132px);
  }

  .hero__partner:first-child img {
    height: 50px;
  }

  .hero__partner:last-child img {
    height: 58px;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 480px;
  }

  .hero::after {
    height: 190px;
  }

  .hero__partners {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(190px - 130px);
  }
}

*/
/* BUTTON */

.button-foerderung {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  background: white;
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.button-foerderung:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  background: #f9f9f9;
}

/* Logos unten am Hero */

.logo-zeile {
  background: white;
  padding: 2.5rem 1.25rem 1rem;
}

.logo-zeile-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Partnerlogos unter dem Hero (EWA + Gemeinde) Auskommentiert in index --> Position passt noch nicht */
.partner-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.partner-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.partner-logo-link:hover .partner-logo {
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .partner-logo {
    height: 46px;
    max-width: 80vw;
  }
}

/* GENERISCHE SECTIONS */

.section {
  margin-top: 3rem;
  padding: 0 0 0.5rem;
}

.section h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 400;
  font-size: 2rem;
  color: #777;
}

/* VORTEILE Index (mit Google Icons) */

.vorteile-section {
  padding: 4.5rem 0 5rem;
}

.vorteile-section h2 {
  margin: 0 0 3.2rem;
  font-weight: 300;
  font-size: 3rem;
  color: #7a7a7a;
  text-align: center;
}

.vorteile-uebersicht {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4.5rem;
  align-items: start;
  max-width: 1050px;
  margin: 0 auto;
}

.vorteile-eintrag {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: center;
}

/* Icon-Wrapper */
.vorteile-icon {
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
}

/* Icons  */
.vorteile-icon .material-symbols-outlined {
  font-size: 64px;
  color: var(--color-primary);
  line-height: 1;
  display: inline-block;

  font-variation-settings:
    'opsz' 48,
    'wght' 400,
    'FILL' 0,
    'GRAD' 0;
}

.vorteile-eintrag h3 {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.vorteile-eintrag p {
  margin: 0.55rem 0;
  color: #8a8a8a;
  font-size: 0.98rem;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .vorteile-uebersicht {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .vorteile-section h2 {
    font-size: 2.4rem;
  }

  .vorteile-icon .material-symbols-outlined {
    font-size: 58px;
  }
}

/* BERICHTE */

.berichte-section .berichte-eintrag {
  margin-bottom: 2.5rem;
}

.berichte-section h2 {
  text-align: left;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.berichte-section img {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  display: block;
}

/* VIDEO */

.video-section h2 {
  color: #777;
}

.video-uebersicht {
  display: grid;
  gap: 2rem;
}

.video-eintrag {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.video-eintrag iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-cookie-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  pointer-events: none;
}

.video-cookie-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-eintrag--loaded .video-cookie-placeholder {
  display: none;
}
.cookie-embed {
  position: relative;
  overflow: hidden;
  background: #000;
}

.cookie-embed__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  pointer-events: none;
}

.cookie-embed__placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cookie-embed--loaded .cookie-embed__placeholder {
  display: none;
}

/* Förderlogos über Footer */

.foerderlogos--full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.foerderlogos {
  background: #fff;
  padding: 5rem 1.25rem 4.5rem;
}

.foerderlogos__inner {
  max-width: 1500px;
  margin: 0 auto;
}

.foerderlogos__headline {
  margin: 0 0 3rem;
  text-align: center;
  font-weight: 300;
  font-size: clamp(2rem, 2.2vw, 2.6rem);
  color: #7a7a7a;
}

.foerderlogos__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.foerderlogos__row img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .foerderlogos__inner {
    max-width: 1100px;
  }

  .foerderlogos__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .foerderlogos__row img {
    height: 120px;
  }
}

@media (max-width: 520px) {
  .foerderlogos {
    padding: 3.5rem 1rem 3rem;
  }

  .foerderlogos__row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .foerderlogos__row img {
    height: 105px;
  }
}

/* =========================================================
   Footer und Cookie-Hinweise
   ========================================================= */

.site-footer {
  margin-top: 3rem;
  background: #222;
  color: #ddd;
  font-size: 0.9rem;
}

.footer-top {
  padding: 3rem 1.25rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
}

.footer-column {
  min-width: 0;
}

.footer-title {
  padding-left: 0;
}

.footer-title::before,
.footer-title::after {
  display: none;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li+li {
  margin-top: 0.4rem;
}

.footer-list a {
  color: #9ad05a;
  /* NWSA-Grün */
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 1rem 1.25rem;
  background: #1a1a1a;
}

.footer-bottom-inner {
  text-align: center;
  color: #aaa;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #333;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-banner__text a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.cookie-banner__btn,
.cookie-banner__link {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.cookie-banner__btn {
  padding: 0.55rem 0.9rem;
  border-radius: 5px;
  background: var(--color-primary-dark);
  color: #fff;
}

.cookie-banner__link {
  padding: 0.55rem 0;
  background: transparent;
  color: var(--color-primary-dark);
}

/* Footer responsive */

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-title::before,
  .footer-title::after {
    display: none;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* RESPONSIVE */

@media (max-width: 900px) {
  .vorteile-uebersicht {
    grid-template-columns: 1fr;
  }

  .logo-zeile-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-inline: 1rem;
  }

  .main-nav {
    position: absolute;
    inset: 60px 0 auto 0;
    background: var(--color-grey-header);
    padding: 0.75rem 1.25rem 1rem;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-main {
    padding-inline: 1rem;
  }

  .hero-startseite {
    margin-inline: -1rem;
    border-radius: 0 0 30px 30px;
  }

  .logo-zeile {
    padding-inline: 1rem;
  }
}

/* =========================================================
   Inhaltsseiten: gemeinsames Layout und Ueber uns
   ========================================================= */

.page-header-band {
  background: #d3e1f2;
  padding: 2.5rem 1rem;
  text-align: center;
  margin: 0 -1.25rem 3rem;
}

.page-header-band h1 {
  margin: 0;
  font-weight: 400;
  font-size: 2rem;
  color: #4f657d;
}

/* Zwei-Spalten-Layout */

.page-layout {
  max-width: 1100px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3rem;
  padding: 0 0.5rem;
}

.page-main h2 {
  margin-top: 0;
  color: #6da742;
  font-size: 1.6rem;
}

.page-main p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

/* Grafik unten (Gemeinde -> EWA -> NWSA) */
.org-chart {
  margin-top: 2rem;
  text-align: center;
}

.org-chart img {
  max-width: 280px;
  width: 100%;
}

.org-chart figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #777;
}

/* Sidebar rechts */

.page-sidebar h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #6da742;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-news {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.sidebar-news li+li {
  margin-top: 0.9rem;
}

.sidebar-date {
  font-size: 0.78rem;
  color: #999;
}

.sidebar-news a {
  color: #6da742;
  text-decoration: none;
  font-size: 0.9rem;
}

.sidebar-news a:hover {
  text-decoration: underline;
}

.sidebar-image-block img {
  width: 100%;
  border-radius: 4px;
}
.sidebar-archive {
  margin-top: 2rem;
}

.sidebar-archive h3 {
  margin-top: 0;
}

.sidebar-archive__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-archive__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-archive__list a:hover,
.sidebar-archive__list a.is-active {
  border-color: var(--color-primary);
  background: #eef6e8;
  color: var(--color-primary-dark);
}

.sidebar-archive__all {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-archive__all:hover {
  text-decoration: underline;
}

/* Responsive: untereinander bei kleiner Breite */

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-header-band {
    margin-inline: -1rem;
  }
}

/* =========================================================
   Kontakt
   ========================================================= */

/* Map vollbreit */
.kontakt-map-section {
  margin: 0 -1.25rem 0;
}

.kontakt-map iframe {
  width: 100%;
  height: 380px;
  display: block;
  border: 0;
}

/* Dunkler Bereich darunter */
.kontakt-section {
  margin: 0 -1.25rem;
  background: #101010;
  color: #f5f5f5;
  padding: 3rem 1.25rem 4rem;
}

.kontakt-uebersicht {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

/* Linke Seite */
.kontakt-title {
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 1rem;
}

.kontakt-einleitung {
  margin: 0 0 1.25rem;
}

.kontakt-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.kontakt-info .kontakt-subtitle {
  text-align: left;
}

.kontakt-block {
  margin: 0 0 0.8rem;
}

.kontakt-info a {
  color: #8ad44d;
  text-decoration: none;
}

.kontakt-info a:hover {
  text-decoration: underline;
}

/* Rechte Seite Formular */
.kontakt-formular {
  display: flex;
  justify-content: center;
}

.kontakt-card {
  background: #bfbfbf;
  border-radius: 14px;
  padding: 1.8rem 1.6rem 1.6rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: #111;
}

/* Formularlayout */
.kontakt-form-row.kontakt-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.kontakt-form-group {
  margin-bottom: 0.9rem;
}

.kontakt-form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.kontakt-form-group input,
.kontakt-form-group textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.45rem 0.4rem;
  font: inherit;
  box-sizing: border-box;
}

.kontakt-form-group textarea {
  resize: vertical;
}

/* Button */
.kontakt-submit {
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
}

/* Nachrichten */
.form-message {
  margin-bottom: 1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.form-message-success {
  background: #e6f6df;
  border: 1px solid #6dac3b;
  color: #285c11;
}

.form-message-error {
  background: #fde8e7;
  border: 1px solid #d1483f;
  color: #7a221c;
}

.form-message-error ul {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}

.recaptcha-placeholder {
  margin: 0.8rem 0;
  padding: 0.75rem;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background: #f4f4f4;
  color: #444;
  font-size: 0.85rem;
}

/* Honeypot unsichtbar (bot schutz) */
.hp-wrapper {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* Responsive */
@media (max-width: 900px) {
  .kontakt-section {
    padding-inline: 1rem;
  }

  .kontakt-uebersicht {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .kontakt-formular {
    justify-content: flex-start;
  }

  .kontakt-card {
    max-width: 100%;
  }

  .kontakt-map-section {
    margin-inline: -1rem;
  }
}

/* =========================================================
   Downloads
   ========================================================= */

.downloads-section {
  margin-bottom: 2.2rem;
}

.downloads-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.downloads-list li+li {
  margin-top: .55rem;
}

.downloads-list a,
.downloads-list a:visited {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.downloads-list a:hover,
.downloads-list a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

.downloads-list a::before {
  content: "› ";
  color: var(--color-primary);
  font-weight: 900;
}

.page-main .downloads-list a,
.page-main .downloads-list a:visited {
  color: var(--color-primary-dark) !important;
  text-decoration: none;
}

/* Downloads-Seite */
.downloads-page,
.downloads-page * {
  color: var(--color-primary-dark) !important;
}

.downloads-page a,
.downloads-page a:visited {
  color: var(--color-primary-dark) !important;
  text-decoration: none;
}

.downloads-page a:hover,
.downloads-page a:focus {
  color: var(--color-primary) !important;
  text-decoration: underline;
}

.downloads-page h2 {
  text-align: left !important;
  margin: 0 0 0.75rem;
  color: var(--color-primary-dark) !important;
  font-size: 1.9rem;
  font-weight: 600;
}

/* Abstand zwischen den Blöcken */
.downloads-block {
  margin-bottom: 2.2rem;
}

.downloads-page ul,
.downloads-page ol {
  list-style-position: outside;
  text-align: left !important;
  padding-left: 1.2rem;
  margin: 0.25rem 0 1.2rem;
}

.downloads-page li {
  text-align: left !important;
  margin: 0.35rem 0;
}

.downloads-page p {
  text-align: left;
}

/* =========================================================
   Umwelt
   ========================================================= */

.umwelt-image {
  width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   Anlagenbeschreibung
   ========================================================= */
.img-placeholder {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px dashed #cfcfcf;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 2rem;
}

.img-placeholder__inner {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  padding: 1rem;
}

/* Biomasse Bild */
.biomasse-bild {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 2rem auto 0;
}

@media (min-width: 1200px) {
  .biomasse-bild {
    max-width: 920px;
  }
}


/* =========================================================
   Galerie
   ========================================================= */
.gallery-section {
  margin-bottom: 34px;
}

.gallery-section h2 {
  color: var(--color-primary);
  margin: 0 0 24px;
}

.gallery-section__content {
  margin: 0 0 22px;
}

.gallery-cookie-embed {
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
}

.gallery-cookie-embed iframe {
  width: 100%;
  height: 100%;
}


.gallery-section__content iframe {
  display: block;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

iframe[data-cookie-src]:not([src]) {
  min-height: 220px;
  background: #eeeeee;
  border: 1px solid #d6d6d6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 34px;
}

.gallery-item {
  margin: 0;
  border: 2px solid #d5d5d5;
  background: #fff;
}

.gallery-lightbox-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__img {
  display: block;
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
}

.gallery-lightbox__close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Firmenlogos
   ========================================================= */
.logo-grid {
  margin: 1.25rem auto 0;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 26px 34px;
}

.logo-tile {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-tile img {
  display: block;
  height: auto;
  width: auto;
  max-height: 62px;
  max-width: 220px;
  object-fit: contain;
}

/* Größere Logos */
.logo-tile--big img {
  max-height: 90px;
  max-width: 280px;
}

.logo-tile--xl img {
  max-height: 150px;
  max-width: 520px;
}

@media (max-width: 720px) {
  .logo-grid {
    max-width: 100%;
    gap: 18px 20px;
  }

  .logo-tile img {
    max-height: 52px;
    max-width: 80vw;
  }

  .logo-tile--xl img {
    max-height: 120px;
  }
}


/* =========================================================
   Impressum
   ========================================================= */
.impressum-page a,
.impressum-page a:visited {
  color: var(--color-primary-dark);
}

.impressum-page a:hover,
.impressum-page a:focus {
  color: var(--color-primary);
}
/* =========================================================
   Datenschutz
   ========================================================= */
.privacy-page,
.privacy-page * {
  color: var(--color-primary-dark) !important;
}

.privacy-page a,
.privacy-page a:visited {
  color: var(--color-primary-dark) !important;
}

.privacy-page a:hover,
.privacy-page a:focus {
  color: var(--color-primary) !important;
  text-decoration: underline;
}

/* =========================================================
   Aktuelles
   ========================================================= */

.news-detail {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 1.5rem;
}

.news-detail__box {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.news-detail__back {
  margin: 0 0 1.25rem;
}

.news-detail__back a {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-size: 0.95rem;
}

.news-detail__back a:hover {
  text-decoration: underline;
}

.news-detail__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2vw, 2.7rem);
  line-height: 1.15;
  font-weight: 700;
  color: #323a2c;
}

.news-detail__date {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #8a8a8a;
}

.news-detail__date a {
  color: var(--color-primary-dark);
}

.news-detail .news-cover {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 0 2.8rem;
  border-radius: 8px;
  box-shadow: none;
}

.news-detail__content,
.news-detail__content p,
.news-detail__content li {
  color: #555 !important;
  font-size: 1.05rem;
  line-height: 1.75;
}

.news-detail__content p {
  margin: 0 0 1rem;
}

.news-page .page-layout {
  max-width: 1100px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3rem;
  padding: 0 0.5rem;
}

@media (max-width: 900px) {
  .news-page .page-layout {
    grid-template-columns: 1fr;
  }
}

.news-page-title {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: #111;
}

/* Liste */
.news-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 2.2rem;
}

/* Datum-Box */
.news-datebox {
  width: 70px;
  height: 70px;
  background: #efefef;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 800;
  line-height: 1.05;
}

.news-datebox__month {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-datebox__year {
  font-size: 12px;
  margin-top: 6px;
}

/* Content */
.news-title {
  margin: 0;
  font-weight: 500;
  font-size: 1.6rem;
}

.news-title a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.news-title a:hover {
  text-decoration: underline;
}

.news-meta {
  margin-top: 0.35rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.news-meta a {
  color: var(--color-primary-dark);
}

.news-meta a:hover {
  color: var(--color-primary);
}

.news-teaser {
  margin: 0.65rem 0 0.8rem;
  color: #555;
  font-style: italic;
}

.news-readmore {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.news-readmore:hover {
  text-decoration: underline;
}

.news-cover {
  width: 100%;
  max-width: 520px;
  display: block;
  margin-top: 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.news-detail .news-cover {
  max-width: none;
  width: 100%;
  margin: 1rem 0 1.25rem;
}


/* Aktuelles Archiv */
.news-page .sidebar-archive {
  margin-top: 2rem;
  color: var(--color-primary-dark);
}

.news-page .sidebar-archive h3 {
  color: #6da742;
}

.news-page .sidebar-archive__list {
  display: block;
  list-style: disc;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-primary-dark);
}

.news-page .sidebar-archive__list li {
  margin: 0.25rem 0;
  color: var(--color-primary-dark);
}

.news-page .sidebar-archive__list li::marker {
  color: var(--color-primary-dark);
}

.news-page .sidebar-archive__list a,
.news-page .sidebar-archive__list a:visited,
.news-page .sidebar-archive__all,
.news-page .sidebar-archive__all:visited {
  display: inline;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.news-page .sidebar-archive__list a:hover,
.news-page .sidebar-archive__list a.is-active,
.news-page .sidebar-archive__all:hover {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  text-decoration: underline;
}

/* =========================================================
   Mobile Korrekturen fuer Inhaltsseiten
   ========================================================= */
@media (max-width: 720px) {
  .page-layout,
  .page-main,
  .page-sidebar,
  .news-page .page-layout,
  .news-detail,
  .downloads-page,
  .gallery-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-layout,
  .news-page .page-layout {
    display: block;
    padding-inline: 0;
    margin-bottom: 2rem;
  }

  .page-main,
  .page-sidebar {
    min-width: 0;
  }

  .page-main p,
  .page-main li,
  .news-teaser,
  .news-detail__content,
  .downloads-page,
  .downloads-page * {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .news-item {
    display: block;
    margin-bottom: 2.5rem;
  }

  .news-datebox {
    width: 64px;
    height: 64px;
    margin: 0 0 1rem;
  }

  .news-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .news-page-title,
  .news-detail__title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .news-cover,
  .news-detail .news-cover,
  .biomasse-bild,
  .umwelt-image,
  .img-placeholder,
  .img-placeholder img {
    max-width: 100%;
  }

  .news-cover,
  .news-detail .news-cover,
  .biomasse-bild,
  .umwelt-image {
    height: auto;
  }

  .downloads-page h2 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .downloads-page ul,
  .downloads-page ol {
    padding-left: 1rem;
  }
}