/* 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%;
  }
}
