/* ============================================================
   TD BAU & Personalservice GmbH – Haupt-Stylesheet
   Dezentes Design nach Vorbild der bisherigen Seite:
   Weiß als Basis, Navy #02035d, Hellblau #8fcbe5 (Logo),
   Fonts wie gehabt: Rajdhani (Überschriften) + Rubik (Text).
   ============================================================ */

/* ---- Fonts (selbst gehostet, DSGVO-konform – wie auf der alten Seite) ---- */
@font-face { font-family: 'Rajdhani'; src: url('../fonts/rajdhani-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Rajdhani'; src: url('../fonts/rajdhani-500-ext.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Rajdhani'; src: url('../fonts/rajdhani-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Rajdhani'; src: url('../fonts/rajdhani-600-ext.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Rajdhani'; src: url('../fonts/rajdhani-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Rajdhani'; src: url('../fonts/rajdhani-700-ext.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Rubik'; src: url('../fonts/rubik-var.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Rubik'; src: url('../fonts/rubik-var-ext.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --navy: #02035d;
  --navy-800: #12137a;
  --sky: #8fcbe5;
  --sky-dark: #26739e;      /* für Links/Text: Kontrast AA auch auf sky-50/sky-100 (≥4,5:1) */
  --sky-100: #eaf4fb;
  --sky-50:  #f5f9fc;
  --ink: #1c2130;
  --text: #3a4152;
  --muted: #626b7e;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f9fc;      /* = sky-50: einheitliche, zum Blau passende Tönung */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(20, 26, 60, .06);
  --shadow-lift: 0 8px 24px rgba(20, 26, 60, .1);
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --header-h: 116px;
}

/* ---- Reset & Basis ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* Lange deutsche Komposita (z. B. „Unbedenklichkeitsbescheinigung") auf schmalen
   Screens umbrechen statt überstehen; ab 481px greift normale Silbensetzung nicht. */
h1, h2, h3, h4, .dl-titel { overflow-wrap: break-word; }
@media (max-width: 480px) {
  h1, h2, h3, h4, .dl-titel { hyphens: auto; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--display); color: var(--navy); line-height: 1.2;
  margin: 0 0 .5em; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--sky); color: var(--navy); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 0 0 10px 0;
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Typo-Bausteine ---- */
.kicker {
  display: inline-block; font-family: var(--display); font-size: 14px; font-weight: 600;
  letter-spacing: 2.4px; text-transform: uppercase; color: var(--sky-dark); margin-bottom: 10px;
}
.section-title { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 16px; }
.section-lead { font-size: 17px; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }
.center .kicker::after {
  content: ''; display: block; width: 46px; height: 3px; margin: 12px auto 0;
  border-radius: 2px; background: linear-gradient(90deg, var(--sky), var(--sky-dark));
}

section { padding: 76px 0; }
section.tight { padding: 52px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-sky { background: var(--sky-50); }

/* ---- Buttons (Rajdhani, Versalien – wie die alte Seite) ---- */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: var(--radius-sm);
  font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-lift); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { background: #a5d7ec; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky-100); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 15px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 3px 16px rgba(20,26,60,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand img { width: 150px; height: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none;
  color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16.5px;
  letter-spacing: .8px; text-transform: uppercase; transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--sky-100); color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; background: none; box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
.main-nav .nav-cta { background: var(--navy); color: #fff; padding: 10px 24px; margin-left: 10px; border-radius: var(--radius-sm); }
.main-nav .nav-cta:hover { background: var(--navy-800); color: #fff; }
.main-nav .nav-cta[aria-current="page"] { background: var(--navy-800); color: #fff; box-shadow: none; }

.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 12px; cursor: pointer; }
.nav-toggle-text {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy); line-height: 1;
}
.nav-toggle-box { display: block; position: relative; width: 26px; height: 20px; }
.nav-toggle-line, .nav-toggle-box::before, .nav-toggle-box::after {
  content: ''; position: absolute; left: 0; width: 26px; height: 3px; border-radius: 3px;
  background: var(--navy); transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle-box::before { top: 0; }
.nav-toggle-line { top: 8.5px; }
.nav-toggle-box::after { top: 17px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box::before { top: 8.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box::after { top: 8.5px; transform: rotate(-45deg); }

/* ---- Hero (Foto mit dunkler Überblendung) ---- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); padding: 0; }
.hero-foto { position: absolute; inset: 0; pointer-events: none; }
.hero-foto picture, .hero-foto img { width: 100%; height: 100%; }
.hero-foto img { object-fit: cover; object-position: center 30%; }
.hero-foto::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10, 14, 46, .78) 0%, rgba(10, 14, 46, .55) 55%, rgba(10, 14, 46, .35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 104px 0 132px; max-width: 680px; }
.hero-kicker {
  display: inline-block; color: var(--sky); font-family: var(--display); font-size: 15px;
  font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); line-height: 1.12; margin: 0 0 18px; }
.hero h1 .mark { color: var(--sky); }
.hero-text { font-size: 17.5px; line-height: 1.8; color: rgba(255,255,255,.88); max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Statistik-Leiste, überlappt den Hero dezent */
.stats-strip { position: relative; z-index: 3; margin-top: -58px; padding: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lift);
}
.stat { background: #fff; padding: 26px 18px; text-align: center; }
.stat-zahl { display: block; font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-zahl .plus { color: var(--sky-dark); }
.stat-label { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }

/* ---- Karten-Raster ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky-dark)); opacity: .55;
  transition: opacity .2s ease;
}
.card:hover { box-shadow: var(--shadow-lift); border-color: #d5dde8; }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card-icon {
  width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky-100), #ddeefa); border: 1px solid rgba(143, 203, 229, .5);
  color: var(--navy); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-link { font-weight: 500; text-decoration: none; white-space: nowrap; }
.card-link::after { content: ' →'; transition: margin-left .15s ease; }
.card-link:hover::after { margin-left: 4px; }

/* ---- Leistungs-Detailblöcke ---- */
.leistung-block { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: 44px 40px; margin-bottom: 10px; }
.leistung-block:last-child { margin-bottom: 0; }
.leistung-block:nth-of-type(even) { background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--radius); }
.leistung-block > * { min-width: 0; }  /* lange Wörter dürfen die Grid-Spalte nicht aufblähen */
.leistung-block h3 { font-size: 27px; overflow-wrap: break-word; hyphens: auto; }
.leistung-nummer { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 2.4px; color: var(--sky-dark); margin-bottom: 6px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 6px 0 6px 34px; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302035d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---- Jobkarten (mit Foto, wie die alte Jobbörse) ---- */
.job-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.job-card:hover { box-shadow: var(--shadow-lift); border-color: var(--sky); color: var(--text); }
.job-card-foto { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky-100); }
.job-card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.job-card:hover .job-card-foto img { transform: scale(1.05); }
.job-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.job-card h3 { font-size: 22px; margin: 0; }
.job-badge {
  flex-shrink: 0; background: var(--sky-100); color: var(--navy); font-family: var(--display);
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  border-radius: 6px; padding: 3px 10px;
}
.job-ort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin: 0; }
.job-ort svg { flex-shrink: 0; width: 17px; height: 17px; color: var(--sky-dark); }
.job-card-cta { margin-top: auto; padding-top: 8px; font-weight: 500; color: var(--sky-dark); }
.job-card-cta::after { content: ' →'; }
.job-card:hover .job-card-cta { color: var(--navy); }

/* ---- Seitenkopf: hell (Standard) oder mit Foto-Banner ---- */
.page-hero { background: var(--sky-50); border-bottom: 1px solid var(--line); padding: 52px 0 46px; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 6px 0 10px; }
.page-hero .kicker { margin-bottom: 0; }
.page-hero-lead { color: var(--muted); font-size: 17px; max-width: 700px; margin: 0; }

.page-hero.mit-foto {
  position: relative; border-bottom: 0; padding: 84px 0 78px;
  background-size: cover; background-position: center 35%; color: #fff;
}
.page-hero.mit-foto::before { content: ''; position: absolute; inset: 0; background: rgba(9, 12, 44, .62); }
.page-hero.mit-foto .container { position: relative; z-index: 1; }
.page-hero.mit-foto h1 { color: #fff; }
.page-hero.mit-foto .kicker { color: var(--sky); }
.page-hero.mit-foto .page-hero-lead { color: rgba(255,255,255,.88); }
.page-hero.mit-foto .breadcrumbs a { color: var(--sky); }
.page-hero.mit-foto .breadcrumbs a:hover { color: #fff; }
.page-hero.mit-foto .breadcrumbs [aria-current] { color: rgba(255,255,255,.85); }
.page-hero.mit-foto .breadcrumbs li + li::before { color: rgba(255,255,255,.5); }

.breadcrumbs { margin-bottom: 8px; font-size: 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.breadcrumbs a { color: var(--sky-dark); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: #a8b1c2; }
.breadcrumbs [aria-current] { color: var(--muted); }

/* ---- Job-Detail ---- */
.job-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.job-content h2 { font-size: 24px; margin-top: 32px; }
.job-content h2:first-child { margin-top: 0; }
.job-content > p:first-child img { border-radius: var(--radius); }
.job-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--sky-50); border: 1px solid var(--line); border-top: 3px solid var(--sky); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.job-aside h2 { font-size: 21px; }
.job-aside .btn { width: 100%; text-align: center; margin-top: 10px; }
.job-meta { list-style: none; padding: 0; margin: 0 0 8px; }
.job-meta li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.job-meta li:last-child { border-bottom: 0; }
.job-meta .label { color: var(--muted); min-width: 92px; flex-shrink: 0; }
.job-meta .wert { font-weight: 500; color: var(--ink); }
.lohn-box {
  background: var(--sky-50); border-left: 3px solid var(--sky); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 15px 18px; margin-top: 14px; font-size: 14.5px; color: var(--muted);
}

/* ---- Downloads ---- */
.dl-kategorie { margin-bottom: 44px; }
.dl-kategorie:last-child { margin-bottom: 0; }
.dl-kategorie h2 { font-size: 24px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dl-kategorie h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.dl-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; text-decoration: none; color: var(--text);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.dl-item:hover { box-shadow: var(--shadow); border-color: var(--sky); color: var(--text); }
.dl-typ {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center;
  background: var(--sky-100); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .4px;
}
.dl-info { flex: 1; min-width: 0; }
.dl-titel { display: block; font-weight: 500; color: var(--navy); }
.dl-desc { display: block; font-size: 14px; color: var(--muted); }
.dl-groesse { flex-shrink: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.dl-pfeil { flex-shrink: 0; color: var(--sky-dark); font-weight: 700; }

/* ---- Kontakt ---- */
.kontakt-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: start; }
.kontakt-layout > * { min-width: 0; }  /* Select mit langen Optionen darf die Spalte nicht aufspannen */
.form-feld { margin-bottom: 20px; }
.form-feld label { display: block; font-weight: 500; color: var(--ink); margin-bottom: 7px; font-size: 15px; }
.form-feld .pflicht { color: var(--sky-dark); }
.form-feld input[type="text"], .form-feld input[type="email"], .form-feld input[type="tel"], .form-feld textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-feld input:focus, .form-feld textarea:focus {
  outline: none; border-color: var(--sky-dark); box-shadow: 0 0 0 4px rgba(143,203,229,.3);
}
.form-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; font-size: 15px; }
.form-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.hp-wrap { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

.hinweis { border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; font-weight: 500; }
.hinweis-ok { background: #e8f6ec; border: 1px solid #b5e0c2; color: #17643a; }
.hinweis-fehler { background: #fdeeee; border: 1px solid #f2c4c4; color: #93312f; }

/* ---- Downloads-Teaser (Startseite) ---- */
.dl-teaser {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: var(--sky-50); border: 1px solid var(--line); border-left: 4px solid var(--sky);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 38px;
}
.dl-teaser-icon {
  width: 58px; height: 58px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
}
.dl-teaser-icon svg { width: 28px; height: 28px; }
.dl-teaser-text { flex: 1; min-width: 260px; }
.dl-teaser-text .kicker { margin-bottom: 6px; }
.dl-teaser-text h2 { font-size: 26px; margin-bottom: 6px; }
.dl-teaser-text p { margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .dl-teaser { padding: 28px 22px; flex-direction: column; text-align: center; border-left: 1px solid var(--line); border-top: 4px solid var(--sky); }
  .dl-teaser-text { min-width: 0; }
  .dl-teaser .btn { width: 100%; }
}

/* ---- Bewerbungsformular (Job-Detailseite) ---- */
.bewerbung-bereich { scroll-margin-top: calc(var(--header-h) + 16px); }
.bewerbung-box { max-width: 780px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 44px; }
.bewerbung-box h2 { margin-bottom: 10px; }
.bewerbung-intro { color: var(--muted); margin-bottom: 26px; }
.bewerbung-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-feld input[type="file"] {
  width: 100%; padding: 10px 12px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 14.5px; color: var(--muted); background: var(--sky-50); cursor: pointer;
}
.form-feld input[type="file"]:focus { outline: none; border-color: var(--sky-dark); box-shadow: 0 0 0 4px rgba(143,203,229,.3); }
.form-feld input[type="file"]::file-selector-button {
  font: inherit; font-weight: 500; color: var(--navy); background: var(--sky-100);
  border: 0; border-radius: 7px; padding: 7px 14px; margin-right: 12px; cursor: pointer;
}
.feld-hinweis { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* Eigenes Vorschlags-Dropdown (Betreff im Kontaktformular) */
.vorschlag-wrap { position: relative; }
.vorschlag-liste {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 14px 30px rgba(20,26,60,.16); max-height: 280px; overflow-y: auto;
}
.vorschlag-liste li { padding: 10px 12px; border-radius: 7px; cursor: pointer; font-size: 15px; color: var(--ink); }
.vorschlag-liste li:hover, .vorschlag-liste li.aktiv { background: var(--sky-100); color: var(--navy); }
@media (max-width: 640px) {
  .bewerbung-grid { grid-template-columns: 1fr; }
  .bewerbung-box { padding: 28px 22px; }
}

.standort-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.standort-card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.standort-card h3 svg { width: 18px; height: 18px; color: var(--sky-dark); flex-shrink: 0; }
.standort-card p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.standort-card a { font-weight: 500; }

/* ---- Foto-Band mit Parallax (wie die alte Seite) ---- */
.band {
  position: relative; color: #fff; padding: 84px 0;
  background-size: cover; background-position: center;
}
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .band { background-attachment: fixed; }
}
.band::before { content: ''; position: absolute; inset: 0; background: rgba(9, 12, 44, .72); }
.band .container { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band .kicker { color: var(--sky); }
.band p { color: rgba(255,255,255,.88); }
.band-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }

/* Fortschrittsbalken (Zuverlässigkeit / Qualität / Kundenzufriedenheit) */
.progress-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.progress-kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.progress-label { font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; }
.progress-wert { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--sky); }
.progress-balken { height: 8px; border-radius: 6px; background: rgba(255,255,255,.22); overflow: hidden; }
.progress-fuellung {
  height: 100%; width: 0; border-radius: 6px; background: var(--sky);
  transition: width 1.4s cubic-bezier(.25,.7,.3,1);
}
html:not(.js) .progress-fuellung, .progress-fuellung.voll { width: var(--ziel, 100%); }
@media (prefers-reduced-motion: reduce) { .progress-fuellung { transition: none; } }

/* ---- CTA-Band (hell und dezent) ---- */
.cta-band { background: linear-gradient(180deg, var(--sky-50), var(--sky-100)); border-top: 1px solid var(--line); padding: 56px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band-title { color: var(--navy); font-size: clamp(24px, 3vw, 31px); margin-bottom: 6px; }
.cta-band-text { color: var(--muted); margin: 0; font-size: 16.5px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-light { background: #fff; border-color: var(--line); color: var(--navy); }
.cta-band .btn-light:hover { border-color: var(--navy); }
.cta-band .btn-ghost-light { border-color: var(--navy); color: var(--navy); }
.cta-band .btn-ghost-light:hover { background: var(--navy); color: #fff; }
@media (max-width: 640px) {
  .cta-band-inner { flex-direction: column; text-align: center; gap: 22px; }
  .cta-band-actions { width: 100%; flex-direction: column; }
  .cta-band-actions .btn { width: 100%; }
}

/* ---- Footer (hell, wie die bisherige Seite) ---- */
.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--text); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 44px; padding: 56px 22px 40px; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 150px; }
.footer-brand p { line-height: 1.75; color: var(--muted); }
.footer-social {
  display: inline-flex; align-items: center; gap: 9px; color: var(--sky-dark); text-decoration: none;
  font-weight: 500; margin-top: 4px;
}
.footer-social:hover { color: var(--navy); }
.footer-heading { font-size: 16px; letter-spacing: 1.8px; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--navy); text-decoration: underline; }
.fi { width: 16px; height: 16px; flex: none; color: var(--sky-dark); }
.footer-nav a, .footer-contact a { display: inline-flex; align-items: center; gap: 9px; }
.footer-nav a:hover .fi, .footer-contact a:hover .fi { color: var(--navy); }
.footer-versprechen { line-height: 1.75; color: var(--muted); }
.footer-contact .adresse { align-items: flex-start; line-height: 1.7; }
.footer-contact .adresse .fi { margin-top: 4px; }
.footer-contact .adresse strong { color: var(--ink); }
/* ---- Newsletter-Anmeldung im Footer ---- */
.footer-newsletter {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--sky); padding: 26px 30px; margin-bottom: 40px;
}
.footer-newsletter-text { max-width: 380px; }
.footer-newsletter-text p { margin: 0; color: var(--muted); font-size: 14.5px; }
.footer-newsletter-form { flex: 1 1 420px; max-width: 560px; }
.footer-newsletter-zeile { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-newsletter-zeile input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 12px 15px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.footer-newsletter-zeile input[type="email"]:focus {
  outline: none; border-color: var(--sky-dark); box-shadow: 0 0 0 4px rgba(143,203,229,.3);
}
.footer-newsletter-zeile .btn { white-space: nowrap; }
.footer-newsletter-hinweis { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.footer-newsletter-hinweis a { color: var(--sky-dark); }
@media (max-width: 640px) {
  .footer-newsletter { padding: 22px 18px; }
  .footer-newsletter-form { min-width: 0; }
  .footer-newsletter-zeile input[type="email"] { flex-basis: 100%; }
  .footer-newsletter-zeile .btn { width: 100%; white-space: normal; }
}

/* ---- Newsletter-Seite ---- */
.nl-panel {
  background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--sky); padding: 28px 30px;
}
.nl-panel h2 { font-size: 24px; margin-bottom: 10px; }
.nl-panel > p { color: var(--text); }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.nl-form input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nl-form input[type="email"]:focus {
  outline: none; border-color: var(--sky-dark); box-shadow: 0 0 0 4px rgba(143,203,229,.3);
}
.nl-rechtshinweis { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.nl-rechtshinweis a { color: var(--sky-dark); }
@media (max-width: 640px) {
  .nl-panel { padding: 22px 18px; }
  .nl-form .btn { width: 100%; }
}

.footer-bottom { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer-bottom p { margin: 0; font-size: 14px; color: var(--muted); }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.footer-legal a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-legal a:hover { color: var(--navy); text-decoration: underline; }
.footer-credit { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-credit:hover { color: var(--navy); }
.fc-heart { color: #d64545; font-size: 12px; display: inline-block; transition: transform .3s; }
.footer-credit:hover .fc-heart { transform: scale(1.25); }
@media (max-width: 640px) {
  /* Platz für den fixierten Nach-oben-Button rechts unten */
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 84px; }
}

/* ---- Nach-oben-Button ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(2,3,93,.3);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .15s ease;
}
.to-top.sichtbar { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-800); }
.to-top svg { width: 20px; height: 20px; }
html:not(.js) .to-top { opacity: 1; visibility: visible; transform: none; }

/* ---- Text-Seiten (Impressum/Datenschutz) ---- */
.text-seite { max-width: 820px; }
.text-seite h2 { font-size: 25px; margin-top: 40px; }
.text-seite h3 { font-size: 20px; margin-top: 26px; }
.legal-card { background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 18px 0; }
.legal-card p:last-child { margin-bottom: 0; }

/* ---- Diverses ---- */
.pill-liste { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pill-liste li { background: var(--sky-100); color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; border-radius: 8px; padding: 6px 16px; }

.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }

/* ---- Einblend-Animationen (nur wenn JS aktiv, sonst immer sichtbar) ---- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  html.js .reveal-links { opacity: 0; transform: translateX(-26px); transition: opacity .6s ease, transform .6s ease; }
  html.js .reveal-rechts { opacity: 0; transform: translateX(26px); transition: opacity .6s ease, transform .6s ease; }
  html.js .reveal.sichtbar, html.js .reveal-links.sichtbar, html.js .reveal-rechts.sichtbar { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .job-layout { grid-template-columns: 1fr; }
  .job-aside { position: static; }
  .kontakt-layout, .zwei-spalten, .leistung-block, .band-layout { grid-template-columns: 1fr; gap: 34px; }
  .leistung-block { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h: 92px; }
  .brand img { width: 108px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 26px rgba(20,26,60,.1);
  }
  .main-nav.offen { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 18px 20px; }
  .main-nav a { padding: 13px 16px; font-size: 18px; border-radius: var(--radius-sm); }
  .main-nav a[aria-current="page"] { box-shadow: none; background: var(--sky-100); border-radius: var(--radius-sm); }
  .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  section { padding: 56px 0; }
  .hero-inner { padding: 68px 0 110px; }
  .band { padding: 64px 0; }
  .page-hero.mit-foto { padding: 64px 0 58px; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 12px; }
  .stat-zahl { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .dl-item { flex-wrap: wrap; }
  .dl-groesse { order: 3; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { width: 100%; text-align: center; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ---- Druck ---- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .hero-actions, .to-top { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: none; }
}

/* Schmale Screens: lange Blocktitel („Personalbereitstellung") kleiner, damit sie
   ohne harten Umbruch in die Spalte passen (steht bewusst am Dateiende → gewinnt). */
@media (max-width: 480px) {
  .leistung-block h3 { font-size: 21px; }
}
