/* ============ QSP Industrieservice ============ */

:root {
  /* Dark mode — neutral #3e3d40 base */
  --bg-0: #1a191b;
  --bg-1: #242326;
  --bg-2: #2e2d30;
  --bg-3: #3e3d40;
  --line: #4a494c;
  --line-2: #5a595c;
  --fg-0: #ffffff;
  --fg-1: #d4d3d5;
  --fg-2: #9a999c;
  --fg-3: #6e6d70;

  /* Brand */
  --accent: #00466a;          /* primary  */
  --accent-2: #1e6a92;        /* primary lifted for dark bgs */
  --accent-soft: rgba(30, 106, 146, 0.18);
  --accent-line: rgba(30, 106, 146, 0.5);
  --danger: #bc0b2c;          /* secondary */
  --danger-soft: rgba(188, 11, 44, 0.18);

  --maxw: 1400px;
  --pad: clamp(20px, 4vw, 64px);

  --f-sans: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="light"] {
  --bg-0: #ffffff;
  --bg-1: #f7f6f8;
  --bg-2: #eeedef;
  --bg-3: #e2e1e3;
  --line: #d0cfd1;
  --line-2: #b5b4b6;
  --fg-0: #1a191b;
  --fg-1: #3e3d40;
  --fg-2: #636266;
  --fg-3: #8b8a8d;

  --accent: #00466a;
  --accent-2: #00466a;
  --accent-soft: rgba(0, 70, 106, 0.1);
  --accent-line: rgba(0, 70, 106, 0.35);
  --danger: #bc0b2c;
  --danger-soft: rgba(188, 11, 44, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--bg-0);
  color: var(--fg-0);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  background: color-mix(in oklch, var(--bg-0) 55%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 40%, transparent);
  transition: background .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: color-mix(in oklch, var(--bg-0) 82%, transparent);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
@media (max-width: 1200px) { .nav__inner { gap: 16px; } }
.nav__brand { display: flex; align-items: center; min-width: 0; }
.nav__brand img { height: 48px; width: auto !important; max-width: none !important; opacity: .95; flex-shrink: 0; object-fit: contain; }
@media (max-width: 1200px) { .nav__brand img { height: 40px; } }
@media (max-width: 740px) { .nav__brand img { height: 36px; } }
.foot__brand img { height: 44px; width: auto; max-width: none; opacity: .8; flex-shrink: 0; object-fit: contain; }

/* Hotline CTA replacing btn--alert */
.btn--hotline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--fg-0); padding: 10px 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase;
}
.btn--hotline:hover { background: color-mix(in oklch, var(--accent) 22%, transparent); }
.btn--hotline .btn__hot-label { color: var(--fg-2); }
.btn--hotline .btn__hot-num { color: #ffffff; font-weight: 600; font-size: 13px; letter-spacing: .04em; }

/* Nav CTA in primary color */
.btn--nav {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff !important;
  padding: 9px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .15s, transform .15s;
}
.btn--nav:hover { background: var(--accent-2); transform: translateY(-1px); }

/* Services motiv — image placeholder awaiting brand photo */
.services__motiv { margin-top: 48px; border: 1px solid var(--line); background: var(--bg-1); }
.services__motiv-art { width: 100%; aspect-ratio: 16 / 7; position: relative; overflow: hidden; }
.services__motiv-ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in oklch, var(--line) 40%, transparent) 18px 19px),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px 28px;
}
.services__motiv-ph-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--fg-3); }
.services__motiv-ph-prompt {
  max-width: 760px; font-size: 13.5px; line-height: 1.6; color: var(--fg-1);
  background: color-mix(in oklch, var(--bg-0) 80%, transparent);
  border: 1px solid var(--line); padding: 14px 16px;
  align-self: flex-start;
}
.services__motiv-ph-prompt strong { color: var(--accent); font-weight: 600; }
.services__motiv-cap {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px;
  padding: 18px 22px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--fg-2); line-height: 1.5;
}

/* Footer redesign */
.foot__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding: 32px var(--pad) 28px; border-bottom: 1px solid var(--line);
}
.foot__brand { display: flex; align-items: center; gap: 18px; color: var(--fg-2); font-size: 13px; }
.foot__hotline-plain {
  display: flex; flex-direction: column; gap: 6px; text-align: right;
  color: var(--fg-0); text-decoration: none;
}
.foot__hotline-plain .meta-tag { align-self: flex-end; }
.foot__hotline-big { font-family: var(--f-mono); font-size: 16px; color: var(--fg-0); letter-spacing: .04em; font-weight: 500; }
.foot__hotline-plain:hover .foot__hotline-big { color: var(--accent); }
.foot__hours { display: flex; flex-direction: column; gap: 6px; }
.foot__hours-big { font-size: 16px; color: var(--fg-0); font-weight: 500; }
.foot__hours-big strong { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-right: 10px; font-weight: 500; }
.foot__hours-v { font-family: var(--f-mono); letter-spacing: .04em; color: var(--fg-0); }
.foot__locs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1000px) { .foot__locs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .foot__locs { grid-template-columns: 1fr; } }
.floc { background: var(--bg-0); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.floc__badge {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-3);
  padding: 2px 6px; border: 1px solid var(--line); align-self: flex-start; margin-bottom: 6px;
}
.floc--intl .floc__badge { color: var(--accent); border-color: var(--accent-line); }
.floc h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.floc p { font-size: 12.5px; color: var(--fg-2); line-height: 1.5; margin-bottom: 4px; }
.floc a { font-family: var(--f-mono); font-size: 11px; color: var(--fg-1); word-break: break-all; }
.floc a:hover { color: var(--accent); }
.foot__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px var(--pad);
  font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .06em;
}
.foot__legal a { color: var(--fg-2); }
.foot__legal a:hover { color: var(--accent); }

/* Burger button — hidden on desktop */
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  padding: 0;
  transition: border-color .2s;
}
.nav__burger:hover { border-color: var(--accent); }
.nav__burger span {
  display: block; width: 18px; height: 1.5px; background: var(--fg-0);
  transition: transform .25s, opacity .2s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mnav {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 49;
  background: color-mix(in oklch, var(--bg-0) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  padding: 96px var(--pad) var(--pad);
  overflow-y: auto;
}
.mnav.is-open { display: block; }
.mnav__inner { display: flex; flex-direction: column; gap: 0; max-width: 560px; margin: 0 auto; }
.mnav__inner a {
  padding: 20px 4px; font-size: 22px; font-weight: 500;
  color: var(--fg-0); border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
  transition: color .2s, padding-left .2s;
}
.mnav__inner a:hover { color: var(--accent); padding-left: 12px; }
.mnav__hot { margin-top: 32px; }
.mnav__hot .btn--hotline { width: 100%; justify-content: center; padding: 16px; }

/* Responsive nav breakpoints */
@media (max-width: 1180px) {
  .nav__links a[href='#referenzen'],
  .nav__links a[href='#downloads'] { display: none; } /* secondary links collapse first */
}
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__meta .btn--ghost, .nav__meta .btn--nav { display: none; }
  .nav__inner { grid-template-columns: auto 1fr auto; }
}
/* nav status removed */
body.has-drawer { overflow: hidden; }

.langswitch { display: inline-flex; border: 1px solid var(--line); }
.langswitch button {
  background: transparent; border: none; cursor: pointer;
  padding: 6px 10px; font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-2); letter-spacing: .1em;
}
.langswitch button + button { border-left: 1px solid var(--line); }
.langswitch button:hover { color: var(--fg-0); }
/* ============ VOICES (testimonials) ============ */
.voices {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.voices__head { max-width: 760px; margin-bottom: 48px; }
.voices__head .meta-tag { margin-bottom: 18px; }
.voices__title { font-size: clamp(32px, 4.2vw, 56px); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
.voices__title .muted { color: var(--fg-3); font-weight: 300; }
.voices__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 900px) { .voices__grid { grid-template-columns: 1fr; } }

/* ============ Footer separation — see main .foot rule below ============ */

/* Hero CTA stacks on small screens */
@media (max-width: 560px) {
  .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__cta .btn { justify-content: center; }
}

/* Branches */
.branches {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.branches__head { margin-bottom: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.branches__title {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.02;
  margin: 16px 0 20px;
}
.muted { color: var(--fg-3); }
.branches__lede { color: var(--fg-1); max-width: 72ch; font-size: 16px; }
.branches__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 900px) { .branches__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .branches__grid { grid-template-columns: 1fr; } }
.branch { background: var(--bg-1); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 210px; transition: background .2s; }
.branch:hover { background: var(--bg-2); }
.branch--primary { background: var(--bg-2); border-left: 3px solid var(--accent); padding-left: 25px; }
.branch--primary .branch__k { color: var(--accent); }
.branch__idx { font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .1em; }
.branch__k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.branch__h { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.branch p { color: var(--fg-2); font-size: 13.5px; line-height: 1.55; }
.branch__bar { height: 2px; background: var(--bg-3); margin-top: auto; }
.branch__bar > div { height: 100%; background: var(--accent); transition: width .4s; }

/* Service cards: make them anchors */
.svc { color: inherit; text-decoration: none; }
.svc__link {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-3); margin-top: 14px;
  transition: color .2s;
}
.svc:hover .svc__link { color: var(--accent); }

/* === Photo-backed service tiles === */
.svc--photo { position: relative; overflow: hidden; isolation: isolate; }
.svc--photo > * { position: relative; z-index: 1; }
.svc--photo .svc__photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  /* sharp by default, gently darkened — like the hero */
  filter: saturate(1.05) brightness(.55);
  transform: scale(1.02);
  opacity: 1;
  transition: filter .6s ease, transform .6s ease, opacity .6s ease;
  pointer-events: none;
}
/* Dark scrim — same logic as hero (fade to bg + global darken) */
.svc--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 60%, color-mix(in oklch, var(--bg-1) 92%, transparent) 100%),
    linear-gradient(90deg, color-mix(in oklch, var(--bg-1) 70%, transparent) 0%, transparent 30%, transparent 70%, color-mix(in oklch, var(--bg-1) 70%, transparent) 100%),
    rgba(0,0,0,.30);
  transition: background .4s ease;
}
.svc--photo:hover .svc__photo {
  filter: saturate(1.1) brightness(.7);
  transform: scale(1.04);
}
.svc--photo:hover::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 60%, color-mix(in oklch, var(--bg-1) 80%, transparent) 100%),
    rgba(0,0,0,.18);
}
/* Photo tiles keep the icon — force white */
.svc--photo .svc__art,
.svc--photo:hover .svc__art { color: #ffffff; transform: none; }
.svc--photo:hover .svc__title { color: #ffffff !important; }
.svc--photo .svc__art svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
/* All text white on photo tiles, both themes */
.svc--photo,
.svc--photo .svc__title,
.svc--photo .svc__desc,
.svc--photo .svc__idx,
.svc--photo .svc__link,
.svc--photo .svc__tags,
.svc--photo .svc__tags li { color: #ffffff !important; }
.svc--photo .svc__tags li {
  border-color: rgba(255,255,255,.35);
  background: rgba(0,0,0,.25);
}
.svc--photo .svc__title,
.svc--photo .svc__desc,
.svc--photo .svc__idx { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.svc--photo:hover .svc__link { color: #ffffff !important; }

/* Locations */
.locs {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.locs__head { margin-bottom: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.locs__title {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.02;
  margin: 16px 0 20px;
}
.locs__lede { color: var(--fg-1); max-width: 72ch; font-size: 16px; }
.locs__wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
@media (max-width: 1100px) { .locs__wrap { grid-template-columns: 1fr; } }
.locs__map {
  background: var(--bg-1); border: 1px solid var(--line);
  position: sticky; top: 100px; align-self: start;
  overflow: hidden;
}
.locs__osm {
  width: 100%; height: 560px;
  background: var(--bg-2);
}
.locs__map-legend {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--fg-2);
}
/* Leaflet theme overrides */
.locs__osm .leaflet-tile-pane { filter: saturate(0.85); }
[data-theme="dark"] .locs__osm .leaflet-tile-pane { filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.95); }
.locs__osm .leaflet-popup-content-wrapper {
  background: var(--bg-1); color: var(--fg-0);
  border: 1px solid var(--line-2); border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.locs__osm .leaflet-popup-tip { background: var(--bg-1); border: 1px solid var(--line-2); }
.locs__osm .leaflet-popup-close-button { color: var(--fg-2); }
.locs__osm .leaflet-container a { color: var(--accent); }
.lfpop { font-family: var(--f-sans); padding: 4px 2px 2px; min-width: 200px; }
.lfpop__badge { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; display: block; }
.lfpop__h { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--fg-0); }
.lfpop__addr { font-size: 12px; color: var(--fg-2); line-height: 1.45; margin-bottom: 8px; }
.lfpop__lines { display: flex; flex-direction: column; gap: 3px; font-family: var(--f-mono); font-size: 11px; }
.lfpop__lines span { color: var(--fg-3); margin-right: 6px; }
.lfpop__lines a { color: var(--fg-1); }
.lfpop__lines a:hover { color: var(--accent); }
/* Marker (custom divIcon) */
.qmk { position: relative; width: 28px; height: 28px; transform: translate(-50%, -50%); }
.qmk__dot { position: absolute; inset: 10px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-0), 0 4px 10px rgba(0,70,106,.6); }
.qmk__pulse { position: absolute; inset: 6px; background: var(--accent); border-radius: 50%; opacity: .4; animation: markPulse 2.2s infinite; }
.qmk--hq .qmk__dot { background: var(--danger); box-shadow: 0 0 0 2px var(--bg-0), 0 4px 14px rgba(188,11,44,.7); width: 12px; height: 12px; inset: 8px; }
.qmk--hq .qmk__pulse { background: var(--danger); }
.qmk.is-on .qmk__dot { transform: scale(1.35); }

.locs__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 560px) { .locs__cards { grid-template-columns: 1fr; } }
.loc {
  background: var(--bg-1); padding: 22px 24px;
  color: inherit; text-decoration: none;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s;
}
.loc:hover, .loc.is-on { background: var(--bg-2); }
.loc.is-on { border-left: 2px solid var(--accent); padding-left: 22px; }
.loc__badge {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3);
  padding: 3px 8px; border: 1px solid var(--line); align-self: flex-start;
}
.loc--intl .loc__badge { color: var(--accent); border-color: var(--accent-line); }
.loc__h { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.loc__addr { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.loc__lines { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; font-family: var(--f-mono); font-size: 11px; }
.loc__lines > div { display: grid; grid-template-columns: 40px 1fr; gap: 8px; color: var(--fg-1); }
.loc__k { color: var(--fg-3); }

.nav__links {
  display: flex; gap: 28px; justify-content: flex-start;
  font-size: 14px; letter-spacing: .01em;
  min-width: 0;
}
.nav__links a {
  color: var(--fg-1); position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform .3s;
}
.nav__links a:hover { color: var(--fg-0); }
.nav__links a:hover::after { transform: scaleX(1); }

/* Responsive nav — re-declared AFTER base rule so it actually wins */
@media (max-width: 1180px) {
  .nav__links a[href='#referenzen'],
  .nav__links a[href='#downloads'] { display: none; }
}
@media (max-width: 1100px) {
  .nav__links { display: none !important; }
  .nav__burger { display: inline-flex; }
  .nav__meta .btn--ghost, .nav__meta .btn--nav { display: none; }
  .nav__inner { grid-template-columns: auto 1fr auto; }
}

.nav__meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
@media (max-width: 1200px) {
  .nav__meta { gap: 10px; }
  .nav__status { display: none; }
  .nav__meta .btn--ghost { padding: 8px 12px; font-size: 12px; }
}
.nav__status {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .4; } }

.nav__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-0);
  cursor: pointer;
  transition: all .2s;
  font-family: var(--f-sans);
  letter-spacing: .01em;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateX(2px);
}
.btn--ghost { color: var(--fg-0); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--line-2); }

.btn--alert {
  border-color: var(--danger);
  color: var(--danger);
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.btn--alert:hover { background: var(--danger-soft); }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--wide { width: 100%; justify-content: center; padding: 16px; }

.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 var(--danger);
  animation: ring 1.6s infinite;
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(188, 11, 44, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(188, 11, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(188, 11, 44, 0); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(40px, 6vh, 80px);
  padding-top: 120px;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
  filter: saturate(0.7) contrast(1.05) brightness(0.7);
}
[data-theme="light"] .hero__video { filter: saturate(0.3) contrast(1) brightness(1.05); }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg-0) 0%, transparent 20%, transparent 50%, var(--bg-0) 100%),
    linear-gradient(90deg, var(--bg-0) 0%, transparent 30%, transparent 70%, color-mix(in oklch, var(--bg-0) 60%, transparent) 100%);
  z-index: 1;
}

.hero__grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .12;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* reticle markers */
.reticle {
  position: absolute; z-index: 2;
  width: 28px; height: 28px;
  border: 1px solid var(--accent);
  opacity: .85;
}
.reticle--tl { top: 120px; left: 32px; border-right: none; border-bottom: none; }
.reticle--tr { top: 120px; right: 32px; border-left: none; border-bottom: none; }
.reticle--bl { bottom: 32px; left: 32px; border-right: none; border-top: none; }
.reticle--br { bottom: 32px; right: 32px; border-left: none; border-top: none; }

.hero__rail {
  position: absolute;
  left: 20px; top: 50%; transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  z-index: 2;
  display: flex; gap: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: .15em;
  text-transform: uppercase;
  pointer-events: none;
}
@media (max-width: 900px) { .hero__rail { display: none; } }

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero__eyebrow {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeUp .7s .1s both;
}
.tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}
.tag--dim {
  color: var(--fg-2);
  border-color: var(--line);
  background: transparent;
}

.hero__title {
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 48px;
  animation: fadeUp .9s .2s both;
  max-width: 14ch;
}

.hero__subcols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto)) 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 32px;
  animation: fadeUp .9s .35s both;
}
@media (max-width: 740px) {
  .hero__subcols { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.hero__sublabel {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero__subvalue {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.01em;
}

.hero__lede {
  max-width: 640px;
  color: var(--fg-1);
  font-size: 16px;
  margin-bottom: 40px;
  animation: fadeUp .9s .45s both;
}

.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp .9s .55s both;
}

/* Hero language switcher (below CTAs) */
.hero__lang {
  display: flex; align-items: center; gap: 14px;
  animation: fadeUp 1s .7s both;
  margin-top: -24px; margin-bottom: 56px;
}
.hero__lang-k {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-3);
}
.langswitch--hero { border-color: var(--line); }

/* (removed hero telemetry — kept rule-free) */
.hero__telemetry-removed { display: none; }

.tel {
  background: color-mix(in oklch, var(--bg-0) 85%, transparent);
  backdrop-filter: blur(8px);
  padding: 20px 22px;
  transition: background .3s;
}
.tel:hover { background: color-mix(in oklch, var(--bg-2) 90%, transparent); }
.tel__k {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tel__v {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hero__scroll {
  position: absolute;
  bottom: 40px; right: 60px;
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}
@media (max-width: 900px) { .hero__scroll { display: none; } }
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-10px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ TRUST ============ */
.trust {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
}

.trust__head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 740px) { .trust__head { grid-template-columns: 1fr; gap: 16px; } }
.trust__label, .meta-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.meta-tag--dim { color: var(--fg-3); }
.trust__title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 24ch;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 960px) { .trust__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust__grid { grid-template-columns: 1fr; } }

.trust__card {
  background: var(--bg-1);
  padding: 32px 28px 28px;
  position: relative;
  transition: background .3s;
  min-height: 260px;
  display: flex; flex-direction: column;
}
.trust__card:hover { background: var(--bg-2); }
.trust__card:hover .trust__kpi { color: var(--accent); }

.trust__idx {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  margin-bottom: 32px;
  letter-spacing: .1em;
}
.trust__kpi {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  transition: color .3s;
  font-variant-numeric: tabular-nums;
}
.trust__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.trust__desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
  margin-top: auto;
}

.trust__certs {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.trust__certs-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.trust__certs-row {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--line);
}
.trust__certs-row span {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
  border-right: 1px solid var(--line);
  font-family: var(--f-mono);
  letter-spacing: .02em;
  flex: 1;
  min-width: 160px;
  text-align: center;
}
.trust__certs-row span:last-child { border-right: none; }

/* ============ SERVICES ============ */
.services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
}

.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .services__head { grid-template-columns: 1fr; gap: 24px; } }

.services__meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.services__title {
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.services__title .muted { color: var(--fg-3); }
.services__lede {
  color: var(--fg-1);
  font-size: 16px;
  max-width: 48ch;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .services__grid { grid-template-columns: 1fr; } }

.svc {
  background: var(--bg-1);
  padding: 28px 26px 30px;
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  transition: background .3s;
  display: flex; flex-direction: column;
  min-height: 340px;
  cursor: pointer;
}
@media (max-width: 720px) { .svc { grid-column: span 1; } }

.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 40%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.svc:hover { background: var(--bg-2); }
.svc:hover::before { opacity: 1; }
.svc:hover .svc__title { color: var(--fg-1); }

.svc--accent { background: var(--bg-2); }
.svc--accent::after {
  content: "";
  position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--accent);
}

.svc__idx {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.svc__art {
  height: 64px;
  margin-bottom: 24px;
  color: var(--fg-1);
  display: flex; align-items: center; justify-content: flex-start;
  transition: color .3s, transform .4s ease;
  position: relative;
  z-index: 1;
}
.svc:hover .svc__art { color: var(--fg-1); transform: translateY(-2px); }
.svc__art svg { height: 100%; width: auto; max-width: 64px; }

.svc__slide { animation: slideMeasure 4s ease-in-out infinite; transform-origin: left center; }
@keyframes slideMeasure {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(30px); }
}
.svc__orbit {
  transform-origin: 60px 60px;
  animation: orbit 6s linear infinite;
}
@keyframes orbit {
  to { transform: rotate(360deg); }
}

.svc__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  transition: color .2s;
  position: relative;
  z-index: 1;
}
.svc__desc {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.svc__tags {
  list-style: none;
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.svc__tags li {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--fg-2);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.svc__pill {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--f-mono);
  font-size: 9px;
  padding: 4px 8px;
  background: var(--danger-soft);
  color: var(--danger);
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--accent-line);
  border-color: rgba(188, 11, 44, 0.4);
}

.services__foot {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  background: var(--bg-1);
}
@media (max-width: 720px) { .services__foot { grid-template-columns: 1fr; } }
.services__foot-h {
  font-size: 22px;
  font-weight: 500;
  margin-top: 10px;
  letter-spacing: -0.01em;
}

/* ============ CONTACT ============ */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; gap: 40px; } }

.contact__h {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-top: 18px;
  margin-bottom: 20px;
  max-width: 18ch;
}
.contact__lede { color: var(--fg-1); font-size: 16px; }

.contact__right { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact__channel {
  background: var(--bg-1);
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .2s;
}
.contact__channel:hover { background: var(--bg-2); }
.contact__k {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact__v {
  font-size: 20px;
  font-weight: 500;
  color: var(--fg-0);
}
.contact__right .btn { margin-top: 0; }

/* ============ FOOTER ============ */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 3px solid var(--accent);
  background: var(--bg-1);
  font-family: var(--f-sans);
  color: var(--fg-1);
  position: relative;
}
.foot::before {
  content: ""; display: block;
  position: absolute; top: -5px; left: 0; right: 0;
  height: 1px; background: var(--line);
}
.foot__head { background: var(--bg-2); }

@keyframes markPulse {
  0% { transform: scale(0.7); opacity: .55; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ============ REFERENZEN ============ */
.refs {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.refs__head { margin-bottom: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.refs__title {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.02;
  margin: 16px 0 20px;
}
.refs__lede { color: var(--fg-1); max-width: 72ch; font-size: 16px; }
.refs__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-bottom: 56px;
}
@media (max-width: 900px) { .refs__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .refs__grid { grid-template-columns: 1fr; } }
.ref {
  background: var(--bg-1); padding: 24px 22px;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 150px;
  transition: background .2s;
}
.ref:hover { background: var(--bg-2); }
.ref__k {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.ref__v { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg-0); }
.ref__meta { font-size: 12.5px; color: var(--fg-2); margin-top: auto; font-family: var(--f-mono); }

.refs__quotes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 900px) { .refs__quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--bg-1); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.quote__mark {
  font-family: Georgia, serif;
  font-size: 64px; font-weight: 700; line-height: .5;
  color: var(--accent); margin-bottom: 0;
  opacity: .6;
}
.quote p { font-size: 15px; color: var(--fg-1); line-height: 1.5; font-style: italic; }
.quote footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.quote__role {
  font-family: var(--f-mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: .05em; text-transform: uppercase;
}

/* ============ DOWNLOADS ============ */
.dls {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.dls__head { margin-bottom: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.dls__title {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.02;
  margin: 16px 0 20px;
}
.dls__lede { color: var(--fg-1); max-width: 72ch; font-size: 16px; }
.dls__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .dls__grid { grid-template-columns: 1fr; gap: 24px; } }
.dls__col { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dls__col-h {
  background: var(--bg-2); padding: 18px 22px;
  display: flex; align-items: baseline; gap: 12px;
}
.dls__col-h h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.dl {
  background: var(--bg-1); padding: 18px 22px;
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center; gap: 16px;
  transition: background .2s;
  color: inherit;
}
.dl:hover { background: var(--bg-2); }
.dl:hover .dl__arrow { color: var(--accent); transform: translateY(2px); }
.dl:hover .dl__icon { border-color: var(--accent); color: var(--accent); }
.dl__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--line); background: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; color: var(--fg-2);
  transition: all .2s;
}
.dl__body { min-width: 0; }
.dl__name { font-size: 14px; font-weight: 500; color: var(--fg-0); margin-bottom: 2px; }
.dl__meta { font-family: var(--f-mono); font-size: 10.5px; color: var(--fg-3); letter-spacing: .04em; }
.dl__arrow {
  font-size: 18px; color: var(--fg-3);
  transition: color .2s, transform .2s;
  font-family: var(--f-mono);
}

/* ============ CONTACT (expanded) ============ */
.contact__head { margin-bottom: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--line); max-width: 960px; }
.contact__h {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.05; margin: 14px 0 16px;
  max-width: 22ch;
}
.contact__lede { color: var(--fg-1); font-size: 16px; max-width: 60ch; }

.contact__grid {
  display: block;
}

.contact__channels {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-bottom: 40px;
}
@media (max-width: 820px) { .contact__channels { grid-template-columns: 1fr; } }
.contact__channel {
  background: var(--bg-1); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .2s;
}
.contact__channel:hover { background: var(--bg-2); }
.contact__channel--hot {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding-left: 21px;
}
.contact__channel--hot:hover { background: color-mix(in oklch, var(--accent) 20%, transparent); }
.contact__channel--hot .contact__v { color: #ffffff; font-weight: 600; }
.contact__sub { font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .04em; }

.contact__form-wrap { display: block; }

/* Form */
.cform {
  background: var(--bg-1); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 22px;
}
.cform__head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 2px; }
.cform__h {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500; letter-spacing: -0.015em; line-height: 1.25;
  margin-top: 10px; max-width: 30ch;
}
.cform__row { display: flex; flex-direction: column; gap: 18px; }
.cform__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .cform__row--2 { grid-template-columns: 1fr; } }
.cform__field { display: flex; flex-direction: column; gap: 6px; }
.cform__field span {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3);
}
.cform__field span em { color: var(--accent); font-style: normal; margin-left: 2px; }
.cform__field input,
.cform__field textarea {
  background: var(--bg-0); border: 1px solid var(--line);
  color: var(--fg-0); padding: 12px 14px;
  font-family: var(--f-sans); font-size: 14.5px;
  transition: border-color .15s, background .15s;
  width: 100%; resize: vertical;
}
.cform__field input:focus,
.cform__field textarea:focus {
  outline: none; border-color: var(--accent);
  background: color-mix(in oklch, var(--bg-0) 92%, var(--accent));
}
.cform__field input:invalid:not(:placeholder-shown),
.cform__field textarea:invalid:not(:placeholder-shown) { border-color: var(--danger); }

.cform__chips { border: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cform__chips legend {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3); padding: 0; margin-bottom: 2px;
}
.cform__chips > div,
.cform__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cform__chips label { cursor: pointer; }
.cform__chips input { position: absolute; opacity: 0; pointer-events: none; }
.cform__chips label span {
  display: inline-block; padding: 8px 14px;
  border: 1px solid var(--line); background: transparent;
  font-size: 13px; color: var(--fg-1);
  font-family: var(--f-sans);
  transition: all .15s;
}
.cform__chips label:hover span { border-color: var(--line-2); background: var(--bg-2); }
.cform__chips input:checked + span {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500;
}
.cform__chips label span.is-acute { color: var(--danger); border-color: color-mix(in oklch, var(--danger) 40%, var(--line)); }
.cform__chips input:checked + span.is-acute {
  background: var(--danger); border-color: var(--danger); color: #fff;
}

.cform__check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--fg-1); line-height: 1.5;
  cursor: pointer;
}
.cform__check input {
  width: 18px; height: 18px; accent-color: var(--accent);
  flex-shrink: 0; margin-top: 2px;
}
.cform__check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.cform__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cform__note { font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .04em; }

.cform__success {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  padding: 20px 22px;
}
.cform__success-ic {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.cform__success strong { display: block; margin-bottom: 4px; color: var(--fg-0); font-size: 15px; }
.cform__success p { color: var(--fg-1); font-size: 13px; line-height: 1.5; }

/* ============ FOOTER extras ============ */
.foot__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 24px; align-items: center;
  padding: 28px var(--pad);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .foot__head { grid-template-columns: 1fr; } }

.foot__hours {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--fg-1);
  padding: 10px 16px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) { .foot__hours { border: none; padding: 0; } }
.foot__hours-line strong { display: inline-block; min-width: 70px; color: var(--fg-0); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }

.foot__badges {
  padding: 28px var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.foot__badges-label { display: block; margin-bottom: 16px; }
.foot__badges-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .foot__badges-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__badges-row { grid-template-columns: 1fr; } }
.fbadge {
  background: var(--bg-0); border: 1px solid var(--line);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .2s;
}
.fbadge:hover { border-color: var(--accent); }
.fbadge svg {
  width: 84px; height: 42px; flex-shrink: 0;
  color: var(--fg-1);
}
.fbadge--tuv svg { color: color-mix(in oklch, #fdb913 80%, var(--fg-1)); }
.fbadge--tisax svg { color: color-mix(in oklch, #00a3e0 70%, var(--fg-1)); }
.fbadge__cap {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--fg-2); line-height: 1.5;
  letter-spacing: .02em;
}

/* ============ TWEAKS PANEL ============ */
.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 100;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  padding: 16px 18px;
  display: none;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  font-family: var(--f-sans);
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.tweaks.is-on { display: flex; }
.tweaks__title {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .15em;
  color: var(--fg-3);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.tweaks__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.tweaks__seg {
  display: inline-flex;
  border: 1px solid var(--line);
}
.tweaks__seg button {
  background: transparent;
  color: var(--fg-2);
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--f-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tweaks__seg button.is-on { background: var(--accent-2); color: #ffffff; font-weight: 600; }

/* Light theme overrides */
[data-theme="light"] .btn--primary { color: #fff; }
[data-theme="light"] .btn--primary:hover { color: #fff; }
[data-theme="light"] .tel {
  background: color-mix(in oklch, var(--bg-1) 90%, transparent);
}
[data-theme="light"] .hero__scrim {
  background:
    linear-gradient(180deg, var(--bg-0) 0%, transparent 25%, transparent 50%, var(--bg-0) 100%),
    linear-gradient(90deg, var(--bg-0) 0%, transparent 30%, transparent 70%, color-mix(in oklch, var(--bg-0) 60%, transparent) 100%);
}
[data-theme="light"] .svc__pill {
  background: rgba(188, 11, 44, 0.08);
}
[data-theme="light"] .foot__brand img,
[data-theme="light"] .nav__brand img {
  filter: invert(1) brightness(0.3);
}

/* ============ RESPONSIVE POLISH ============ */
/* Hero: subcol rows (Fehler / Prozesse / Qualität) stack on mobile */
@media (max-width: 720px) {
  .hero__subcols { display: flex; flex-direction: column; gap: 22px; }
  .hero__subcol { border-left: 2px solid var(--accent); padding-left: 14px; }
  .hero__subvalue { font-size: 26px; }
}

/* Hero eyebrow: now single tag, keep tight */
.hero__eyebrow { gap: 10px; flex-wrap: wrap; }

/* Hero telemetry: stack on small */
@media (max-width: 820px) {
  .hero__telemetry { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero__telemetry { grid-template-columns: 1fr; }
}

/* Hero CTA row: stack on mobile */
@media (max-width: 560px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}

/* Contact head: allow wider */
.contact__head { max-width: 100%; }

/* Form inside now always full-width regardless of viewport */
.cform { max-width: 100%; }

/* On small screens, chips legend gets a line break */
@media (max-width: 560px) {
  .cform__chips { flex-direction: column; align-items: stretch; }
  .cform__chips label span { display: block; text-align: center; }
}
