/* ==========================================================================
   Korvia — Design System
   Modern, futuristisch, schlicht, elegant. Dark-first.
   ========================================================================== */

/* ---- Fonts (self-hosted, kein externer CDN-Call) ---------------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---- Design Tokens ---------------------------------------------------- */
:root {
  /* Farben */
  --bg: #0a0c11;
  --bg-elev: #12151e;
  --surface: #171b26;
  --surface-2: #1d2230;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f4f7;
  --text-2: #a7b0c0;
  --muted: #737d8f;
  --accent: #7c6cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 108, 255, 0.14);
  --grad: linear-gradient(120deg, #7c6cff 0%, #22d3ee 100%);
  --grad-text: linear-gradient(120deg, #a99bff 0%, #6ee7f5 100%);

  /* Typo */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 999px;

  /* Spacing scale (8pt) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;

  /* Layout */
  --maxw: 1120px;
  --nav-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px var(--border), 0 20px 60px -25px rgba(124, 108, 255, 0.5);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: rgba(124, 108, 255, 0.35); color: #fff; }

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

/* ---- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--s-6); position: relative; }
.section--tight { padding-block: var(--s-5); }

/* Bildslot pro Sektion: liegt hinter dem Inhalt, bricht nichts, falls die Datei fehlt.
   Der dunkle Verlauf sorgt dafür, dass Text immer lesbar bleibt — auch ohne Bild. */
.section-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: contrast(1.05);
}
.section-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 9, 8, 0.55) 30%, rgba(10, 9, 8, 0.55) 70%, var(--bg) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-2);
  opacity: 0.6;
}

.section-head { max-width: 620px; margin-bottom: var(--s-5); }
/* Wichtig: -image statt -background- verwenden, damit Theme-Overrides (z. B. v2.css) das
   Gradient-Bild austauschen können, ohne die background-clip-Deklaration zu resetten.
   Das Kurzform-Property "background" setzt beim Überschreiben implizit background-clip
   zurück auf border-box — das war die Ursache für den unsichtbaren weissen Balken. */
.section-head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  margin-bottom: var(--s-2);
  color: var(--text); /* Rückfall, falls background-clip: text nicht greift */
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.72) 100%);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .section-head h2 {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.section-head p { font-size: 1.075rem; }

.gradient-text {
  color: var(--text); /* Rückfall, falls background-clip: text nicht greift */
  background-image: var(--grad-text);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .gradient-text {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 24px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--grad);
  color: #080a0f;
  box-shadow: 0 12px 30px -12px rgba(124, 108, 255, 0.7);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -12px rgba(90, 200, 245, 0.6);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.btn svg { width: 18px; height: 18px; }

/* ---- Navigation ------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 12, 17, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.nav-links a:not(.btn) {
  font-size: 0.95rem;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { padding: 10px 20px; min-height: 42px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand .logo-mark { width: 30px; height: 30px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  width: 44px;
  height: 44px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--s-6));
  padding-bottom: var(--s-6);
  overflow: hidden;
}

/* Bildslot: liegt hinter Aurora + Lichtband, bricht nichts, falls die Datei fehlt */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: contrast(1.08) saturate(1.05);
  pointer-events: none;
}
.hero::after {
  /* dunkler Verlauf über dem Bild, damit Text immer lesbar bleibt */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 9, 8, 0.72) 38%, var(--bg) 100%);
  pointer-events: none;
}

/* Feines wanderndes Lichtband: schmaler, leicht gedrehter Glanzstreifen */
.lightband {
  position: absolute;
  inset: -10% -20%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.lightband::before {
  content: "";
  position: absolute;
  top: 22%;
  left: -35%;
  width: 55%;
  height: 1px;
  transform: rotate(-7deg);
  background: linear-gradient(90deg, transparent 0%, rgba(246, 227, 161, 0.55) 50%, transparent 100%);
  box-shadow: 0 0 24px 2px rgba(246, 227, 161, 0.25);
  animation: lightband-sweep 16s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes lightband-sweep {
  0%   { transform: translateX(0) rotate(-7deg); opacity: 0; }
  12%  { opacity: 0.9; }
  50%  { transform: translateX(180%) rotate(-7deg); opacity: 0.55; }
  88%  { opacity: 0.9; }
  100% { transform: translateX(260%) rotate(-7deg); opacity: 0; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}
.hero-bg::before,
.hero-bg::after {
  /* drifting aurora glow */
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  will-change: transform;
}
.hero-bg::before {
  top: -260px;
  left: 46%;
  width: 780px;
  height: 640px;
  max-width: 120vw;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 108, 255, 0.30) 0%, rgba(124, 108, 255, 0.08) 45%, transparent 72%);
  animation: aurora-a 22s var(--ease) infinite alternate;
}
.hero-bg::after {
  top: -180px;
  left: 62%;
  width: 640px;
  height: 520px;
  max-width: 110vw;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(34, 211, 238, 0.22) 0%, rgba(34, 211, 238, 0.06) 48%, transparent 74%);
  animation: aurora-b 28s var(--ease) infinite alternate;
}
@keyframes aurora-a {
  0%   { transform: translateX(-50%) translate(0, 0) scale(1); }
  100% { transform: translateX(-50%) translate(-70px, 26px) scale(1.12); }
}
@keyframes aurora-b {
  0%   { transform: translateX(-50%) translate(0, 0) scale(1); }
  100% { transform: translateX(-50%) translate(90px, 34px) scale(1.15); }
}

/* ---- Elegante schwebende Formen (Hero-Atmosphäre) --------------------- */
.shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}
.shape {
  position: absolute;
  opacity: 0;
  will-change: transform, opacity;
  animation: shape-in 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards;
}
.shape-inner {
  width: 100%;
  height: 100%;
  animation: shape-bob 12s ease-in-out infinite;
}
.shape-pill {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 999px;
  background: linear-gradient(to right, var(--sc), transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.06);
}
.shape-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14), transparent 70%);
}
@keyframes shape-in {
  0%   { opacity: 0; transform: translateY(-140px) rotate(calc(var(--r) - 15deg)); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--r)); }
}
@keyframes shape-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(16px); }
}
.shape.s1 { --r: 12deg;  --sc: rgba(124, 108, 255, 0.16); width: 600px; height: 140px; left: -6%;  top: 16%;    animation-delay: 0.3s; }
.shape.s2 { --r: -15deg; --sc: rgba(34, 211, 238, 0.14);  width: 480px; height: 120px; right: -4%; top: 68%;    left: auto; animation-delay: 0.5s; }
.shape.s3 { --r: -8deg;  --sc: rgba(139, 92, 246, 0.15);  width: 300px; height: 80px;  left: 4%;   bottom: 6%;  top: auto;  animation-delay: 0.4s; }
.shape.s4 { --r: 20deg;  --sc: rgba(99, 102, 241, 0.15);  width: 220px; height: 60px;  right: 14%; top: 10%;    left: auto; animation-delay: 0.6s; }
.shape.s5 { --r: -22deg; --sc: rgba(45, 212, 238, 0.12);  width: 160px; height: 44px;  left: 22%;  top: 6%;     animation-delay: 0.7s; }

/* ---- Seitenweite Atmosphäre (driftende Gradient-Glows, fixed) --------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.atmosphere .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.atmosphere .g1 { width: 540px; height: 440px; left: -8%;  top: 6%;    background: radial-gradient(circle, rgba(124, 108, 255, 0.16), transparent 70%); animation: drift-1 26s ease-in-out infinite alternate; }
.atmosphere .g2 { width: 500px; height: 420px; right: -6%; top: 42%;   background: radial-gradient(circle, rgba(34, 211, 238, 0.13), transparent 70%);  animation: drift-2 32s ease-in-out infinite alternate; }
.atmosphere .g3 { width: 460px; height: 400px; left: 24%;  bottom: 0%; background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);  animation: drift-3 30s ease-in-out infinite alternate; }
@keyframes drift-1 { to { transform: translate(64px, 44px) scale(1.08); } }
@keyframes drift-2 { to { transform: translate(-74px, 30px) scale(1.1); } }
@keyframes drift-3 { to { transform: translate(44px, -52px) scale(1.06); } }
.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 20%, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 20%, #000 30%, transparent 72%);
  opacity: 0.5;
}

.hero-inner { max-width: 820px; position: relative; z-index: 1; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: var(--s-3);
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34e0a1;
  box-shadow: 0 0 0 4px rgba(52, 224, 161, 0.18);
}
.hero h1 {
  font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.3rem);
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.hero .lead {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.28rem);
  max-width: 620px;
  margin-bottom: var(--s-4);
}
.hero-cta {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  margin-top: var(--s-3);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { width: 16px; height: 16px; color: var(--accent-2); }

/* ---- KPI strip (schlank statt wuchtig) --------------------------------- */
.kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: var(--s-4);
}
.kpi > div {
  background: var(--bg-elev);
  padding: 14px var(--s-2);
}
.kpi .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.7rem);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi .num small { font-size: 0.55em; color: var(--accent-2); font-weight: 600; }
.kpi .lbl { margin-top: 5px; font-size: 0.78rem; color: var(--text-2); letter-spacing: 0.01em; }

/* ---- Cards: Leistungen ------------------------------------------------ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: var(--s-2);
  color: var(--accent-2);
}
.card-ic svg { width: 20px; height: 20px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.93rem; }

/* ---- Ablauf (Steps) --------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.step .step-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #080a0f;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-2);
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; }

/* ---- Preis ------------------------------------------------------------ */
.price-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-3);
  align-items: stretch;
}
.price-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  border: 1px solid var(--border-strong);
  background: radial-gradient(120% 120% at 0% 0%, rgba(124, 108, 255, 0.14), transparent 55%),
    var(--surface);
  overflow: hidden;
}
.price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}
.price-tag { display: flex; align-items: baseline; gap: 10px; margin: var(--s-2) 0 var(--s-3); }
.price-tag .from { font-size: 0.95rem; color: var(--text-2); }
.price-tag .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.8rem + 3vw, 3.6rem);
  color: var(--text);
  letter-spacing: -0.03em;
}
.price-tag .unit { font-size: 1rem; color: var(--text-2); }
.price-list { list-style: none; padding: 0; margin: var(--s-3) 0 var(--s-4); display: grid; gap: 12px; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.price-list svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; margin-top: 2px; }
.price-side {
  border-radius: var(--r-lg);
  padding: var(--s-4);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.price-side h3 { font-size: 1.2rem; margin-bottom: 12px; }
.price-side p { font-size: 0.98rem; margin-bottom: var(--s-3); }

/* ---- Kontakt ---------------------------------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-5);
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); margin-bottom: var(--s-2); }
.contact-methods { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.contact-line { display: flex; align-items: center; gap: 14px; }
.contact-line .ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent-2);
}
.contact-line .ic svg { width: 20px; height: 20px; }
.contact-line b { color: var(--text); font-weight: 500; display: block; font-size: 1.02rem; }
.contact-line span { font-size: 0.88rem; color: var(--muted); }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
.field { margin-bottom: var(--s-3); }
.field label {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}
.field label .req { color: var(--accent-2); }
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { font-size: 0.95rem; margin-top: 14px; text-align: center; display: none; }
.form-status.ok { display: block; color: #34e0a1; }
.form-status.err { display: block; color: #ff8a8a; }

/* ---- Footer ----------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--s-5) var(--s-4);
  margin-top: var(--s-6);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer .brand { margin-bottom: 12px; }
.footer-tag { font-size: 0.95rem; max-width: 320px; color: var(--text-2); }
.footer-cols { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a { display: block; font-size: 0.95rem; color: var(--text-2); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Scroll reveal ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---- Pakete / Shop ---------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.plan.featured { border-color: transparent; }
.plan.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.plan .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #080a0f;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.plan h3 { font-size: 1.28rem; margin-bottom: 6px; }
.plan .plan-sub { font-size: 0.92rem; color: var(--text-2); margin-bottom: var(--s-3); }
.plan .plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--s-3); }
.plan .plan-price .from { font-size: 0.85rem; color: var(--text-2); }
.plan .plan-price .amt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .plan-price .cur { font-size: 1rem; color: var(--text-2); }
.plan ul { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 0.95rem; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; margin-top: 3px; }
.plan .btn { width: 100%; }

.abo {
  margin-top: var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  background: radial-gradient(120% 140% at 100% 0%, rgba(34, 211, 238, 0.08), transparent 55%), var(--bg-elev);
}
.abo .abo-txt h3 { font-size: 1.12rem; margin-bottom: 4px; }
.abo .abo-txt p { font-size: 0.92rem; color: var(--text-2); }
.abo .abo-price { display: flex; align-items: baseline; gap: 6px; }
.abo .abo-price .amt { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--text); }
.abo .abo-price .cur { font-size: 0.9rem; color: var(--text-2); }

.order-note {
  margin-top: var(--s-3);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Angebot einlösen (Referenznummer) -------------------------------- */
.redeem {
  max-width: 560px;
  margin: 0;
  background: radial-gradient(120% 120% at 0% 0%, rgba(124, 108, 255, 0.12), transparent 55%), var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-3) var(--s-2);
  text-align: center;
}
.redeem-form { display: flex; gap: 10px; margin-top: var(--s-2); }
.redeem-form input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 13px 15px;
  text-align: center;
  min-height: 50px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.redeem-form input::placeholder { color: var(--muted); letter-spacing: 0; }
.redeem-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.redeem-form .btn { flex: none; }
.redeem-note { margin-top: var(--s-2); font-size: 0.88rem; color: var(--muted); }
.redeem-status { margin-top: 12px; font-size: 0.92rem; min-height: 1.2em; }
.redeem-status.err { color: #ff8a8a; }
.redeem-status.ok { color: #34e0a1; }
.redeem-result {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  text-align: left;
  animation: redeemIn 0.4s var(--ease);
}
.redeem-result-desc { color: var(--text-2); font-size: 0.98rem; margin-bottom: var(--s-3); }
.redeem-result-prices { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s-2); }
.redeem-price {
  flex: 1;
  min-width: 160px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.redeem-price .lbl { display: block; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.redeem-price .amt { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--text); }
.redeem-price .amt small { font-size: 0.9rem; color: var(--text-2); font-weight: 500; }
.redeem-result-rabatt { color: var(--accent-2); font-size: 0.92rem; margin-bottom: var(--s-3); font-weight: 500; }
.redeem-result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.redeem-result-actions .btn { flex: 1; min-width: 180px; }
@keyframes redeemIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Responsive ------------------------------------------------------- */
/* Schwebende Kapselformen: unter 768px komplett aus — bei schmalen Breiten
   liegt der Hero-Inhalt (Badge, Buttons) über die volle Breite, jede sichtbare
   Form würde zwangsläufig quer durch Text/Buttons laufen. Auf dem Desktop
   bleiben sie unangetastet, dort tragen sie zur Atmosphäre bei. */
@media (max-width: 767px) {
  .shapes { display: none; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .kpi { grid-template-columns: 1fr 1fr; }
  .price-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: var(--s-4); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .section { padding-block: var(--s-5); }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(10, 12, 17, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-links.open .btn { margin-top: 8px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .kpi { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .redeem-form { flex-direction: column; }
  .redeem-form .btn { width: 100%; }
}

/* ---- 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; }
  .shape { animation: none !important; opacity: 1; transform: rotate(var(--r)); }
  .shape-inner { animation: none !important; }
  .atmosphere .glow { animation: none !important; }
}
