/*
 * Karrierebereich (Neuaufbau 2026)
 *
 * Grundlage ist die Figma-Datei "Karriere-Rebranding 2025-01". Alles hier ist
 * mit k- bzw. --k- benannt und wird nur im Karrierebereich geladen
 * (inc/karriere/assets.php). Die uebrige Seite bleibt unveraendert.
 *
 * Raster: Inhalt max. 1220px. Abschnitte 64/80/96px, mobil kleiner.
 * Breakpoints wie im Theme: 1024px und 640px.
 */

/* ---------- Schriften (nur Karriere) ----------
 * Eigener Familienname, damit Light und Medium nur im neuen Bereich greifen
 * und bestehende Seiten mit font-weight: 500 unveraendert bleiben.
 */

@font-face {
  font-family: "Fira Sans Karriere";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/fira-sans/FiraSans-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans Karriere";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/fira-sans/FiraSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans Karriere";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/fira-sans/FiraSans-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans Karriere";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/fira-sans/FiraSans-Bold.woff2") format("woff2");
}

/* ---------- Werte ---------- */

:root {
  --k-blau: #0d7cc1;
  --k-blau-dunkel: #0866a0;
  --k-text: #243746;
  --k-gedaempft: #607484;
  --k-flaeche: #e7f2fa;
  --k-linie: #d9d9d9;
  --k-weiss: #ffffff;
  --k-fehler: #c0392b;

  --k-breite: 1220px;
  --k-rand: clamp(1rem, 4vw, 2rem);
  --k-radius: 16px;
  --k-radius-gross: 24px;

  --k-abstand-s: clamp(2.5rem, 6vw, 4rem); /* 64 */
  --k-abstand-m: clamp(3rem, 7vw, 5rem); /* 80 */
  --k-abstand-l: clamp(3.5rem, 8vw, 6rem); /* 96 */

  --k-uebergang: 200ms ease;
}

/* ---------- Grundtypografie im Karrierebereich ---------- */

.k {
  font-family: "Fira Sans Karriere", "Fira Sans", sans-serif;
  color: var(--k-text);
  font-size: 1rem;
  line-height: 1.5;
}

.k *,
.k *::before,
.k *::after {
  box-sizing: border-box;
}

.k-h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); /* 56 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--k-blau);
  text-wrap: balance;
}

.k-h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); /* 36 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--k-blau);
  text-wrap: balance;
}

.k-h3 {
  margin: 0;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.6875rem); /* 27 */
  font-weight: 400;
  line-height: 1.25;
  color: var(--k-blau);
}

.k-h3--fett {
  font-weight: 700;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); /* 28 */
}

.k-lead {
  margin: 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); /* 22 */
  font-weight: 300;
  line-height: 1.55;
  color: var(--k-text);
}

.k-intro {
  margin: 0;
  max-width: 900px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); /* 20 */
  line-height: 1.6;
  color: var(--k-text);
}

.k-text {
  margin: 0;
  font-size: 1.125rem; /* 18 */
  line-height: 1.55;
}

.k-klein {
  font-size: 0.875rem;
  line-height: 1.45;
}

.k-gedaempft {
  color: var(--k-gedaempft);
}

.k-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--k-gedaempft);
}

:where(.k) a {
  color: var(--k-blau);
}

/* Fokus: 2px Ring mit 2px Abstand, folgt dem Radius des Elements */
.k :focus-visible {
  outline: 2px solid var(--k-blau);
  outline-offset: 2px;
}

.k-section--blau :focus-visible {
  outline-color: var(--k-weiss);
}

.k-icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.2em;
}

/* ---------- Abschnitte und Raster ---------- */

.k-section {
  padding-block: var(--k-abstand-l);
  background: var(--k-weiss);
}

.k-section--s {
  padding-block: var(--k-abstand-s);
}

.k-section--m {
  padding-block: var(--k-abstand-m);
}

.k-section--ohne-oben {
  padding-top: 0;
}

.k-section--flaeche {
  background: var(--k-flaeche);
}

.k-section--blau {
  background: var(--k-blau);
  color: var(--k-weiss);
}

.k-section--blau .k-h2,
.k-section--blau .k-h3,
.k-section--blau .k-intro,
.k-section--blau .k-text,
.k-section--blau .k-gedaempft,
:where(.k-section--blau) a:not([class]) {
  color: var(--k-weiss);
}

.k-wrap {
  width: 100%;
  max-width: calc(var(--k-breite) + 2 * var(--k-rand));
  margin-inline: auto;
  padding-inline: var(--k-rand);
}

.k-stapel {
  display: flex;
  flex-direction: column;
  gap: var(--k-luecke, 2rem);
}

.k-kopf {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.k-kopf--mitte {
  align-items: center;
  text-align: center;
}

.k-raster {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(var(--k-spalten, 3), minmax(0, 1fr));
}

.k-raster--2 { --k-spalten: 2; }
.k-raster--3 { --k-spalten: 3; }
.k-raster--4 { --k-spalten: 4; }
.k-raster--5 { --k-spalten: 5; }

.k-raster--1 { --k-spalten: 1; }

@media (max-width: 1024px) {
  .k-raster--4,
  .k-raster--5 { --k-spalten: 2; }

  .k-raster--5 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .k-raster--3 { --k-spalten: 1; }
}

@media (max-width: 640px) {
  .k-raster { --k-spalten: 1; }
}

.k-reihe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* ---------- Pills ---------- */

.k-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.k-pills--eng {
  gap: 0.375rem;
}

.k-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.9375rem;
  border: 1px solid var(--k-blau);
  border-radius: 1000px;
  background: transparent;
  color: var(--k-blau);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.k-pill--voll {
  background: var(--k-blau);
  color: var(--k-weiss);
}

.k-pill--weiss {
  background: var(--k-weiss);
  border-color: var(--k-weiss);
  color: var(--k-blau);
}

a.k-pill {
  transition: background var(--k-uebergang), color var(--k-uebergang);
}

a.k-pill:hover {
  background: var(--k-blau);
  color: var(--k-weiss);
}

a.k-pill--voll:hover {
  background: var(--k-blau-dunkel);
  border-color: var(--k-blau-dunkel);
}

/* ---------- Buttons und Textlinks ---------- */

.k-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.375rem; /* 54 */
  padding: 1rem 2rem;
  border: 1px solid var(--k-blau);
  border-radius: var(--k-radius);
  background: var(--k-blau);
  color: var(--k-weiss);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--k-uebergang), color var(--k-uebergang), border-color var(--k-uebergang);
}

.k a.k-button {
  color: var(--k-weiss);
}

.k-button:hover {
  background: var(--k-blau-dunkel);
  border-color: var(--k-blau-dunkel);
}

.k-button .k-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--k-uebergang);
}

.k-button:hover .k-icon--rechts {
  transform: translateX(3px);
}

.k-button--rand,
.k a.k-button--rand {
  background: transparent;
  color: var(--k-blau);
}

.k-button--rand:hover,
.k a.k-button--rand:hover {
  background: var(--k-flaeche);
  border-color: var(--k-blau);
}

.k-button--weiss,
.k a.k-button--weiss {
  background: var(--k-weiss);
  border-color: var(--k-weiss);
  color: var(--k-blau);
}

.k-button--weiss:hover,
.k a.k-button--weiss:hover {
  background: var(--k-flaeche);
  border-color: var(--k-flaeche);
}

.k-button[disabled],
.k-button[aria-disabled="true"],
.k-button[disabled]:hover,
.k-button[aria-disabled="true"]:hover {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--k-blau);
  border-color: var(--k-blau);
  color: var(--k-weiss);
}

.k-button--rand[disabled]:hover,
.k-button--rand[aria-disabled="true"]:hover {
  background: transparent;
  color: var(--k-blau);
}

.k-button[disabled] .k-icon,
.k-button[aria-disabled="true"] .k-icon {
  transform: none;
}

@media (max-width: 640px) {
  .k-reihe > .k-button {
    width: 100%;
  }
}

.k-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--k-blau);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.k-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.k-link .k-icon {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.75; /* passend zum Schriftschnitt Medium (ca. 2 px bei 18 px) */
}

/* ---------- Karten ---------- */

.k-karte {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem; /* 28 */
  border: 1px solid var(--k-blau);
  border-radius: var(--k-radius);
  background: var(--k-weiss);
  color: var(--k-text);
}

.k-karte--ohne-rand {
  border-color: transparent;
}

.k-karte--flaeche {
  border-color: transparent;
  background: var(--k-flaeche);
}

.k-karte--gross {
  padding: clamp(1.5rem, 4vw, 2.5rem); /* 40 */
}

.k-karte--bild {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.k-karte__bild {
  display: block;
  width: 100%;
  height: 13.75rem; /* 220 */
  object-fit: cover;
  background: var(--k-flaeche);
}

.k-karte__inhalt {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.k-karte__inhalt > .k-button,
.k-karte__inhalt > .k-link {
  margin-top: auto;
  align-self: flex-start;
}

.k-karte__titel {
  margin: 0;
  color: var(--k-blau);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.k-platzhalter {
  display: grid;
  place-items: center;
  background: var(--k-flaeche);
  color: var(--k-gedaempft);
  font-size: 1rem;
}

/* Eckdaten: Label ueber Wert */
.k-eckdaten {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
}

.k-eckdatum {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--k-blau);
  border-radius: var(--k-radius);
  background: var(--k-weiss);
}

.k-eckdatum dt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--k-gedaempft);
}

.k-eckdatum dd {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--k-blau);
}

@media (max-width: 640px) {
  .k-eckdatum {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

/* Schritt-Karte mit Nummer */
.k-schritt__nummer {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1000px;
  background: var(--k-blau);
  color: var(--k-weiss);
  font-size: 1.25rem;
  font-weight: 500;
}

.k-schritt__titel {
  margin: 0;
  color: var(--k-blau);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Listen ---------- */

.k-check {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.k-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.k-check .k-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1em;
  color: var(--k-blau);
}

/* Haken im blauen Kreis (Benefit-Karten) */
.k-haken-kreis {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1000px;
  background: var(--k-blau);
  color: var(--k-weiss);
}

.k-haken-kreis .k-icon {
  width: 1.375rem;
  height: 1.375rem;
}

/* ---------- Akkordeon (Fragen) ---------- */

.k-fragen {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.k-frage {
  border-bottom: 1px solid var(--k-linie);
}

.k-frage summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  color: var(--k-blau);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.k-frage[open] summary {
  padding-bottom: 0.5rem;
}

.k-frage summary:hover {
  color: var(--k-blau-dunkel);
}

.k-frage summary::-webkit-details-marker {
  display: none;
}

.k-frage summary .k-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--k-uebergang);
}

.k-frage[open] summary .k-icon {
  transform: rotate(45deg);
}

.k-frage__antwort {
  max-width: 1000px;
  margin: 0;
  padding-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* ---------- CTA-Band ---------- */

.k-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

/* ---------- Hilfsklassen ---------- */

.k-liste-ohne {
  margin: 0;
  padding: 0;
  list-style: none;
}

.k-section--ohne-unten {
  padding-bottom: 0;
}

.k-pill--umbruch {
  white-space: normal;
}

.k-karte__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.k-check--klein li {
  font-size: 1rem;
  line-height: 1.4;
}

.k-check--klein .k-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.k-check--gross li {
  font-size: 1.125rem;
  line-height: 1.6;
  gap: 0.75rem;
}

.k-check--gross .k-icon {
  width: 1.375rem;
  height: 1.375rem;
}

/* ---------- Lebensphasen-Kurzkarte ---------- */

.k-lp-karte__icon {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.k-lp-karte__icon.k-platzhalter {
  border-radius: var(--k-radius);
}

.k-lp-karte__fuer {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.k-lp-karte__link {
  margin-top: auto;
}

/* ---------- Ansprechperson ---------- */

.k-person {
  flex-direction: row;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.k-person__foto {
  flex: none;
  width: 15rem;
  height: 15rem;
  border-radius: var(--k-radius);
  object-fit: cover;
  background: var(--k-linie);
}

.k-person__name {
  margin: 0;
  color: var(--k-blau);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.k-person__zitat {
  margin: 0;
}

@media (max-width: 780px) {
  .k-person {
    flex-direction: column;
    align-items: flex-start;
  }

  .k-person__foto {
    width: 10rem;
    height: 10rem;
  }
}

/* ---------- Stellenanzeige ---------- */

.k-stelle__kopf {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.k-stelle__bild {
  display: block;
  width: 100%;
  height: auto;
  max-height: 35rem;
  aspect-ratio: 1220 / 560;
  border-radius: var(--k-radius);
  object-fit: cover;
}

.k-stelle__bild.k-platzhalter {
  display: none;
}

.k-stelle__standortbild {
  display: block;
  width: 100%;
  aspect-ratio: 590 / 380;
  height: auto;
  border-radius: var(--k-radius);
  object-fit: cover;
}

.k-standortkarte .k-karte__bild {
  height: 9.375rem;
}

.k-stimme {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0;
}

.k-stimme__foto {
  flex: none;
  width: 10rem;
  height: 10rem;
  border-radius: 1000px;
  object-fit: cover;
}

.k-stimme__foto.k-platzhalter {
  display: grid;
  background: var(--k-flaeche);
  font-size: 0.875rem;
}

.k-stimme figcaption {
  color: var(--k-blau);
  font-weight: 700;
}

.k-stimme__zitat {
  margin: 0;
  color: var(--k-text);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 300;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .k-stimme {
    flex-direction: column;
    align-items: flex-start;
  }

  .k-stimme__foto {
    width: 6rem;
    height: 6rem;
  }
}

/* ---------- Stellenkarte ---------- */

.k-nowrap {
  white-space: nowrap;
}

/* Karten einer Reihe gleich hoch, Button immer unten */
.k-raster > li {
  display: flex;
}

.k-raster > li > .k-karte,
.k-raster > li > .k-zeile {
  flex: 1;
}

.k-stellenkarte__titel {
  margin: 0;
  color: var(--k-blau);
  font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.375rem); /* 22 */
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* (m/w/d) kleiner und grau, bleibt zusammen (Figma: 17 zu 22) */
.k-stellenkarte__titel .k-nowrap {
  color: var(--k-gedaempft);
  font-size: 0.773em;
  font-weight: 400;
}

.k-stellenkarte .k-karte__inhalt > .k-link {
  margin-top: auto;
}

/* ---------- Zeilenkarte mit Pfeilkreis ---------- */

.k-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--k-blau);
  border-radius: var(--k-radius);
  background: var(--k-weiss);
  text-decoration: none;
  transition: background var(--k-uebergang);
}

.k-zeile:hover {
  background: var(--k-flaeche);
}

.k-zeile__titel {
  color: var(--k-blau);
  font-size: 1.375rem;
  line-height: 1.3;
}

.k-zeile__pfeil {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--k-blau);
  border-radius: 1000px;
  color: var(--k-blau);
  transition: transform var(--k-uebergang);
}

.k-zeile:hover .k-zeile__pfeil {
  transform: translateX(3px);
}

/* ---------- Bewerbungsformular ---------- */

.k-bewerbung {
  width: 100%;
  max-width: 37.5rem; /* 600 */
}

.k-bewerbung__form {
  gap: 1.5rem;
  color: var(--k-text);
}

.k-honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.k-fortschritt {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.k-bewerbung--js .k-fortschritt {
  display: flex;
}

.k-fortschritt__balken {
  display: flex;
  gap: 0.375rem;
}

.k-fortschritt__balken span {
  width: 3.5rem;
  height: 0.375rem;
  border-radius: 1000px;
  background: rgba(13, 124, 193, 0.3);
  transition: background var(--k-uebergang);
}

.k-fortschritt__balken span.ist-erledigt {
  background: var(--k-blau);
}

.k-fortschritt__text {
  color: var(--k-gedaempft);
  font-size: 0.875rem;
  font-weight: 500;
}

.k-fortschritt__text b {
  font-weight: 500;
}

@media (max-width: 480px) {
  .k-fortschritt__balken span {
    width: 2rem;
  }
}

.k-schritt {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.k-schritt[hidden] {
  display: none;
}

.k-schritt__frage {
  margin: 0;
  padding: 0;
  color: var(--k-blau);
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem); /* 26 */
  font-weight: 700;
  line-height: 1.25;
}

.k-schritt__frage:focus {
  outline: none;
}

.k-schritt__intro {
  margin: 0;
  line-height: 1.5;
}

.k-frage-label,
.k-feld__label {
  display: block;
  margin: 0;
  color: var(--k-gedaempft);
  font-size: 0.9375rem;
  font-weight: 500;
}

.k-hinweis {
  margin: -0.75rem 0 0;
  color: var(--k-gedaempft);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Chips */
.k-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  border-radius: var(--k-radius);
}

.k-chips > .k-chip:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.k-chips--reihe {
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
}

.k-chips--reihe > .k-chip:last-child:nth-child(odd) {
  grid-column: auto;
}

@media (max-width: 420px) {
  .k-chips:not(.k-chips--reihe):not(.k-chips--icons) {
    grid-template-columns: 1fr;
  }
}

.k-chip {
  position: relative;
  display: flex;
  min-height: 3.875rem; /* 62 */
  cursor: pointer;
}

.k-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.k-chip > span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--k-blau);
  border-radius: var(--k-radius);
  background: var(--k-flaeche);
  color: var(--k-blau);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transition: background var(--k-uebergang), color var(--k-uebergang), box-shadow var(--k-uebergang);
}

.k-chips--reihe .k-chip {
  min-height: 3.125rem;
}

.k-chips--reihe .k-chip > span {
  padding: 0.875rem 1rem;
}

.k-chip:hover > span {
  box-shadow: inset 0 0 0 1px var(--k-blau);
}

.k-chip input:focus-visible + span,
.k-chip input:focus-visible ~ span {
  outline: 2px solid var(--k-blau);
  outline-offset: 2px;
}

.k-chip input:checked ~ span {
  background: var(--k-blau);
  color: var(--k-weiss);
}

.k-chip input:checked ~ span::before {
  content: "✓";
}

/* Lebensphase als Icon-Karte */
.k-chips--icons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.k-chip--icon {
  min-height: 7rem;
}

.k-chip--icon > span {
  flex-direction: column;
  gap: 0.625rem;
}

.k-chip--icon .k-chip__icon {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  transform: translateX(-50%);
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.k-chip--icon:has(.k-chip__icon) > span {
  justify-content: flex-end;
  padding-top: 4.25rem;
}

.k-chip--icon input:checked ~ .k-chip__icon {
  filter: brightness(0) invert(1);
}

.k-chip--icon.k-chip--breit,
.k-chips--icons > .k-chip:last-child {
  grid-column: 1 / -1;
  min-height: 3.875rem;
}

/* Felder */
.k-felder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.75rem;
}

.k-feld {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  grid-column: 1 / -1;
}

.k-feld--halb {
  grid-column: auto;
}

@media (max-width: 420px) {
  .k-feld--halb {
    grid-column: 1 / -1;
  }
}

.k-feld input,
.k-feld textarea,
.k-upload input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #8fa0ad;
  border-radius: 12px;
  background: var(--k-weiss);
  color: var(--k-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.k-feld textarea {
  min-height: 4.25rem;
  resize: vertical;
}

.k-feld input::placeholder,
.k-feld textarea::placeholder {
  color: var(--k-gedaempft);
}

.k-feld input:focus,
.k-feld textarea:focus,
.k-upload input:focus {
  border-color: var(--k-blau);
  outline: 2px solid var(--k-blau);
  outline-offset: 0;
}

.k-upload {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.k-upload input {
  border-style: dashed;
  cursor: pointer;
}

.k-upload .k-hinweis {
  margin: 0;
}

.k-check-feld {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--k-gedaempft);
}

.k-check-feld input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.05rem 0 0;
  accent-color: var(--k-blau);
}

/* Fehler */
.k-fehlerbox {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--k-fehler);
  border-radius: 8px;
  background: #fbecea;
  color: var(--k-fehler);
  font-size: 0.9375rem;
}

.k-fehlerbox ul {
  margin: 0;
  padding-left: 1.1rem;
}

.k-ist-fehler input:not([type="checkbox"]):not([type="radio"]),
.k-ist-fehler textarea {
  border-color: var(--k-fehler);
}

.k-chips.k-ist-fehler {
  box-shadow: 0 0 0 2px var(--k-fehler);
  outline-offset: 4px;
}

.k-check-feld.k-ist-fehler {
  color: var(--k-fehler);
}

/* Aktionen */
.k-bewerbung__aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.k-bewerbung__aktionen .k-weiter,
.k-bewerbung__aktionen .k-senden {
  margin-left: auto;
}

.k-bewerbung:not(.k-bewerbung--js) .k-weiter,
.k-bewerbung:not(.k-bewerbung--js) .k-zurueck {
  display: none;
}

.k-bewerbung--js .k-bewerbung__ohne-js {
  display: none;
}

.k-zurueck {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--k-gedaempft);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.k-zurueck:hover {
  color: var(--k-blau);
}

.k-zurueck[hidden],
.k-weiter[hidden],
.k-senden[hidden] {
  display: none;
}

.k-senden.ist-sendend .k-icon {
  animation: k-drehen 900ms linear infinite;
}

@keyframes k-drehen {
  to { transform: rotate(360deg); }
}

/* Zwischenschritt */
.k-zwischen .k-check li {
  font-size: 1.0625rem;
}

/* Bestaetigung */
.k-danke {
  gap: 1.25rem;
  color: var(--k-text);
}

.k-danke:focus {
  outline: none;
}

.k-danke__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1000px;
  background: var(--k-blau);
  color: var(--k-weiss);
}

.k-danke__icon .k-icon {
  width: 2rem;
  height: 2rem;
}

.k-danke p {
  margin: 0;
}

.k-danke__person {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--k-radius);
  background: var(--k-flaeche);
}

.k-danke__foto {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1000px;
  object-fit: cover;
  background: var(--k-linie);
}

.k-danke__name {
  color: var(--k-blau);
  font-size: 1.0625rem;
  font-weight: 500;
}

.k-danke .k-button {
  align-self: flex-start;
}

/* Bewerbung auf blauer Flaeche: Formular weiss, Text normal */
.k-section--blau .k-bewerbung a:not([class]) {
  color: var(--k-blau);
}

/* ---------- Seiten-Sections ---------- */

.k-hero {
  padding-top: var(--k-abstand-m);
}

.k-hero__spalten {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 35rem);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.75rem);
}

.k-hero__bild {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 420;
  border-radius: var(--k-radius);
  object-fit: cover;
}

@media (max-width: 900px) {
  .k-hero__spalten {
    grid-template-columns: 1fr;
  }
}

.k-sprung {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: var(--k-abstand-s);
}

.k-seite > .k-hero + .k-section:not(.k-section--flaeche):not(.k-section--blau) {
  padding-top: var(--k-abstand-s);
}

.k-weg-karte {
  padding: 1.5rem 1.25rem;
  gap: 0.75rem;
}

.k-weg-karte .k-karte__titel {
  line-height: 1.3;
}

.k-weg-karte__status {
  margin: 0;
  color: var(--k-gedaempft);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.k-weg-karte .k-link {
  margin-top: auto;
}

.k-weg {
  scroll-margin-top: 1rem;
}

.k-weg__kopf {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.k-weg__icon {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

@media (max-width: 640px) {
  .k-weg__kopf {
    flex-direction: column;
    gap: 1rem;
  }
}

.k-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--k-radius);
  background: var(--k-weiss);
}

.k-status--flaeche {
  background: var(--k-flaeche);
}

.k-status__zeile {
  color: var(--k-gedaempft);
  font-weight: 500;
}

.k-status__b {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .k-status__b {
    grid-template-columns: 1fr;
  }
}

.k-check--spalten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

@media (max-width: 900px) {
  .k-check--spalten {
    grid-template-columns: 1fr;
  }
}

.k-lp-liste {
  padding-top: var(--k-abstand-m);
}

.k-lp-zeile {
  display: grid;
  grid-template-columns: 18.75rem minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: 3rem;
  border-bottom: 1px solid var(--k-linie);
  scroll-margin-top: 1rem;
}

.k-lp-zeile:last-child {
  border-bottom: 0;
}

.k-lp-zeile--rechts {
  grid-template-columns: minmax(0, 1fr) 18.75rem;
}

.k-lp-zeile--rechts .k-lp-zeile__icon {
  order: 2;
}

.k-lp-zeile__icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--k-radius-gross);
  background: var(--k-flaeche);
}

.k-lp-zeile__bild {
  width: 73%;
  height: 73%;
  object-fit: contain;
}

.k-lp-zeile__tagline {
  color: var(--k-blau);
  font-weight: 500;
}

.k-lp-zeile__titel {
  margin: 0;
  color: var(--k-blau);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 780px) {
  .k-lp-zeile,
  .k-lp-zeile--rechts {
    grid-template-columns: 1fr;
  }

  .k-lp-zeile--rechts .k-lp-zeile__icon {
    order: 0;
  }

  .k-lp-zeile__icon {
    width: 9rem;
  }
}

.k-bereich {
  scroll-margin-top: 1rem;
}

.k-bereich__bild {
  height: 16.25rem;
}

.k-bereich__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.k-bereich__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.k-bereich__status .k-link.k-klein {
  font-size: 0.875rem;
}

.k-teaser {
  gap: 0.75rem;
  padding: 2rem;
}

.k-stimmkarte {
  gap: 1.25rem;
}

.k-stimmkarte__person {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.k-stimmkarte__person p {
  margin: 0;
}

.k-stimmkarte__foto {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1000px;
  object-fit: cover;
}

.k-stimmkarte__initiale {
  display: grid;
  place-items: center;
  background: var(--k-blau);
  color: var(--k-weiss);
  font-size: 1.75rem;
  font-weight: 500;
}

.k-stimmkarte__name {
  color: var(--k-blau);
  font-size: 1.25rem;
  font-weight: 500;
}

.k-stimmkarte__zitat {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.55;
}

.k-bewerbung-seite {
  align-items: center;
  text-align: center;
}

.k-bewerbung-seite .k-bewerbung {
  text-align: left;
}

/* ---------- Ninja Form "Karriere-Bewerbung" ----------
 * Stil fuer das Markup von Ninja Forms und Multi-Part Forms.
 */

.k-nf {
  width: 100%;
  max-width: 37.5rem;
  color: var(--k-text);
  text-align: left;
}

/* In der Stellenanzeige ueber die volle Breite, Chips nebeneinander (Figma 102:620) */
.k-stelle .k-nf {
  max-width: none;
}

.k-stelle .k-nf .k-nf-chips .nf-field-element ul {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.k-stelle .k-nf .k-nf-chips .nf-field-element li:last-child:nth-child(odd) {
  grid-column: auto;
}

/* Eigener Fortschritt (js/bewerbung-nf.js) statt des durchgehenden Balkens */
.k-nf .nf-progress-container {
  display: none;
}

.k-nf-fortschritt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.k-nf-fortschritt__balken {
  display: flex;
  gap: 0.375rem;
}

.k-nf-fortschritt__balken span {
  width: 3.5rem;
  height: 0.375rem;
  border-radius: 1000px;
  background: rgba(13, 124, 193, 0.3);
}

.k-nf-fortschritt__balken span.ist-erledigt {
  background: var(--k-blau);
}

.k-nf-fortschritt__text {
  color: var(--k-gedaempft);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 480px) {
  .k-nf-fortschritt__balken span {
    width: 2rem;
  }
}

.k-nf .nf-input-limit,
.k-nf .nf-fu-progress {
  display: none;
}

.k-nf .html-container .nf-field-element p {
  margin: 0;
}

.k-nf .nf-form-title,
.k-nf .nf-form-fields-required,
.k-nf .nf-breadcrumbs {
  display: none;
}

/* Fortschritt */
.k-nf .nf-progress-container {
  height: 0.375rem;
  margin: 0 0 1.5rem;
  border-radius: 1000px;
  background: rgba(13, 124, 193, 0.3);
  overflow: hidden;
}

.k-nf .nf-progress {
  height: 100%;
  border-radius: 1000px;
  background: var(--k-blau);
  transition: width var(--k-uebergang);
}

/* Titel des Schritts */
.k-nf .nf-mp-header h3,
.k-nf .nf-mp-header {
  margin: 0 0 1.25rem;
  color: var(--k-blau);
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
}

.k-nf .nf-field-container {
  margin-bottom: 1.25rem;
}

.k-nf .nf-field-label label,
.k-nf .nf-field-label {
  color: var(--k-gedaempft);
  font-size: 0.9375rem;
  font-weight: 500;
}

.k-nf .nf-field-description {
  margin-top: 0.375rem;
  color: var(--k-gedaempft);
  font-size: 0.875rem;
}

/* Chips: Radio- und Checkbox-Listen */
.k-nf .k-nf-chips .nf-field-element ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.k-nf .k-nf-chips .nf-field-element li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.k-nf .k-nf-chips--reihe .nf-field-element ul {
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
}

.k-nf .k-nf-chips--reihe .nf-field-element li:last-child:nth-child(odd) {
  grid-column: auto;
}

.k-nf .k-nf-chips .nf-field-element li {
  position: relative;
  display: flex;
  margin: 0;
  padding: 0;
}

.k-nf .k-nf-chips .nf-field-element li input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.k-nf .k-nf-chips .nf-field-element li label {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 3.875rem;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--k-blau);
  border-radius: var(--k-radius);
  background: var(--k-flaeche);
  color: var(--k-blau);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background var(--k-uebergang), color var(--k-uebergang), box-shadow var(--k-uebergang);
}

.k-nf .k-nf-chips--reihe .nf-field-element li label {
  min-height: 3.125rem;
  padding: 0.875rem 1rem;
}

.k-nf .k-nf-chips .nf-field-element li:hover label {
  box-shadow: inset 0 0 0 1px var(--k-blau);
}

.k-nf .k-nf-chips .nf-field-element li input:focus-visible + label {
  outline: 2px solid var(--k-blau);
  outline-offset: 2px;
}

.k-nf .k-nf-chips .nf-field-element li input:checked + label,
.k-nf .k-nf-chips .nf-field-element li.nf-checked-label label,
.k-nf .k-nf-chips .nf-field-element label.nf-checked-label {
  background: var(--k-blau);
  color: var(--k-weiss);
}

.k-nf .k-nf-chips .nf-field-element li input:checked + label::before {
  content: "✓";
}

@media (max-width: 420px) {
  .k-nf .k-nf-chips:not(.k-nf-chips--reihe) .nf-field-element ul {
    grid-template-columns: 1fr;
  }
}

/* Felder */
.k-nf .nf-form-content input.ninja-forms-field:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="file"]),
.k-nf .nf-form-content textarea.ninja-forms-field,
.k-nf input[type="text"],
.k-nf input[type="email"],
.k-nf input[type="tel"],
.k-nf textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #8fa0ad;
  border-radius: 12px;
  background: var(--k-weiss);
  color: var(--k-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.k-nf textarea {
  min-height: 4.25rem;
  height: auto;
}

.k-nf input[type="text"]:focus,
.k-nf textarea:focus {
  border-color: var(--k-blau);
  outline: 2px solid var(--k-blau);
  outline-offset: 0;
}

/* Vorname und Nachname nebeneinander. Ninja Forms (mit Layout & Styles)
 * legt jedes Feld in eigene Huellen (nf-cell > nf-fields > nf-field), die
 * Felder sind also keine Geschwister. Der Abstand haengt deshalb am
 * Vornamen-Feld. */
.k-nf nf-field:has(> .k-nf-halb) {
  display: block;
  float: left;
  width: calc(50% - 0.375rem);
}

.k-nf nf-field:has(> .k-nf-f-vorname) {
  margin-right: 0.75rem;
}

.k-nf nf-field:has(> .k-nf-f-kontakt) {
  display: block;
  clear: both;
}

.k-nf .nf-field-container.k-nf-halb {
  width: 100%;
}

@media (max-width: 420px) {
  .k-nf nf-field:has(> .k-nf-halb) {
    float: none;
    width: 100%;
  }

  .k-nf nf-field:has(> .k-nf-f-vorname) {
    margin-right: 0;
  }
}

.k-nf .checkbox-container .nf-field-label label {
  color: var(--k-gedaempft);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.k-nf input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--k-blau);
}

/* Upload */
.k-nf .nf-fu-fileinput-button,
.k-nf .file_upload-container .nf-field-element > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px dashed #8fa0ad;
  border-radius: 12px;
  background: var(--k-weiss);
  color: var(--k-blau);
  font-weight: 500;
  cursor: pointer;
}

/* Fehler */
.k-nf .nf-error .ninja-forms-field,
.k-nf .nf-error input[type="text"],
.k-nf .nf-error textarea {
  border-color: var(--k-fehler);
}

.k-nf .nf-error-msg,
.k-nf .nf-error-required-error,
.k-nf .nf-form-errors .nf-error-msg {
  margin-top: 0.375rem;
  color: var(--k-fehler);
  font-size: 0.875rem;
}

.k-nf .nf-error.k-nf-chips .nf-field-element ul {
  border-radius: var(--k-radius);
  box-shadow: 0 0 0 2px var(--k-fehler);
}

/* Weiter, Zurueck, Abschicken */
.k-nf .nf-next-previous {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.k-nf .nf-next-previous li {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.k-nf .nf-next-previous .nf-next-item,
.k-nf .nf-next-previous .k-nf-absenden-item {
  margin-left: auto;
}

.k-nf .k-nf-absenden-item .nf-field-container {
  margin: 0;
}

.k-nf .nf-next-previous .nf-next {
  padding-right: 3.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
}

.k-nf .nf-next-previous .nf-previous {
  padding-left: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23607484' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left center;
  min-height: 2.75rem;
}

.k-nf .nf-next-item {
  margin-left: auto;
}

.k-nf .nf-previous-item {
  margin-right: auto;
}

.k-nf .ninja-forms-req-symbol {
  display: none;
}

.k-nf .nf-next,
.k-nf input[type="submit"],
.k-nf .submit-container input[type="button"] {
  min-height: 3.375rem;
  padding: 1rem 2rem;
  border: 1px solid var(--k-blau);
  border-radius: var(--k-radius);
  background: var(--k-blau);
  color: var(--k-weiss);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
}

.k-nf .nf-next:hover,
.k-nf input[type="submit"]:hover {
  background: var(--k-blau-dunkel);
  border-color: var(--k-blau-dunkel);
}

.k-nf .nf-previous {
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--k-gedaempft);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.k-nf .nf-previous:hover {
  color: var(--k-blau);
}

/* Zwischenschritt und Bestaetigung */
.k-nf-zwischen {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.k-nf-zwischen p {
  margin: 0;
}

.k-nf-zwischen__pill {
  align-self: flex-start;
}

.k-nf-danke {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.k-nf-danke .k-danke__icon {
  font-size: 2rem;
  line-height: 1;
}

.k-nf-danke p {
  margin: 0;
}

.k-nf-danke .k-button {
  align-self: flex-start;
}

/* ---------- Korrekturen aus der Layout-Pruefung ---------- */

/* Fixierte Navigation unter 1024 px: Inhalt beginnt darunter */
@media (max-width: 1024px) {
  body.k-bereich main {
    padding-top: 4.5rem;
  }
}

/* Globale nav-Regeln des Themes nicht auf Breadcrumb und Sprungmarken anwenden */
.k nav {
  display: block;
  flex-direction: initial;
  justify-content: initial;
  align-items: initial;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: inherit;
}

.k nav.k-sprung {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: var(--k-abstand-s);
}

/* Kein Leerraum zwischen letzter Section und Footer */
body.k-bereich .footer-wrapper {
  margin-top: 0;
}

/* Abstand Hero -> erste Section wie Figma */
.k-seite > .k-hero + .k-section:not(.k-section--flaeche):not(.k-section--blau) {
  padding-top: var(--k-abstand-l);
}

/* Buttons in Stapeln nicht strecken */
.k-stapel > .k-button,
.k-stapel > .k-link {
  align-self: flex-start;
}

/* Platzhalter auf Flaechen sichtbar */
.k-section--flaeche .k-platzhalter {
  background: var(--k-weiss);
}

.k-stelle__standortbild.k-platzhalter {
  display: grid;
  min-height: 15rem;
}

/* Standortkarten wie Figma */
.k-standortkarte .k-karte__titel {
  color: var(--k-text);
  font-size: 1.0625rem;
  font-weight: 700;
}

/* Umbrueche in Ueberschriften ausgleichen */
.k-h1,
.k-h2,
.k-h3,
.k-schritt__titel,
.k-karte__titel {
  text-wrap: balance;
}

.k-lead,
.k-intro {
  text-wrap: pretty;
}

/* Ninja Form: versteckte Felder ohne Abstand, Nachrichtenfeld, Kontaktwege in einer Reihe */
.k-nf .nf-field-container.hidden-container {
  margin: 0;
}

/* Layout & Styles gibt jedem versteckten Feld eine eigene Zeile mit Abstand */
.k-nf .nf-row:not(:has(.nf-field-container:not(.hidden-container))) {
  display: none;
}

/* Layout & Styles setzt Rahmen und Hoehe des Textfelds mit ID-Selektor */
.k-nf textarea.ninja-forms-field {
  height: 7rem !important;
  border: 1px solid #8fa0ad !important;
}

.k-nf .k-nf-chips--reihe .nf-field-element ul {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

/* Links im weissen Formular auf blauer Flaeche blau, Titelabstand einfach */
.k-section--blau .k-nf a:not([class]),
.k-section--blau .k-karte a:not([class]) {
  color: var(--k-blau);
  text-decoration: underline;
}

.k-nf .nf-mp-header h3 {
  margin-bottom: 0;
}

.k-nf .k-nf-chips--reihe .nf-field-element ul {
  grid-auto-columns: minmax(0, 1fr);
}

/* Fokus im weissen Formular auf blauer Flaeche blau */
.k-section--blau .k-nf :focus-visible,
.k-section--blau .k-karte :focus-visible {
  outline-color: var(--k-blau);
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  .k *,
  .k *::before,
  .k *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Seite nur mit Bewerbungsformular: ganze Seite blau, auch hinter dem Footer */
html:has(body.k-ganz-blau),
body.k-ganz-blau {
  background: var(--k-blau);
}

/* ---------- Stellenkarte quer (Figma: Entwuerfe Stellenkacheln, Vorschlag 5) ----------
 * Breite Karten: Foto links ueber die volle Hoehe, Inhalt rechts. Die Karte
 * entscheidet nach ihrer eigenen Breite, nicht nach dem Bildschirm, damit sie
 * auch in schmalen Spalten (Einstiegswege) richtig aussieht.
 */
.k-raster > li:has(> .k-stellenkarte) {
  container-type: inline-size;
}

.k-stellenkarte .k-gedaempft {
  margin: 0 0 0.75rem; /* mit dem gap mindestens 24 px bis zum Link */
  font-size: 0.9375rem;
}

.k-stellenkarte .k-karte__inhalt {
  gap: 0.75rem;
  padding: 1.5rem;
}

.k-stellenkarte .k-karte__inhalt > .k-link {
  margin-top: auto;
}

@container (min-width: 34rem) {
  .k-stellenkarte {
    flex-direction: row;
  }

  .k-stellenkarte .k-karte__bild {
    flex: 0 0 220px;
    width: 220px;
    height: auto;
    min-height: 13rem;
    align-self: stretch;
  }

  .k-stellenkarte .k-karte__inhalt {
    padding: 1.5rem 1.75rem;
  }
}

/* Werte wie Figma (Entwuerfe Stellenkacheln, Vorschlag 5) */
.k-stellenkarte {
  border-color: #cfe0ec;
}

.k-stellenkarte__titel {
  line-height: 1.25;
}

.k-stellenkarte .k-gedaempft {
  line-height: 1.35;
}

.k-stellenkarte .k-pill {
  padding: 0.3125rem 0.75rem; /* 5 / 12 */
  font-size: 0.8125rem; /* 13 */
  line-height: 1.2;
}

/* Letzte Kachel: Initiativbewerbung */
.k-stellen-initiativ {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border-color: var(--k-blau);
  background: var(--k-blau);
  color: var(--k-weiss);
  text-decoration: none;
  transition: background var(--k-uebergang);
}

.k-stellen-initiativ:hover {
  background: #0b6aa6;
}

.k-stellen-initiativ__text {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.k-stellen-initiativ__titel {
  font-size: clamp(1.5rem, 1.35rem + 0.5vw, 1.625rem);
  font-weight: 700;
  line-height: 1.18;
}

.k-stellen-initiativ .k-text {
  margin: 0;
  color: var(--k-weiss);
  font-size: 1rem; /* 16 */
  line-height: 1.45;
}

.k-stellen-initiativ__pfeil .k-icon {
  width: 1.375rem; /* 22 */
  height: 1.375rem;
  stroke-width: 2.75;
}

.k-stellen-initiativ__pfeil {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1000px;
  background: var(--k-weiss);
  color: var(--k-blau);
  transition: transform var(--k-uebergang);
}

.k-stellen-initiativ:hover .k-stellen-initiativ__pfeil {
  transform: translateX(3px);
}

.k-stellen-initiativ:focus-visible {
  outline: 3px solid var(--k-text);
  outline-offset: 3px;
}

/* Ab zwei Spalten sind alle Kacheln gleich hoch, nicht nur je Reihe.
 * Steht die letzte Kachel allein in einer Reihe, nimmt sie die ganze Breite. */
@media (min-width: 641px) {
  .k-stellen-raster {
    grid-auto-rows: 1fr;
  }

  .k-stellen-raster > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
