/* ============================================================
   DETEX SICHERHEIT — Design System
   Source of truth. All tokens, components, and patterns live here.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --brand-blue: #4F6FE5;
  --brand-blue-hover: #3955C9;
  --brand-blue-dark: #2A3FAA;
  --brand-blue-border: #C7D2FE;
  --brand-blue-tint: #EEF2FF;

  /* Accent — Konversions-CTA only */
  --accent-amber: #F59E0B;
  --accent-amber-hover: #D97706;

  /* Neutrals — Light Theme */
  --surface-white: #FFFFFF;
  --surface-snow: #FAFBFC;
  --surface-fog: #F1F5F9;
  --surface-mist: #E2E8F0;
  --text-muted: #94A3B8;
  --text-slate: #475569;
  --text-ink: #0F172A;

  /* Status */
  --status-success: #10B981;
  --status-danger: #EF4444;

  /* Spacing — Vielfache von 4 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Shadows — funktional, dezent */
  --shadow-1: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-2: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-3: 0 10px 28px rgba(15,23,42,0.12);

  /* Container */
  --container: 1200px;
  --container-pad: 24px;

  /* Type */
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- RESET / BASE ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-ink);
  background: var(--surface-snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- TYPE SCALE ---------- */
.t-display-1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 6.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--text-ink);
  margin: 0;
}
.t-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}
.t-body-lg { font-size: 18px; line-height: 1.55; color: var(--text-slate); margin: 0; }
.t-body    { font-size: 16px; line-height: 1.6;  color: var(--text-slate); margin: 0; }
.t-caption { font-size: 13px; line-height: 1.5;  color: var(--text-muted); margin: 0; }
.t-micro   { font-size: 12px; line-height: 1.4;  color: var(--text-muted); margin: 0; letter-spacing: 0.02em; }
.t-mono    { font-family: var(--font-mono); font-size: 13px; color: var(--text-slate); }
.t-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin: 0;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.section {
  padding-top: var(--sp-24);
  padding-bottom: var(--sp-24);
}
@media (max-width: 720px) {
  .section { padding-top: var(--sp-16); padding-bottom: var(--sp-16); }
}
.section--fog { background: var(--surface-fog); }
.section--tint { background: var(--brand-blue-tint); }
.section--ink  { background: var(--text-ink); color: #fff; }

.stack { display: flex; flex-direction: column; }
.row   { display: flex; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }
.gap-12 { gap: var(--sp-12); }

/* ---------- LOGO LOCKUP (V07 — canonical) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-ink);
}
.logo__mark {
  height: 36px;
  width: auto;
  display: block;
  flex: none;
}
.logo__mark path { fill: currentColor; }
.logo__bar {
  width: 1px;
  height: 30px;
  background: var(--surface-mist);
  display: block;
  flex: none;
}
.logo__words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__line1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: inherit;
}
.logo__line2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  margin-top: 6px;
}
.logo .logo__mark path { fill: var(--brand-blue); }

/* Inverted */
.logo--inverse { color: #fff; }
.logo--inverse .logo__mark path { fill: #fff; }
.logo--inverse .logo__bar { background: rgba(255,255,255,0.25); }
.logo--inverse .logo__line2 { color: rgba(255,255,255,0.55); }

/* Sizes */
.logo--sm { gap: 10px; }
.logo--sm .logo__mark { height: 26px; }
.logo--sm .logo__bar  { height: 22px; }
.logo--sm .logo__line1 { font-size: 12px; letter-spacing: 0.05em; }
.logo--sm .logo__line2 { font-size: 8px;  letter-spacing: 0.32em; margin-top: 4px; }

.logo--lg { gap: 18px; }
.logo--lg .logo__mark { height: 48px; }
.logo--lg .logo__bar  { height: 40px; }
.logo--lg .logo__line1 { font-size: 22px; letter-spacing: 0.05em; }
.logo--lg .logo__line2 { font-size: 13px; letter-spacing: 0.32em; margin-top: 7px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent-amber);
  color: var(--text-ink);
  border-color: var(--accent-amber);
}
.btn--primary:hover { background: var(--accent-amber-hover); border-color: var(--accent-amber-hover); }
.btn--secondary {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.btn--secondary:hover { background: var(--brand-blue-hover); border-color: var(--brand-blue-hover); }
.btn--outline {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue-border);
}
.btn--outline:hover { background: var(--brand-blue-tint); border-color: var(--brand-blue); }
.btn--ghost {
  background: transparent;
  color: var(--brand-blue);
  padding: 8px 0;
  border-radius: 0;
}
.btn--ghost:hover { color: var(--brand-blue-hover); }
.btn--ghost .arrow { transition: transform 150ms ease; }
.btn--ghost:hover .arrow { transform: translateX(3px); }
.btn--sm { font-size: 13px; padding: 9px 14px; }
.btn--lg { font-size: 16px; padding: 14px 24px; }

/* ---------- CARDS ---------- */
.card {
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.card:hover { box-shadow: var(--shadow-2); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.card-icon svg { width: 24px; height: 24px; }

.card-service__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 var(--sp-2);
  color: var(--text-ink);
}
.card-service__body {
  color: var(--text-slate);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 var(--sp-4);
}

.card-industry {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5, 20px);
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  transition: background 160ms ease, border-color 160ms ease;
  cursor: pointer;
}
.card-industry:hover { background: var(--brand-blue-tint); border-color: var(--brand-blue-border); }
.card-industry .card-icon { margin: 0; width: 40px; height: 40px; }
.card-industry .card-icon svg { width: 20px; height: 20px; }
.card-industry__title { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--text-ink); margin: 0; }
.card-industry__sub { font-size: 13px; color: var(--text-muted); margin: 0; }

.card-stat {
  padding: var(--sp-8);
  border-radius: var(--r-lg);
  background: var(--surface-snow);
  border: 1px solid var(--surface-mist);
}
.card-stat--tint { background: var(--brand-blue-tint); border-color: var(--brand-blue-border); }
.card-stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand-blue-dark);
  margin: 0 0 var(--sp-2);
}
.card-stat__label {
  font-size: 14px;
  color: var(--text-slate);
  margin: 0;
}

.card-credential {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-5, 20px);
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
}
.card-credential .card-icon { margin: 0; flex: none; }
.card-credential__title { font-family: var(--font-display); font-weight: 500; font-size: 15px; margin: 0; color: var(--text-ink); }
.card-credential__sub { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; display: inline-flex; align-items: center; gap: 6px; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-blue);
  display: inline-block;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5, 20px);
  transition: border-color 160ms ease;
}
.faq[open] { border-color: var(--brand-blue-border); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__chev {
  width: 18px; height: 18px;
  color: var(--text-muted);
  transition: transform 200ms ease, color 200ms ease;
}
.faq[open] .faq__chev { transform: rotate(180deg); color: var(--brand-blue); }
.faq__body {
  margin-top: var(--sp-3);
  color: var(--text-slate);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-white);
  border-bottom: 0.5px solid var(--surface-mist);
  height: 76px;
  display: flex;
  align-items: center;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  width: 100%;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.nav__item {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav__item:hover { color: var(--brand-blue); }
.nav__item .caret { width: 10px; height: 10px; opacity: 0.6; }
@media (max-width: 980px) { .nav { display: none; } }

/* ---------- MOBILE NAV (hamburger + drawer) ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  color: var(--text-ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
}
.nav-toggle:hover { background: var(--surface-mist); }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease, top 200ms ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0; transform: rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--surface-white);
  box-shadow: -16px 0 48px rgba(15,23,42,0.18);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--sp-6);
  border-bottom: 1px solid var(--surface-mist);
  min-height: 76px;
}
.nav-drawer__close {
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--text-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-drawer__close:hover { background: var(--surface-mist); }
.nav-drawer__close svg { width: 20px; height: 20px; }
.nav-drawer__body { padding: var(--sp-4) var(--sp-6) var(--sp-8); flex: 1 1 auto; }
.nav-drawer__section + .nav-drawer__section { margin-top: var(--sp-6); }
.nav-drawer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--sp-2);
}
.nav-drawer__link {
  display: block;
  padding: 12px 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--surface-mist);
}
.nav-drawer__link:hover,
.nav-drawer__link.is-active { color: var(--brand-blue); }
.nav-drawer__sub {
  display: block;
  padding: 8px 0 8px var(--sp-4);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-slate);
  text-decoration: none;
  border-bottom: 1px dashed var(--surface-mist);
}
.nav-drawer__sub:hover { color: var(--brand-blue); }
.nav-drawer__sub:last-child { border-bottom: 0; }
.nav-drawer__cta { padding: var(--sp-4) var(--sp-6) var(--sp-6); border-top: 1px solid var(--surface-mist); }
.nav-drawer__cta .btn { width: 100%; justify-content: center; }

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 59;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.nav-drawer-backdrop.is-on { opacity: 1; visibility: visible; }

body.nav-drawer-open { overflow: hidden; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  /* Hide the header CTA at very narrow widths so logo + hamburger fit */
  .header__inner > .btn { display: none; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--text-ink);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-16) 0 var(--sp-6);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-12);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
.footer h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 var(--sp-4);
}
.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 4px 0;
}
.footer a:hover { color: #fff; }
.footer__address {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-top: var(--sp-4);
}
.footer__bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.footer__bottom a { display: inline; padding: 0; margin-left: var(--sp-4); }

/* The footer-wide `.footer a { display:block }` rule above must not break
   the logo lockup, which relies on inline-flex. Explicit override. */
.footer .logo,
.footer .logo--inverse {
  display: inline-flex;
  padding: 0;
}

/* ---------- TAG / PILL ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  background: var(--brand-blue-tint);
  color: var(--brand-blue-dark);
  border: 1px solid var(--brand-blue-border);
  letter-spacing: 0.02em;
}
.tag--neutral { background: var(--surface-fog); color: var(--text-slate); border-color: var(--surface-mist); }
.tag--success { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.tag--danger  { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }

/* ---------- HERO VISUAL ---------- */
.hero-visual {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--r-xl);
  background:
    radial-gradient(140% 90% at 8% -10%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.hero-visual__placeholder {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.045) 0 2px,
      transparent 2px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.hero-visual__glass {
  position: absolute;
  top: 20px; left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.hero-visual__quote {
  position: absolute;
  left: 20px; bottom: 20px; right: 40%;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
}
.hero-visual__quote small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}
.hero-visual__stat {
  position: absolute;
  right: 16px; bottom: 16px;
  background: #fff;
  color: var(--text-ink);
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-3);
  min-width: 150px;
}
.hero-visual__stat .n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--brand-blue-dark);
  letter-spacing: -0.01em;
}
.hero-visual__stat .l {
  font-size: 12px;
  color: var(--text-slate);
  margin-top: 4px;
}

/* ---------- DS-PAGE chrome ---------- */
.ds-nav {
  position: sticky;
  top: 76px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--surface-mist);
  z-index: 40;
}
.ds-nav__inner {
  display: flex;
  gap: var(--sp-6);
  overflow-x: auto;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ds-nav a {
  color: var(--text-slate);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
}
.ds-nav a:hover { color: var(--brand-blue); background: var(--brand-blue-tint); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}
.section-head__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Spec rail under live demos */
.spec {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}
.spec b { color: var(--text-slate); font-weight: 500; }
.spec .k { color: var(--brand-blue); }

/* Generic frame around demo bits */
.frame {
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
}
.frame--snug { padding: var(--sp-4); }
.frame--fog { background: var(--surface-fog); }

/* ---------- COLOR SWATCH ---------- */
.swatch {
  display: flex;
  flex-direction: column;
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
  overflow: hidden;
}
.swatch__chip {
  height: 88px;
  border-bottom: 1px solid var(--surface-mist);
}
.swatch__meta {
  padding: 12px 14px;
}
.swatch__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-ink);
  margin: 0;
}
.swatch__hex {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 0;
  letter-spacing: 0.02em;
}

/* ---------- TYPE SPECIMEN ROW ---------- */
.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr 220px;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--surface-mist);
  align-items: baseline;
}
.spec-row:first-of-type { border-top: 0; }
.spec-row__label { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.spec-row__meta  { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); line-height: 1.7; text-align: right; }
@media (max-width: 760px) {
  .spec-row { grid-template-columns: 1fr; }
  .spec-row__meta { text-align: left; }
}

/* ---------- GRIDS ---------- */
.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--6 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- DIVIDERS ---------- */
.hr { height: 1px; background: var(--surface-mist); border: 0; margin: 0; }

/* ---------- SHADOW DEMO ---------- */
.shadow-tile {
  background: #fff;
  border-radius: var(--r-md);
  height: 110px;
  display: flex;
  align-items: end;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-slate);
}
.shadow-tile.s0 { box-shadow: none; border: 1px solid var(--surface-mist); }
.shadow-tile.s1 { box-shadow: var(--shadow-1); }
.shadow-tile.s2 { box-shadow: var(--shadow-2); }
.shadow-tile.s3 { box-shadow: var(--shadow-3); }

/* ---------- RADIUS DEMO ---------- */
.radius-tile {
  background: var(--brand-blue-tint);
  border: 1px solid var(--brand-blue-border);
  height: 96px;
  display: flex;
  align-items: end;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-blue-dark);
}
.radius-tile.r1 { border-radius: var(--r-sm); }
.radius-tile.r2 { border-radius: var(--r-md); }
.radius-tile.r3 { border-radius: var(--r-lg); }
.radius-tile.r4 { border-radius: var(--r-xl); }

/* ---------- SPACING DEMO ---------- */
.space-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 10px 0;
  border-top: 1px solid var(--surface-mist);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-slate);
}
.space-row:first-child { border-top: 0; }
.space-row .bar { height: 12px; background: var(--brand-blue); border-radius: 2px; }
.space-row .nm { width: 80px; color: var(--text-muted); }
.space-row .px { width: 60px; color: var(--text-ink); text-align: right; }

/* ---------- PRINCIPLE CARD ---------- */
.principle {
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
}
.principle__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-blue);
  letter-spacing: 0.1em;
  margin: 0 0 var(--sp-4);
}
.principle__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 var(--sp-2);
  color: var(--text-ink);
}
.principle__body {
  font-size: 14px;
  color: var(--text-slate);
  margin: 0;
  line-height: 1.6;
}

/* ---------- IMAGE GUIDANCE TILES ---------- */
.img-tile {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  background: var(--surface-fog);
  border: 1px solid var(--surface-mist);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 14px;
}
.img-tile.do    { background-image: repeating-linear-gradient(135deg, rgba(79,111,229,0.08) 0 2px, transparent 2px 14px); }
.img-tile.dont  { background-image: repeating-linear-gradient(135deg, rgba(239,68,68,0.08) 0 2px, transparent 2px 14px); }
.img-tile__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-slate);
}
.img-tile__badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.img-tile__badge.ok   { background: #ECFDF5; color: #047857; }
.img-tile__badge.bad  { background: #FEF2F2; color: #B91C1C; }

/* ---------- HEADER MOCKUP (for showcase) ---------- */
.mock-header {
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.mock-header__bar {
  height: 76px;
  border-bottom: 0.5px solid var(--surface-mist);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-6);
  justify-content: space-between;
  gap: var(--sp-6);
}

/* ---------- CTA BLOCK ---------- */
.cta-block {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-12);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
@media (max-width: 760px) { .cta-block { grid-template-columns: 1fr; padding: var(--sp-12) var(--sp-6); } }
.cta-block h2 { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
.cta-block p { color: rgba(255,255,255,0.78); font-size: 16px; margin: var(--sp-4) 0 0; }

/* ---------- ICON STROKES (SVG inline, Legacy) ---------- */
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   FORM-LIBRARY
   Alle Formular-Komponenten. Token-getrieben, mit Tabler-Icons
   integriert. Heights stimmen mit Button-Skala überein.
   ============================================================ */

/* Field-Wrapper: vertikales Stack aus Label + Control + Helper */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-ink);
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.field-label .req {
  color: var(--status-danger);
  margin-left: 2px;
  font-weight: 600;
}
.field-label .opt {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.field-help {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}
.field-help--error { color: var(--status-danger); }
.field-help--success { color: var(--status-success); }
.field-help .ti { font-size: 13px; }
.field-help svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 4px; }

/* Visually-hidden helper for sr-only labels */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- INPUT (Text, Email, Tel, URL, Number, Date, Search, Password) ---------- */
.input {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 14px;
  width: 100%;
  height: 44px;
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
  color: var(--text-ink);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
  appearance: none;
}
.input::placeholder { color: var(--text-muted); }
.input:hover { border-color: #CBD5E1; }
/* Focus-Ring via box-shadow: folgt der border-radius zuverlässig in allen
   Browsern (Outline + outline-offset rendert auf manchen Inputs eckig). */
.input.is-focus,
.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px var(--surface-white), 0 0 0 4px var(--brand-blue);
}
.input.is-error { border-color: var(--status-danger); }
.input.is-error:focus,
.input.is-error:focus-visible {
  border-color: var(--status-danger);
  box-shadow: 0 0 0 2px var(--surface-white), 0 0 0 4px var(--status-danger);
}
.input.is-success { border-color: var(--status-success); }
.input.is-success:focus,
.input.is-success:focus-visible {
  border-color: var(--status-success);
  box-shadow: 0 0 0 2px var(--surface-white), 0 0 0 4px var(--status-success);
}
.input.is-disabled,
.input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface-snow);
}

/* Size variants — stimmen mit Button-Höhen überein */
.input--sm { height: 36px; font-size: 14px; padding: 8px 12px; }
.input--lg { height: 52px; font-size: 16px; padding: 14px 16px; }

/* ---------- INPUT-GROUP — Input mit Leading/Trailing-Icon oder Affix ---------- */
.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.input-group .input { padding-left: 14px; padding-right: 14px; }
.input-group--with-leading .input { padding-left: 42px; }
.input-group--with-trailing .input { padding-right: 42px; }
.input-group__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.input-group__icon .ti { font-size: 18px; }
.input-group__icon--leading { left: 14px; }
.input-group__icon--trailing { right: 14px; }
/* Clickable trailing button (z.B. clear/show-password) */
button.input-group__icon--trailing {
  background: none;
  border: 0;
  padding: 0 4px;
  pointer-events: auto;
  cursor: pointer;
  color: var(--text-muted);
}
button.input-group__icon--trailing:hover { color: var(--brand-blue); }
/* Affix (z.B. "+49", "@", ".de") */
.input-group__affix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface-snow);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md) 0 0 var(--r-md);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-slate);
  border-right: 0;
}
.input-group__affix + .input { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ---------- TEXTAREA ---------- */
.textarea {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  padding: 12px 14px;
  width: 100%;
  min-height: 120px;
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
  color: var(--text-ink);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
  resize: vertical;
  appearance: none;
}
.textarea::placeholder { color: var(--text-muted); }
.textarea:hover { border-color: #CBD5E1; }
.textarea.is-focus,
.textarea:focus,
.textarea:focus-visible {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px var(--surface-white), 0 0 0 4px var(--brand-blue);
}
.textarea.is-error { border-color: var(--status-danger); }
.textarea.is-success { border-color: var(--status-success); }
.textarea:disabled,
.textarea.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface-snow);
}
.textarea-wrap { position: relative; }
.textarea-wrap .char-count {
  position: absolute;
  bottom: 8px; right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
  letter-spacing: 0.04em;
}

/* ---------- SELECT — Native, mit Custom-Caret ---------- */
.select {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 42px 12px 14px;
  width: 100%;
  height: 44px;
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
  color: var(--text-ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
  cursor: pointer;
  transition: border-color 120ms ease;
}
.select:hover { border-color: #CBD5E1; }
.select.is-focus,
.select:focus,
.select:focus-visible {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px var(--surface-white), 0 0 0 4px var(--brand-blue);
}
.select.is-error { border-color: var(--status-danger); }
.select.is-success { border-color: var(--status-success); }
.select:disabled,
.select.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--surface-snow);
}
.select[data-empty="true"] { color: var(--text-muted); }
.select--sm { height: 36px; padding: 8px 38px 8px 12px; font-size: 14px; }
.select--lg { height: 52px; padding: 14px 46px 14px 16px; font-size: 16px; }

/* ---------- CHECKBOX ---------- */
.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-ink);
  user-select: none;
}
.checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--surface-white);
  border: 1.5px solid #CBD5E1;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background 120ms ease, border-color 120ms ease;
  margin-top: 2px;
}
.checkbox input[type="checkbox"]:hover { border-color: var(--brand-blue); }
.checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
.checkbox input[type="checkbox"]:checked,
.checkbox input[type="checkbox"].is-checked {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}
.checkbox input[type="checkbox"]:checked::after,
.checkbox input[type="checkbox"].is-checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox input[type="checkbox"]:disabled,
.checkbox input[type="checkbox"].is-disabled { opacity: 0.5; cursor: not-allowed; }
.checkbox.is-error input[type="checkbox"] { border-color: var(--status-danger); }
.checkbox__text { padding-top: 1px; }
.checkbox__text small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- RADIO ---------- */
.radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-ink);
  user-select: none;
}
.radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--surface-white);
  border: 1.5px solid #CBD5E1;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: border-color 120ms ease;
  margin-top: 2px;
}
.radio input[type="radio"]:hover { border-color: var(--brand-blue); }
.radio input[type="radio"]:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
.radio input[type="radio"]:checked,
.radio input[type="radio"].is-checked {
  border-color: var(--brand-blue);
  border-width: 5px;
}
.radio input[type="radio"]:disabled,
.radio input[type="radio"].is-disabled { opacity: 0.5; cursor: not-allowed; }

/* Radio-Card — größere Auswahl­karte mit Titel + Beschreibung */
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--sp-4) var(--sp-5, 20px);
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.radio-card:hover { border-color: var(--brand-blue-border); background: var(--brand-blue-tint); }
.radio-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--surface-white);
  border: 1.5px solid #CBD5E1;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
}
.radio-card input[type="radio"]:checked { border-color: var(--brand-blue); border-width: 5px; }
.radio-card:has(input:checked),
.radio-card.is-checked {
  border-color: var(--brand-blue);
  background: var(--brand-blue-tint);
  box-shadow: 0 0 0 1px var(--brand-blue);
}
.radio-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-ink);
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.radio-card__title .ti { color: var(--brand-blue); font-size: 18px; }
.radio-card__body { font-size: 13px; color: var(--text-slate); margin: 0; line-height: 1.5; }

/* ---------- FIELDSET ---------- */
fieldset.fieldset {
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin: 0;
  background: var(--surface-white);
}
fieldset.fieldset legend {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px;
  margin-left: -8px;
}

/* ---------- FILE-INPUT (Drop-Zone Style) ---------- */
.file-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--sp-6);
  background: var(--surface-snow);
  border: 1.5px dashed var(--surface-mist);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  transition: border-color 120ms ease, background 120ms ease;
}
.file-input:hover { border-color: var(--brand-blue); background: var(--brand-blue-tint); }
.file-input input[type="file"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.file-input .ti { font-size: 28px; color: var(--brand-blue); }
.file-input__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-ink);
  margin: 0;
}
.file-input__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ---------- CONSENT-BLOCK (DSGVO) ---------- */
.consent {
  display: flex;
  gap: 12px;
  padding: var(--sp-4);
  background: var(--surface-snow);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
}
.consent__body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-slate);
}
.consent__body a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.consent__body a:hover { color: var(--brand-blue-hover); }

/* ---------- FORM-LAYOUT ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4) var(--sp-6);
}
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-grid > .field--full { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
}

/* Submit-Row */
.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--surface-mist);
  flex-wrap: wrap;
}
.form-submit__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Submit-States: Loading (Button mit Spinner), Success (Inline-Card) */
.btn--loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
}
.btn--loading::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  top: 50%; left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 700ms linear infinite;
  color: var(--text-ink);
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

.form-success {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-6);
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--r-md);
  color: #065F46;
}
.form-success .icon-badge {
  background: #D1FAE5;
  color: #047857;
  border: 0;
  width: 40px; height: 40px;
}
.form-success__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: #065F46;
  margin: 0 0 4px;
}
.form-success__body {
  font-size: 14px;
  color: #047857;
  margin: 0;
  line-height: 1.55;
}

/* ---------- TABLER ICON HELPER ----------
   Tabler Icons werden via Webfont eingebunden (siehe <head>).
   Verwendung:  <i class="ti ti-shield-check"></i>
   Größenklassen sind tokenisiert; Farbe = currentColor. */
.ti {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: currentColor;
  vertical-align: -2px;
  font-size: 20px; /* default */
}
.ti--sm { font-size: 16px; }
.ti--md { font-size: 20px; }
.ti--lg { font-size: 24px; }
.ti--xl { font-size: 32px; }
.ti--2xl { font-size: 48px; }

/* Slot for icon inside circular badge (used by Process-Steps + Card-Icon) */
.icon-badge {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-badge--sm { width: 36px; height: 36px; }
.icon-badge--sm .ti { font-size: 18px; }
.icon-badge .ti { font-size: 22px; }
.icon-badge--amber {
  background: #FEF3C7;
  color: #B45309;
}
.icon-badge--ink {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

/* ---------- ICON GRID DEMO ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--surface-mist);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
  overflow: hidden;
}
.icon-grid__cell {
  background: var(--surface-white);
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.icon-grid__cell .ti {
  font-size: 26px;
  color: var(--text-ink);
}
.icon-grid__cell code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- PROCESS-STEPS ----------
   4-Schritt-Prozess: Erstgespräch → Konzept → Umsetzung → Betrieb.
   Horizontal auf Desktop mit Connector-Linie, vertikal auf Mobile. */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  counter-reset: process;
}
.process__step {
  position: relative;
  padding: var(--sp-6) var(--sp-6) var(--sp-6) 0;
  counter-increment: process;
}
.process__step + .process__step { padding-left: var(--sp-6); }
.process__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 var(--sp-4);
}
.process__num::before {
  content: "Schritt " counter(process, decimal-leading-zero);
}
.process__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}
.process__icon .ti { font-size: 26px; }
.process__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-ink);
  margin: 0 0 var(--sp-2);
  line-height: 1.3;
}
.process__body {
  font-size: 14px;
  color: var(--text-slate);
  margin: 0;
  line-height: 1.55;
  max-width: 28ch;
}
.process__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: var(--sp-4) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.process__meta .ti { font-size: 14px; color: var(--brand-blue); }
/* Connector line, behind icons */
.process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--sp-6) + 24px + 28px); /* num-row height + icon center */
  left: calc(56px + var(--sp-4));
  right: calc(-1 * var(--sp-3));
  height: 1px;
  background: var(--surface-mist);
  z-index: 0;
}
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process__step { padding: var(--sp-4) 0; border-top: 1px solid var(--surface-mist); }
  .process__step:first-child { border-top: 0; }
  .process__step + .process__step { padding-left: 0; }
  .process__step:not(:last-child)::after { display: none; }
}

/* ---------- CONTACT-CTA (alias) ----------
   Verbindlicher Abschluss-Block. Nutzt .cta-block für Layout,
   .contact-cta__panel für die rechte Kontakt-Spalte. */
.contact-cta__panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  color: rgba(255,255,255,0.85);
}
.contact-cta__row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.contact-cta__row .icon-badge {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  width: 40px; height: 40px;
}
.contact-cta__row .icon-badge .ti { font-size: 20px; }
.contact-cta__row .t-mono { color: rgba(255,255,255,0.55); }
.contact-cta__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  margin: 4px 0 0;
  letter-spacing: -0.005em;
}
.contact-cta__hint {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 4px 0 0;
}
.cta-block .btn--ghost-on-ink {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
.cta-block .btn--ghost-on-ink:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }

/* ============================================================
   REFERENCE / CASE-STUDY CARD
   Vorstellung einer konkreten Bewachungs-Referenz.
   Image-Block + Kontent + KPI-Strip + CTA.
   ============================================================ */
.case-study {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-8);
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.case-study:hover { box-shadow: var(--shadow-2); }
.case-study__media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface-fog);
  background-image: repeating-linear-gradient(135deg, rgba(79,111,229,0.06) 0 2px, transparent 2px 14px);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-4);
  overflow: hidden;
}
.case-study__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.case-study__media-cap {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-slate);
  background: rgba(255,255,255,0.85);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.case-study__body {
  padding: var(--sp-8) var(--sp-8) var(--sp-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.case-study__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.case-study__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text-ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.case-study__body-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-slate);
  margin: 0;
}
.case-study__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin: var(--sp-4) 0 0;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--surface-mist);
  border-bottom: 1px solid var(--surface-mist);
}
.case-study__kpi-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--brand-blue-dark);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.case-study__kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
}
.case-study__cta {
  margin-top: auto;
  padding-top: var(--sp-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: gap 160ms ease, color 160ms ease;
}
.case-study__cta:hover { color: var(--brand-blue-hover); gap: 10px; }
.case-study__cta .ti { font-size: 16px; }

/* Compact stacked variant: image top, content bottom */
.case-study--stacked {
  grid-template-columns: 1fr;
  gap: 0;
}
.case-study--stacked .case-study__body { padding: var(--sp-6); }
.case-study--stacked .case-study__media { aspect-ratio: 16/10; }

@media (max-width: 760px) {
  .case-study { grid-template-columns: 1fr; }
  .case-study__body { padding: var(--sp-6); }
}

/* ============================================================
   REFERENCE-LOGO-BAR
   Trust-Strip mit Kundenlogos. Logos sind monochrom + sehr
   reduziert opaque; auf Hover voll sichtbar.
   ============================================================ */
.logo-bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: center;
  text-align: center;
}
.logo-bar__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.logo-bar__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
  width: 100%;
}
.logo-bar__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.05em;
  opacity: 0.65;
  transition: opacity 160ms ease, color 160ms ease;
  user-select: none;
}
.logo-bar__item:hover { opacity: 1; color: var(--text-slate); }
.logo-bar__item svg { height: 100%; width: auto; }
/* Placeholder-Lockup look — abstract wordmark substitute */
.logo-bar__placeholder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.logo-bar__placeholder-glyph {
  width: 28px; height: 28px;
  border-radius: 5px;
  background: currentColor;
  opacity: 0.85;
  display: inline-block;
  position: relative;
}
.logo-bar__placeholder-glyph::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--surface-white);
  border-radius: 2px;
  opacity: 0.8;
}
.logo-bar--inverse .logo-bar__placeholder-glyph::after { background: var(--text-ink); }
.logo-bar--inverse .logo-bar__item { color: rgba(255,255,255,0.6); }
.logo-bar--inverse .logo-bar__item:hover { color: #fff; }

/* ============================================================
   MOBILE-NAV-DRAWER
   Slide-in von rechts. Backdrop + Panel. Demo-Variante wird
   per .is-open Klasse statisch dargestellt.
   ============================================================ */
.drawer-stage {
  position: relative;
  height: 640px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 24px;
  border: 8px solid #0F172A;
  overflow: hidden;
  background: var(--surface-white);
  box-shadow: var(--shadow-3);
}
.drawer-stage__page {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
}
.drawer-stage__top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 0.5px solid var(--surface-mist);
}
.drawer-stage__top .logo__mark { height: 22px; }
.drawer-stage__top .logo__line1 { font-size: 13px; }
.drawer-stage__top .logo__line2 { font-size: 8px; }
.drawer-stage__menu {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--surface-mist);
  background: var(--surface-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-ink);
}
.drawer-stage__menu .ti { font-size: 22px; }
.drawer-stage__content {
  flex: 1;
  padding: 24px 16px;
  background: var(--surface-snow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-stage__skeleton {
  height: 12px;
  background: var(--surface-mist);
  border-radius: 4px;
}
.drawer-stage__skeleton.s2 { width: 70%; }
.drawer-stage__skeleton.s3 { width: 85%; }

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 10;
}
.drawer {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(86%, 320px);
  background: var(--surface-white);
  box-shadow: -8px 0 24px rgba(15,23,42,0.18);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.drawer-stage.is-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-stage.is-open .drawer { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 0.5px solid var(--surface-mist);
}
.drawer__close {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface-snow);
  border: 1px solid var(--surface-mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-ink);
  cursor: pointer;
}
.drawer__close .ti { font-size: 20px; }
.drawer__nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.drawer__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: var(--text-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  border-bottom: 0.5px solid var(--surface-mist);
}
.drawer__item:hover { background: var(--surface-snow); color: var(--brand-blue); }
.drawer__item .ti { font-size: 18px; color: var(--text-muted); }
.drawer__item--sub {
  padding-left: 36px;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-slate);
  background: var(--surface-snow);
}
.drawer__foot {
  padding: 16px;
  border-top: 0.5px solid var(--surface-mist);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer__foot .btn { width: 100%; }
.drawer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-slate);
}
.drawer__contact .ti { font-size: 16px; color: var(--brand-blue); }

/* ============================================================
   COOKIE-BANNER (DSGVO)
   Statisches Demo-Layout. Position absolute zur Demo-Frame.
   ============================================================ */
.cookie-banner {
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: center;
}
.cookie-banner__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--text-ink);
}
.cookie-banner__body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-slate);
  margin: 0;
  max-width: 60ch;
}
.cookie-banner__body a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* Detail-Variante mit Kategorien */
.cookie-banner--detail {
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.cookie-cat {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--surface-mist);
}
.cookie-cat:first-child { border-top: 0; }
.cookie-cat__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-ink);
  margin: 0 0 2px;
}
.cookie-cat__body {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}
.cookie-cat__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-left: 8px;
}

/* Toggle-Switch (für Cookie-Detail + andere Forms) */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 40px; height: 22px;
  flex: none;
}
.toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
  z-index: 1;
  margin: 0;
}
.toggle__track {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 999px;
  transition: background 160ms ease;
}
.toggle__track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 160ms ease;
  box-shadow: 0 1px 2px rgba(15,23,42,0.18);
}
.toggle input[type="checkbox"]:checked + .toggle__track,
.toggle input[type="checkbox"].is-checked + .toggle__track {
  background: var(--brand-blue);
}
.toggle input[type="checkbox"]:checked + .toggle__track::after,
.toggle input[type="checkbox"].is-checked + .toggle__track::after {
  transform: translateX(18px);
}
.toggle input[type="checkbox"]:disabled + .toggle__track {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   PULL-QUOTE — große Zitat-Sektion
   ============================================================ */
.pull-quote {
  position: relative;
  padding: var(--sp-8) 0;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote__mark {
  font-family: var(--font-serif);
  font-size: 120px;
  line-height: 0.7;
  color: var(--brand-blue);
  opacity: 0.18;
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}
.pull-quote__text {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.25;
  color: var(--text-ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.pull-quote__attr {
  margin-top: var(--sp-6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pull-quote__attr b {
  color: var(--text-slate);
  font-weight: 500;
}

/* ============================================================
   TESTIMONIAL-CARD
   ============================================================ */
.testimonial {
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.testimonial:hover { box-shadow: var(--shadow-2); }
.testimonial__mark {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 0.6;
  color: var(--brand-blue);
  opacity: 0.4;
}
.testimonial__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-ink);
  margin: 0;
}
.testimonial__attr {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--surface-mist);
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-fog);
  border: 1px solid var(--surface-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  flex: none;
  overflow: hidden;
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-ink);
  margin: 0;
  line-height: 1.3;
}
.testimonial__role {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* Featured variant — größer, mit Branche-Tag */
.testimonial--featured {
  background: var(--brand-blue-tint);
  border-color: var(--brand-blue-border);
}
.testimonial--featured .testimonial__text { font-size: 18px; }

/* ============================================================
   SERVICE-DETAIL-PAGE-HEADER
   ============================================================ */
.service-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  padding: var(--sp-8) 0;
}
.service-header__crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0 0 var(--sp-6);
}
.service-header__crumb a { color: var(--text-slate); text-decoration: none; }
.service-header__crumb a:hover { color: var(--brand-blue); }
.service-header__crumb .ti { font-size: 14px; opacity: 0.6; }
.service-header__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text-ink);
  margin: 0 0 var(--sp-4);
}
.service-header__title em {
  font-style: normal;
  color: var(--brand-blue);
}
.service-header__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-slate);
  margin: 0 0 var(--sp-6);
  max-width: 46ch;
}
.service-header__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin: var(--sp-8) 0 0;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--surface-mist);
}
.service-header__stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--text-ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1;
}
.service-header__stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
}
@media (max-width: 860px) {
  .service-header { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ============================================================
   JOB-CARD (Karriere)
   ============================================================ */
.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.job-card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--brand-blue-border);
}
.job-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-ink);
  margin: 0 0 6px;
  line-height: 1.3;
}
.job-card__meta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-slate);
  letter-spacing: 0.02em;
}
.job-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.job-card__meta .ti { font-size: 14px; color: var(--brand-blue); }
.job-card__body {
  font-size: 14px;
  color: var(--text-slate);
  margin: var(--sp-3) 0 0;
  line-height: 1.55;
  max-width: 60ch;
}
.job-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  transition: gap 160ms ease;
  white-space: nowrap;
}
.job-card:hover .job-card__cta { gap: 10px; color: var(--brand-blue-hover); }
.job-card__cta .ti { font-size: 16px; }
@media (max-width: 720px) {
  .job-card { grid-template-columns: 1fr; }
  .job-card__cta { justify-self: start; }
}

/* ============================================================
   STATS-STRIP — horizontale KPI-Leiste
   ============================================================ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(var(--stats-cols, 4), 1fr);
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats-strip__cell {
  padding: var(--sp-6) var(--sp-6);
  border-left: 1px solid var(--surface-mist);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats-strip__cell:first-child { border-left: 0; }
.stats-strip__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  color: var(--brand-blue-dark);
  letter-spacing: -0.015em;
  margin: 0;
}
.stats-strip__label {
  font-size: 13px;
  color: var(--text-slate);
  margin: 0;
  line-height: 1.4;
}
.stats-strip__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 0;
  letter-spacing: 0.04em;
}
.stats-strip--ink {
  background: var(--text-ink);
  border-color: rgba(255,255,255,0.08);
}
.stats-strip--ink .stats-strip__cell { border-left-color: rgba(255,255,255,0.08); }
.stats-strip--ink .stats-strip__num { color: #fff; }
.stats-strip--ink .stats-strip__label { color: rgba(255,255,255,0.7); }
.stats-strip--ink .stats-strip__sub { color: rgba(255,255,255,0.45); }
@media (max-width: 760px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip__cell { border-left: 0; border-top: 1px solid var(--surface-mist); }
  .stats-strip__cell:nth-child(-n+2) { border-top: 0; }
  .stats-strip__cell:nth-child(odd) { border-right: 1px solid var(--surface-mist); }
  .stats-strip--ink .stats-strip__cell { border-top-color: rgba(255,255,255,0.08); border-right-color: rgba(255,255,255,0.08); }
}

/* ============================================================
   DOCUMENT-DOWNLOAD-CARD
   ============================================================ */
.doc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5, 20px);
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, background 160ms ease;
}
.doc-card:hover {
  border-color: var(--brand-blue-border);
  background: var(--brand-blue-tint);
}
.doc-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.doc-card__icon .ti { font-size: 22px; }
.doc-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-ink);
  margin: 0 0 4px;
  line-height: 1.3;
}
.doc-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.doc-card__meta .dot-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.doc-card__action {
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}
.doc-card__action .ti { font-size: 18px; }
.doc-card:hover .doc-card__action { color: var(--brand-blue-hover); }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  flex-direction: column;
}
.tabs__list {
  display: flex;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--surface-mist);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__btn {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 4px;
  margin-right: var(--sp-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-slate);
  cursor: pointer;
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tabs__btn:hover { color: var(--brand-blue); }
.tabs__btn[aria-selected="true"],
.tabs__btn.is-active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}
.tabs__btn .ti { font-size: 16px; }
.tabs__btn .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-fog);
  color: var(--text-slate);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.tabs__btn[aria-selected="true"] .tab-count {
  background: var(--brand-blue-tint);
  color: var(--brand-blue-dark);
}
.tabs__panel {
  display: none;
  padding: var(--sp-6) 0;
}
.tabs__panel.is-active { display: block; }

/* Pill / segmented variant */
.tabs--pill .tabs__list {
  border: 1px solid var(--surface-mist);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
  background: var(--surface-snow);
  display: inline-flex;
  align-self: flex-start;
}
.tabs--pill .tabs__btn {
  border-radius: 999px;
  border: 0;
  padding: 8px 16px;
  margin: 0;
  background: transparent;
  color: var(--text-slate);
}
.tabs--pill .tabs__btn[aria-selected="true"],
.tabs--pill .tabs__btn.is-active {
  background: var(--surface-white);
  color: var(--text-ink);
  box-shadow: var(--shadow-1);
}

/* ============================================================
   PERSON / TEAM-CARD
   ============================================================ */
.person-card {
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.person-card:hover { box-shadow: var(--shadow-2); }
.person-card__photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, rgba(15,23,42,0.04) 0 2px, transparent 2px 14px),
    var(--surface-fog);
  border: 1px solid var(--surface-mist);
  display: flex;
  align-items: end;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  overflow: hidden;
  position: relative;
}
.person-card__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.person-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-ink);
  margin: 0;
  line-height: 1.3;
}
.person-card__role {
  font-size: 13px;
  color: var(--text-slate);
  margin: 0;
  line-height: 1.4;
}
.person-card__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--surface-mist);
}
.person-card__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-slate);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.person-card__contact a:hover { color: var(--brand-blue); }
.person-card__contact a .ti { font-size: 14px; color: var(--brand-blue); }

/* Horizontal variant — list-row style */
.person-card--row {
  flex-direction: row;
  align-items: center;
  padding: var(--sp-4);
}
.person-card--row .person-card__photo {
  width: 72px; height: 72px;
  aspect-ratio: auto;
  border-radius: 50%;
  flex: none;
}
.person-card--row .person-card__contact {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
}
.pagination__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--text-slate);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
}
.pagination__btn:hover { background: var(--brand-blue-tint); color: var(--brand-blue); }
.pagination__btn[aria-current="page"],
.pagination__btn.is-active {
  background: var(--brand-blue);
  color: #fff;
}
.pagination__btn[aria-current="page"]:hover { background: var(--brand-blue-hover); color: #fff; }
.pagination__btn:disabled,
.pagination__btn.is-disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  background: transparent;
}
.pagination__btn .ti { font-size: 16px; }
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 36px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Compact info row — "Seite 2 von 12 · 14 Treffer" */
.pagination-info {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   NOTICE / ALERT-BANNER (Block-Variante)
   Bestehende .status-msg ist die Inline-Variante; .notice
   ist die Block-Variante mit Titel + Body + optional Aktion.
   ============================================================ */
.notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5, 20px);
  border: 1px solid;
  border-radius: var(--r-md);
}
.notice__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.notice__icon .ti { font-size: 18px; }
.notice__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 4px;
  line-height: 1.3;
}
.notice__body {
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}
.notice__body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notice__action {
  align-self: flex-start;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}
.notice__action:hover { opacity: 1; }
.notice__action .ti { font-size: 18px; }

.notice--info {
  background: var(--brand-blue-tint);
  border-color: var(--brand-blue-border);
  color: var(--brand-blue-dark);
}
.notice--info .notice__icon { background: rgba(79,111,229,0.16); color: var(--brand-blue-dark); }
.notice--success {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}
.notice--success .notice__icon { background: #D1FAE5; color: #047857; }
.notice--warning {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #78350F;
}
.notice--warning .notice__icon { background: #FDE68A; color: #92400E; }
.notice--danger {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #7F1D1D;
}
.notice--danger .notice__icon { background: #FEE2E2; color: #B91C1C; }

/* ============================================================
   INLINE LINK / PROSE STYLES
   Body-text Links + Prose-Container für Artikel / AGB / Impressum.
   ============================================================ */
.link {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--brand-blue-border);
  transition: text-decoration-color 120ms ease, color 120ms ease;
}
.link:hover {
  color: var(--brand-blue-hover);
  text-decoration-color: currentColor;
}
.link--subtle {
  color: var(--text-ink);
  text-decoration-color: var(--surface-mist);
}
.link--subtle:hover { color: var(--brand-blue); }
.link--arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
}
.link--arrow .ti { font-size: 16px; transition: transform 150ms ease; }
.link--arrow:hover .ti { transform: translateX(3px); }
.link--external::after {
  content: " ↗";
  font-feature-settings: "kern" 0;
  color: var(--text-muted);
}

.prose {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-ink);
  max-width: 68ch;
}
.prose p { margin: 0 0 1.1em; color: var(--text-slate); }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text-ink);
  margin: 2em 0 0.6em;
  letter-spacing: -0.005em;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-ink);
  margin: 1.6em 0 0.5em;
}
.prose a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--brand-blue-border);
}
.prose a:hover { color: var(--brand-blue-hover); text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; color: var(--text-slate); margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--brand-blue);
  background: var(--surface-snow);
  color: var(--text-slate);
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-fog);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-ink);
}

/* ============================================================
   MAP-BLOCK — Standort-Visualisierung mit Adresse
   Echte Karte würde gmaps/leaflet brauchen; hier ein
   abstrakter Platzhalter mit Pin + Adress-Karte.
   ============================================================ */
.map-block {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  background: var(--surface-fog);
  background-image:
    linear-gradient(rgba(15,23,42,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.06) 1px, transparent 1px),
    radial-gradient(120% 80% at 30% 70%, rgba(79,111,229,0.10) 0%, rgba(79,111,229,0) 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  border: 1px solid var(--surface-mist);
  overflow: hidden;
}
.map-block::before {
  /* major "road" diagonal */
  content: "";
  position: absolute;
  top: 30%; left: -10%;
  width: 120%;
  height: 14px;
  background: var(--surface-white);
  transform: rotate(-12deg);
  box-shadow: 0 0 0 1px var(--surface-mist);
}
.map-block::after {
  /* vertical "road" */
  content: "";
  position: absolute;
  top: 0; left: 38%;
  width: 10px;
  height: 100%;
  background: var(--surface-white);
  box-shadow: 0 0 0 1px var(--surface-mist);
}
.map-block__pin {
  position: absolute;
  top: 46%; left: 42%;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-amber);
  border: 4px solid var(--surface-white);
  box-shadow: 0 4px 12px rgba(15,23,42,0.25);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-block__pin::after {
  content: "";
  position: absolute;
  bottom: -7px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--surface-white);
}
.map-block__pin .ti { color: var(--text-ink); font-size: 16px; }
.map-block__pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--accent-amber);
  opacity: 0.5;
  animation: map-pulse 1800ms ease-out infinite;
}
@keyframes map-pulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.map-block__addr {
  position: absolute;
  top: var(--sp-6); right: var(--sp-6);
  background: var(--surface-white);
  border: 1px solid var(--surface-mist);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5, 20px);
  box-shadow: var(--shadow-2);
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-block__addr p { margin: 0; line-height: 1.45; }
.map-block__addr .t-mono { font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.map-block__name { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--text-ink); }
.map-block__lines { font-size: 14px; color: var(--text-slate); }
.map-block__link {
  margin-top: 4px;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.map-block__link:hover { color: var(--brand-blue-hover); }

@media (max-width: 640px) {
  .map-block { aspect-ratio: 4/5; }
  .map-block__addr { position: static; max-width: none; margin: var(--sp-4); }
}

/* ============================================================
   TIMELINE — Firmengeschichte
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--surface-mist);
}
.timeline__item {
  position: relative;
  padding-bottom: var(--sp-8);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 2px solid var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.timeline__dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
}
.timeline__item--milestone .timeline__dot {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}
.timeline__item--milestone .timeline__dot::after {
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 0;
  transform: rotate(45deg);
  margin-top: -1px;
}
.timeline__year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin: 0 0 4px;
}
.timeline__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--text-ink);
  margin: 0 0 var(--sp-2);
  line-height: 1.3;
}
.timeline__body {
  font-size: 14px;
  color: var(--text-slate);
  margin: 0;
  line-height: 1.55;
  max-width: 56ch;
}
