/* ============================================================
   KI·UP — Fable-Edition · Design-System
   Dark-first · Geist · Lila-Single-Accent · clean mit Bildern
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #09090f;
  --surface: #12111c;
  --card: #17151f;
  --card-hi: #1e1b2a;
  --line: rgba(255, 255, 255, 0.07);
  --line-hi: rgba(255, 255, 255, 0.14);
  --text: #ececf1;
  --text-soft: #a9a7b8;
  --text-muted: #7d7b8d;
  --accent: #8b6fff;
  --accent-d: #6b4ff5;
  --accent-bg: rgba(139, 111, 255, 0.08);
  --accent-bo: rgba(139, 111, 255, 0.24);
  --craft: #6ee63b;
  --gusto: #e23744;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
.mono { font-family: var(--font-mono); }
.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

::selection { background: rgba(139, 111, 255, 0.35); }

/* ---------- Grain + Progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  transform-origin: left; transform: scaleX(0);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 320ms var(--ease-out), border-color 320ms var(--ease-out), backdrop-filter 320ms;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 9, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1152px; margin: 0 auto; padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem;
}
.wordmark {
  font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600;
  letter-spacing: -0.02em;
}
.wordmark-dot { color: var(--accent); }
.nav-links { display: none; gap: 1.75rem; margin-left: auto; }
.nav-links a {
  font-size: 0.9rem; color: var(--text-soft);
  transition: color 160ms var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: none; align-items: center; gap: 0.75rem; }
.lang-toggle {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--text-soft); border: 1px solid var(--line-hi);
  padding: 0.35rem 0.65rem; border-radius: 0.5rem;
  transition: color 160ms, border-color 160ms;
}
.lang-toggle:hover { color: var(--text); border-color: var(--accent-bo); }
.nav-burger { margin-left: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--text); transition: transform 240ms var(--ease-out), opacity 240ms; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-burger { display: none; }
}
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 998;
  background: rgba(9, 9, 15, 0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 1rem 1.5rem 1.5rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform 240ms var(--ease-out), opacity 240ms;
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.mobile-menu a:last-child { border-bottom: none; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 0.75rem;
  font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background 160ms, border-color 160ms, color 160ms;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #0d0a1a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -10px rgba(139, 111, 255, 0.5);
}
.btn-primary:hover { background: #9d85ff; }
.btn-ghost { border: 1px solid var(--line-hi); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-bo); background: var(--accent-bg); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 0.6rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-app { margin-top: 1.5rem; border: 1px solid var(--line-hi); }
.btn-craft:hover { border-color: rgba(110, 230, 59, 0.5); color: var(--craft); }
.btn-gusto:hover { border-color: rgba(226, 55, 68, 0.6); color: #ff6b76; }

/* ---------- Badges / Chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-bg);
  border: 1px solid var(--accent-bo); border-radius: 999px;
  padding: 0.4rem 0.9rem; margin: 0 0 1.5rem;
}
.badge-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s var(--ease-io) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 111, 255, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(139, 111, 255, 0); }
}
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--line-hi); color: var(--text-soft);
  margin-bottom: 1rem;
}
.chip-new { color: var(--accent); border-color: var(--accent-bo); background: var(--accent-bg); margin-bottom: 0; vertical-align: middle; }
.chip-craft { color: var(--craft); border-color: rgba(110, 230, 59, 0.3); background: rgba(110, 230, 59, 0.07); }
.chip-gusto { color: #ff6b76; border-color: rgba(226, 55, 68, 0.4); background: rgba(226, 55, 68, 0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  min-height: 92vh; display: flex; align-items: center;
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(139, 111, 255, 0.13), transparent 65%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center;
  position: relative; width: 100%;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}
.hero-h1 em { font-style: normal; color: var(--accent); }
.hero-h1 .w {
  display: inline-block;
  opacity: 0; transform: translateY(0.55em) rotate(1.5deg);
  animation: word-in 700ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 70ms + 100ms);
}
@keyframes word-in { to { opacity: 1; transform: none; } }
.hero-sub {
  font-size: 1.15rem; color: var(--text-soft); max-width: 34rem;
  margin-bottom: 2.25rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-trust {
  margin-top: 2.5rem; font-size: 0.78rem; letter-spacing: 0.03em;
  color: var(--text-muted); text-transform: uppercase;
}

/* Hero-Collage */
.hero-visual {
  position: relative; height: 460px; max-width: 520px;
  margin: 0 auto; width: 100%;
}
.tile {
  position: absolute; border-radius: 1rem; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-hi);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin: 0;
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption, .tile-d {
  font-size: 0.68rem; letter-spacing: 0.05em; color: var(--text-soft);
}
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.8rem 0.6rem;
  background: linear-gradient(transparent, rgba(5, 5, 10, 0.85));
}
.tile-a { width: 46%; height: 62%; left: 0; top: 4%; animation: float 7s ease-in-out infinite; }
.tile-b { width: 44%; height: 55%; right: 0; top: 0; animation: float 8s ease-in-out infinite 0.8s; }
.tile-c { width: 48%; height: 38%; left: 27%; bottom: 0; animation: float 9s ease-in-out infinite 1.6s; }
.tile-d {
  width: 38%; right: 2%; bottom: 14%;
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.2rem;
  background: linear-gradient(135deg, var(--card-hi), var(--card));
  animation: float 7.5s ease-in-out infinite 2.2s;
}
.tile-stat { font-size: 1.7rem; color: var(--accent); font-weight: 600; letter-spacing: -0.02em; }
@keyframes float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: marquee 42s linear infinite;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 8.5rem 0; } }
.section-head { max-width: 44rem; margin-bottom: 4rem; }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-head h2, .section-cta h2, .about-grid h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.section-sub { color: var(--text-soft); font-size: 1.08rem; }

/* ---------- Services (Akkordeon) ---------- */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); position: relative; }
.service::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--accent); transition: width 420ms var(--ease-out); z-index: 1;
}
.service:hover::after, .service.open::after { width: 100%; }
.service-head {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.75rem;
  width: 100%; text-align: left; cursor: pointer;
  padding: 2rem 0.5rem;
  transition: background 240ms var(--ease-out), padding-left 240ms var(--ease-out);
}
@media (min-width: 768px) {
  .service-head { grid-template-columns: 4rem 1fr auto auto; align-items: baseline; }
}
.service-head:hover, .service.open .service-head {
  background: linear-gradient(90deg, var(--accent-bg), transparent 60%);
  padding-left: 1rem;
}
.service-num { color: var(--text-muted); font-size: 0.85rem; padding-top: 0.4rem; }
.service h3 { font-size: 1.35rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.service-body p { color: var(--text-soft); max-width: 38rem; }
.service-meta {
  font-size: 0.75rem; letter-spacing: 0.06em; color: var(--accent);
  text-transform: uppercase; white-space: nowrap;
}
.service-featured .service-head { background: linear-gradient(90deg, var(--accent-bg), transparent 70%); }
.acc-icon {
  position: relative; width: 20px; height: 20px; align-self: center;
  justify-self: end; flex-shrink: 0;
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 1.5px; background: var(--text-soft);
  transform: translate(-50%, -50%);
  transition: transform 320ms var(--ease-out), background 160ms;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.service.open .acc-icon::before { background: var(--accent); }
.service.open .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); background: var(--accent); }
.service-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 460ms var(--ease-out);
}
.service.open .service-panel { grid-template-rows: 1fr; }
.service-panel-inner {
  overflow: hidden; min-height: 0;
  display: grid; grid-template-columns: 1fr; gap: 0 2rem;
  padding: 0 0.5rem; /* KEIN vertikales Padding: sonst bleibt beim Zuklappen ein sichtbarer Streifen */
}
.service-panel-inner > * { margin-top: 1.1rem; margin-bottom: 2.5rem; }
.service-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  align-self: start; justify-self: start;
  font-size: 0.9rem; color: var(--accent);
  border-bottom: 1px solid var(--accent-bo);
  padding-bottom: 2px;
  transition: color 160ms, border-color 160ms;
}
.service-link:hover { color: #a992ff; border-color: var(--accent); }
/* Text + Link in der linken Panel-Spalte gruppieren */
.service-panel-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.service-panel-copy .service-more { margin: 0; }
@media (min-width: 900px) {
  .service-panel-inner { grid-template-columns: 1.1fr 0.9fr; align-items: start; padding-left: 6.85rem; }
  .service-panel-inner.service-panel-wide { grid-template-columns: 1fr; }
}
.service-more { color: var(--text-soft); max-width: 38rem; }
.service-visual svg {
  width: 100%; max-width: 440px; height: auto; display: block;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.9rem; padding: 0.6rem;
}
.service-shot { margin: 0; }
.service-shot img { border-radius: 0.9rem; border: 1px solid var(--line-hi); }
.service-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
@media (min-width: 700px) { .service-gallery { grid-template-columns: repeat(4, 1fr); } }
.service-gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 0.75rem; border: 1px solid var(--line);
}

/* ---------- App-Showcase ---------- */
.section-apps { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.app-card {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  background: var(--card); border: 1px solid var(--line-hi); border-radius: 1.5rem;
  padding: 2rem; margin-bottom: 2.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
@media (min-width: 1024px) {
  .app-card { grid-template-columns: 0.9fr 1.1fr; padding: 3rem; align-items: start; }
  .app-gusto .app-info { order: 2; }
  .app-gusto .app-shot { order: 1; }
}
.app-craft { border-top: 2px solid rgba(110, 230, 59, 0.5); }
.app-gusto { border-top: 2px solid rgba(226, 55, 68, 0.55); }
.app-card h3 { font-size: 1.9rem; letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.app-desc { color: var(--text-soft); margin-bottom: 1.75rem; }
.app-shot {
  margin: 0; border-radius: 1rem; overflow: hidden;
  align-self: center;
  border: 1px solid var(--line-hi);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.7);
  transition: transform 400ms var(--ease-out);
  transform-style: preserve-3d;
}
.browser-chrome {
  display: flex; align-items: center; gap: 6px;
  background: var(--card-hi); padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.browser-chrome > span:not(.browser-url) { width: 9px; height: 9px; border-radius: 50%; background: var(--line-hi); }
.browser-url {
  margin-left: 0.75rem; font-size: 0.72rem; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04); border-radius: 0.4rem;
  padding: 0.2rem 0.7rem;
}
.app-tech { text-align: center; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.06em; }

/* ---------- Before/After Slider ---------- */
.ba-slider {
  position: relative; border-radius: 0.9rem; overflow: hidden;
  border: 1px solid var(--line-hi);
  aspect-ratio: 896 / 640; /* wird von Bildern bestimmt, Fallback */
  touch-action: pan-y;
  user-select: none;
}
.ba-slider { aspect-ratio: 4 / 3; }
.ba-slider img { width: 100%; height: 100%; object-fit: cover; }
.ba-after {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: rgba(255, 255, 255, 0.9); pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(9, 9, 15, 0.85); border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}
.ba-handle span::before {
  content: "◂ ▸"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: #fff; letter-spacing: 1px;
}
.ba-slider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-tag {
  position: absolute; top: 0.75rem; font-size: 0.68rem; letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  background: rgba(9, 9, 15, 0.75); backdrop-filter: blur(4px);
  border: 1px solid var(--line-hi); pointer-events: none;
}
.ba-tag-before { left: 0.75rem; }
.ba-tag-after { right: 0.75rem; color: var(--accent); border-color: var(--accent-bo); }

/* ---------- Bento / Showroom ---------- */
.bento {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.bento-item {
  position: relative; margin: 0; border-radius: 1rem; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  aspect-ratio: 1 / 1.05;
  transition: transform 320ms var(--ease-out), border-color 320ms;
}
.bento-item:hover { transform: translateY(-4px); border-color: var(--accent-bo); }
.bento-item.span-2r { grid-row: span 2; aspect-ratio: auto; }
.bento-item img, .bento-item video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.bento-item:hover img { transform: scale(1.045); }
.bento-item video { background: #000; }
.bento-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 0.9rem 0.7rem;
  font-size: 0.68rem; letter-spacing: 0.05em; color: var(--text-soft);
  background: linear-gradient(transparent, rgba(5, 5, 10, 0.9));
  pointer-events: none;
}
/* Bei Videos Caption oben, damit die Player-Controls frei bleiben */
.bento-item:has(video) figcaption {
  bottom: auto; top: 0;
  padding: 0.7rem 0.9rem 2rem;
  background: linear-gradient(rgba(5, 5, 10, 0.9), transparent);
}
.bento-note { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.05em; }
.bento-actions { margin-top: 2.25rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.bento-actions .bento-note { margin: 0; }

/* ---------- Pricing ---------- */
.section-pricing { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiers {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line-hi); border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 320ms var(--ease-out), border-color 320ms;
}
.tier:hover { transform: translateY(-4px); }
.tier-hot { border-color: var(--accent-bo); background: linear-gradient(180deg, rgba(139, 111, 255, 0.09), var(--card) 45%); }
.tier-flag {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #0d0a1a; font-weight: 600;
  padding: 0.3rem 0.9rem; border-radius: 999px;
}
.tier h3 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 1rem; }
.tier-price { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 1.5rem; }
.tier-num { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; }
.tier-per { color: var(--text-muted); font-size: 0.9rem; }
.tier ul { flex: 1; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }
.tier li {
  color: var(--text-soft); font-size: 0.95rem;
  padding-left: 1.4rem; position: relative;
}
.tier li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.65em; height: 0.35em;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.bundle {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  background: var(--card); border: 1px solid var(--line-hi); border-radius: 1.25rem;
  padding: 2rem; margin-top: 1.5rem; align-items: center;
}
@media (min-width: 768px) { .bundle { grid-template-columns: 1.6fr 1fr; } }
.bundle h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.bundle p { color: var(--text-soft); }
.bundle img { border-radius: 0.75rem; border: 1px solid var(--line); width: 100%; max-height: 220px; object-fit: cover; }
.pricing-note { margin-top: 2rem; text-align: center; color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.05em; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr 1fr; } }
.about-text { color: var(--text-soft); font-size: 1.08rem; max-width: 36rem; }
.about-text + .about-text { margin-top: 1.25rem; }

/* Papier-Porträt: drei Origami-Köpfe im sanften Wechsel */
.portrait { margin: 0; }
.portrait-stack {
  position: relative; aspect-ratio: 4 / 3; border-radius: 1.25rem; overflow: hidden;
  border: 1px solid var(--line-hi);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: #d8d7d4;
}
.portrait-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: portrait-cycle 15s ease-in-out infinite;
}
.portrait-stack img:nth-child(1) { animation-delay: 0s; }
.portrait-stack img:nth-child(2) { animation-delay: 5s; }
.portrait-stack img:nth-child(3) { animation-delay: 10s; }
@keyframes portrait-cycle {
  0% { opacity: 0; }
  5% { opacity: 1; }
  33.4% { opacity: 1; }
  41% { opacity: 0; }
  100% { opacity: 0; }
}
.portrait figcaption {
  margin-top: 0.85rem; font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--text-muted); text-align: right;
}
.stats { display: flex; flex-direction: column; gap: 1rem; }
.stats-row { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
.stat {
  display: flex; align-items: baseline; gap: 1.25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  padding: 1.4rem 1.75rem;
}
.stat-num { font-size: 2.2rem; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; min-width: 4.5ch; }
.stat-label { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.section-cta { text-align: center; position: relative; overflow: hidden; }
.section-cta::before {
  content: ""; position: absolute; left: 50%; bottom: -40%; transform: translateX(-50%);
  width: 800px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(139, 111, 255, 0.12), transparent 65%);
}
.cta-inner { position: relative; max-width: 46rem; }
.cta-inner .section-sub { margin-bottom: 2.5rem; }
.cta-inner .hero-ctas { justify-content: center; }
.cta-mail { margin-top: 2rem; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.08em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-tag { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--text-soft); font-size: 0.9rem; transition: color 160ms; }
.footer-links a:hover { color: var(--text); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.05em;
}
.built-with { color: var(--accent); }

/* ---------- Reveal-on-Scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(24px); filter: blur(5px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ---------- WOW: Hero-Konstellationsfeld ---------- */
#heroField {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
#heroField.on { opacity: 1; }
.hero-glow { z-index: 0; }
.hero-grid { position: relative; z-index: 2; }

/* ---------- WOW: Wortmarke-Detail ---------- */
.wordmark .wordmark-dot { display: inline-block; transition: transform 0.3s var(--ease-out), color 0.3s; }
.wordmark:hover .wordmark-dot { transform: scale(1.55) translateY(-1px); color: #a992ff; }

/* ---------- WOW: Button-Glanz ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.btn-primary:hover::after { animation: btn-sheen 0.9s var(--ease-out); }
@keyframes btn-sheen {
  0% { left: -60%; opacity: 1; }
  100% { left: 130%; opacity: 1; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  #heroField { display: none; }
  .hero-h1 .w { opacity: 1; transform: none; animation: none; }
  .tile { animation: none !important; }
  .marquee-track { animation: none; }
  .badge-pulse { animation: none; }
  .portrait-stack img { animation: none; }
  .portrait-stack img:first-child { opacity: 1; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
