/* OrganizeMap – Homepage
   Gemeinsame Gestaltung für index.html, impressum.html und datenschutz.html.
   Keine externen Schriften oder Skripte: Die Seite lädt nichts von Dritten. */

:root {
  --red-dark: #8f0014;
  --red: #d6001c;
  --red-light: #ff5a3c;
  --grad: linear-gradient(120deg, #8f0014 0%, #d6001c 55%, #ff5a3c 100%);
  --ink: #12141b;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface2: #f1f2f7;
  --text: #171a23;
  --muted: #5b6273;
  --line: #e4e6ee;
  --accent: #d6001c;
  --accent-soft: #fde8eb;
  --shadow-sm: 0 1px 2px rgba(20, 25, 40, 0.06), 0 4px 14px rgba(20, 25, 40, 0.06);
  --shadow: 0 2px 4px rgba(20, 25, 40, 0.05), 0 18px 48px rgba(20, 25, 40, 0.12);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1016;
    --surface: #171a23;
    --surface2: #1d212c;
    --text: #eef0f6;
    --muted: #a3abbe;
    --line: #2a2f3c;
    --accent: #ff4a5e;
    --accent-soft: #3a1a20;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 48px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 3px solid var(--red-light); outline-offset: 3px; }

/* ---------- Kopfleiste (bleibt beim Scrollen sichtbar) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(20, 25, 40, 0.07);
}
@media (prefers-color-scheme: dark) { .topbar { background: rgba(14, 16, 22, 0.75); border-bottom-color: rgba(255, 255, 255, 0.07); } }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 66px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.topbar .brand img { width: 34px; height: 34px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.topbar ul a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.topbar ul a:hover { color: var(--text); }
.topbar .cta { background: var(--grad); color: #fff; padding: 8px 16px; border-radius: 10px; box-shadow: 0 6px 16px rgba(214, 0, 28, 0.28); }
.topbar .cta:hover { color: #fff; filter: brightness(1.05); }

/* ---------- Startbereich ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad); color: #fff;
  padding: 72px 0 190px;
}
/* dezentes Netzmuster wie im Logo */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.13;
  background-image:
    radial-gradient(circle at 2px 2px, #fff 2.2px, transparent 2.6px),
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 64px 64px;
  background-position: 0 0, 1px 1px, 1px 1px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(255, 190, 160, 0.45), transparent 62%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow-light { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 99px; padding: 5px 14px; margin-bottom: 20px; }
.eyebrow-light::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 0 4px rgba(125, 255, 176, 0.25); }
.hero h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1; letter-spacing: -0.035em; margin: 0 0 16px; font-weight: 850; }
.hero .claim { font-size: clamp(20px, 2.6vw, 26px); font-weight: 650; margin: 0 0 18px; line-height: 1.35; }
.hero .claim span { display: inline-block; margin: 0 0 6px; background: rgba(255, 255, 255, 0.18); border-radius: 8px; padding: 0 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { font-size: 18.5px; margin: 0 0 30px; opacity: 0.94; max-width: 590px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .meta { font-size: 14px; opacity: 0.85; margin-top: 14px; }
.hero .meta a { color: #fff; font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.pills li { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 99px; padding: 5px 14px; font-size: 14px; font-weight: 600; }

.logo-stage { position: relative; justify-self: center; width: min(360px, 78vw); aspect-ratio: 1; }
.logo-stage::before { content: ""; position: absolute; inset: 8%; border-radius: 30%; background: rgba(255, 255, 255, 0.35); filter: blur(50px); }
.hero-logo { position: relative; width: 100%; filter: drop-shadow(0 30px 50px rgba(60, 0, 10, 0.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 14px; padding: 15px 24px; font-weight: 750; font-size: 17.5px;
  text-decoration: none; transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-white, .btn-light { background: #fff; color: var(--red); box-shadow: 0 14px 34px rgba(80, 0, 12, 0.28); }
.btn-white:hover, .btn-light:hover { box-shadow: 0 18px 40px rgba(80, 0, 12, 0.36); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.08); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Kennzahlen-Leiste ---------- */
.stats { position: relative; z-index: 2; margin-top: -120px; }
.stats ul { list-style: none; margin: 0; padding: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.stats li { text-align: center; padding: 8px 10px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 38px; line-height: 1.1; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 850; }
.stats span { color: var(--muted); font-size: 14.5px; }

/* ---------- Screenshot ---------- */
.shot { margin-top: 70px; text-align: center; }
.browser {
  background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(20, 25, 40, 0.22), 0 6px 18px rgba(20, 25, 40, 0.08);
  transform-origin: 50% 0; transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Screenshot steht leicht geneigt und richtet sich beim Scrollen auf (nur mit JavaScript) */
.js .browser { transform: perspective(2200px) rotateX(9deg) scale(0.97); }
.js .browser.in { transform: none; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface2); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar em { margin: 0 auto; font-style: normal; font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px 40px; }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- Abschnitte ---------- */
section { padding: 100px 0 0; }
.eyebrow { display: inline-block; font-size: 13.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h2 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 14px; }
.intro { color: var(--muted); font-size: 18.5px; margin: 0 0 40px; max-width: 700px; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(214, 0, 28, 0.25); }
.card h3 { margin: 18px 0 8px; font-size: 18px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 50px; height: 50px; border-radius: 15px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(214, 0, 28, 0.28); }
.icon svg { width: 25px; height: 25px; }

/* Schritte als Zeitleiste */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; border-top: 2px dashed rgba(214, 0, 28, 0.35); }
.steps li { counter-increment: s; position: relative; text-align: center; padding: 0 6px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 850; font-size: 22px; box-shadow: 0 0 0 8px var(--bg), 0 12px 24px rgba(214, 0, 28, 0.3); position: relative;
}
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* Datenschutz – dunkler Abschnitt */
.dark { margin-top: 110px; padding: 90px 0; background: var(--ink); color: #eef0f6; position: relative; overflow: hidden; isolation: isolate; }
.dark::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: -200px; top: -260px; background: radial-gradient(circle, rgba(214, 0, 28, 0.45), transparent 65%); }
.dark::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; bottom: -280px; background: radial-gradient(circle, rgba(255, 90, 60, 0.3), transparent 65%); }
.dark .eyebrow { color: #ff8a73; }
.dark .intro { color: #b6bccb; }
.privacy { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.shield { width: min(300px, 70vw); aspect-ratio: 1; margin: 0 auto; border-radius: 36%; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 40px 80px rgba(214, 0, 28, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.shield svg { width: 46%; height: 46%; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: #c9cedb; }
.checks li::before { content: "✓"; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(125, 255, 176, 0.14); color: #7dffb0; font-weight: 800; }
.checks b { color: #fff; }

/* Häufige Fragen */
.faq { max-width: 860px; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: border-color 0.2s; }
details[open] { border-color: rgba(214, 0, 28, 0.3); }
summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; font-weight: 600; transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Rückmeldungen */
.feedback { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-sm); }
.feedback h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 10px; }
.feedback p { margin: 0 0 12px; color: var(--muted); }
.feedback .mail { display: inline-block; margin: 4px 0 12px; padding: 10px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 750; font-size: 18px; user-select: all; }
.feedback .small { font-size: 14.5px; margin: 0; }
@media (max-width: 560px) { .feedback { grid-template-columns: 1fr; padding: 24px; } }

/* Praxisbeispiel */
.praxis-stats { list-style: none; margin: 0 auto 26px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; }
.praxis-stats li { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; box-shadow: var(--shadow-sm); }
.praxis-stats b { display: block; font-size: 30px; line-height: 1.1; font-weight: 850; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.praxis-stats span { color: var(--muted); font-size: 14px; }
.praxis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.praxis-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative; }
.praxis-card + .praxis-card::before { content: "→"; position: absolute; left: -16px; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; box-shadow: 0 0 0 5px var(--bg); }
.praxis-step { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 3px 12px; }
.praxis-card h3 { margin: 14px 0 8px; font-size: 19px; }
.praxis-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
/* Änderungsprotokoll */
.changelog summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ver-date { font-weight: 500; font-size: 14px; color: var(--muted); }
.changelog ul { margin: 0; padding: 0 22px 18px 42px; color: var(--muted); }
.changelog li { margin: 6px 0; }
.changelog li b { color: var(--text); }
@media (max-width: 820px) {
  .praxis { grid-template-columns: 1fr; }
  .praxis-card + .praxis-card::before { left: 50%; top: -9px; content: "↓"; }
  .praxis-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Download */
.download { text-align: center; background: var(--grad); color: #fff; border-radius: 32px; padding: 60px 28px; margin-top: 100px; position: relative; overflow: hidden; isolation: isolate; }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.12; background-image: radial-gradient(circle at 2px 2px, #fff 2px, transparent 2.5px); background-size: 34px 34px; }
.download h2 { color: #fff; }
.download > p { opacity: 0.94; margin: 0 auto 30px; max-width: 640px; }
.download .meta { font-size: 14px; opacity: 0.88; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto 22px; text-align: left; }
.dl-card { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 0.25s, background 0.25s; }
.dl-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.17); }
.dl-card h3 { margin: 0; font-size: 21px; }
.dl-card p { margin: 0 0 8px; font-size: 15.5px; opacity: 0.94; flex: 1; }
.dl-card .btn { align-self: flex-start; font-size: 16px; padding: 12px 18px; }
.hash { font: 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; opacity: 0.75; word-break: break-all; }
.disclaimer { color: var(--muted); font-size: 14.5px; text-align: center; max-width: 780px; margin: 28px auto 0; }

/* ---------- Fuß ---------- */
footer { margin-top: 90px; padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.foot-brand img { width: 28px; height: 28px; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-head { background: var(--grad); color: #fff; padding-bottom: 46px; position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.1; background-image: radial-gradient(circle at 2px 2px, #fff 2px, transparent 2.5px); background-size: 40px 40px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand svg { width: 38px; height: 38px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav ul a { color: #fff; text-decoration: none; opacity: 0.92; font-weight: 600; font-size: 15px; }
.nav ul a:hover { opacity: 1; text-decoration: underline; }
.page-head h1 { margin: 24px 0 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; }
.legal { max-width: 820px; padding-top: 44px; }
.legal h2 { font-size: 24px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.todo { background: #fff3d9; color: #6b4500; border: 1px dashed #e8970c; border-radius: 6px; padding: 0 5px; font-weight: 600; }
.note { background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; font-size: 15.5px; }

/* ---------- Animierte Demo ---------- */
.demo-sec { padding-top: 90px; }
.demo { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.demo-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.demo-nav button { width: 100%; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; font: inherit; font-size: 15px; font-weight: 650; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 9px 12px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.demo-nav button:hover { background: var(--surface); color: var(--text); }
.demo-nav button[aria-selected="true"] { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.demo-nav .num { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--surface2); color: var(--muted); }
.demo-nav button[aria-selected="true"] .num { background: var(--grad); color: #fff; }
.demo-nav .bar { display: block; height: 3px; border-radius: 3px; background: transparent; margin-top: 6px; overflow: hidden; }
.demo-nav button[aria-selected="true"] .bar { background: var(--line); }
.demo-nav .bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.demo-nav { position: relative; }
.demo-browser { transform: none !important; }
.demo-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f5f8; outline: none; }
.demo-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--red-light); }
.demo-stage .layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.demo-stage .layer.on { opacity: 1; }
.demo-stage .layer.zoom { transition: opacity .6s ease, transform 6.5s cubic-bezier(.25,.1,.25,1); }
.demo-stage img { width: 100%; height: 100%; object-fit: cover; }
.demo-stage .hl { position: absolute; border-radius: 12px; border: 3px solid #ff5a3c; box-shadow: 0 0 0 9999px rgba(18, 20, 27, 0.28), 0 0 0 6px rgba(255, 90, 60, 0.25); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.demo-stage .layer.lit .hl { opacity: 1; animation: hlpulse 2.2s ease-in-out infinite; }
@keyframes hlpulse { 0%, 100% { box-shadow: 0 0 0 9999px rgba(18,20,27,.28), 0 0 0 4px rgba(255,90,60,.25); } 50% { box-shadow: 0 0 0 9999px rgba(18,20,27,.28), 0 0 0 10px rgba(255,90,60,.12); } }
.demo-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-sm); min-height: 98px; }
.demo-caption b { display: block; font-size: 18px; margin-bottom: 2px; }
.demo-caption p { margin: 0; color: var(--muted); font-size: 15.5px; }
.demo-ctrl { display: flex; gap: 6px; flex: none; }
.demo-ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.demo-ctrl button:hover { border-color: var(--accent); color: var(--accent); }
/* Sondereffekt für einzelne Kapitel: warmer Rahmen und ein Lichtstreifen, der über die Stelle zieht */
.demo-stage .layer.shimmer .hl { border-color: #ffc861; overflow: hidden; }
.demo-stage .layer.shimmer.lit .hl { animation: hlglow 2.4s ease-in-out infinite; }
.demo-stage .layer.shimmer.lit .hl::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.0) 40%, rgba(255, 255, 255, 0.85) 49%, rgba(255, 236, 200, 0.95) 51%, rgba(255, 255, 255, 0.0) 60%, transparent 65%);
  background-size: 300% 100%; background-repeat: no-repeat;
  mix-blend-mode: screen; animation: sheen 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes sheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -40% 0; } }
@keyframes hlglow {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(18, 20, 27, .32), 0 0 10px 2px rgba(255, 200, 97, .55), 0 0 0 4px rgba(255, 200, 97, .3); }
  50% { box-shadow: 0 0 0 9999px rgba(18, 20, 27, .32), 0 0 26px 8px rgba(255, 200, 97, .75), 0 0 0 9px rgba(255, 200, 97, .18); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-stage .layer.shimmer.lit .hl, .demo-stage .layer.shimmer.lit .hl::after { animation: none; }
}
.demo-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14.5px; color: var(--accent); text-decoration: none; }
.demo-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
  .demo-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .demo-nav button { grid-template-columns: 24px auto; font-size: 14px; padding: 7px 10px; }
  .demo-nav .bar { display: none; }
  .demo-caption { flex-direction: column; gap: 10px; min-height: 0; }
  .demo-ctrl { align-self: flex-end; }
  .demo-ctrl button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-stage .layer, .demo-stage .layer.zoom { transition: none; }
  .demo-stage .layer.lit .hl { animation: none; }
}

/* ---------- Einblenden beim Scrollen (nur mit JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(4n+2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(4n+3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4n+4), .steps .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li + li { border-left: 0; }
}
@media (max-width: 820px) {
  .topbar ul li:not(:last-child) { display: none; }
  .hero { padding: 40px 0 170px; }
  .hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .logo-stage { order: -1; width: 180px; justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .privacy { grid-template-columns: 1fr; gap: 36px; }
  .shield { width: 160px; }
  .js .browser { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .stats ul { padding: 16px; }
  .stats b { font-size: 30px; }
  .download { border-radius: 22px; padding: 44px 18px; }
  .browser-bar em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo { animation: none; }
  .btn, .card, .dl-card, .browser { transition: none; }
  .js .browser { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
