/* SmartRail Website — site.css (alle Seiten)
   Tokens from SmartRail Design System v1.0
   ============================================================ */

:root {
  --brand: #0066FF;
  --ink: #0D1117;
  --cream: #F0EEE9;
  --paper: #FFFFFF;
  --success: #1F8A5B;
  --warning: #D97706;
  --danger: #DC2626;

  --blue-50: #EBF2FF;
  --blue-100: #CFE0FF;
  --blue-200: #9FC0FF;
  --blue-500: #0066FF;
  --blue-600: #0052CC;
  --blue-700: #003D99;

  --neutral-50: #F6F8FA;
  --neutral-100: #EAEEF2;
  --neutral-200: #D0D7DE;
  --neutral-300: #AFB8C1;
  --neutral-400: #8C959F;
  --neutral-500: #6B7280;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1F2937;

  --fg-1: var(--ink);
  --fg-2: var(--neutral-600);
  --fg-3: var(--neutral-500);
  --border-1: var(--neutral-200);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(13,17,23,.06);
  --shadow-md: 0 4px 12px rgba(13,17,23,.08);
  --shadow-lg: 0 12px 32px rgba(13,17,23,.12);

  --max-w: 1280px;
  --nav-h: 68px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; font-family: var(--font-sans); font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; color: var(--fg-1); background: var(--paper); line-height: 1.55; }
h1,h2,h3,h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
img { display: block; max-width: 100%; }

/* ---- Layout ---- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-5); width: 100%; }

/* ---- Navigation ---- */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-1);
  display: flex; align-items: center;
  transition: box-shadow 200ms;
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; gap: var(--space-5); width: 100%; }
.nav-logo { height: 26px; width: auto; flex-shrink: 0; }
.nav-links { display: flex; gap: var(--space-5); margin-left: var(--space-5); }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-2); transition: color 80ms; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 10px 22px; border-radius: var(--radius-sm); transition: background-color 80ms, color 80ms; white-space: nowrap; }
a.btn, a.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-primary:active { background: var(--blue-700); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--blue-50); }
.btn-sm { font-size: 13px; padding: 7px 16px; }
.btn-lg { font-size: 17px; padding: 14px 28px; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--neutral-50); }

/* ---- Section ---- */
.section { padding: var(--space-9) 0; }
.section-sm { padding: var(--space-7) 0; }
.section-cream { background: var(--cream); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-blue { background: var(--blue-50); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-3);
}
.section-title { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.section-lead { font-size: 17px; color: var(--fg-2); line-height: 1.6; max-width: 620px; }

/* ---- Hero ---- */
#hero { padding: var(--space-9) 0 var(--space-8); border-bottom: 1px solid var(--border-1); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-8); align-items: center; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--space-4); }
.hero-h1 { font-size: clamp(42px, 5vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin-bottom: var(--space-4); }
.hero-sub { font-size: 18px; color: var(--fg-2); line-height: 1.6; max-width: 540px; margin-bottom: var(--space-6); }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: stretch; }
.hero-ctas .btn { min-width: 200px; justify-content: center; }
.hero-trust { display: flex; gap: var(--space-5); margin-top: var(--space-5); flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-3); font-weight: 500; }
.hero-trust-item svg { color: var(--success); flex-shrink: 0; }

.hero-mock {
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-1);
  position: relative;
}
.mock-topbar { height: 38px; background: var(--neutral-50); border-bottom: 1px solid var(--border-1); display: flex; align-items: center; padding: 0 14px; gap: 8px; }
.mock-dots { display: flex; gap: 5px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-200); }
.mock-url { flex: 1; height: 22px; background: var(--paper); border: 1px solid var(--border-1); border-radius: 12px; margin: 0 8px; }
.mock-body { display: grid; grid-template-columns: 200px 1fr; height: 440px; }
.mock-side { background: var(--paper); border-right: 1px solid var(--border-1); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.mock-nav-item { height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 13px; color: var(--fg-2); }
.mock-nav-item.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.mock-nav-dot { width: 14px; height: 14px; border-radius: 2px; background: var(--neutral-200); flex-shrink: 0; }
.mock-nav-item.active .mock-nav-dot { background: var(--brand); }
.mock-content { background: var(--neutral-50); padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.mock-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: var(--paper); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: 14px; }
.mock-kpi .k-label { font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral-400); margin-bottom: 6px; }
.mock-kpi .k-val { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; }
.mock-kpi .k-sub { font-size: 10px; color: var(--success); margin-top: 4px; font-weight: 600; }
.mock-chart { background: var(--paper); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: 16px; flex: 1; min-height: 0; }
.mock-chart .c-label { font-size: 10px; font-weight: 600; color: var(--neutral-400); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.mock-chart svg { width: 100%; }
.mock-table { background: var(--paper); border: 1px solid var(--border-1); border-radius: var(--radius-md); overflow: hidden; }
.mock-table-row { display: grid; grid-template-columns: 1fr 80px 70px; padding: 8px 12px; font-size: 11px; color: var(--fg-2); border-bottom: 1px solid var(--border-1); align-items: center; }
.mock-table-row:last-child { border-bottom: none; }
.mock-table-row.head { background: var(--neutral-50); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--neutral-400); }
.mock-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); }
.mock-pill.ok { background: #E6F4EE; color: #145A3B; }
.mock-pill.warn { background: #FEF1E1; color: #8A4A04; }
.mock-pill.dn { background: #FCE7E7; color: #8E1717; }
.ph-screenshot { width: 100%; aspect-ratio: 16/10; border: 2px dashed var(--neutral-200); border-radius: var(--radius-md); background: var(--neutral-50); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--neutral-400); font-size: 13px; }

/* ---- Trust bar ---- */
#trust { padding: var(--space-5) 0; background: var(--neutral-50); border-bottom: 1px solid var(--border-1); }
.trust-inner { display: flex; align-items: center; gap: var(--space-7); flex-wrap: wrap; }
.trust-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--neutral-400); white-space: nowrap; }
.trust-logos { display: flex; gap: var(--space-6); flex: 1; flex-wrap: wrap; align-items: center; max-width: 100%; overflow: hidden; justify-content: space-between; }
.trust-logo-ph { height: 28px; min-width: 90px; border: 1px dashed var(--neutral-300); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--neutral-400); }
.trust-logo-img { height: 36px; width: auto; object-fit: contain; filter: grayscale(100%) opacity(55%); transition: filter .2s; }
.trust-logo-img:hover { filter: grayscale(0%) opacity(100%); }

/* ---- Warum / Pflichten ---- */
.pflichten-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-8); align-items: start; }
.pflichten-quote { font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: var(--space-5); letter-spacing: -.01em; }
.pflichten-quote .hl { color: var(--brand); }
.law-article {
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  font-size: 14px; line-height: 1.5;
  border-left: 3px solid var(--brand);
}
.law-article blockquote { margin: 0; }
.law-article blockquote p + p { margin-top: 6px; }
.law-article sup { font-size: .7em; color: var(--fg-3); margin-right: 1px; }
.law-article .art-note { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--border-1); font-size: 13px; font-style: italic; color: var(--fg-2); }
.law-article .art-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; white-space: normal; word-break: break-word; overflow-wrap: break-word; }
.law-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); }
.law-card-wrap { background: var(--paper); border: 1px solid var(--border-1); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.law-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 340px; }
.law-table th { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral-400); padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border-1); background: var(--paper); }
.law-table td { padding: 9px 12px; border-bottom: 0.5px solid var(--neutral-100); vertical-align: top; }
.law-table tr:last-child td { border-bottom: none; }
.law-table .abbr { font-family: var(--font-mono); font-weight: 600; color: var(--brand); white-space: nowrap; }
.law-table .sr { font-family: var(--font-mono); color: var(--neutral-400); font-size: 11px; }
.law-table .new-badge { display: inline-block; background: #FEF1E1; color: #8A4A04; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: var(--radius-pill); margin-left: 6px; vertical-align: middle; }

/* ---- Module grid ---- */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.module-card {
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 120ms, border-color 120ms;
}
.module-card:hover { box-shadow: var(--shadow-md); border-color: var(--neutral-300); }
.module-icon {
  width: 40px; height: 40px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.module-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.module-card .sub { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.module-card p { font-size: 14px; color: var(--fg-2); line-height: 1.55; flex: 1; }

/* ---- Ansichten (dark) ---- */
.views-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.view-card { border: 1px solid var(--border-1); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; gap: 0; transition: border-color 150ms; background: var(--paper); box-shadow: var(--shadow-sm); }
.view-card .view-screenshot { overflow: hidden; border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-bottom: 1px solid var(--border-1); padding: 12px; background: var(--neutral-50); }
.view-card .view-screenshot img { border-radius: var(--radius-sm); border: 1px solid var(--border-1); }
.view-card .view-screenshot img { transition: transform 400ms ease; display: block; }
.view-card:hover .view-screenshot img { transform: scale(1.03); }
.view-card .view-badge,
.view-card h3,
.view-card p { padding-left: var(--space-5); padding-right: var(--space-5); }
.view-card .view-badge { margin-top: var(--space-4); }
.view-card h3 { margin-top: var(--space-2); }
.view-card p { margin-top: var(--space-2); padding-bottom: var(--space-5); }
.view-card:hover { border-color: var(--neutral-300); box-shadow: var(--shadow-md); }
.view-icon { width: 40px; height: 40px; background: var(--blue-50); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.view-card h3 { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.view-card p { font-size: 14px; color: var(--fg-2); line-height: 1.55; }
.view-badge { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }

/* ---- BAV highlight ---- */
/* .bav-card Layout via Inline-Style (flex, column) im HTML gesteuert — Grid-Property entfernt */
.bav-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.bav-label { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-50); color: var(--brand); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: var(--space-3); }
.bav-steps { display: flex; flex-direction: column; gap: var(--space-3); }
.bav-step { display: flex; gap: var(--space-3); align-items: start; }
.bav-step-num { width: 24px; height: 24px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.bav-step-text { font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.bav-step-text strong { color: var(--ink); }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; max-width: 800px; margin: var(--space-6) auto 0; }
.faq-item { border-bottom: 1px solid var(--border-1); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: start; padding: var(--space-4) 0; font-size: 16px; font-weight: 600; color: var(--ink); background: none; text-align: left; gap: var(--space-4); min-width: 0; }
.faq-q .icon { flex-shrink: 0; color: var(--brand); transition: transform 200ms; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { font-size: 15px; color: var(--fg-2); line-height: 1.65; padding-bottom: var(--space-4); display: none; }
.faq-item.open .faq-a { display: block; }

/* ---- Final CTA ---- */
#cta { background: var(--brand); padding: var(--space-9) 0; color: #fff; text-align: center; }
#cta h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; margin-bottom: var(--space-3); }
#cta p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 540px; margin: 0 auto var(--space-6); }
#cta .cta-row { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
#cta .btn-white { background: #fff; color: var(--brand); font-weight: 700; }
#cta .btn-white:hover { background: var(--blue-50); }
#cta .btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
#cta .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---- Counter section ---- */
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.counter-item .c-num { font-family: var(--font-mono); font-size: 48px; font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: var(--space-2); letter-spacing: -.02em; }
.counter-item .c-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.counter-item .c-sub { font-size: 13px; color: var(--fg-3); margin-top: 2px; }

/* ---- Footer ---- */
footer { background: var(--ink); color: rgba(255,255,255,.7); padding: var(--space-8) 0 var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-8); }
.footer-logo { height: 24px; width: auto; margin-bottom: var(--space-4); }
.footer-desc { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.5); max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: var(--space-3); letter-spacing: -.01em; }
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.55); transition: color 80ms; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom { padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-badge { display: flex; align-items: flex-start; gap: 8px; }
.footer-badge svg { color: var(--success); }

/* ---- Form Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(13,17,23,.7);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 600px;
  max-height: min(90vh, 800px);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(.98);
  transition: transform 200ms, opacity 200ms;
  opacity: 0;
  overflow: hidden;
}
.modal-overlay.open .modal { transform: none; opacity: 1; }
@media (max-width: 640px) {
  .modal-overlay { padding: 0; align-items: flex-end; background: rgba(13,17,23,.75); }
  .modal { border-radius: 16px 16px 0 0; max-height: 100vh; height: 100vh; max-height: 100dvh; height: 100dvh; }
  .modal-footer { padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); }
}

.modal-head { display: flex; justify-content: space-between; align-items: start; padding: var(--space-4) var(--space-5) var(--space-3); }
.modal-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.modal-step-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.modal-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--neutral-50); border: 1px solid var(--border-1); border-radius: var(--radius-sm); color: var(--fg-2); flex-shrink: 0; }
.modal-close:hover { background: var(--neutral-100); color: var(--ink); }
.modal-body { padding: 0 var(--space-5) var(--space-4); overflow-y: auto; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }
.modal-footer { flex-shrink: 0; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border-1); gap: var(--space-3); }

.form-step { display: none; }
.form-step.active { display: flex; flex-direction: column; gap: var(--space-3); }

/* Form fields */
.field-group { display: flex; flex-direction: column; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: 500 14px/1.4 var(--font-sans);
  padding: 7px 12px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  transition: border-color 80ms;
  -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 70px; }
.field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* Success screen */
.success-screen { text-align: center; padding: var(--space-7) var(--space-6); display: none; }
.success-screen.visible { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.success-icon { width: 64px; height: 64px; background: #E6F4EE; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--success); }
.modal-trust { display: none; font-size: 12px; color: var(--fg-3); }
/* Desktop: show below footer, right-aligned */
@media (min-width: 641px) {
  .modal-footer { flex-wrap: wrap; }
  .modal-trust { display: block; width: 100%; text-align: right; margin-top: -4px; }
}

/* ---- Animations ---- */
.anim { opacity: 0; transform: translateY(24px); transition: opacity 500ms ease, transform 500ms ease; }
.anim.in { opacity: 1; transform: none; }
.anim-delay-1 { transition-delay: 80ms; }
.anim-delay-2 { transition-delay: 160ms; }
.anim-delay-3 { transition-delay: 240ms; }
.anim-delay-4 { transition-delay: 320ms; }
.anim-delay-5 { transition-delay: 400ms; }
.anim-delay-6 { transition-delay: 480ms; }


/* ---- BAV inline grids ---- */
.bav-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.bav-steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-6); }

/* ---- Hamburger Menu ---- */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 200ms; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  z-index: 210;
  flex-direction: column;
  padding: 0 var(--space-5) var(--space-6);
  gap: var(--space-2);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border-1);
  margin: 0 calc(-1 * var(--space-5));
  padding: 0 var(--space-5);
  flex-shrink: 0;
  margin-bottom: var(--space-4);
}
.mobile-menu-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--neutral-50); border: 1px solid var(--border-1);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--fg-2);
}
.mobile-menu a {
  font-size: 18px; font-weight: 600; color: var(--ink);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-1);
  text-decoration: none;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .m-cta { margin-top: var(--space-4); }

.m-contact {
  margin-top: var(--space-3);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.m-contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 2px;
}
.m-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
}
.m-contact-item svg { color: var(--brand); flex-shrink: 0; }
.m-contact-item:hover { color: var(--brand); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Hero-Mock auf Tablet: skaliert anzeigen statt wegblenden */
  .hero-mock { max-height: 340px; overflow: hidden; }
  .hero-mock img { max-height: 300px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* 3-Spalten-Grids → 2 Spalten auf Tablet */
  .views-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root {
    --space-9: 52px;
    --space-8: 40px;
    --space-7: 28px;
  }

  /* Nav */
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo { height: 28px; }

  /* Hero */
  #hero { padding: 40px 0 48px; }
  .hero-h1 { font-size: clamp(30px, 8vw, 44px); line-height: 1.08; }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; width: 100%; }
  .hero-trust { gap: 10px; flex-direction: column; align-items: flex-start; }

  /* Section sizing */
  .section { padding: 52px 0; }
  .section-sm { padding: 28px 0; }
  .section-title { font-size: clamp(22px, 5.5vw, 30px); }
  .section-title, .subhero h1, .split-body h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .section-lead { font-size: 15px; }

  /* Stats */
  .counter-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .counter-item .c-num { font-size: 36px; }

  /* Trust */
  .trust-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .trust-logos { gap: 12px 16px; flex-wrap: wrap; justify-content: space-evenly; align-items: center; width: 100%; }
  .trust-logo-img { height: 26px; }
  .trust-logo-ph { min-width: 70px; font-size: 10px; }

  /* Modules */
  .module-grid { grid-template-columns: 1fr; }

  /* Views */
  .views-grid { grid-template-columns: 1fr; }

  /* BAV */
  .bav-top-grid { grid-template-columns: 1fr; }
  .bav-steps-grid { grid-template-columns: 1fr; }




  /* FAQ */
  .faq-q { font-size: 14px; }


  /* Law table — SR-Nr. ausblenden auf Mobile, kein Scroll-Problem */
  .law-table-wrap { overflow-x: visible; }
  .law-table { font-size: 11px; min-width: 0; width: 100%; }
  .law-table th, .law-table td { padding: 6px 8px; }
  .law-table .abbr { font-size: 10px; }
  .law-table th:last-child,
  .law-table td:last-child { display: none; }

  /* Text-Overflow verhindern */
  .section-lead { max-width: 100%; }
  .hero-ctas .btn { min-width: 0; }
  .trust-label { white-space: normal; }

  /* Warum / Pflichten — stack on mobile, Text above, Tabelle below */
  .pflichten-grid { grid-template-columns: 1fr; }
  .pflichten-grid > div:first-child { order: 1; }
  .pflichten-grid > div:last-child { order: 2; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Form modal */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 16px 16px 0 0; max-height: 100vh; height: 100vh; max-height: 100dvh; height: 100dvh; }
  .modal-head { padding: var(--space-4) var(--space-4) var(--space-3); }
  .modal-body { padding: 0 var(--space-4) var(--space-4); }
  .modal-footer { padding: var(--space-3) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); flex-direction: column; gap: var(--space-2); }
  .modal-footer #modal-submit { width: 100%; justify-content: center; font-size: 16px; padding: 13px 20px; margin-left: 0; }
  .modal-trust { display: block; text-align: center; font-size: 11px; color: var(--fg-3); }
  .field-2col { grid-template-columns: 1fr; }

  /* CTA */
  #cta h2 { font-size: clamp(26px, 7vw, 40px); }
  #cta .cta-row { flex-direction: column; align-items: stretch; }
  #cta .cta-row .btn { justify-content: center; }

    /* General wrap padding */
  .wrap { padding: 0 var(--space-4); }
}

@media (max-width: 400px) {
  .hero-h1 { font-size: 28px; }
  .counter-grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 12px; max-width: 100vw; }
}

/* Pflichten-Grid: 2 Spalten bis 640px, darunter 1 Spalte (Phone) */
@media (max-width: 640px) {
  .pflichten-grid { grid-template-columns: 1fr; }
  .pflichten-grid > div:first-child { order: 1; }
  .pflichten-grid > div:last-child { order: 2; }
}

/* ---- Footer contact box links ---- */
.footer-contact-link {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 120ms, background 120ms;
}
.footer-contact-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
.footer-contact-link svg { flex-shrink: 0; transition: stroke 120ms; }
.footer-contact-link:hover svg { stroke: rgba(255,255,255,.7); }


/* ============================================================
   NEUE KOMPONENTEN — Website V2
   ============================================================ */

/* Anker unter Sticky-Nav */
section[id], div[id^="betriebs"], div[id^="betreuung"] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ---- Nav: aktiver Punkt + Dropdown ---- */
.nav-links a.nav-active { color: var(--brand); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; color: var(--fg-2); transition: color 80ms; }
.nav-item > a:hover { color: var(--ink); text-decoration: none; }
.nav-item > a.nav-active { color: var(--brand); }
.nav-chev { transition: transform 160ms ease; margin-top: 1px; }
.nav-item:hover .nav-chev, .nav-item:focus-within .nav-chev { transform: rotate(180deg); }
.nav-dd {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  min-width: 200px; width: max-content; max-width: 320px;
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 300;
}
/* Hover-Brücke, damit Dropdown beim Überfahren nicht zuklappt */
.nav-item::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.nav-item:hover .nav-dd, .nav-item:focus-within .nav-dd { opacity: 1; pointer-events: all; transform: translate(-50%, 0); }
.nav-dd a {
  font-size: 14px; font-weight: 500; color: var(--fg-2); white-space: nowrap;
  padding: 9px 12px; border-radius: var(--radius-sm);
  transition: background 80ms, color 80ms;
}
.nav-dd a:hover { background: var(--blue-50); color: var(--brand); text-decoration: none; }

/* Mobile: Unterpunkte eingerückt */
.mobile-menu a.m-sub {
  font-size: 15px; font-weight: 500; color: var(--fg-2);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--neutral-100);
}

/* ---- Sub-Hero (Unterseiten) ---- */
.subhero { padding: var(--space-8) 0 var(--space-7); border-bottom: 1px solid var(--border-1); text-align: center; background: linear-gradient(180deg, var(--blue-50) 0%, var(--paper) 100%); }
.subhero h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: var(--space-4); }
.subhero .section-lead { margin: 0 auto var(--space-5); text-align: center; }
.subhero .hero-ctas { justify-content: center; }

/* ---- App-Showcase (Produkt-Tour) ---- */
.showcase-grid { display: grid; grid-template-columns: 340px 1fr; gap: var(--space-6); align-items: start; margin-top: var(--space-6); }
.showcase-tabs { display: flex; flex-direction: column; gap: 8px; justify-content: flex-start; align-self: start; }
.showcase-tab {
  text-align: left; background: transparent; border: 1px solid transparent;
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  cursor: pointer; position: relative;
  transition: background 120ms, border-color 120ms;
}
.showcase-tab .st-title { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.showcase-tab { border-color: var(--border-1); background: var(--paper); }
.showcase-tab .st-desc { display: block; font-size: 13px; color: var(--fg-3); line-height: 1.45; margin-top: 3px; transition: color 150ms; }
.showcase-tab:hover { background: var(--neutral-50); border-color: var(--neutral-300); }
.showcase-tab.active { background: var(--blue-50); border-color: var(--blue-100); }
.showcase-tab.active::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--brand); }
.showcase-tab.active .st-title { color: var(--brand); }
.showcase-tab.active .st-desc { color: var(--fg-2); }
.showcase-stage { position: relative; }
.showcase-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-1);
  background: var(--paper);
}
.showcase-imgs { position: relative; aspect-ratio: 1400 / 759; background: var(--neutral-50); }
.showcase-imgs img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(.985);
  transition: opacity 280ms ease, transform 280ms ease;
}
.showcase-imgs img.active { opacity: 1; transform: none; }
/* Auto-Rotate-Fortschritt */
.showcase-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--neutral-100); }
.showcase-progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width 120ms linear; }

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .showcase-tabs::-webkit-scrollbar { display: none; }
  .showcase-tab { flex: 0 0 auto; border: 1px solid var(--border-1); border-radius: var(--radius-pill); padding: 8px 16px; }
  .showcase-tab .st-title { font-size: 13px; white-space: nowrap; }
  .showcase-tab .st-desc { display: none; }
  .showcase-tab.active::before { display: none; }
  .showcase-tab.active { border-color: var(--brand); }
}

/* ---- Modul-Grid auf 4 Spalten (8 Cards) ---- */
@media (min-width: 1100px) {
  .module-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Sicherheit & Vertrauen ---- */
.assure-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.assure-item { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--border-1); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.assure-item .ai-icon { width: 36px; height: 36px; background: var(--blue-50); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.assure-item h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.assure-item p { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.assure-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .assure-row, .assure-row-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .assure-row, .assure-row-3 { grid-template-columns: 1fr; } }

/* ---- Zick-Zack (Dienstleistungen) ---- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split-section + .split-section { margin-top: var(--space-9); }
.split-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-1); box-shadow: var(--shadow-md); background: var(--neutral-50); }
.split-media img { width: 100%; display: block; }
.split-body h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin-bottom: var(--space-3); }
.split-body > p { font-size: 16px; color: var(--fg-2); line-height: 1.65; margin-bottom: var(--space-4); }
.split-steps { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-5) 0; }
.split-step { display: flex; gap: var(--space-3); align-items: start; }
.split-step .num { width: 26px; height: 26px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.split-step .txt { font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.split-step .txt strong { color: var(--ink); }
.split-note { display: flex; gap: 10px; align-items: start; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 13px; color: var(--fg-2); line-height: 1.5; margin-top: var(--space-4); }
.split-note svg { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
@media (max-width: 860px) {
  .split-section { grid-template-columns: 1fr; gap: var(--space-5); }
  .split-section .split-media { order: -1; }
  .split-section + .split-section { margin-top: var(--space-8); }
}
/* Desktop Einblend-Richtung */
@media (min-width: 861px) {
  .anim-left { transform: translateX(-24px); }
  .anim-right { transform: translateX(24px); }
  .anim-left.in, .anim-right.in { transform: none; }
}

/* ---- Veranstaltungen / Eventfrog ---- */
.event-intro-card { background: var(--paper); border: 1px solid var(--border-1); border-left: 3px solid var(--brand); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); font-size: 14px; color: var(--fg-2); line-height: 1.6; margin-bottom: var(--space-5); }
.eventfrog-embed { border: 1px solid var(--border-1); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
.eventfrog-embed iframe { display: block; width: 100%; min-height: 640px; border: 0; }
.event-placeholder { border: 2px dashed var(--neutral-200); border-radius: var(--radius-lg); background: var(--neutral-50); padding: var(--space-8) var(--space-5); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.event-placeholder .ep-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-50); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.event-placeholder h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.event-placeholder p { font-size: 14px; color: var(--fg-2); max-width: 440px; }

/* ---- Webinare ---- */
.wb-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.wb-fact { display: flex; gap: var(--space-3); align-items: flex-start; background: var(--neutral-50); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: var(--space-4); }
.wb-fact svg { flex-shrink: 0; color: var(--brand); margin-top: 2px; }
.wb-fact strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.wb-fact span { display: block; font-size: 13px; color: var(--fg-2); line-height: 1.4; margin-top: 2px; }
.wb-heading { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: var(--space-4); }
.wb-heading:not(:first-of-type) { margin-top: var(--space-8); }
.wb-list { display: grid; gap: var(--space-4); }
.wb-card { display: grid; grid-template-columns: 88px 1fr; gap: var(--space-5); background: var(--paper); border: 1px solid var(--border-1); border-left: 3px solid var(--brand); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); box-shadow: var(--shadow-sm); }
.wb-date { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; background: var(--blue-50); border-radius: var(--radius-md); padding: var(--space-3) 0; }
.wb-day { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--brand); }
.wb-month { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); margin-top: 4px; }
.wb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: 13px; color: var(--fg-3); margin-bottom: var(--space-2); }
.wb-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--blue-50); color: var(--blue-700); }
.wb-tag-free { background: #E6F4EE; color: #145A3B; }
.wb-body h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin-bottom: var(--space-2); }
.wb-body p { font-size: 15px; color: var(--fg-2); line-height: 1.6; max-width: 720px; }
.wb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }
.wb-link { font-size: 13px; color: var(--fg-3); }
.wb-link a { font-family: var(--font-mono); font-weight: 500; }
.wb-cal { position: relative; }
.wb-cal summary { list-style: none; cursor: pointer; user-select: none; }
.wb-cal summary::-webkit-details-marker { display: none; }
.wb-cal-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 260px; background: var(--paper); border: 1px solid var(--border-1); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
.wb-cal-menu a { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--ink); }
.wb-cal-menu a:hover { background: var(--blue-50); color: var(--brand); text-decoration: none; }
.wb-past { border: 1px solid var(--border-1); border-radius: var(--radius-lg); background: var(--paper); }
.wb-past-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); }
.wb-past-row + .wb-past-row { border-top: 1px solid var(--border-1); }
.wb-past-info { display: flex; align-items: baseline; gap: var(--space-4); min-width: 0; }
.wb-past-date { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); flex-shrink: 0; }
.wb-past-info h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.wb-past-pending { font-size: 13px; color: var(--fg-3); white-space: nowrap; }
@media (max-width: 1024px) { .wb-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .wb-facts { grid-template-columns: 1fr; margin-bottom: var(--space-7); }
  .wb-card { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-5); }
  .wb-date { flex-direction: row; gap: 8px; justify-self: start; padding: 6px 12px; }
  .wb-day { font-size: 20px; }
  .wb-month { margin-top: 0; }
  .wb-actions { flex-direction: column; align-items: stretch; }
  .wb-cal summary { justify-content: center; width: 100%; }
  .wb-cal-menu { right: 0; min-width: 0; }
  .wb-past-row { flex-direction: column; align-items: flex-start; }
  .wb-past-info { flex-direction: column; gap: 2px; }
}

/* ---- Kontakt-Seite ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-6); align-items: start; }
.contact-info-card { background: var(--paper); border: 1px solid var(--border-1); border-top: 3px solid var(--brand); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--space-4); position: sticky; top: calc(var(--nav-h) + 24px); }
.contact-info-card h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.contact-info-card p { font-size: 14px; color: var(--fg-2); line-height: 1.6; }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0; }
.contact-line svg { color: var(--brand); flex-shrink: 0; }
a.contact-line:hover { color: var(--brand); text-decoration: none; }
.contact-form-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); }
.contact-form-card .success-screen { padding: var(--space-6) var(--space-4); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
}

/* ---- Formular: Fehler + Honeypot ---- */
.form-errors { display: flex; flex-direction: column; gap: 4px; }
.form-errors:empty { display: none; }
.form-errors div { font-size: 12px; color: var(--danger); display: flex; align-items: center; gap: 5px; font-weight: 500; }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .anim { opacity: 1; transform: none; }
}

/* ---- Feature-Checkliste (Dienstleistungen) ---- */
.features-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); margin-bottom: var(--space-2); }
.features-list li { display: flex; align-items: start; gap: 10px; font-size: 14px; color: var(--fg-2); }
.features-list li .check { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* Aktiver Dropdown-Elternpunkt */
.nav-item-active > a { color: var(--brand); }

/* ---- Betriebsvorschriften-Galerie (Dienstleistungen) ---- */
.bv-gallery { display: flex; flex-direction: column; gap: var(--space-3); }
.bv-page { margin: 0; border: 1px solid var(--border-1); border-radius: var(--radius-md); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-md); transition: box-shadow 180ms, transform 180ms; display: flex; flex-direction: column; }
.bv-page:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bv-page img { width: 100%; display: block; }
.bv-page figcaption { font-size: 12px; color: var(--fg-3); padding: 8px 12px; border-top: 1px solid var(--border-1); background: var(--neutral-50); flex: 1; }
.bv-page-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.bv-caption { font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); line-height: 1.5; }
@media (max-width: 480px) { .bv-page-row { grid-template-columns: 1fr; } }


/* ---- Mobiles Menü: Akkordeon ---- */
.m-group { border-bottom: 1px solid var(--neutral-100); }
.m-group .m-row { display: flex; align-items: stretch; cursor: pointer; }
.m-group .m-row > a { flex: 1; border-bottom: none; }
.m-toggle { background: none; border: none; padding: 0 var(--space-2) 0 var(--space-5); cursor: pointer; color: var(--fg-3); display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.m-toggle svg { transition: transform 200ms ease; }
.m-group.open .m-toggle svg { transform: rotate(180deg); }
.m-group.open .m-toggle { color: var(--brand); }
.m-sub-list { max-height: 0; overflow: hidden; transition: max-height 250ms ease; }
.m-group.open .m-sub-list { max-height: 320px; }
/* Untergruppe: eingerückter Block mit Markierungslinie */
.m-sub-wrap { margin: 0 0 var(--space-3); padding: var(--space-1) 0 var(--space-1) var(--space-3); background: var(--neutral-50); border-radius: var(--radius-md); opacity: 0; transform: translateY(-4px); transition: opacity 220ms ease 60ms, transform 220ms ease 60ms; }
.m-group.open .m-sub-wrap { opacity: 1; transform: none; }
.mobile-menu .m-sub-wrap a.m-sub { display: block; width: 100%; border-bottom: none; padding: 11px var(--space-3); font-size: 16px; font-weight: 500; color: var(--fg-2); border-radius: var(--radius-sm); }
.mobile-menu .m-sub-wrap a.m-sub:active { background: var(--blue-50); }
.mobile-menu .m-sub-wrap a.m-sub.m-active { color: var(--brand); font-weight: 600; }

/* ---- Hub-Teaser-Karten ---- */
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
a.teaser-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--border-1); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 180ms, transform 180ms, border-color 180ms; text-decoration: none; color: inherit; }
a.teaser-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--blue-100); text-decoration: none; }
.teaser-media { aspect-ratio: 16/9; background: var(--neutral-50); overflow: hidden; }
.teaser-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 300ms ease; }
a.teaser-card:hover .teaser-media img { transform: scale(1.03); }
.teaser-media.teaser-icon { display: flex; align-items: center; justify-content: center; background: var(--blue-50); }
.teaser-media.teaser-icon .ti { width: 72px; height: 72px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.teaser-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.teaser-body .tb-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.teaser-body h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.teaser-body p { font-size: 14px; color: var(--fg-2); line-height: 1.6; flex: 1; }
.teaser-body .tb-link { font-size: 14px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-2); }
@media (max-width: 760px) { .teaser-grid { grid-template-columns: 1fr; } }

/* ---- BV-Seite: Vorher/Nachher-Kontrast ---- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-5); }
.ba-card { border-radius: var(--radius-lg); padding: var(--space-5); border: 1px solid var(--border-1); background: var(--paper); }
.ba-card.ba-old { background: var(--neutral-50); }
.ba-card.ba-new { border-color: var(--blue-100); background: var(--blue-50); }
.ba-card .ba-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--space-2); color: var(--fg-3); }
.ba-card.ba-new .ba-label { color: var(--brand); }
.ba-card .ba-num { font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 4px; color: var(--fg-3); }
.ba-card.ba-new .ba-num { color: var(--brand); }
.ba-card .ba-num span { display: block; font-size: 15px; font-weight: 600; letter-spacing: .04em; margin-top: 6px; color: var(--fg-2); }
.ba-card.ba-new .ba-num span { color: var(--ink); }
.ba-card ul { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 8px; }
.ba-card li { font-size: 14px; color: var(--fg-2); line-height: 1.5; display: flex; gap: 8px; align-items: start; }
.ba-card li svg { flex-shrink: 0; margin-top: 3px; }
.ba-card.ba-old li svg { color: var(--danger); }
.ba-card.ba-new li svg { color: var(--success); }
@media (max-width: 680px) { .ba-grid { grid-template-columns: 1fr; } }

/* ---- BV-Referenzen ---- */
.refbv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.refbv-card { border: 1px solid var(--border-1); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); transition: box-shadow 180ms, transform 180ms; }
.refbv-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.refbv-card img { width: 100%; display: block; border-bottom: 1px solid var(--border-1); }
.refbv-card .rb-body { padding: var(--space-3) var(--space-4); }
.refbv-card .rb-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.refbv-card .rb-meta { font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); margin-top: 2px; }
@media (max-width: 860px) { .refbv-grid { grid-template-columns: 1fr; } }


/* ---- Klickbares Medien-Bild mit Play-Overlay ---- */
a.media-link { position: relative; display: block; cursor: pointer; }
a.media-link img { display: block; }
a.media-link::after { content: ''; position: absolute; inset: 0; background: rgba(13,17,23,0); transition: background 180ms ease; }
a.media-link:hover::after { background: rgba(13,17,23,.18); }
.media-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2; pointer-events: none;
}
.mp-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,.25);
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
.mp-circle svg { margin-left: 3px; }
.mp-label {
  background: var(--paper); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  padding: 7px 14px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md); border: 1px solid var(--border-1);
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease;
}
a.media-link:hover .mp-circle { transform: scale(1.1); background: var(--brand); color: #fff; }
a.media-link:hover .mp-label { background: var(--brand); color: #fff; }

/* ---- Newsletter-Anmeldung (Footer + Webinare) ---- */
.nl-form [hidden] { display: none !important; }
.nl-form { width: 100%; }
.nl-fields { display: flex; align-items: flex-end; gap: var(--space-3); }
.nl-input { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; min-width: 0; }
.nl-input label { font-size: 12px; font-weight: 600; }
.nl-input .req { color: var(--danger); }
.nl-opt { font-weight: 400; opacity: .7; }
.nl-input input { width: 100%; height: 44px; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--neutral-200); background: var(--paper); color: var(--ink); }
.nl-input input:focus { outline: 2px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }
.nl-fields .btn { flex-shrink: 0; height: 44px; }
.nl-form .form-errors { margin-top: var(--space-2); }
.nl-hint { font-size: 12px; margin-top: var(--space-2); color: var(--fg-3); }
.nl-hint a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nl-success { display: flex; align-items: center; gap: var(--space-2); font-size: 15px; font-weight: 600; color: var(--success); padding: var(--space-3) 0; }
/* dunkel (Footer) */
.nl-dark .nl-input label { color: rgba(255,255,255,.8); }
.nl-dark .nl-input input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.nl-dark .nl-input input::placeholder { color: rgba(255,255,255,.35); }
.nl-dark .nl-hint { color: rgba(255,255,255,.4); }
.nl-dark .nl-success { color: #6EE7B7; }
.nl-dark .form-errors div { color: #FCA5A5; }
/* hell */
.nl-light .nl-input label { color: var(--ink); }
/* Footer-Zeile */
.footer-newsletter { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-6); align-items: start; padding: var(--space-6) 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-newsletter h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: var(--space-2); }
.footer-newsletter p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.5); max-width: 360px; }
.footer-newsletter .nl-hint { font-size: 12px; }
/* Box auf Webinar-Seite */
.nl-box { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-6); align-items: start; margin-top: var(--space-8); padding: var(--space-6); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-lg); }
.nl-box h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin-bottom: var(--space-2); }
.nl-box p { font-size: 15px; color: var(--fg-2); line-height: 1.6; }
.nl-box .nl-hint { font-size: 12px; color: var(--fg-3); }
.event-placeholder .nl-form { max-width: 620px; text-align: left; margin-top: var(--space-2); }
.event-placeholder .nl-form p.nl-hint { max-width: none; font-size: 12px; color: var(--fg-3); }
@media (max-width: 900px) {
  .footer-newsletter, .nl-box { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 640px) {
  .nl-fields { flex-direction: column; align-items: stretch; }
  .nl-fields .btn { justify-content: center; }
  .nl-box { padding: var(--space-5); }
}
