/* Einblendungen und Interaktion, Ersatz fuer die frueheren Framer-Skripte.
   Ohne aktives JavaScript bleibt alles sichtbar, deshalb haengt jede
   versteckende Regel an der Klasse eo-js. */

html.eo-js .eo-w {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(24px);
  will-change: opacity, filter, transform;
}
html.eo-js .eo-w.eo-an {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity .55s cubic-bezier(.44,0,.56,1),
              filter .55s cubic-bezier(.44,0,.56,1),
              transform .55s cubic-bezier(.44,0,.56,1);
}

html.eo-js [data-eo-a] {
  opacity: 0;
  will-change: opacity, transform;
}
html.eo-js [data-eo-a].eo-an {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.44,0,.56,1),
              transform .6s cubic-bezier(.44,0,.56,1);
}

@media (prefers-reduced-motion: reduce) {
  html.eo-js .eo-w,
  html.eo-js [data-eo-a] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* FAQ-Akkordeon */
[data-eo-faq] .eo-desc {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  padding: 0 !important;
  border-width: 0 !important;
  --border-bottom-width: 0px;
  --border-left-width: 0px;
  --border-right-width: 0px;
  --border-top-width: 0px;
  transition: grid-template-rows .32s ease, opacity .25s ease, padding .32s ease;
}
[data-eo-faq] .eo-desc > * {
  min-height: 0;
  overflow: hidden;
}
[data-eo-faq].eo-auf .eo-desc {
  grid-template-rows: 1fr;
  opacity: 1;
  padding: 20px !important;
  border-width: 1px !important;
  --border-bottom-width: 1px;
  --border-left-width: 1px;
  --border-right-width: 1px;
  --border-top-width: 1px;
}
html:not(.eo-js) [data-eo-faq] .eo-desc {
  grid-template-rows: 1fr;
  opacity: 1;
  padding: 20px !important;
  border-width: 1px !important;
}
[data-eo-faq] { cursor: pointer; }
html.eo-js [data-eo-faq]:not(.eo-auf) { gap: 0 !important; row-gap: 0 !important; }
[data-eo-faq] svg { transition: transform .3s ease; }
[data-eo-faq].eo-auf svg { transform: rotate(180deg) !important; }

/* Betroffenheitspruefung */
.eo-check-erg {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .3s ease;
}
.eo-check-erg.eo-auf {
  opacity: 1;
  max-height: 600px;
  pointer-events: auto;
}

/* Rueckmeldung der Kontaktformulare */
.eo-formular-hinweis:empty { display: none; }
.eo-formular-hinweis {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.eo-formular-hinweis[data-art="ok"]     { color: #15803d; }
.eo-formular-hinweis[data-art="fehler"] { color: #b91c1c; }
.eo-formular-hinweis[data-art="laeuft"] { color: #6c7179; }
.eo-dunkel .eo-formular-hinweis[data-art="ok"]     { color: #4ade80; }
.eo-dunkel .eo-formular-hinweis[data-art="fehler"] { color: #fca5a5; }
.eo-dunkel .eo-formular-hinweis[data-art="laeuft"] { color: rgba(255,255,255,.6); }

/* Honigtopf gegen automatisierte Eintraege */
.eo-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Mobiles Menue.
   Abweichung vom Framer-Original, dort war das Menue nicht bedienbar:
   die Navigationslinks standen auch zugeklappt im Kopfbereich und
   wurden nur vom Beschnitt bei 90 Pixeln halb verdeckt. */
html.eo-js nav[data-eo-menue] {
  transition: height .28s ease;
}
html.eo-js nav[data-eo-menue="zu"] [data-eo-navpunkt] {
  display: none !important;
}
html.eo-js nav[data-eo-menue="auf"] {
  height: auto !important;
  min-height: 90px;
  overflow: visible !important;
  padding-bottom: 22px;
}
html.eo-js nav[data-eo-menue="auf"] [data-eo-navpunkt] {
  display: block !important;
}
/* Logo und Schalter liegen absolut im Kopfbereich, der erste
   Navigationspunkt muss darunter beginnen statt dahinter. */
html.eo-js nav[data-eo-menue="auf"] [data-eo-navpunkt="erster"] {
  margin-top: 52px;
}
html.eo-js nav[data-eo-menue] [data-framer-name="Menu"] {
  cursor: pointer;
}
html.eo-js nav[data-eo-menue] [data-framer-name="Menu"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Readiness-Check: In der Spaltendarstellung auf schmalen Bildschirmen
   wird die Flex-Basis zur Hoehe. Die Knoepfe sollen sich nach ihrem
   Inhalt richten, wie in der Zeilendarstellung. */
@media (max-width: 768px) {
  [data-eo-check] .ppwr-answer-row { flex-direction: column; }
  [data-eo-check] .ppwr-answer-row button {
    flex: 0 0 auto !important;
    width: 100%;
  }
}

/* ---- Darstellung auf Handy und Tablet ---- */
/* Framer gibt vielen Kaesten feste Breiten mit. Auf schmalen
   Bildschirmen ragen sie aus dem Bild und werden abgeschnitten. */
@media (max-width: 1199px) {
  html [class*="framer-"] { max-width: 100% !important; }
}

/* Mehrspaltige Raster: auf dem Handy untereinander. */
@media (max-width: 809px) {
html body .framer-1545rrc,
html body .framer-183qfos,
html body .framer-1j1gth1,
html body .framer-1jf07g1,
html body .framer-1r9a3w8,
html body .framer-1sfmhlx,
html body .framer-1t8dz16,
html body .framer-az4jy3,
html body .framer-fxsmen,
html body .framer-llr7jk,
html body .framer-p6hrx4,
html body .framer-qipg4s {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  grid-template-rows: auto !important;
  grid-auto-rows: auto !important;
}
}

/* Auf dem Tablet zwei statt drei oder vier Spalten. */
@media (min-width: 810px) and (max-width: 1199px) {
html body .framer-1545rrc,
html body .framer-183qfos,
html body .framer-1j1gth1,
html body .framer-1jf07g1,
html body .framer-1sfmhlx,
html body .framer-az4jy3,
html body .framer-fxsmen,
html body .framer-llr7jk,
html body .framer-p6hrx4,
html body .framer-qipg4s {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: auto !important;
  grid-auto-rows: auto !important;
}
}

/* Bilder und Videos nie breiter als ihr Kasten. */
@media (max-width: 1199px) {
  html img, html video, html svg { max-width: 100%; height: auto; }
}

/* ---- Datenschutzhinweis unter den Formularen ---- */
.eo-datenschutzhinweis {
  margin: 14px 0 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}
.eo-datenschutzhinweis a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.eo-datenschutzhinweis a:hover { color: rgb(200, 162, 74); }

/* ---- Feinheiten auf schmalen Bildschirmen ---- */
@media (max-width: 809px) {
  /* Framer stellt Hinweismarken nebeneinander und verbietet den
     Umbruch. Auf dem Handy passen sie so nicht nebeneinander. */
  html .framer-1t23jq9,
  html .framer-1b6uhh4,
  html [class*="framer-"][style*="flex-direction: row"] {
    flex-wrap: wrap !important;
  }

  /* Knopfbeschriftungen umbrechen statt abschneiden. */
  html a[class*="framer-"],
  html button[class*="framer-"],
  html a[class*="framer-"] *,
  html button[class*="framer-"] * {
    white-space: normal !important;
  }
  html a[class*="framer-"],
  html button[class*="framer-"] {
    height: auto !important;
    min-height: 0 !important;
  }

  /* Der eigene Datenschutzhinweis nimmt die volle Formularbreite. */
  html .eo-datenschutzhinweis { width: 100% !important; }
}

/* ---- Hinweisleiste zu Cookies und Datenschutz ---- */
.eo-hinweisleiste {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 20px;
  background: rgb(15, 23, 42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.26);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: eo-hinweis-auf .34s ease both;
}
@keyframes eo-hinweis-auf {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.eo-hinweisleiste[data-zu] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .34s ease, transform .34s ease;
}
.eo-hinweisleiste-text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.eo-hinweisleiste-text strong {
  color: #fff;
  font-weight: 700;
}
.eo-hinweisleiste-text a {
  color: rgb(200, 162, 74);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.eo-hinweisleiste-knopf {
  flex: 0 0 auto;
  padding: 11px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: rgb(15, 23, 42);
  background: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity .2s ease;
}
.eo-hinweisleiste-knopf:hover { opacity: .86; }
.eo-hinweisleiste-knopf:focus-visible {
  outline: 2px solid rgb(200, 162, 74);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .eo-hinweisleiste {
    left: 10px;
    right: 10px;
    bottom: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .eo-hinweisleiste-knopf { width: 100%; padding: 13px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .eo-hinweisleiste { animation: none; }
  .eo-hinweisleiste[data-zu] { transition: none; }
}
