/* ==========================================================================
   Kerkemeier Karriere — leichte Fassung 2 (Kopfzeile in zwei Reihen, Hero mit Infoleiste)
   ========================================================================== */

/* Magra liegt auf dem eigenen Server: kein Umweg über Google, keine IP-Weitergabe,
   kein blockierender Fremdaufruf. Nur der Latin-Schnitt — er deckt Umlaute, „“ und — ab. */
@font-face {
  font-family: 'Magra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/magra-400-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Magra';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/magra-700-latin.woff2) format('woff2');
}

/* Arial, auf Magras Maße gebracht: solange Magra lädt, umbricht die Überschrift schon
   genau wie später — nichts springt (Werte aus den Fontdateien gemessen). */
@font-face {
  font-family: 'Magra Ersatz';
  font-weight: 400;
  src: local('Arial'), local('ArialMT');
  size-adjust: 91.8%;
  ascent-override: 105.4%;
  descent-override: 26.9%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Magra Ersatz';
  font-weight: 700;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 87.1%;
  ascent-override: 111.1%;
  descent-override: 28.4%;
  line-gap-override: 0%;
}

/* Tokens — siehe DESIGNSYSTEM.md. Keine losen Werte im Stylesheet. */
:root {
  --gruen-tief:   #0d3226;
  --gruen:        #114232;
  --gruen-hell:   #1a664e;
  --gruen-akzent: #2e9a74;
  --gruen-linie:  rgba(46,154,116,.55);
  --rot:          #c01414;
  --rot-dunkel:   #9d0f0f;
  --weiss:        #ffffff;
  --tinte:        #1c2b25;
  --tinte-leise:  #3d5249;
  --tinte-blass:  #8a9a93;
  --flaeche:      #eaf0ec;
  --flaeche-tief: #dde7e1;

  --schrift-text:  Arial, Helvetica, Verdana, sans-serif;
  --schrift-titel: 'Magra', 'Magra Ersatz', Arial, Helvetica, sans-serif;

  --t-display:  clamp(38px, 5.4vw, 84px);
  --t-h2:       clamp(30px, 3vw, 46px);
  --t-h3:       clamp(20px, 1.7vw, 26px);
  --t-aussage:  clamp(24px, 2.5vw, 40px);
  --t-aussage-gross: clamp(26px, 2.9vw, 50px);
  --t-gross:    clamp(17px, 1.35vw, 21px);
  --t-text:     16px;
  --t-klein:    14px;
  --t-mini:     13px;

  --s1: 6px;  --s2: 10px; --s3: 14px; --s4: 20px; --s5: 28px;
  --s6: 40px; --s7: 56px; --s8: 80px; --s9: clamp(64px, 7vw, 110px);

  --r-klein: 4px;
  --r:       6px;
  --r-gross: 10px;
  --r-pille: 100px;

  --zeit-kurz:   .15s ease;
  --zeit-mittel: .35s ease;
  --zeit-lang:   .7s ease;
  --kurve:       cubic-bezier(.2,.7,.2,1);

  --rand: clamp(20px, 3.2vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Ankersprünge dürfen nicht unter der klebenden Kopfzeile landen */
[id] { scroll-margin-top: var(--kopf-h, 128px); }

body {
  margin: 0;
  font-family: var(--schrift-text);
  color: var(--weiss);
  background: var(--gruen-tief);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Kopfzeile -------------------------------------------------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--gruen-tief);
}

/* obere Reihe: Kontaktdaten links, Karriere-Button rechts */
.kopf__leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px var(--rand);
}

.kopf__infos { display: flex; flex-wrap: wrap; gap: var(--s1) 36px; font-size: var(--t-mini); }
.kopf__infos a, .kopf__infos span { opacity: .8; }
.kopf__infos a { transition: opacity var(--zeit-kurz); }
.kopf__infos a:hover { opacity: 1; }

/* rechts oben: soziale Netzwerke statt des früheren Karriere-Knopfs */
.kopf__sozial { display: flex; align-items: center; gap: var(--s2); }

.kopf__sozial a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-klein);
  opacity: .78;
  transition: opacity var(--zeit-kurz), background-color var(--zeit-kurz);
}

.kopf__sozial a:hover { opacity: 1; background: var(--gruen-hell); }
.kopf__sozial svg { width: 18px; height: 18px; display: block; }

/* Menüknopf — nur auf schmalen Bildschirmen sichtbar */
.kopf__schalter {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  margin-right: -11px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.kopf__schalter span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--weiss);
  border-radius: 2px;
  transition: transform .3s var(--kurve), opacity .2s ease;
}

.kopf__schalter[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kopf__schalter[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kopf__schalter[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Ausklappmenü */
.menue {
  display: none;
  flex-direction: column;
  padding: var(--s2) var(--rand) var(--s5);
  border-top: 1px solid rgba(255,255,255,.14);
  background: var(--gruen-tief);
}

.menue[hidden] { display: none; }

.menue a {
  padding: 15px 0;
  font-size: 19px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.menue__fuss {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s4);
  font-size: var(--t-klein);
}

.menue__fuss a { padding: 10px 0; border: 0; font-size: var(--t-text); }
.menue__tel { display: flex; align-items: center; gap: var(--s2); font-weight: bold; }
.menue__tel svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.menue__ort { opacity: .75; }

/* untere Reihe: Logo links, Navigation rechts */
.kopf__haupt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--rand);
  border-top: 1px solid rgba(255,255,255,.14);
}

.kopf__marke {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gruen-akzent);
  opacity: 0;
  z-index: 1;
  transition: left .3s ease, width .3s ease, opacity .2s ease;
  pointer-events: none;
}

.kopf__marke.sichtbar { opacity: 1; }

.kopf__logo img { height: 50px; width: auto; }

.kopf__nav { display: flex; gap: 12px; margin-right: -18px; }

.kopf__nav a {
  font-size: 15px;
  letter-spacing: .01em;
  padding: 18px 18px;
  opacity: .88;
  transition: opacity var(--zeit-kurz);
}

.kopf__nav a:hover,
.kopf__nav a:focus-visible { opacity: 1; }

/* ---------- Hero ------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2400 / 1010;
  min-height: 620px;
  max-height: calc(100svh - var(--kopf-h, 125px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* mehrere Hero-Bilder, die sich langsam ablösen */
.hero__bilder { position: absolute; inset: 0; }

.hero__bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  opacity: 0;
  /* Erst wenn das Bild ausgeblendet ist, springt der Zoom unsichtbar zurück */
  transition: opacity 2s ease, transform 0s linear 2s;
}

.hero__bild.an { opacity: 1; }

/* Das sichtbare Bild rückt langsam näher, solange es steht (setzt das Skript) */
.hero__bild.nah {
  transform: scale(1.06);
  transition: opacity 2s ease, transform 9s linear;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bild, .hero__bild.nah { transition: none; transform: none; }
}

.hero__schleier {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,30,22,.4) 0%, rgba(8,30,22,0) 30%),
    linear-gradient(0deg, rgba(8,30,22,.88) 0%, rgba(8,30,22,.55) 34%, rgba(8,30,22,0) 66%);
}

.hero__inhalt {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: 0 var(--rand) clamp(32px, 5vh, 56px);
}

.hero h1 {
  margin: 0 0 clamp(22px, 3.4vh, 36px);
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: 1.04;
  letter-spacing: -.015em;
}

/* eine Reihe unten: zwei Zahlen, Text, großer Button */
.hero__reihe {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 3.4vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.28);
}

.zahl { align-self: start; }

.zahl b {
  display: block;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  margin-bottom: 6px;
  white-space: nowrap;
}

.zahl span { display: block; font-size: var(--t-klein); line-height: 1.4; opacity: .82; max-width: 190px; }

.hero__text {
  margin: 0;
  max-width: 34em;
  font-size: var(--t-gross);
  line-height: 1.55;
  opacity: .94;
}

.btn {
  display: inline-block;
  flex: none;
  font-family: var(--schrift-text);
  line-height: 1.3;
  background: var(--rot);
  color: var(--weiss);
  white-space: nowrap;
  transition: background-color .15s ease;
}

.btn:hover { background: var(--rot-dunkel); }

.btn--gross { font-size: 19px; padding: 26px 48px; border-radius: 6px; }

/* ---------- Vorteile: Bilder wechseln, Text wird beim Scrollen Wort für Wort hell ---------- */

.vorteile {
  height: 175vh;
  background: var(--weiss);
  color: var(--gruen);
}

/* Der Text gibt die Höhe vor, das Bild zieht genau mit — keine tote Fläche */
.vorteile__fix {
  position: sticky;
  top: var(--kopf-h, 128px);
  height: calc(100vh - var(--kopf-h, 128px));
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  align-content: center;
  gap: clamp(36px, 4.5vw, 72px);
  padding: var(--s4) var(--rand);
}

.nur-leser {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Bildrahmen füllt seine Hälfte, Beschriftung ohne Kasten auf einem Verlauf */
.rahmen {
  position: relative;
  align-self: stretch;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--gruen-tief);
}

.folie {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity var(--zeit-lang);
}

.folie.an { opacity: 1; }

.folie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

/* Verlauf statt Textkasten */
.folie::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(8,30,22,0) 0%, rgba(8,30,22,.58) 55%, rgba(8,30,22,.88) 100%);
  pointer-events: none;
}

.folie figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--s6) var(--s4) var(--s4);
  font-size: var(--t-text);
  line-height: 1.4;
  color: var(--weiss);
}

.vorteile__text {
  align-self: center;
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: var(--t-aussage-gross);
  line-height: 1.34;
  letter-spacing: -.005em;
}

.vorteile__text span span {
  opacity: .26;
  transition: opacity .35s ease;
}

.vorteile__text span span.an { opacity: 1; }

/* ---------- Bereiche: ein Bild nach dem anderen, Quadrat und Karte wechseln mit ---------- */

.bereiche {
  height: 205vh;
  background: var(--weiss);
}

.bereiche__fix {
  position: sticky;
  top: var(--kopf-h, 128px);
  height: calc(100vh - var(--kopf-h, 128px));
  padding: 28px var(--rand);
}

.buehne {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--gruen-tief);
}

.bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .9s ease, transform 1.6s ease;
}

.bild.an { opacity: 1; transform: scale(1); }

.quadrat {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(210px, 17vw, 270px);
  display: grid;
  background: var(--gruen);
}

.quadrat .schicht {
  grid-area: 1 / 1;
  margin: 0;
  padding: 20px 22px 22px;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.karte {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(440px, 46vw, 700px);
  display: grid;
  background: var(--weiss);
  color: var(--tinte);
  /* gleiche Rundung wie die Bühne — sonst blitzt das Grün an der Ecke als Kantenrest durch */
  border-bottom-left-radius: var(--r);
}

.karte .schicht { grid-area: 1 / 1; padding: 30px 34px 34px; }

.karte p { margin: 0 0 18px; font-size: var(--t-gross); line-height: 1.5; }

.karte a {
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: bold;
  color: var(--rot);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.karte a:hover { color: var(--rot-dunkel); }

/* Wechsel: das Alte fährt nach oben weg, das Neue kommt von unten */
.schicht {
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}

.schicht[data-stand="an"]   { opacity: 1; transform: none; transition-delay: .25s; }
.schicht[data-stand="vor"]  { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.schicht[data-stand="nach"] { opacity: 0; transform: translateY(24px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .bild, .schicht { transition: none; transform: none; }
}

/* ---------- Stellen: Bildkarten wie die Berufswahl der Ausbildung ---------- */

.stellen {
  padding: 72px 0 var(--s8);
  background: var(--weiss);
  color: var(--gruen);
}

/* Überschrift und Beisatz stehen untereinander auf derselben Flucht */
.stellen__kopf { padding: 0 var(--rand) var(--s5); }

.stellen__kopf h2 {
  margin: 0 0 var(--s3);
  max-width: 14em;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.stellen__kopf p {
  margin: 0;
  max-width: 34em;
  font-size: var(--t-gross);
  line-height: 1.5;
  color: var(--tinte-leise);
}

/* Spur aus Bildkarten (Stellen hier, Berufswahl auf ausbildung.html): scrollt waagrecht
   (Wischen, Trackpad; auf der Ausbildungsseite auch Ziehen mit der Maus), vier Karten passen
   breit hinein.
   Der Innenabstand oben und unten lässt Platz für den Fokusring. */
.berufe__spur {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--s4)) / 4);
  column-gap: var(--s4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--rand);
  padding: 4px var(--rand);
  scrollbar-width: none;
}

.berufe__spur::-webkit-scrollbar { display: none; }

/* Ziehen mit der Maus (Skript): kein Einrasten und keine Textauswahl, solange die Hand greift;
   „rastet“ hält das Einrasten aus, bis die Reihe an der nächsten Karte steht */
.berufe__spur.zieht,
.berufe__spur.rastet { scroll-snap-type: none; }
.berufe__spur.zieht { user-select: none; }
.berufe__spur.zieht,
.berufe__spur.zieht .berufskarte { cursor: grabbing; }

@media (hover: hover) and (pointer: fine) {
  .berufe__spur { cursor: grab; }
}

@media (hover: hover) {
  /* Beim Ziehen bleibt alles ruhig */
  .zieht .berufskarte:hover img { transform: scale(1) translateZ(0); }
  .zieht .berufskarte:hover .berufskarte__zeiger { transform: none; }
}

.berufskarte {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 2 / 3;
  padding: 0;
  font: inherit;
  text-align: left;
  color: var(--weiss);
  background: var(--gruen-tief);
  border: 0;
  border-radius: var(--r-gross);
  overflow: hidden;
  scroll-snap-align: start;
  -webkit-user-drag: none;
}

.berufskarte[hidden] { display: none; }

.berufskarte img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(1) translateZ(0);
  backface-visibility: hidden;
  transition: transform 1.4s cubic-bezier(.4, 0, .2, 1);
}

.berufskarte::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,30,22,0) 30%, rgba(8,30,22,.6) 58%, rgba(8,30,22,.94) 100%);
  pointer-events: none;
}

.berufskarte__text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s1);
  padding: var(--s4) 56px var(--s4) var(--s4);
}

/* Was wir bezahlen (nur Lagerberufe): grünes Band oben über die volle Kartenbreite,
   heller als der Abschnitt, damit die Karte ihre Form behält */
.berufskarte__band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: var(--s3) var(--s4);
  font-size: var(--t-klein);
  font-weight: bold;
  line-height: 1.35;
  color: var(--weiss);
  background: var(--gruen-hell);
}

.berufskarte__text b {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.15;
}

.berufskarte__text em { font-style: normal; font-weight: 400; opacity: .75; }
.berufskarte__text span { font-size: var(--t-klein); line-height: 1.45; color: rgba(255,255,255,.85); }

/* Zeiger: nur der weiße Pfeil schräg nach oben, ohne Kreis, unten rechts. Er ist das einzige
   Zeichen auf der Karte und bleibt immer dieselbe Figur: beim Überfahren rückt er nur ein Stück
   in seine Richtung. */
.berufskarte__zeiger {
  position: absolute;
  right: var(--s4);
  bottom: var(--s4);
  z-index: 1;
  display: block;
  line-height: 0;
  transition: transform var(--zeit-mittel) var(--kurve);
}

.berufskarte__zeiger svg { width: 24px; height: 24px; fill: var(--weiss); }

.berufskarte:focus-visible { outline: 3px solid var(--gruen-akzent); outline-offset: -3px; }
.berufskarte:focus-visible .berufskarte__zeiger { transform: translate(4px, -4px); }

@media (hover: hover) {
  .berufskarte:hover img { transform: scale(1.05) translateZ(0); }
  .berufskarte:hover .berufskarte__zeiger { transform: translate(4px, -4px); }
}

@media (prefers-reduced-motion: reduce) {
  .berufskarte img, .berufskarte__zeiger { transition: none; }
  .berufskarte:hover img { transform: none; }
}

/* Schmaler wird gewischt: zweieinhalb Karten, auf dem Handy eine mit Anschnitt */
@media (max-width: 1180px) {
  .berufe__spur { grid-auto-columns: calc((100% - 2 * var(--s4)) / 2.6); }
}

@media (max-width: 860px) {
  .berufe__spur { grid-auto-columns: 78%; column-gap: var(--s3); }
}

@media (min-width: 600px) and (max-width: 860px) {
  .berufe__spur { grid-auto-columns: 44%; }
}

/* ---------- Werte & Kultur: Mosaik aus gleich großen Feldern ---------- */

.mosaik {
  padding: var(--s9) var(--rand) var(--s8);
  background: var(--weiss);
  color: var(--gruen);
}

/* Gleiche Flucht und gleiche Größen wie der Kopf der Stellen-Sektion */
.mosaik__kopf { padding-bottom: var(--s6); }

.mosaik__kopf h2 {
  margin: 0 0 var(--s3);
  max-width: 14em;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -.01em;
}

/* Magra hat keinen Kursivschnitt — die zweite Hälfte wird über die Farbe betont */
.mosaik__kopf h2 em { font-style: normal; color: var(--gruen-akzent); }

/* „klare Worte“ wird beim Erscheinen unterstrichen — derselbe Marker wie in „Wer zu uns passt“ */
.mosaik__kopf h2 em {
  padding-bottom: .04em;
  background-image: linear-gradient(90deg, rgba(46,154,116,.55), rgba(46,154,116,.32));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% .14em;
  transition: background-size 1.1s cubic-bezier(.6, 0, .2, 1) .5s;
}

.bewegt .mosaik__kopf h2:not(.da) em { background-size: 0% .14em; }

.mosaik__kopf p {
  margin: 0;
  max-width: 34em;
  font-size: var(--t-gross);
  line-height: 1.5;
  color: var(--tinte-leise);
}

/* Alle Felder sind gleich groß, egal was darin steht */
.mosaik__raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(clamp(250px, 20vw, 300px), auto);
  gap: var(--s2);
}

.feld {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--s5) var(--s5) var(--s4);
  border-radius: var(--r);
  background: var(--flaeche);
  color: var(--tinte);
  overflow: hidden;
}

.feld h3 {
  margin: 0 0 var(--s2);
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: var(--t-h3);
  line-height: 1.15;
  color: var(--gruen);
}

.feld p { margin: 0; max-width: 34em; font-size: var(--t-text); line-height: 1.55; }

/* Das Zeichen liegt halb außerhalb des Feldes und wird vom Feldrand beschnitten */
.feld__zeichen {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(165px, 15.5vw, 225px);
  height: auto;
  fill: none;
  stroke: var(--gruen-akzent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .22;
  transform: translate(20%, 26%);
  transition: opacity var(--zeit-mittel);
  pointer-events: none;
}

/* Positionierte Elemente liegen über statischen — der Text braucht darum auch eine Position */
.feld h3,
.feld b,
.feld p,
.feld__fuss { position: relative; }

/* Fußzeile jedes Feldes: kleine Marke, dann die Beschriftung */
.feld__fuss {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s5);
  font-size: var(--t-klein);
  color: var(--tinte-leise);
}

.feld__fuss::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 6px;
  flex: none;
  border-radius: 2px;
  background: var(--gruen-akzent);
}

/* Zahlenfeld: die Zahl trägt das Feld, der Satz steht klein darunter */
.feld--zahl b {
  display: block;
  margin-bottom: var(--s2);
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--gruen);
}

/* Zitatfeld */
.feld--zitat p {
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.25;
  color: var(--gruen);
}

.feld { transition: background-color var(--zeit-mittel); }

@media (hover: hover) {
  .feld:hover { background: var(--flaeche-tief); }
  .feld:hover .feld__zeichen { opacity: .36; }
  .feld--foto:hover img { transform: scale(1.04) translateZ(0); }
}

@media (prefers-reduced-motion: reduce) {
  .feld,
  .feld__zeichen,
  .feld--foto img { transition: none; }
  .feld--foto:hover img { transform: none; }
}

/* Fotofeld: Bild randlos, Beschriftung auf dunklem Verlauf */
.feld--foto { position: relative; padding: 0; }

.feld--foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  /* Weicher Zoom: langsam anlaufen und auslaufen statt anzuspringen. Die eigene Ebene
     verhindert, dass das Bild am Ende der Bewegung sichtbar nachschärft. */
  transform: scale(1) translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 1.4s cubic-bezier(.4, 0, .2, 1);
}

.feld--foto figcaption {
  position: relative;
  margin-top: auto;
  padding: var(--s7) var(--s4) var(--s4);
  font-size: var(--t-gross);
  line-height: 1.35;
  color: var(--weiss);
  background: linear-gradient(180deg, rgba(8,30,22,0), rgba(8,30,22,.8));
}

/* ---------- Wer zu uns passt: Zeilen mit grüner Markierung ---------- */

.passung {
  padding: var(--s9) var(--rand) var(--s8);
  background: var(--weiss);
  color: var(--gruen);
}

.passung h2 {
  margin: 0 0 var(--s5);
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -.01em;
}

/* Tabelle aus zwei mal zwei Feldern: Rahmen außen, dünne Linien innen */
.passung__liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--gruen-linie);
  border-radius: var(--r);
  overflow: hidden;
}

/* Begriff oben, Aussage darunter, das Zeichen wie im Mosaik angeschnitten in der Ecke */
.passung__zeile {
  position: relative;
  min-height: clamp(220px, 17vw, 270px);
  padding: var(--s6) var(--s6) var(--s7);
  overflow: hidden;
  transition: background-color var(--zeit-mittel);
}

.passung__zeile:nth-child(odd) { border-right: 1px solid var(--gruen-linie); }
.passung__zeile:nth-child(-n+2) { border-bottom: 1px solid var(--gruen-linie); }

.passung__zeile h3 {
  position: relative;
  margin: 0 0 var(--s3);
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: var(--t-h3);
  line-height: 1.15;
  color: var(--gruen);
}

.passung__satz {
  position: relative;
  margin: 0;
  max-width: 22em;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: clamp(20px, 1.75vw, 28px);
  line-height: 1.35;
  color: var(--gruen);
}

/* Die Markierung ist ein Verlauf im Hintergrund des Wortes; sie wächst in der Breite,
   damit der Text nie verdeckt wird und nichts umbricht. */
.passung mark {
  padding: .06em .14em;
  border-radius: 2px;
  color: inherit;
  /* <mark> ist im Browser gelb hinterlegt — das muss weg, sonst scheint es durch */
  background-color: transparent;
  background-image: linear-gradient(90deg, rgba(46,154,116,.44), rgba(46,154,116,.26));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  /* Wie ein Textmarker: erst steht das Feld, dann wird die Aussage angestrichen */
  transition: background-size 1.1s cubic-bezier(.6, 0, .2, 1) calc(var(--verzug, 0s) + .55s),
              background-image var(--zeit-mittel);
}

/* Erst wenn das Skript übernimmt, startet die Markierung leer und läuft beim Erscheinen auf */
.bewegt .passung__zeile:not(.da) mark { background-size: 0% 100%; }

@media (hover: hover) {
  .passung__zeile:hover { background: var(--flaeche); }
  .passung__zeile:hover .feld__zeichen { opacity: .36; }
  .passung__zeile:hover mark {
    background-image: linear-gradient(90deg, rgba(46,154,116,.62), rgba(46,154,116,.4));
  }
}

@media (prefers-reduced-motion: reduce) {
  .passung mark, .passung__zeile { transition: none; }
}

/* ---------- Abschluss: ein Bildblock trägt Einstieg, Formular und Fußbereich ---------- */

.abschluss {
  position: relative;
  padding-bottom: var(--s5);
  background: var(--gruen-tief);
  color: var(--weiss);
  /* kein overflow: hidden — es würde das klebende linke Feld außer Kraft setzen */
}

/* Die Bühne trägt Einstieg und Formular; das Foto füllt sie genau aus und
   läuft am unteren Rand in das Grün des Fußbereichs aus. */
.abschluss__buehne {
  position: relative;
  isolation: isolate;
  padding: var(--s9) 0 var(--s7);
}

.abschluss__bild,
.abschluss__schleier {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.abschluss__bild {
  z-index: -2;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

.abschluss__schleier {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13,50,38,.74) 0%, rgba(13,50,38,.3) 52%, rgba(13,50,38,.12) 100%),
    linear-gradient(180deg, rgba(13,50,38,.5) 0%, rgba(13,50,38,.4) 42%, rgba(13,50,38,.82) 86%, var(--gruen-tief) 100%);
}

.abschluss__raster {
  display: grid;
  /* 1fr, nicht .8fr: unter 1fr bleibt ein Fünftel der Restbreite ungenutzt und die
     Formularkarte endet vor dem Seitenrand, an dem alles andere steht. */
  grid-template-columns: minmax(0, 1fr) clamp(560px, 50vw, 820px);
  gap: clamp(24px, 2.2vw, 44px);
  align-items: start;
  padding: 0 var(--rand);
}

/* Lange Stellennamen in der Auswahl kürzen statt die Spalte zu verbreitern (Ellipse in .auswahl__wert) */
.abschluss__raster > *,
.formular__buehne > * { min-width: 0; }

/* linke Seite: Titel, Praktikumssatz und zwei Wege mit dünner weißer Kante */
/* Bleibt stehen, solange das Formular läuft — sonst steht der Titel allein oben. */
.einstieg {
  position: sticky;
  top: calc(var(--kopf-h, 128px) + var(--s5));
  max-width: 38em;
  padding-bottom: var(--s5);
}

.abschluss__titel {
  margin: 0 0 var(--s4);
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: clamp(42px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: -.01em;
}

.einstieg__satz {
  margin: 0;
  max-width: 34em;
  font-size: var(--t-gross);
  line-height: 1.5;
  color: rgba(255,255,255,.88);
}

.einstieg__wege {
  display: grid;
  gap: var(--s2);
  max-width: 30em;
  margin-top: var(--s5);
}

/* Flache Zeile statt Karte: Zeichen, zwei Zeilen Text, Pfeil. Spart Höhe,
   damit der Fußbereich näher an das Formular rückt. */
.weg {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  font: inherit;
  text-align: left;
  color: var(--weiss);
  background: rgba(13,50,38,.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color var(--zeit-kurz), border-color var(--zeit-kurz);
}

.weg:hover { background: rgba(13,50,38,.6); border-color: var(--weiss); }

.weg__zeichen { flex: none; width: 21px; height: 21px; fill: currentColor; opacity: .85; }

.weg__text { display: grid; gap: 2px; min-width: 0; }

.weg__text b {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}

.weg__text span { font-size: var(--t-klein); line-height: 1.4; color: rgba(255,255,255,.78); }

.weg__pfeil { flex: none; width: 10px; height: 10px; margin-left: auto; fill: currentColor; opacity: .7; }

.einstieg__hinweis {
  margin: var(--s4) 0 0;
  font-size: var(--t-klein);
  color: rgba(255,255,255,.7);
}

/* ---------- Formularkarte ---------- */

.formular {
  position: relative;
  padding: clamp(26px, 2.3vw, 40px);
  border-radius: var(--r-gross);
  background: var(--weiss);
  color: var(--tinte);
  box-shadow: 0 30px 70px rgba(5, 22, 16, .38);
}

.formular__kopf h3 {
  margin: 0 0 var(--s2);
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: clamp(26px, 2.1vw, 34px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--gruen);
}

.formular__kopf p { margin: 0; font-size: var(--t-text); line-height: 1.5; color: var(--tinte-leise); }

/* Drei Schritte, der erreichte Schritt ist grün */
.schritte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin: var(--s5) 0 var(--s3);
  padding: 0;
  list-style: none;
}

.schritt {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-klein);
  color: var(--tinte-blass);
  transition: color var(--zeit-mittel);
}

.schritt + .schritt::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.schritt b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  font-size: 13px;
  border: 1px solid currentColor;
  border-radius: var(--r-pille);
  transition: background-color var(--zeit-mittel), color var(--zeit-mittel), border-color var(--zeit-mittel);
}

.schritt--an { color: var(--gruen); }
.schritt--an b { color: var(--weiss); background: var(--gruen); border-color: var(--gruen); }
.schritt--fertig { color: var(--gruen-akzent); }
.schritt--fertig b { color: var(--weiss); background: var(--gruen-akzent); border-color: var(--gruen-akzent); }

/* Fortschrittsbalken unter der Schrittanzeige */
.fortschritt {
  height: 3px;
  margin-bottom: var(--s5);
  background: rgba(17, 66, 50, .12);
  border-radius: var(--r-pille);
  overflow: hidden;
}

.fortschritt i {
  display: block;
  width: 33.33%;
  height: 100%;
  background: var(--gruen-akzent);
  border-radius: var(--r-pille);
  transition: width .45s var(--kurve);
}

/* Die Bühne hält die Höhe, damit die Karte beim Schrittwechsel nicht springt
   und der Fußbereich nicht hochrutscht. */
.formular__buehne { display: grid; min-height: 270px; }

.tafel { display: none; }

.tafel--an {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  animation: tafelAuf .35s var(--kurve) both;
}

.buehne--zurueck .tafel--an { animation-name: tafelZurueck; }

@keyframes tafelAuf {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes tafelZurueck {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}

.tafel__hinweis { margin: auto 0 0; font-size: var(--t-klein); line-height: 1.45; color: var(--tinte-blass); }

/* Zurück, Zähler, Weiter in einer Zeile */
.formular__fuss {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid rgba(17, 66, 50, .14);
}

.formular__zaehler { margin-right: auto; font-size: var(--t-klein); color: var(--tinte-blass); }

.zurueck {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 13px 18px;
  font: inherit;
  font-size: 15px;
  color: var(--gruen);
  background: transparent;
  border: 1px solid rgba(17, 66, 50, .2);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--zeit-kurz), background-color var(--zeit-kurz);
}

.zurueck:hover { background: var(--flaeche); border-color: var(--gruen); }
.zurueck svg { width: 10px; height: 10px; fill: currentColor; }
.zurueck[hidden] { display: none; }

.weiter {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 15px 30px;
  font-size: 17px;
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
}

.weiter svg { width: 11px; height: 11px; fill: currentColor; }
.weiter[hidden] { display: none; }

/* Hinweis, wenn ein Schritt noch nicht vollständig ist */
.fehler {
  margin: 0;
  font-size: var(--t-klein);
  font-weight: bold;
  color: var(--rot);
}

.fehler[hidden] { display: none; }

/* Eingabefelder des Formulars (.feld ist auf der Seite schon die Kachel) */
.eingabe { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s3); min-width: 0; }
.eingabe:last-child { margin-bottom: 0; }
.eingabe-paar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

.eingabe__label { font-size: 15px; font-weight: bold; color: var(--gruen); }
.eingabe__label em { font-style: normal; font-weight: normal; color: var(--tinte-blass); }

.eingabe input[type="text"],
.eingabe input[type="tel"],
.eingabe input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: var(--t-text);
  color: var(--tinte);
  background: var(--flaeche);
  border: 1px solid rgba(17, 66, 50, .16);
  border-radius: var(--r);
  transition: border-color var(--zeit-kurz), background-color var(--zeit-kurz);
}

.eingabe input::placeholder { color: var(--tinte-blass); }
.eingabe input:hover { border-color: var(--gruen-linie); }
.eingabe input:focus { background: var(--weiss); border-color: var(--gruen); }

.formular :focus-visible { outline: 2px solid var(--gruen-akzent); outline-offset: 2px; }

/* ---------- Eigene Auswahlliste statt Browser-Dropdown ---------- */

.auswahl { position: relative; }

.auswahl__knopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: var(--t-text);
  text-align: left;
  color: var(--tinte);
  background: var(--flaeche);
  border: 1px solid rgba(17, 66, 50, .16);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--zeit-kurz), background-color var(--zeit-kurz);
}

.auswahl__knopf:hover { border-color: var(--gruen-linie); }
.auswahl__knopf[aria-expanded="true"] { background: var(--weiss); border-color: var(--gruen); }

.auswahl__wert { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auswahl__wert--leer { color: var(--tinte-blass); }

.auswahl__pfeil {
  flex: none;
  width: 13px;
  height: 13px;
  fill: var(--gruen);
  transition: transform var(--zeit-mittel);
}

.auswahl__knopf[aria-expanded="true"] .auswahl__pfeil { transform: rotate(180deg); }

.auswahl__liste {
  position: absolute;
  z-index: 5;
  top: calc(100% + var(--s1));
  left: 0;
  right: 0;
  max-height: 330px;
  overflow-y: auto;
  padding: var(--s1);
  background: var(--weiss);
  border: 1px solid var(--gruen-linie);
  border-radius: var(--r);
  box-shadow: 0 18px 44px rgba(5, 22, 16, .26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--zeit-mittel), transform var(--zeit-mittel) , visibility 0s linear .35s;
}

.auswahl__knopf[aria-expanded="true"] + .auswahl__liste {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--zeit-mittel), transform var(--zeit-mittel), visibility 0s;
}

.auswahl__gruppe {
  margin: var(--s2) var(--s2) var(--s1);
  font-size: var(--t-mini);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--tinte-blass);
}

.auswahl__option {
  display: block;
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  color: var(--tinte);
  background: transparent;
  border: 0;
  border-radius: var(--r-klein);
  cursor: pointer;
  transition: background-color var(--zeit-kurz), color var(--zeit-kurz);
}

.auswahl__option em { font-style: normal; color: var(--tinte-blass); }
.auswahl__option:hover { background: var(--flaeche); }
.auswahl__option[aria-selected="true"] { background: var(--gruen); color: var(--weiss); }
.auswahl__option[aria-selected="true"] em { color: rgba(255, 255, 255, .7); }

/* ---------- Stufen: klappen erst auf, wenn sie gebraucht werden ---------- */

/* Eine zugeklappte Stufe ist 0 px hoch, die Tafel setzt aber trotzdem ihren gap
   davor — vier Stufen ergaben 56 px Loch unter der Auswahl. Der negative Abstand
   hebt den gap auf, solange die Stufe zu ist. */
.stufe {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: calc(-1 * var(--s3));
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows .45s var(--kurve),
    margin-top .45s var(--kurve),
    opacity var(--zeit-mittel),
    visibility 0s linear .45s;
}

/* Der Überlauf ist nötig, damit die Stufe auf 0 zusammenfahren kann. Die 5 px
   Luft an den Seiten sorgen dafür, dass Fokusring und Pillenkante nicht anschneiden. */
.stufe__innen {
  min-height: 0;
  overflow: hidden;
  margin: 0 -5px;
  padding: 0 5px;
  transition: padding .45s var(--kurve);
}

.stufe.offen .stufe__innen { padding: var(--s3) 5px 5px; }

.stufe.offen {
  grid-template-rows: 1fr;
  margin-top: 0;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows .45s var(--kurve),
    margin-top .45s var(--kurve),
    opacity var(--zeit-mittel) .1s,
    visibility 0s;
}

.stufe__marke {
  margin: 0 0 var(--s3);
  font-size: var(--t-mini);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--tinte-blass);
}

/* Auswahl in Pillen statt weiterer Eingabefelder */
.wahl { display: flex; flex-wrap: wrap; gap: var(--s2); }

.wahl__option { position: relative; }
.wahl__option input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.wahl__option span {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--tinte);
  background: var(--weiss);
  border: 1px solid rgba(17, 66, 50, .2);
  border-radius: var(--r-pille);
  cursor: pointer;
  transition: background-color var(--zeit-kurz), border-color var(--zeit-kurz), color var(--zeit-kurz);
}

.wahl__option:hover span { border-color: var(--gruen); }
.wahl__option input:checked + span { color: var(--weiss); background: var(--gruen); border-color: var(--gruen); }
.wahl__option input:focus-visible + span { outline: 2px solid var(--gruen-akzent); outline-offset: 2px; }

/* ---------- Lebenslauf, Zustimmung, Absenden ---------- */

.ablage {
  display: grid;
  justify-items: center;
  gap: var(--s1);
  padding: var(--s4);
  text-align: center;
  background: var(--flaeche);
  border: 1px dashed rgba(17, 66, 50, .3);
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color var(--zeit-kurz), border-color var(--zeit-kurz);
}

.ablage input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ablage svg { width: 17px; height: 17px; fill: var(--gruen); }
.ablage b { font-size: 15px; color: var(--gruen); }
.ablage span { max-width: 34em; font-size: var(--t-klein); line-height: 1.45; color: var(--tinte-leise); }
.ablage:hover { border-color: var(--gruen); }
.ablage--ueber { background: rgba(46, 154, 116, .12); border-color: var(--gruen-akzent); }
.ablage--voll { border-style: solid; border-color: var(--gruen-akzent); }

.zustimmung {
  display: flex;
  gap: var(--s2);
  margin: var(--s4) 0;
  font-size: var(--t-klein);
  line-height: 1.45;
  color: var(--tinte-leise);
  cursor: pointer;
}

.zustimmung input { flex: none; margin-top: 3px; accent-color: var(--gruen); }
.zustimmung a { text-decoration: underline; text-underline-offset: 3px; }

.formular__senden {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: 15px 30px;
  font-size: 17px;
  text-align: center;
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
}

.formular__senden[hidden] { display: none; }

/* Während des Absendens dreht sich ein Ring im Knopf */
.formular__senden::before {
  content: "";
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: var(--weiss);
  border-radius: var(--r-pille);
  animation: kreisel .7s linear infinite;
}

.formular--sendet .formular__senden::before { display: block; }
.formular--sendet .formular__senden { background: var(--gruen); cursor: default; }

@keyframes kreisel { to { transform: rotate(360deg); } }

/* Danke-Feld: löst das Formular ab, sobald die Bewerbung heraus ist.
   Schrittanzeige und Balken bleiben stehen — beide auf 100 %. */
.formular--fertig .formular__kopf,
.formular--fertig .tafel,
.formular--fertig .formular__fuss { display: none; }

/* Kopf und Fußzeile fallen weg — die Bühne gleicht das aus, damit die Karte
   nach dem Absenden nicht zusammenfällt und der Fußbereich nicht hochspringt. */
.formular--fertig .formular__buehne { min-height: 440px; align-content: center; }

.danke[hidden] { display: none; }

.danke {
  display: grid;
  justify-items: start;
  gap: var(--s3);
  animation: auftauchen .5s var(--kurve) both;
}

.danke svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  fill: var(--weiss);
  background: var(--gruen-akzent);
  border-radius: var(--r-pille);
}

.danke h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--gruen);
}

.danke p { margin: 0; font-size: var(--t-text); line-height: 1.55; color: var(--tinte-leise); }
.danke__fuss a { font-weight: bold; color: var(--rot); text-decoration: underline; text-underline-offset: 4px; }

@keyframes auftauchen {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.eingabe-paar--breit { grid-template-columns: 1.25fr 1fr; align-items: start; }

.vertrauen {
  display: grid;
  align-content: start;
  gap: var(--s2);
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-klein);
  line-height: 1.45;
  color: var(--tinte-leise);
}

.vertrauen li { position: relative; padding-left: 18px; }

.vertrauen li a { font-weight: bold; color: var(--rot); text-decoration: underline; text-underline-offset: 3px; }

.vertrauen li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: var(--r-pille);
  background: var(--gruen-akzent);
}

/* ---------- Direkter Draht statt Formular ---------- */

.direkt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
  margin: var(--s8) var(--rand) 0;
  padding: var(--s5) 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.direkt__satz {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: var(--t-aussage);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.direkt__satz span {
  display: block;
  margin-top: var(--s1);
  font-family: var(--schrift-text);
  font-size: var(--t-text);
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}

.direkt__wege { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }

.direkt__tel {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 15px 26px;
  font-size: 19px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--r);
  transition: background-color var(--zeit-kurz), color var(--zeit-kurz), border-color var(--zeit-kurz);
}

.direkt__tel:hover { color: var(--gruen); background: var(--weiss); border-color: var(--weiss); }
.direkt__tel svg { width: 15px; height: 15px; fill: currentColor; }

.direkt__mail {
  font-size: var(--t-text);
  color: rgba(255, 255, 255, .85);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.direkt__mail:hover { color: var(--weiss); }

/* ---------- Fußbereich ---------- */

.fuss {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr auto;
  align-items: start;
  gap: var(--s5) clamp(32px, 5vw, 80px);
  margin: var(--s7) var(--rand) 0;
}

.fuss__logo { grid-column: 5; justify-self: end; }
.fuss__logo img { display: block; height: 52px; width: auto; }

.fuss__spalte { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.4; }
.fuss__spalte b { margin-bottom: 4px; font-size: 15px; }
.fuss__spalte a:hover { text-decoration: underline; text-underline-offset: 3px; }

.fuss__klein { grid-column: 1 / 5; align-self: center; margin: 0; font-size: var(--t-klein); opacity: .8; }

.hoch {
  grid-column: 5;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 11px 18px;
  font: inherit;
  font-size: var(--t-klein);
  color: var(--weiss);
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--r-klein);
  cursor: pointer;
  transition: background-color var(--zeit-kurz), border-color var(--zeit-kurz);
}

.hoch:hover { background: var(--gruen-hell); border-color: var(--gruen-akzent); }
.hoch svg { width: 13px; height: 13px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .tafel--an, .fortschritt i,
  .stufe, .stufe.offen, .stufe__innen, .auswahl__liste, .auswahl__pfeil, .schritt, .schritt b { transition: none; }
  .formular__senden::before { animation: none; }
  .tafel--an { animation: none; }
  .danke { animation: none; }
}

/* ---------- Auftritt: Inhalte gleiten beim ersten Erscheinen herein ----------
   Nur wenn das Skript .bewegt auf <html> setzt (also nicht ohne Skript und nicht unter
   prefers-reduced-motion). Einmal pro Element, danach bleibt es stehen. Animation statt
   Transition, damit die vorhandenen Hover-Übergänge der Elemente unberührt bleiben;
   „backwards“ statt „both“, damit danach wieder die eigenen transform-Werte gelten. */

.bewegt .auftritt:not(.da) { opacity: 0; }

.bewegt .auftritt.da {
  animation: auftritt .9s var(--kurve) var(--verzug, 0s) backwards;
}

/* Bilder rücken nicht hoch, sondern blenden auf und setzen sich aus leichter Nähe */
.bewegt .auftritt--bild.da { animation-name: auftrittBild; animation-duration: 1.3s; }

@keyframes auftritt {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes auftrittBild {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Kleinere Bildschirme / Mobil -------------------------------- */

@media (max-width: 1180px) {
  .mosaik__raster { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1280px) {
  .hero__reihe { grid-template-columns: auto auto 1fr; }
  .hero__text { grid-column: 1 / -1; max-width: 620px; }
  .hero__reihe .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 860px) {
  /* Kopfzeile: Kontaktzeile wandert ins Menü, dafür der Menüknopf */
  .kopf__infos a:nth-child(2), .kopf__infos span { display: none; }
  .kopf__infos a { padding: 11px 0; }
  .kopf__sozial a { width: 44px; height: 44px; }
  .kopf__leiste { padding: 2px var(--rand); }
  .kopf__haupt { padding: 8px var(--rand); }
  .kopf__logo img { height: 38px; }
  .kopf__nav { display: none; }
  .kopf__schalter { display: block; }
  .menue:not([hidden]) { display: flex; }
  .kopf__marke { display: none; }

  .hero { aspect-ratio: auto; min-height: calc(100svh - 120px); max-height: none; }
  .hero__reihe { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding-top: 18px; }
  .zahl b { font-size: 24px; }
  .zahl span { font-size: 13px; }
  .hero__text { font-size: 15px; }
  .vorteile { height: 185vh; }
  .vorteile__fix { align-content: center; grid-template-columns: 1fr; grid-template-rows: 26svh auto; gap: 20px; padding: 16px var(--rand) 24px; }
  .rahmen { margin-left: 0; aspect-ratio: auto; align-self: stretch; }
  .folie figcaption { padding: var(--s5) var(--s3) var(--s3); font-size: var(--t-klein); }
  .folie::after { height: 70%; }
  .vorteile__text { margin: 0; align-self: start; font-size: 20px; }
  .bereiche { height: 230vh; }
  .bereiche__fix { padding: 14px var(--rand) 20px; }
  .quadrat { right: 0; width: auto; }
  .quadrat .schicht { padding: 14px 18px; font-size: 20px; }
  .karte { width: 100%; }
  .karte .schicht { padding: 18px 18px 20px; }
  .karte p { font-size: 17px; margin-bottom: 12px; }
  .stellen { padding: 48px 0 var(--s7); }
  .karte a { display: inline-block; padding: 11px 0; }
  .abschluss__buehne { padding: 56px 0 48px; }
  .einstieg { position: static; }
  .abschluss__raster { grid-template-columns: 1fr; gap: 32px; }
  .einstieg { padding-bottom: 0; }
  .einstieg__wege { grid-template-columns: 1fr; margin-top: 28px; }
  .formular { padding: 22px 18px 24px; }
  .schritte { margin: 22px 0 22px; }
  .schritt span { display: none; }
  .schritt--an span, .schritt--fertig span { display: inline; }
  .eingabe-paar, .eingabe-paar--breit { grid-template-columns: 1fr; gap: 0; }
  .formular__buehne { min-height: 0; }
  .formular__zaehler { display: none; }
  .formular__fuss { flex-wrap: wrap; }
  .weiter, .formular__senden { flex: 1 1 auto; justify-content: center; }
  .vertrauen { margin-top: var(--s4); }
  .direkt { margin-top: 48px; padding: 24px 0; }
  .direkt__wege { width: 100%; }
  .direkt__tel { flex: 1 1 auto; justify-content: center; }
  .fuss { margin-top: 40px; }
  .fuss { grid-template-columns: 1fr 1fr; gap: 22px 20px; }
  .fuss__logo { grid-column: 1 / -1; justify-self: start; }
  .fuss__klein { grid-column: 1 / -1; justify-self: start; }
  .hoch { grid-column: 1 / -1; justify-self: start; }
  .passung { padding-top: var(--s7); padding-bottom: var(--s7); }
  .passung__liste { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .passung__zeile { min-height: 0; padding: var(--s5) 18px var(--s6); border-right: 0 !important; border-bottom: 1px solid var(--gruen-linie); }
  .passung__zeile:last-child { border-bottom: 0; }
  .mosaik { padding: var(--s7) var(--rand); }
  .mosaik__kopf { padding-bottom: var(--s5); }
  .mosaik__raster { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  /* Fließtext braucht die volle Breite, Zahlen und Fotos kommen nebeneinander */
  .feld { grid-column: span 2; padding: 20px 18px; }
  .feld--zahl, .feld--foto { grid-column: span 1; }
  .feld--foto { min-height: 200px; }
  .feld--foto figcaption { padding: var(--s6) var(--s3) var(--s3); font-size: var(--t-text); }
  /* In den schmalen Feldern darf das Zeichen dem Text nicht ins Gehege kommen */
  .feld__zeichen { width: 118px; opacity: .13; }

  .btn--gross { justify-self: stretch !important; text-align: center; font-size: 17px; padding: 20px 24px; }
}

/* ---------- Bildausschnitte je Geräteklasse ------------------------------
   Die Fotos kommen auf Handys hochkant (p) und quer (q) als eigener, enger
   zugeschnittener Ausschnitt (siehe bilder_optimieren.py). Jeder Ausschnitt hat
   seine eigene object-position; hier wird --pos auf den passenden Wert gestellt.
   !important ist nötig, weil --pos im style-Attribut steht. */

@media (max-width: 860px) {
  main img[style*="--pos-q"] { --pos: var(--pos-q) !important; }
}

@media (max-width: 860px) and (orientation: portrait) {
  main img[style*="--pos-p"] { --pos: var(--pos-p) !important; }
}

/* ---------- Feinstufen innerhalb der Mobilfassung -------------------------
   Der eine Umbruch bei 860 px bleibt. Darunter gibt es drei Geräteklassen, die
   dieselbe Fassung bekommen, aber unterschiedlich viel Platz haben:
   Tablets im Hochformat (600–860), normale Handys und sehr kleine Handys (≤ 380)
   bzw. Bildschirme mit wenig Höhe. */

/* Tablet hochkant: der Platz reicht für ein großes Bild und zwei Karten nebeneinander */
@media (min-width: 600px) and (max-width: 860px) {
  .vorteile__fix { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; padding-top: var(--s5); padding-bottom: var(--s6); }
  .vorteile__text { font-size: var(--t-aussage-gross); }

}

/* Wenig Höhe (kleine Handys, Querformat): das Bild im klebenden Vorteile-Rahmen
   wird flacher, damit der Text darunter vollständig in den Bildschirm passt */
@media (max-width: 860px) and (max-height: 700px) {
  .vorteile__fix { grid-template-rows: 18svh auto; gap: var(--s3); padding-top: var(--s2); padding-bottom: var(--s3); }
}

/* Sehr kleine Handys (320 px) und kurze Handys (SE-Klasse, 375 × 667). Normale
   Handys ab 360 × 740 behalten die Größen der Mobilfassung. */
@media (max-width: 359px), (max-width: 430px) and (max-height: 680px) {
  .hero h1 { font-size: 32px; margin-bottom: var(--s3); }
  .hero__reihe { gap: var(--s3) var(--s3); padding-top: var(--s3); }
  .hero__text { line-height: 1.45; }
  .btn--gross { padding: 16px 20px; }

  .quadrat .schicht { padding: var(--s2) var(--s3); font-size: 18px; }
  .karte .schicht { padding: var(--s3) var(--s3) var(--s4); }
  .karte p { font-size: 15px; line-height: 1.45; }
}

/* Schmale Handys: halbe Mosaikfelder wären unter 180 px — die Bildunterschrift
   bräche Wort für Wort und läge über dem Motiv. Alles einspaltig. */
@media (max-width: 480px) {
  .feld, .feld--zahl, .feld--foto { grid-column: 1 / -1; }
  .feld--foto { min-height: 220px; }
  .feld--foto figcaption { padding: var(--s5) var(--s3) var(--s3); font-size: var(--t-klein); }

  .fuss { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Touch: jedes Tippziel mindestens 44 × 44 px ------------------
   Gilt nach Eingabeart, nicht nach Breite — ein iPad quer zeigt die Desktop-
   Fassung, wird aber mit dem Finger bedient. Einzeln stehende Textlinks
   bekommen eine unsichtbar vergrößerte Trefferfläche, damit sich am Layout
   nichts verschiebt; gestapelte Links bekommen echten Innenabstand, weil sich
   vergrößerte Flächen dort überlappen würden. */

@media (pointer: coarse) {
  .kopf__infos a,
  .kopf__sozial a,
  .karte a,
  .direkt__mail,
  .vertrauen li a,
  .zustimmung a,
  .danke__fuss a { position: relative; }

  .kopf__infos a::after,
  .karte a::after,
  .direkt__mail::after,
  .vertrauen li a::after,
  .zustimmung a::after,
  .danke__fuss a::after {
    content: "";
    position: absolute;
    inset: -14px -6px;
  }

  .kopf__sozial { gap: var(--s3); }
  .kopf__sozial a::after { content: ""; position: absolute; inset: -7px; }

  .kopf__logo { display: flex; align-items: center; min-height: 44px; }

  .fuss__spalte { gap: 0; }
  .fuss__spalte b { margin-bottom: var(--s1); }
  .fuss__spalte a { padding: var(--s3) 0; }

  .hoch { min-height: 44px; }
  .wahl__option span { padding: 12px 16px; }
  .auswahl__option { padding: 12px; }
}
