/* ==========================================================================
   Leis & Deters GmbH – Stylesheet
   Keine externen Fonts, keine externen Ressourcen (DSGVO-konform).
   ========================================================================== */

/* --- Design-Tokens ------------------------------------------------------ */
:root {
  /* Marke */
  --blau-900: #06306b;
  --blau-800: #0a3d84;
  --blau-700: #0b4a9e;   /* Primärblau (Logo) */
  --blau-600: #1560c4;
  --blau-050: #eef4fc;
  --gelb-500: #f7cd00;   /* Akzentgelb (Logo) */
  --gelb-600: #d9b400;

  /* Neutral */
  --grau-900: #14181f;
  --grau-700: #3c4553;
  --grau-500: #6b7686;
  --grau-300: #d3dae4;
  --grau-100: #f1f4f8;
  --weiss: #ffffff;

  --signal: #c0392b;

  /* Semantisch */
  --bg: var(--weiss);
  --bg-alt: var(--grau-100);
  --text: var(--grau-900);
  --text-muted: var(--grau-700);
  --linie: var(--grau-300);

  /* Typografie */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --breite: 1180px;
  --breite-schmal: 780px;
  --radius: 12px;
  --radius-s: 8px;
  --header-h: 76px;

  --schatten-s: 0 1px 2px rgba(20, 24, 31, .06), 0 2px 8px rgba(20, 24, 31, .06);
  --schatten-m: 0 4px 12px rgba(20, 24, 31, .08), 0 12px 32px rgba(20, 24, 31, .08);
  --schatten-l: 0 12px 40px rgba(6, 48, 107, .18);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Platz für den klebenden Kopfbereich und – auf der Leistungsseite –
     zusätzlich für die klebende Sprungleiste. */
  scroll-padding-top: calc(var(--header-h) + var(--sprungnav-h, 0px) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blau-600); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--blau-900); font-weight: 800; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li + li { margin-top: .35em; }

:focus-visible {
  outline: 3px solid var(--gelb-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Bewegung -----------------------------------------------------------
   Sicherheitsprinzip: Ohne die Markierung `data-anim` am <html> ist alles
   sofort sichtbar. Die Markierung setzt main.js nur dann, wenn JavaScript
   läuft UND der Besucher keine Bewegungsreduzierung eingeschaltet hat.
   Scheitert eines von beidem, sieht man die Seite ganz normal – nur ohne
   Animation. So kann die Seite nie leer bleiben. */

html[data-anim] .anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s ease-out, transform .45s ease-out;
}
html[data-anim] .anim.ist-sichtbar { opacity: 1; transform: none; }

/* Gestaffelter Aufbau des Hero-Bereichs beim Seitenaufruf */
@keyframes hero-ein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
html[data-anim] .hero__inhalt > * {
  opacity: 0;
  animation: hero-ein .55s cubic-bezier(.22,.61,.36,1) forwards;
}
html[data-anim] .hero__inhalt > *:nth-child(1) { animation-delay: .05s; }
html[data-anim] .hero__inhalt > *:nth-child(2) { animation-delay: .13s; }
html[data-anim] .hero__inhalt > *:nth-child(3) { animation-delay: .21s; }
html[data-anim] .hero__inhalt > *:nth-child(4) { animation-delay: .29s; }

/* Aufklapper: der Inhalt fährt aus, statt zu springen. Die Höhe setzt
   main.js kurzzeitig – hier steht nur, wie sie sich verändern soll. */
html[data-anim] .faehrt-aus {
  overflow: hidden;
  transition: height .3s cubic-bezier(.4,0,.2,1);
}

/* --- Layout-Helfer ------------------------------------------------------ */
.container { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: 20px; }
.container--schmal { max-width: var(--breite-schmal); }

.section { padding-block: clamp(56px, 7vw, 96px); }
.section--alt { background: var(--bg-alt); }
.section--blau { background: var(--blau-900); color: #dbe6f6; }
.section--blau h2, .section--blau h3 { color: #fff; }

.section-kopf { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-kopf--zentriert { margin-inline: auto; text-align: center; }
.section-kopf p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 0; }
.section--blau .section-kopf p { color: #b9cbe8; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blau-700);
  margin-bottom: .6em;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gelb-500);
  margin-top: .5em;
}
.section-kopf--zentriert .eyebrow::after { margin-inline: auto; }
.section--blau .eyebrow { color: var(--gelb-500); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--blau-900); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius-s) var(--radius-s); font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* Das versteckte Honigtopf-Feld darf keine Breite beanspruchen. */
.visually-hidden input { width: 1px; min-width: 0; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 14px 26px;
  font: inherit; font-weight: 700; line-height: 1.25;
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--primaer { background: var(--gelb-500); color: var(--blau-900); border-color: var(--gelb-500); box-shadow: var(--schatten-s); }
.btn--primaer:hover { background: var(--gelb-600); border-color: var(--gelb-600); color: var(--blau-900); }

.btn--blau { background: var(--blau-700); color: #fff; border-color: var(--blau-700); }
.btn--blau:hover { background: var(--blau-800); border-color: var(--blau-800); color: #fff; }

.btn--outline { background: transparent; color: var(--blau-800); border-color: var(--blau-700); }
.btn--outline:hover { background: var(--blau-700); color: #fff; }

.btn--hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--hell:hover { background: #fff; color: var(--blau-900); border-color: #fff; }

.btn-gruppe { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Topbar ------------------------------------------------------------- */
.topbar {
  background: var(--blau-900);
  color: #c9d9f0;
  font-size: .875rem;
}
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; min-height: 42px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .5em; font-weight: 600; }
.topbar a:hover { color: var(--gelb-500); }
.topbar svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.topbar__spacer { margin-left: auto; }
@media (max-width: 720px) { .topbar { display: none; } }

/* --- Header ------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--linie);
}
/* ACHTUNG: Hier niemals backdrop-filter, filter oder transform setzen.
   Jede dieser Eigenschaften macht den Header zum Bezugsrahmen für
   position:fixed – das mobile Menü (.nav) ist sein Kind und wäre dann nur
   noch so hoch wie der Header statt bildschirmfüllend. */
.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.logo { flex: none; display: block; }
/* 175px statt 210px: Kopfbereich und klebende Sprungleiste belegen sonst
   zusammen zu viel Bildschirmhöhe. Das Logo bleibt gut lesbar. */
.logo img { width: 175px; max-width: 46vw; }

.nav { margin-left: auto; }
.nav__liste { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__liste li { margin: 0; }
.nav__link {
  display: block; padding: 10px 14px;
  font-weight: 700; font-size: .9688rem; color: var(--grau-900); text-decoration: none;
  border-radius: var(--radius-s);
}
.nav__link:hover { background: var(--blau-050); color: var(--blau-800); }
.nav__link[aria-current="page"] { color: var(--blau-700); box-shadow: inset 0 -3px 0 var(--gelb-500); }

.header__cta { flex: none; }
@media (max-width: 1080px) { .header__cta { display: none; } }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: var(--blau-700); border: 0; border-radius: var(--radius-s);
  color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }
.nav-toggle .icon-schliessen { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menue { display: none; }
.nav-toggle[aria-expanded="true"] .icon-schliessen { display: block; }

@media (max-width: 960px) {
  /* Der Burger muss über dem Menü liegen, sonst begräbt das aufgeschobene
     Panel seinen eigenen Schließen-Knopf. */
  .nav-toggle { display: flex; position: relative; z-index: 120; }

  .logo img { width: 160px; }

  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 110;
    width: min(340px, 86vw); height: 100%;
    background: #fff; box-shadow: var(--schatten-l);
    padding: 92px 20px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease;
    margin-left: 0;
  }
  .nav[data-offen="true"] { transform: translateX(0); }
  .nav__liste { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 12px; font-size: 1.0625rem; border-bottom: 1px solid var(--grau-100); }
  /* Aktive Seite: im Menü als linke Kante statt als Unterstreichung –
     quer über die Panelbreite wirkte der gelbe Balken wie ein Trennstrich. */
  .nav__link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--gelb-500);
    background: var(--blau-050);
    padding-left: 16px;
  }
  .nav__cta-mobil { margin-top: 20px; display: grid; gap: 10px; }
  .nav-overlay {
    position: fixed; inset: 0; z-index: 105;
    background: rgba(6,48,107,.5);
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .nav-overlay[data-offen="true"] { opacity: 1; pointer-events: auto; }
}
@media (min-width: 961px) { .nav__cta-mobil, .nav-overlay { display: none; } }

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--blau-900); color: #fff; overflow: hidden; }
.hero__bild {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .30;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(6,48,107,.94) 0%, rgba(6,48,107,.80) 46%, rgba(6,48,107,.42) 100%);
}
.hero__inhalt { position: relative; z-index: 2; padding-block: clamp(64px, 9vw, 132px); max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__claim { font-size: clamp(1.05rem, .95rem + .55vw, 1.3rem); color: #d4e2f7; max-width: 56ch; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .6em;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 7px 16px;
  font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.4em;
}
.hero__kicker .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gelb-500); flex: none; }
.hero .btn-gruppe { margin-top: 2rem; }

/* Kompakter Hero für Unterseiten */
/* Auf Unterseiten kompakter als auf der Startseite: Wer gezielt eine
   Unterseite ansteuert, will den Inhalt sehen, nicht ein großes Bild. */
.hero--seite .hero__inhalt { padding-block: clamp(36px, 4vw, 56px); }
.hero--seite h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); }

/* --- Vertrauensleiste --------------------------------------------------- */
.trust { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.trust__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px 24px; padding-block: 28px;
}
.trust__item { text-align: center; padding: 8px 4px; }
.trust__zahl { display: block; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 800; color: var(--blau-700); line-height: 1.1; }
.trust__label { display: block; font-size: .9375rem; color: var(--text-muted); font-weight: 600; }

/* --- Karten-Raster ------------------------------------------------------ */
.karten { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.karte {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 28px 26px;
  text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-m); border-color: var(--blau-600); color: inherit; }
.karte__icon {
  width: 52px; height: 52px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--blau-050); color: var(--blau-700); border-radius: var(--radius-s);
  flex: none;
}
.karte__icon svg { width: 28px; height: 28px; }
.karte h3 { margin-bottom: .35em; }
.karte p { color: var(--text-muted); font-size: .9688rem; margin-bottom: 0; }
.karte__mehr {
  margin-top: auto; padding-top: 18px;
  font-weight: 700; font-size: .9375rem; color: var(--blau-700);
  display: inline-flex; align-items: center; gap: .4em;
}
a.karte:hover .karte__mehr { gap: .7em; }
.karte__mehr svg { width: 1em; height: 1em; transition: transform .18s; }

/* --- Zwei-Spalten-Block ------------------------------------------------- */
.split {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--bild-rechts .split__bild { order: 2; }
}
.split__bild img { border-radius: var(--radius); box-shadow: var(--schatten-m); width: 100%; }
.split__text > :last-child { margin-bottom: 0; }

/* --- Leistungs-Detailblöcke --------------------------------------------- */
.leistung {
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--linie);
}
.leistung:first-of-type { border-top: 0; padding-top: 0; }
.leistung__kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.leistung__kopf h2 { margin: 0; }
.leistung__kopf .karte__icon { margin-bottom: 0; }
.leistung__spalten { display: grid; gap: 8px 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.leistung__block { margin-bottom: 22px; }
.leistung__block h3 { font-size: 1.0625rem; color: var(--blau-800); margin-bottom: .3em; }
.leistung__block ul { list-style: none; padding: 0; margin: 0; }
.leistung__block li {
  position: relative; padding-left: 26px; color: var(--text-muted); font-size: .9688rem;
}
.leistung__block li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--gelb-500);
}

/* Kurzbeschreibung in Kundensprache, steht vor den Detaillisten */
.leistung__intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 20px;
}

/* Aufklappbarer Detailblock */
.details-block { border-top: 1px solid var(--linie); }
.details-block > summary {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 2px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: .9688rem; color: var(--blau-700);
}
.details-block > summary::-webkit-details-marker { display: none; }
.details-block > summary:hover { color: var(--blau-600); }
.details-block > summary .pfeil {
  width: 18px; height: 18px; flex: none; transition: transform .2s;
}
.details-block[open] > summary .pfeil { transform: rotate(90deg); }
.details-block[open] > summary { color: var(--blau-900); }
.details-block__inhalt { padding: 6px 0 18px; }

/* Häufige Fragen: etwas großzügiger als die Leistungs-Aufklapper */
.faq > summary { font-size: 1.05rem; color: var(--blau-900); padding: 18px 2px; }
.faq > summary:hover { color: var(--blau-700); }
.faq .details-block__inhalt { max-width: 68ch; }
.faq .details-block__inhalt p { color: var(--text-muted); margin-bottom: 0; }
.faq:last-of-type { border-bottom: 1px solid var(--linie); }

/* Sprungnavigation (Leistungen)
   Bleibt beim Scrollen unter dem Kopfbereich stehen, damit man jederzeit
   zwischen den neun Gewerken wechseln kann. Die tatsächliche Kopfhöhe misst
   main.js und schreibt sie nach --header-h – sie schwankt je nach Logogröße. */
.sprungnav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--linie);
  box-shadow: 0 4px 12px rgba(20,24,31,.05);
}
.sprungnav ul {
  display: flex; flex-wrap: nowrap; gap: 8px; list-style: none;
  margin: 0; padding: 12px 0;
  /* Auf schmalen Geräten passen neun Einträge nicht nebeneinander –
     dann seitlich schiebbar statt mehrzeilig, sonst wird die Leiste zu hoch. */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.sprungnav li { margin: 0; flex: none; }
.sprungnav a {
  display: block; padding: 8px 16px; white-space: nowrap;
  background: #fff; border: 1px solid var(--linie); border-radius: 999px;
  font-size: .9063rem; font-weight: 700; color: var(--blau-800); text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.sprungnav a:hover { background: var(--blau-700); border-color: var(--blau-700); color: #fff; }
/* Gewerk, das gerade im Bild ist */
.sprungnav a[aria-current="true"] {
  background: var(--blau-700); border-color: var(--blau-700); color: #fff;
  box-shadow: inset 0 -3px 0 var(--gelb-500);
}

/* --- Referenzen / Galerie ----------------------------------------------- */
.projekt { margin-bottom: clamp(40px, 5vw, 64px); }
.projekt:last-child { margin-bottom: 0; }
.projekt__kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 18px; }
.projekt__kopf h3 { margin: 0; }
.projekt__ort {
  font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blau-700); background: var(--blau-050); border-radius: 999px; padding: 4px 14px;
}
.projekt__text {
  color: var(--text-muted);
  max-width: 68ch;
  margin: -6px 0 18px;
}

.galerie { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.galerie__item {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--schatten-s);
  aspect-ratio: 4 / 3;
}
.galerie__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.galerie__item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(6, 48, 107, .93);
  padding: 24px;
}
.lightbox[data-offen="true"] { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: var(--radius-s); box-shadow: var(--schatten-l); }
.lightbox__schliessen {
  position: absolute; top: 16px; right: 16px;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  color: #fff; cursor: pointer;
}
.lightbox__schliessen:hover { background: rgba(255,255,255,.26); }
.lightbox__schliessen svg { width: 24px; height: 24px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  color: #fff; cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav--zurueck { left: 16px; }
.lightbox__nav--vor { right: 16px; }
@media (max-width: 620px) { .lightbox__nav { width: 44px; height: 44px; } }

/* --- Team --------------------------------------------------------------- */
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.team__karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.team__bild { aspect-ratio: 4 / 3; }
.team__bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.team__body { padding: 26px; }
.team__body h3 { margin-bottom: .1em; }
.team__rolle { font-size: .9375rem; font-weight: 700; color: var(--blau-700); margin-bottom: 1em; }
/* Zeitleiste der Betriebsgeschichte */
.zeitleiste { list-style: none; padding: 0; margin: 0; }
.zeitleiste li {
  position: relative;
  display: grid; grid-template-columns: 8.5em 1fr; gap: 4px 24px;
  padding: 0 0 26px 26px;
  margin: 0;
}
.zeitleiste li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gelb-500); border: 3px solid var(--blau-900);
  box-shadow: 0 0 0 2px var(--gelb-500);
}
.zeitleiste li::after {
  content: ""; position: absolute; left: 6px; top: 1.9em; bottom: -.4em;
  width: 2px; background: rgba(255,255,255,.22);
}
.zeitleiste li:last-child { padding-bottom: 0; }
.zeitleiste li:last-child::after { display: none; }
.zeitleiste b { color: var(--gelb-500); font-variant-numeric: tabular-nums; }
.zeitleiste span { color: #c5d6ef; }
@media (max-width: 620px) {
  .zeitleiste li { grid-template-columns: 1fr; gap: 2px; }
}

/* --- Jobs / Akkordeon --------------------------------------------------- */
.job {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden;
}
.job[open] { border-color: var(--blau-600); box-shadow: var(--schatten-m); }
.job__kopf {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px; cursor: pointer; list-style: none;
  font-weight: 800; color: var(--blau-900);
}
.job__kopf::-webkit-details-marker { display: none; }
.job__kopf:hover { background: var(--blau-050); }
/* min-width:0 lässt lange Stellentitel umbrechen, statt den Pfeil rechts
   aus dem Bild zu schieben. */
.job__titel { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); }
.job__badge {
  flex: none; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  background: var(--blau-700); color: #fff;
}
.job__badge--ausbildung { background: var(--gelb-500); color: var(--blau-900); }
.job__badge--praktikum { background: var(--grau-500); color: #fff; }
.job__pfeil { flex: none; width: 22px; height: 22px; color: var(--blau-700); transition: transform .2s; }
.job[open] .job__pfeil { transform: rotate(180deg); }
.job__body { padding: 4px 24px 28px; border-top: 1px solid var(--linie); }
.job__spalten { display: grid; gap: 4px 40px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); padding-top: 20px; }
.job__spalten h4 { color: var(--blau-800); margin-bottom: .5em; }
.job__spalten ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.job__spalten li { position: relative; padding-left: 26px; font-size: .9688rem; color: var(--text-muted); }
.job__spalten li::before {
  content: ""; position: absolute; left: 5px; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blau-600);
}
.job__spalten .liste-vorteile li::before { background: var(--gelb-500); }
.job__aktion { margin-top: 8px; padding-top: 20px; border-top: 1px dashed var(--linie); }

/* --- Vorteile-Raster (Karriere) ----------------------------------------- */
.vorteile { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.vorteil {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 20px;
}
.vorteil__icon { flex: none; width: 26px; height: 26px; color: var(--gelb-500); }
.vorteil b { display: block; color: #fff; font-size: 1rem; }
.vorteil span { font-size: .9063rem; color: #b9cbe8; }

/* --- Einblicke (Karriere) ----------------------------------------------- */
.einblicke { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.einblicke figure { margin: 0; }
.einblicke img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--schatten-s);
}
.einblicke figcaption {
  margin-top: 10px; font-size: .9375rem; font-weight: 600; color: var(--text-muted);
}

/* --- Formular ----------------------------------------------------------- */
.formular { display: grid; gap: 18px; }
.feld-reihe { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-weight: 700; font-size: .9375rem; color: var(--blau-900); }
.feld .pflicht { color: var(--signal); }
/* Grid- und Flex-Kinder dürfen von Haus aus nicht schmaler werden als ihr
   Inhalt. Ein <select> beansprucht dabei die Breite seiner längsten Option –
   "Ausbildung zum Anlagenmechaniker für Sanitär-, Heizungs- und Klimatechnik"
   sprengte damit auf schmalen Handys die ganze Seite. min-width:0 hebt das auf. */
.split > *, .formular > *, .feld-reihe > *, .feld,
.leistung__spalten > *, .job__spalten > * { min-width: 0; }

.feld input, .feld select, .feld textarea {
  font: inherit; font-size: 1rem;
  width: 100%; max-width: 100%; min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--grau-300); border-radius: var(--radius-s);
  background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
  border-color: var(--blau-600); box-shadow: 0 0 0 3px rgba(21, 96, 196, .16); outline: none;
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld__hinweis { font-size: .8438rem; color: var(--grau-700); }

.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; color: var(--text-muted); }
.checkbox input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blau-700); }

.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.formular__pflicht { font-size: .8438rem; color: var(--grau-700); }

.hinweis {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--blau-050); border-left: 4px solid var(--blau-700);
  border-radius: var(--radius-s); padding: 18px 20px;
  font-size: .9375rem; color: var(--blau-900);
}
.hinweis svg { flex: none; width: 22px; height: 22px; color: var(--blau-700); margin-top: 2px; }
.hinweis > div > :last-child { margin-bottom: 0; }

/* --- Kontaktinfo-Block -------------------------------------------------- */
.kontaktliste { list-style: none; padding: 0; margin: 0; }
.kontaktliste li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.kontaktliste li:last-child { border-bottom: 0; }
.kontaktliste svg { flex: none; width: 22px; height: 22px; color: var(--blau-700); margin-top: 3px; }
.kontaktliste b { display: block; font-size: .8125rem; letter-spacing: .07em; text-transform: uppercase; color: var(--grau-700); }
.kontaktliste a { font-weight: 700; text-decoration: none; }
.kontaktliste a:hover { text-decoration: underline; }

/* --- Anfahrtskarte ------------------------------------------------------
   Zwei-Klick-Lösung: Zuerst nur ein Vorschaubild vom eigenen Server. Erst wenn
   der Besucher klickt, wird die Karte von OpenStreetMap nachgeladen. Dadurch
   bleibt die Seite ohne Einwilligungsbanner. */
.karte {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten-m);
  background: var(--grau-100);
}
.karte__ausloeser {
  display: block; width: 100%; padding: 0; border: 0;
  background: none; cursor: pointer; position: relative;
}
.karte__ausloeser img { width: 100%; height: auto; display: block; }
.karte__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 24px 24px 46px; text-align: center;
  /* Knopf bewusst unterhalb der Bildmitte – dort verdeckt er die Ortsmarke nicht. */
  background: rgba(6, 48, 107, .32);
  transition: background-color .2s;
}
.karte__ausloeser:hover .karte__overlay { background: rgba(6, 48, 107, .45); }
.karte__knopf {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--gelb-500); color: var(--blau-900);
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  box-shadow: var(--schatten-m);
}
.karte__knopf svg { width: 1.15em; height: 1.15em; }
/* Hinweis bewusst unter der Karte, nicht darüber – im Bild verdeckte er die
   Ortsmarke und war auf dem Kartenhintergrund schlecht lesbar. */
.karte__hinweis {
  margin: 10px 2px 0;
  font-size: .875rem; line-height: 1.5;
  color: var(--text-muted); max-width: 68ch;
}
.karte iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 620px) {
  .karte iframe { height: 320px; }
  .karte__datenschutz { font-size: .8125rem; }
}

/* --- Öffnungsstatus ------------------------------------------------------ */
.status {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .875rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  margin-top: 6px;
}
.status__punkt { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status--offen { background: #e7f6ec; color: #1c6b38; }
.status--offen .status__punkt { background: #22a559; }
.status--zu { background: var(--grau-100); color: var(--grau-700); }
.status--zu .status__punkt { background: var(--grau-500); }

/* --- CTA-Banner --------------------------------------------------------- */
.cta-banner { background: var(--blau-800); color: #fff; }
.cta-banner__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px; padding-block: clamp(40px, 5vw, 60px);
}
.cta-banner h2 { color: #fff; margin-bottom: .3em; }
.cta-banner p { color: #cddcf3; margin-bottom: 0; max-width: 52ch; }

/* --- Notdienst-Box ------------------------------------------------------ */
.notdienst {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  background: #fff; border: 2px solid var(--gelb-500); border-radius: var(--radius);
  padding: 24px 26px;
}
.notdienst__icon { flex: none; width: 48px; height: 48px; color: var(--gelb-600); }
.notdienst__text { flex: 1 1 260px; }
.notdienst__text b { display: block; font-size: 1.15rem; color: var(--blau-900); }
.notdienst__text span { font-size: .9375rem; color: var(--text-muted); }

/* --- Partner-Logos ------------------------------------------------------ */
.partner { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.partner img { max-height: 120px; width: auto; border-radius: var(--radius-s); }

/* --- Footer ------------------------------------------------------------- */
/* Dunkles Markenblau statt Schwarz – schließt die Seite farblich mit der
   Topbar oben zusammen und bleibt in der Hausfarbe. */
.footer { background: var(--blau-900); color: #b6c9e6; font-size: .9375rem; }
.footer__grid {
  display: grid; gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-block: clamp(44px, 5vw, 64px);
}
.footer h3 { color: #fff; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: .55em; }
.footer a { color: #d3e0f2; text-decoration: none; }
.footer a:hover { color: var(--gelb-500); text-decoration: underline; }
.footer__logo { background: #fff; border-radius: var(--radius-s); padding: 12px; width: fit-content; margin-bottom: 18px; }
.footer__logo img { width: 190px; }
.footer address { font-style: normal; line-height: 1.9; }
.footer__unten {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  font-size: .875rem;
}
.footer__unten p { margin: 0; }
.footer__rechtslinks { display: flex; flex-wrap: wrap; gap: 20px; }

/* --- Mobiler Anruf-Balken ----------------------------------------------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 1px;
  background: var(--linie);
  box-shadow: 0 -4px 16px rgba(20,24,31,.12);
}
.call-bar a {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 8px; background: #fff;
  font-weight: 800; font-size: .9375rem; color: var(--blau-800); text-decoration: none;
}
.call-bar a.ist-primaer { background: var(--gelb-500); color: var(--blau-900); }
.call-bar svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .call-bar { display: flex; }
  body { padding-bottom: 54px; }
}

/* --- Rechtstexte -------------------------------------------------------- */
.rechtstext h2 { font-size: 1.4rem; margin-top: 2em; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.6em; }
.rechtstext > :first-child { margin-top: 0; }
.rechtstext dl { margin: 0 0 1.4em; }
.rechtstext dt { font-weight: 700; color: var(--blau-900); margin-top: 1em; }
.rechtstext dd { margin: 0; color: var(--text-muted); }

/* --- Druck -------------------------------------------------------------- */
@media print {
  .header, .topbar, .call-bar, .nav-toggle, .cta-banner, .lightbox { display: none !important; }
  body { padding-bottom: 0; }
  .hero { background: none; color: #000; }
  .hero::after, .hero__bild { display: none; }
  .hero h1 { color: #000; }
}

/* ==========================================================================
   Ergänzungen: Galerie-Bedienung, Teilen, Zeitleiste, Nach-oben-Knopf
   ========================================================================== */

/* --- Bildzähler und Wischhinweis in der Lightbox ------------------------ */
.lightbox__zaehler {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: .875rem; font-weight: 700;
  padding: 6px 16px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.lightbox__wischhinweis {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: .8125rem;
  display: none;
}
@media (pointer: coarse) {
  /* Nur auf Geräten mit Fingerbedienung anzeigen */
  .lightbox__wischhinweis { display: block; }
  .lightbox__nav { display: none; }
}
.lightbox img { touch-action: pan-y; user-select: none; -webkit-user-drag: none; }

/* --- Stelle weiterempfehlen --------------------------------------------- */
.job__teilen {
  display: inline-flex; align-items: center; gap: .5em;
  background: none; border: 1px solid var(--linie); border-radius: 999px;
  padding: 10px 20px; cursor: pointer;
  font: inherit; font-size: .9375rem; font-weight: 700; color: var(--blau-800);
  transition: background-color .15s, border-color .15s, color .15s;
}
.job__teilen:hover { background: var(--blau-050); border-color: var(--blau-600); }
.job__teilen svg { width: 1.1em; height: 1.1em; }
.job__teilen[data-erfolg] { background: #e7f6ec; border-color: #22a559; color: #1c6b38; }

/* --- Zeitleiste zeichnet sich nach --------------------------------------
   Die senkrechte Linie wächst beim Scrollen mit, die Stationen erscheinen
   nacheinander. Ohne die Markierung data-anim ist alles sofort sichtbar. */
html[data-anim] .zeitleiste li { opacity: 0; transform: translateX(-8px); }
html[data-anim] .zeitleiste li::after { transform: scaleY(0); transform-origin: top; }
html[data-anim] .zeitleiste li.ist-sichtbar {
  opacity: 1; transform: none;
  transition: opacity .45s ease-out, transform .45s ease-out;
}
html[data-anim] .zeitleiste li.ist-sichtbar::after {
  transform: scaleY(1);
  transition: transform .5s ease-out .15s;
}

/* --- Zurück nach oben ---------------------------------------------------- */
.nach-oben {
  position: fixed; right: 20px; bottom: 20px; z-index: 85;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: #fff; color: var(--blau-700);
  border: 1px solid var(--linie); border-radius: 50%;
  box-shadow: var(--schatten-m); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .15s;
}
.nach-oben[data-sichtbar] { opacity: 1; visibility: visible; transform: none; }
.nach-oben:hover { background: var(--blau-700); color: #fff; }
.nach-oben svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  /* Über dem Anruf-Balken einordnen, damit er nichts verdeckt */
  .nach-oben { bottom: 68px; right: 14px; width: 44px; height: 44px; }
}
@media print { .nach-oben { display: none; } }

/* --- Öffnungszeiten -----------------------------------------------------
   Tag und Uhrzeit in zwei Spalten, Ziffern mit gleicher Breite. So stehen
   die Zeiten sauber untereinander, statt im Fließtext zu verschwimmen. */
.zeiten {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 18px;
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}
.zeiten dt { color: var(--text-muted); }
.zeiten dd { margin: 0; white-space: nowrap; }
.zeiten dd + dd { grid-column: 2; }        /* zweites Zeitfenster bündig darunter */
.zeiten__zusatz {
  margin: 8px 0 0;
  font-size: .9375rem;
  color: var(--grau-500);
}

/* In der dunklen Fußzeile eigene Farben */
.footer .zeiten { gap: 0 14px; font-size: .9063rem; }
.footer .zeiten dt { color: #94a9c6; }
.footer .zeiten dd { color: #d3e0f2; }
