/* ==========================================================================
   Leon Werner – KI-Dienstleister & Webentwicklung
   Design-System: dunkles Premium-Theme, Violett→Cyan-Akzent, System-Fonts
   (bewusst ohne externe Fonts/CDNs – DSGVO-freundlich & maximal schnell)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #05060b;
  --bg-2: #0a0c14;
  --bg-3: #0b0e18;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f7;
  --text-muted: #a3adc2;
  --text-faint: #6b7488;
  --accent-1: #7c5cff;
  --accent-2: #2dd4ff;
  --green: #34e39b;
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 26px;
  --container: 1160px;
  --header-h: 76px;
  --font: "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 8px 40px rgba(124, 92, 255, 0.35);
}

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 500px at 85% -5%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 15%, rgba(45, 212, 255, 0.08), transparent 55%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

::selection {
  background: rgba(124, 92, 255, 0.45);
  color: #fff;
}

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

/* Dezente, dunkle Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #232838;
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #2f3650;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--accent-1);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius-s) 0;
}

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

/* ---------- Typografie ---------- */
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  letter-spacing: -0.03em;
}

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

h3 {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

p {
  max-width: 65ch;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.9rem;
}

/* ---------- Layout-Utilities ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-alt {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(124, 92, 255, 0.07), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.06rem;
}

.grid {
  display: grid;
  gap: 1.4rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

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

.btn-primary {
  background: #fff;
  color: #0a0c16;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  background: rgba(45, 212, 255, 0.07);
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.06rem;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 6, 11, 0.66);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 6, 11, 0.85);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.01em;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient);
  color: #0a0c16;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-text {
  font-size: 1.06rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 550;
  transition: color 0.2s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, top 0.3s ease;
}

.nav-toggle span:nth-child(1) {
  top: 17px;
}

.nav-toggle span:nth-child(2) {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 227, 155, 0.6);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 227, 155, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(52, 227, 155, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 227, 155, 0);
  }
}

.hero-highlight {
  margin-top: 1rem;
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  font-weight: 700;
}

.hero .lead {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-check {
  width: 17px;
  height: 17px;
  fill: var(--green);
  flex-shrink: 0;
}

/* Hero-Visual: Agent-Konsole */
.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 500px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.24), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

.console {
  background: linear-gradient(180deg, #0d1020, var(--bg-3));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.console-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-r {
  background: #ff5f57;
}
.dot-y {
  background: #febc2e;
}
.dot-g {
  background: #28c840;
}

.console-title {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

.console-body {
  padding: 1.3rem 1.4rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 2.1;
}

.console-body .line {
  max-width: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  animation: lineIn 0.5s ease forwards;
}

.console-body .line:nth-child(1) { animation-delay: 0.3s; }
.console-body .line:nth-child(2) { animation-delay: 0.9s; }
.console-body .line:nth-child(3) { animation-delay: 1.5s; }
.console-body .line:nth-child(4) { animation-delay: 2.1s; }
.console-body .line:nth-child(5) { animation-delay: 2.7s; }
.console-body .line:nth-child(6) { animation-delay: 3.3s; }

@keyframes lineIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.console-body .prompt {
  color: var(--accent-2);
}

.console-body .ok {
  color: var(--green);
}

.console-body .plan {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}

.hero-visual-badge {
  position: absolute;
  right: -14px;
  bottom: -18px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text);
  background: rgba(13, 16, 32, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  box-shadow: var(--shadow-card);
}

/* ---------- Marquee ---------- */
.marquee-section {
  padding: 1.5rem 0 0.5rem;
}

.marquee-label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 auto 1.1rem;
  padding-inline: 1.25rem;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  padding-block: 0.6rem;
  animation: marquee 36s linear infinite;
  color: var(--text-faint);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Cards (allgemein) ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
}

.card h3 {
  margin-bottom: 0.6rem;
}

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

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.35);
  margin-bottom: 1.15rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-2);
}

/* ---------- KI-Agenten-Sektion ---------- */
.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.agents-copy p {
  color: var(--text-muted);
  margin-top: 1.1rem;
}

.agents-copy h2 {
  max-width: 520px;
}

.agent-facts {
  display: flex;
  gap: 2.4rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.agent-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.agent-facts strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agent-facts span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.agents-cards {
  display: grid;
  gap: 1.4rem;
}

.agent-card {
  padding: 1.9rem 1.8rem;
}

.agent-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.badge {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(45, 212, 255, 0.1);
  border: 1px solid rgba(45, 212, 255, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

/* ---------- Vorgehen ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 1.6rem 1.5rem 0;
  border-top: 1px solid var(--border);
}

.process-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--gradient);
}

.process-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Pakete ---------- */
.pricing-grid {
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
}

.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #0a0c16;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan--featured {
  background:
    linear-gradient(180deg, rgba(20, 22, 40, 0.96), rgba(11, 14, 24, 0.96)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 60px rgba(124, 92, 255, 0.22);
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0.4rem 0 0.3rem;
}

.plan-desc {
  font-size: 0.93rem;
  min-height: 3.2em;
}

.plan-list {
  margin: 1.3rem 0 1.8rem;
  display: grid;
  gap: 0.65rem;
  flex-grow: 1;
}

.plan-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.pricing-note {
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-list details + details {
  border-top: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 650;
  font-size: 1.02rem;
  transition: background 0.2s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent-2);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-list details[open] .faq-icon::after {
  transform: rotate(90deg);
}

.faq-list details p {
  padding: 0 3.4rem 1.4rem 1.5rem;
  color: var(--text-muted);
  max-width: none;
}

/* ---------- CTA-Band ---------- */
.cta-section {
  padding-top: 1rem;
}

.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-l);
  border: 1px solid rgba(124, 92, 255, 0.35);
  background:
    radial-gradient(600px 260px at 50% -30%, rgba(124, 92, 255, 0.3), transparent 70%),
    radial-gradient(500px 240px at 85% 110%, rgba(45, 212, 255, 0.16), transparent 70%),
    var(--bg-3);
  overflow: hidden;
}

.cta-band h2 {
  margin-inline: auto;
  max-width: 620px;
}

.cta-band p {
  margin: 1.1rem auto 2rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-info > p {
  color: var(--text-muted);
  margin-top: 1rem;
}

.contact-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.2rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-list a {
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}

.contact-list a:hover {
  color: var(--accent-2);
}

.contact-form {
  padding: 2rem 1.9rem;
}

.contact-form:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}

.form-field .optional {
  color: var(--text-faint);
  font-weight: 500;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a3adc2'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 18px;
}

.form-field select option {
  background: var(--bg-3);
  color: var(--text);
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
}

.form-field ::placeholder {
  color: var(--text-faint);
}

.form-consent label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-consent input {
  margin-top: 0.25rem;
  width: 17px;
  height: 17px;
  accent-color: var(--accent-1);
  flex-shrink: 0;
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--green);
  text-align: center;
  min-height: 1.4em;
}

.form-note.error {
  color: #ff7b72;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 34ch;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.footer-grid ul {
  display: grid;
  gap: 0.55rem;
}

.footer-grid ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-grid ul a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Scroll-Reveal (nur mit JS aktiv) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.js .grid .reveal:nth-child(2),
.js .process-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.js .grid .reveal:nth-child(3),
.js .process-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.js .grid .reveal:nth-child(4),
.js .process-grid .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.js .grid .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.js .grid .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

/* ---------- Rechtliche Seiten & 404 ---------- */
.legal-main {
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.legal-main h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
}

.legal-main h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.8rem;
}

.legal-main h3 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.5rem;
}

.legal-main p,
.legal-main li {
  color: var(--text-muted);
}

.legal-main ul {
  padding-left: 1.3rem;
  margin: 0.6rem 0;
}

.legal-main address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.8;
}

.notice {
  border: 1px solid rgba(254, 188, 46, 0.4);
  background: rgba(254, 188, 46, 0.08);
  border-radius: var(--radius-s);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0 2rem;
  color: #ffd98a;
  font-size: 0.92rem;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  margin: 1rem auto 2rem;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.2rem;
  }

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

  .hero-visual {
    justify-self: start;
    max-width: 520px;
  }

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

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    background: rgba(5, 6, 11, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .site-nav a:not(.btn) {
    font-size: 1.35rem;
    font-weight: 650;
    color: var(--text);
  }

  .nav-cta-item .btn {
    font-size: 1.05rem;
    padding: 0.9rem 1.8rem;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .hero-visual-badge {
    right: 8px;
  }

  .console-body {
    font-size: 0.78rem;
    padding: 1.1rem 1.1rem 1.3rem;
  }

  .faq-list details p {
    padding-right: 1.5rem;
  }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .console-body .line {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}
