/* Gemeinsame Bausteine der Bereichsseiten (Academy, Consulting), auf site.css aufbauend:
   der Film-Einstieg (film-einstieg.js), Fragen, Förder-Kästen, Auswahlfeld, gelbe Platzhalter.
   Die Farben kommen aus tokens.css über data-site (Nacht-Ton --s-night, Akzent auf Dunkel --s-on-dark, Akzent --s-accent). */

.bereich { background: var(--s-night); }
.bereich .umwelt { background: var(--s-night); }
.bereich .umwelt::before { background: radial-gradient(36% 30% at 78% 82%, rgba(233,182,107,.08), transparent 70%); }
.bw { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }
.bw-schmal { max-width: 860px; }

/* Die Kopfzeile ist die gemeinsame Leiste aller vier Seiten: kopf.css und kopf.js */

/* ---------- Der Film-Einstieg ---------- */
.fe { position: relative; color: var(--ivory); background: var(--s-night); }
.fe-buehne { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
html.film-scrub .fe { height: 400vh; }
html.film-scrub .fe-buehne { position: sticky; top: 0; min-height: 0; }
.fe-bild, .fe-film { position: absolute; inset: 0; width: 100%; height: 100%; }
.fe-bild img, img.fe-bild, .fe-film { width: 100%; height: 100%; object-fit: cover; }
.fe-bild-start { opacity: 0; }
html.film-scrub .fe-bild-start { opacity: 1; }
html.film-scrub .fe-bild-schluss { opacity: 0; }
.fe-film { opacity: 0; transition: opacity .6s var(--ease); transform: translateZ(0); }
html.film-scrub.film-bereit .fe-film { opacity: 1; }
.fe-schleier { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,10,16,.62) 0%, rgba(8,10,16,.28) 34%, rgba(8,10,16,0) 58%), radial-gradient(120% 90% at 50% 45%, rgba(8,10,16,0) 40%, rgba(8,10,16,.5) 100%); }
.fe .ring { right: 24px; bottom: 24px; }
html.film-laedt .fe .ring { opacity: 1; }

.fe-band { display: none; }
html.film-scrub .fe-band { display: flex; flex-direction: column; align-items: center; position: absolute; left: 0; right: 0; top: calc(var(--kopf-h, 64px) + 9vh); padding-inline: var(--gutter); text-align: center; pointer-events: none; text-shadow: var(--tshadow); }
.fe-mono { font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--s-on-dark); margin-bottom: 16px; }
.fe-gross { font: 500 clamp(32px, 5.2vw, 78px)/1.05 var(--f-title); letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; }
/* Band 1: die Wörter sinken herab */
.fe-sinkt .w { display: inline-block; opacity: clamp(0, (var(--k, 1) - var(--th, 0)) * 3, 1); transform: translateY(calc((1 - clamp(0, (var(--k, 1) - var(--th, 0)) * 3, 1)) * -26px)); }
/* Band 2: aus der Tiefe */
.fe-naht .fe-gross { display: inline-block; opacity: clamp(0, var(--k, 1) * 2, 1); transform: scale(calc(.82 + .18 * var(--k, 1))); }

.fe-settle { position: absolute; left: 0; right: 0; top: calc(var(--kopf-h, 64px) + clamp(28px, 8vh, 96px)); padding-inline: var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; text-shadow: 0 1px 2px rgba(5,8,16,.6), 0 4px 24px rgba(5,8,16,.45); }
.fe-logo { height: 26px; width: auto; }
.fe-settle h1 { margin-top: 20px; font: 500 clamp(30px, 4.4vw, 62px)/1.06 var(--f-title); letter-spacing: -.02em; max-width: 17ch; }
.fe-settle .whisper { margin-top: 16px; color: var(--ivory); opacity: .9; max-width: 42ch; }
.fe-settle .pills { margin-top: 26px; }
.fe-settle .pill { text-shadow: none; }
.fe .pill-farbe { background: var(--s-on-dark); color: var(--c-ink); }
.fe .pill-farbe:hover { background: var(--ivory); color: var(--c-ink); }
.fe .pill-line { color: var(--ivory); }
html.film-scrub .fe-settle > * { opacity: clamp(0, (var(--k, 1) - var(--th, 0)) * 4, 1); transform: translateY(calc((1 - clamp(0, (var(--k, 1) - var(--th, 0)) * 4, 1)) * 22px)); }
.fe-settle .fe-logo { --th: 0; } .fe-settle h1 { --th: .08; } .fe-settle .whisper { --th: .4; } .fe-settle .pills { --th: .56; }
html.film-scrub .fe-settle { pointer-events: var(--klick, auto); }
html.film-scrub .fe-settle:focus-within { --k: 1 !important; pointer-events: auto; }
.fe-pfeil { display: none; }
html.film-scrub .fe-pfeil { display: block; position: absolute; left: 50%; bottom: max(24px, 5vh); width: 10px; height: 10px; margin-left: -5px; border-right: 1.5px solid var(--ivory); border-bottom: 1.5px solid var(--ivory); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { html.film-scrub .fe-pfeil { animation: nicken 2.4s var(--ease-2) infinite; } }

/* ---------- Überschriften der hellen Abschnitte ---------- */
.b-kick { color: var(--accent-ink); }
.b-titel { margin-top: 12px; font: 500 var(--fs-h2)/1.06 var(--f-title); letter-spacing: -.02em; }

/* ---------- Förder-Kästen ---------- */
.stellen { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stellen li { background: #fff; border-radius: var(--r-kachel); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.stellen h3 { font: 600 17px/1.3 var(--f-text); }
.stellen p { color: var(--ink-2); font-size: 15px; }
.stellen a { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: var(--s-accent); font-weight: 500; }
.stellen a::after { content: " ↗"; white-space: pre; }
.ehrlich { margin-top: 24px; }
.stand { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* ---------- Fragen ---------- */
.faq { margin-top: 32px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font: 500 clamp(17px, 1.5vw, 20px)/1.3 var(--f-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 18px; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Formular ---------- */
.field select { font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-media); height: 52px; padding: 0 12px; width: 100%; }
.field select:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.field.invalid select { border: 2px solid var(--error); }
.bereich .pill-voll { background: var(--s-accent); color: #fff; }
.bereich .pill-voll:hover { background: var(--s-accent-hover); }

.bereich .ph { background: #FFF1A8; color: #15171C; padding: 0 5px; border-radius: 4px; font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

@media (max-width: 767px) {
  .stellen { grid-template-columns: 1fr; }
  .fe-settle .pills { flex-direction: column; align-self: stretch; gap: 12px; }
  .fe-settle .pills .pill { width: 100%; }
}
@media (max-height: 640px) and (min-width: 768px) {
  .fe-settle h1 { font-size: clamp(26px, 3.4vw, 44px); }
  .fe-settle .whisper { font-size: 16px; }
}
