/* ============================================================
   DMD Werkzeug-Service — Design-System
   Statisch, keine externen Ressourcen, Schriften lokal gehostet.
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

:root {
  --rot: #c4271d;
  --rot-dunkel: #a11f17;
  --rot-hell: #ef7361;
  --ink: #1c2024;
  --ink-2: #333a41;
  --grau: #5d646b;
  --grau-hell: #8a8f94;
  --linie: #dfe2e5;
  --flaeche: #f4f5f6;
  --flaeche-2: #eceef0;
  --weiss: #ffffff;

  --font-display: "Barlow Condensed", "Avenir Next Condensed", Impact, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 82px;
  --shadow: 0 2px 8px rgba(28, 32, 36, .08);
  --shadow-lg: 0 12px 40px rgba(28, 32, 36, .14);
  --transition: .2s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; font-family: var(--font-text); font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--rot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rot-dunkel); }
strong { color: var(--ink); font-weight: 650; }

.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.4rem, 7vw, 6rem) 0; }
.section--flaeche { background: var(--flaeche); }
.section--dunkel { background: var(--ink); color: #dde1e4; }
.section--dunkel h2, .section--dunkel h3 { color: #fff; }
.section--dunkel strong { color: #fff; }

.section-kopf { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-kopf p { color: var(--grau); font-size: 1.05rem; }
.section--dunkel .section-kopf p { color: #c0c6cb; }

.eyebrow {
  display: block;
  font-family: var(--font-text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: .9rem;
}
.section--dunkel .eyebrow, .hero .eyebrow { color: var(--rot-hell); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  min-height: 48px;
  font-family: var(--font-text);
  font-size: 1rem; font-weight: 650;
  white-space: nowrap;
  border: 2px solid var(--rot);
  border-radius: var(--radius);
  background: var(--rot); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--linie); }
.btn--ghost:hover { background: var(--flaeche); border-color: var(--grau-hell); color: var(--ink); }
.section--dunkel .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.section--dunkel .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--gross { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-reihe { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--linie);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 54px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .6rem .85rem;
  font-size: .97rem; font-weight: 550; color: var(--ink-2);
  text-decoration: none; border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--rot); background: var(--flaeche); }
.main-nav .nav-karriere a {
  color: var(--rot); font-weight: 650;
  border: 1.5px solid var(--rot);
}
.main-nav .nav-karriere a:hover { background: var(--rot); color: #fff; }

.header-kontakt { display: flex; align-items: center; gap: 1rem; flex: none; }
.header-tel {
  display: flex; flex-direction: column; line-height: 1.2;
  font-size: .95rem; font-weight: 650; color: var(--ink); text-decoration: none;
}
.header-tel span { font-size: .72rem; font-weight: 500; color: var(--grau); letter-spacing: .04em; }
.header-tel:hover { color: var(--rot); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: none; border: 1px solid var(--linie); border-radius: var(--radius);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 1000px) {
  .header-kontakt .header-tel { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff; padding: 1.5rem 1.2rem 3rem;
    transform: translateX(100%); transition: transform .25s ease, visibility .25s;
    overflow-y: auto;
    visibility: hidden;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .main-nav a { padding: .95rem .8rem; font-size: 1.15rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .main-nav .nav-karriere a { border: 2px solid var(--rot); border-radius: var(--radius); margin-top: 1rem; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,21,24,.92) 0%, rgba(18,21,24,.78) 38%, rgba(18,21,24,.42) 68%, rgba(18,21,24,.25) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  max-width: 44rem;
}
.hero h1 { color: #fff; }
.hero h1 .akzent { color: var(--rot-hell); display: block; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.22rem); color: #dbdfe2; max-width: 38rem; margin-bottom: 2rem; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); }
.hero-fakten {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-fakten div { color: #fff; }
.hero-fakten b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.hero-fakten span { font-size: .85rem; color: #c6ccd1; }

/* ---------- Karten / Grids ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.karte {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
a.karte { text-decoration: none; color: inherit; cursor: pointer; }
a.karte:hover { border-color: var(--grau-hell); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.karte-bild { aspect-ratio: 3 / 2; overflow: hidden; background: var(--flaeche-2); }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.karte-inhalt { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.karte-inhalt h3 { margin-bottom: .5rem; }
.karte-inhalt p { color: var(--grau); font-size: .97rem; }
.karte-link {
  margin-top: auto; padding-top: 1rem;
  font-weight: 650; font-size: .95rem; color: var(--rot);
}
.karte-link::after { content: " ›"; }

/* ---------- Leistungs-Listen ---------- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li {
  padding: .72rem 0 .72rem 1.9rem; position: relative;
  border-bottom: 1px solid var(--linie); font-size: 1rem;
}
.liste li:last-child { border-bottom: none; }
.liste li::before {
  content: ""; position: absolute; left: 0; top: 1.28rem;
  width: 8px; height: 8px; background: var(--rot);
}
.section--dunkel .liste li { border-color: rgba(255,255,255,.14); }

/* ---------- Split (Text + Bild) ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.split--breit { grid-template-columns: 1.05fr .95fr; }
@media (max-width: 860px) { .split--breit { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius-lg); width: 100%; }

/* ---------- Prozess-Schritte ---------- */
.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); counter-reset: schritt; }
.schritt { counter-increment: schritt; }
.schritt-bild { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.1rem; background: var(--flaeche-2); }
.schritt-bild img { width: 100%; height: 100%; object-fit: cover; }
.schritt h3 { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .45rem; }
.schritt h3::before {
  content: counter(schritt) ".";
  font-family: var(--font-text); font-size: .95rem; font-weight: 700; color: var(--rot);
}
.schritt p { color: var(--grau); font-size: .97rem; }
.section--dunkel .schritt p { color: #c0c6cb; }

/* ---------- Fakten-Zeile ---------- */
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.6rem 2rem; }
.fakt { border-top: 3px solid var(--rot); padding-top: 1rem; }
.fakt b { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; color: var(--ink); margin-bottom: .3rem; }
.fakt span { font-size: .93rem; color: var(--grau); }
.section--dunkel .fakt b { color: #fff; }
.section--dunkel .fakt span { color: #c0c6cb; }

/* ---------- Zitate ---------- */
.zitat {
  border-left: 3px solid var(--rot); padding: .3rem 0 .3rem 1.4rem;
  font-size: 1.1rem; color: var(--ink); font-style: normal;
}
.zitat footer { margin-top: .7rem; font-size: .9rem; color: var(--grau); }
.section--dunkel .zitat { color: #f0f2f3; }
.section--dunkel .zitat footer { color: #b9bfc4; }

/* ---------- Video ---------- */
.video-karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius-lg); overflow: hidden; }
.video-karte video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; display: block; }
.video-karte-text { padding: 1.1rem 1.3rem 1.4rem; }
.video-karte-text h4 { margin: 0 0 .25rem; }
.video-karte-text p { font-size: .9rem; color: var(--grau); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details {
  border-bottom: 1px solid var(--linie);
}
.faq summary {
  display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-text); font-size: 1.05rem; font-weight: 650; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--rot); font-weight: 400;
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--grau); max-width: 62ch; }

/* ---------- Stellen-Blöcke ---------- */
.stelle {
  border: 1px solid var(--linie); border-radius: var(--radius-lg);
  background: #fff; padding: clamp(1.5rem, 3vw, 2.2rem);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.stelle + .stelle { margin-top: 1.4rem; }
.stelle-kopf { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: baseline; justify-content: space-between; margin-bottom: .3rem; }
.stelle-kopf h3 { margin: 0; }
.pill {
  display: inline-block; padding: .3rem .75rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .03em;
  background: var(--flaeche); color: var(--ink-2); border-radius: 100px;
}
.pill--rot { background: rgba(196, 39, 29, .1); color: var(--rot-dunkel); }
.stelle-hook { font-size: 1.06rem; color: var(--ink); margin: .8rem 0 1.3rem; }
.stelle-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem 2.4rem; }
.stelle-spalten h4 { margin-bottom: .5rem; color: var(--ink); }
.stelle-spalten ul { margin: 0; padding-left: 1.1rem; font-size: .97rem; color: var(--grau); }
.stelle-spalten li { margin-bottom: .35rem; }
.stelle-fuss { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* ---------- Benefits ---------- */
.benefit {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
}
.benefit b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: .35rem; }
.benefit span { font-size: .95rem; color: var(--grau); }
.benefit--stark { border-color: var(--rot); border-width: 1px; box-shadow: inset 0 3px 0 var(--rot); }

/* ---------- Formular ---------- */
.formular-box {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-size: .93rem; font-weight: 650; color: var(--ink); margin-bottom: .4rem; }
.feld input, .feld select, .feld textarea {
  width: 100%; padding: .8rem .95rem;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  transition: border-color var(--transition);
}
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--rot); }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible {
  outline: 3px solid var(--rot); outline-offset: 2px;
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld--zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; }
.feld-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feld-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--grau); }
.feld-check input { width: 18px; height: 18px; flex: none; margin-top: .18rem; }
.form-hinweis { font-size: .88rem; color: var(--grau); margin-top: .9rem; }
.form-status { margin-top: 1rem; font-size: .95rem; border-radius: var(--radius); padding: 0; max-height: 0; overflow: hidden; }
.form-status.ok, .form-status.error { padding: .8rem 1rem; max-height: 20rem; }
.form-status.ok { background: #e8f4ec; color: #185c31; }
.form-status.error { background: #fdecea; color: #8d1e18; }

/* ---------- Kontakt-Kacheln ---------- */
.kontakt-kachel {
  display: flex; flex-direction: column; gap: .3rem;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem; text-decoration: none; color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
a.kontakt-kachel:hover { border-color: var(--rot); box-shadow: var(--shadow); }
.kontakt-kachel .label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grau); }
.kontakt-kachel .wert { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1.15; }
.kontakt-kachel .zusatz { font-size: .92rem; color: var(--grau); }

/* ---------- Sticky Bewerben-Bar (nur Karriere, mobil) ---------- */
.apply-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; gap: .6rem; padding: .7rem .9rem;
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom));
  background: var(--ink); border-top: 2px solid var(--rot);
}
.apply-bar.sichtbar { display: flex; }
.apply-bar .btn { flex: 1; min-height: 48px; }
.apply-bar .btn--tel {
  flex: none; width: 56px; padding: 0;
  background: transparent; border-color: rgba(255,255,255,.35); color: #fff;
  font-size: 1.3rem;
}
@media (min-width: 769px) { .apply-bar, .apply-bar.sichtbar { display: none; } }
body.hat-apply-bar { padding-bottom: 0; }
@media (max-width: 768px) { body.hat-apply-bar { padding-bottom: 92px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b6bcc2; padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.2rem; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #c3c9ce; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { font-size: .95rem; }
.site-footer li a { display: inline-block; padding: .35rem 0; min-height: 24px; }
.footer-logo img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-adresse { font-size: .95rem; line-height: 1.7; font-style: normal; }
.footer-unten {
  margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between;
  font-size: .87rem;
}
.footer-unten nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease var(--reveal-delay, 0s), transform .5s ease var(--reveal-delay, 0s); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hilfsklassen ---------- */
.text-zentriert { text-align: center; }
.max-lesbar { max-width: 68ch; }
.mt-gross { margin-top: clamp(2rem, 4vw, 3rem); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--rot); color: #fff; padding: .8rem 1.2rem;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 74ch; }
.rechtstext h2 { font-size: 1.5rem; margin-top: 2.4rem; text-transform: none; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.rechtstext table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .93rem; }
.rechtstext th, .rechtstext td { text-align: left; padding: .6rem .8rem; border: 1px solid var(--linie); vertical-align: top; }
.rechtstext th { background: var(--flaeche); font-weight: 650; }
.tabelle-scroll { overflow-x: auto; }

/* Ohne JavaScript bleiben Reveal-Elemente sichtbar */
.kein-js .reveal { opacity: 1; transform: none; }
