/* Purelapse – Projektseite
   Farben aus dem Programm-Icon: Abendlila oben, Sonnenuntergang-Orange unten. */
:root {
  --bg: #0b0d12;
  --bg-2: #10131a;
  --surface: #151923;
  --surface-2: #1b202c;
  --border: #262c39;
  --border-2: #343c4d;
  --text: #e8ebf1;
  --dim: #a2aaba;
  --faint: #6f7889;
  --violet: #8b7cf6;
  --violet-hi: #a99df9;
  --orange: #f2a24b;
  --green: #5cd47b;
  --grad: linear-gradient(135deg, #8b7cf6 0%, #c487b8 50%, #f2a24b 100%);
  --radius: 14px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- Kopfzeile ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 44, 57, 0.7);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; }
.lang a, .lang span { padding: 3px 10px; border-radius: 999px; color: var(--dim); }
.lang span { background: var(--surface-2); color: var(--text); font-weight: 600; }
.lang a:hover { color: var(--text); text-decoration: none; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  border: 1px solid var(--border-2); color: var(--text); background: var(--surface);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--violet); transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--grad); border: none; color: #120f1c; }
.btn-primary:hover { filter: brightness(1.06); }
.btn small { display: block; font-weight: 500; font-size: 12.5px; opacity: .75; margin-top: 2px; }

/* ---------- Kopfbereich ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 0; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(ellipse 45% 40% at 50% 62%, rgba(242, 162, 75, 0.20), transparent 70%),
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(139, 124, 246, 0.22), transparent 70%);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border: 1px solid var(--border-2); border-radius: 999px;
  font-size: 14px; color: var(--dim); background: rgba(21, 25, 35, 0.7);
}
.pill b { color: var(--orange); font-weight: 600; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; margin: 22px auto 0; max-width: 14ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--dim); max-width: 640px; margin: 22px auto 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; text-align: left; }
.meta { margin-top: 18px; font-size: 14px; color: var(--faint); }
.meta span + span::before { content: "·"; margin: 0 10px; }

.shot {
  margin: 64px auto 0; max-width: 1060px;
  border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 120px -30px rgba(139, 124, 246, 0.35), 0 20px 60px -20px rgba(0, 0, 0, 0.8);
}
.shot img { width: 100%; }
.shot-bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }

/* ---------- Abschnitte ---------- */
section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 750; margin-top: 12px; }
.section-head p { color: var(--dim); font-size: 18px; margin-top: 16px; }
.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Vergleich */
.compare { border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; background: #000; position: relative; }
.compare video { width: 100%; height: auto; aspect-ratio: 32 / 9; object-fit: cover; }
.compare .tag {
  position: absolute; top: 12px; padding: 4px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: rgba(11, 13, 18, 0.72); backdrop-filter: blur(6px);
}
.compare .tag.l { left: 12px; color: var(--dim); }
.compare .tag.r { left: calc(50% + 12px); color: var(--orange); }
.caption { color: var(--faint); font-size: 14.5px; margin-top: 14px; text-align: center; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #120f1c; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 20px; }
.step .tagline { font-size: 13px; color: var(--orange); font-weight: 600; margin-top: 4px; }
.step p { color: var(--dim); margin-top: 12px; font-size: 16px; }

/* Funktionen */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.card .ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(139, 124, 246, 0.12); color: var(--violet-hi); margin-bottom: 16px;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 18.5px; }
.card p { color: var(--dim); font-size: 15.5px; margin-top: 8px; }

/* Holy Grail */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--dim); }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: rgba(242, 162, 75, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2a24b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.curve { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px 22px 16px; }
.curve svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13.5px; color: var(--dim); }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 7px; }

/* Ausgabe */
.specs { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.spec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 20px 26px; border-top: 1px solid var(--border); }
.spec:first-child { border-top: none; }
.spec dt { font-weight: 600; }
.spec dd { margin: 0; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 3px 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 14.5px; }
.chip.hi { border-color: rgba(242, 162, 75, 0.5); color: var(--orange); }

/* Engines */
.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.engine { padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.engine h3 { font-size: 20px; }
.engine ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; font-size: 15px; color: var(--dim); }
.engine li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 9px; }
.engine li.no::before { content: "–"; color: var(--faint); }
.engine li.no { color: var(--faint); }
.note { margin-top: 18px; color: var(--faint); font-size: 14.5px; }

/* Installation */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.install ol { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: i; display: grid; gap: 18px; }
.install ol li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--dim); }
.install ol li::before {
  counter-increment: i; content: counter(i);
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); font-weight: 700; font-size: 14px;
}
.install ol li b { color: var(--text); }
.term { border: 1px solid var(--border-2); border-radius: var(--radius); background: #07080b; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--faint); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.term-bar button {
  margin-left: auto; font: inherit; font-size: 12.5px; color: var(--dim); background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 7px; padding: 4px 10px; cursor: pointer;
}
.term-bar button:hover { color: var(--text); border-color: var(--violet); }
.term pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 14.5px; line-height: 1.8; color: #cfd6e4; }
.term .p { color: var(--green); user-select: none; }
.req { margin-top: 18px; font-size: 14.5px; color: var(--faint); }

/* Abschluss */
.final { text-align: center; }
.final h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 750; }
.final p { color: var(--dim); font-size: 18px; max-width: 620px; margin: 16px auto 0; }

footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--faint); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
footer .brand { font-size: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { color: var(--dim); }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
  .grid, .engines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .split, .install { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 56px; }
  section { padding: 72px 0; }
  .grid, .engines { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 20px; }
  .btn { width: 100%; justify-content: center; }
  .compare .tag { top: 8px; font-size: 11.5px; padding: 2px 8px; }
  .compare .tag.l { left: 8px; }
  .compare .tag.r { left: calc(50% + 8px); }
  footer nav { margin-left: 0; }
}

/* Besucherzaehler in der Fusszeile */
.visits { flex-basis: 100%; font-size: 13.5px; color: var(--faint); }
.visits b { color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Zweites Vergleichsvideo (Originalqualitaet, mit Bedienelementen) */
.compare-2 { margin-top: 36px; }
.compare-2 video { object-fit: contain; }
/* Im Vollbild nie beschneiden: ganzes Bild zeigen, Rest schwarz */
video:fullscreen { object-fit: contain !important; aspect-ratio: auto !important; background: #000; }
