/* ==========================================================================
   Obesser – IT  ·  Design System & Animationen
   Apple-inspiriertes, dunkles Design mit Scroll-Choreografie.
   Keine externen Abhängigkeiten.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #050507;
  --bg-elevated: #0c0c10;
  --bg-card: #101016;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f5f5f7;
  --text-dim: #a1a1aa;
  --text-faint: #8a8a94;

  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-text: linear-gradient(110deg, #60a5fa, #a78bfa 45%, #22d3ee);

  --radius: 20px;
  --radius-lg: 28px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Native Bedienelemente (Checkboxen, Dropdowns) dunkel rendern */
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

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

/* ---------- Scroll-Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--gradient);
  z-index: 1001;
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: transform 0.45s var(--ease-out), background 0.35s ease,
    border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 7, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-logo svg {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.nav-cta {
  color: #fff;
  background: var(--gradient);
  background-size: 160% 160%;
  font-weight: 600;
  transition: background-position 0.4s ease, transform 0.3s var(--ease-spring),
    box-shadow 0.3s ease;
}

.nav-links a.nav-cta:hover {
  background-position: 100% 50%;
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

/* Sprachumschalter (DE/EN) */
.nav-links a.lang-switch {
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* Mobile Menu Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background: rgba(5, 5, 7, 0.92);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 6% 80px;
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.55), transparent 70%);
  top: 18%;
  left: 12%;
}

.orb-2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 70%);
  top: 30%;
  right: 8%;
}

.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
  bottom: 8%;
  left: 38%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%);
}

.hero-content {
  max-width: 980px;
  will-change: transform, opacity;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 26px;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s var(--ease-out) forwards;
}

.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.12s;
}

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

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

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.35s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease,
    background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.btn-primary {
  background: var(--gradient);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 44px rgba(99, 102, 241, 0.45);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.04);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out);
}

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

/* Scroll-Hinweis */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

.scroll-hint .mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--text-faint);
  border-radius: 14px;
  position: relative;
}

.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--text-dim);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 0;
  }
}

/* ---------- Sektionen / Layout ---------- */
.section {
  position: relative;
  padding: 120px 6%;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 72px;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.section-head p {
  font-size: 1.12rem;
  color: var(--text-dim);
}

/* ---------- Reveal-Animationen (per JS gesteuert) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ---------- Service-Karten ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  padding: 40px 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease;
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(99, 102, 241, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 26px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: #818cf8;
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #818cf8;
}

.card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* Button unter der Karten-Übersicht */
.cards-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Zahlen / Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 44px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.stat-value {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Tech-Marquee ---------- */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  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;
  gap: 60px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.marquee-track span:hover {
  color: var(--text);
}

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

/* ---------- Sticky Story (Apple-Style Feature-Sektion) ---------- */
.sticky-story {
  position: relative;
}

/* Timeline: Leiste links, die beim Scrollen mitwandert */
.story-track {
  position: relative;
  padding-left: 56px;
}

.story-rail {
  position: absolute;
  left: 11px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.story-rail-fill {
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.7);
  will-change: height;
}

.story-step {
  position: relative;
  display: flex;
  align-items: center;
  padding: 44px 0;
}

/* Punkt auf der Leiste pro Schritt */
.story-step::before {
  content: "";
  position: absolute;
  left: -51px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: var(--bg);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease,
    transform 0.4s var(--ease-spring);
  z-index: 1;
}

.story-step.step-active::before {
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.85);
  transform: scale(1.25);
}

.story-step.step-active .num {
  color: #a5b4fc;
}

.story-step-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.story-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.story-visual .glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  background: var(--gradient);
}

.story-visual svg {
  position: relative;
  width: 26%;
  height: auto;
  stroke: #c7d2fe;
}

.story-text .num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: block;
}

.story-text h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.story-text p {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 480px;
}

@media (max-width: 860px) {
  .story-step-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .story-step {
    padding: 36px 0;
  }
  .story-track {
    padding-left: 36px;
  }
  .story-rail {
    left: 5px;
  }
  .story-step::before {
    left: -37px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
  }
}

/* ---------- Projekt-Stack (gestapelte Karten beim Scrollen) ---------- */
.stack-wrap {
  display: grid;
  gap: 32px;
}

.stack-card {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  padding: 44px 42px;
  background: linear-gradient(180deg, #14141c, #0e0e14);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  will-change: transform;
  transform-origin: center top;
}

.stack-card .idx {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  min-width: 74px;
}

.stack-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.stack-card p {
  color: var(--text-dim);
  max-width: 640px;
}

.stack-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 700px) {
  .stack-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 30px 24px;
  }
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.about-grid p {
  color: var(--text-dim);
  font-size: 1.08rem;
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 18px;
  position: relative;
}

.about-grid .check-list {
  margin-top: 34px;
}

/* Porträt-Foto in der Über-uns-Sektion */
.about-photo {
  position: relative;
  max-width: 420px;
  width: 100%;
  justify-self: center;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.about-photo img {
  width: 100%;
  height: auto;
}

.about-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 26px 22px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 7, 0.85));
  display: grid;
  gap: 2px;
}

.about-photo figcaption strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-photo figcaption span {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1.02rem;
}

.check-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: #34d399;
  margin-top: 3px;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  text-align: center;
  padding: 140px 6%;
  overflow: clip;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(99, 102, 241, 0.18), transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta p {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 6% 40px;
  background: var(--bg-elevated);
}

.footer-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 320px;
  margin-top: 16px;
}

.footer h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer ul a {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  width: min(1200px, 100%);
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Unterseiten-Hero ---------- */
.page-hero {
  padding: calc(var(--nav-height) + 110px) 6% 70px;
  text-align: center;
  position: relative;
  overflow: clip;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(99, 102, 241, 0.16), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.page-hero p {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.contact-card .card-icon {
  margin-bottom: 0;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-card a,
.contact-card span.value {
  color: var(--text-dim);
  font-size: 0.98rem;
  transition: color 0.25s ease;
}

.contact-card a:hover {
  color: #818cf8;
}

.form-card {
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

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

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d6d6de;
}

.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

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

/* Themenauswahl als Chips (Radio-Gruppe) */
.topic-group {
  display: block;
  border: none;
  padding: 0;
  margin: 0;
}

.topic-group legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d6d6de;
  padding: 0;
  margin-bottom: 10px;
}

.topic-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-chip {
  position: relative;
  cursor: pointer;
}

.topic-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic-chip span {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #c9c9d1;
  font-size: 0.92rem;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease,
    transform 0.25s var(--ease-spring);
}

.topic-chip:hover span {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

.topic-chip input:checked + span {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.topic-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 14px;
}

/* DSGVO-Einwilligung */
.form-consent .consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.86rem;
  font-weight: 400;
  color: #c9c9d1;
  line-height: 1.55;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status.ok {
  color: #34d399;
}

.form-status.error {
  color: #f87171;
}

/* Honeypot – für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 30px 22px;
  }
}

/* ---------- Rechtstexte ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
}

.legal h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 30px 0 10px;
}

.legal p,
.legal li {
  color: var(--text-dim);
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 22px;
}

.legal a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

  .reveal,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .hero h1 .line > span {
    transform: none;
  }

  .hero-sub,
  .hero-actions,
  .scroll-hint {
    opacity: 1;
  }
}
