/* ==========================================================================
   NICO VAN UDEN — WEBDESIGN & GEO
   Design-System: Dark / Futuristisch / High-End
   Keine externen Ressourcen (DSGVO-konform, offline-fähig)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #07070d;
  --bg-soft: #0c0c16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #f2f3f7;
  --text-soft: #a8acbd;
  --text-dim: #6b7080;

  --accent: #7c5cff;          /* Electric Violet */
  --accent-2: #00e5c3;        /* Mint / Cyan */
  --accent-3: #ff4d8d;        /* Pink (sparsam) */
  --gradient: linear-gradient(120deg, #7c5cff 0%, #00e5c3 100%);
  --gradient-text: linear-gradient(100deg, #b3a1ff 0%, #7c5cff 35%, #00e5c3 100%);

  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas,
               "Liberation Mono", monospace;

  --maxw: 1180px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 110px 0; }

/* ---------- Hintergrund-Atmosphäre ---------- */
/* KEIN overflow:hidden! Der Container wird per Scroll-Parallax verschoben –
   eine Clipping-Kante würde dabei sichtbar durchs Bild wandern und die
   Orbs hart abschneiden. Die Verlaufs-Orbs laufen von selbst weich aus. */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* Orbs als Radial-Verläufe statt filter:blur() – große Blur-Radien
   werden vom Browser intern rechteckig beschnitten (sichtbare Kanten
   beim Scrollen). Verläufe sind randlos weich und GPU-günstiger. */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
  animation: drift 22s ease-in-out infinite alternate;
}

.orb-1 {
  width: 720px; height: 720px;
  top: -260px; left: -200px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.26) 0%, rgba(124, 92, 255, 0.10) 42%, transparent 70%);
}

.orb-2 {
  width: 640px; height: 640px;
  top: 28%; right: -240px;
  animation-delay: -7s;
  background: radial-gradient(circle, rgba(0, 229, 195, 0.15) 0%, rgba(0, 229, 195, 0.06) 42%, transparent 70%);
}

.orb-3 {
  width: 560px; height: 560px;
  bottom: -200px; left: 28%;
  animation-delay: -14s;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.10) 0%, rgba(255, 77, 141, 0.04) 42%, transparent 70%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, -50px, 0) scale(1.12); }
}

/* Feines Grid-Muster */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

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

.nav.scrolled {
  background: rgba(7, 7, 13, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: #06060c;
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.45);
}

.logo small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.nav-links a {
  padding: 9px 15px;
  border-radius: 99px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.2s, background 0.2s;
}

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

.nav-cta {
  margin-left: 10px;
  padding: 10px 20px !important;
  background: var(--gradient);
  color: #06060c !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 22px rgba(124, 92, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(124, 92, 255, 0.5); background: var(--gradient) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.nav-burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
}

.hero-inner { max-width: 880px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  margin-bottom: 30px;
}

.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  animation: pulse 2.2s 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, 6.5vw, 4.6rem);
  margin-bottom: 28px;
}

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

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 42px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 70px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #06060c;
  box-shadow: 0 6px 30px rgba(124, 92, 255, 0.4);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 42px rgba(124, 92, 255, 0.55); }

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

.btn-ghost:hover { border-color: var(--accent); background: rgba(124, 92, 255, 0.1); transform: translateY(-2px); }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero-Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(8px);
  overflow: hidden;
  max-width: 720px;
}

.stat {
  flex: 1 1 160px;
  padding: 26px 28px;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat b {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.stat span { font-size: 0.85rem; color: var(--text-dim); font-weight: 600; }

/* ---------- Section Heads ---------- */
.sec-head { max-width: 720px; margin-bottom: 64px; }

.sec-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.sec-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 20px; }
.sec-head p { color: var(--text-soft); font-size: 1.1rem; }

/* ---------- Leistungen ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  padding: 46px 42px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

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

.service-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--bg-card-hover); }
.service-card:hover::before { opacity: 1; }

.service-card .icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.3);
}

.service-card.geo .icon {
  background: rgba(0, 229, 195, 0.1);
  border-color: rgba(0, 229, 195, 0.3);
}

.service-card .icon svg { width: 28px; height: 28px; stroke: var(--accent); }
.service-card.geo .icon svg { stroke: var(--accent-2); }

.service-card h3 { font-size: 1.55rem; margin-bottom: 8px; }

.service-card .sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.service-card p { color: var(--text-soft); margin-bottom: 26px; }

.service-card ul { display: grid; gap: 12px; }

.service-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 3px;
  background: rgba(124, 92, 255, 0.18);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
}

.geo .check { background: rgba(0, 229, 195, 0.14); color: var(--accent-2); }

.badge-new {
  position: absolute;
  top: 28px; right: 28px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  color: #06060c;
}

/* ---------- GEO Explainer ---------- */
.geo-section { background: linear-gradient(180deg, transparent, rgba(0, 229, 195, 0.035) 50%, transparent); }

.geo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.geo-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 22px; }
.geo-copy p { color: var(--text-soft); margin-bottom: 18px; }

.geo-points { display: grid; gap: 18px; margin-top: 34px; }

.geo-point {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.3s;
}

.geo-point:hover { border-color: rgba(0, 229, 195, 0.4); transform: translateX(6px); }

.geo-point .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-2);
  padding-top: 2px;
}

.geo-point b { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.geo-point span { color: var(--text-soft); font-size: 0.92rem; }

/* Terminal-Mockup */
.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(10, 10, 18, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 229, 195, 0.07);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #ffbd2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }

.terminal-bar em {
  margin-left: 10px;
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.terminal-body { padding: 24px 22px; line-height: 1.9; }
.terminal-body .ln { display: block; white-space: pre-wrap; }
.t-cmt { color: var(--text-dim); }
.t-key { color: var(--accent); }
.t-str { color: var(--accent-2); }
.t-ok  { color: #28c840; font-weight: 700; }

.cursor-blink {
  display: inline-block;
  width: 9px; height: 17px;
  background: var(--accent-2);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

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

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

.process-step {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s, border-color 0.3s;
}

.process-step:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, 0.45); }

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
  display: block;
  margin-bottom: 18px;
}

.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- USP / Warum ---------- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.usp-card {
  padding: 38px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.usp-card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--bg-card-hover); }

.usp-card .icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.28);
}

.usp-card .icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.usp-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.usp-card p { color: var(--text-soft); font-size: 0.94rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; display: grid; gap: 14px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] { border-color: rgba(124, 92, 255, 0.4); }

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
}

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

.faq-item summary .plus {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent-2);
  transition: transform 0.3s, background 0.3s;
}

.faq-item[open] summary .plus { transform: rotate(45deg); background: rgba(0, 229, 195, 0.12); }

.faq-item .faq-body { padding: 0 28px 26px; color: var(--text-soft); font-size: 0.97rem; }

/* ---------- Kontakt ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 16px;
  transition: border-color 0.3s, transform 0.3s;
}

.contact-card:hover { border-color: rgba(124, 92, 255, 0.5); transform: translateX(6px); }

.contact-card .icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.28);
}

.contact-card .icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.contact-card small { display: block; color: var(--text-dim); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card b { font-size: 1.06rem; }

.contact-note {
  margin-top: 26px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Großes CTA-Panel */
.cta-panel {
  position: relative;
  padding: 60px 50px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(800px circle at 0% 0%, rgba(124, 92, 255, 0.16), transparent 50%),
    radial-gradient(700px circle at 100% 100%, rgba(0, 229, 195, 0.12), transparent 50%),
    var(--bg-soft);
  overflow: hidden;
}

.cta-panel h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.cta-panel p { color: var(--text-soft); margin-bottom: 32px; max-width: 460px; }

/* ---------- Kontaktformular ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field-full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  width: 100%;
}

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

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }

.form-field select { appearance: none; cursor: pointer; }
.form-field select option { background: var(--bg-soft); color: var(--text); }
.form-field select:invalid { color: var(--text-dim); }

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

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid { border-color: var(--accent-3); }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.55;
}

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

.form-consent a { color: var(--accent-2); text-decoration: underline; }

.form-error {
  color: #ff7aa8;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.form-submit { width: 100%; justify-content: center; }

.form-hint {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  background: rgba(255,255,255,0.015);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 44px;
}

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

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col button {
  color: var(--text-soft);
  font-size: 0.93rem;
  transition: color 0.2s;
  text-align: left;
  padding: 0;
}
.footer-col a:hover, .footer-col button:hover { color: var(--accent-2); }

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

/* ---------- Cookie Consent Banner ---------- */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(4, 4, 9, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.cookie-backdrop.visible { opacity: 1; pointer-events: auto; }

.cookie-banner {
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 130%);
  width: min(560px, calc(100vw - 32px));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: rgba(14, 14, 24, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  padding: 34px 34px 30px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.visible { transform: translate(-50%, 0); }

.cookie-banner h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.cookie-banner h3 .cookie-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.15);
  font-size: 1.1rem;
}

.cookie-banner p { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 22px; }
.cookie-banner p a { color: var(--accent-2); text-decoration: underline; }

.cookie-cats { display: grid; gap: 10px; margin-bottom: 24px; }

.cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}

.cookie-cat b { font-size: 0.92rem; display: block; }
.cookie-cat small { color: var(--text-dim); font-size: 0.78rem; }

/* Toggle-Switch */
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--border-strong);
  transition: background 0.25s;
  cursor: pointer;
}

.slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  border-radius: 50%;
  background: var(--text-soft);
  transition: transform 0.25s, background 0.25s;
}

.switch input:checked + .slider { background: rgba(0, 229, 195, 0.35); border-color: var(--accent-2); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--accent-2); }
.switch input:disabled + .slider { opacity: 0.55; cursor: not-allowed; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cookie-actions .btn { padding: 13px 24px; font-size: 0.92rem; flex: 1 1 auto; justify-content: center; }

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

.btn-equal:hover { border-color: var(--accent); background: rgba(124, 92, 255, 0.12); }

.cookie-banner .cookie-legal-links {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  font-size: 0.78rem;
}

.cookie-banner .cookie-legal-links a { color: var(--text-dim); text-decoration: underline; }
.cookie-banner .cookie-legal-links a:hover { color: var(--text-soft); }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal-page {
  padding: calc(var(--nav-h) + 70px) 0 100px;
  max-width: 820px;
}

.legal-page h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 16px; }

.legal-meta {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.45rem;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-page h3 { font-size: 1.1rem; margin: 28px 0 10px; }

.legal-page p, .legal-page li { color: var(--text-soft); margin-bottom: 12px; font-size: 0.97rem; }

.legal-page ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-page ul li { margin-bottom: 6px; }

.legal-page a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.legal-box {
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  margin: 20px 0;
}

.legal-box p { margin-bottom: 6px; }
.legal-box p:last-child { margin-bottom: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent-2); }

/* ==========================================================================
   SCROLLYTELLING — Animationssystem
   ========================================================================== */

/* Basis-Reveal: taucht weich von unten auf.
   Versteckt wird NUR, wenn JS aktiv ist (html.js-anim) – so bleibt die
   Seite auch ohne JavaScript vollständig sichtbar. */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(46px);
  filter: blur(5px);
  transition:
    opacity 0.85s ease,
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s ease;
  will-change: opacity, transform, filter;
}

/* Richtungs-Varianten */
.js-anim .rv-left  { transform: translateX(-56px); }
.js-anim .rv-right { transform: translateX(56px); }
.js-anim .rv-zoom  { transform: scale(0.88) translateY(20px); }

.js-anim .reveal.in { opacity: 1; transform: none; filter: none; }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* Headline-Wörter: kaskadierendes Auftauchen (per JS in .w gesplittet) */
.w { display: inline-block; }

.js-anim .w {
  opacity: 0;
  transform: translateY(0.65em) rotate(1.5deg);
  filter: blur(7px);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
  transition-delay: calc(var(--wi, 0) * 65ms + 0.15s);
  will-change: opacity, transform, filter;
}

.js-anim .in .w, .js-anim .w.in { opacity: 1; transform: none; filter: none; }

/* Gradient bleibt auch auf gesplitteten Wörtern erhalten */
.grad-text .w {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Terminal: Code wird Zeichen für Zeichen getippt (per JS in .ch gesplittet).
   Jedes Zeichen erscheint schlagartig (1ms) nach seinem individuellen Delay –
   das erzeugt den Typewriter-Effekt ohne JavaScript-Timer. */
.js-anim .terminal-body .ch { opacity: 0; }

/* Beim Erscheinen blitzt auf jedem Zeichen kurz ein Cursor-Block auf –
   wirkt wie ein echter Terminal-Caret, der durch den Text läuft. */
.js-anim .in .ch, .js-anim .ch.in {
  animation: chType 0.14s linear both;
  animation-delay: calc(var(--cd, 0) * 1ms + 0.35s);
}

@keyframes chType {
  0%   { opacity: 0; background: transparent; }
  8%   { opacity: 1; background: var(--accent-2); }
  55%  { opacity: 1; background: var(--accent-2); }
  100% { opacity: 1; background: transparent; }
}

/* Scroll-Fortschrittsbalken */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.55);
  transform: scaleX(0);
  transform-origin: 0 0;
  pointer-events: none;
}

/* Scroll-Hinweis im Hero */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  animation: hintFade 3s ease-in-out infinite;
}

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

.scroll-hint .mouse::before {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--accent-2);
  animation: wheel 1.8s ease-in-out infinite;
}

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

@keyframes hintFade {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.4; }
}

/* Hero-Parallax (per JS gesteuert) */
.hero-inner { will-change: opacity, transform; }
.bg-fx { will-change: transform; }

/* Bewegung reduzieren (Systemeinstellung): Animationen werden NICHT komplett
   abgeschaltet, sondern auf sanfte, bewegungsfreie Fades reduziert. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .eyebrow .dot, .cursor-blink,
  .scroll-hint, .scroll-hint .mouse::before { animation: none !important; }
  .scroll-hint { display: none; }

  .js-anim .reveal,
  .js-anim .rv-left, .js-anim .rv-right, .js-anim .rv-zoom {
    transform: none;
    filter: none;
    transition: opacity 0.6s ease;
  }

  /* Wort-Kaskade bleibt auch bei reduzierter Bewegung erhalten –
     nur als reine Einblendung ohne Bewegung/Blur */
  .js-anim .w {
    transform: none;
    filter: none;
    transition: opacity 0.5s ease;
    transition-delay: calc(var(--wi, 0) * 50ms + 0.1s);
  }

  /* Hinweis: Der Terminal-Tipp-Effekt läuft bewusst auch bei reduzierter
     Bewegung weiter – er besteht nur aus Opacity-Einblendungen ohne
     räumliche Bewegung und ist damit vestibulär unbedenklich. */
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section { padding: 80px 0; }
  .services-grid, .geo-grid, .contact-wrap { grid-template-columns: 1fr; }
  .geo-grid { gap: 48px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 20px 26px;
    background: rgba(7, 7, 13, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
  }

  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .nav-cta { margin-left: 0; text-align: center; justify-content: center; display: flex; }
  .nav-burger { display: flex; }

  .process-grid, .usp-grid { grid-template-columns: 1fr; }
  .stat { flex-basis: 50%; border-bottom: 1px solid var(--border); }
  .service-card { padding: 36px 28px; }
  .cta-panel { padding: 44px 30px; }
  .cookie-banner { padding: 26px 22px 22px; bottom: 12px; }
}

/* ==========================================================================
   SHOWCASE — 3D-Karussell um DNA-Strang
   --------------------------------------------------------------------------
   Z-Ebenen (innerhalb .sc-stage):
     1   Hintergrund-Glow
     2   Karten-Ring (Karten hinten: z 10–40, per JS)
     55  DNA-Canvas
     80  Vorderste Karte (per JS)
     90  Pfeil-Buttons
   ========================================================================== */

.showcase {
  --sc-w: 750px;          /* Kartenbreite — Karten sind 16:9 */
  padding-bottom: 70px;
}

.sc-stage {
  position: relative;
  height: clamp(640px, 92vh, 840px);
  overflow: hidden;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.sc-stage:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(124, 92, 255, 0.55);
  border-radius: 24px;
}

/* Atmosphärischer Glow hinter allem */
.sc-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: min(620px, 90vw); height: 84%;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%,
              rgba(124, 92, 255, 0.16), rgba(0, 229, 195, 0.05) 58%, transparent 76%);
  z-index: 1;
  pointer-events: none;
}

/* DNA-Canvas: sitzt zwischen hinteren Karten und der vordersten Karte */
.sc-dna {
  position: absolute;
  left: 50%; top: 0;
  width: 460px; height: 100%;
  transform: translateX(-50%);
  z-index: 55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

.sc-ring {
  position: absolute;
  inset: 0;
  /* WICHTIG: kein z-index! Der Ring darf keinen eigenen Stacking-Context
     erzeugen, damit die Karten (z 10–80) einzeln mit dem DNA-Canvas (z 55)
     verschachtelt werden können – vorderste Karte VOR, Rest HINTER der Helix. */
  cursor: grab;
  touch-action: pan-y;   /* vertikales Scrollen der Seite bleibt möglich */
}

.sc-stage.dragging .sc-ring { cursor: grabbing; }

/* ---------- Karten ---------- */
.sc-card {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--sc-w);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: #0b0b14;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
  will-change: transform;
  backface-visibility: hidden;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.sc-card.is-front {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65), 0 0 80px rgba(124, 92, 255, 0.16);
}

.sc-card:not(.is-front) { cursor: pointer; }

/* Tiefen-Abdunklung (per JS über --veil gesteuert).
   WICHTIG: über opacity statt Hintergrundfarbe – Opacity-Änderungen
   verarbeitet der Compositor ohne Repaint (sonst ruckelt das Sliden,
   weil jede Karte 60×/s komplett neu gezeichnet würde). */
.sc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #070810;
  opacity: var(--veil, 0);
  will-change: opacity;
  z-index: 6;
  pointer-events: none;
}

/* Auf Mobile blendet das JS die hintersten Karten komplett aus –
   weniger gleichzeitig komposierte Ebenen */
.sc-card.sc-offstage { visibility: hidden; }

/* Browser-Chrome der Mini-Websites */
.sc-chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: rgba(12, 12, 20, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 4;
}

.sc-chrome i { width: 9px; height: 9px; border-radius: 50%; }
.sc-chrome i:nth-child(1) { background: #ff5f57; }
.sc-chrome i:nth-child(2) { background: #ffbd2e; }
.sc-chrome i:nth-child(3) { background: #28c840; }

.sc-chrome span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #8b8fa3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 3px 11px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

/* ---------- Gemeinsames Gerüst der Mini-Landingpages ---------- */
/* Festes Design-Raster (500px breit), per Transform auf Kartenbreite
   skaliert (--pgs/--pgh setzt das JS) – so wachsen Schrift & Visuals mit. */
.sc-page {
  position: absolute;
  top: 32px; left: 0;
  width: 500px;
  height: var(--pgh, 260px);
  transform: scale(var(--pgs, 1.5));
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pg-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 0;
  position: relative;
  z-index: 3;
}

.pg-logo { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; }

.pg-menu { display: grid; gap: 3px; }
.pg-menu i { width: 15px; height: 2px; background: currentColor; opacity: 0.65; border-radius: 2px; }

/* Querformat: Text links unten, Visuals rechts */
.pg-text { margin-top: auto; padding: 0 20px 16px; max-width: 60%; position: relative; z-index: 3; }

.pg-kicker {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 8px;
}

.pg-h { font-size: 1.42rem; line-height: 1.1; margin-bottom: 12px; letter-spacing: -0.015em; }

.pg-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- 1 · Restaurant — Luxury / Refined ---------- */
.pg-rest {
  background: radial-gradient(130% 100% at 50% 0%, #2b1c0e 0%, #170e07 55%, #0b0603 100%);
  color: #f3e3c2;
}

.pg-rest .pg-logo { color: #e9c87f; }

.rest-h { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-weight: 600; }

.rest-h em {
  font-style: italic;
  background: linear-gradient(100deg, #f7e3ae 0%, #d9a849 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rest-plate {
  position: absolute;
  right: 11%; top: 42%;
  width: 150px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 42%, #241709 0%, #160d05 70%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55),
              inset 0 0 0 2px rgba(233, 200, 127, 0.4),
              inset 0 0 0 12px rgba(233, 200, 127, 0.07);
}

.rest-plate::before {
  content: "";
  position: absolute;
  left: 50%; top: -16px;
  width: 64px; height: 30px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, #3a2613, #1c1107);
  box-shadow: inset 0 2px 6px rgba(255, 220, 150, 0.25);
}

.rest-steam {
  position: absolute;
  right: calc(11% + 45px); top: 4%;
  width: 60px; height: 76px;
}

.rest-steam i {
  position: absolute;
  bottom: 0;
  width: 3px; height: 54px;
  border-radius: 99px;
  background: linear-gradient(to top, rgba(255, 244, 214, 0), rgba(255, 244, 214, 0.5), rgba(255, 244, 214, 0));
  filter: blur(3px);
  animation: sc-steam 3.6s ease-in-out infinite;
}

.rest-steam i:nth-child(1) { left: 12px; }
.rest-steam i:nth-child(2) { left: 28px; animation-delay: 1.2s; }
.rest-steam i:nth-child(3) { left: 44px; animation-delay: 2.2s; }

.rest-spark i {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #f0d290;
  box-shadow: 0 0 10px rgba(240, 210, 144, 0.9);
  animation: sc-twinkle 2.6s ease-in-out infinite alternate;
}

.rest-spark i:nth-child(1) { left: 14%; top: 24%; }
.rest-spark i:nth-child(2) { right: 16%; top: 18%; animation-delay: 0.7s; }
.rest-spark i:nth-child(3) { right: 10%; top: 48%; animation-delay: 1.4s; }
.rest-spark i:nth-child(4) { left: 10%;  top: 54%; animation-delay: 2s; }

.rest-cta { background: linear-gradient(120deg, #f4d894, #caa14e); color: #241604; }

/* ---------- 2 · Zahnarzt — Clinical Soft ---------- */
.pg-dent {
  background: linear-gradient(180deg, #ffffff 0%, #eaf6fd 70%, #ddeefa 100%);
  color: #0d2b3a;
}

.pg-dent .pg-logo { color: #1390b5; }

.dent-h { font-weight: 650; }

.dent-visual {
  position: absolute;
  right: 40px; top: 34px;
  width: 96px; height: 106px;
}

.dent-tooth {
  width: 100%; height: 100%;
  filter: drop-shadow(0 10px 22px rgba(19, 144, 181, 0.28));
}

.dent-scan {
  position: absolute;
  left: -8px; right: -8px; top: 0;
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, rgba(34, 193, 231, 0.5), transparent);
  animation: sc-scan 3s ease-in-out infinite;
}

.dent-spark {
  position: absolute;
  left: -14px; top: -6px;
  font-style: normal;
  font-size: 1rem;
  color: #22c1e7;
  animation: sc-twinkle 1.8s ease-in-out infinite alternate;
}

.dent-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.dent-chips span {
  background: #ffffff;
  border: 1px solid #c8e5f2;
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #0d6e8c;
  box-shadow: 0 4px 12px rgba(13, 110, 140, 0.08);
}

.dent-cta { background: linear-gradient(120deg, #19c3e8, #0e8fd6); color: #ffffff; }

/* ---------- 3 · Fitness — Industrial / High Energy ---------- */
.pg-fit {
  background: radial-gradient(120% 90% at 18% 0%, #311016 0%, #120c0f 52%, #0b0b0e 100%);
  color: #ffffff;
}

.fit-h {
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.5rem;
}

.fit-h span {
  background: linear-gradient(100deg, #ff3d5e, #ff9e2c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fit-ekg {
  position: absolute;
  left: 0; right: 0; top: 38px;
  width: 100%; height: 72px;
  filter: drop-shadow(0 0 9px rgba(255, 61, 94, 0.55));
}

.fit-ekg polyline {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: sc-ekg 2.9s linear infinite;
}

.fit-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.fit-chips span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb199;
}

.fit-cta { background: linear-gradient(120deg, #ff3d5e, #ff9e2c); color: #1a0a05; font-weight: 800; }

/* ---------- 4 · Architektur — Brutally Minimal / Blueprint ---------- */
.pg-arch {
  background-color: #f5f4f0;
  background-image:
    linear-gradient(rgba(26, 26, 33, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 33, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  color: #1a1a21;
}

.arch-h { font-weight: 300; letter-spacing: 0.02em; }

.arch-draw {
  position: absolute;
  right: 18px; top: 36px;
  width: 50%; height: 120px;
}

.arch-d1 {
  stroke: #1a1a21;
  stroke-width: 2;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: sc-draw 6.5s ease-in-out infinite alternate;
}

.arch-d2 {
  stroke: #1a1a21;
  stroke-width: 1.4;
  opacity: 0.55;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: sc-draw 6.5s ease-in-out 0.9s infinite alternate;
}

.arch-dot { fill: #e25b3a; animation: sc-twinkle 2.4s ease-in-out infinite alternate; }

.arch-cta {
  border: 1px solid #1a1a21;
  border-radius: 0;
  background: transparent;
  color: #1a1a21;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  padding: 11px 18px;
}

/* ---------- 5 · Kfz & Detailing — Dark Performance ---------- */
.pg-auto {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 7px),
    linear-gradient(165deg, #0e1320 0%, #0a0e16 100%);
  color: #e8f1ff;
}

.pg-auto .pg-logo { color: #38bdf8; }

.auto-h span {
  background: linear-gradient(100deg, #38bdf8, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auto-speedo {
  position: absolute;
  right: 36px; top: 40px;
  width: 150px; height: 90px;
  filter: drop-shadow(0 8px 20px rgba(56, 189, 248, 0.3));
}

.auto-arc {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: sc-arc 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.auto-needle {
  transform-origin: 60px 64px;
  animation: sc-needle 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.auto-streak {
  position: absolute;
  top: 0; bottom: 0;
  width: 64px;
  background: linear-gradient(100deg, transparent, rgba(110, 180, 255, 0.14), transparent);
  transform: translateX(-120px) skewX(-18deg);
  animation: sc-streak 4.6s ease-in-out infinite;
}

.auto-cta { background: linear-gradient(120deg, #1f6fff, #38bdf8); color: #ffffff; }

/* ---------- 6 · Boutique — Editorial / Magazine ---------- */
.pg-mode { background: #f7f1e9; color: #2a2320; }

.mode-h {
  font-family: Didot, "Bodoni MT", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  font-size: 1.55rem;
}

.mode-h em { font-style: italic; color: #8a5f57; }

.mode-photo {
  position: absolute;
  right: 26px; top: 32px;
  width: 134px; height: 178px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(90, 60, 40, 0.28);
}

.mode-photo::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(80% 60% at 30% 25%, #e8c9b2 0%, transparent 60%),
    linear-gradient(150deg, #d9b6a0 0%, #b78a78 45%, #845c52 100%);
  animation: sc-kenburns 9s ease-in-out infinite alternate;
}

.mode-marquee {
  position: absolute;
  left: 0; right: 0;
  top: 52px;
  border-top: 1px solid rgba(42, 35, 32, 0.18);
  border-bottom: 1px solid rgba(42, 35, 32, 0.18);
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b5a50;
}

.mode-marquee span { display: inline-block; animation: sc-marquee 13s linear infinite; }

.mode-cta {
  background: none;
  border-radius: 0;
  border-bottom: 1px solid #2a2320;
  color: #2a2320;
  padding: 6px 2px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.62rem;
}

.mode-cta i { font-style: normal; }

/* ---------- 7 · Resort — Organic / Sommerlich ---------- */
.pg-resort {
  background: linear-gradient(180deg, #8fd0ff 0%, #d6f0ff 44%, #17b3c3 44.2%, #0a7f95 100%);
  color: #ffffff;
}

.resort-h { color: #ffffff; text-shadow: 0 2px 18px rgba(7, 40, 60, 0.35); }

.pg-resort .pg-kicker { opacity: 0.95; }

.resort-sun {
  position: absolute;
  left: 30px; top: 38px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7d6, #ffd76a 60%, #ffb83d);
  box-shadow: 0 0 34px rgba(255, 214, 106, 0.8);
  animation: sc-sun 4.5s ease-in-out infinite;
}

.resort-cloud {
  position: absolute;
  right: 130px; top: 40px;
  width: 74px; height: 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  animation: sc-cloud 26s ease-in-out infinite alternate;
}

.resort-cloud::before {
  content: "";
  position: absolute;
  left: 18px; top: -10px;
  width: 30px; height: 22px;
  border-radius: 50%;
  background: inherit;
}

.resort-wave {
  position: absolute;
  left: 0;
  width: 1200px; height: 26px;
}

.rw1 { top: calc(44% - 18px); animation: sc-wave 11s linear infinite; }
.rw2 { top: calc(44% - 9px);  animation: sc-wave 17s linear infinite reverse; }

.resort-cta { background: #ffffff; color: #0a7f95; }

/* ---------- Pfeile ---------- */
.sc-arrow {
  position: absolute;
  top: 50%;
  margin-top: -27px;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: border-color 0.25s, background 0.25s;
}

.sc-arrow svg { width: 22px; height: 22px; }
.sc-prev { left: clamp(14px, 4vw, 60px); }
.sc-next { right: clamp(14px, 4vw, 60px); }

.sc-arrow:hover { border-color: var(--accent); background: rgba(124, 92, 255, 0.2); }
.sc-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Bedienleiste unter der Bühne ---------- */
.sc-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.sc-caption { display: flex; align-items: baseline; gap: 14px; min-width: 250px; }

.sc-live b { font-size: 1.05rem; font-weight: 800; display: inline-block; }
.sc-live b.swap { animation: sc-labelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

.sc-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

.sc-dots { display: flex; gap: 4px; }

.sc-dot {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.sc-dot i {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.3s, background 0.3s, box-shadow 0.3s;
}

.sc-dot:hover i { background: rgba(255, 255, 255, 0.5); }

.sc-dot[aria-current="true"] i {
  width: 26px;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
}

.sc-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sc-hint {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ---------- Keyframes ---------- */
@keyframes sc-steam {
  0%   { transform: translateY(18px) scaleY(0.55); opacity: 0; }
  30%  { opacity: 0.85; }
  100% { transform: translateY(-34px) scaleY(1.2); opacity: 0; }
}

@keyframes sc-twinkle {
  from { opacity: 0.15; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1.15); }
}

@keyframes sc-scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  12%      { opacity: 1; }
  88%      { opacity: 1; }
  50%      { transform: translateY(96px); }
}

@keyframes sc-ekg { to { stroke-dashoffset: -560; } }

@keyframes sc-draw { to { stroke-dashoffset: 0; } }

@keyframes sc-arc {
  0%, 8%    { stroke-dashoffset: 151; }
  45%       { stroke-dashoffset: 18; }
  60%       { stroke-dashoffset: 42; }
  80%       { stroke-dashoffset: 28; }
  100%      { stroke-dashoffset: 151; }
}

@keyframes sc-needle {
  0%, 8%    { transform: rotate(-72deg); }
  45%       { transform: rotate(48deg); }
  60%       { transform: rotate(28deg); }
  80%       { transform: rotate(40deg); }
  100%      { transform: rotate(-72deg); }
}

@keyframes sc-streak {
  0%, 55%   { transform: translateX(-120px) skewX(-18deg); opacity: 0; }
  62%       { opacity: 1; }
  78%       { opacity: 1; }
  88%, 100% { transform: translateX(600px) skewX(-18deg); opacity: 0; }
}

@keyframes sc-kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.1) translate(-6px, -8px); }
}

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

@keyframes sc-wave { to { transform: translateX(-300px); } }

@keyframes sc-cloud { to { transform: translateX(-46px); } }

@keyframes sc-sun {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 34px rgba(255, 214, 106, 0.8); }
  50%      { transform: scale(1.07); box-shadow: 0 0 50px rgba(255, 214, 106, 1); }
}

@keyframes sc-labelIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .rest-steam i, .rest-spark i, .dent-scan, .dent-spark,
  .fit-ekg polyline, .arch-d1, .arch-d2, .arch-dot,
  .auto-arc, .auto-needle, .auto-streak,
  .mode-photo::before, .mode-marquee span,
  .resort-wave, .resort-sun, .resort-cloud,
  .sc-live b.swap { animation: none !important; }

  /* Selbstzeichnende Linien: vollständig sichtbar statt unsichtbar */
  .fit-ekg polyline, .arch-d1, .arch-d2 { stroke-dasharray: none; stroke-dashoffset: 0; }
  .auto-arc { stroke-dashoffset: 50; }
  .auto-needle { transform: rotate(22deg); }
  .dent-scan, .auto-streak { display: none; }
}

/* ---------- Fallback ohne JavaScript: horizontale Galerie ---------- */
html:not(.js-anim) .sc-stage { height: auto; overflow: visible; }
html:not(.js-anim) .sc-dna,
html:not(.js-anim) .sc-glow,
html:not(.js-anim) .sc-arrow,
html:not(.js-anim) .sc-ui { display: none; }
html:not(.js-anim) .sc-ring {
  position: static;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 24px 30px;
}
html:not(.js-anim) .sc-card { position: static; flex: 0 0 auto; transform: none !important; }

/* ---------- Performance: Animationen nur, wo man sie sieht ----------
   Die Mini-Landingpages animieren dauerhaft (Dampf, EKG, Wellen, …).
   Auf den hinteren Karten und außerhalb des Viewports (.sc-asleep,
   per JS gesetzt) werden alle Keyframe-Animationen pausiert – das
   spart massiv Compositing-Last, besonders auf Mobilgeräten. */
.sc-card:not(.is-front) .sc-page *,
.sc-card:not(.is-front) .sc-page *::before,
.sc-card:not(.is-front) .sc-page *::after,
.sc-stage.sc-asleep .sc-page *,
.sc-stage.sc-asleep .sc-page *::before,
.sc-stage.sc-asleep .sc-page *::after,
.sc-stage.sc-sliding .sc-page *,
.sc-stage.sc-sliding .sc-page *::before,
.sc-stage.sc-sliding .sc-page *::after {
  animation-play-state: paused !important;
}

/* ---------- Performance: Mobile / Touch ---------- */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  /* Orbs sind als Radial-Verläufe günstig – nur leicht dezenter */
  .orb { opacity: 0.6; }
  .nav.scrolled { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .sc-arrow {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 12, 20, 0.85);
  }

  /* Karten: kleine Schatten (kleinere GPU-Texturen), keine Schatten-/
     Border-Transitions (vermeidet Repaints während des Slidens) */
  .sc-card {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
    transition: none;
  }
  .sc-card.is-front {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(124, 92, 255, 0.55);
  }
}

/* ---------- Showcase responsive ---------- */
@media (max-width: 980px) {
  .showcase { --sc-w: 690px; }
  .sc-stage { height: clamp(580px, 84vh, 740px); }
}

@media (max-width: 720px) {
  .showcase { --sc-w: min(92vw, 630px); }
  .sc-stage { height: 540px; }
  .sc-dna { width: 300px; }
  .sc-arrow { width: 46px; height: 46px; }
  .sc-prev { left: 10px; }
  .sc-next { right: 10px; }
  .sc-hint { display: none; }
  .sc-ui { justify-content: center; }
}
