/* Ergänzungen zum Mobirise-Theme (Formular-Zusätze, Karte nach Klick, Datenschutz-Hinweis, Rechtstexte).
   Farben aus dem Theme: Grün #1a763a, Gelb #ffed00. */

:root {
  --gws-green: #1a763a;
  --gws-yellow: #ffed00;
  --gws-dark: #232323;
}

/* Bilder mit width/height-Angabe behalten ihr Seitenverhältnis */
img[width][height] { height: auto; }

/* Lange Wörter auf schmalen Bildschirmen umbrechen */
h1, h2, h3, h4 { overflow-wrap: anywhere; hyphens: auto; }

/* ---------- Formulare ---------- */
.hp-fields { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-privacy .form-check-label { display: flex; gap: .6rem; align-items: flex-start; color: var(--gws-green); cursor: pointer; }
.form-privacy .form-check-input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--gws-green); }
.form-privacy a { text-decoration: underline; }
.form-privacy__text { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
section[class] .form-wrap .mbr-form .dragArea.row .form-group.form-privacy { margin-bottom: 1.5rem !important; }
section[class] .form-wrap .mbr-form .form-privacy .form-check-input { background-color: #fff; border: 2px solid var(--gws-green); border-radius: 3px; }
section[class] .form-wrap .mbr-form .form-privacy .form-check-input:checked { background-color: var(--gws-green); }
/* Eingabefelder deutlich erkennbar: weiß mit Rahmen (Wunsch 19.10.2026), gilt für alle Formular-Abschnitte */
section[class] .form-wrap .mbr-form .dragArea.row .form-group .form-control {
  background-color: #fff !important; color: var(--gws-dark) !important;
  border: 2px solid var(--gws-green) !important; border-radius: 6px !important;
  padding: 12px 14px !important; margin-bottom: 24px !important; }
section[class] .form-wrap .mbr-form .dragArea.row .form-group .form-control:hover { border-color: var(--gws-green) !important; }
section[class] .form-wrap .mbr-form .dragArea.row .form-group .form-control:focus {
  border-color: var(--gws-green) !important; box-shadow: 0 0 0 3px rgba(26,118,58,.25) !important; outline: none !important; }
section[class] .form-wrap .mbr-form .dragArea.row .form-group .form-control::placeholder { color: #6b6b6b !important; opacity: 1 !important; }
section[class] .form-wrap .mbr-form .dragArea.row .form-group textarea.form-control { min-height: 140px; resize: vertical; }
section[class] .form-wrap .mbr-form .dragArea.row .form-group input[type="file"].form-control { padding: 10px 14px !important; }
.form-hint { color: var(--gws-green); margin: -18px 0 0; font-size: .875rem !important; }
.mbr-form input[type="file"].form-control { padding-bottom: 14px; }
.mbr-form .alert { border-radius: 0; }
.mbr-form button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Karte nach Klick ---------- */
.map-consent {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 350px; height: 100%; width: 100%; padding: 2rem 1.25rem;
  background: #f3f3f3 repeating-linear-gradient(45deg, rgba(26,118,58,.05) 0 12px, transparent 12px 24px);
  text-align: center;
}
.map-consent--loaded { padding: 0; background: none; display: block; }
.map-consent--loaded iframe { width: 100%; height: 100%; min-height: 350px; display: block; }
.map-consent__box { max-width: 34rem; color: var(--gws-dark); }
.map-consent__title { font-weight: 700; color: var(--gws-green); margin-bottom: .5rem; }
.map-consent__remember { display: inline-flex; gap: .5rem; align-items: center; margin-top: .75rem; cursor: pointer; }
.map-consent__remember input { accent-color: var(--gws-green); }
.map-consent__route { margin: .75rem 0 0; }
.map-consent .mbr-section-btn { justify-content: center; }

/* ---------- Datenschutz-Hinweis ---------- */
.consent-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2000;
  max-width: 34rem; margin-left: auto;
  background: #fff; color: var(--gws-dark); border-top: 6px solid var(--gws-yellow);
  box-shadow: 0 10px 40px rgba(0,0,0,.25); font-family: 'Barlow', sans-serif; font-size: .95rem; line-height: 1.5;
}
.consent-banner[hidden] { display: none; }
.consent-banner__inner { padding: 1.1rem 1.25rem 1.25rem; }
.consent-banner__title { margin: 0 0 .35rem; color: var(--gws-green); font-family: 'Sora', sans-serif; }
.consent-banner__text { margin: 0 0 .75rem; }
.consent-banner__choices { border: 0; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.consent-banner__choices label { display: inline-flex; gap: .45rem; align-items: center; cursor: pointer; }
.consent-banner__choices input { accent-color: var(--gws-green); width: 1.05rem; height: 1.05rem; }
.consent-banner__buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent-banner__buttons .btn { margin: 0 !important; padding: .6rem 1.1rem; min-height: 44px; }
.consent-banner .btn-primary-outline { color: var(--gws-green) !important; border: 2px solid var(--gws-green) !important; background: transparent !important; }

/* ---------- Rechtstexte ---------- */
.legal-text .legal-heading { margin: 1.75rem 0 .5rem; font-size: 1.05rem; scroll-margin-top: 110px; }
.legal-text .legal-heading:first-child { margin-top: 0; }
.legal-text .legal-body p { margin: 0 0 .9rem; }
.legal-text .legal-body h3, .legal-text .legal-body h4 { font-size: 1rem; font-weight: 700; margin: 1.2rem 0 .4rem; }
.legal-text .legal-body ul, .legal-text .legal-body ol { padding-left: 1.3rem; margin: 0 0 .9rem; }
.legal-toc { margin-bottom: 1.5rem; }
.legal-toc ol { padding-left: 1.3rem; margin: .25rem 0 0; }
.legal-toc a { text-decoration: none; }
.legal-text a { overflow-wrap: anywhere; }
/* Links im Rechtstext ohne eigene Klasse (z. B. „Datenschutzerklärung von Google“) waren grün auf grünem Grund → Textfarbe + Unterstreichung, lesbar auf jedem Hintergrund */
.legal-text .legal-body a:not([class]) { color: inherit; text-decoration: underline; }

/* ---------- Kontaktdaten im Team ---------- */
.team-contact a { text-decoration: none; }

/* ---------- Wartungs-/Vorschau-Hinweis ---------- */
.preview-ribbon {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2100; padding: .4rem 1rem;
  background: var(--gws-green); color: #fff; font: 600 .85rem/1.4 'Barlow', sans-serif; text-align: center;
}

/* Rechtstext-Container ersetzt den <p> des Exports – gleicher Abstand wie ein Absatz */
.legal-text { margin: 0 0 1rem; }

/* ---------- Impressum & Datenschutz im Popup ---------- */
html.legal-popup-open, html.legal-popup-open body { overflow: hidden; }
.legal-popup-overlay {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 1rem; background: rgba(20, 30, 24, .6);
}
.legal-popup-overlay[hidden] { display: none; }
.legal-popup {
  position: relative; width: min(56rem, 100%); max-height: 100%; display: flex; flex-direction: column;
  background: #fff; color: var(--gws-dark); border-top: 6px solid var(--gws-yellow); box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.legal-popup__bar { position: absolute; top: 6px; right: 6px; z-index: 2; }
.legal-popup__close {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--gws-green); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.legal-popup__close:hover, .legal-popup__close:focus-visible { background: var(--gws-yellow); outline: none; }
.legal-popup__close svg { width: 26px; height: 26px; fill: currentColor; }
.legal-popup__content { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.75rem clamp(1.1rem, 4vw, 2.75rem) 2rem; overscroll-behavior: contain; outline: none; line-height: 1.6; }
.legal-popup__title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gws-green); margin: 0 3rem 1.25rem 0; overflow-wrap: anywhere; }
.legal-popup__box { background: #f6f8f6; border-left: 5px solid var(--gws-yellow); padding: .9rem 1.1rem; margin-bottom: 1.5rem; }
.legal-popup__box p { margin: 0 0 .35rem; }
.legal-popup__label { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gws-green); font-weight: 600; }
.legal-popup__text { margin: 0 !important; }
.legal-popup .legal-text { margin: 0; }
.legal-popup .legal-heading { scroll-margin-top: 1rem; color: var(--gws-green); }
.legal-popup a { overflow-wrap: anywhere; }
.legal-popup a.text-success { color: var(--gws-green) !important; text-decoration: underline; }
@media (max-width: 600px) {
  .legal-popup-overlay { padding: 0; }
  .legal-popup { width: 100%; height: 100%; }
}

/* Rohrspiel-Easter-Egg: kleines Rohrsymbol in der Fußzeile */
.game-egg { display: inline-block; width: 13px; height: 13px; margin-left: .35em; vertical-align: -1px; opacity: .45; color: inherit; transition: opacity .2s; }
.game-egg:hover, .game-egg:focus-visible { opacity: 1; }
.game-egg svg { width: 100%; height: 100%; fill: currentColor; display: block; }

/* Aufzählungen aus Zeilen mit „-“: hängender Einzug, Text beginnt bei allen Punkten an derselben Stelle */
/* Mobirise-Theme setzt für alle span „line-height: 1“ – Listenpunkte übernehmen Schrift und Zeilenhöhe des Absatzes */
.dash-item, .dash-item .dash-mark, .dash-item .dash-text { font: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; }
.dash-item { display: flex; align-items: baseline; }
.dash-item .dash-mark { flex: 0 0 1em; }
.dash-item .dash-text { flex: 1 1 auto; min-width: 0; }

/* Fußzeile (Vorschlag 19.10.2026): gleiches Linienraster wie alle anderen Abschnitte (0/25/50/75/100 %),
   damit die senkrechten Linien ohne Unterbrechung durchlaufen; Spalten am Desktop an diesem Raster ausgerichtet. */
.footer01 .content-wrapper .border_2 { left: 25%; }
.footer01 .content-wrapper .border_4 { left: 75%; }
@media (max-width: 992px) {
  .footer01 .content-wrapper .border_2, .footer01 .content-wrapper .border_4 { display: none; }
}
@media (min-width: 1200px) {
  .footer01 .content-wrap > .card:nth-child(1) { flex: 0 0 25%; max-width: 25%; }
  .footer01 .content-wrap > .card:nth-child(2) { flex: 0 0 75%; max-width: 75%; }
  .footer01 .nav-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; padding-left: 0; padding-right: 0; }
  .footer01 .nav-wrapper .nav-wrap { padding: 0 24px 0 12px; }
}

/* Mobirise setzt global „:focus-visible { outline: red 2px !important }“ – der scrollbare Textbereich des Popups
   bekommt den Fokus nur zum Vorlesen/Scrollen und braucht keinen roten Rahmen (das Schließen-Kreuz behält seinen). */
.legal-popup .legal-popup__content:focus, .legal-popup .legal-popup__content:focus-visible { outline: none !important; }

/* Fußzeile: Copyright-Zeile liegt über den senkrechten Linien (Hintergrund in Fußzeilenfarbe), 19.10.2026 */
.footer01 .mbr-copy { display: inline-block; align-self: flex-start; width: auto !important; max-width: 100%; background-color: #1a763a; background-clip: content-box; position: relative; z-index: 1; }
/* Handy/Tablet: Mittellinie der Fußzeile ausblenden, sie liefe sonst durch die einspaltigen Texte */
@media (max-width: 992px) {
  .footer01 .content-wrapper .border_3 { display: none; }
}
/* Formular auf grünem Grund (Jobs): Zustimmungstext weiß wie die Feldbeschriftungen, Checkbox mit gelbem Rahmen */
.cid-vvqDfuJ1dV .form-privacy .form-check-label, .cid-vvqDfuJ1dV .form-privacy a, .cid-vvn95sXViY .form-privacy .form-check-label, .cid-vvn95sXViY .form-privacy a { color: #fff !important; }
section.cid-vvqDfuJ1dV .form-wrap .mbr-form .form-privacy .form-check-input, section.cid-vvn95sXViY .form-wrap .mbr-form .form-privacy .form-check-input { border-color: var(--gws-yellow); }
section.cid-vvqDfuJ1dV .form-wrap .mbr-form .form-privacy .form-check-input:checked, section.cid-vvn95sXViY .form-wrap .mbr-form .form-privacy .form-check-input:checked { background-color: var(--gws-yellow); }
