/* Kifrix – Website. Neutral, Apple-inspiriert, mobil zuerst (OnePlus 15: 412 × 915 CSS-px).
   Keine externen Schriften, keine Tracker, keine CDNs, keine Inline-Styles (CSP). */

/* ============================================================ Farben */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --line: rgba(0, 0, 0, 0.09);
  --text: #1d1d1f;
  --text-2: #515154;
  --text-3: #6e6e73;
  --link: #0066cc;
  --accent: #0a7d6c;          /* aus dem App-Logo, nur sparsam */
  --btn: #1d1d1f;
  --btn-text: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.16);
  --nav: rgba(255, 255, 255, 0.72);
  --phone-bg: #ffffff;
  --bubble-in: #e9e9eb;
  --tile-lock: #c7c7cc;
  --warn: #9a5b00;
  --violet: #6b46c1;
  --radius-xl: 28px;
  --radius-l: 20px;
  --max: 1060px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0b0b0c;
    --surface: #161617;
    --surface-2: #1d1d1f;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --link: #2997ff;
    --accent: #3fbfa2;
    --btn: #f5f5f7;
    --btn-text: #000000;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
    --nav: rgba(0, 0, 0, 0.7);
    --phone-bg: #000000;
    --bubble-in: #2c2c2e;
    --tile-lock: #3a3a3c;
    --warn: #ffb340;
    --violet: #b794f6;
  }
}

/* ============================================================ Basis */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.sprite { display: none; }
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================ Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; height: 52px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 18px; margin-left: auto; font-size: 13px; }
.nav-links a { color: var(--text-2); display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-cta {
  font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 980px; min-height: 32px;
  display: inline-flex; align-items: center;
  background: var(--btn); color: var(--btn-text); transition: opacity 0.2s;
}
.nav-cta:hover { text-decoration: none; opacity: 0.86; }
@media (max-width: 560px) { .nav-links .opt { display: none; } .nav-links { gap: 14px; } }

/* ============================================================ Typografie & Abschnitte */
.section { padding: 96px max(16px, env(safe-area-inset-right)) 96px max(16px, env(safe-area-inset-left)); }
.wrap { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
.center { text-align: center; }
.alt { background: var(--bg-2); }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
p, li { text-wrap: pretty; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 17px; margin: 0 0 10px; letter-spacing: -0.01em; }
.display { font-size: clamp(56px, 15vw, 112px); line-height: 1; font-weight: 700; letter-spacing: -0.05em; }
.headline { font-size: clamp(34px, 8.6vw, 64px); line-height: 1.06; font-weight: 700; }
.title { font-size: clamp(26px, 6vw, 36px); line-height: 1.12; font-weight: 700; }
.lead { font-size: clamp(19px, 4.8vw, 24px); line-height: 1.38; color: var(--text-2); font-weight: 500; margin: 18px 0 0; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }
.grad {
  background: linear-gradient(180deg, var(--text) 30%, var(--text-3) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================ Hero */
.hero {
  padding: 64px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left));
  text-align: center; position: relative; isolation: isolate; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.6;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::before { width: 520px; height: 520px; left: -180px; top: -160px; background: radial-gradient(closest-side, var(--surface-2), transparent); }
.hero::after { width: 460px; height: 460px; right: -180px; top: 140px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); animation-delay: -9s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }
.hero-icon {
  width: 104px; height: 104px; margin: 0 auto 26px; border-radius: 24px;
  box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite;
}
.hero-icon.icon-sm { width: 84px; height: 84px; border-radius: 20px; }
@keyframes float { 50% { transform: translateY(-6px); } }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 980px; font-size: 17px; font-weight: 500;
  transition: transform 0.25s var(--ease), opacity 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { color: var(--link); background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wide { width: 100%; max-width: 360px; }
.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.meta-line { margin-top: 16px; font-size: 14px; color: var(--text-3); }

/* ============================================================ Handy-Modell (Hero) */
.phone {
  width: 272px; height: 548px; margin: 56px auto 0; padding: 11px; border-radius: 48px;
  background: linear-gradient(145deg, #3a3a3c, #1d1d1f 40%, #2c2c2e);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; width: 84px; height: 24px; margin-left: -42px;
  border-radius: 14px; background: #000; z-index: 2;
}
.phone-screen {
  height: 100%; border-radius: 38px; background: var(--phone-bg); overflow: hidden;
  display: flex; flex-direction: column; gap: 9px; padding: 60px 12px 16px; text-align: left;
}
.phone-head { display: flex; align-items: center; gap: 9px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.phone-head .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #8e8e93, #c7c7cc); }
.phone-head b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.phone-head small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); }
.phone-head small .i { width: 11px; height: 11px; stroke-width: 2.2; }
.pb {
  max-width: 80%; padding: 8px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.32;
  letter-spacing: -0.01em; opacity: 0;
}
.pb-in { align-self: flex-start; background: var(--bubble-in); color: var(--text); border-bottom-left-radius: 6px; }
.pb-out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.pb-sys { align-self: center; font-size: 11px; color: var(--text-3); padding: 2px 8px; }
.pb-photo { padding: 6px; }
.pb-photo .ph {
  width: 156px; height: 96px; border-radius: 13px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #7aa6a0, #c9b18a 45%, #8f9bb3);
}
.pb-photo .ph::after { content: ""; position: absolute; inset: -20px; background: inherit; filter: blur(14px); }
.pb-photo .dl {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.45); display: grid; place-items: center; color: #fff;
}
.pb-photo .dl .i { width: 17px; height: 17px; stroke-width: 2.2; }
.pb-photo span { display: block; font-size: 11.5px; padding: 6px 4px 2px; color: var(--text-2); }
.p1 { animation: p1 14s infinite var(--ease); }
.p2 { animation: p2 14s infinite var(--ease); }
.p3 { animation: p3 14s infinite var(--ease); }
.p4 { animation: p4 14s infinite var(--ease); }
.p5 { animation: p5 14s infinite var(--ease); }
@keyframes p1 { 0%, 3% { opacity: 0; transform: translateY(12px) scale(0.96); } 7%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes p2 { 0%, 17% { opacity: 0; transform: translateY(12px) scale(0.96); } 21%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes p3 { 0%, 33% { opacity: 0; transform: translateY(12px) scale(0.96); } 37%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes p4 { 0%, 52% { opacity: 0; transform: translateY(12px) scale(0.96); } 56%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes p5 { 0%, 70% { opacity: 0; } 74%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* ============================================================ Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(2) { transition-delay: 0.08s; }
.stagger.in > :nth-child(3) { transition-delay: 0.16s; }
.stagger.in > :nth-child(4) { transition-delay: 0.24s; }
.stagger.in > :nth-child(5) { transition-delay: 0.32s; }
.stagger.in > :nth-child(6) { transition-delay: 0.4s; }

/* ============================================================ Karten */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 48px; }
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface); border-radius: var(--radius-xl); padding: 28px 24px;
  box-shadow: var(--shadow); transition: transform 0.4s var(--ease);
}
.section:not(.alt) .card { background: var(--surface-2); box-shadow: none; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); } }
.card h3 { font-size: 21px; font-weight: 600; margin: 16px 0 8px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; hyphens: auto; -webkit-hyphens: auto; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--line);
}
.card .ico.acc { color: var(--accent); }
.card.big { padding: 36px 28px; }
.card.visual { padding: 24px 20px 28px; }
.card.visual .art { margin: 0 auto 12px; max-width: 420px; }

/* ============================================================ Schritte */
.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 40px; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border-radius: var(--radius-l); padding: 20px; box-shadow: var(--shadow);
}
.section:not(.alt) .step { background: var(--surface-2); box-shadow: none; }
.step::before {
  counter-increment: s; content: counter(s);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn); color: var(--btn-text); font-weight: 600; font-size: 16px;
}
.step h3 { font-size: 19px; font-weight: 600; margin: 1px 0 6px; }
.step p { margin: 0; color: var(--text-2); font-size: 16px; hyphens: auto; -webkit-hyphens: auto; }
.split { display: grid; gap: 32px; align-items: center; margin-top: 48px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split .steps { margin-top: 0; } }

/* ============================================================ Illustrationen (SVG) */
.art { width: 100%; height: auto; overflow: visible; }
.art text { font-family: var(--font); letter-spacing: -0.01em; }
.art .cap { fill: var(--text-2); font-size: 12px; font-weight: 600; text-anchor: middle; }
.art .sub { fill: var(--text-3); font-size: 9.5px; text-anchor: middle; }
.art .dev { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.section:not(.alt) .art .dev { fill: var(--bg); }
.art .wire { stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 3 5; fill: none; opacity: 0.6; }

/* Bild in Stücken */
.chunks .src rect { fill: var(--c); animation: lock 9s infinite var(--ease); }
.chunks .dst rect { fill: var(--c); opacity: 0; animation: assemble 9s infinite var(--ease); transform-box: fill-box; transform-origin: center; }
.chunks rect:nth-child(1) { --c: #6f9e97; }
.chunks rect:nth-child(2) { --c: #8fb3a8; animation-delay: 0.12s; }
.chunks rect:nth-child(3) { --c: #c9b18a; animation-delay: 0.24s; }
.chunks rect:nth-child(4) { --c: #7d97a8; animation-delay: 0.36s; }
.chunks rect:nth-child(5) { --c: #b7a17e; animation-delay: 0.48s; }
.chunks rect:nth-child(6) { --c: #d8c3a0; animation-delay: 0.6s; }
.chunks rect:nth-child(7) { --c: #8f9bb3; animation-delay: 0.72s; }
.chunks rect:nth-child(8) { --c: #6c7f99; animation-delay: 0.84s; }
.chunks rect:nth-child(9) { --c: #a3aec4; animation-delay: 0.96s; }
@keyframes lock { 0%, 6% { fill: var(--c); } 14%, 88% { fill: var(--tile-lock); } 96%, 100% { fill: var(--c); } }
@keyframes assemble { 0%, 50% { opacity: 0; transform: scale(0.6); } 56%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.chunks .relay { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; animation: relay 9s infinite; }
.section:not(.alt) .chunks .relay { fill: var(--surface); }
@keyframes relay { 0%, 24%, 46%, 100% { stroke: var(--line); } 30%, 40% { stroke: var(--accent); } }
.chunks .pkt { fill: var(--accent); opacity: 0; }
.chunks .pin { animation: pin 9s infinite var(--ease); }
.chunks .pout { animation: pout 9s infinite var(--ease); }
.chunks .k2 { animation-delay: 0.45s; }
.chunks .k3 { animation-delay: 0.9s; }
@keyframes pin { 0%, 14% { opacity: 0; transform: translateX(0); } 17% { opacity: 1; } 28% { opacity: 1; transform: translateX(40px); } 31%, 100% { opacity: 0; transform: translateX(40px); } }
@keyframes pout { 0%, 36% { opacity: 0; transform: translateX(0); } 39% { opacity: 1; } 50% { opacity: 1; transform: translateX(40px); } 53%, 100% { opacity: 0; transform: translateX(40px); } }
.chunks .burn { fill: var(--warn); font-size: 9.5px; text-anchor: middle; opacity: 0; animation: burn 9s infinite; }
@keyframes burn { 0%, 38% { opacity: 0; } 42%, 60% { opacity: 1; } 66%, 100% { opacity: 0; } }

/* QR-Scan */
.qr .mod { fill: var(--text); }
.qr .frame { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.qr .scan { fill: var(--accent); opacity: 0.85; animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(118px); } }
.qr .ok { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ok 6.4s infinite; }
@keyframes ok { 0%, 48% { stroke-dashoffset: 40; } 56%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 40; } }
.qr .fp { fill: var(--text-3); font-family: var(--mono); font-size: 8.5px; text-anchor: middle; letter-spacing: 0.08em; }

/* Wischen mit 3 Fingern */
.swipe .pad { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.alt .swipe .pad { fill: var(--surface); }
.swipe .trail { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 7s infinite var(--ease); }
.swipe .t1 { stroke: var(--accent); }
.swipe .t2 { stroke: var(--text-3); animation-delay: 0.35s; }
.swipe .t3 { stroke: var(--text); opacity: 0.55; animation-delay: 0.7s; }
@keyframes draw { 0% { stroke-dashoffset: 520; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.swipe .finger { fill: var(--text); opacity: 0; animation: finger 7s infinite var(--ease); }
.swipe .f1 { offset-path: path("M30 140 C 80 40, 150 170, 290 60"); }
.swipe .f2 { offset-path: path("M40 60 C 120 120, 170 20, 280 150"); animation-delay: 0.35s; }
.swipe .f3 { offset-path: path("M60 170 C 120 150, 200 120, 250 30"); animation-delay: 0.7s; }
@keyframes finger { 0% { offset-distance: 0%; opacity: 0; } 5% { opacity: 0.22; } 45% { offset-distance: 100%; opacity: 0.22; } 52%, 100% { offset-distance: 100%; opacity: 0; } }
.swipe .bar-bg { fill: var(--line); }
.swipe .bar { fill: var(--accent); transform-box: fill-box; transform-origin: left; animation: bar 7s infinite var(--ease); }
@keyframes bar { 0% { transform: scaleX(0); } 48%, 92% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.swipe .bits { fill: var(--text); font-size: 13px; font-weight: 600; text-anchor: middle; }

/* ============================================================ Zwiebel (5 Schichten) */
.onion { margin: 48px auto 0; max-width: 560px; }
.layer {
  border-radius: 22px; padding: 10px 12px 12px; margin: 0;
  border: 1.5px solid color-mix(in srgb, var(--text) var(--b), transparent);
  background: color-mix(in srgb, var(--text) var(--f), transparent);
}
.layer > .lbl { font-size: 13px; font-weight: 600; margin: 0 4px 8px; display: flex; justify-content: space-between; gap: 8px; }
.layer > .lbl span:last-child { color: var(--text-3); font-weight: 500; }
.l1 { --b: 14%; --f: 2%; }
.l2 { --b: 20%; --f: 2.5%; }
.l3 { --b: 28%; --f: 3%; }
.l4 { --b: 36%; --f: 3.5%; }
.l4 > .lbl span:first-child { color: var(--accent); }
.l5 { --b: 46%; --f: 4%; }
.core {
  background: var(--btn); color: var(--btn-text); border-radius: 12px; padding: 13px; text-align: center;
  font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.core .i { width: 16px; height: 16px; }
.js .onion .layer, .js .onion .core { opacity: 0; transform: scale(0.94); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .onion.in .layer, .js .onion.in .core { opacity: 1; transform: none; }
.onion.in .l2 { transition-delay: 0.1s; }
.onion.in .l3 { transition-delay: 0.2s; }
.onion.in .l4 { transition-delay: 0.3s; }
.onion.in .l5 { transition-delay: 0.4s; }
.onion.in .core { transition-delay: 0.55s; }

/* ============================================================ Server sieht / sieht nie */
.ledger { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 720px) { .ledger { grid-template-columns: 1fr 1fr; } }
.ledger ul { list-style: none; padding: 0; margin: 12px 0 0; }
.ledger li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); color: var(--text-2); }
.ledger li:first-child { border-top: 0; }
.ledger li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; }
.ledger .yes::before { border: 5px solid var(--line); }
.ledger .no::before { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.ledger .no::after {
  content: ""; position: absolute; left: 5px; top: 50%; width: 8px; height: 4px; margin-top: -3px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ============================================================ Zahlen */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 44px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface-2); border-radius: var(--radius-l); padding: 22px 14px; text-align: center; }
.alt .stat { background: var(--surface); }
.stat b { display: block; font-size: clamp(30px, 8vw, 42px); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--text-2); }

/* ============================================================ Hinweis */
.notice {
  border-radius: var(--radius-l); padding: 18px 20px; margin-top: 24px; font-size: 15px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}
.alt .notice { background: var(--surface); }
.notice strong { color: var(--text); }

/* ============================================================ Download */
.dl-card { max-width: 560px; margin: 0 auto; text-align: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; text-align: left; margin: 28px 0 0; font-size: 15px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); word-break: break-all; }
.howto { text-align: left; margin-top: 8px; padding-left: 22px; }
.howto li { margin: 10px 0; color: var(--text-2); }

/* ============================================================ Changelog */
.release { padding: 36px 0; border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 0; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.release-head .ver { font-size: clamp(26px, 6.4vw, 34px); font-weight: 700; letter-spacing: -0.035em; }
.release-head .date { color: var(--text-3); font-size: 15px; }
.release-head .badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 980px; background: var(--btn); color: var(--btn-text); }
.release-head .badge.upcoming { background: transparent; color: var(--warn); box-shadow: inset 0 0 0 1px currentColor; font-weight: 500; }
.release h3 { font-size: 19px; font-weight: 600; color: var(--text-2); margin: 6px 0 14px; letter-spacing: -0.015em; }
.change { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.change:first-of-type { border-top: 0; }
.change p { margin: 0; font-size: 16px; hyphens: auto; -webkit-hyphens: auto; }
.tags { display: flex; gap: 6px; flex-direction: column; align-items: flex-start; padding-top: 2px; min-width: 84px; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.tag.area { background: var(--surface-2); color: var(--text-2); }
.tag[class*="t-"] { color: var(--text); padding-left: 0; }
.tag[class*="t-"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.t-Neu { color: var(--accent); }
.tag.t-Verbessert { color: var(--link); }
.tag.t-Behoben { color: var(--warn); }
.tag.t-Sicherheit { color: var(--violet); }
.js .release { animation: rise 0.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.chip {
  font: inherit; font-size: 14px; padding: 8px 15px; border-radius: 980px; cursor: pointer; min-height: 40px;
  background: var(--surface-2); border: 1px solid transparent; color: var(--text-2); transition: background 0.2s, color 0.2s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); }
.more { margin-top: 24px; width: 100%; justify-content: center; }
details.log { background: var(--surface); border-radius: var(--radius-l); margin-top: 12px; box-shadow: var(--shadow); overflow: hidden; }
details.log summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.log summary::-webkit-details-marker { display: none; }
details.log summary::after { content: "+"; color: var(--text-3); font-weight: 400; transition: transform 0.3s var(--ease); }
details.log[open] summary::after { transform: rotate(45deg); }
.log-entry { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.log-entry .when { color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.log-entry ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); }
.log-entry li { font-family: var(--mono); font-size: 12px; word-break: break-all; }

/* ============================================================ Fußzeile */
.footer {
  border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3);
  padding: 28px 16px max(48px, calc(env(safe-area-inset-bottom) + 24px));
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.footer a { color: var(--text-2); }

/* ============================================================ Hilfsklassen */
.pt-0 { padding-top: 0; }
.pt-s { padding-top: 40px; }
.pb-s { padding-bottom: 24px; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 48px; }
.left { text-align: left; }
[id] { scroll-margin-top: 64px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 8px; }

/* ============================================================ Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pb { opacity: 1; }
  .chunks .dst rect { opacity: 1; }
  .swipe .trail { stroke-dashoffset: 0; }
  .qr .ok { stroke-dashoffset: 0; }
  .js .reveal, .js .stagger > *, .js .onion .layer, .js .onion .core { opacity: 1; transform: none; }
}

/* ============================================================ Korrekturen */
/* Hero: Platz für den Schatten des Handy-Modells (overflow: hidden schneidet sonst ab) */
.hero { padding-bottom: 110px; }
/* Stücke-Grafik: am Handy wird das SVG auf ~80 % verkleinert – Schrift größer setzen */
.chunks .cap { font-size: 15px; }
.chunks .sub, .chunks .burn { font-size: 12.5px; }
/* Changelog am Handy: Markierungen als Zeile über dem Text statt als schmale Spalte */
@media (max-width: 600px) {
  .change { grid-template-columns: 1fr; gap: 6px; }
  .tags { flex-direction: row; align-items: center; min-width: 0; gap: 10px; }
}
