/* tn-medien.de – zentrales Stylesheet, mobile first.
   Grundregeln gelten für das Handy, größere Bildschirme ergänzen ab
   48em (768 px), 62em (992 px) und 75em (1200 px). */

@font-face {
  font-family: "Archivo";
  src: url("../schrift/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../schrift/archivo-kursiv.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #172231;
  --papier: #F3F5F8;
  --weiss: #FFFFFF;
  --text: #1E2836;
  --grau: #4F5A6D;
  --linie: #D3D9E2;
  --linie-stark: #B8C1CE;
  --beere: #A2266A;
  --beere-dunkel: #7E1D52;
  --orange: #F8B253;
  --auf-dunkel: #EEF2F7;
  --auf-dunkel-grau: #A9B4C5;
  --linie-dunkel: #2E3B4F;
  --platzhalter: #DCE2EA;
  --logo-blau: #8AABD8;
  --logo-gruen: #9BCE9A;

  --rand: clamp(20px, 5vw, 64px);
  --breite: 1280px;
  --abstand: clamp(64px, 9vw, 104px);
  --h1: clamp(34px, 5vw, 56px);
  --h2: clamp(28px, 3.2vw, 40px);
}

/* ---------- Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--papier);
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4;
  hyphenate-limit-chars: 10 4 4;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--platzhalter); }
h1, h2, h3 { margin: 0; color: var(--navy); hyphens: manual; }
h2 { font-size: var(--h2); line-height: 1.1; font-weight: 620; font-stretch: 125%; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--beere); text-underline-offset: .15em; }
a:hover { color: var(--beere-dunkel); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sprunglink {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--weiss); color: var(--navy); padding: 10px 16px; font-weight: 600;
}
.sprunglink:focus { top: 12px; }

.rahmen { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.abschnitt { padding-block: var(--abstand); }
.abschnitt-ohne-oben { padding-top: 0; }
.abschnitt-klein { padding-block: 48px 72px; }
.mitte { text-align: center; margin-top: 40px; }

/* ---------- Knöpfe und Links */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  background: var(--beere); color: var(--weiss); border: 0; border-radius: 999px;
  font-weight: 600; text-decoration: none; text-align: center; line-height: 1.3;
  transition: background-color .15s;
}
.knopf:hover { background: var(--beere-dunkel); color: var(--weiss); }
.knopf-umriss {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 20px;
  border: 1px solid var(--auf-dunkel-grau); border-radius: 999px;
  color: var(--auf-dunkel); text-decoration: none;
}
.knopf-umriss-dunkel {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 26px;
  border: 1.5px solid var(--navy); border-radius: 999px;
  color: var(--navy); font-weight: 600; text-decoration: none;
}
.knopf-umriss-dunkel:hover { background: var(--navy); color: var(--weiss); }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.pfeil { flex: none; }

/* ---------- Kopfbereich (immer dunkel) */
.kopfband { background: var(--navy); color: var(--auf-dunkel); overflow: hidden; }
/* Kopfleiste bleibt beim Scrollen oben stehen */
.kopfleiste {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy); color: var(--auf-dunkel);
  transition: box-shadow .2s;
}
.kopfleiste.gescrollt { box-shadow: 0 2px 16px rgba(10, 16, 26, .35); }
.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; padding-block: 14px; position: relative;
}
.seite-team .kopfleiste, .seite-stories .kopfleiste, .seite-kontakt .kopfleiste,
.seite-impressum .kopfleiste, .seite-datenschutz .kopfleiste, .seite-404 .kopfleiste { border-bottom: 1px solid var(--linie-dunkel); }
.marke { display: flex; align-items: center; gap: 12px; color: var(--auf-dunkel); text-decoration: none; }
.marke span { font-size: 18px; font-weight: 640; font-stretch: 125%; letter-spacing: .01em; }
.marke:hover { color: var(--weiss); }
.logo { width: 32px; height: 32px; flex: none; }

.menu-knopf {
  display: none; width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; align-items: center; justify-content: center;
}
.menu-symbol, .menu-symbol::before, .menu-symbol::after {
  display: block; width: 22px; height: 2px; background: var(--auf-dunkel); border-radius: 2px;
  transition: transform .2s, background-color .2s;
}
.menu-symbol { position: relative; }
.menu-symbol::before, .menu-symbol::after { content: ""; position: absolute; left: 0; }
.menu-symbol::before { top: -7px; }
.menu-symbol::after { top: 7px; }
.menu-knopf[aria-expanded="true"] .menu-symbol { background: transparent; }
.menu-knopf[aria-expanded="true"] .menu-symbol::before { transform: translateY(7px) rotate(45deg); }
.menu-knopf[aria-expanded="true"] .menu-symbol::after { transform: translateY(-7px) rotate(-45deg); }

.hauptmenu ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.hauptmenu a { color: var(--auf-dunkel); text-decoration: none; font-weight: 500; }
.hauptmenu a:not(.knopf-umriss) { display: inline-block; padding: 10px 0; }
.hauptmenu a[aria-current="page"]:not(.knopf-umriss) { box-shadow: inset 0 -2px var(--orange); }
.hauptmenu a:hover { color: var(--weiss); }
.hauptmenu .knopf-umriss:hover { border-color: var(--weiss); }

/* Handy: Menü hinter dem Knopf (nur mit JavaScript, sonst sichtbar) */
.js .menu-knopf { display: inline-flex; }
.js .hauptmenu {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: var(--navy); border-top: 1px solid var(--linie-dunkel);
  padding: 8px var(--rand) 24px;
  max-height: calc(100dvh - 76px); overflow-y: auto;
}
.js .hauptmenu.offen { display: block; }
.js .hauptmenu ul { flex-direction: column; align-items: stretch; gap: 0; }
.js .hauptmenu li { border-bottom: 1px solid var(--linie-dunkel); }
.js .hauptmenu li:last-child { border: 0; padding-top: 16px; }
.js .hauptmenu a:not(.knopf-umriss) { display: block; padding: 14px 0; font-size: 19px; }
.js .hauptmenu .knopf-umriss { justify-content: center; width: 100%; min-height: 52px; font-size: 18px; }
.no-js .kopf { flex-wrap: wrap; }

/* ---------- Hero (Startseite) */
.hero { display: flex; flex-direction: column-reverse; gap: 8px; padding-block: 32px 64px; }
.hero-bild { display: none; }
.hero-logo { width: 160px; height: auto; }
.dachzeile {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
  hyphens: manual;
}
.hero h1, .seitenkopf h1 {
  margin-top: 18px; color: var(--auf-dunkel);
  font-size: var(--h1); line-height: 1.06; font-weight: 620; font-stretch: 125%; letter-spacing: -.01em;
}
.hero h1 { font-size: clamp(36px, 5.6vw, 66px); line-height: 1.05; max-width: 15ch; }
.einleitung { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--auf-dunkel-grau); max-width: 36rem; }
.vorteile { margin-top: 26px; display: grid; gap: 12px; font-weight: 500; }
.vorteile li { display: flex; align-items: flex-start; gap: 12px; }
.vorteile svg { flex: none; margin-top: 3px; color: var(--orange); }
.hero-aktion { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.vertrauen { font-size: 15px; color: var(--auf-dunkel-grau); }

/* Logo-Animation, nur wenn erwünscht */
@media (prefers-reduced-motion: no-preference) {
  .hero-logo .seg { transform-box: view-box; transform-origin: 500px 500px; animation: blende 1.25s cubic-bezier(.2,.75,.15,1) both; }
  .hero-logo .s2 { animation-delay: .08s; }
  .hero-logo .s3 { animation-delay: .16s; }
  .hero-logo .kern { transform-box: view-box; transform-origin: 500px 500px; animation: kern .8s cubic-bezier(.3,1.4,.5,1) .55s both; }
}
@keyframes blende { from { opacity: 0; transform: rotate(-80deg) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes kern { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }

/* ---------- Seitenkopf der Unterseiten */
.seitenkopf { padding-block: 48px 64px; max-width: calc(52rem + 2 * var(--rand)); margin-left: max(0px, calc((100% - var(--breite)) / 2)); }
.story-kopf { max-width: var(--breite); margin-inline: auto; }
.zurueck { display: inline-block; margin-bottom: 20px; color: var(--auf-dunkel-grau); font-size: 15px; font-weight: 500; text-decoration: none; }
.zurueck:hover { color: var(--weiss); }
.kennzahlen { margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 20px 24px; max-width: 900px; }
.kennzahlen div { display: flex; flex-direction: column-reverse; }
.kennzahlen dd { margin: 0; font-size: clamp(26px, 4vw, 44px); line-height: 1; font-weight: 650; font-stretch: 125%; color: var(--orange); }
.kennzahlen dt { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--auf-dunkel-grau); hyphens: manual; }
@media (min-width: 48em) { .kennzahlen { gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .kennzahlen dt { font-size: 14px; } }

/* ---------- Nutzen */
.nutzen { margin-top: 40px; display: grid; gap: 40px; }
.nutzen-punkt { border-top: 1px solid var(--linie); padding-top: 24px; }
.nummer { font-size: 15px; font-weight: 600; color: var(--grau); }
.nutzen-punkt h3 { margin-top: 8px; font-size: 24px; }
.kern { margin-top: 6px; color: var(--beere); font-weight: 600; }
.nutzen-punkt p + p:not(.kern) { margin-top: 14px; }
.angebot { font-size: 15px; color: var(--grau); }
.angebot strong { color: var(--navy); }

/* ---------- Branchen */
.branchen { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.branche { background: var(--weiss); border: 1px solid var(--linie); min-width: 0; }
.branche img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.branche-name { display: flex; align-items: flex-start; gap: 10px; padding: 14px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.farbpunkt { flex: none; width: 10px; height: 10px; margin-top: .35em; }
.farbe-blau { background: var(--logo-blau); }
.farbe-orange { background: var(--orange); }
.farbe-gruen { background: var(--logo-gruen); }
.farbe-beere { background: var(--beere); }

/* ---------- Ablauf */
.band-weiss { background: var(--weiss); border-block: 1px solid var(--linie); }
.ablauf { margin-top: 40px; display: grid; gap: 36px; }
.schritt-nr {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--orange); font-weight: 650; font-stretch: 125%; font-size: 18px;
}
.ablauf h3 { margin-top: 18px; }
.ablauf p { margin-top: 8px; }

/* ---------- Projekte */
.projekte { display: grid; gap: 24px; }
.gross { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; max-width: 16ch; hyphens: auto; overflow-wrap: normal; }
.einleitung-dunkel { font-size: 18px; max-width: 38rem; margin-bottom: 28px; }
.einleitung-grau { margin-top: 12px; font-size: 18px; color: var(--grau); max-width: 44rem; }

/* ---------- Referenzen-Laufband */
.referenzen { border-block: 1px solid var(--linie); padding-block: 36px; overflow: hidden; }
.dachzeile-grau { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grau); font-stretch: 100%; line-height: 1.4; margin-bottom: 22px; }
.laufband { display: flex; width: max-content; }
.laufband-spur { display: flex; gap: 16px; padding-right: 16px; flex: none; }
.laufband-spur li {
  flex: none; display: flex; align-items: center; justify-content: center; height: 64px; min-width: 160px; padding: 0 24px;
  border: 1px dashed var(--linie-stark); font-size: 15px; font-weight: 600; color: var(--grau); white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .laufband { animation: lauf 70s linear infinite; }
  .laufband:hover { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .laufband { width: auto; }
  .laufband-spur { flex-wrap: wrap; padding-inline: var(--rand); }
  .laufband-spur[aria-hidden] { display: none; }
}
@keyframes lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Team (Startseite) */
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.team-raster { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.team-raster img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person-karte { display: block; color: inherit; text-decoration: none; }
.person-karte img { transition: filter .2s; }
.person-karte:hover img { filter: brightness(1.06) saturate(1.05); }
.person-karte:hover .person-name { color: var(--beere); text-decoration: underline; text-underline-offset: .18em; }
.person-karte .person-name { display: block; }
.person:target h2 { color: var(--beere); }

.nach-oben {
  position: fixed; right: 16px; bottom: 16px; z-index: 25;
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--navy); color: var(--weiss);
  box-shadow: 0 4px 16px rgba(10, 16, 26, .3); border: 1px solid var(--linie-dunkel);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s, transform .2s, background-color .15s;
}
.nach-oben.sichtbar { opacity: 1; transform: none; pointer-events: auto; }
.nach-oben:hover { background: var(--beere); color: var(--weiss); }
.nach-oben[hidden] { display: none; }
@media (min-width: 48em) { .nach-oben { right: 24px; bottom: 24px; width: 52px; height: 52px; } }

.person-name { margin-top: 12px; font-size: 17px; font-weight: 650; color: var(--navy); line-height: 1.3; }
.person-rolle { margin-top: 2px; font-size: 14px; color: var(--grau); line-height: 1.45; hyphens: manual; }

/* ---------- Karten (Success Stories) */
.karten { margin-top: 32px; display: grid; gap: 20px; }
.karte {
  display: flex; flex-direction: column; background: var(--weiss); border: 1px solid var(--linie);
  color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.karte:hover { color: inherit; border-color: var(--linie-stark); box-shadow: 0 8px 24px rgba(23, 34, 49, .08); }
.karte img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.karte-text { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex-grow: 1; }
.karte-kunde { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grau); line-height: 1.4; }
.karte-titel { font-size: 20px; line-height: 1.3; font-weight: 650; color: var(--navy); }
.karte:hover .karte-titel { text-decoration: underline; text-decoration-color: var(--beere); text-underline-offset: .18em; }
.karte-leistungen { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--beere); }
.karte[hidden] { display: none; }

.filter { display: flex; flex-wrap: wrap; gap: 10px; }
.filter[hidden] { display: none; }
.filter button {
  min-height: 44px; padding: 8px 18px; border: 1px solid var(--linie-stark); border-radius: 999px;
  background: transparent; color: var(--navy); font-size: 15px; font-weight: 500;
}
.filter button:hover { border-color: var(--navy); }
.filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--weiss); }
.filter-leer { margin-top: 24px; color: var(--grau); }

/* ---------- Abschluss im Fußbereich */
.fuss { background: var(--navy); color: var(--auf-dunkel-grau); }
.abschluss { padding-top: var(--abstand); }
.abschluss h2 { color: var(--auf-dunkel); font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; max-width: 16ch; }
.abschluss-klein h2 { font-size: var(--h2); }
.abschluss-aktion { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.abschluss-mail { color: var(--auf-dunkel); font-size: 20px; font-weight: 560; font-stretch: 125%; text-decoration-color: var(--orange); }
.abschluss-mail:hover { color: var(--weiss); }
.fuss-zeile {
  display: flex; flex-direction: column; gap: 12px; padding-block: 28px 36px; font-size: 15px;
}
.abschluss + .fuss-zeile { margin-top: 72px; }
.fuss-zeile { border-top: 1px solid var(--linie-dunkel); }
.seite-team .fuss-zeile, .seite-start .fuss-zeile { border-top-color: var(--linie-dunkel); }
.fuss a, .cookie-link { color: var(--auf-dunkel); }
.fuss a:hover, .cookie-link:hover { color: var(--weiss); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.fuss nav a, .cookie-link { display: inline-block; padding: 6px 0; }
.cookie-link { background: none; border: 0; text-decoration: underline; text-underline-offset: .15em; font-size: inherit; }

/* ---------- Aufruf (heller Abschluss vor dem Fuß) */
.aufruf-hell { background: var(--weiss); border-top: 1px solid var(--linie); }
.aufruf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: 64px; }
.aufruf-innen > div { max-width: 40rem; }
.aufruf p { margin-top: 12px; font-size: 18px; color: var(--grau); }

/* ---------- Team-Seite */
.person { display: grid; gap: 20px; padding-block: 36px; border-top: 1px solid var(--linie); }
.person:first-child { border-top: 0; padding-top: 0; }
.person img { width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: cover; }
.person h2 { font-size: 26px; line-height: 1.2; font-weight: 650; font-stretch: 112%; }
.person-rolle-gross { margin-top: 8px; color: var(--beere); font-weight: 600; line-height: 1.45; hyphens: manual; }
.person-rolle-gross + p { margin-top: 16px; max-width: 42rem; }

/* ---------- Story */
.story { padding-block: 40px 64px; }
.story-medium { max-width: 1100px; }
.story-medium > img, .video-datei { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy); }
.story-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; color: var(--grau); }
.story-meta strong { color: var(--navy); }
.story-text { max-width: 48rem; margin-top: 36px; display: grid; gap: 36px; }
.story-text h2 { font-size: 24px; font-weight: 650; font-stretch: 112%; line-height: 1.25; }
.story-text h2 + * { margin-top: 10px; }
.story-text p + p { margin-top: 12px; }
.ergebnis { background: var(--navy); color: var(--auf-dunkel); padding: 28px; }
.story-text .ergebnis h2 { font-size: 12px; font-weight: 600; font-stretch: 100%; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.story-text .ergebnis h2 + * { margin-top: 0; }
.ergebnis-wert { margin: 10px 0 14px; font-size: clamp(40px, 6vw, 60px); line-height: 1; font-weight: 600; font-stretch: 125%; color: var(--orange); }
.ergebnis p:not(.ergebnis-wert) { font-weight: 500; }
.zitat { margin: 24px 0 0; padding-left: 20px; border-left: 3px solid var(--orange); }
.zitat p { font-style: italic; color: var(--text); }
.zitat footer { margin-top: 6px; font-size: 14px; color: var(--grau); }

/* Slider: funktioniert auch ohne JavaScript per Wischen und Scrollen */
.slider { position: relative; }
.slider-spur {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain; background: var(--navy);
}
.slider-spur::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.slider-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.slider-pfeil[hidden] { display: none; }
.slider-pfeil:hover { background: var(--weiss); }
.slider-zurueck { left: 10px; }
.slider-weiter { right: 10px; }
.slider-punkte { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.slider-punkte[hidden] { display: none; }
.slider-punkte button { width: 28px; height: 28px; border: 0; background: none; position: relative; padding: 0; }
.slider-punkte button::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--linie-stark); transition: background-color .2s, transform .2s;
}
.slider-punkte button[aria-current="true"]::after { background: var(--beere); transform: scale(1.2); }

/* Video und Kalender erst nach Einwilligung */
.video-einwilligung { position: relative; background: var(--navy); }
.video-einwilligung > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .55; }
.einwilligung-hinweis {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 16px; text-align: center; color: var(--weiss);
}
.einwilligung-hinweis p { max-width: 30rem; font-size: 14px; line-height: 1.45; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.einwilligung-hinweis a { color: var(--weiss); font-weight: 600; }
.play {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px 12px 18px;
  border: 0; border-radius: 999px; background: var(--beere); color: var(--weiss); font-weight: 600;
}
.play:hover { background: var(--beere-dunkel); }
.video-rahmen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.kalender-einwilligung {
  margin-top: 20px; min-height: 380px; padding: 28px; background: var(--weiss); border: 1px dashed var(--linie-stark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center;
}
.kalender-einwilligung p { max-width: 26rem; color: var(--grau); }
.kalender-einwilligung.geladen { padding: 0; border: 1px solid var(--linie); display: block; min-height: 0; }
.kalender-einwilligung .calendly-inline-widget { width: 100%; height: 700px; }

/* ---------- Kontakt */
.kontakt-raster { display: grid; gap: 48px; }
.titel-mittel { font-size: 26px; }
.formular { display: grid; gap: 18px; align-content: start; }
.feld label { display: block; font-size: 15px; font-weight: 600; color: var(--navy); }
.feld input, .feld textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 15px;
  font: inherit; font-size: 16px; color: var(--text); background: var(--weiss);
  border: 1px solid var(--linie-stark); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.feld textarea { resize: vertical; min-height: 140px; }
.feld input:focus, .feld textarea:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--navy); }
.feld [aria-invalid="true"] { border-color: var(--beere); box-shadow: inset 4px 0 var(--beere); }
.feld-fehler { margin-top: 6px; font-size: 14px; color: var(--beere); font-weight: 500; }
.feld-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feld-haken { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--grau); }
.feld-haken input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--beere); }
.formular-fuss .knopf[disabled] { opacity: .6; cursor: wait; }
.meldung { padding: 14px 16px; font-weight: 500; }
.meldung[hidden] { display: none; }
.meldung-erfolg { background: #E7F4E6; color: #1F4D1E; border-left: 4px solid var(--logo-gruen); }
.meldung-fehler { background: #F8E7EF; color: var(--beere-dunkel); border-left: 4px solid var(--beere); }
.hinweis-intern { font-size: 14px; color: #6B7688; }

.ansprechpartner { margin-top: 32px; display: grid; gap: 28px; }
.ansprechpartner li { display: flex; align-items: center; gap: 20px; }
.ansprechpartner img { width: 96px; height: 96px; flex: none; object-fit: cover; }
.ansprechpartner .person-name { margin-top: 0; }
.person-region { color: var(--beere); font-weight: 600; line-height: 1.4; hyphens: manual; }
.person-kontakt { margin-top: 4px; color: var(--grau); }
.allgemein { margin-top: 32px; font-size: 18px; }
.allgemein a { font-weight: 600; }

/* ---------- Rechtstexte und 404 */
.rechtstext { max-width: calc(48rem + 2 * var(--rand)); margin-left: max(0px, calc((100% - var(--breite)) / 2)); }
.rechtstext h2 { margin-top: 36px; font-size: 24px; font-weight: 650; font-stretch: 112%; }
.rechtstext h2 + p { margin-top: 10px; }
.linkliste { display: grid; gap: 12px; font-size: 19px; font-weight: 600; }

/* ---------- Klaro (Einwilligungsbanner) im Design der Website */
.klaro { --font-family: "Archivo", system-ui, sans-serif; --title-font-family: "Archivo", system-ui, sans-serif;
  --green1: #A2266A; --green2: #7E1D52; --green3: #A2266A; --blue1: #172231; --blue2: #2E3B4F;
  --dark1: #172231; --dark2: #2E3B4F; --dark3: #4F5A6D; --light1: #FFFFFF; --light2: #F3F5F8; --light3: #D3D9E2;
  --button-text-color: #FFFFFF; --border-radius: 0; --font-size: 15px; }
.klaro .cookie-notice:not(.cookie-modal-notice) { box-shadow: 0 -4px 24px rgba(23, 34, 49, .2); }
.klaro .cookie-notice .cn-body, .klaro .cookie-modal .cm-modal { font-family: var(--font-family); }
.klaro .cm-btn { border-radius: 999px !important; padding: 10px 18px !important; font-weight: 600; }
.klaro .cookie-notice .cn-body p, .klaro .cookie-modal p { line-height: 1.5; }
.klaro .cookie-modal .cm-modal.cm-klaro { border-radius: 0; }

/* ======================================================= Tablet ab 768 px */
@media (min-width: 48em) {
  .hero-bild { display: flex; }
  .person-name { font-size: 19px; margin-top: 16px; }
  .person-rolle { font-size: 15px; }
  .branchen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .branche-name { font-size: 17px; padding: 16px 18px; }
  .team-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .karten-drei { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .ablauf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .person { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; padding-block: 40px; }
  .person img { max-width: 360px; }
  .person:first-child { padding-top: 0; }
  .ansprechpartner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ansprechpartner img { width: 120px; height: 120px; }
  .fuss-zeile { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
  .fuss-mail { margin-right: auto; }
  .seitenkopf { padding-block: 64px 80px; }
  .story { padding-block: 56px 88px; }
  .slider-pfeil { width: 52px; height: 52px; }
  .slider-zurueck { left: 16px; }
  .slider-weiter { right: 16px; }
  .ergebnis { padding: 36px 40px; }
  .einwilligung-hinweis p { font-size: 15px; }
}

/* ======================================================= Desktop ab 992 px */
@media (min-width: 62em) {
  .js .menu-knopf { display: none; }
  .js .hauptmenu, .js .hauptmenu.offen { display: block; position: static; padding: 0; border: 0; background: none; }
  .js .hauptmenu ul { flex-direction: row; align-items: center; gap: 8px 32px; }
  .js .hauptmenu li { border: 0; }
  .js .hauptmenu li:last-child { padding-top: 0; }
  .js .hauptmenu a:not(.knopf-umriss) { display: inline-block; padding: 10px 0; font-size: 16px; }
  .js .hauptmenu .knopf-umriss { width: auto; min-height: 44px; font-size: 16px; padding: 10px 22px; }
  .kopf { min-height: 92px; padding-top: 24px; }

  .hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding-block: 48px 96px; }
  .hero-text { flex: 1 1 auto; max-width: 760px; }
  .hero-bild { flex: 0 0 auto; justify-content: flex-end; }
  .hero-logo { width: clamp(200px, 30vw, 460px); margin-right: clamp(-120px, -6vw, 0px); }
  .einleitung { font-size: 20px; }

  .nutzen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .branchen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .team-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .karten-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .projekte { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
  .einleitung-dunkel { font-size: 19px; margin-top: 6px; }
  .kontakt-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .ansprechpartner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .aufruf-innen { padding-block: 88px; }
  .abschluss + .fuss-zeile { margin-top: 96px; }
}
