/* ==========================================================================
   WirkCode — Designsystem
   Architektional Clarity & Executive Velocity
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (lokal, DSGVO-konform — keine externen Requests)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Flächen */
  --bg-primary: #fafaf9;
  --bg-surface: #ffffff;
  --bg-surface-tinted: #f1f5f9;
  --bg-ink: #0f172a;

  /* Grenzen */
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Typografie */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Akzente */
  --accent-primary: #1d4ed8;
  --accent-primary-hover: #1e40af;
  --accent-secondary: #ea580c;
  --accent-soft-bg: #eff6ff;

  /* Status */
  --danger: #b91c1c;
  --danger-border: #fca5a5;
  --success: #15803d;

  /* Typografie */
  --font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Geometrie */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 9999px;
  --container: 1152px;
  --header-height: 74px;

  /* Schatten */
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(15, 23, 42, 0.05), 0 16px 32px -8px rgba(15, 23, 42, 0.12);
  --shadow-button: 0 1px 2px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(29, 78, 216, 0.28);

  /* Raster */
  --section-y: clamp(4rem, 7vw, 6.5rem);
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   3. Reset & Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  max-width: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--accent-primary);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--tinted {
  background: var(--bg-surface-tinted);
  border-block: 1px solid var(--border-subtle);
}

.section--dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--bg-ink);
  color: #cbd5e1;
}

.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 88% 0%, rgba(234, 88, 12, 0.16), transparent 42%),
    radial-gradient(circle at 4% 100%, rgba(29, 78, 216, 0.28), transparent 46%);
  pointer-events: none;
}

.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: #ffffff;
}

.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;
}

/* Technisches Raster für Hero- und Rechtsseiten */
.bg-tech-grid {
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(180deg, rgba(250, 250, 249, 0) 0%, rgba(250, 250, 249, 0.55) 62%, var(--bg-primary) 100%),
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  background-position: center top;
}

/* --------------------------------------------------------------------------
   5. Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 160ms ease;
}

.btn:hover svg.icon-arrow {
  transform: translateX(2px);
}

.btn--primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: var(--shadow-button);
}

.btn--primary:hover {
  background: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-soft-bg);
}

.btn--lg {
  min-height: 50px;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-accent-blue {
  color: var(--accent-primary);
}

.text-accent-orange {
  color: var(--accent-secondary);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(250, 250, 249, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(250, 250, 249, 0.96);
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.45);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  border-radius: var(--radius-sm);
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand__name {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.brand__name span {
  color: var(--accent-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav > a:not(.btn) {
  position: relative;
  padding-block: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav > a:not(.btn):hover {
  color: var(--text-primary);
}

.nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.nav__cta {
  display: none;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.burger:hover {
  border-color: var(--accent-primary);
}

.burger__line {
  display: block;
  width: 18px;
  height: 1.75px;
  border-radius: var(--radius-full);
  background: currentColor;
  transition: transform 200ms ease, opacity 160ms ease;
}

.site-header.is-open .burger__line:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}

.site-header.is-open .burger__line:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .burger__line:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.hero h1 {
  max-width: 16ch;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.95rem, 4.4vw + 1rem, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero__sub {
  max-width: 37rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.125rem);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

.hero__micro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.15rem;
  margin-top: 1.15rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.hero__micro span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero__micro svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent-primary);
}

/* Hero-Panel: Hybrid-Modell als Architektur-Diagramm */
.hero-panel {
  position: relative;
  min-width: 0;
  padding: clamp(1.15rem, 2.2vw, 1.5rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 2rem;
  left: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary) 0 55%, var(--accent-secondary) 55%);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.hero-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-full);
  background: #f0fdf4;
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: currentColor;
}

.panel-layer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
}

.panel-layer--ua {
  border-left-color: var(--accent-secondary);
}

.panel-layer__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--accent-soft-bg);
  color: var(--accent-primary);
}

.panel-layer--ua .panel-layer__icon {
  background: #fff7ed;
  color: var(--accent-secondary);
}

.panel-layer__icon svg {
  width: 19px;
  height: 19px;
}

.panel-layer__kicker {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.panel-layer strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
}

.panel-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding-block: 0.25rem;
}

.panel-link::before,
.panel-link::after {
  content: '';
  width: 1px;
  height: 7px;
  background: var(--border-strong);
}

.panel-link__pill {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: var(--bg-surface-tinted);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-panel__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-panel__stat {
  padding-right: 1rem;
}

.hero-panel__stat + .hero-panel__stat {
  padding-right: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--border-subtle);
}

.stat-number {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-number span {
  margin-left: 0.1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.hero-panel__stat > span:last-child {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

/* Trust-Leiste */
.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.6rem 1.75rem 1.75rem 0;
}

.trust-item + .trust-item {
  padding-left: 1.75rem;
  border-left: 1px solid var(--border-subtle);
}

.trust-item__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
  background: var(--accent-soft-bg);
  color: var(--accent-primary);
}

.trust-item__icon svg {
  width: 19px;
  height: 19px;
}

.trust-item__title {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.trust-item__text {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   8. Section-Header
   -------------------------------------------------------------------------- */
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  flex: none;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-primary) 0 60%, var(--accent-secondary) 60%);
}

.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(1.7rem, 3vw + 1rem, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
}

.section-lead {
  max-width: 41rem;
  margin-top: 1.1rem;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 0.35vw + 0.88rem, 1.05rem);
  line-height: 1.7;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

.section--dark .eyebrow {
  color: #94a3b8;
}

.section--dark .section-lead {
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   9. Vergleichsmatrix
   -------------------------------------------------------------------------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.15rem;
}

.compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.4rem, 2.4vw, 1.85rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.compare-card--highlight {
  border: 2px solid var(--accent-primary);
  background: linear-gradient(180deg, var(--accent-soft-bg) 0%, var(--bg-surface) 48%);
  box-shadow: var(--shadow-card);
}

.compare-card__badge {
  position: absolute;
  top: -0.75rem;
  right: 1.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.compare-card__tag {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-card--highlight .compare-card__tag {
  color: var(--accent-primary);
}

.compare-card h3 {
  margin-top: 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.compare-card__sub {
  min-height: 2.9em;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.compare-card__list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.compare-card__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.5;
}

.compare-card__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.compare-card__list svg {
  width: 17px;
  height: 17px;
  margin-top: 0.12rem;
  flex: none;
}

.compare-card__list .icon-negative {
  color: #94a3b8;
}

.compare-card__list .icon-warning {
  color: var(--accent-secondary);
}

.compare-card__list .icon-positive {
  color: var(--accent-primary);
}

.compare-card--highlight .compare-card__list li {
  color: var(--text-primary);
}

.compare-card__footer {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.compare-card--highlight .compare-card__footer {
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   10. Leistungen
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.service-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
  background: var(--accent-soft-bg);
  color: var(--accent-primary);
}

.service-card__icon svg {
  width: 23px;
  height: 23px;
}

.service-card__number {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.service-card__sub {
  margin-top: 0.55rem;
  color: var(--accent-primary);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.service-card__text {
  margin-top: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.4rem;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.service-card__link svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.service-card__link:hover svg {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   11. Standards (dunkle Sektion)
   -------------------------------------------------------------------------- */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.standard-card {
  position: relative;
  padding: clamp(1.3rem, 2.4vw, 1.7rem);
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.standard-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.standard-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(29, 78, 216, 0.22);
  color: #93c5fd;
}

.standard-card__icon svg {
  width: 20px;
  height: 20px;
}

.standard-card__number {
  margin-left: auto;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.standard-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.standard-card p {
  margin-top: 0.5rem;
  color: #cbd5e1;
  font-size: 0.865rem;
  line-height: 1.65;
}

.standards-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.6rem;
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.standards-foot span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.standards-foot svg {
  width: 14px;
  height: 14px;
  color: #60a5fa;
}

/* --------------------------------------------------------------------------
   12. Ablauf
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.step {
  position: relative;
  padding-top: 1.4rem;
  border-top: 2px solid var(--border-subtle);
}

.step::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--accent-primary);
}

.step:nth-child(3)::before,
.step:nth-child(4)::before {
  background: var(--accent-secondary);
}

.step__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step__number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.step p {
  margin-top: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.865rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   13. Formular
   -------------------------------------------------------------------------- */
.contact {
  border-top: 1px solid var(--border-subtle);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact__aside {
  min-width: 0;
}

.contact__aside h2 {
  margin-top: 1rem;
  font-size: clamp(1.7rem, 2.6vw + 1rem, 2.5rem);
  letter-spacing: -0.032em;
}

.contact__sub {
  max-width: 28rem;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-card {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
}

.contact-card__label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.contact-card__mail svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--accent-primary);
}

.contact-card__mail:hover {
  color: var(--accent-primary);
}

.contact-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.contact-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.contact-card__meta svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.contact-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.contact-list svg {
  width: 17px;
  height: 17px;
  margin-top: 0.08rem;
  flex: none;
  color: var(--accent-primary);
}

.form-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.form-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-card__head h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.form-card__head span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.field {
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.required {
  color: var(--accent-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #94a3b8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  font-variant-numeric: tabular-nums;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.95rem;
  width: 7px;
  height: 7px;
  border-right: 1.75px solid var(--text-muted);
  border-bottom: 1.75px solid var(--text-muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  transition: border-color 160ms ease;
}

.select-wrap:focus-within::after {
  border-color: var(--accent-primary);
}

.field select:invalid {
  color: var(--text-muted);
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger-border);
  background-color: #fffafa;
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.field__error {
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 0.6rem;
}

.checkbox-field input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0.18rem 0 0;
  padding: 0;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.checkbox-field label {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
}

.checkbox-field label a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-field.has-error input[type='checkbox'] {
  outline: 2px solid var(--danger-border);
  outline-offset: 2px;
}

.checkbox-field .field__error {
  grid-column: 2;
  margin-top: -0.1rem;
}

.form-submit {
  margin-top: 1.15rem;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
  justify-content: center;
}

.form-note svg {
  width: 14px;
  height: 14px;
  margin-top: 0.08rem;
  flex: none;
  color: var(--accent-primary);
}

/* Benachrichtigung */
.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: min(24rem, calc(100vw - 2.5rem));
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: var(--bg-ink);
  color: #e2e8f0;
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--radius-full);
  background: rgba(29, 78, 216, 0.35);
  color: #bfdbfe;
}

.toast__icon svg {
  width: 17px;
  height: 17px;
}

.toast__body {
  min-width: 0;
}

.toast__title {
  display: block;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.toast__message {
  margin-top: 0.2rem;
  color: #cbd5e1;
  font-size: 0.75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.toast__close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -0.2rem -0.2rem 0 auto;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
}

.toast__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.toast__close svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-ink);
  color: #94a3b8;
  font-size: 0.82rem;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 80% 120%, rgba(29, 78, 216, 0.3), transparent 45%);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.75fr));
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer__brand .brand__name {
  color: #ffffff;
}

.footer__brand .brand__name span {
  color: #93c5fd;
}

.footer__note {
  max-width: 22rem;
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer__location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer__location svg {
  width: 14px;
  height: 14px;
  color: #60a5fa;
}

.footer__col-title {
  margin: 0;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.footer__col a {
  color: #cbd5e1;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.footer__col a:hover {
  color: #ffffff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  color: #94a3b8;
  font-size: 0.72rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer__legal a {
  color: #94a3b8;
}

.footer__legal a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   15. Rechtliche Seiten
   -------------------------------------------------------------------------- */
.legal-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  letter-spacing: -0.04em;
}

.legal-hero p {
  max-width: 42rem;
  margin-top: 0.9rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.legal-toc h2 {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-toc ul {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.6rem;
}

.legal-toc a {
  display: block;
  padding: 0.3rem 0.4rem;
  border-radius: 5px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.45;
  transition: background-color 160ms ease, color 160ms ease;
}

.legal-toc a:hover {
  background: var(--accent-soft-bg);
  color: var(--accent-primary);
}

.legal-content {
  min-width: 0;
  max-width: 46rem;
}

.legal-content h2 {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  letter-spacing: -0.012em;
}

.legal-content p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

.legal-content ul {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding-left: 1.1rem;
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--accent-primary-hover);
}

.legal-address {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.86rem;
  line-height: 1.7;
}

.legal-address p {
  margin: 0;
  color: var(--text-primary);
  font-size: inherit;
  line-height: inherit;
}

.legal-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.8rem 0.95rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-tinted);
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.55;
}

.legal-note svg {
  width: 16px;
  height: 16px;
  margin-top: 0.05rem;
  flex: none;
  color: var(--accent-secondary);
}

.placeholder {
  display: inline;
  padding: 0.05em 0.25em;
  border-bottom: 1px dashed rgba(234, 88, 12, 0.55);
  border-radius: 2px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.94em;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-back svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.legal-back:hover svg {
  transform: translateX(-2px);
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .hero-panel {
    max-width: 34rem;
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__sub {
    max-width: 34rem;
  }

  .contact__aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: end;
    gap: 1rem 2rem;
  }

  .contact__aside .eyebrow,
  .contact__aside h2,
  .contact__sub {
    grid-column: 1;
  }

  .contact-card {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    margin-top: 0;
  }

  .contact-list {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .compare-card__sub {
    min-height: 0;
  }

  .compare-card__list {
    margin-top: 1rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.15rem;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 0.6fr));
  }
}

@media (max-width: 960px) {
  .site-header .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem var(--gutter) 1.15rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    box-shadow: 0 18px 30px -20px rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav > a:not(.btn) {
    padding: 0.8rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav > a:not(.btn)::after {
    display: none;
  }

  .nav > a:not(.btn):hover {
    background: var(--bg-surface-tinted);
  }

  .nav__cta {
    display: inline-flex;
    margin-top: 0.5rem;
  }

  .burger {
    display: inline-flex;
  }

  .header__cta {
    display: none;
  }

  .hero__trust {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-item {
    padding: 1.15rem 0;
  }

  .trust-item + .trust-item {
    padding-left: 0;
    border-top: 1px solid var(--border-subtle);
    border-left: 0;
  }

  .standards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .legal-toc a {
    padding: 0.3rem 0.55rem;
    background: var(--bg-primary);
  }
}

@media (max-width: 800px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__aside {
    display: block;
  }

  .contact-card {
    margin-top: 1.5rem;
  }

  .contact-list {
    display: grid;
  }
}

@media (max-width: 720px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 1.5rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__badge {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 66px;
    --gutter: 1.15rem;
  }

  .brand__name {
    font-size: 1.2rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .step {
    padding-top: 1.15rem;
  }

  .compare-card,
  .service-card {
    padding: 1.25rem;
  }

  .service-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .toast {
    right: 0.9rem;
    bottom: 0.9rem;
    width: calc(100vw - 1.8rem);
  }

  .legal-toc {
    padding: 0.8rem;
  }
}

@media (max-width: 390px) {
  .hero__micro {
    display: grid;
    gap: 0.3rem;
  }

  .compare-card__badge {
    right: 0.9rem;
  }

  .section-head h2 {
    letter-spacing: -0.025em;
  }
}

/* --------------------------------------------------------------------------
   17. Bewegungsreduktion & Druck
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .toast,
  .skip-link,
  .legal-toc,
  .hero-panel {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .section--dark,
  .site-footer {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .section--dark h2,
  .section--dark h3,
  .standard-card p,
  .footer__col a {
    color: #000000 !important;
  }

  .standard-card {
    border-color: #cccccc;
    background: #ffffff;
  }
}
