/*! LBD Einwilligung 1.0.0 – eigenes Stylesheet, keine externen Ressourcen. Lizenz: GPL-2.0-or-later. */

/* Farben: LBD-Dunkelgrün (#36692D) für Knöpfe und Links: Kontrast 6,5:1 zu Weiß (WCAG AA).
   Das hellere LBD-Grün (#3BAA35) nur für Fokusrahmen (3:1 gegen Weiß, Mindestwert für Bedienelemente). */

#lbd-ew, #lbd-ew *, #lbd-ew-widget, .lbd-ew-platzhalter, .lbd-ew-platzhalter * { box-sizing: border-box; }

#lbd-ew { display: none; }
#lbd-ew.lbd-ew-offen { display: block; }

#lbd-ew .lbd-ew-hintergrund {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000;
  background: rgba(0, 0, 0, .7);
}

#lbd-ew .lbd-ew-dialog {
  position: fixed; z-index: 2147483001; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(100% - 32px); max-width: 600px; max-height: calc(100% - 32px); overflow: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: #fff; color: #333; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  padding: 20px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5; text-align: left; letter-spacing: normal; outline: none;
  animation: lbd-ew-ein .2s ease-out;
}
@keyframes lbd-ew-ein { from { opacity: 0; } to { opacity: 1; } }

/* Auf Datenschutzerklärung und Impressum: Leiste unten, Seite bleibt lesbar und bedienbar */
#lbd-ew[data-ansicht="leiste"] .lbd-ew-hintergrund { display: none; }
#lbd-ew[data-ansicht="leiste"] .lbd-ew-dialog {
  top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-width: none;
  max-height: 60vh; border-radius: 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .3);
}
#lbd-ew[data-ansicht="leiste"] .lbd-ew-ebene { max-width: 900px; margin: 0 auto; }

html.lbd-ew-sperre, html.lbd-ew-sperre body { overflow: hidden; }

#lbd-ew [hidden] { display: none !important; }

#lbd-ew .lbd-ew-kopf {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid #e3e3e3;
}
#lbd-ew .lbd-ew-logo { display: block; flex: none; width: auto; height: 40px; max-width: 90px; object-fit: contain; }
#lbd-ew h2.lbd-ew-titel {
  flex: 1 1 auto; margin: 0; padding: 0; font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1.25;
  color: #232323; text-transform: none; letter-spacing: normal; outline: none;
}
#lbd-ew button.lbd-ew-schliessen, #lbd-ew button.lbd-ew-zurueck {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; min-height: 44px; margin: -8px -10px 0 0; padding: 0 8px; border: 0; border-radius: 4px;
  background: transparent; color: #36692D; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  text-transform: none; cursor: pointer; box-shadow: none;
}
#lbd-ew button.lbd-ew-zurueck { margin: -8px 0 0 -8px; }
#lbd-ew button.lbd-ew-schliessen:hover, #lbd-ew button.lbd-ew-zurueck:hover { background: #eef5ec; color: #2b5524; }

#lbd-ew .lbd-ew-inhalt p { margin: 0 0 10px; font-size: 14px; color: #444; }
#lbd-ew a { color: #36692D; text-decoration: underline; }
#lbd-ew a:hover { color: #2b5524; }

#lbd-ew fieldset.lbd-ew-kurzwahl {
  display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0 0; padding: 0; border: 0; min-width: 0;
}
#lbd-ew .lbd-ew-kurz {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 15px; font-weight: 600; color: #333; cursor: pointer;
}
#lbd-ew .lbd-ew-kurz input { width: 20px; height: 20px; margin: 0; accent-color: #36692D; cursor: pointer; }
#lbd-ew .lbd-ew-kurz input:disabled { cursor: not-allowed; }

#lbd-ew .lbd-ew-knoepfe { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; }
#lbd-ew .lbd-ew-reihe { display: flex; flex-wrap: wrap; gap: 10px; }

#lbd-ew button.lbd-ew-knopf, html .lbd-ew-platzhalter button.lbd-ew-knopf {
  flex: 1 1 200px; min-height: 44px; margin: 0; padding: 10px 16px; border: 2px solid #36692D; border-radius: 4px;
  background: #36692D; color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-align: center; text-transform: none; text-decoration: none; letter-spacing: normal; white-space: normal;
  cursor: pointer; box-shadow: none;
}
#lbd-ew button.lbd-ew-knopf:hover, html .lbd-ew-platzhalter button.lbd-ew-knopf:hover { background: #2b5524; border-color: #2b5524; color: #fff; }
#lbd-ew button.lbd-ew-knopf-zweit, html .lbd-ew-platzhalter button.lbd-ew-knopf-zweit { background: #fff; color: #36692D; }
#lbd-ew button.lbd-ew-knopf-zweit:hover, html .lbd-ew-platzhalter button.lbd-ew-knopf-zweit:hover { background: #eef5ec; color: #2b5524; }

#lbd-ew :focus-visible, html .lbd-ew-platzhalter :focus-visible, html #lbd-ew-widget:focus-visible {
  outline: 3px solid #3BAA35; outline-offset: 2px;
}
#lbd-ew .lbd-ew-dialog:focus-visible { outline: 3px solid #3BAA35; outline-offset: -3px; }

#lbd-ew .lbd-ew-fuss { margin: 12px 0 0; font-size: 13px; text-align: center; color: #555; }

/* Ebene 2 */
#lbd-ew .lbd-ew-kategorie { margin: 0 0 12px; padding: 12px; border: 1px solid #e3e3e3; border-radius: 6px; background: #fafafa; }
#lbd-ew .lbd-ew-kat-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#lbd-ew .lbd-ew-immer { font-size: 13px; color: #555; }
#lbd-ew .lbd-ew-kat-text { margin: 4px 0 8px; font-size: 14px; color: #444; }
#lbd-ew .lbd-ew-dienst { margin: 6px 0 0; padding: 6px 0 0 12px; border-top: 1px solid #e9e9e9; }
#lbd-ew .lbd-ew-dienst-titel { margin: 4px 0; font-weight: 600; }

#lbd-ew .lbd-ew-schalter { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-weight: 700; cursor: pointer; }
#lbd-ew .lbd-ew-schalter-klein { font-weight: 600; }
#lbd-ew .lbd-ew-schalter input {
  position: absolute; left: 0; top: 50%; width: 44px; height: 24px; margin: -12px 0 0; padding: 0; opacity: 0; cursor: pointer; z-index: 1;
}
#lbd-ew .lbd-ew-schalter input:disabled { cursor: not-allowed; }
#lbd-ew .lbd-ew-schalter-bahn { position: relative; flex: none; width: 44px; height: 24px; border-radius: 12px; background: #7b8189; transition: background .15s; }
#lbd-ew .lbd-ew-schalter-bahn::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s;
}
#lbd-ew .lbd-ew-schalter input:checked + .lbd-ew-schalter-bahn { background: #36692D; }
#lbd-ew .lbd-ew-schalter input:checked + .lbd-ew-schalter-bahn::after { transform: translateX(20px); }
#lbd-ew .lbd-ew-schalter input:indeterminate + .lbd-ew-schalter-bahn { background: #6f8f69; }
#lbd-ew .lbd-ew-schalter input:indeterminate + .lbd-ew-schalter-bahn::after { transform: translateX(10px); }
#lbd-ew .lbd-ew-schalter input:disabled + .lbd-ew-schalter-bahn { background: #36692D; opacity: .55; }
#lbd-ew .lbd-ew-schalter input:focus-visible + .lbd-ew-schalter-bahn { outline: 3px solid #3BAA35; outline-offset: 2px; }

#lbd-ew details.lbd-ew-details { margin: 0 0 6px; font-size: 13.5px; }
#lbd-ew details.lbd-ew-details summary { display: list-item; padding: 6px 0; color: #36692D; font-weight: 600; cursor: pointer; }
#lbd-ew details.lbd-ew-details dl { margin: 4px 0 0; }
#lbd-ew details.lbd-ew-details dt { margin: 6px 0 0; font-weight: 700; color: #333; }
#lbd-ew details.lbd-ew-details dd { margin: 0; color: #444; overflow-wrap: anywhere; }
#lbd-ew details.lbd-ew-details ul { margin: 0; padding: 0 0 0 18px; }
#lbd-ew details.lbd-ew-details code { font-size: 12.5px; background: #eee; padding: 0 3px; border-radius: 3px; }
#lbd-ew .lbd-ew-status { margin: 8px 0 0; font-size: 12.5px; color: #555; overflow-wrap: anywhere; }

/* Widget zum erneuten Öffnen */
html #lbd-ew-widget {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147482999; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; min-height: 0; margin: 0; padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: #555; color: #fff; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
html #lbd-ew-widget:hover { background: #36692D; color: #fff; }
html #lbd-ew-widget[hidden] { display: none; }

/* Platzhalter für blockierte Inhalte */
html .lbd-ew-platzhalter {
  display: flex; align-items: center; justify-content: center; width: 100%; margin: 0 0 8px; padding: 16px;
  background: #f4f6f3; border: 1px solid #c9d3c6; border-radius: 6px; color: #2b2b2b; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.45;
}
html .lbd-ew-platzhalter-formular { display: block; }
/* Elementor gestaltet den Feld-Rahmen des reCAPTCHA-Feldes wie ein Eingabefeld (weiße Pille): um den Platzhalter herum ausblenden */
html .elementor-field:has(> .lbd-ew-platzhalter-formular) {
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important;
}
html .lbd-ew-platzhalter[hidden] { display: none; }
html .lbd-ew-platzhalter .lbd-ew-platzhalter-innen { max-width: 520px; }
html .lbd-ew-platzhalter p { margin: 0 0 10px; color: #2b2b2b; font-size: 14px; line-height: 1.45; }
html .lbd-ew-platzhalter p.lbd-ew-platzhalter-titel { font-size: 16px; font-weight: 700; }
html .lbd-ew-platzhalter .lbd-ew-platzhalter-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
html .lbd-ew-platzhalter button.lbd-ew-knopf { flex: 1 1 180px; font-size: 14px; }
html .lbd-ew-platzhalter a { color: #36692D; text-decoration: underline; }
html .lbd-ew-platzhalter p.lbd-ew-platzhalter-mehr { margin: 0; font-size: 13px; }
html .lbd-ew-platzhalter p.lbd-ew-platzhalter-hinweis { margin: 8px 0 0; font-weight: 700; color: #8a1f11; }
html .lbd-ew-platzhalter p.lbd-ew-platzhalter-hinweis:empty { display: none; }

/* Erlaubte Dienste: Platzhalter sofort ausblenden (Klassen setzt das Kopfskript vor dem Rendern) */
html.lbd-ok-recaptcha [data-lbd-platzhalter="recaptcha"],
html.lbd-ok-google-maps [data-lbd-platzhalter="google-maps"],
html.lbd-ok-youtube [data-lbd-platzhalter="youtube"],
html.lbd-ok-vimeo [data-lbd-platzhalter="vimeo"] { display: none; }
/* Nach dem Laden durch den Besucher bleibt im Formular nur die Bestätigung stehen */
html.lbd-ok-recaptcha .lbd-ew-platzhalter-formular.lbd-ew-bereit { display: block; }
html .lbd-ew-bereit .lbd-ew-platzhalter-text,
html .lbd-ew-bereit .lbd-ew-platzhalter-knoepfe,
html .lbd-ew-bereit .lbd-ew-platzhalter-mehr { display: none; }
html .lbd-ew-bereit p.lbd-ew-platzhalter-hinweis { margin: 0; color: #2b5524; }

.lbd-ew-unsichtbar {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 600px) {
  #lbd-ew .lbd-ew-dialog { padding: 16px; }
  #lbd-ew h2.lbd-ew-titel { font-size: 18px; }
  #lbd-ew .lbd-ew-logo { height: 32px; }
  #lbd-ew button.lbd-ew-knopf { flex-basis: 100%; }
  #lbd-ew[data-ansicht="leiste"] .lbd-ew-dialog { max-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  #lbd-ew .lbd-ew-dialog, #lbd-ew *, #lbd-ew-widget { animation: none !important; transition: none !important; }
}

@media print {
  #lbd-ew, #lbd-ew-widget { display: none !important; }
}
