/* =================================================================
   SISD – Design-System
   Reines CSS, keine Frameworks, keine externen Ressourcen.
   ================================================================= */

/* ---------- 1. Tokens ------------------------------------------- */

:root {
  /* Farben */
  --ink: #0d1114;
  --ink-soft: #3d474e;
  --muted: #667079;
  --muted-light: #8b949c;
  --line: #e4e7ea;
  --line-strong: #d3d8dd;
  --surface: #ffffff;
  --surface-alt: #f6f7f8;
  --surface-tint: #f0f4f8;
  --accent: #0f62b5;
  --accent-dark: #0b4a8a;
  --accent-soft: #eaf2fb;
  --sky-1: #6fb6e8;
  --sky-2: #3f8fd0;
  --sky-3: #1f6bb0;
  --danger: #b3261e;
  --success: #146c43;

  /* Typografie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Abstaende & Radien */
  --container: 1160px;
  --gutter: 7.28px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(13, 17, 20, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(13, 17, 20, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(13, 17, 20, 0.35);

  --header-h: 68px;
}

/* ---------- 2. Reset -------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.12;
  color: var(--ink);
}

p {
  margin: 0;
}

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

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

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

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

::selection {
  background: var(--ink);
  color: #fff;
}

/* ---------- 3. Layout-Helfer ------------------------------------ */

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

.section {
  padding-block: clamp(52px, 6vw, 84px);
}

.section--alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.section__head--center .eyebrow::before {
  display: none;
}

h1,
.h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.7rem);
}

h2,
.h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
}

h3,
.h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
}

.lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.4vw, 1.115rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 62ch;
}

.section__head--center .lead {
  margin-inline: auto;
}

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

.placeholder {
  color: var(--muted-light);
  font-style: italic;
}

.mt-20 {
  margin-top: 20px;
}

.mt-28 {
  margin-top: 28px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button-row--center {
  justify-content: center;
}

/* ---------- 4. Buttons ------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: #1c2429;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-inline: 4px;
}

.btn--ghost:hover {
  color: var(--accent);
}

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

.btn--lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--accent);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.18s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.text-link:hover {
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
}

/* ---------- 5. Header ------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

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

.brand__suffix {
  color: var(--muted-light);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.16s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 3.5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- 6. Hero --------------------------------------------- */

.hero {
  padding-top: clamp(61.6px, 8.4vw, 106.4px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

.hero__grid {
  display: block;
}

.hero__title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}

.hero__title-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  max-width: 640px;
}

.hero__link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.hero__link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.hero__text {
  margin-top: 0;
  max-width: 640px;
  padding-left: 18px;
  border-left: 2px solid var(--line-strong);
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.7;
  text-wrap: pretty;
  color: var(--ink-soft);
}

.hero__scene-container,
.leistungen__scene-container {
  position: relative;
  width: 100%;
  height: clamp(420px, 38vw, 540px);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 55%, rgba(15, 98, 181, 0.08) 0%, rgba(56, 189, 248, 0.04) 45%, rgba(255, 255, 255, 0) 72%);
  user-select: none;
  touch-action: pan-y;
  overflow: visible;
}

@media (min-width: 901px) {
  .hero__scene-container,
  .leistungen__scene-container {
    margin-right: -40px;
    width: calc(100% + 40px);
  }
}

.hero__3d-canvas,
.leistungen__3d-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

/* Leistungen / Lösungen Hero-Layout */
.leistungen__hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.leistungen__head-left {
  max-width: 640px;
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(32px, 4vw, 56px);
  font-size: 0.88rem;
  color: var(--muted);
}

.hero__meta.reveal.d3.is-visible {
  margin-top: clamp(32px, 4vw, 56px);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Showcase-Karte (Himmel-Verlauf mit Produkt-Mockup) */
.showcase {
  margin-top: clamp(31.5px, 4.2vw, 46.2px);
  padding: clamp(18px, 3.4vw, 46px);
  padding-bottom: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(170deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-3) 100%);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.showcase::before,
.showcase::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  filter: blur(42px);
  pointer-events: none;
}

.showcase::before {
  width: 420px;
  height: 260px;
  top: -70px;
  left: -60px;
}

.showcase::after {
  width: 520px;
  height: 300px;
  bottom: -120px;
  right: -80px;
  background: rgba(255, 255, 255, 0.22);
}

/* Produkt-Mockup ------------------------------------------------- */

.mockup {
  position: relative;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(6, 30, 55, 0.55);
  font-size: 13px;
  line-height: 1.5;
  min-height: 430px;
}

.mockup__aside {
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  font-weight: 600;
  font-size: 13px;
}

.mockup__brand .brand__mark {
  width: 16px;
  height: 16px;
}

.mockup__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mockup__nav li {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.mockup__label {
  padding-inline: 8px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.mockup__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mockup__list li {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup__list li.is-active {
  background: #eef1f4;
  color: var(--ink);
  font-weight: 500;
}

.mockup__user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 2px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.mockup__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mockup__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
}

.mockup__dots {
  display: flex;
  gap: 6px;
}

.mockup__dots span {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
}

.mockup__thread {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.msg {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}

.msg__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #8b949c;
}

.msg__avatar--ai {
  background: linear-gradient(140deg, var(--accent), #0a3f76);
}

.msg__author {
  font-weight: 600;
  font-size: 12px;
}

.msg__meta {
  font-size: 11px;
  color: var(--muted-light);
}

.msg__body {
  color: var(--ink-soft);
  font-size: 12.5px;
}

.msg__body strong {
  color: var(--ink);
  font-weight: 600;
}

.msg__cite {
  border-bottom: 1px dashed var(--accent);
  color: var(--accent);
}

.msg__sources {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted-light);
}

.mockup__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfe;
  font-size: 12px;
}

.mockup__action span:last-child {
  color: var(--success);
  font-weight: 500;
  white-space: nowrap;
}

.mockup__composer {
  margin: 4px 16px 16px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-light);
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
}

.mockup__send {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex: none;
}

.mockup__caret {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--ink);
  vertical-align: -2px;
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* ---------- 7. Karten & Raster ---------------------------------- */

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card__icon svg {
  width: 19px;
  height: 19px;
}

.card h3 {
  margin-bottom: 9px;
}

.card p {
  font-size: 0.94rem;
  color: var(--muted);
}

.card__list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.89rem;
  color: var(--ink-soft);
}

.card__list li {
  position: relative;
  padding-left: 18px;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
}

.card--feature {
  padding: 22px;
  background: var(--surface-alt);
  border-color: transparent;
}

.card--feature:hover {
  background: var(--surface);
  border-color: var(--line);
}

/* Auf getönten Abschnitten heben sich die Karten weiß ab. */
.section--alt .card--feature {
  background: var(--surface);
  border-color: var(--line);
}

/* ---------- 8. Wissenswerk-Abschnitt (Light Mode Design) ---------- */

.section--ww-integrated {
  background-color: #ffffff;
  border-block: none;
  position: relative;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 60px,
    black calc(100% - 60px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 60px,
    black calc(100% - 60px),
    transparent 100%
  );
}

.section--ww-integrated.bg-dots {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.ww-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(77, 124, 253, 0.08);
  border: 1px solid rgba(77, 124, 253, 0.22);
  color: #3a69ea;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ww-card--offering {
  padding: 32px 30px;
}

.ww-card__tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: #3a69ea;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.ww-card__list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.89rem;
  color: #495057;
}

.ww-card__list li {
  position: relative;
  padding-left: 20px;
}

.ww-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3a69ea;
  font-weight: 700;
}

.ww-interview-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid rgba(77, 124, 253, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(77, 124, 253, 0.08);
}

.ww-interview-banner__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(77, 124, 253, 0.1);
  color: #3a69ea;
}

.ww-interview-banner__icon svg {
  width: 20px;
  height: 20px;
}

.ww-interview-banner__text {
  font-size: 0.93rem;
  line-height: 1.55;
  color: #495057;
}

.ww-interview-banner__text strong {
  color: #111111;
}

.ww-features-summary {
  text-align: center;
  margin-top: 32px;
  font-size: 0.92rem;
  color: #6c757d;
  max-width: 720px;
  margin-inline: auto;
  line-height: 1.55;
}

.ww-card {
  position: relative;
  padding: 30px 26px;
  background: #ffffff;
  border: 1px solid #e4e6e9;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ww-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 124, 253, 0.4);
  box-shadow: 0 12px 30px rgba(77, 124, 253, 0.12);
}

.ww-card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #3a69ea;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.ww-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(77, 124, 253, 0.08);
  color: #3a69ea;
  margin-bottom: 16px;
}

.ww-card__icon svg {
  width: 22px;
  height: 22px;
}

.ww-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  color: #111111;
}

.ww-card p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #495057;
}

.ww-integrated__actions {
  margin-top: 42px;
}

.btn--ww-primary {
  background: #4d7cfd;
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(77, 124, 253, 0.35);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn--ww-primary:hover {
  background: #3a69ea;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(77, 124, 253, 0.45);
}

.btn--ww-secondary {
  background: #ffffff;
  color: #343a40;
  border: 1px solid #ced4da;
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  font-weight: 500;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn--ww-secondary:hover {
  border-color: #3a69ea;
  color: #3a69ea;
  transform: translateY(-1px);
}

/* ---------- 8. Wissenswerk-Abschnitt ----------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.source-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.88rem;
  background: #fdfdfe;
}

.source-row__icon {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.source-row__meta {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted-light);
  white-space: nowrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 12px;
  color: var(--ink-soft);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
}

.feature-list__num {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
}

.feature-list h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.feature-list p {
  font-size: 0.93rem;
  color: var(--muted);
}

/* ---------- 9. Sprach-KI ---------------------------------------- */

.voice-visual {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 64px;
  padding: 0 2px;
  margin-bottom: 22px;
}

.voice-visual span {
  flex: 1;
  min-width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sky-2), var(--accent-dark));
  opacity: 0.85;
  transform-origin: center;
  animation: wave 1.8s ease-in-out infinite;
}

.voice-visual span:nth-child(3n) {
  animation-duration: 2.3s;
}

.voice-visual span:nth-child(4n) {
  animation-duration: 1.4s;
}

.voice-visual span:nth-child(1) { animation-delay: -0.1s; }
.voice-visual span:nth-child(2) { animation-delay: -0.5s; }
.voice-visual span:nth-child(3) { animation-delay: -0.9s; }
.voice-visual span:nth-child(4) { animation-delay: -1.3s; }
.voice-visual span:nth-child(5) { animation-delay: -0.3s; }
.voice-visual span:nth-child(6) { animation-delay: -0.7s; }
.voice-visual span:nth-child(7) { animation-delay: -1.1s; }
.voice-visual span:nth-child(8) { animation-delay: -1.5s; }
.voice-visual span:nth-child(9) { animation-delay: -0.2s; }
.voice-visual span:nth-child(10) { animation-delay: -0.6s; }
.voice-visual span:nth-child(11) { animation-delay: -1s; }
.voice-visual span:nth-child(12) { animation-delay: -1.4s; }
.voice-visual span:nth-child(13) { animation-delay: -0.4s; }
.voice-visual span:nth-child(14) { animation-delay: -0.8s; }
.voice-visual span:nth-child(15) { animation-delay: -1.2s; }
.voice-visual span:nth-child(16) { animation-delay: -1.6s; }
.voice-visual span:nth-child(17) { animation-delay: -0.15s; }
.voice-visual span:nth-child(18) { animation-delay: -0.55s; }
.voice-visual span:nth-child(19) { animation-delay: -0.95s; }
.voice-visual span:nth-child(20) { animation-delay: -1.35s; }
.voice-visual span:nth-child(21) { animation-delay: -0.35s; }
.voice-visual span:nth-child(22) { animation-delay: -0.75s; }
.voice-visual span:nth-child(23) { animation-delay: -1.15s; }
.voice-visual span:nth-child(24) { animation-delay: -1.55s; }

@keyframes wave {
  0%,
  100% {
    height: 16%;
  }
  50% {
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-visual span {
    animation: none;
    height: 46%;
  }
  .mockup__caret {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 10. Kontakt ----------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.contact__aside dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__aside dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 3px;
}

.contact__aside dd {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.94rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

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

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 98, 181, 0.14);
}

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

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

.field__error {
  font-size: 0.81rem;
  color: var(--danger);
  min-height: 0;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
}

.field--check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--accent);
}

.field--check label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 400;
}

.field--check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.form__note {
  font-size: 0.8rem;
  color: var(--muted-light);
  max-width: 34ch;
}

.form__status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--ok {
  background: #e9f5ee;
  color: var(--success);
  border: 1px solid #c4e3d1;
}

.form__status--error {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f3c9c5;
}

/* ---------- 11. Footer ------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 42px 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.footer__about {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 34ch;
}

.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a {
  font-size: 0.91rem;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted-light);
}

/* ---------- 12. Einfache Unterseiten ---------------------------- */

.page {
  padding-block: clamp(56px, 7vw, 88px);
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose ul li {
  padding-left: 18px;
  position: relative;
}

.prose ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted-light);
}

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-page .lead {
  margin-inline: auto;
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted-light);
  letter-spacing: 0.1em;
}

/* ---------- 13. Reveal-Animation -------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: 0.06s;
}
.d2 {
  transition-delay: 0.12s;
}
.d3 {
  transition-delay: 0.18s;
}
.d4 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* ---------- 14. Responsive -------------------------------------- */

@media (max-width: 1040px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-header.is-open .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-header.is-open .nav a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 0.98rem;
  }

  .hero__title-row,
  .leistungen__hero-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .hero__text {
    margin-top: 0;
  }
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .split,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mockup {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .mockup__aside {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 5.46px;
  }
  .grid--2,
  .grid--3,
  .grid--4,
  .form__row,
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase {
    padding: 14px;
    padding-bottom: 0;
    border-radius: var(--radius-lg);
  }
  .form__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .form__footer .btn {
    width: 100%;
  }
}
