/* =========================================================
   Mackens + Sohn GmbH, Stylesheet
   Modern, clean, responsive. Brand blue derived from logo.
   ========================================================= */

:root {
  /* Brand palette */
  /* CI: Logo-Indigo #183888 (Broschüre #1e368a) + Fahrzeuglack-Azur #0072c6 */
  --navy-900: #032447;
  --navy-800: #04336b;
  --navy-700: #0a4a94;
  --blue-600: #183888;   /* Markenblau (Logo / Broschüre) */
  --blue-500: #244fb0;
  --blue-400: #4f7fd8;
  --azur-600: #0072c6;   /* Fahrzeuglack */
  --cyan-400: #2b9ff0;   /* helles Fahrzeug-Azur (Akzent) */
  --copper:   #c97a3b;   /* warm accent (Klempner/Kupfer) */

  --ink:      #14233a;
  --body:     #44566f;
  --muted:    #5c6e88;
  --line:     #e4eaf2;
  --bg:       #ffffff;
  --bg-soft:  #f4f7fb;
  --bg-softer:#eef3f9;

  --white:    #ffffff;

  --radius:   18px;
  --radius-lg:26px;
  --radius-sm:12px;

  /* Layered, realistic depth */
  --shadow-sm: 0 1px 2px rgba(12,44,82,.05), 0 4px 10px -4px rgba(12,44,82,.10);
  --shadow:    0 2px 4px rgba(12,44,82,.04), 0 10px 24px -8px rgba(12,44,82,.16), 0 30px 52px -24px rgba(12,44,82,.18);
  --shadow-lg: 0 6px 14px -6px rgba(12,44,82,.18), 0 24px 50px -16px rgba(12,44,82,.30), 0 54px 90px -40px rgba(12,44,82,.42);
  --shadow-blue: 0 10px 30px -8px rgba(31,84,163,.45);

  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { padding: 16px 28px; font-size: 1.04rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: linear-gradient(135deg, #2a6bd1, #1f54a3);
  color: #fff; box-shadow: 0 12px 26px -10px rgba(31,84,163,.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(31,84,163,.75); }

.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0,0,0,.4); }

.btn-call svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 14px 0;
}
/* Milchglas liegt auf einem Pseudo-Element: backdrop-filter direkt auf dem Header
   würde ihn zum Containing Block für das position:fixed-Mobilmenü machen
   (Panel schrumpft dann auf Header-Höhe). */
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  opacity: 0; transition: opacity .3s;
}
.site-header.scrolled::before { opacity: 1; }
.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(12,44,82,.08), var(--shadow-sm);
  padding: 9px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 1; }
/* Logo as a CSS mask: the logo shape is filled with background-color,
   which we tween from white (over the dark hero) to blue (over the white, scrolled header). */
.brand-logo {
  display: block; width: 132px; height: 62px;
  background-color: #fff;
  -webkit-mask: url(../assets/img/logo.png) left center / contain no-repeat;
          mask: url(../assets/img/logo.png) left center / contain no-repeat;
  transition: background-color .4s var(--ease), width .3s var(--ease), height .3s var(--ease);
}
.scrolled .brand-logo { width: 111px; height: 52px; background-color: var(--blue-600); }

.nav { display: flex; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .97rem; color: #eaf1fb;
  padding: 9px 14px; border-radius: 10px; position: relative; transition: color .2s, background .2s;
}
.scrolled .nav a { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--blue-500); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.scrolled .nav a:hover, .nav a:hover { color: var(--blue-500); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: rgba(255,255,255,.92); }
.scrolled .nav-toggle { background: var(--bg-soft); }
.nav-toggle span { width: 22px; height: 2.4px; background: var(--navy-800); border-radius: 3px; transition: transform .3s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Großes Marken-Logo im Startbereich: nur in der mobilen Ansicht (siehe Block am Dateiende) */
.hero-logo { display: none; }
.hero { position: relative; padding: 116px 0 78px; overflow: hidden; color: #fff; isolation: isolate; }
/* Flächiges Button-Hellblau, bewusst ohne Verlauf */
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #2a6bd1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; color: #f0f6ff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.3); flex: none; }
.nb { white-space: nowrap; }
@media (max-width: 420px) {
  .eyebrow { white-space: normal; text-align: left; line-height: 1.5; }
}

.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(100deg, #cfe6ff, #ffffff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #e9f2fd; max-width: 38ch; }
/* Beide Hero-Buttons exakt gleich breit */
.hero-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 32px 0 30px; max-width: 470px; }
.hero-cta .btn { width: 100%; justify-content: center; }

.hero-trust { display: flex; gap: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.3); }
.hero-trust li { font-size: .92rem; color: #dce9fa; }
.hero-trust strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; font-weight: 700; }

/* Hero media */
.hero-media { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,.1); rotate: 1.4deg;
}
.hero-photo img { width: 100%; height: 460px; object-fit: cover; }
.hero-badge {
  position: absolute; left: -22px; bottom: 30px;
  display: flex; align-items: center; gap: 13px;
  background: #fff; color: var(--ink); padding: 14px 20px; border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.hero-badge-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); }
.hero-badge-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.hero-badge span { font-size: .82rem; color: var(--body); }

/* ---------- USP strip ---------- */
.usps { margin-top: -42px; position: relative; z-index: 5; }
.usp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.usp { display: flex; align-items: center; gap: 14px; padding: 24px 26px; }
.usp + .usp { border-left: 1px solid var(--line); }
.usp svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--blue-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.usp strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.usp span { font-size: .85rem; color: var(--muted); }

/* ---------- Qualifikationssiegel ----------
   Liegen unter dem Vorteil-Streifen, direkt bei der Aussage zur Zertifizierung.
   Sie sind der einzige harte Nachweis fuer die Behauptung nach Paragraf 13b. */
.siegel {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap; margin-top: 26px;
}
.siegel img { height: 66px; width: auto; flex: none; }
.siegel p { margin: 0; font-size: .9rem; color: var(--muted); }

@media (max-width: 560px) {
  .siegel { gap: 14px; }
  .siegel img { height: 54px; }
  .siegel p { flex-basis: 100%; text-align: center; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: #fff; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
/* Broschüren-Element: feine Linie mit Tropfen-Icon über jeder Sektions-Überschrift */
.section-head::before {
  content: ""; display: block; width: 96px; height: 20px; margin: 0 auto 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 20'%3E%3Cline x1='0' y1='10' x2='34' y2='10' stroke='%232a6bd1' stroke-width='1.6'/%3E%3Cline x1='62' y1='10' x2='96' y2='10' stroke='%232a6bd1' stroke-width='1.6'/%3E%3Cpath d='M48 3c2.8 3.9 4.5 6.2 4.5 8.5a4.5 4.5 0 0 1-9 0C43.5 9.2 45.2 6.9 48 3z' fill='%232a6bd1'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section-dark .section-head::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 20'%3E%3Cline x1='0' y1='10' x2='34' y2='10' stroke='%23ffffff' stroke-width='1.6' opacity='.7'/%3E%3Cline x1='62' y1='10' x2='96' y2='10' stroke='%23ffffff' stroke-width='1.6' opacity='.7'/%3E%3Cpath d='M48 3c2.8 3.9 4.5 6.2 4.5 8.5a4.5 4.5 0 0 1-9 0C43.5 9.2 45.2 6.9 48 3z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.kicker {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-500); margin-bottom: 14px;
}
.kicker-light { color: var(--cyan-400); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-dark .section-head h2 { color: #fff; }
.section-sub { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.section-dark .section-sub { color: #b9c8de; }

/* Broschüren-Stil: zweite Headline-Zeile hell abgesetzt */
.h2-light { display: block; color: var(--muted); font-weight: 600; font-size: .72em; margin-top: 4px; }
.section-dark .h2-light { color: #a9bfdd; }

/* Fokus-Pills (Broschüre S.4: sauberer Ausführung / effiziente Planung / nachhaltige Technik) */
.focus-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px auto 0; }
.focus-pills li {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--blue-600); white-space: nowrap;
  border: 1.6px solid rgba(42,107,209,.45); border-radius: 999px; padding: 8px 10px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.focus-pills svg {
  width: 26px; height: 26px; padding: 5px; flex: none; border-radius: 50%;
  background: rgba(42,107,209,.1); fill: none; stroke: var(--blue-500);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Benefits-Panel (Broschüre S.10: Was dich bei uns erwartet) */
.benefits-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 24px 28px; backdrop-filter: blur(4px);
}
.benefits-title { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 12px; }
.benefits-list li {
  position: relative; padding: 4px 0 4px 28px; color: #d7e4f6; font-size: .95rem;
}
.benefits-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-img { aspect-ratio: 16 / 9; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-body { padding: 28px 30px 32px; }
.service-body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-body > p { color: var(--body); margin-bottom: 18px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 9px; color: var(--ink); font-size: .97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--bg-softer);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f54a3' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: stretch; }
.about-side { display: flex; }
.about-side .milestones { flex: 1; }
.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 20px; }
.about-copy p { margin-bottom: 16px; }
.about-copy strong { color: var(--ink); }

.about-sub {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--muted); margin: -10px 0 18px;
}

/* Meilensteine-Panel im Broschüren-Stil (dunkelblau, weiße Timeline) */
.milestones {
  background: var(--blue-600); color: #fff;
  border-radius: var(--radius-lg); padding: 26px 28px 24px; box-shadow: var(--shadow);
}
.milestones-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; }
.ms-list { position: relative; margin: 0; padding-left: 22px; list-style: none; }
.ms-list::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.28); border-radius: 2px; }
.ms-list li { position: relative; padding-bottom: 16px; }
.ms-list li:last-child { padding-bottom: 0; }
.ms-list li::before {
  content: ""; position: absolute; left: -22px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2);
}
.ms-list strong { display: block; font-family: var(--font-head); font-size: .98rem; color: #fff; }
.ms-list span { display: block; font-size: .9rem; color: #cfe0f6; }

.timeline { margin-top: 30px; border-left: 2px solid var(--line); padding-left: 0; }
.timeline li { position: relative; padding: 0 0 22px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(42,107,209,.15);
}
.t-year { display: inline-block; font-family: var(--font-head); font-weight: 700; color: var(--ink); min-width: 64px; }
.t-text { color: var(--body); }

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--blue-600); line-height: 1; }
.stat-label { font-size: .9rem; color: var(--muted); margin-top: 8px; display: block; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; grid-auto-rows: 240px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); }
.g-item.g-lg { grid-row: span 2; grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.07); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px; color: #fff;
  background: linear-gradient(to top, rgba(8,32,60,.92), transparent);
  transform: translateY(8px); opacity: .92; transition: transform .3s, opacity .3s;
}
.g-item:hover figcaption { transform: translateY(0); opacity: 1; }
.g-item figcaption strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.g-item figcaption span { font-size: .85rem; color: #cfe0f4; }

/* ---------- Jobs ---------- */
.jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 880px; margin: 0 auto; }
.job-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(4px);
  transition: transform .35s var(--ease), background .35s;
}
.job-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.1); }
.job-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--navy-900);
  background: var(--cyan-400); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.job-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.job-card p { color: #c4d3e8; margin-bottom: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.contact-list { margin-bottom: 26px; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.ci-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--bg-soft); }
.ci-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue-500); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.contact-list a, .contact-list span { color: var(--body); }
.contact-list a:hover { color: var(--blue-500); }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 260px; border: 0; display: block; filter: saturate(.92); }
.map-facade {
  width: 100%; height: 260px; display: flex; align-items: center; justify-content: center; gap: 16px;
  text-align: left; cursor: pointer; color: var(--ink);
  background:
    radial-gradient(circle at 30% 30%, rgba(42,107,209,.12), transparent 60%),
    repeating-linear-gradient(45deg, var(--bg-soft) 0 22px, var(--bg-softer) 22px 44px);
  transition: background .25s;
}
.map-facade:hover { background: radial-gradient(circle at 30% 30%, rgba(42,107,209,.2), transparent 60%), var(--bg-softer); }
.map-facade-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); box-shadow: var(--shadow); }
.map-facade-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.map-facade-text strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.map-facade-text span { font-size: .85rem; color: var(--muted); }

/* Form */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(42,107,209,.12);
}
.field textarea { resize: vertical; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--body); margin-bottom: 20px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue-600); flex: none; }
.check a { color: var(--blue-500); text-decoration: underline; }
.form-note { margin-top: 14px; font-size: .92rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #1f8a4c; }
.form-note.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c2d2e8; padding: 92px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo {
  display: block; width: 150px; height: 70px; margin-bottom: 18px;
  background-color: #fff;
  -webkit-mask: url(../assets/img/logo.png) left center / contain no-repeat;
          mask: url(../assets/img/logo.png) left center / contain no-repeat;
}
.footer-brand p { color: #93a8c6; max-width: 32ch; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .03em; }
.footer-col a { display: block; color: #aebfd6; padding: 5px 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .85rem; color: #7e92b2; }

/* Dezenter Hersteller-Credit (leicht entfernbar) */
.site-credit { text-align: center; padding: 14px 0 2px; font-size: .78rem; color: #5d7197; letter-spacing: .01em; }
.site-credit strong { font-weight: 600; color: #8ba3c6; }
.site-credit a { color: inherit; text-decoration: none; }
.site-credit a:hover { color: #cfe0f4; }
.legal .site-credit { color: var(--muted); }
.legal .site-credit strong { color: var(--body); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(8,18,34,.92); padding: 30px; backdrop-filter: blur(4px);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lb-close { position: absolute; top: 22px; right: 28px; font-size: 2.4rem; line-height: 1; color: #fff; width: 48px; height: 48px; border-radius: 50%; transition: background .2s; }
.lb-close:hover { background: rgba(255,255,255,.12); }

/* ---------- Reveal animation ---------- */
/* Only hide when JS is active (class added by inline script). Without JS, content stays visible. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 520px; }
  .lead { max-width: none; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp:nth-child(3) { border-left: none; }
  .usp:nth-child(odd) { border-left: none; }
  .usp:nth-child(2), .usp:nth-child(4) { border-left: 1px solid var(--line); }
  .usp:nth-child(3), .usp:nth-child(4) { border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-extra { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  /* Schwebendes Menü-Fenster unter dem Burger-Knopf */
  .nav {
    position: fixed; top: 74px; right: 14px; left: auto; bottom: auto;
    width: min(76vw, 290px); flex-direction: column; gap: 4px;
    background: #fff; padding: 10px; border-radius: 20px;
    box-shadow: 0 6px 16px -6px rgba(3,36,71,.25), 0 24px 60px -18px rgba(3,36,71,.45);
    opacity: 0; transform: translateY(-10px) scale(.95); transform-origin: top right;
    pointer-events: none; transition: opacity .22s var(--ease), transform .28s var(--ease);
    z-index: 90;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a {
    color: var(--ink); font-size: 1.05rem; font-weight: 600;
    padding: 13px 16px; border-radius: 13px; transition: background .15s, color .15s;
  }
  .nav a:hover, .nav a:active { background: var(--bg-soft); color: var(--blue-500); }
  .nav a.active { background: var(--bg-softer); color: var(--blue-600); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .btn-call span { display: none; }
  .btn-call { padding: 12px; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(3,36,71,.28); z-index: 80; }

  .hero { padding: 128px 0 70px; }
  .hero-photo img { height: 340px; }
  .hero-trust { gap: 22px; }
  .section { padding: 70px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .g-item.g-lg { grid-row: span 1; grid-column: span 1; }
  .jobs-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
  .usp-grid { grid-template-columns: 1fr; }
  .usp + .usp { border-left: none !important; border-top: 1px solid var(--line); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .g-item.g-lg { grid-row: span 1; grid-column: span 1; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 150px 0 90px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal .lead-sub { color: var(--muted); margin-bottom: 40px; font-size: 1.05rem; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 6px; color: var(--ink); }
.legal p { margin-bottom: 14px; }
.legal a { color: var(--blue-500); text-decoration: underline; }
.legal .back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 34px;
  font-family: var(--font-head); font-weight: 600; color: var(--blue-600); text-decoration: none;
}
.legal .back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.legal .back:hover { gap: 12px; }
.legal .note {
  background: var(--bg-soft); border: 1px dashed var(--blue-400); border-radius: 14px;
  padding: 16px 20px; color: var(--body); font-size: .92rem; margin: 8px 0 24px;
}
.legal .card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.legal-header { background: var(--navy-800); }

/* =========================================================
   PREMIUM DEPTH & MOTION LAYER
   ========================================================= */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; z-index: 300;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  will-change: transform;
}

/* ---- Keyframes ---- */
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes float-y-sm { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(43,159,240,.55); }
  70% { box-shadow: 0 0 0 11px rgba(43,159,240,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,159,240,0); }
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---- Decorative blurred orbs (depth behind content) ---- */
.orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; z-index: 0; pointer-events: none; }
.orb-blue   { background: radial-gradient(circle, rgba(42,107,209,.55), transparent 70%); }
.orb-cyan   { background: radial-gradient(circle, rgba(43,159,240,.45), transparent 70%); }
.orb-copper { background: radial-gradient(circle, rgba(201,122,59,.30), transparent 70%); }
.float { animation: float-y 10s ease-in-out infinite; }

/* keep section content above orbs; clip decorative orbs to the section */
.section { position: relative; isolation: isolate; overflow: hidden; }
.section > .container { position: relative; z-index: 2; }

/* ---- Wave dividers ---- */
.wave { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 1; pointer-events: none; }
.wave svg { display: block; width: 100%; height: 70px; }
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; }
.section-dark { position: relative; overflow: hidden; padding-top: 140px; padding-bottom: 140px; }
.site-footer { position: relative; }
.site-footer .wave-top svg { height: 60px; }

/* ---- Grain texture for rich dark surfaces ---- */
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Button shine + press ---- */
.btn-primary, .btn-light { position: relative; overflow: hidden; }
.btn-primary::after, .btn-light::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .65s var(--ease);
}
.btn-light::after { background: linear-gradient(100deg, transparent, rgba(42,107,209,.18), transparent); }
.btn-primary:hover::after, .btn-light:hover::after { left: 150%; }
.btn:active { transform: translateY(1px) scale(.98); }

/* ---- Hero polish ---- */
.eyebrow .dot { animation: pulse-ring 2.6s infinite; }
.hero-badge { animation: float-y-sm 6s ease-in-out infinite; }
.hero-photo { position: relative; }
.hero-tag {
  position: absolute; top: 18px; right: -16px; z-index: 3; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; padding: 9px 15px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  font-family: var(--font-head); box-shadow: var(--shadow); animation: float-y-sm 7s ease-in-out infinite .5s;
}
.hero-tag svg { width: 15px; height: 15px; fill: none; stroke: var(--cyan-400); stroke-width: 2.2; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: #9fb6d6; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.hero-scroll svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; animation: bob 1.8s ease-in-out infinite; }
.hero-trust strong { background: linear-gradient(120deg, #fff, #cfe4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- USP: separate elevated tiles ---- */
.usp-grid { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; gap: 16px; }
.usp {
  background: #fff; border: 1px solid var(--line) !important; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px 20px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.usp:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(42,107,209,.3) !important; }
.usp svg {
  width: 46px; height: 46px; padding: 11px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(42,107,209,.14), rgba(43,159,240,.14));
  box-shadow: inset 0 0 0 1px rgba(42,107,209,.12); stroke: var(--blue-600);
}

/* ---- Service cards: clickable, 3D, layered ---- */
.service-card {
  position: relative; cursor: pointer; transform-style: preserve-3d; will-change: transform;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service-card.tilt {
  --rx: 0deg; --ry: 0deg; --ty: 0px;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, var(--ty), 0);
}
.service-card:hover, .service-card:focus-visible { box-shadow: var(--shadow); border-color: rgba(42,107,209,.4); outline: none; }
.service-card:focus-visible { --ty: -6px; box-shadow: var(--shadow), 0 0 0 3px rgba(42,107,209,.35); }
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 4;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card:hover::before, .service-card:focus-visible::before { transform: scaleX(1); }

.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.07); }
.service-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,32,60,.55), transparent 55%);
}
.service-num {
  position: absolute; top: 8px; right: 18px; z-index: 3;
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: rgba(255,255,255,.92);
  text-shadow: 0 2px 18px rgba(8,24,48,.5); transform: translateZ(50px);
}
.service-icon {
  position: absolute; left: 22px; top: -32px; z-index: 4;
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  box-shadow: var(--shadow-blue); transform: translateZ(60px);
  transition: transform .4s var(--ease);
}
.service-card:hover .service-icon { transform: translateZ(60px) translateY(-3px) rotate(-4deg); }
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.service-body { position: relative; padding-top: 42px; transform: translateZ(20px); }
.service-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--blue-600);
}
.service-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.service-card:hover .service-more svg { transform: translateX(6px); }

/* ---- Service detail modal ---- */
.modal { position: fixed; inset: 0; z-index: 320; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,18,34,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-dialog {
  position: relative; max-width: 680px; margin: 6vh auto; background: #fff;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  max-height: 88vh; overflow-y: auto;
  opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .3s, transform .45s var(--ease);
}
.modal.open .modal-dialog { opacity: 1; transform: none; }
.modal-media { position: relative; height: 230px; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,32,60,.5), transparent 60%); }
.modal-icon {
  position: absolute; left: 32px; bottom: -26px; z-index: 3; width: 60px; height: 60px;
  border-radius: 17px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); box-shadow: var(--shadow-blue);
}
.modal-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 4; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: transform .2s, background .2s;
}
.modal-close:hover { transform: rotate(90deg); background: #fff; }
.modal-body { padding: 44px 36px 36px; }
.modal-body h3 { font-size: 1.7rem; margin-bottom: 12px; }
.modal-body > p { color: var(--body); margin-bottom: 20px; }
.modal-body .ticks { margin-bottom: 28px; }
.modal-body .ticks li { font-size: 1rem; }

/* ---- Gallery polish ---- */
.g-item { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.g-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.g-item::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M21 3l-7 7M9 21H3v-6M3 21l7-7'/%3E%3C/svg%3E") center/18px no-repeat;
  backdrop-filter: blur(4px); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s; z-index: 3;
}
.g-item:hover::after { opacity: 1; transform: none; }

/* ---- Reveal: directions + stagger ---- */
.js .reveal { transition-delay: var(--d, 0ms); }
.js .reveal[data-reveal="left"]  { transform: translateX(-32px); }
.js .reveal[data-reveal="right"] { transform: translateX(32px); }
.js .reveal[data-reveal="scale"] { transform: scale(.93); }
.js .reveal.in { transform: none; }

@media (max-width: 860px) {
  .service-card.tilt { transform: none; }
  .hero-tag { right: 8px; }
  .orb { opacity: .4; }
  .section-dark { padding-top: 110px; padding-bottom: 110px; }
  .modal-body { padding: 40px 24px 28px; }
}

/* ---- Über uns: Teamfoto + Betriebsfilm ---- */
.about-extra { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; margin-top: 54px; align-items: stretch; }
.about-media, .about-video { margin: 0; }
.about-media img {
  width: 100%; height: 100%; min-height: 320px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.about-media { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.about-media figcaption {
  position: absolute; inset: auto 0 0 0; padding: 46px 24px 18px; color: #fff; font-size: .95rem;
  background: linear-gradient(to top, rgba(3,36,71,.88), transparent);
}
.video-facade {
  position: relative; display: block; width: 100%; height: 100%; min-height: 320px;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s var(--ease); }
.video-facade:hover img { transform: scale(1.05); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,36,71,.85), rgba(3,36,71,.15) 55%); }
.vf-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); z-index: 2;
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.5); transition: transform .3s var(--ease), background .3s;
}
.video-facade:hover .vf-play { transform: translate(-50%, -60%) scale(1.1); background: rgba(255,255,255,.28); }
.vf-play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.vf-label { position: absolute; left: 24px; right: 24px; bottom: 18px; z-index: 2; color: #fff; text-align: left; }
.vf-label strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.vf-label span { font-size: .85rem; color: #c9ddf5; }
.about-video video { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius-lg); display: block; background: #000; box-shadow: var(--shadow); }

/* ---- Video-Showcase: großes 16:9-Kino ---- */
.video-showcase { margin-top: 34px; }
.video-showcase .video-facade { aspect-ratio: 16 / 9; min-height: 0; }
.video-showcase .vf-play { width: 94px; height: 94px; }
.video-showcase .vf-play svg { width: 40px; height: 40px; }
.video-showcase .vf-label strong { font-size: 1.25rem; }
.video-showcase video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #000;
}

/* ---- Team-Strip (Team & Karriere) ---- */
.team-strip { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; margin-bottom: 26px; }
.team-strip figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.team-strip img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.team-strip figcaption {
  position: absolute; inset: auto 0 0 0; padding: 46px 22px 16px; color: #fff; font-size: .95rem;
  background: linear-gradient(to top, rgba(3,36,71,.9), transparent);
}

/* ---- Karriere: Foto + Stellen ---- */
.karriere-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: stretch; }
/* Foto + Benefits als EINE Kachel; endet bündig mit der 2. Stellenanzeige */
.karriere-left { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.karriere-left .karriere-photo { border-radius: 0; box-shadow: none; }
.karriere-left .benefits-card { flex: 1; border-radius: 0; border: 0; background: rgba(255,255,255,.08); }
.karriere-photo {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.karriere-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.karriere-photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 52px 24px 20px; color: #fff; font-size: .95rem;
  background: linear-gradient(to top, rgba(3,36,71,.92), transparent);
}
.jobs-col { display: grid; gap: 26px; grid-auto-rows: 1fr; }

/* ---- Custom CI dropdown (Anliegen) ---- */
.field-label {
  display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  color: var(--ink); margin-bottom: 7px;
}
.cselect { position: relative; }
.cselect-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cselect-trigger:hover { border-color: var(--blue-400); }
.cselect-trigger:focus-visible { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(42,107,209,.12); }
.cselect.open .cselect-trigger { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(42,107,209,.12); }
.cselect-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-arrow {
  width: 20px; height: 20px; flex: none; fill: none; stroke: var(--blue-500);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.cselect.open .cselect-arrow { transform: rotate(180deg); }

.cselect-list {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 7px;
  box-shadow: var(--shadow); max-height: 286px; overflow-y: auto; list-style: none; margin: 0;
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.cselect.open .cselect-list { opacity: 1; transform: none; pointer-events: auto; }
.cselect-option {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px;
  color: var(--body); font-size: .97rem; cursor: pointer; transition: background .15s, color .15s;
}
.cselect-option::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--line); transition: background .15s, box-shadow .15s;
}
.cselect-option:hover, .cselect-option.active { background: var(--bg-soft); color: var(--ink); }
.cselect-option[aria-selected="true"] { color: var(--blue-600); font-weight: 600; }
.cselect-option[aria-selected="true"]::before { background: var(--blue-500); box-shadow: 0 0 0 3px rgba(42,107,209,.18); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .service-card, .g-item, .g-item img, .job-card, .usp { transition: none; }
  .float, .hero-badge, .hero-tag, .eyebrow .dot, .hero-scroll svg { animation: none !important; }
  .service-card.tilt { transform: none !important; }
  .btn-primary::after, .btn-light::after { display: none; }
}

/* =========================================================
   Responsive-Overrides für späte Komponenten
   (müssen NACH den Basis-Regeln stehen, sonst greifen sie nie)
   ========================================================= */
@media (max-width: 980px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .team-strip { grid-template-columns: 1fr; }
  .karriere-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .focus-pills { grid-template-columns: 1fr; max-width: 340px; }
  .focus-pills li { white-space: normal; }
  .stats-row { margin-top: 26px; }
  .eyebrow { font-size: .72rem; padding: 6px 12px; letter-spacing: .02em; gap: 7px; }
}
@media (max-width: 460px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* Service-Modal: auf Mobil als richtige Karte mit Rand statt randlosem Popup */
@media (max-width: 760px) {
  .modal { display: none; align-items: flex-start; }
  .modal.open { display: flex; }
  .modal-dialog {
    margin: max(16px, 5vh) 14px; width: calc(100% - 28px);
    max-height: calc(100vh - max(32px, 10vh));
  }
  .modal-media { height: 180px; }
  .modal-body { padding: 30px 22px 24px; }
}

/* Hero-Buttons auf schmalen Displays untereinander, weiterhin gleich breit */
@media (max-width: 440px) {
  .hero-cta { grid-template-columns: 1fr; max-width: 340px; }
}

/* =========================================================
   Mobile Startansicht (freigegeben 31.08.2026)
   Logo präsent, kompakter erster Eindruck. Desktop unberührt.
   ========================================================= */
@media (max-width: 760px) {
  /* Kopfzeilen-Logo weicht dem großen Logo im Startbereich und kehrt beim Scrollen zurück.
     Nur auf der Startseite, die Rechtsseiten haben keinen Startbereich. */
  .site-header:not(.legal-header) .brand-logo { opacity: 0; transition: opacity .3s; }
  .site-header:not(.legal-header).scrolled .brand-logo { opacity: 1; width: 128px; height: 58px; }

  .hero { padding: 100px 0 44px; }
  .hero-copy { text-align: center; }
  .hero-logo {
    display: block; width: min(62vw, 224px); aspect-ratio: 920 / 431;
    height: auto; margin: 4px auto 20px;
    background-color: #fff;
    -webkit-mask: url(../assets/img/logo.png) center / contain no-repeat;
            mask: url(../assets/img/logo.png) center / contain no-repeat;
    filter: drop-shadow(0 10px 24px rgba(3,36,71,.35));
  }
  .nur-desktop { display: none; }
  .eyebrow { margin-bottom: 16px; }
  .hero h1 { font-size: 1.9rem; line-height: 1.16; margin-bottom: 14px; }
  .lead { font-size: 1.02rem; max-width: 30ch; margin-inline: auto; }
  .hero-cta { grid-template-columns: 1fr; max-width: 320px; margin: 24px auto 20px; }
  .hero-trust { justify-content: center; gap: 20px; padding-top: 18px; }
  .hero-trust strong { font-size: 1.3rem; }
  .hero-media { margin-top: 26px; max-width: none; }
  .hero-photo { rotate: 0deg; border-width: 4px; }
  .hero-photo img { height: 235px; object-fit: cover; }
  .hero-badge { left: 12px; bottom: 14px; padding: 11px 16px; }
  .hero-tag { display: none; }
}
