/* ============================================================
   CoDozent — Design System
   Threepartment® · assets/css/site.css
   ============================================================ */

/* ---------- Font (selbst gehostet, keine externen Requests) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* Space Grotesk */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-v22-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-v22-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Farbwelt */
  --ink-900: #071827;
  --ink-850: #08203a;
  --ink-800: #0b2745;
  --ink-700: #113256;
  --ink-600: #1b4372;

  --blue: #2f7df6;
  --blue-strong: #1d5fd0; /* AA-sicher mit weißer Schrift */
  --blue-deep: #16498f;
  --blue-soft: #e7f0ff;

  --teal: #54d6c8;
  --teal-deep: #0d6f68;
  --teal-soft: #e2faf6;

  --violet: #7c6bf5; /* nur sparsamer Zusatzakzent */

  --mist: #f5f7fa;
  --white: #ffffff;

  /* Text */
  --tx-dark: #071827;
  --tx-body: #3d5164;
  --tx-muted: #5b6f83;
  --tx-on-dark: #eaf2fb;
  --tx-on-dark-muted: #a3bad2;

  /* Linien & Flächen */
  --line-light: #e3e9f0;
  --line-light-2: #eef2f7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-dark-2: rgba(255, 255, 255, 0.07);
  --surface-dark: rgba(255, 255, 255, 0.045);

  /* Radien */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Schatten */
  --sh-sm: 0 1px 2px rgba(7, 24, 39, 0.06), 0 4px 12px rgba(7, 24, 39, 0.05);
  --sh-md: 0 2px 6px rgba(7, 24, 39, 0.06), 0 18px 40px -18px rgba(7, 24, 39, 0.28);
  --sh-lg: 0 30px 70px -30px rgba(7, 24, 39, 0.45);
  --sh-glow: 0 10px 30px -12px rgba(47, 125, 246, 0.65);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 8vw, 7.5rem);
  --header-h: 72px;

  /* Typo */
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono",
    Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

/* ---------- 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;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tx-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: var(--blue-strong);
  text-decoration-color: rgba(29, 95, 208, 0.35);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--blue-strong);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible,
.section--dark :focus-visible,
.site-header :focus-visible {
  outline-color: var(--teal);
}
::selection {
  background: rgba(47, 125, 246, 0.25);
}

/* ---------- Hilfsklassen ---------- */
.container {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - (2 * var(--gutter)), 820px);
  margin-inline: auto;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--white);
  color: var(--ink-900);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  box-shadow: var(--sh-md);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Typografie ---------- */
h1,
h2,
h3,
h4 {
  color: var(--tx-dark);
  font-family:'Space Grotesk', monospace;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 {
  color: var(--white);
}

.h-display {
  font-size: clamp(2.35rem, 5.2vw, 4.05rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
}
.h-section {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.1;
}
.h-card {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--tx-muted);
  max-width: 62ch;
}
.section--dark .lead,
.on-dark .lead {
  color: var(--tx-on-dark-muted);
}
.text-muted {
  color: var(--tx-muted);
}
.on-dark .text-muted,
.section--dark .text-muted {
  color: var(--tx-on-dark-muted);
}

/* Eyebrow: Utility-Typo (Mono) mit Markierungslinie */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue-strong);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 2px;
}
.section--dark .eyebrow,
.on-dark .eyebrow {
  color: var(--teal);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head .lead {
  margin-top: 1.15rem;
}

/* ---------- Sections & Hintergründe ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--light {
  background: var(--white);
}
.section--mist {
  background: var(--mist);
}
.section--dark {
  background: var(--ink-900);
  color: var(--tx-on-dark);
}
.section--dark p,
.on-dark p {
  color: var(--tx-on-dark-muted);
}

/* feines Raster */
.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    120% 90% at 50% 0%,
    #000 15%,
    transparent 78%
  );
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 15%, transparent 78%);
  pointer-events: none;
}
.bg-grid--light::before {
  background-image: linear-gradient(to right, rgba(7, 24, 39, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(7, 24, 39, 0.05) 1px, transparent 1px);
}
/* dezente Mesh-/Radialverläufe */
.bg-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      60% 55% at 78% 8%,
      rgba(47, 125, 246, 0.28),
      transparent 62%
    ),
    radial-gradient(48% 45% at 8% 24%, rgba(84, 214, 200, 0.14), transparent 60%),
    radial-gradient(70% 60% at 50% 105%, rgba(11, 39, 69, 0.85), transparent 70%);
  pointer-events: none;
}
.section > .container,
.hero > .container {
  position: relative;
  z-index: 1;
}
.rule-top {
  border-top: 1px solid var(--line-light);
}
.section--dark.rule-top {
  border-top-color: var(--line-dark-2);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-strong);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.975rem;
  letter-spacing: -0.008em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  box-shadow: var(--sh-glow);
}
.btn--primary:hover {
  --btn-bg: #1a55bd;
  box-shadow: 0 14px 34px -12px rgba(47, 125, 246, 0.8);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink-800);
  border-color: var(--line-light);
  background: var(--white);
  box-shadow: var(--sh-sm);
}
.btn--outline:hover {
  border-color: #c8d6e6;
}
.btn--sm {
  padding: 0.62rem 1.05rem;
  font-size: 0.9rem;
}
.btn--lg {
  padding: 1.05rem 1.8rem;
  font-size: 1.02rem;
}
.btn--block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--teal);
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 24, 39, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line-dark-2);
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.9);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.brand__logo {
  height: 32px;
  width: auto;
}
.nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  color: rgba(234, 242, 251, 0.82);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="true"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}
.header--minimal .header__actions {
  margin-left: auto;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

@media (max-width: 940px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(7, 24, 39, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-dark);
    padding: 1rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav.is-open {
    display: block;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .nav__link {
    padding: 0.85rem 0.75rem;
    font-size: 1.02rem;
    border-radius: var(--r-sm);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header__cta {
    display: none;
  }
  .header--minimal .header__cta {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--tx-on-dark);
  padding-top: calc(var(--header-h) + clamp(2.75rem, 6vw, 5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
/* ---------- Hero Video Background ---------- */
.hero-hero-video-wrap {
   position: absolute;
   inset: 0;
   z-index: 0;
   overflow: hidden;
}
.hero-hero-video-wrap video {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   opacity: 0.35;
}
.hero::before,
.hero::after {
   z-index: 1;
}
.hero .container {
   position: relative;
   z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero__copy {
  max-width: 36rem;
}
.hero h1 {
  margin-bottom: 1.4rem;
}
h1 .accent {
  background: linear-gradient(96deg, var(--teal) 0%, #8fe6dc 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--tx-on-dark-muted);
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.hero__trust {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--tx-on-dark-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.hero__trust svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
  flex: none;
  margin-top: 3px;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark-2);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-dark);
  font-size: 0.815rem;
  font-weight: 600;
  color: var(--tx-on-dark);
  letter-spacing: -0.005em;
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
  box-shadow: 0 0 0 3px rgba(84, 214, 200, 0.18);
}
.badge__dot--blue {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.2);
}
.badge__dot--violet {
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 107, 245, 0.2);
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__copy {
    max-width: 40rem;
  }
}

/* ---------- Produktoberfläche (Signature-Element) ---------- */
.app-frame {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.13),
    rgba(255, 255, 255, 0.035) 42%,
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--line-dark);
  padding: 10px;
  box-shadow: var(--sh-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.app-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(84, 214, 200, 0.55),
    rgba(47, 125, 246, 0.28) 40%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.app {
  background: linear-gradient(180deg, #0a2138, #071827 60%);
  border-radius: calc(var(--r-xl) - 8px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.app__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line-dark-2);
  background: rgba(255, 255, 255, 0.03);
}
.app__dots {
  display: flex;
  gap: 5px;
}
.app__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.app__title {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(234, 242, 251, 0.72);
  letter-spacing: -0.01em;
}
.app__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(84, 214, 200, 0.32);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.55rem;
  background: rgba(84, 214, 200, 0.08);
}
.app__body {
  padding: 1.05rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.85rem;
}
.app__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.app__greeting {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.app__module {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-on-dark-muted);
}
.app__track {
  font-size: 0.82rem;
  color: var(--tx-on-dark-muted);
}

/* Lernfahrausweis-Stempelleiste — wiederkehrendes Strukturelement */
.stamps {
  display: flex;
  gap: 6px;
}
.stamps li {
  position: relative;
  flex: 1;
  height: 34px;
  border-radius: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(234, 242, 251, 0.4);
  transition: all 0.45s var(--ease);
}
.stamps li.is-done {
  border-style: solid;
  border-color: rgba(84, 214, 200, 0.5);
  background: rgba(84, 214, 200, 0.12);
  color: var(--teal);
}
.stamps li.is-active {
  border-style: solid;
  border-color: rgba(47, 125, 246, 0.65);
  background: rgba(47, 125, 246, 0.16);
  color: #bcd8ff;
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.12);
}
.stamps li svg {
  width: 13px;
  height: 13px;
}

.meter {
  display: grid;
  gap: 0.4rem;
}
.meter__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--tx-on-dark-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.meter__bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 1.1s var(--ease);
}

.bubble {
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  font-size: 0.845rem;
  line-height: 1.5;
  border: 1px solid var(--line-dark-2);
}
.bubble--learner {
  background: rgba(255, 255, 255, 0.055);
  color: var(--tx-on-dark);
  border-top-right-radius: 4px;
  margin-left: 15%;
}
.bubble--ai {
  background: linear-gradient(
    150deg,
    rgba(47, 125, 246, 0.15),
    rgba(84, 214, 200, 0.07)
  );
  border-color: rgba(47, 125, 246, 0.25);
  border-top-left-radius: 4px;
  margin-right: 8%;
  color: var(--tx-on-dark);
}
.bubble__src {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--teal);
  background: rgba(84, 214, 200, 0.1);
  border: 1px solid rgba(84, 214, 200, 0.25);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.5rem;
}
.bubble__src svg {
  width: 11px;
  height: 11px;
}
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 12px;
}
.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
  animation: typing 1.2s infinite var(--ease);
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.quiz {
  border: 1px solid var(--line-dark-2);
  border-radius: 14px;
  padding: 0.8rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}
.quiz__q {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.quiz__opts {
  display: grid;
  gap: 0.35rem;
}
.quiz__opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.79rem;
  padding: 0.45rem 0.6rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--tx-on-dark-muted);
  transition: all 0.3s var(--ease);
}
.quiz__opt b {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  width: 16px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.quiz__opt.is-picked {
  border-color: rgba(84, 214, 200, 0.55);
  background: rgba(84, 214, 200, 0.13);
  color: #d3fbf5;
}
.quiz__opt.is-picked b {
  color: var(--teal);
}
.insight {
  display: grid;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.insight.is-visible {
  opacity: 1;
  transform: none;
}
.insight__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--tx-on-dark-muted);
}
.insight__row svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.insight__row strong {
  color: var(--white);
  font-weight: 700;
}
.ico-up {
  color: var(--teal);
}
.ico-open {
  color: #ffc46b;
}
.app__note {
  font-size: 0.68rem;
  color: rgba(163, 186, 210, 0.75);
  text-align: center;
  margin-top: 0.9rem;
}

/* ---------- Problem ---------- */
.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.problem-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line-light);
}
.problem-list .idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue-strong);
  padding-top: 0.28rem;
  letter-spacing: 0.06em;
  flex: none;
}
.problem-list .t {
  font-weight: 700;
  color: var(--tx-dark);
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.problem-list .d {
  font-size: 0.925rem;
  color: var(--tx-muted);
  margin-top: 0.2rem;
}
@media (max-width: 880px) {
  .problem__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ablauf (Stepper) ---------- */
.stepper {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
.stepper__tabs {
  display: grid;
  gap: 0.4rem;
  position: relative;
}
.step-tab {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--tx-on-dark-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.step-tab:hover {
  background: rgba(255, 255, 255, 0.04);
}
.step-tab__num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tx-on-dark-muted);
  transition: all 0.25s var(--ease);
}
.step-tab__label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.018em;
  color: rgba(234, 242, 251, 0.78);
}
.step-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line-dark);
}
.step-tab[aria-selected="true"] .step-tab__num {
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-glow);
}
.step-tab[aria-selected="true"] .step-tab__label {
  color: var(--white);
}
.step-tab__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 2px;
}
.step-tab[aria-selected="true"] .step-tab__progress.is-running {
  animation: stepfill 7s linear forwards;
}
@keyframes stepfill {
  to {
    width: 100%;
  }
}
.step-panel {
  display: none;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-dark);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  padding: clamp(1.5rem, 3vw, 2.25rem);
  min-height: 320px;
}
.step-panel.is-active {
  display: block;
  animation: fadeUp 0.45s var(--ease) both;
}
.step-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.step-panel p {
  max-width: 48ch;
}
.step-visual {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-dark-2);
  padding-top: 1.35rem;
  display: grid;
  gap: 0.6rem;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  color: var(--tx-on-dark);
  font-weight: 600;
}
.chip svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}
.chip--file {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--tx-on-dark-muted);
}
.mini-rows {
  display: grid;
  gap: 0.4rem;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark-2);
  font-size: 0.83rem;
  color: var(--tx-on-dark-muted);
}
.mini-row__k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  flex: none;
  width: 88px;
}
.mini-row__bar {
  margin-left: auto;
  width: 84px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  flex: none;
}
.mini-row__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
@media (max-width: 880px) {
  .stepper {
    grid-template-columns: 1fr;
  }
  .step-panel {
    min-height: 0;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Bento / Masonry (CSS columns - echtes Mauerwerk) ---------- */
.bento {
   column-count: 3;
   column-gap: clamp(0.85rem, 1.4vw, 1.15rem);
}
.bento .tile {
   break-inside: avoid;
   margin-bottom: clamp(0.85rem, 1.4vw, 1.15rem);
}
.tile {
  position: relative;
  grid-column: span 2;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line-light);
  padding: clamp(1.3rem, 2vw, 1.7rem);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.tile {
   position: relative;
   grid-column: span 2;
   border-radius: var(--r-lg);
   background: var(--white);
   border: 1px solid var(--line-light);
   padding: clamp(1.3rem, 2vw, 1.7rem);
   box-shadow: var(--sh-sm);
   display: flex;
   flex-direction: column;
   gap: 0.65rem;
   transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
     border-color 0.25s var(--ease);
 }

 /* tile--wide: nichts mehr (Mauerwerk) */
 .tile--feature {
   background: linear-gradient(155deg, var(--ink-800), var(--ink-900) 70%);
   border-color: rgba(255, 255, 255, 0.1);
   color: var(--tx-on-dark);
 }

 /* tile--video: Hintergrundvideo als full-width Overlay */
 .tile--video {
   overflow: hidden;
   position: relative;
   background-blend-mode: multiply;
 }
 .tile--video::before {
   content: "";
   position: absolute;
   inset: 0;
   background-image: url('assets/img/backgrounds/I06_learner_dialog.jpeg');
   background-size: cover;
   background-position: center;
   opacity: 0.1;
   z-index: 0;
 }
 .tile--video video {
   position: relative;
   z-index: 1;
   width: 100%;
   height: auto;
   border-radius: var(--r-lg);
 }
 .tile--video > * {
   position: relative;
   z-index: 2;
 }

 /* tile--feature .h-card, etc. (bleibt unverndert) */

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: #d3e0ee;
}
.tile--wide,
.tile--feature {
   /* column-width handled by CSS columns, span rules removed */
}
.tile--feature {
  grid-column: span 3;
  background: linear-gradient(155deg, var(--ink-800), var(--ink-900) 70%);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--tx-on-dark);
}
.tile--feature .h-card,
.tile--feature .tile__title {
  color: var(--white);
}
.tile--feature p {
  color: var(--tx-on-dark-muted);
}
.tile__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-strong);
  border: 1px solid #d6e5ff;
  flex: none;
}
.tile--feature .tile__icon {
  background: rgba(84, 214, 200, 0.12);
  border-color: rgba(84, 214, 200, 0.3);
  color: var(--teal);
}
.tile__icon svg {
  width: 19px;
  height: 19px;
}
.tile p {
  font-size: 0.93rem;
  color: var(--tx-muted);
  margin: 0;
}
.tile__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: space-between;
}
.status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.status--poc {
  color: var(--teal-deep);
  background: var(--teal-soft);
  border: 1px solid #b9ece5;
}
.status--roadmap {
  color: #6a5a20;
  background: #fdf6e3;
  border: 1px solid #f0e2b8;
}
.tile--feature .status--poc {
  color: var(--teal);
  background: rgba(84, 214, 200, 0.12);
  border-color: rgba(84, 214, 200, 0.32);
}
.tile--feature .status--roadmap {
  color: #ffd484;
  background: rgba(255, 196, 107, 0.1);
  border-color: rgba(255, 196, 107, 0.28);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--tx-muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.tile__visual {
  margin-top: auto;
  padding-top: 1rem;
}
@media (max-width: 980px) {
   .bento {
     column-count: 2;
   }
}
@media (max-width: 640px) {
   .bento {
     column-count: 1;
   }
}

/* ---------- Vergleich ---------- */
.versus {
  border-radius: var(--r-xl);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}
.versus__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-dark);
}
.versus__head > div {
  padding: 1.05rem 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1rem;
  color: var(--tx-on-dark-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.versus__head > div + div {
  border-left: 1px solid var(--line-dark);
  color: var(--white);
  background: linear-gradient(
    120deg,
    rgba(47, 125, 246, 0.16),
    rgba(84, 214, 200, 0.08)
  );
}
.versus__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-dark-2);
}
.versus__row:last-child {
  border-bottom: 0;
}
.versus__cell {
  padding: 1rem 1.4rem;
  font-size: 0.94rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--tx-on-dark-muted);
}
.versus__cell + .versus__cell {
  border-left: 1px solid var(--line-dark-2);
  color: var(--tx-on-dark);
  background: rgba(47, 125, 246, 0.045);
}
.versus__cell svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 4px;
  color: rgba(163, 186, 210, 0.6);
}
.versus__cell + .versus__cell svg {
  color: var(--teal);
}
.versus__label {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(163, 186, 210, 0.75);
  margin-bottom: 0.3rem;
}
@media (max-width: 760px) {
  .versus__head {
    display: none;
  }
  .versus__row {
    grid-template-columns: 1fr;
    padding: 0.5rem 0;
  }
  .versus__cell {
    border-left: 0 !important;
    background: transparent !important;
    flex-direction: column;
    gap: 0.15rem;
    padding-block: 0.7rem;
  }
  .versus__cell + .versus__cell {
    border-top: 1px dashed var(--line-dark-2);
  }
  .versus__label {
    display: block;
  }
  .versus__cell svg {
    display: none;
  }
}

/* ---------- Rollenverteilung ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
}
.duo__card {
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line-light);
  background: var(--white);
  box-shadow: var(--sh-sm);
}
.duo__card--ai {
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border-color: transparent;
  color: var(--tx-on-dark);
}
.duo__card--ai h3 {
  color: var(--white);
}
.duo__card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.duo__card h3 svg {
  width: 20px;
  height: 20px;
  color: var(--blue-strong);
}
.duo__card--ai h3 svg {
  color: var(--teal);
}
.duo__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--tx-muted);
}
.duo__card--ai .duo__list li {
  color: var(--tx-on-dark-muted);
}
.duo__list svg {
  width: 15px;
  height: 15px;
  margin-top: 5px;
  flex: none;
  color: var(--blue);
}
.duo__link {
  display: grid;
  place-items: center;
  color: var(--tx-muted);
}
.duo__link span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px dashed var(--line-light);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--tx-muted);
}
@media (max-width: 880px) {
  .duo {
    grid-template-columns: 1fr;
  }
  .duo__link span {
    transform: rotate(90deg);
  }
}

/* ---------- Einsatzfelder ---------- */
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}
.field-card {
  position: relative;
  padding: clamp(1.4rem, 2.2vw, 1.85rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-dark);
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.015)
  );
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.field-card:hover {
  transform: translateY(-3px);
  border-color: rgba(84, 214, 200, 0.4);
}
.field-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.field-card__no {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  display: block;
}
.field-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(84, 214, 200, 0.28);
  background: linear-gradient(
    150deg,
    rgba(84, 214, 200, 0.16),
    rgba(47, 125, 246, 0.1)
  );
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.field-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}
.field-card:hover .field-card__icon {
  transform: translateY(-1px);
  border-color: rgba(84, 214, 200, 0.55);
}
.field-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}
.field-card p {
  font-size: 0.92rem;
}

/* ---------- Pilotprogramm ---------- */
.pilot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.flow {
  counter-reset: flow;
  position: relative;
}
.flow li {
  position: relative;
  counter-increment: flow;
  padding: 0 0 1.35rem 3.1rem;
}
.flow li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--blue-strong);
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: var(--sh-sm);
}
.flow li::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--line-light),
    rgba(227, 233, 240, 0)
  );
}
.flow li:last-child {
  padding-bottom: 0;
}
.flow li:last-child::after {
  display: none;
}
.flow strong {
  display: block;
  color: var(--tx-dark);
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.flow span {
  font-size: 0.92rem;
  color: var(--tx-muted);
}
.benefits {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-light);
  background: var(--white);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--sh-md);
}
.benefits h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.benefits li {
  display: flex;
  gap: 0.65rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--tx-muted);
  border-bottom: 1px solid var(--line-light-2);
}
.benefits li:last-of-type {
  border-bottom: 0;
}
.benefits svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: none;
  color: var(--teal-deep);
}
.benefits .note {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-light);
  font-size: 0.85rem;
  color: var(--tx-muted);
}
@media (max-width: 900px) {
  .pilot__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Vertrauen ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.trust-item {
  background: var(--white);
  padding: 1.4rem 1.5rem;
}
.trust-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.trust-item h3 svg {
  width: 17px;
  height: 17px;
  color: var(--blue-strong);
  flex: none;
}
.trust-item p {
  font-size: 0.9rem;
  color: var(--tx-muted);
}
.callout {
  margin-top: 1.6rem;
  border-radius: var(--r-lg);
  border: 1px solid #f0e2b8;
  background: linear-gradient(120deg, #fdf9ef, #fdf6e3);
  padding: clamp(1.3rem, 2.2vw, 1.75rem);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.callout svg {
  width: 22px;
  height: 22px;
  color: #a9822a;
  flex: none;
  margin-top: 2px;
}
.callout h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.callout p {
  font-size: 0.94rem;
  color: #6a5a34;
  max-width: 74ch;
}

/* ---------- Formular ---------- */
.form-section {
  position: relative;
  background: var(--ink-900);
  color: var(--tx-on-dark);
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--section-y);
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.form-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-lg);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label,
.fieldset__legend {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--tx-on-dark);
  letter-spacing: -0.005em;
}
.field .opt {
  font-weight: 500;
  color: var(--tx-on-dark-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: var(--r-sm);
  background: rgba(7, 24, 39, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
  appearance: none;
}
.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.55;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3bad2' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 17px;
  padding-right: 2.5rem;
}
.field select option {
  background: var(--ink-800);
  color: var(--white);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(163, 186, 210, 0.55);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(7, 24, 39, 0.8);
  box-shadow: 0 0 0 3px rgba(84, 214, 200, 0.18);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #ff8f8f;
  box-shadow: 0 0 0 3px rgba(255, 143, 143, 0.16);
}
.field .err {
  font-size: 0.8rem;
  color: #ffb3b3;
  min-height: 0;
  display: none;
}
.field .err.is-shown {
  display: block;
}
.fieldset {
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem 1.1rem;
  margin: 0;
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.02);
}
.fieldset__legend {
  padding: 0 0.4rem;
  margin-left: -0.4rem;
}
.radio-row {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(7, 24, 39, 0.45);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--tx-on-dark-muted);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.radio:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
.radio input,
.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  flex: none;
  margin-top: 2px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.check input {
  border-radius: 5px;
}
.radio input:checked,
.check input:checked {
  border-color: var(--teal);
  background: var(--teal)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071827' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.radio:has(input:checked) {
  border-color: rgba(84, 214, 200, 0.55);
  background: rgba(84, 214, 200, 0.08);
  color: var(--white);
}
.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--tx-on-dark-muted);
  cursor: pointer;
  line-height: 1.5;
}
.check a {
  color: var(--teal);
}
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.9rem;
  margin-top: 0.35rem;
}
.form-status {
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  display: none;
  border: 1px solid transparent;
}
.form-status.is-error {
  display: block;
  background: rgba(255, 120, 120, 0.1);
  border-color: rgba(255, 143, 143, 0.4);
  color: #ffc9c9;
}
.form-status.is-success {
  display: block;
  background: rgba(84, 214, 200, 0.1);
  border-color: rgba(84, 214, 200, 0.4);
  color: #cdfaf3;
}
.form-hint {
  font-size: 0.8rem;
  color: rgba(163, 186, 210, 0.8);
}
.form-aside li {
  display: flex;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-dark-2);
  font-size: 0.95rem;
  color: var(--tx-on-dark-muted);
}
.form-aside li:last-child {
  border-bottom: 0;
}
.form-aside svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: none;
  color: var(--teal);
}
.contact-direct {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark-2);
  font-size: 0.92rem;
  color: var(--tx-on-dark-muted);
}
.contact-direct a {
  color: var(--teal);
  font-weight: 600;
}
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: none;
}
.is-busy .spinner {
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 56rem;
}
.faq__item {
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq__item[open] {
  border-color: #cfe0f5;
  box-shadow: var(--sh-sm);
}
.faq__q {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--tx-dark);
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  list-style: none;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q::after {
  content: "";
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5fd0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq__item[open] .faq__q::after {
  transform: rotate(45deg);
}
.faq__a {
  padding: 0 1.3rem 1.3rem;
  font-size: 0.96rem;
  color: var(--tx-muted);
  max-width: 68ch;
}
.faq__item[open] .faq__a {
  animation: fadeUp 0.3s var(--ease) both;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--tx-on-dark-muted);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
  border-top: 1px solid var(--line-dark-2);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark-2);
}
.footer__brand p {
  font-size: 0.93rem;
  max-width: 34ch;
  margin-top: 1rem;
}
.footer h2 {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(163, 186, 210, 0.8);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer__links li {
  padding: 0.3rem 0;
}
.footer__links a {
  color: var(--tx-on-dark-muted);
  text-decoration: none;
  font-size: 0.93rem;
}
.footer__links a:hover {
  color: var(--white);
}
.footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer__bottom p {
  color: rgba(163, 186, 210, 0.8);
}
@media (max-width: 780px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Sticky CTA (mobil) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(7, 24, 39, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-dark);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
  display: none;
}
.sticky-cta.is-visible {
  transform: none;
}
.sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sticky-cta__text {
  font-size: 0.82rem;
  color: var(--tx-on-dark-muted);
  line-height: 1.35;
}
.sticky-cta .btn {
  margin-left: auto;
}
@media (max-width: 760px) {
  .sticky-cta {
    display: block;
  }
}

/* ---------- Consent-Banner ---------- */
.consent {
  position: fixed;
  z-index: 120;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  max-width: 460px;
  background: rgba(9, 30, 51, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--sh-lg);
  color: var(--tx-on-dark-muted);
  display: none;
}
.consent.is-visible {
  display: block;
  animation: fadeUp 0.35s var(--ease) both;
}
.consent h2 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}
.consent p {
  font-size: 0.86rem;
  line-height: 1.55;
}
.consent a {
  color: var(--teal);
}
.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.consent__actions .btn {
  flex: 1 1 auto;
}
@media (max-width: 760px) {
  .consent {
    bottom: calc(var(--gutter) + 68px);
  }
}

/* ---------- Kampagnenseite ---------- */
.usp-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.usp {
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}
.usp h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.usp h3 svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}
.usp p {
  font-size: 0.92rem;
}
.steps-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.steps-inline > li {
  background: var(--white);
  padding: 1.25rem 1.35rem;
}
.steps-inline .n {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--blue-strong);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.6rem;
}
.steps-inline strong {
  display: block;
  color: var(--tx-dark);
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
}
.steps-inline span.d {
  font-size: 0.88rem;
  color: var(--tx-muted);
}

/* ---------- Rechtstexte / Content-Seiten ---------- */
.page-head {
  background: var(--ink-900);
  color: var(--tx-on-dark);
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.prose {
  max-width: 76ch;
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
}
.prose h3 {
  font-size: 1.08rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin-bottom: 1rem;
  font-size: 0.985rem;
  line-height: 1.72;
}
.prose ul {
  list-style: disc;
  padding-left: 1.3rem;
}
.prose ul li,
.prose ol li {
  margin-bottom: 0.4rem;
}
.prose ol {
  list-style: decimal;
  padding-left: 1.3rem;
}
.prose strong {
  color: var(--tx-dark);
}
.prose address {
  font-style: normal;
  line-height: 1.75;
}
.todo {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: #fdf6e3;
  border: 1px dashed #d6b45c;
  color: #7a5c14;
  border-radius: 6px;
  padding: 0.12rem 0.5rem;
}
.notice {
  border-radius: var(--r-md);
  border: 1px solid #f0e2b8;
  background: #fdf9ef;
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  color: #6a5a34;
  margin-bottom: 2rem;
}
.notice strong {
  color: #5a4a24;
}

/* ---------- Danke ---------- */
.thanks {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  background: var(--ink-900);
  color: var(--tx-on-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.thanks__mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.75rem;
  background: rgba(84, 214, 200, 0.12);
  border: 1px solid rgba(84, 214, 200, 0.35);
  color: var(--teal);
  animation: pop 0.6s var(--ease) both;
}
.thanks__mark svg {
  width: 34px;
  height: 34px;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.thanks .next-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2.75rem;
  text-align: left;
}
.thanks .next-steps li {
  padding: 1.15rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}
.thanks .next-steps b {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.thanks .next-steps span {
  font-size: 0.88rem;
  color: var(--tx-on-dark-muted);
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.07s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.14s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.21s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.28s;
}
.reveal[data-delay="5"] {
  transition-delay: 0.35s;
}

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

/* ---------- Wasserzeichen: KI-generierte Bilder und Videos (rechts-oben, fixe Position, diagonal) ---------- */
.ki-watermark {
  position: fixed;
  bottom: 110px;
  right: -70px;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(94, 94, 94, 0.6);
  transform: rotate(90deg);
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .sticky-cta,
  .consent,
  .hero__actions,
  .form-section {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}

/* ---------- Produktoberfläche: Zustände der Animation ---------- */
/* Ohne JavaScript bleibt die Ansicht vollständig sichtbar (Endzustand). */
.bubble--ai {
  position: relative;
}
.bubble__text {
  display: block;
  opacity: 1;
  transition: opacity 0.45s var(--ease);
}
.typing {
  display: none;
  position: absolute;
  top: 0.95rem;
  left: 0.9rem;
  transition: opacity 0.25s var(--ease);
}
.quiz__fb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--teal);
  opacity: 1;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.quiz__fb svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.quiz__opt[data-correct] {
  border-color: rgba(84, 214, 200, 0.55);
  background: rgba(84, 214, 200, 0.13);
  color: #d3fbf5;
}
.quiz__opt[data-correct] b {
  color: var(--teal);
}
.insight {
  opacity: 1;
  transform: none;
}

[data-demo].is-js .typing {
  display: inline-flex;
}
[data-demo].is-js .bubble__text {
  opacity: 0;
}
[data-demo].is-js .bubble--ai.is-answered .bubble__text {
  opacity: 1;
}
[data-demo].is-js .bubble--ai.is-answered .typing {
  opacity: 0;
  visibility: hidden;
}
[data-demo].is-js .quiz__opt[data-correct]:not(.is-picked) {
  border-color: rgba(255, 255, 255, 0.09);
  background: transparent;
  color: var(--tx-on-dark-muted);
}
[data-demo].is-js .quiz__opt[data-correct]:not(.is-picked) b {
  color: rgba(255, 255, 255, 0.45);
}
[data-demo].is-js .quiz__fb {
  opacity: 0;
  transform: translateY(-3px);
}
[data-demo].is-js .quiz__fb.is-visible {
  opacity: 1;
  transform: none;
}
[data-demo].is-js .insight {
  opacity: 0;
  transform: translateY(6px);
}
[data-demo].is-js .insight.is-visible {
  opacity: 1;
  transform: none;
}
