/* GSP – Nachbau des Live-Designs (Salient) für Wagtail. Schriften lokal, keine externen Aufrufe. */
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-400.5853435d21b1.woff2") format("woff2"); }
@font-face { font-family: "Monda"; font-weight: 400 700; font-display: swap; src: url("../fonts/monda-400.32137e88482d.woff2") format("woff2"); }

:root {
  --gruen: #009757; --gruen-dunkel: #007a46; --text: #3d3d3c; --gelb: #ffdd00; --gelb-hell: #fff4ba;
  --mint: #d9efe5; --grau: #f9f9f9; --tuerkis: #1aa0ad; --breite: 1300px; --kopf: 'Bebas Neue', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font-family: Monda, Verdana, sans-serif; font-size: 17px; line-height: 1.55; color: var(--text); background: #fff; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-decoration: none; }
a:hover { color: var(--gruen-dunkel); }
h1, h2, h3, h4 { font-family: var(--kopf); font-weight: 400; line-height: 1.08; margin: 0 0 .35em; letter-spacing: .01em; }
h1 { font-size: clamp(36px, 4vw, 52px); }
h2 { font-size: clamp(32px, 3.4vw, 45px); }
h3 { font-size: clamp(26px, 2.6vw, 36px); }
h4 { font-size: clamp(22px, 2vw, 30px); }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { max-width: var(--breite); margin: 0 auto; padding: 0 40px; }
.voll { padding: 0; }
.gruen { color: var(--gruen); }
.gelb { color: var(--gelb); }

/* Kopfzeile */
.kopfzeile { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,.08); }
.kopfzeile-innen { display: flex; align-items: center; justify-content: space-between; height: 128px; transition: height .3s; }
.logo img { width: 330px; height: auto; }
.hauptmenue > ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.hauptmenue li { position: relative; }
.hauptmenue a { font-family: var(--kopf); font-size: 28px; color: var(--text); display: inline-block; padding: 6px 0; border-bottom: 2px solid transparent; }
.hauptmenue > ul > li > a.aktiv, .hauptmenue > ul > li > a:hover { border-bottom-color: var(--gruen); color: var(--text); }
.hauptmenue .unter, .hauptmenue .unter2 { list-style: none; position: absolute; left: -20px; top: 100%; min-width: 260px; background: #1c1c1c; padding: 10px 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .2s; }
.hauptmenue .unter2 { left: 100%; top: -10px; display: none; }
.hauptmenue li:hover > .unter2, .hauptmenue li:focus-within > .unter2 { display: block; }
.hauptmenue li:hover > .unter, .hauptmenue li:hover > .unter2, .hauptmenue li:focus-within > .unter { opacity: 1; visibility: visible; }
.hauptmenue .unter a { font-family: Monda, sans-serif; font-size: 15px; color: #ccc; padding: 7px 22px; display: block; border: 0; }
.hauptmenue .unter a:hover { color: #fff; background: rgba(255,255,255,.06); }
.menue-knopf { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.menue-knopf span { display: block; width: 28px; height: 3px; background: var(--text); margin: 5px 0; }

/* Seitenkopf: Bild grün überlagert */
.seitenkopf { position: relative; background: var(--gruen); color: #fff; padding: 70px 0; overflow: hidden; }
.seitenkopf-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.seitenkopf h1 { position: relative; color: #fff; font-size: clamp(42px, 5vw, 66px); margin: 0; }

/* Abschnitte */
.abschnitt { position: relative; padding: 85px 0; overflow: hidden; }
.abschnitt.abstand-klein { padding: 40px 0; }
.abschnitt.abstand-ohne { padding: 0; }
.abschnitt-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abschnitt-inhalt { position: relative; }
.bg-gelb { background: var(--gelb-hell); }
.bg-mint { background: var(--mint); }
.bg-grau { background: var(--grau); }
.bg-gruen { background: var(--gruen); color: #fff; }
.bg-bild_hell::after, .bg-bild_gruen::after { content: ""; position: absolute; inset: 0; }
.bg-bild_hell::after { background: rgba(255,255,255,.82); }
.bg-bild_gruen { color: #fff; }
.bg-bild_gruen::after { background: rgba(0,151,87,.86); }
.bg-bild_tuerkis::after { content: ""; position: absolute; inset: 0; background: rgba(26,158,173,.88); }
.bg-bild_tuerkis .abschnitt-inhalt { z-index: 1; }
.bg-bild_hell .abschnitt-inhalt, .bg-bild_gruen .abschnitt-inhalt, .bg-bild .abschnitt-inhalt { z-index: 1; }
.bg-gruen h1, .bg-gruen h2, .bg-gruen h3, .bg-gruen h4, .bg-bild_gruen h1, .bg-bild_gruen h2, .bg-bild_gruen h3, .bg-bild_gruen h4 { color: #fff; }
.t-hell { color: #fff; }
.t-hell h1, .t-hell h2, .t-hell h3, .t-hell h4 { color: #fff; }

.zeile { display: flex; flex-wrap: wrap; gap: 0 3%; margin-bottom: 25px; }
.zeile:last-child { margin-bottom: 0; }
.zeile.v-mitte { align-items: center; }
.spalte { min-width: 0; }
.w-11 { flex: 0 0 100%; }
.w-12 { flex: 0 0 48.5%; }
.w-13 { flex: 0 0 31.33%; }
.w-23 { flex: 0 0 65.66%; }
.w-14 { flex: 0 0 22.75%; }
.w-34 { flex: 0 0 74.25%; }
.w-16 { flex: 0 0 14.16%; }
.w-56 { flex: 0 0 82.83%; }
.w-712 { flex: 0 0 56.25%; }
.w-512 { flex: 0 0 40.75%; }
.sbg-grau { background: var(--grau); padding: 2.2%; margin-bottom: 25px; }
.sbg-gruen { background: var(--gruen); color: #fff; padding: 25px; }
.sbg-weiss { background: #fff; padding: 25px; }
.a-rechts { text-align: right; }
.a-mitte { text-align: center; }

/* Text */
.richtext > *:last-child { margin-bottom: 0; }
.richtext ul, .richtext ol { padding-left: 1.2em; }
.richtext h1, .richtext h2, .richtext h3, .richtext h4 { margin-top: .2em; }
.unterstrichen h4, .unterstrichen h3 { display: inline-block; text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 2px; text-underline-offset: 4px; font-style: normal; }
.unterstrichen i { font-style: normal; }
.liste ul { list-style: none; padding: 0; margin: 0; }
.liste li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.l-haken li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 12px; height: 7px; border-left: 3px solid var(--gruen); border-bottom: 3px solid var(--gruen); transform: rotate(-45deg); }
.l-strich li::before { content: "–"; position: absolute; left: 6px; color: var(--gruen); }
.l-ohne li { padding-left: 0; }
.abstand.mit-linie { border-bottom: 1px solid rgba(0,0,0,.15); margin-bottom: 20px; }
.bild img { width: auto; max-width: 100%; }
.bild.b-center img { margin: 0 auto; width: auto; }
.bild { margin: 0 0 1em; }
.news-datum { font-family: var(--kopf); font-size: 24px; color: var(--gruen); margin-bottom: 15px; }
.news-bild { width: 100%; max-height: 640px; object-fit: cover; }

/* Buttons */
.knopf-zeile { margin: 0 0 1em; }
.knopf { display: inline-block; font-family: var(--kopf); font-size: 22px; line-height: 1; padding: 14px 24px 11px; border-radius: 3px; background: var(--gruen); color: #fff; border: 0; cursor: pointer; transition: background .2s; }
.knopf:hover { background: var(--gruen-dunkel); color: #fff; }
.knopf.k-gelb { background: var(--gelb); color: var(--text); }
.knopf.k-gelb:hover { background: #f2cf00; color: var(--text); }
.knopf.k-gross { font-size: 26px; padding: 20px 34px 16px; }

/* Kacheln */
.kachel { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; margin-bottom: 25px; }
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.kachel::after { content: ""; position: absolute; inset: 0; background: rgba(0,151,87,.6); transition: background .4s; }
.kachel:hover::after { background: rgba(0,151,87,.2); }
.kachel:hover img { transform: scale(1.06); }
.kachel-titel { position: relative; z-index: 1; padding: 30px 55px; width: 100%; }
.kachel-titel h2, .kachel-titel h3 { color: #fff; font-size: clamp(32px, 3.4vw, 52px); margin: 0; }
.kachel.k-dunkel { align-items: flex-start; }
.kachel.k-dunkel::after { background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.15)); }
.kachel.k-dunkel .kachel-titel { padding: 25px; }
.kachel.k-dunkel h3 { font-size: 30px; }

/* Karussell */
.karussell { position: relative; }
.karussell-spur { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.karussell-spur::-webkit-scrollbar { display: none; }
.karussell-item { flex: 0 0 calc((100% - (var(--sp) - 1) * 20px) / var(--sp)); scroll-snap-align: start; }
.karussell-item .kachel { margin: 0; }
.karussell-punkte { display: flex; justify-content: center; gap: 10px; margin-top: 25px; }
.karussell-punkte button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #ccc; padding: 0; cursor: pointer; }
.karussell-punkte button.aktiv { background: var(--text); transform: scale(1.3); }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Icon + Text */
.icon-text { display: flex; align-items: center; gap: 16px; }
.icon-text img { width: 42px; flex: 0 0 42px; }
.icon-text h3 { font-size: 30px; margin: 0; }

/* Projekte */
.projektfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-bottom: 30px; }
.projektfilter button { background: none; border: 0; font: inherit; font-size: 15px; color: #888; cursor: pointer; padding: 4px 0; }
.projektfilter button.aktiv, .projektfilter button:hover { color: var(--gruen); }
.projektraster-innen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.projektkachel { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #333; color: #fff; }
.projektkachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .4s; }
.projektkachel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.projektkachel span { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 1; font-family: var(--kopf); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; }
.projektkachel:hover img { transform: scale(1.06); }
.projektkachel.versteckt { display: none; }
.als-karussell .karussell-item { aspect-ratio: 1 / .95; }

/* News */
.newsraster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.newskarte { display: flex; flex-direction: column; background: #fff; box-shadow: 0 4px 22px rgba(0,0,0,.07); color: var(--text); transition: transform .3s; }
.newskarte:hover { transform: translateY(-4px); color: var(--text); }
.newskarte img, .newskarte-leer { width: 100%; aspect-ratio: 700 / 460; object-fit: cover; background: var(--mint); display: block; }
.newskarte-text { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.newskarte-datum { font-size: 13px; color: #888; }
.newskarte-titel { font-family: var(--kopf); font-size: 28px; line-height: 1.05; }
.newskarte-teaser { font-size: 15px; color: #666; }

/* Reiter */
.reiter-kopf { display: flex; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: 40px; }
.reiter-kopf button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-size: 19px; padding: 18px 10px; cursor: pointer; color: var(--text); }
.reiter-kopf button.aktiv { border-bottom-color: var(--gruen); box-shadow: 0 10px 18px -12px rgba(0,0,0,.15); }
.reiter-inhalt { display: none; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.reiter-inhalt.aktiv { display: grid; }

/* Slider */
.slider { position: relative; overflow: hidden; background: #222; }
.folie { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.folie.aktiv { opacity: 1; z-index: 1; }
.folie img, .folie video { width: 100%; height: 100%; object-fit: cover; }
.folie::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,0) 70%); }
.folie-text { position: absolute; left: 0; right: 0; bottom: 18%; z-index: 2; color: #fff; }
.folie-text h2 { color: #fff; font-size: clamp(40px, 5vw, 72px); max-width: 900px; margin-bottom: 12px; }
.folie-unter { font-family: var(--kopf); font-size: clamp(24px, 3vw, 40px); color: var(--gelb); margin-bottom: 22px; }
.slider-pfeil { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); background: rgba(0,0,0,.25); color: #fff; border: 0; font-size: 40px; width: 52px; height: 70px; cursor: pointer; }
.slider-pfeil.zurueck { left: 0; } .slider-pfeil.weiter { right: 0; }

/* Formular */
.formular .feld { margin-bottom: 18px; }
.formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular input[type=url], .formular input[type=number], .formular textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 13px 12px; border: 1px solid #d6d6d6; border-radius: 4px; background: #fff; color: var(--text); }
.formular textarea { min-height: 140px; }
.formular .feld-checkbox label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.formular .fehler input, .formular .fehler textarea { border-color: #c0392b; }
.formular small { color: #c0392b; }
.video video { width: 100%; }

/* Fußzeile */
.fusszeile .abschnitt { padding: 50px 0 35px; }
.fusszeile h4 { font-size: 28px; }
.fusszeile .liste li { padding-left: 0; margin-bottom: 10px; }
.fusszeile .liste a { color: var(--text); }
.fusszeile .liste a:hover { color: var(--gruen); }
.socket { background: var(--gruen); color: #fff; font-size: 12px; padding: 20px 0; }
.socket-innen { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.socket a { color: #fff; margin-left: 18px; }

/* Mobil */
@media (max-width: 1000px) {
  .kopfzeile-innen { height: 90px; }
  .logo img { width: 210px; }
  .menue-knopf { display: block; }
  .hauptmenue { display: none; position: absolute; top: 90px; left: 0; right: 0; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
  .hauptmenue.offen { display: block; }
  .hauptmenue > ul { flex-direction: column; gap: 0; padding: 10px 40px 20px; }
  .hauptmenue .unter, .hauptmenue .unter2 { position: static; opacity: 1; visibility: visible; background: none; padding: 0 0 0 18px; display: block; }
  .hauptmenue .unter a { color: var(--text); padding: 4px 0; }
  .w-12, .w-13, .w-23, .w-14, .w-34, .w-16, .w-56, .w-712, .w-512 { flex: 0 0 100%; }
  .projektraster-innen, .newsraster { grid-template-columns: repeat(2, 1fr); }
  .karussell-item { flex-basis: 80%; }
  .reiter-inhalt.aktiv { grid-template-columns: 1fr; }
  .container { padding: 0 22px; }
}
@media (max-width: 600px) {
  .projektraster-innen, .newsraster { grid-template-columns: 1fr; }
  .abschnitt { padding: 50px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
