/*
  Aktuellis Interface Theme
  -------------------------
  Modernisiert die bestehenden Seiten mit klaren Abständen, fokussierter Typografie
  und wiederkehrenden Oberflächen. Die Struktur folgt den Bereichen Tokens,
  Basis, Layout, Komponenten und Utilities, damit Anpassungen nachvollziehbar bleiben.
*/

@layer theme.tokens {
  :root {
    color-scheme: light;

    /* Farbpalette in Weiß-, Blau- und Grautönen mit sanftem Gelb-Akzent */
    --brand-50: #f6f8fc;
    --brand-100: #e8edf6;
    --brand-200: #d6deeb;
    --brand-300: #b4c7dd;
    --brand-400: #8ba8cb;
    --brand-500: #6289ba;
    --brand-600: #3f6da7;
    --brand-700: #2b5589;
    --brand-800: #1c3a5b;
    --brand-900: #102a43;

    /* RGB-Varianten unterstützen durchgängige Nutzung in rgba()-Deklarationen. */
    --brand-50-rgb: 246, 248, 252;
    --brand-100-rgb: 232, 237, 246;
    --brand-200-rgb: 214, 222, 235;
    --brand-300-rgb: 180, 199, 221;
    --brand-400-rgb: 139, 168, 203;
    --brand-500-rgb: 98, 137, 186;
    --brand-600-rgb: 63, 109, 167;
    --brand-700-rgb: 43, 85, 137;
    --brand-800-rgb: 28, 58, 91;
    --brand-900-rgb: 16, 42, 67;

    --accent-500: #2f6fed;
    --accent-500-rgb: 47, 111, 237;
    --accent-600: #1f56c3;
    --accent-600-rgb: 31, 86, 195;
    /* Zarte Gelbnuance für Hinweise, Tooltips oder subtile Flächen. */
    --accent-highlight: #f7e8a1;

    --gray-25: #fafbfc;
    --gray-50: #f3f5f8;
    --gray-100: #e6eaf0;
    --gray-200: #d3d9e3;
    --gray-300: #b9c1cf;
    --gray-400: #939caf;
    --gray-500: #707a8f;
    --gray-600: #566179;
    --gray-700: #414b62;
    --gray-800: #2c364b;
    --gray-900: #1a2334;

    --success-500: #16a34a;
    --warning-500: #f1c232;
    --danger-500: #dc2626;

    /* Oberflächen & Schatten */
    /*
      Vereinfachte Grundfläche ohne Verläufe – ruhiger und ressourcenschonend.
    */
    --surface-canvas: #f6f8fc;
    --surface-default: #ffffff;
    --surface-muted: rgba(235, 240, 247, 0.78);
    --surface-strong: rgba(25, 45, 74, 0.94);
    --surface-overlay: rgba(255, 255, 255, 0.86);
    --surface-solid-rgb: 255, 255, 255;
    --surface-border: rgba(var(--brand-900-rgb), 0.12);
    --surface-blur: 24px;

    --border-soft: rgba(26, 35, 52, 0.11);
    --border-strong: rgba(26, 35, 52, 0.18);
    --shadow-soft: 0 34px 100px -52px rgba(23, 40, 66, 0.34);
    --shadow-hover: 0 42px 120px -58px rgba(var(--accent-500-rgb), 0.28);
    --shadow-overlay: 0 20px 52px -36px rgba(24, 30, 44, 0.52);
    --ring: 0 0 0 4px rgba(var(--accent-500-rgb), 0.16);

    /* Typografie & Abstände */
    --font-base: 'Gomme Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Gomme Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
    --text-on-light: #101827;
    --text-on-dark: #f5f7fb;
    --muted-on-light: #4a5668;
    --muted-on-dark: #b4c2da;
    --text-color: var(--text-on-light);
    --text-muted: var(--muted-on-light);
    --text-strong: #0f1c2e;
    --text-inverse: #f5f7fb;
    --muted-text: var(--text-muted);

    /*
      Zusätzliche Variablen für Links und Sektionen.
      Sie erlauben es uns, helle und dunkle Modi konsistent abzubilden,
      ohne dass jede Komponente eigene Farben definieren muss.
    */
    --link-color: var(--brand-600);
    --link-hover-color: var(--brand-700);
    --section-muted-start: var(--gray-50);
    --section-muted-end: var(--gray-100);
    --section-accent-glow: rgba(var(--accent-500-rgb), 0.16);
    --section-accent-overlay: rgba(11, 165, 233, 0.12);

    --radius-xs: 12px;
    --radius-sm: 16px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-pill: 999px;

    --space-3xs: clamp(0.28rem, 0.5vw, 0.4rem);
    --space-2xs: clamp(0.4rem, 0.7vw, 0.55rem);
    --space-xs: clamp(0.55rem, 0.95vw, 0.75rem);
    --space-sm: clamp(0.75rem, 1.3vw, 1.05rem);
    --space-md: clamp(1.05rem, 2vw, 1.5rem);
    --space-lg: clamp(1.55rem, 2.8vw, 2.1rem);
    --space-xl: clamp(2.1rem, 3.6vw, 2.85rem);
    --space-2xl: clamp(2.8rem, 4.6vw, 3.7rem);
    --space-3xl: clamp(3.6rem, 5.8vw, 4.9rem);

    --container-max: min(1240px, 96vw);
    --container-wide: min(1380px, 98vw);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s var(--ease-in-out);
    --transition-emphasis: 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /*
    Dark Mode wurde vollständig deaktiviert. Die Klasse bleibt bestehen,
    um Altzustände abzufangen, überschreibt aber lediglich das Farbschema
    auf hell, damit die Basistöne erhalten bleiben.
  */
  body.dark-theme {
    color-scheme: light;
  }
}

@media (prefers-color-scheme: dark) {
  body:not(.light-theme) {
    /* Dark Mode deaktiviert: Auch bei Systempräferenz bleibt das helle Theme aktiv. */
    color-scheme: light;
  }
}

@layer theme.base {
  body {
    /*
      Zentrale Hintergrundfarbe und Textfarbe werden über Variablen gesteuert und
      damit automatisch durch Theme-Overrides beeinflusst.
    */
    background-color: var(--surface-canvas);
    color: var(--text-color);
  }
}

@layer theme.utilities {
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }

    :root {
      /*
        Globale Bewegungsvariablen nahezu deaktivieren, damit Komponenten die
        Präferenz ohne zusätzliche Bedingungen respektieren.
      */
      --transition-base: 0.01ms linear;
      --transition-emphasis: 0.01ms linear;
    }
  }
}

/* Kompakter Footer für das Theme: gleiche Struktur wie in style.css */
.footer {
  /*
    Im dunklen Footer-Bereich nutzen wir durchgehend Weiß als Schriftfarbe, um
    den geforderten maximalen Kontrast auf allen Textstufen sicherzustellen.
  */
  --footer-text: #ffffff;
  --footer-muted: #ffffff;
  --footer-border: rgba(102, 126, 177, 0.28);
  --footer-surface: #040d1a;
  background: radial-gradient(circle at top, rgba(33, 56, 108, 0.25), transparent 55%), var(--footer-surface);
  color: var(--footer-text);
  padding-block: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.95rem;
}

body.dark-theme .footer {
  /*
    Der Footer erhält im Dunkelmodus hellere Texte und eine minimal hellere Fläche
    für bessere Lesbarkeit gegenüber angrenzenden Bereichen.
  */
  --footer-text: #ffffff;
  --footer-muted: #ffffff;
  --footer-border: rgba(125, 149, 196, 0.35);
  --footer-surface: #091630;
  background: radial-gradient(circle at top, rgba(70, 111, 196, 0.32), transparent 55%), var(--footer-surface);
  color: var(--footer-text);
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #a2c4ff;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.footer__brand-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.footer__logo img {
  width: clamp(96px, 14vw, 140px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(5, 16, 32, 0.45));
}

.footer__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.footer__cta-button--primary {
  background: linear-gradient(135deg, #3a7bff 0%, #6fa3ff 100%);
  color: #0a1628;
  box-shadow: 0 12px 30px rgba(38, 91, 200, 0.35);
}

  .footer__cta-button--ghost {
    border-color: var(--footer-border);
    color: var(--footer-text);
    background: rgba(10, 24, 46, 0.65);
  }

body.dark-theme .footer__cta-button--ghost {
  /* Sattere Fläche für ausreichenden Kontrast im Dunkelmodus. */
  background: rgba(17, 36, 66, 0.85);
  border-color: rgba(148, 174, 225, 0.45);
  color: rgba(var(--text-color-rgb), 0.88);
}

body.dark-theme .footer__cta-button--primary {
  color: var(--text-on-dark);
}

.footer__cta-button:hover,
.footer__cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(38, 91, 200, 0.45);
}

.footer__cta-button--ghost:hover,
.footer__cta-button--ghost:focus-visible {
  border-color: rgba(162, 196, 255, 0.85);
}

.footer__brand-text {
  margin: 1.25rem 0 1.5rem;
  color: var(--footer-muted);
  max-width: 34ch;
  line-height: 1.6;
}

.footer__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.footer__stat {
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(17, 39, 70, 0.6);
  border: 1px solid rgba(74, 110, 168, 0.3);
  text-align: center;
}

body.dark-theme .footer__stat {
  background: rgba(22, 40, 72, 0.7);
  border-color: rgba(110, 144, 206, 0.42);
}

.footer__stat dt {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer__stat dd {
  margin: 0.25rem 0 0;
  color: var(--footer-muted);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer__group-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.footer__linklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__address {
  font-style: normal;
  line-height: 1.6;
  color: var(--footer-text);
}

.footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer__contact-list span {
  color: var(--footer-muted);
  margin-right: 0.4rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(91, 124, 187, 0.45);
  background: rgba(9, 22, 39, 0.65);
}

body.dark-theme .footer__social a {
  background: rgba(17, 35, 63, 0.82);
  border-color: rgba(135, 162, 214, 0.45);
}

.footer__social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer__bottom {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__legal-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--footer-muted);
  font-size: 0.9rem;
}

.footer__scroll {
  border: 1px solid rgba(91, 124, 187, 0.4);
  background: rgba(11, 26, 46, 0.65);
  color: var(--footer-text);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer__scroll:hover,
.footer__scroll:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(26, 60, 120, 0.35);
}

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

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

@media (max-width: 720px) {
  .footer {
    padding-block: 2rem 1.5rem;
  }

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

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

  .footer__cta {
    width: 100%;
  }

  .footer__cta-button {
    flex: 1 1 auto;
  }

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

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

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

  .footer__legal-list {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@layer theme.base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    font-size: 16px;
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-base);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-color);
    /* Flächiger Hintergrund ohne Verlauf. */
    background-color: var(--surface-canvas);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
  }

  /*
    Einheitliche Seitenhülle. Sie sorgt für konsistente Abstände, flächige Oberflächen
    und erlaubt uns, Header/Footer problemlos auszutauschen.
  */
  .page-shell {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Flächiger Hintergrund ohne Verlauf. */
    background-color: var(--surface-canvas);
    isolation: isolate;
  }

  .page-shell__header,
  .page-shell__footer {
    position: relative;
    z-index: 2;
  }

  .page-shell__main {
    flex: 1 1 auto;
  }

  main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(var(--space-lg), 4vw, var(--space-2xl));
    padding-block: clamp(1.8rem, 4vw, 2.6rem);
  }

  .page__main {
    /*
      Geringerer Abstand zwischen Header und erstem Inhaltsblock. Der reduzierte
      Versatz sorgt für einen direkteren Einstieg in die Seite und spart unnötige
      Leerfläche ein.
    */
    padding-top: calc(var(--space-lg) + 48px);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-heading);
    color: var(--text-strong);
    margin: 0 0 var(--space-xs);
    letter-spacing: -0.015em;
  }

  h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.05; }
  h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
  h3 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.2; }
  h4 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.25; }

  p,
  ul,
  ol,
  dl {
    margin: 0 0 var(--space-sm);
    color: var(--text-muted);
    max-width: 68ch;
  }

  strong { color: var(--text-strong); }

  a {
    /* Links greifen ausschließlich auf die Mode-abhängigen Token zurück. */
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
  }

  a:hover,
  a:focus-visible {
    color: var(--link-hover-color);
  }

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

  img,
  video {
    border-radius: var(--radius-sm);
  }

  ul,
  ol {
    padding-left: 1.3rem;
  }

  .skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand-600);
    color: var(--text-inverse);
    padding: 0.65rem 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    z-index: 1000;
  }

  .skip-link:focus {
    left: 1rem;
  }
}

@layer theme.layout {
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 2.6vw, 2.4rem);
  }

  .container--wide {
    max-width: var(--container-wide);
  }

  .hero > .container,
  .section > .container {
    max-width: var(--container-wide);
  }

  .section {
    position: relative;
    padding-block: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .section + .section {
    margin-top: calc(var(--space-md) * -0.35);
  }

  .section--surface {
    background: var(--surface-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding-block: var(--space-lg);
  }

  .section--muted {
    /*
      Der Verlauf nutzt Tokens, damit im Dunkelmodus automatisch dunklere Nuancen gewählt werden.
    */
    background: linear-gradient(160deg, var(--section-muted-start), var(--section-muted-end));
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  body.dark-theme .section--muted {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(132, 158, 206, 0.28);
  }

  .section--accent {
    /*
      Auch Akzentflächen orientieren sich an den Token-Werten, um in beiden Modi Lesbarkeit zu sichern.
    */
    background: radial-gradient(circle at top right, var(--section-accent-glow), transparent 60%),
      linear-gradient(135deg, var(--section-accent-overlay), transparent 65%);
    border-radius: var(--radius-lg);
  }

  body.dark-theme .section--accent {
    border: 1px solid rgba(104, 143, 214, 0.25);
  }

  .section-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
    margin-bottom: var(--space-sm);
  }

  .section-header--center {
    text-align: center;
    align-items: center;
  }

  .section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 62ch;
  }

  .eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--brand-600);
  }

  .stack {
    display: grid;
    gap: var(--space-sm);
  }

  .grid {
    display: grid;
    gap: var(--space-md);
  }

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

  .grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@layer theme.components {
  /* Buttons */
  .button,
  button,
  input[type='submit'] {
    /*
      Auch im Theme-Stylesheet nutzen wir die zentralen Button-Variablen,
      wodurch Mischbetrieb verschiedener Layout-Dateien keine optischen
      Ausreißer mehr erzeugt.
    */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--button-gap, 0.6rem);
    min-height: var(--button-height, 3.1rem);
    padding: var(--button-padding-block, 0.85rem) var(--button-padding-inline, 1.8rem);
    border-radius: var(--button-radius, var(--radius-pill));
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-in-out),
      border-color 0.2s var(--ease-in-out);
    background: var(--brand-600);
    color: var(--text-inverse);
  }

  .button:hover,
  .button:focus-visible,
  button:hover,
  button:focus-visible,
  input[type='submit']:hover,
  input[type='submit']:focus-visible {
    transform: translateY(var(--hover-lift-xs, -2px));
    box-shadow: var(--shadow-hover);
  }

  .button.ghost,
  .button.secondary,
  .button.tertiary {
    background: transparent;
    color: var(--text-strong);
    border-color: var(--border-soft);
  }

  .button.ghost:hover,
  .button.ghost:focus-visible,
  .button.secondary:hover,
  .button.secondary:focus-visible,
  .button.tertiary:hover,
  .button.tertiary:focus-visible {
    color: var(--brand-600);
    border-color: color-mix(in srgb, var(--brand-500) 45%, white 55%);
    background: rgba(52, 101, 199, 0.12);
  }

  body.dark-theme .button.ghost,
  body.dark-theme .button.secondary,
  body.dark-theme .button.tertiary {
    /*
      Transparente Buttons nutzen hellere Rahmen, um sich vom dunklen Grund
      abzuheben und klar als interaktiv erkennbar zu bleiben.
    */
    color: var(--text-color);
    border-color: rgba(146, 173, 224, 0.42);
  }

  body.dark-theme .button.ghost:hover,
  body.dark-theme .button.ghost:focus-visible,
  body.dark-theme .button.secondary:hover,
  body.dark-theme .button.secondary:focus-visible,
  body.dark-theme .button.tertiary:hover,
  body.dark-theme .button.tertiary:focus-visible {
    border-color: rgba(160, 190, 240, 0.62);
    background: rgba(124, 170, 255, 0.18);
  }

  .button:focus-visible,
  .button.ghost:focus-visible,
  .button.secondary:focus-visible,
  .button.tertiary:focus-visible,
  button:focus-visible,
  input[type='submit']:focus-visible {
    outline: none;
    box-shadow: var(--shadow-hover), var(--ring);
  }

  .button--inline {
    padding-block: calc(var(--button-padding-block, 0.85rem) - 0.15rem);
    padding-inline: calc(var(--button-padding-inline, 1.8rem) - 0.4rem);
  }

  .button + .button {
    margin-left: var(--button-stack-gap, var(--space-2xs));
  }





  /* Hero */
  .hero {
    padding-block: clamp(var(--space-xl), 6vw, var(--space-2xl));
    display: grid;
    gap: var(--space-md);
  }

  .hero__layout {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .hero__content {
    display: grid;
    gap: var(--space-xs);
  }

  .hero__lead {
    font-size: 1.1rem;
    color: var(--text-muted);
  }

  .hero__support {
    color: var(--text-muted);
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
    /* Konfiguriert die Hover-Hebe-Animation auf null, damit keine Versätze entstehen. */
    --hover-lift-xs: 0;
  }

  .hero__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-2xs);
    margin: 0;
  }

  .hero__metric {
    /* Blau hinterlegte Glasfläche für konsistente Hero-Karten auf allen Seiten */
    position: relative;
    display: grid;
    gap: var(--space-3xs);
    padding: var(--space-xs);
    border-radius: var(--radius-lg);
    background: linear-gradient(
      145deg,
      rgba(58, 117, 255, 0.22),
      rgba(255, 255, 255, 0.92)
    );
    border: 1px solid rgba(58, 117, 255, 0.32);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    isolation: isolate;
  }

  .hero__metric::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
    pointer-events: none;
    z-index: -1;
  }

  .hero__metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin: 0;
  }

  .hero__metric-value {
    margin: 0;
    display: grid;
    gap: var(--space-4xs);
    font-size: 1.15rem;
    color: var(--text-strong);
    /* Ermöglicht saubere Zeilenumbrüche, damit Inhalte nicht am Kartenrand abgeschnitten werden. */
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero__metric-number {
    font-weight: 700;
    /* Entfernt starres Verhalten und sorgt für besser lesbare, mehrzeilige Werte. */
    white-space: normal;
  }

  .hero__metric-description {
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .hero__media {
    display: grid;
    gap: var(--space-xs);
    justify-items: end;
  }

  .hero__media-card {
    background: var(--surface-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: grid;
    grid-template-rows: auto min-content;
    max-width: 520px;
    overflow: hidden;
  }

  .hero__media-figure {
    margin: 0;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

  .hero__media-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero__media-annotation {
    background: var(--surface-muted);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.4rem;
    color: var(--text-muted);
    margin: -2.4rem 1.4rem 1.4rem;
    position: relative;
    box-shadow: var(--shadow-hover);
  }

  .hero__media-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--brand-600);
  }

  /* Karten & Raster */
  .cards,
  .pricing-cards,
  .feature-grid,
  .service-highlight-grid,
  .service-deliverables__grid,
  .service-proof__grid,
  .team-list,
  .contact-wrapper,
  .partner-slider .logos,
  .partners .logos,
  .stats-grid,
  .values-grid,
  .faq,
  .cta__content-list,
  .timeline,
  .steps,
  .pricing-overview-grid {
    display: grid;
    gap: var(--space-sm);
  }

  .cards,
  .team-list,
  .contact-wrapper,
  .stats-grid,
  .values-grid,
  .pricing-cards,
  .feature-grid,
  .service-highlight-grid,
  .service-deliverables__grid,
  .service-proof__grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }

  .pricing-overview-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: var(--space-md);
  }

  .card,
  .team-member,
  .contact-card,
  .pricing-card,
  .faq__item,
  .timeline__item,
  .step,
  .service-section,
  .summary-card,
  .table-common,
  .cookie-option,
  .cookie-banner,
  .cookie-banner__actions,
  .cookie-banner__header,
  .cookie-banner__intro,
  .cookie-options,
  .cookie-banner__link {
    border-radius: var(--radius-lg);
  }

  .card,
  .team-member,
  .contact-card,
  .pricing-card,
  .service-section,
  .summary-card,
  .table-common,
  .cookie-banner {
    background: var(--surface-default);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: clamp(var(--space-2xs), 3vw, var(--space-sm));
  }

  .card > img,
  .team-member > img,
  .contact-card > img {
    border-radius: var(--radius-md);
  }

  .team-member {
    display: grid;
    gap: var(--space-2xs);
  }

  .contact-map .map {
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .contact-map iframe {
    width: 100%;
    min-height: 260px;
    border: 0;
  }

  .team-member .info {
    display: grid;
    gap: 0.2rem;
  }

  .team-member .info strong {
    font-size: 1.1rem;
    color: var(--text-strong);
  }

  .team-member .info span {
    color: var(--text-muted);
  }

  .team-member .linkedin {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }

  .team-member .linkedin img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  .card:hover,
  .team-member:hover,
  .pricing-card:hover,
  .contact-card:hover,
  .service-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }

  .card h3 {
    margin-top: 0.4rem;
  }

  .pricing-card__price {
    display: grid;
    gap: var(--space-2xs);
    border-top: 1px solid var(--border-soft);
    padding-top: var(--space-xs);
    margin-top: var(--space-xs);
  }

  .price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 600;
  }

  .price-row span {
    color: var(--text-muted);
  }

  .pricing-card__hint {
    font-size: 0.9rem;
    color: var(--brand-600);
  }

  .pricing-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--space-2xs);
  }

  .pricing-list li::before {
    content: '•';
    color: var(--brand-500);
    font-weight: 700;
    margin-right: 0.35rem;
  }

  details {
    background: var(--surface-default);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: var(--space-2xs) var(--space-sm);
    box-shadow: var(--shadow-soft);
  }

  details + details {
    margin-top: var(--space-2xs);
  }

  summary {
    font-weight: 600;
    color: var(--text-strong);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xs);
  }

  details[open] summary {
    color: var(--brand-600);
  }

  details p {
    margin-top: var(--space-2xs);
  }

  .partner-slider img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.25s ease, filter 0.25s ease;
  }

  .partner-slider img:hover {
    opacity: 1;
    filter: grayscale(0);
  }

  .badge,
  .chip,
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(52, 101, 199, 0.12);
    color: var(--brand-700);
  }

  .checklist {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.5rem;
  }

  .checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .checklist li::before {
    content: '✔';
    color: var(--success-500);
    font-weight: 700;
    margin-top: 0.2rem;
  }

  /* Tabellen */
  .summary-table,
  .table-common,
  .table-responsive {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface-default);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
  }

  .summary-table table,
  .table-common table {
    width: 100%;
    border-collapse: collapse;
  }

  .summary-table th,
  .table-common th {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .summary-table th,
  .summary-table td,
  .table-common th,
  .table-common td {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
  }

  .summary-table tr:last-child td,
  .table-common tr:last-child td {
    border-bottom: none;
  }

  /* Formulare */
  form,
  .field-group,
  .contact-form,
  .contact-wrapper {
    display: grid;
    gap: var(--space-sm);
  }

  label {
    font-weight: 600;
    color: var(--text-strong);
  }

  input,
  textarea,
  select,
  .w-input,
  .w-select {
    font: inherit;
    color: var(--text-color);
    background: var(--surface-default);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  input:focus,
  textarea:focus,
  select:focus,
  .w-input:focus,
  .w-select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(52, 101, 199, 0.16);
  }

  textarea {
    min-height: 160px;
  }

  .form-grid {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
  }

  /* Footer */
  /*
    Modernisiertes Footer-Styling im Theme-Layer: übernimmt das neue Kartenlayout
    und nutzt die zentralen Design-Tokens für Farbakzente.
  */
  /* Footer */
  /* ============================================ */
  /* CTA-Zone plus klar strukturierter Linkbereich */
  /* ============================================ */

  .footer {
    --footer-text: var(--text-color);
    --footer-muted: var(--muted-text);
    --footer-border: rgba(102, 126, 177, 0.28);
    --footer-surface: #040d1a;
    background: linear-gradient(180deg, #030912 0%, #071427 52%, #030b18 100%);
    color: var(--text-color);
    margin-top: clamp(3rem, 6vw, 5.2rem);
    padding-block: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
    overflow: hidden;
  }

  .footer__hero {
    background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.98) 0%, rgba(12, 154, 241, 0.85) 55%, #2f6fed 100%);
    border-radius: clamp(1.4rem, 3vw, 1.9rem);
    margin-inline: clamp(0.75rem, 4vw, 2rem);
    margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
    position: relative;
    isolation: isolate;
    box-shadow: 0 35px 55px rgba(18, 52, 98, 0.28);
  }

  .footer__hero::after {
    /* Dezente Textur für mehr Tiefe. */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 35%, rgba(255, 255, 255, 0.18), transparent 55%),
      radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0.65;
    pointer-events: none;
  }

  .footer__hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
    justify-content: space-between;
    padding: clamp(1.8rem, 5vw, 2.8rem) clamp(1.8rem, 5vw, 3.2rem);
    color: #f8fbff;
  }

  .footer__hero-copy {
    max-width: 48ch;
    display: grid;
    gap: 0.75rem;
  }

  .footer__hero-eyebrow {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
  }

  .footer__hero-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.2;
  }

  .footer__hero-text {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.88);
  }

  .footer__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .footer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
    border: 1px solid transparent;
    color: #0a1424;
    background: #fff;
  }

  .footer__button:hover,
  .footer__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(6, 32, 76, 0.22);
  }

  .footer__button--primary {
    background: #fff;
    color: #0b1629;
  }

  .footer__button--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
  }

  .footer__button--ghost:hover,
  .footer__button--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.2);
  }

  /*
    Im Dunkelmodus erhalten die Call-to-Action Buttons eine dunkle, leicht
    transparente Basis. Dadurch bleibt der Text auch auf hellen Gradienten gut
    lesbar und das Gesamtdesign wirkt stimmig.
  */
  body.dark-theme .footer__button {
    background: rgba(var(--text-color-rgb), 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--text-on-dark);
    box-shadow: 0 18px 40px rgba(2, 6, 18, 0.5);
  }

  body.dark-theme .footer__button--primary {
    background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.85) 0%, rgba(123, 164, 255, 0.9) 100%);
    color: var(--text-on-dark);
  }

  body.dark-theme .footer__button--ghost {
    background: rgba(var(--text-color-rgb), 0.08);
    border-color: rgba(148, 163, 184, 0.42);
    color: rgba(var(--text-color-rgb), 0.88);
  }

  body.dark-theme .footer__button--ghost:hover,
  body.dark-theme .footer__button--ghost:focus-visible {
    background: rgba(var(--text-color-rgb), 0.16);
  }

  .footer__main {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-block: clamp(2.4rem, 5vw, 3.4rem) clamp(2rem, 4vw, 3rem);
  }

  .footer__main-inner {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .footer__column {
    display: grid;
    gap: 1rem;
    color: var(--footer-text);
  }

  .footer__column--brand {
    gap: 1.2rem;
  }

  .footer__logo {
    display: inline-flex;
    width: clamp(64px, 10vw, 84px);
    padding: 0.65rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(122, 182, 255, 0.32);
    transition: transform var(--transition-base), border-color var(--transition-base);
  }

  .footer__logo img {
    max-width: 100%;
    height: auto;
  }

  .footer__logo:hover,
  .footer__logo:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(122, 182, 255, 0.6);
  }

  .footer__brand-text {
    margin: 0;
    color: var(--footer-muted);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .footer__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.9rem;
    margin: 0;
  }

  .footer__stat {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(8, 22, 41, 0.7);
    border: 1px solid rgba(122, 182, 255, 0.18);
  }

  .footer__stat dt {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    color: #ffffff;
  }

  .footer__stat dd {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--footer-muted);
  }

  .footer__quote {
    margin: 0;
    padding-left: 1.1rem;
    border-left: 3px solid rgba(122, 182, 255, 0.4);
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .footer__quote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--footer-muted);
  }

  .footer__column-title {
    margin: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(199, 213, 232, 0.82);
  }

  .footer__linklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
  }

  .footer__linklist a {
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
  }

  .footer__linklist a:hover,
  .footer__linklist a:focus-visible {
    color: rgba(122, 182, 255, 0.95);
  }

  .footer__address {
    margin: 0;
    font-style: normal;
    color: var(--footer-text);
    line-height: 1.6;
  }

  .footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
  }

  .footer__contact-list a {
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
  }

  .footer__contact-list a span {
    font-weight: 400;
    color: var(--footer-muted);
    margin-right: 0.3rem;
  }

  .footer__contact-list a:hover,
  .footer__contact-list a:focus-visible {
    color: rgba(122, 182, 255, 0.95);
  }

  .footer__meta {
    border-top: 1px solid rgba(102, 126, 177, 0.24);
    padding-block: clamp(1.8rem, 4vw, 2.4rem);
    background: rgba(4, 8, 16, 0.65);
  }

  .footer__meta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
  }

  .footer__copyright {
    margin: 0;
    font-size: 0.9rem;
    color: var(--footer-muted);
  }

  .footer__legal-list {
    list-style: none;
    display: flex;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
  }

  .footer__legal-list a {
    color: var(--footer-muted);
    text-decoration: none;
    transition: color var(--transition-base);
  }

  .footer__legal-list a:hover,
  .footer__legal-list a:focus-visible {
    color: rgba(122, 182, 255, 0.95);
  }

  .footer__social {
    display: flex;
    gap: 0.75rem;
  }

  .footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(122, 182, 255, 0.32);
    color: rgba(122, 182, 255, 0.95);
    transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
  }

  .footer__social a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .footer__social a:hover,
  .footer__social a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(122, 182, 255, 0.6);
    background: rgba(122, 182, 255, 0.16);
  }

  .footer__scroll {
    background: transparent;
    border: 1px solid rgba(122, 182, 255, 0.35);
    color: rgba(199, 213, 232, 0.9);
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  }

  .footer__scroll:hover,
  .footer__scroll:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(122, 182, 255, 0.55);
    color: rgba(255, 255, 255, 0.95);
  }

  @media (min-width: 960px) {
    .footer__column--brand {
      grid-column: span 2;
    }
  }

  @media (max-width: 960px) {
    .footer__hero-inner {
      flex-direction: column;
      align-items: flex-start;
    }

    .footer__hero-actions {
      width: 100%;
    }

    .footer__hero-actions .footer__button {
      flex: 1 1 auto;
      justify-content: center;
    }
  }

  @media (max-width: 720px) {
    .footer__hero {
      margin-inline: 0;
      border-radius: 0;
    }

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

    .footer__legal-list {
      flex-direction: column;
      gap: 0.65rem;
    }
  }

  @media (max-width: 520px) {
    .footer__hero-inner {
      padding: clamp(1.6rem, 8vw, 2.2rem) clamp(1.2rem, 6vw, 1.8rem);
    }

    .footer__button {
      width: 100%;
    }
  }

  .footer__inner {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 760px) {
    main {
      gap: var(--space-xl);
      padding-block: var(--space-lg);
    }

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

    .hero {
      padding-block: var(--space-xl);
    }

    .footer__inner {
      padding-block: var(--space-lg);
    }

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

    .cookie-banner {
      padding: var(--space-sm);
    }
  }
}
