/* ============================================================
   VILOQA — Unternehmenswebsite
   Dark premium design system · self-hosted fonts · no frameworks
   ============================================================ */

/* ---------- Fonts (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #060810;
  --bg-raised: #0b0e1a;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #eef0f8;
  --text-dim: #a6adc3;
  --text-faint: #6b7288;
  --blue: #38bdf8;
  --indigo: #4f46e5;
  --purple: #8b5cf6;
  --grad: linear-gradient(100deg, #38bdf8 0%, #6366f1 55%, #a855f7 100%);
  --grad-soft: linear-gradient(100deg, rgba(56,189,248,.14), rgba(139,92,246,.14));
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }
::selection { background: rgba(139, 92, 246, 0.4); }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.container.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--indigo); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  margin-bottom: 1.1rem;
}
.grad-text {
  color: transparent; background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
}
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-dim); max-width: 46rem; }
.lead strong { color: var(--text); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(99, 102, 241, 0.5); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
.btn-light { background: #fff; color: #131735; }
.btn-light:hover { box-shadow: 0 10px 30px rgba(255,255,255,0.18); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1.2rem; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 8, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 34px; height: 34px; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .34em; margin-right: -.34em;
}
.main-nav { display: flex; gap: 2.2rem; }
.main-nav a {
  font-size: .93rem; font-weight: 500; color: var(--text-dim);
  transition: color .2s;
}
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .9rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; align-items: center;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1rem 1.4rem 1.6rem;
  background: rgba(8, 10, 20, 0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a { padding: .7rem 0; font-weight: 500; color: var(--text-dim); border-bottom: 1px solid var(--line-soft); }
.mobile-nav a:last-child { border: 0; margin-top: .8rem; color: #fff; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 180px 0 110px; overflow: clip; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.orb-a {
  width: 560px; height: 560px; top: -180px; right: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(139,92,246,.5), rgba(139,92,246,0) 70%);
}
.orb-b {
  width: 640px; height: 640px; bottom: -320px; left: -200px;
  background: radial-gradient(circle at 60% 40%, rgba(56,189,248,.35), rgba(56,189,248,0) 70%);
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; }
.hero h1 { margin-bottom: 1.4rem; max-width: 17ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: .6rem 1.8rem;
  margin-top: 3.2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.trust-row li {
  font-size: .88rem; color: var(--text-faint); font-weight: 500;
  display: flex; align-items: center; gap: .5rem;
}
.trust-row li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
}

/* ---------- USP band ---------- */
.usp-band { padding: 30px 0 0; }
.usp-card {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  background: linear-gradient(140deg, rgba(56,189,248,.09), rgba(139,92,246,.10));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.8rem);
  overflow: hidden;
}
.usp-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 85% 15%, rgba(168,85,247,.15), transparent 70%);
}
.usp-copy h2 { margin-bottom: 1.1rem; }
.usp-copy p { color: var(--text-dim); max-width: 34rem; }
.usp-steps { display: flex; flex-direction: column; gap: .7rem; position: relative; z-index: 1; }
.mini-step {
  display: flex; align-items: center; gap: .9rem;
  background: rgba(6, 8, 16, 0.55); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .95rem 1.2rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
}
.mini-step.accent { border-color: rgba(168,85,247,.5); box-shadow: 0 0 30px rgba(139,92,246,.18); }
.mini-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: .82rem;
}
.mini-arrow { color: var(--text-faint); padding-left: 1.35rem; line-height: .6; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-raised); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 620px; margin-bottom: 3.5rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-sub { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Cards (Leistungen) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.9rem 1.7rem;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(99,102,241,.12), transparent 70%);
  transition: opacity .35s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,.35); background: var(--panel-strong); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.3rem;
  background: var(--grad-soft); border: 1px solid rgba(139,92,246,.25);
  color: #b39cf8;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-dim); font-size: .95rem; }

/* ---------- Steps (Ablauf) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  position: relative;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.9rem 1.6rem 1.7rem;
}
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem;
  color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  display: block; margin-bottom: .9rem; opacity: .9;
}
.step h3 { margin-bottom: .55rem; }
.step p { color: var(--text-dim); font-size: .93rem; }

/* ---------- Split (Warum) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.split-copy h2 { margin-bottom: 1.2rem; }
.split-copy p { color: var(--text-dim); margin-bottom: 2rem; }
.value-list { display: flex; flex-direction: column; gap: .9rem; }
.value-list li {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-left: 3px solid; border-image: linear-gradient(180deg, #38bdf8, #a855f7) 1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.05rem 1.3rem; color: var(--text-dim); font-size: .97rem;
}
.value-list strong { color: var(--text); font-weight: 600; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: 1.4rem; justify-content: center; }
.price-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); padding: 2.4rem 2.2rem;
  display: flex; flex-direction: column;
}
.price-card.featured {
  background: linear-gradient(150deg, rgba(56,189,248,.10), rgba(139,92,246,.13));
  border-color: rgba(139,92,246,.45);
  box-shadow: var(--shadow-glow);
}
.badge {
  position: absolute; top: -13px; right: 24px;
  background: var(--grad); color: #fff;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px;
}
.price-label { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-dim); }
.price { margin: .6rem 0 1.6rem; display: flex; align-items: baseline; gap: .6rem; }
.price-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.4rem); letter-spacing: -.02em;
}
.price-unit { color: var(--text-faint); font-size: .95rem; }
.price-card ul { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2rem; flex: 1; }
.price-card li {
  display: flex; gap: .7rem; color: var(--text-dim); font-size: .96rem;
}
.price-card li::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238b8cf8" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 6 9 17l-5-5"/%3E%3C/svg%3E') center/contain no-repeat;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .3s;
}
.faq-item[open] { border-color: rgba(139,92,246,.4); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  background: var(--text-dim); transition: transform .3s var(--ease);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-item p { padding: 0 1.4rem 1.3rem; color: var(--text-dim); font-size: .96rem; max-width: 60ch; }

/* ---------- Kontakt ---------- */
.contact-panel {
  position: relative; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #7c3aed 100%);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.3);
}
.contact-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 260px at 20% 10%, rgba(56,189,248,.35), transparent 70%),
    radial-gradient(500px 300px at 85% 90%, rgba(236,72,153,.18), transparent 70%);
}
.contact-panel h2, .contact-panel p, .contact-panel a { position: relative; }
.contact-panel h2 { margin-bottom: 1rem; }
.contact-panel > p { color: rgba(255,255,255,.85); max-width: 36rem; margin: 0 auto 2.2rem; }
.contact-note { margin-top: 1.2rem; font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 3rem 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand .brand-word { font-size: .95rem; }
.footer-tag { font-size: .78rem; color: var(--text-faint); letter-spacing: .08em; }
.footer-nav { display: flex; gap: 1.8rem; }
.footer-nav a { font-size: .88rem; color: var(--text-dim); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: .82rem; color: var(--text-faint); }

/* ---------- Legal pages ---------- */
.legal-page { padding: 150px 0 90px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 2.2rem; }
.legal-page h2 { font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.legal-page p, .legal-page address { color: var(--text-dim); font-style: normal; margin-bottom: .8rem; max-width: 70ch; }
.legal-page a { color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px; }
.placeholder-hint {
  background: rgba(250, 204, 21, 0.08); border: 1px solid rgba(250, 204, 21, 0.3);
  color: #fde68a; border-radius: var(--radius-sm); padding: 1rem 1.3rem;
  font-size: .92rem; margin-bottom: 2rem;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .orb { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .usp-card { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .hero { padding: 140px 0 80px; }
  .section { padding: 80px 0; }
  .cards-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .trust-row { gap: .5rem 1.2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
}
@media (min-width: 721px) {
  .mobile-nav { display: none !important; }
}
