/* Schriften und alles, was früher Bootstrap-JS, Fancybox und Cookieman erledigt haben. */

@font-face { font-family: HoS; src: url(/schriften/HandOfSeanDemo.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Lato; src: url(/schriften/lato-v16-latin-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url(/schriften/lato-v16-latin-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Lato; src: url(/schriften/lato-v16-latin-700italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: Lato; src: url(/schriften/lato-v16-latin-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: FontAwesome; src: url(/schriften/fontawesome-webfont.woff2) format("woff2"); font-display: block; }

:root { --gruen: #008f71; --gruen-hell: #3eb876; --lila: #823e8d; }

[hidden] { display: none !important; }
[id] { scroll-margin-top: 100px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.wie-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.wie-link:hover { text-decoration: underline; }

/* Navigation */
#logo.klein { height: 50px; }

/* Umklappkarten auch mit der Tastatur */
.card-flip:focus-within .card-front { transform: rotateY(-180deg); }
.card-flip:focus-within .card-back { transform: rotateY(0deg); }

/* Video: Vorschaubild, YouTube erst nach Klick */
#video { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; }
#video img { width: 100%; height: 100%; object-fit: cover; }
.video-knopf { position: absolute; inset: 0; margin: auto; width: 84px; height: 58px; border-radius: 14px; background: var(--gruen); transition: transform 0.2s; }
.video-knopf::after { content: ""; position: absolute; inset: 0; margin: auto; left: 6px; width: 0; border: solid transparent; border-width: 13px 0 13px 22px; border-left-color: #fff; height: 0; }
#video:hover .video-knopf, #video:focus-visible .video-knopf { transform: scale(1.12); }
.video-hinweis { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); max-width: 92%; padding: 0.2em 0.9em; border-radius: 1em; background: rgb(0 0 0 / 65%); color: #fff; font-size: 0.8rem; line-height: 1.6; }

/* Fenster: Stellenanzeigen und Zielgruppen */
.fenster { width: min(1100px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; border-radius: 6px; background: #eee; color: inherit; box-shadow: 0 10px 50px rgb(0 0 0 / 40%); }
.fenster::backdrop { background: rgb(30 30 30 / 85%); }
.fenster[open] { display: flex; flex-direction: column; margin: auto; }
.fenster iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.fenster-leiste { display: flex; justify-content: flex-end; align-items: center; gap: 1.2rem; padding: 0.3rem 1rem; background: var(--gruen); }
.fenster-leiste a, .fenster-leiste button { padding: 0.3rem 0; border: 0; background: none; color: #fff; font-size: 0.95rem; line-height: 1.6; }
.fenster-leiste a:hover, .fenster-leiste button:hover { text-decoration: underline; }
.fenster .fenster-zu { width: 2.2rem; height: 2.2rem; padding: 0; border: 0; background: none; font-size: 2rem; line-height: 1; text-decoration: none; }
.fenster-text[open] { display: block; height: fit-content; max-height: 94vh; overflow: auto; padding: 2.5rem; background: #eee url(/bilder/fenster-hintergrund.svg) center / cover; }
.fenster-text .fenster-zu { position: sticky; top: 0; float: right; border-radius: 50%; background: var(--gruen); color: #fff; }
body:has(dialog[open]) { overflow: hidden; }

/* Zitate: ohne JavaScript untereinander, mit JavaScript nur das aktive, Höhe nach dessen Text */
.zitate { position: relative; padding: 0 3rem; }
.zitat { display: flex; gap: 2.5rem; max-width: 950px; margin: 0 auto 1.5rem; }
.zitat img { flex: none; width: 100px; height: 100px; padding: 0.25rem; border-radius: 50%; background: #fff; object-fit: cover; }
.zitat blockquote { margin: 0 0 1rem; font-size: 1.25rem; font-style: italic; font-weight: 300; }
.zitat blockquote::before { content: "\f10d"; margin-right: 1rem; font: normal 1em FontAwesome; }
.zitat figcaption { color: #fff; font-size: 0.9rem; font-style: italic; }
.zitat figcaption::before { content: "— "; }
.zitate.bereit .zitat:not(.aktiv) { display: none; }
.zitate.bereit .zitat { animation: einblenden 0.6s; }
@keyframes einblenden { from { opacity: 0; } }
/* Pfeile auf Höhe des Fotos: bleiben beim Blättern unter dem Mauszeiger */
.zitate-pfeil { position: absolute; top: 0; height: 100px; width: 3rem; border: 0; background: none; color: #fff; font: 2.2rem FontAwesome; opacity: 0.7; }
.zitate-pfeil:hover, .zitate-pfeil:focus-visible { opacity: 1; }
.zitate-pfeil.zurueck { left: 0; }
.zitate-pfeil.zurueck::before { content: "\f104"; }
.zitate-pfeil.weiter { right: 0; }
.zitate-pfeil.weiter::before { content: "\f105"; }
.zitate-punkte { display: flex; justify-content: center; }
.zitate-punkte button { width: 36px; height: 24px; padding: 10px 3px; border: 0; background: #fff content-box; }
.zitate-punkte button[aria-current="true"] { background-color: var(--lila); }

/* Häufige Fragen und Einrichtungen: <details> */
summary { display: block; position: relative; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.faq { padding-top: 1.5rem; }
.faq details { border: 1px solid rgb(0 0 0 / 12.5%); background: #fff; }
.faq details + details { border-top: 0; }
.faq summary { padding: 1.1rem 3.5rem 1.1rem 2rem; background: rgb(0 0 0 / 3%); }
.faq summary::after { content: "\f106"; position: absolute; top: 1.1rem; right: 2rem; font-family: FontAwesome; transition: transform 0.2s; }
.faq details[open] > summary::after { transform: rotate(180deg); }
.faq-bereich > summary { font-size: 1.1rem; font-weight: 900; }
.faq-inhalt, .faq-antwort { padding: 1.25rem; }
.einrichtungen summary { margin-bottom: 0.5rem; padding: 0.375rem 2.5rem 0.375rem 0.75rem; border-radius: 0.25rem; background: #28a745; color: #fff; }
.einrichtungen summary:hover { background: #218838; }
.einrichtungen summary::after { content: "\f067"; position: absolute; right: 0.75rem; font-family: FontAwesome; }
.einrichtungen details[open] > summary::after { content: "\f068"; }
.einrichtung { padding-left: 1rem; }

/* Karte */
#karte { height: 60vh; z-index: 0; }
.leaflet-container { font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif; }
.karte-stelle > * { display: block; }
.karte-stelle strong { font-size: 1.2em; }
.karte-stelle .btn { display: inline-block; margin-top: 10px; }
.karte-stelle + .karte-stelle { margin-top: 14px; padding-top: 14px; border-top: 1px solid #ddd; }
.leaflet-container .karte-stelle .btn { color: #28a745; }
.leaflet-container .karte-stelle .btn:hover { color: #fff; }

/* Einwilligung */
#einwilligung { position: fixed; z-index: 1040; right: 1rem; bottom: 1rem; width: min(460px, calc(100vw - 2rem)); padding: 1.2rem 1.4rem; border-radius: 6px; background: #fff; box-shadow: 0 4px 30px rgb(0 0 0 / 35%); font-size: 0.9rem; line-height: 1.5; }
#einwilligung h2 { margin: 0 0 0.5rem; font: 900 1.1rem/1.5 Lato, sans-serif; }
.einwilligung-knoepfe { display: flex; gap: 0.8rem; margin: 0; }
.einwilligung-knoepfe .btn { flex: 1; }

@media (max-width: 767px) {
  .zitate { padding: 0 1rem; }
  .zitat { display: block; text-align: center; }
  .zitat img { margin-bottom: 1rem; }
  .zitat blockquote { font-size: 1.1rem; }
  .zitate-pfeil { display: none; }
  .video-hinweis { bottom: 10px; width: max-content; }
  .video-knopf { width: 60px; height: 42px; }
  .faq summary { padding-left: 1.2rem; }
  .fenster { width: 100vw; height: 100dvh; border-radius: 0; }
  .fenster-text[open] { max-height: 100dvh; padding: 1.2rem; }
}
