/* =========================================================================
   Sondermeier Elektromotoren — Design System
   Modern-industriell · Motion nach emil-design-eng
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Palette */
  --anthracite-900: #0e1116;
  --anthracite-800: #161a21;
  --anthracite-700: #1f242d;
  --steel-500: #5b6675;
  --steel-300: #9aa4b2;
  --steel-100: #e4e8ee;
  --paper: #f6f8fb;
  --paper-2: #eef2f7;
  --white: #ffffff;

  /* Brand blue (industrial) */
  --blue-700: #0a4a8f;
  --blue-600: #0d5cb3;
  --blue-500: #1a73d1;
  --blue-400: #3d92e6;
  --blue-glow: rgba(26, 115, 209, 0.35);

  /* Signal (Notfall / electric accent) */
  --signal: #f5a623;
  --signal-600: #e08c00;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--paper);
  --ink: var(--anthracite-900);
  --ink-soft: #3a414c;
  --muted: var(--steel-500);
  --line: #dbe1ea;
  --line-soft: #e9edf3;

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows — soft, diffuse, never harsh */
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 2px 6px rgba(14, 17, 22, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(14, 17, 22, 0.18), 0 4px 12px -6px rgba(14, 17, 22, 0.08);
  --shadow-lg: 0 30px 60px -24px rgba(14, 17, 22, 0.28), 0 8px 24px -12px rgba(14, 17, 22, 0.12);
  --ring: inset 0 0 0 1px var(--line);

  /* Motion — emil-design-eng curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 132px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.bg-alt { background: var(--bg-alt); }
.bg-ink { background: var(--anthracite-900); color: var(--paper); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.stack-sm > * + * { margin-top: 14px; }

/* ---------- Buttons (emil: scale on :active, ease-out, <300ms) ---------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 24px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), box-shadow 220ms var(--ease-out);
  box-shadow: 0 8px 20px -10px var(--blue-glow);
  will-change: transform;
}
.btn:hover { background: var(--blue-500); box-shadow: 0 14px 30px -12px var(--blue-glow); }
.btn:active { transform: scale(0.97); }
.btn__icon {
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  display: inline-grid; place-items: center;
  transition: transform 200ms var(--ease-out);
}
.btn:hover .btn__icon { transform: translate(3px, -1px); }
.btn__icon svg { width: 15px; height: 15px; stroke: currentColor; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: var(--ring);
  padding: 13px 24px;
}
.btn--ghost:hover { background: var(--white); box-shadow: inset 0 0 0 1px var(--blue-400); }
.btn--ghost:active { transform: scale(0.97); }

.btn--signal { --btn-bg: var(--signal); --btn-fg: #241a00; box-shadow: 0 8px 20px -10px rgba(245, 166, 35, 0.5); }
.btn--signal:hover { background: var(--signal-600); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--anthracite-900); }
.btn--light:hover { background: var(--paper); }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--blue-600);
  transition: gap 200ms var(--ease-out), color 200ms var(--ease-out);
}
.textlink svg { width: 16px; height: 16px; stroke: currentColor; transition: transform 200ms var(--ease-out); }
.textlink:hover { gap: 11px; color: var(--blue-500); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--anthracite-900);
  color: var(--steel-300);
  font-size: 0.85rem;
}
.topbar .container { display: flex; gap: 24px; align-items: center; justify-content: flex-end; height: 40px; }
.topbar a { color: var(--steel-100); font-weight: 600; transition: color 160ms var(--ease-out); }
.topbar a:hover { color: #fff; }
.topbar .sig { color: var(--signal); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; stroke: currentColor; opacity: 0.85; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out), background-color 240ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-600), var(--anthracite-800));
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.96rem; color: var(--ink-soft);
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.nav-links a.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a.nav-link[aria-current="page"] { color: var(--blue-600); }
.nav-links .caret { width: 14px; height: 14px; stroke: currentColor; transition: transform 200ms var(--ease-out); }

/* Dropdown */
.has-menu > .submenu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 230px; padding: 8px;
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft);
  transform-origin: top left;
  opacity: 0; transform: scale(0.96) translateY(-4px);
  pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
/* invisible bridge across the gap so hover isn't lost when moving to the submenu */
.has-menu > .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px; }
/* keep-open buffer: whole item stays hoverable a touch longer */
.has-menu > .submenu { transition: opacity 180ms var(--ease-out) 120ms, transform 180ms var(--ease-out) 120ms; }
.has-menu:hover > .submenu, .has-menu:focus-within > .submenu { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; transition-delay: 0ms; }
.has-menu:hover .caret { transform: rotate(180deg); }
.submenu a {
  display: block; padding: 11px 14px; border-radius: 10px;
  font-weight: 600; font-size: 0.94rem; color: var(--ink-soft);
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.submenu a:hover { background: var(--paper); color: var(--blue-600); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Hamburger */
.hamburger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; }
.hamburger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 260ms var(--ease-in-out), opacity 200ms var(--ease-out); }
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 28px; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line-soft); opacity: 0; transform: translateY(14px); }
body.menu-open .mobile-menu a { animation: mm-in 420ms var(--ease-out) forwards; }
body.menu-open .mobile-menu a:nth-child(1) { animation-delay: 60ms; }
body.menu-open .mobile-menu a:nth-child(2) { animation-delay: 105ms; }
body.menu-open .mobile-menu a:nth-child(3) { animation-delay: 150ms; }
body.menu-open .mobile-menu a:nth-child(4) { animation-delay: 195ms; }
body.menu-open .mobile-menu a:nth-child(5) { animation-delay: 240ms; }
body.menu-open .mobile-menu a:nth-child(6) { animation-delay: 285ms; }
@keyframes mm-in { to { opacity: 1; transform: translateY(0); } }
.mobile-menu .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--anthracite-900); color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
}
.hero__glow { position: absolute; z-index: 1; width: 720px; height: 720px; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.hero__glow--1 { background: rgba(26,115,209,0.34); top: -260px; right: -160px; }
.hero__glow--2 { background: rgba(245,166,35,0.14); bottom: -320px; left: -180px; }
.hero .container { position: relative; z-index: 2; padding-block: clamp(84px, 13vw, 168px); }
.hero__inner { max-width: 860px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--blue-400); }
.hero__sub { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: rgba(255,255,255,0.78); max-width: 60ch; margin-top: 24px; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 68px); margin-top: 64px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.12); }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 600; color: #fff; letter-spacing: -0.03em; }
.stat__num span { color: var(--blue-400); }
.stat__label { font-size: 0.9rem; color: rgba(255,255,255,0.62); margin-top: 4px; }

/* ---------- Service cards (double-bezel) ---------- */
.grid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative;
  background: #fff; border-radius: var(--r-lg);
  padding: 30px 28px 32px;
  box-shadow: var(--ring), var(--shadow-sm);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
  overflow: hidden;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-400)); transform: scaleX(0); transform-origin: left; transition: transform 380ms var(--ease-out); }
.card:hover { transform: translateY(-6px); box-shadow: var(--ring), var(--shadow-lg); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 58px; height: 58px; border-radius: 15px;
  background: var(--paper); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  margin-bottom: 22px; color: var(--blue-600);
}
.card__icon svg { width: 28px; height: 28px; stroke: currentColor; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; }

/* Section head */
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head.center { margin-inline: auto; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: var(--paper-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.split__media:hover img { transform: scale(1.04); }
.split__badge { position: absolute; left: 20px; bottom: 20px; background: rgba(14,17,22,0.82); color: #fff; backdrop-filter: blur(8px); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; font-size: 0.9rem; display: inline-flex; gap: 10px; align-items: center; }
.split__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(245,166,35,0.25); }

.feature-list { display: grid; gap: 14px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; color: var(--ink-soft); }
.feature-list .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(13,92,179,0.1); color: var(--blue-600); display: grid; place-items: center; margin-top: 2px; }
.feature-list .tick svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 3; }

/* ---------- Partners marquee ---------- */
.partners { border-block: 1px solid var(--line-soft); background: var(--bg-alt); }
.partners__label { text-align: center; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Testimonials ---------- */
.grid-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: #fff; border-radius: var(--r-lg); padding: 32px 30px; box-shadow: var(--ring), var(--shadow-sm); display: flex; flex-direction: column; gap: 20px; transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.quote:hover { transform: translateY(-4px); box-shadow: var(--ring), var(--shadow-md); }
.quote__stars { display: flex; gap: 3px; color: var(--signal); }
.quote__stars svg { width: 18px; height: 18px; fill: currentColor; }
.quote p { font-size: 1.05rem; color: var(--ink); font-weight: 500; line-height: 1.55; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-600), var(--anthracite-700)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.quote__name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.quote__role { font-size: 0.85rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--anthracite-900); color: #fff; padding: clamp(44px, 6vw, 76px); }
.cta-band__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(26,115,209,0.32); filter: blur(110px); top: -220px; right: -120px; pointer-events: none; }
.cta-band .container-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 46ch; margin-top: 12px; }

/* ---------- Prose / long text ---------- */
.prose { max-width: 74ch; }
.prose h3 { margin-top: 40px; margin-bottom: 12px; }
.prose p { margin-bottom: 16px; }
.prose p strong, .prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--blue-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* Spec / capability columns */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.spec { background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: var(--ring), var(--shadow-sm); }
.spec h3 { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; line-height: 1.25; }
.spec h3 > .spec__ic { flex: none; margin-top: 1px; }
.spec h3 .spec__ic { width: 40px; height: 40px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--line-soft); }
.spec h3 .spec__ic svg { width: 20px; height: 20px; stroke: currentColor; }
.spec ul { display: grid; gap: 10px; }
.spec li { position: relative; padding-left: 18px; font-size: 0.96rem; color: var(--ink-soft); }
.spec li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; background: var(--anthracite-900); color: #fff; overflow: hidden; }
.page-hero__glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; background: rgba(26,115,209,0.28); filter: blur(120px); top: -300px; right: -140px; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 116px); }
.page-hero .eyebrow { color: var(--blue-400); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,0.76); max-width: 60ch; margin-top: 20px; font-size: 1.12rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 22px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 13px; height: 13px; stroke: currentColor; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery a { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery a:hover img { transform: scale(1.05); }

/* ---------- Jobs ---------- */
.jobs { display: grid; gap: 14px; }
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #fff; border-radius: var(--r-md); padding: 24px 28px;
  box-shadow: var(--ring), var(--shadow-sm);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.job:hover { transform: translateX(4px); box-shadow: inset 0 0 0 1px var(--blue-400), var(--shadow-md); }
.job__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
.job__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job__meta svg { width: 14px; height: 14px; stroke: currentColor; }
.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--r-pill); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tag--blue { background: rgba(13,92,179,0.1); color: var(--blue-700); }
.tag--signal { background: rgba(245,166,35,0.16); color: var(--signal-600); }
.job__arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--blue-600); transition: background-color 220ms var(--ease-out), transform 220ms var(--ease-out); }
.job:hover .job__arrow { background: var(--blue-600); color: #fff; transform: translateX(2px); }
.job__arrow svg { width: 18px; height: 18px; stroke: currentColor; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit { background: #fff; border-radius: var(--r-md); padding: 26px 24px; box-shadow: var(--ring), var(--shadow-sm); }
.benefit__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--line-soft); margin-bottom: 16px; }
.benefit__ic svg { width: 23px; height: 23px; stroke: currentColor; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 6px; }
.benefit p { font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.contact-card { background: var(--anthracite-900); color: #fff; border-radius: var(--r-lg); padding: 38px 34px; position: relative; overflow: hidden; }
.contact-card__glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(26,115,209,0.3); filter: blur(90px); top: -180px; right: -120px; }
.contact-card > * { position: relative; z-index: 1; }
.contact-card h3 { color: #fff; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact-item:last-child { border-bottom: none; }
.contact-item__ic { flex: none; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: var(--blue-400); }
.contact-item__ic svg { width: 20px; height: 20px; stroke: currentColor; }
.contact-item__label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.contact-item__val { font-weight: 700; font-size: 1.05rem; color: #fff; }
.contact-item__val a:hover { color: var(--blue-400); }
.contact-emergency { background: var(--signal); color: #241a00; border-radius: var(--r-md); padding: 18px 22px; display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.contact-emergency svg { width: 26px; height: 26px; stroke: currentColor; flex: none; }
.contact-emergency b { display: block; font-size: 1.25rem; font-family: var(--font-display); }

.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.person { background: #fff; border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--ring), var(--shadow-sm); transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.person:hover { transform: translateY(-3px); box-shadow: var(--ring), var(--shadow-md); }
.person__dept { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-600); }
.person__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin: 6px 0 10px; }
.person__row { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--ink-soft); padding: 3px 0; }
.person__row svg { width: 15px; height: 15px; stroke: currentColor; color: var(--muted); flex: none; }
.person__row a:hover { color: var(--blue-600); }

.addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.addr { background: #fff; border-radius: var(--r-md); padding: 26px; box-shadow: var(--ring), var(--shadow-sm); }
.addr h3 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.addr h3 svg { width: 18px; height: 18px; stroke: var(--blue-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--anthracite-900); color: var(--steel-300); padding-top: clamp(56px, 7vw, 84px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: clamp(30px, 5vw, 64px); padding-bottom: 52px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--steel-300); }
.footer-about { margin-top: 18px; font-size: 0.94rem; color: var(--steel-300); max-width: 42ch; }
.footer-badge { margin-top: 22px; background: #fff; border-radius: 10px; padding: 10px; display: inline-block; }
.footer-badge img { height: 73px; width: auto; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col li { font-size: 0.94rem; color: var(--steel-300); transition: color 160ms var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-contact div { margin-bottom: 16px; font-size: 0.92rem; line-height: 1.7; }
.footer-contact b { color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 0.86rem; color: var(--steel-500); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); will-change: transform, opacity; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"] { transition-delay: 70ms; }
[data-reveal][data-delay="2"] { transition-delay: 140ms; }
[data-reveal][data-delay="3"] { transition-delay: 210ms; }
[data-reveal][data-delay="4"] { transition-delay: 280ms; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .grid-quotes { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: block; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .spec-grid, .people-grid, .addr-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-band .container-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .grid-services, .benefits { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .topbar .container { justify-content: center; gap: 16px; }
  .topbar .tb-hide { display: none; }
}


/* ---------- Real logo & partner logos (added) ---------- */
.brand { gap: 0; }
.brand img { height: 44px; width: auto; display: block; }
.site-header .brand img { height: 40px; }
.site-footer .brand img { height: 40px; margin-bottom: 4px; }
@media (max-width: 520px){ .brand img{ height: 34px; } }
.chip { padding: 14px 26px; min-height: 62px; }
.chip img { height: 30px; width: auto; max-width: 130px; object-fit: contain; display: block; }
.partner-photos { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.partner-photos a, .partner-photos figure { position:relative; border-radius:var(--r-md); overflow:hidden; box-shadow:var(--shadow-sm); aspect-ratio:4/3; background:var(--paper-2); margin:0; }
.partner-photos img { width:100%; height:100%; object-fit:cover; transition:transform 600ms var(--ease-out); }
.partner-photos a:hover img, .partner-photos figure:hover 
/* ---------- Map (Kontakt) ---------- */
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/7; background: var(--anthracite-900); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; background: linear-gradient(180deg, var(--anthracite-800), var(--anthracite-900)); }
.map-consent strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.map-consent p { color: rgba(255,255,255,.7); max-width: 48ch; font-size: .92rem; }
.map-consent > svg { width: 34px; height: 34px; stroke: var(--blue-400); }
.map-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
@media (max-width: 860px) { .map-wrap { aspect-ratio: 4/3; } }

/* ---------- Cookie-Consent ---------- */
.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 0 var(--gutter) clamp(14px, 3vw, 26px); display: flex; justify-content: center; opacity: 0; transform: translateY(16px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.cc-banner.is-open { opacity: 1; transform: translateY(0); }
.cc-card { width: 100%; max-width: 1080px; background: var(--anthracite-900); color: var(--paper); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 30px); display: flex; gap: clamp(18px, 3vw, 40px); align-items: center; }
.cc-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.cc-body p { color: rgba(255,255,255,.72); font-size: .92rem; line-height: 1.6; margin: 0; }
.cc-body a { color: var(--blue-400); text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.cc-banner .btn--ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.cc-banner .btn--ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
@media (max-width: 860px) { .cc-card { flex-direction: column; align-items: stretch; } .cc-actions { justify-content: stretch; } .cc-actions .btn { flex: 1; justify-content: center; } }

.cc-overlay { position: fixed; inset: 0; z-index: 1001; background: rgba(14,17,22,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease-out); overflow-y: auto; }
.cc-overlay.is-open { opacity: 1; pointer-events: auto; }
.cc-modal { position: relative; width: 100%; max-width: 560px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 40px); transform: scale(.96); transition: transform 240ms var(--ease-out); max-height: calc(100vh - 40px); overflow-y: auto; }
.cc-overlay.is-open .cc-modal { transform: scale(1); }
.cc-modal h3 { font-size: 1.5rem; margin-bottom: 8px; }
.cc-intro { font-size: .92rem; color: var(--ink-soft); margin-bottom: 22px; }
.cc-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: none; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.5rem; line-height: 1; display: grid; place-items: center; transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.cc-close:hover { background: var(--paper-2); }
.cc-close:active { transform: scale(.94); }
.cc-cat { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.cc-cat:first-of-type { border-top: none; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-cat-head strong { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.cc-always { display: inline-block; margin-left: 10px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-600); }
.cc-cat p { font-size: .88rem; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.cc-switch { position: relative; width: 46px; height: 26px; flex: none; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-track { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background-color 200ms var(--ease-out); pointer-events: none; }
.cc-track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform 200ms var(--ease-out); }
.cc-switch input:checked + .cc-track { background: var(--blue-600); }
.cc-switch input:checked + .cc-track::before { transform: translateX(20px); }
.cc-switch input:disabled { cursor: default; }
.cc-switch input:disabled + .cc-track { background: var(--blue-600); opacity: .45; }
.cc-modal .cc-actions { margin-top: 26px; }
@media (max-width: 520px) { .cc-modal .cc-actions .btn { flex: 1; justify-content: center; } }

/* ---------- Kontakt: Feintuning (Overrides) ---------- */
.contact-card { padding: 30px 28px; align-self: start; }
.contact-card__glow { position: absolute; }
.contact-item { padding: 13px 0; align-items: center; }
.contact-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.contact-item__label { display: block; margin-bottom: 5px; font-size: 0.72rem; }
.contact-item__val { display: block; line-height: 1.3; }
.contact-item__val a { word-break: break-word; }
.contact-emergency { margin-top: 18px; }

/* Karte: höher */
.map-wrap { aspect-ratio: auto; height: clamp(430px, 54vh, 640px); }
@media (max-width: 860px) { .map-wrap { aspect-ratio: auto; height: 380px; } }

/* Karten-Platzhalter (vor Zustimmung) */
.map-consent { gap: 14px; padding: 30px; overflow: hidden; }
.map-consent::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(61,146,230,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(61,146,230,.12) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 42%, #000 32%, transparent 82%);
  mask-image: radial-gradient(ellipse 78% 78% at 50% 42%, #000 32%, transparent 82%);
  pointer-events: none; }
.map-consent > * { position: relative; z-index: 1; }
.map-pin { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-600); box-shadow: 0 10px 26px -8px rgba(26,115,209,.6); }
.map-pin svg { width: 28px; height: 28px; stroke: #fff; }
.map-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(61,146,230,.55); animation: mapPulse 2.4s var(--ease-out) infinite; }
@keyframes mapPulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2); opacity: 0; } }
.map-consent strong { font-size: 1.3rem; }
.map-consent p { max-width: 52ch; }
.map-hint { font-size: .82rem; color: rgba(255,255,255,.5); }
@media (prefers-reduced-motion: reduce) { .map-pin::after { animation: none; } }

/* ---------- Anchor-Ziele unter dem Sticky-Header ---------- */
section[id], .spec[id] { scroll-margin-top: 100px; }
.submenu { min-width: 248px; }
