/* =====================================================================
   Erdgames – Strawberry
   Gemeinsames Stylesheet für Startseite und Rechtsseiten.
   Farben ändern: Variablen unter :root (dunkel) und [data-theme="light"].
   ===================================================================== */

/* Schriften lokal eingebunden – keine Verbindung zu Google Fonts */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2");
}

:root {
  --bg: #0b0a0f;
  --bg-2: #100f15;
  --surface: #15131b;
  --raised: #1d1b25;
  --line: #2a2733;
  --line-2: #3d3947;
  --ink: #f6f4f9;
  --muted: #a8a4b4;
  --accent: #ff3d5a;
  --accent-2: #ff6b82;
  --accent-rgb: 255, 61, 90;
  --leaf: #7ddc5a;
  --leaf-rgb: 125, 220, 90;
  --amber: #f5b14c;
  --amber-rgb: 245, 177, 76;
  --sky: #6cb6ff;
  --sky-rgb: 108, 182, 255;
  --on-accent: #1a050a;
  --grid: rgba(255, 255, 255, .045);
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, .9);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f8f7fa; --bg-2: #f1f0f4; --surface: #ffffff; --raised: #f4f3f7;
  --line: #e3e1e9; --line-2: #cfccd8; --ink: #17151c; --muted: #5b5866;
  --accent: #d4163a; --accent-2: #b8112f; --accent-rgb: 212, 22, 58;
  --leaf: #2f7d20; --leaf-rgb: 47, 125, 32; --on-accent: #ffffff;
  --amber: #9a5b00; --amber-rgb: 154, 91, 0;
  --sky: #1d63b8; --sky-rgb: 29, 99, 184;
  --grid: rgba(23, 21, 28, .06);
  --shadow: 0 30px 60px -30px rgba(23, 21, 28, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 84px;
}
body { 
  margin: 0; 
  background: var(--bg); 
  color: var(--ink); 
  font: 400 17px/1.6 var(--font-body); 
  -webkit-font-smoothing: antialiased; 
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg), var(--bg-2), var(--bg));
  background-size: 400% 400%;
  background-position: 0% 0%;
  opacity: 0.03;
  animation: gradientShift 30s ease infinite alternate;
  pointer-events: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-thumb:active { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg-2); }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
button, input, select { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; color: var(--bg); }

/* ---------- Header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
header.top { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 66px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 20px var(--font-display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.main { position: relative; display: flex; gap: 4px; margin-left: auto; }
nav.main a { position: relative; z-index: 1; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 99px; font-size: 15px; font-weight: 500; transition: color .2s; }
nav.main a:hover, nav.main a[aria-current="true"] { color: var(--ink); }
.nav-ind { position: absolute; z-index: 0; top: 0; bottom: 0; margin: auto 0; height: 36px; border-radius: 99px; background: var(--raised); border: 1px solid var(--line); transition: left .3s cubic-bezier(.3,.8,.3,1), width .3s cubic-bezier(.3,.8,.3,1), opacity .2s; opacity: 0; }
.tools { display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 13px var(--font-body); padding: 5px 13px; min-height: 44px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 50%; cursor: pointer; transition: border-color .25s cubic-bezier(.3,1,.5,1), transform .25s cubic-bezier(.3,1,.5,1), box-shadow .25s cubic-bezier(.3,1,.5,1); -webkit-tap-highlight-color: transparent; }
.icon-btn:hover { border-color: var(--line-2); transform: rotate(12deg) translateY(-2px); box-shadow: 0 8px 20px -12px rgba(var(--accent-rgb), .3); }
.icon-btn:active { transform: scale(0.95); }
.menu-btn { display: none; }
.sun { display: none; }
:root[data-theme="dark"] .sun { display: block; }
:root[data-theme="dark"] .moon { display: none; }

/* Mobile settings inside nav */
.mobile-settings {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.mobile-separator {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}
.mobile-settings button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}
.mobile-settings button:hover {
  background: var(--raised);
}
.mobile-settings button svg {
  flex-shrink: 0;
  color: var(--muted);
}
.mobile-settings button:hover svg {
  color: var(--accent);
}
.mobile-settings .mobile-lang {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 8px 0;
}
.mobile-settings .mobile-lang button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--raised);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-settings .mobile-lang button:hover {
  background: var(--surface);
  border-color: var(--line-2);
}
.mobile-settings .mobile-lang button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

@media (max-width: 780px) {
  .mobile-settings { display: flex; }
  .header-actions { display: none; }

  /* Disable parallax on mobile for performance */
  .hero-bg { transform: none !important; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 22px; border-radius: 12px; font: 600 15px var(--font-body); line-height: 1.25; text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer; transition: background .25s cubic-bezier(.3,1,.5,1), border-color .25s cubic-bezier(.3,1,.5,1), box-shadow .25s cubic-bezier(.3,1,.5,1), transform .25s cubic-bezier(.3,1,.5,1); will-change: transform; }
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .7); }
.btn-primary:hover { background: var(--accent-2); color: var(--on-accent); box-shadow: 0 14px 36px -10px rgba(var(--accent-rgb), .9), 0 0 20px rgba(var(--accent-rgb), .35); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); box-shadow: 0 8px 20px -12px rgba(0,0,0,.12); transform: translateY(-1px); }
.btn:active { transform: scale(.97) !important; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.ext::after { content: "↗"; font-size: .9em; margin-left: -4px; opacity: .7; }

/* ---------- Hero ---------- */
.hero { 
  position: relative; 
  padding: 76px 0 110px; 
  overflow: hidden; 
  isolation: isolate;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.hero::before { 
  content: ""; 
  position: absolute; 
  z-index: -1; 
  inset: -20% -10% auto 40%; 
  height: 120%; 
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .16), transparent); 
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.16; transform: scale(1); }
  50% { opacity: 0.24; transform: scale(1.05); }
}
.hero-bg { 
  position: absolute; 
  z-index: -1; 
  inset: 0; 
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); 
  background-size: 28px 28px; 
  -webkit-mask-image: linear-gradient(#000 50%, transparent); 
  mask-image: linear-gradient(#000 50%, transparent); 
  pointer-events: none;
  will-change: transform;
}
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { 
  display: grid; 
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); 
  gap: 48px; 
  align-items: center;
  transform: translateZ(0);
  transition: transform 0.1s ease-out;
}
.logo-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 20px; margin-bottom: 30px; display: block; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.logo-btn:hover { transform: rotate(-6deg) scale(1.06); }
.logo-btn img { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 18px 40px -14px rgba(var(--accent-rgb), .7); }
.hero h1 { font-size: clamp(40px, 5.4vw, 78px); letter-spacing: -.04em; margin-bottom: 26px; overflow-wrap: break-word; }
.hero .lead { font-size: 21px; color: var(--muted); max-width: 28em; }
.hero .small { font-size: 17px; }
.hero .row { margin-top: 34px; }

.scene { perspective: 1400px; }
.stack { position: relative; aspect-ratio: 1.12 / 1; transform-style: preserve-3d; transition: transform .3s ease-out; }
.win { position: absolute; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; background: var(--raised); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; }
.win-bar i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.win img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--raised); }
.w1 { width: 80%; right: 0; top: 9%; transform: translateZ(0); }
.w2 { width: 54%; left: 0; top: 38%; transform: translateZ(50px); }
.w3 { width: 44%; right: 5%; bottom: 0; transform: translateZ(95px); }
.badge { position: absolute; z-index: 5; left: 0; top: 0; transform: translateZ(120px); display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 600 14px var(--font-body); text-decoration: none; box-shadow: var(--shadow); }
.badge:hover { color: var(--bg); background: var(--accent); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--leaf); }
@media (prefers-reduced-motion: no-preference) {
  .win { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .w2 { animation-delay: .12s; } .w3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; translate: 0 22px; } }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 660px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 19px; margin: 0; }
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; translate: 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- Status + tags ---------- */
.tag { font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.active { color: var(--leaf); border-color: rgba(var(--leaf-rgb), .5); background: rgba(var(--leaf-rgb), .08); }
.status.development { color: var(--amber); border-color: rgba(var(--amber-rgb), .5); background: rgba(var(--amber-rgb), .08); }
.status.beta { color: var(--sky); border-color: rgba(var(--sky-rgb), .5); background: rgba(var(--sky-rgb), .08); }
.status.archived { color: var(--muted); border-color: var(--line-2); background: var(--raised); }

/* ---------- Featured project (bisheriges App-Panel) ---------- */
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.app-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.app-title .logo { width: 48px; height: 48px; border-radius: 12px; }
.app-title .logo img:not(.logo-ph-bg) { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.app-title h3 { font-size: clamp(30px, 3.4vw, 42px); }
.info p { color: var(--muted); }
.info .tagline { color: var(--ink); font-size: 20px; line-height: 1.45; }
.chips { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 500; padding: 6px 13px; border-radius: 99px; background: var(--raised); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.chips li:hover { border-color: var(--accent); transform: translateY(-2px); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; }
.stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.stat b { display: block; font: 700 28px var(--font-display); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }
.os { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.os em { font-style: normal; padding: 3px 11px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.note { font-size: 14px; border-left: 3px solid var(--leaf); padding: 2px 0 2px 14px; margin: 22px 0 0; color: var(--muted); }
.note strong { color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery { min-width: 0; }
.stage { position: relative; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--raised); box-shadow: var(--shadow); touch-action: pan-y; }
.stage > img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; cursor: zoom-in; transition: opacity .14s; }
.stage > img.out { opacity: 0; }
.gbtn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(10, 9, 14, .65); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
.gbtn:hover { background: var(--accent); color: var(--on-accent); }
.gbtn:active { transform: scale(0.95); }
.gbtn.prev { left: 12px; top: 50%; margin-top: -24px; }
.gbtn.next { right: 12px; top: 50%; margin-top: -24px; }
.gbtn.zoom { right: 12px; top: 12px; width: 44px; height: 44px; }
.count { position: absolute; left: 12px; bottom: 12px; padding: 3px 12px; border-radius: 99px; background: rgba(10,9,14,.7); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cap { margin: 14px 2px 0; font-weight: 500; min-height: 1.6em; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin-top: 14px; }
.thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--raised); cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s, transform .2s; min-height: 60px; -webkit-tap-highlight-color: transparent; }
.thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.thumbs button:active { transform: scale(0.95); }
.thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.single .gbtn.prev, .single .gbtn.next, .single .count, .single + .cap + .thumbs { display: none; }

dialog#lb { border: 0; padding: 0; background: transparent; width: min(1200px, 94vw); max-width: none; max-height: none; color: #fff; overflow: visible; }
dialog#lb::backdrop { background: rgba(5, 4, 8, .88); backdrop-filter: blur(8px); }
#lb img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px; background: #15131b; }
#lb .cap { text-align: center; margin-top: 14px; }
#lb .gbtn.prev { left: -6px; } #lb .gbtn.next { right: -6px; }
#lb .gbtn.x { right: 0; top: -54px; width: 48px; height: 48px; }

/* ---------- Project browser ---------- */
.featured { margin-bottom: 64px; }

/* ---------- Keyboard Shortcuts Dialog ---------- */
/* Removed - dialog no longer used */

.pb-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pb-head h3 { font-size: clamp(26px, 3vw, 34px); }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; margin-bottom: 22px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; transition: color .25s cubic-bezier(.3,1,.5,1); }
.search input { width: 100%; min-height: 48px; padding: 10px 40px 10px 42px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .25s cubic-bezier(.3,1,.5,1), box-shadow .25s cubic-bezier(.3,1,.5,1), background .25s cubic-bezier(.3,1,.5,1); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25), 0 0 20px rgba(var(--accent-rgb), .15); background: var(--bg); }
.search input:focus + svg { color: var(--accent); }
.search .clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; transition: color .25s cubic-bezier(.3,1,.5,1), background .25s cubic-bezier(.3,1,.5,1), transform .25s cubic-bezier(.3,1,.5,1); }
.search .clear:hover { color: var(--ink); background: var(--raised); transform: scale(1.1); }
.search .clear[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 44px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font: 600 14px var(--font-body); cursor: pointer; transition: border-color .25s cubic-bezier(.3,1,.5,1), color .25s cubic-bezier(.3,1,.5,1), background .25s cubic-bezier(.3,1,.5,1), transform .25s cubic-bezier(.3,1,.5,1), box-shadow .25s cubic-bezier(.3,1,.5,1); -webkit-tap-highlight-color: transparent; }
.filters button:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(0,0,0,.1); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 0 8px 20px -12px rgba(0,0,0,.2); }
.filters button .n { margin-left: 6px; font-weight: 500; opacity: .65; font-variant-numeric: tabular-nums; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 7px 36px 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; }
.select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; pointer-events: none; }
.result-info { font-size: 14px; color: var(--muted); margin: -8px 0 18px; min-height: 1.4em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.pcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; isolation: isolate; transition: border-color .25s cubic-bezier(.3,1,.5,1), transform .25s cubic-bezier(.3,1,.5,1), box-shadow .25s cubic-bezier(.3,1,.5,1), opacity .5s cubic-bezier(.3,1,.5,1); opacity: 0; transform: translateY(20px); }
.pcard.visible { opacity: 1; transform: translateY(0); }
.pcard:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 22px 44px -30px rgba(var(--accent-rgb), .65), 0 0 24px rgba(var(--accent-rgb), .15); }
.pcard .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--raised); border-bottom: 1px solid var(--line); overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .thumb img { transform: scale(1.03); }
.pcard .thumb .status { position: absolute; left: 12px; top: 12px; backdrop-filter: blur(6px); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.pcard .body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.pcard .title { display: flex; align-items: center; gap: 12px; }
.pcard .logo { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); color: var(--accent); overflow: hidden; font: 700 17px var(--font-display); }
.pcard .logo img:not(.logo-ph-bg) { width: 100%; height: 100%; object-fit: cover; }
.logo.logo-ph { position: relative; display: grid; place-items: center; padding: 0; }
.logo.logo-ph .logo-ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; pointer-events: none; }
.logo.logo-ph .logo-ph-sym { position: relative; z-index: 1; display: grid; place-items: center; color: var(--accent); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.logo.logo-ph .logo-ph-sym svg { width: 22px; height: 22px; }
.pcard .logo.logo-ph .logo-ph-sym svg { width: 20px; height: 20px; }
.pd-head .logo.logo-ph .logo-ph-sym svg { width: 24px; height: 24px; }
.g-avatars .logo.logo-ph .logo-ph-sym svg { width: 14px; height: 14px; }
.pcard h4 { margin: 0; font: 700 19px/1.2 var(--font-display); letter-spacing: -.01em; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.pcard .meta span + span::before { content: "·"; margin-right: 10px; opacity: .6; }
.pcard p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.pcard .stretch::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.pcard .actions a, .pcard .actions button { position: relative; z-index: 1; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 18px; color: var(--muted); }
.empty p { margin-bottom: 16px; }
.load-error { padding: 20px 22px; border: 1px solid rgba(var(--accent-rgb), .45); border-radius: 14px; background: rgba(var(--accent-rgb), .08); color: var(--ink); }

/* ---------- Project dialog ---------- */
dialog.pd { width: min(1080px, 100% - 32px); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8); overflow: hidden; }
dialog.pd[open] { display: flex; flex-direction: column; }
dialog.pd::backdrop { background: rgba(5, 4, 8, .72); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) { dialog.pd[open] { animation: pdIn .35s cubic-bezier(.2,.7,.2,1); } @keyframes pdIn { from { opacity: 0; translate: 0 16px; } } }
.pd-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); }
.pd-head .logo { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); color: var(--accent); overflow: hidden; font: 700 19px var(--font-display); }
.pd-head .logo img:not(.logo-ph-bg) { width: 100%; height: 100%; object-fit: cover; }
.pd-head h2 { font-size: clamp(22px, 3vw, 30px); }
.pd-head .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pd-head .icon-btn { margin-left: auto; flex: none; }
.pd-body { overflow-y: auto; overscroll-behavior: contain; padding: 28px 24px 32px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 36px; }
.pd-body .tagline { font-size: 19px; line-height: 1.45; margin-bottom: 12px; }
.pd-body .desc { color: var(--muted); }
.pd-body h3 { font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.facts div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.dl-list { display: grid; gap: 8px; }
.dl { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.dl:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.dl .dl-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.dl strong { display: block; font-size: 15px; }
.dl small { color: var(--muted); font-size: 13px; }
.dl .arrow { margin-left: auto; color: var(--muted); }
.mobile-note { display: none; font-size: 14px; color: var(--muted); padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 12px; }
.link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.game-launch { margin-bottom: 22px; }

/* ---------- Eingebettete Spiele ---------- */
dialog.game-dialog { width: min(1440px, 100vw - 32px); height: min(920px, 100dvh - 32px); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8); overflow: hidden; }
dialog.game-dialog[open] { display: flex; }
dialog.game-dialog::backdrop { background: rgba(5, 4, 8, .82); backdrop-filter: blur(8px); }
.game-shell { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg); }
.game-shell:fullscreen { width: 100%; height: 100%; background: var(--bg); }
.game-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto auto; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.game-back, .game-fullscreen { justify-self: start; min-height: 42px; white-space: nowrap; }
.game-fullscreen { justify-self: end; }
.game-heading { min-width: 0; text-align: center; }
.game-eyebrow { display: block; margin-bottom: 2px; color: var(--accent); font: 700 10px var(--font-body); letter-spacing: .14em; }
.game-heading h2 { overflow: hidden; font-size: clamp(18px, 2.6vw, 24px); text-overflow: ellipsis; white-space: nowrap; }
.game-volume { display: flex; align-items: center; gap: 9px; }
.game-mute { width: 42px; min-width: 42px; height: 42px; padding: 0; justify-content: center; }
.game-volume input[type="range"] { width: clamp(84px, 9vw, 132px); height: 38px; margin: 0; appearance: none; background: transparent; cursor: pointer; touch-action: manipulation; }
.game-volume input[type="range"]::-webkit-slider-runnable-track { height: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--volume-progress, 100%), var(--line-2) var(--volume-progress, 100%), var(--line-2) 100%); }
.game-volume input[type="range"]::-moz-range-track { height: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--volume-progress, 100%), var(--line-2) var(--volume-progress, 100%), var(--line-2) 100%); }
.game-volume input[type="range"]::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -6px; appearance: none; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 2px 8px rgba(0,0,0,.3); }
.game-volume input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 2px 8px rgba(0,0,0,.3); }
.game-volume input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }
.game-volume input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2), 0 2px 8px rgba(0,0,0,.3); }
.game-volume input[type="range"]:hover::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2), 0 2px 8px rgba(0,0,0,.3); }
.game-volume #gameVolumeValue { min-width: 34px; color: var(--muted); font: 600 11px var(--font-body); font-variant-numeric: tabular-nums; text-align: right; }
.game-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 14px; overflow: hidden; background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), .07), transparent 70%); }
.game-stage iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 1px solid var(--line); border-radius: 14px; background: #08080b; }
.game-leaderboard-toggle { position: absolute; right: 24px; bottom: 24px; z-index: 2; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); font: 700 12px var(--font-body); box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; backdrop-filter: blur(12px); }
.game-leaderboard-toggle:hover { border-color: var(--accent); color: var(--accent-2); }
.game-leaderboard-toggle[hidden], .game-leaderboard[hidden] { display: none; }
.game-leaderboard { position: absolute; right: 24px; bottom: 24px; z-index: 3; width: min(340px, calc(100% - 32px)); max-height: min(78%, 460px); padding: 14px; overflow: auto; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--ink); box-shadow: 0 18px 60px rgba(0,0,0,.45); backdrop-filter: blur(18px); }
.game-leaderboard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-leaderboard-head h3 { margin: 0; font-size: 15px; }
.game-leaderboard-head .icon-btn { width: 34px; min-width: 34px; height: 34px; }
.game-leaderboard-columns { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; margin: 12px 8px 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.game-leaderboard-columns span:last-child { text-align: right; }
.game-leaderboard-list { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.game-leaderboard-columns + .game-leaderboard-list { margin-top: 0; }
.game-leaderboard-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 34px; padding: 4px 8px; border-radius: 9px; background: var(--raised); font-size: 13px; }
.game-leaderboard-rank { color: var(--accent-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.game-leaderboard-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-leaderboard-score { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.game-leaderboard-status { margin: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.game-leaderboard-status:empty { display: none; }
.game-help { display: flex; min-height: 40px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px; padding: 7px 16px 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; }
.game-help p { margin: 0; }
.game-orientation { display: none; align-items: center; gap: 6px; color: var(--accent-2); }
.game-orientation[hidden] { display: none !important; }
.game-help.is-dismissed { display: none; }
@media (max-width: 640px) {
  dialog.game-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .game-head { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px; padding: calc(6px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left)); }
  .game-back, .game-fullscreen, .game-mute { width: 40px; min-width: 40px; height: 40px; padding: 0; justify-content: center; }
  .game-back span, .game-fullscreen span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .game-eyebrow { display: none; }
  .game-heading h2 { font-size: clamp(14px, 4vw, 17px); }
  .game-volume { gap: 2px; }
  .game-volume input[type="range"] { width: clamp(58px, 16vw, 76px); height: 40px; }
  .game-volume #gameVolumeValue { min-width: 30px; font-size: 10px; }
  .game-stage { padding: 4px max(4px, env(safe-area-inset-right)) 4px max(4px, env(safe-area-inset-left)); }
  .game-stage iframe { border-radius: 6px; }
  .game-leaderboard-toggle, .game-leaderboard { right: 12px; bottom: 12px; }
  .game-leaderboard { width: min(330px, calc(100% - 24px)); max-height: min(82%, 460px); padding: 12px; }
  .game-help { min-height: 34px; gap: 3px 12px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); font-size: 10px; }
}
@media (max-width: 350px) {
  .game-head { gap: 4px; padding-right: max(5px, env(safe-area-inset-right)); padding-left: max(5px, env(safe-area-inset-left)); }
  .game-back, .game-fullscreen, .game-mute { width: 36px; min-width: 36px; height: 38px; }
  .game-volume { gap: 1px; }
  .game-volume input[type="range"] { width: 44px; }
  .game-volume #gameVolumeValue { min-width: 27px; font-size: 9px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .game-orientation:not([hidden]) { display: flex; }
}
@media (max-height: 500px) and (orientation: landscape) {
  dialog.game-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .game-head { gap: 8px; padding-top: max(4px, env(safe-area-inset-top)); padding-bottom: 4px; }
  .game-back, .game-fullscreen, .game-mute { min-height: 36px; height: 36px; }
  .game-volume input[type="range"] { height: 34px; }
  .game-stage { padding: 2px max(4px, env(safe-area-inset-right)) 2px max(4px, env(safe-area-inset-left)); }
}

/* Windows-/Desktop-Installer auf Handy-Bildschirmen ausblenden */
@media (max-width: 760px) {
  .desktop-only { display: none !important; }
  .mobile-note { display: block; }
}

/* ---------- Community + About + Contact ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; isolation: isolate; transition: border-color .25s, transform .25s; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .16), transparent 60%); }
.spot:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card .ico, .c-top .ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--raised); border: 1px solid var(--line); color: var(--accent); margin-bottom: 20px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card .row { margin-top: auto; }
.card.feature { border-color: rgba(var(--accent-rgb), .45); background: linear-gradient(160deg, rgba(var(--accent-rgb), .12), var(--surface) 60%); }
.kv { display: grid; gap: 8px; margin: 0 0 20px; }
.kv div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.kv dt { color: var(--muted); min-width: 64px; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 6px; }
.kv code { font: 600 14px ui-monospace, "Cascadia Code", Consolas, monospace; padding: 2px 8px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); }
.copy { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--line-2); }

.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.about h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 18px; }
.role { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: 15px; font-weight: 600; }
.role img { width: 28px; height: 28px; border-radius: 50%; }
.about .big { font: 500 clamp(22px, 2.6vw, 30px)/1.3 var(--font-display); letter-spacing: -.015em; margin-bottom: 22px; }
.about p { color: var(--muted); max-width: 36em; }
.credits { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.credits h3 { font-size: 24px; margin-bottom: 18px; }
.credits dl { margin: 0; }
.credits .it { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.credits .it:first-of-type { border-top: 0; padding-top: 0; }
.credits dt { font-weight: 600; font-size: 15px; }
.credits dd { margin: 0; color: var(--muted); font-size: 15px; }

.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.c-item { display: flex; flex-direction: column; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.c-top { display: flex; gap: 16px; align-items: center; }
.c-top .ico { margin: 0; }
.c-top strong { display: block; font: 700 19px var(--font-display); }
.c-top small { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
footer .brand { font-size: 17px; }
footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
footer nav a:hover { color: var(--ink); }

/* ---------- Toast + particles ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; transition: opacity .25s, translate .25s; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }
.pxp { position: fixed; z-index: 150; pointer-events: none; border-radius: 2px; animation: pxp .85s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes pxp { to { transform: translate(var(--dx), var(--dy)) rotate(120deg); opacity: 0; } }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.legal .intro { color: var(--muted); font-size: 18px; margin-bottom: 36px; }
.legal section { padding: 0; margin-bottom: 34px; }
.legal h2 { font-size: 24px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal dl { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 8px 20px; margin: 0 0 1em; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
mark.ph { background: rgba(var(--amber-rgb), .18); color: var(--ink); border: 1px dashed rgba(var(--amber-rgb), .8); border-radius: 6px; padding: 0 6px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-weight: 500; }
.back:hover { color: var(--ink); }
.stand { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .panel, .about, .pd-body { grid-template-columns: 1fr; gap: 32px; }
  .panel { padding: 24px; }
  .hero { padding-top: 48px; }
  .scene { max-width: 680px; }
  .toolbar { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; margin: 0; }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 14px; font-size: 17px; }
  nav.main a:hover { background: var(--raised); }
  .nav-ind { display: none; }
  .menu-btn { display: inline-grid; }
  .tools { margin-left: auto; }
  section { padding: 68px 0; }
  .bar { gap: 14px; }
  .hero { padding-bottom: 72px; }
  .featured { margin-bottom: 48px; }
  .pd-body { padding: 22px 18px 28px; }
  .pd-head { padding: 14px 14px 14px 18px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .brand span { display: block; font-size: 16px; }
  .brand img { width: 32px; height: 32px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 19px; }
  .hero .row .btn { flex: 1 1 100%; }
  .badge { font-size: 12px; padding: 6px 11px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 24px; }
  .panel { padding: 18px; border-radius: 20px; }
  .card, .credits, .c-item { padding: 22px; }
  .grid { grid-template-columns: 1fr; }
  dialog.pd { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } .reveal { opacity: 1; translate: 0 0; } }

/* =====================================================================
   Feinschliff (Oktober 2026): Kopfzeile, Buttons, Gruppen, Karten,
   Nach-oben-Knopf, Handy-Ansicht
   ===================================================================== */

/* Kopfzeile: dezenter Schatten nach dem Scrollen */
header.top { transition: box-shadow .3s cubic-bezier(.3,1,.5,1), background .3s cubic-bezier(.3,1,.5,1); }
header.top.scrolled { box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .65), 0 0 30px rgba(var(--accent-rgb), .12); }
.brand img { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }

/* Buttons: leichter Hub, Glanz beim Primär-Button, Pfeil schiebt mit */
.btn { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.btn:hover { translate: 0 -1px; }
.btn:active { transform: scale(0.97) !important; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); translate: -120% 0; transition: translate .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.btn-primary:hover::after { translate: 120% 0; }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn svg { transition: transform .2s; }
.btn:hover svg[width="16"] { transform: translate(2px, -2px); }

/* Ripple effect for buttons */
.btn .ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 20;
  animation: ripple 0.65s ease-out forwards;
}

.btn-primary .ripple {
  background: rgba(255, 255, 255, 0.5);
}

/* Abschnitts-Überschriften: kleiner Akzentbalken */
.sec-head h2::after, .about h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--leaf)); }

/* Werkzeugleiste */
.toggle-all { gap: 8px; white-space: nowrap; min-height: 44px; }
.toggle-all .chev, .group-h .chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .3s cubic-bezier(.2,.7,.2,1), translate .3s; flex: none; }
.toggle-all[data-state="close"] .chev { rotate: 225deg; translate: 0 2px; }

/* Gruppen (aufklappbar) */
.groups { display: grid; gap: 14px; }
.group { padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.group:hover { border-color: var(--line-2); }
.group.open { box-shadow: 0 24px 50px -40px rgba(var(--accent-rgb), .7); }
.group-h { margin: 0; font: inherit; }
.group-h button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 0; border-radius: 20px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; min-height: 48px; -webkit-tap-highlight-color: transparent; }
.group-h .g-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--raised); border: 1px solid var(--line); color: var(--accent); transition: background .25s, color .25s, border-color .25s; }
.group-h .g-ico.has-img { padding: 0; overflow: hidden; }
.group-h .g-ico.has-img img { width: 100%; height: 100%; object-fit: cover; }
.group.open .g-ico:not(.has-img) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.group-h .g-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.group-h .g-title { font: 700 20px/1.2 var(--font-display); letter-spacing: -.01em; }
.group-h .g-desc { font-size: 14px; color: var(--muted); }
.group-h .g-avatars { display: flex; }
.group-h .av { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--surface); background: var(--raised); color: var(--accent); display: grid; place-items: center; overflow: hidden; margin-left: -8px; transition: margin .3s; }
.group-h .av:first-child { margin-left: 0; }
.group-h .av img:not(.logo-ph-bg) { width: 100%; height: 100%; object-fit: cover; }
.group-h .av.logo-ph .logo-ph-sym svg { width: 14px; height: 14px; }
.group-h .av svg { width: 16px; height: 16px; }
.group-h button:hover .av { margin-left: -2px; }
.group-h button:hover .av:first-child { margin-left: 0; }
.group-h .g-count { min-width: 30px; padding: 2px 10px; border-radius: 99px; background: var(--raised); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.group-h .chev { margin: 0 4px 0 2px; color: var(--muted); }
.group.open .group-h .chev { rotate: 225deg; translate: 0 2px; }
.group-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1); }
.group.open .group-body { grid-template-rows: 1fr; }
.group-inner { overflow: hidden; min-height: 0; }
.group-inner .grid { padding: 4px 20px 20px; }
.group.no-anim .group-body { transition: none; }

/* Projektkarten: farbiger Rand + Logo-Wackler beim Überfahren */
.pcard { background: var(--bg-2); }
:root[data-theme="light"] .pcard { background: var(--surface); }
.pcard:hover { border-color: rgba(var(--accent-rgb), .55); }
.pcard .logo { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.pcard:hover .logo { transform: rotate(-6deg) scale(1.05); }

/* Nach-oben-Knopf */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .25s, translate .25s, border-color .2s, color .2s; }
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Handy-Ansicht ---------- */
@media (max-width: 1000px) {
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .toolbar .search { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .bar { height: 60px; }
  nav.main { top: 60px; padding: 8px 16px 16px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
  nav.main a { border-radius: 12px; }
  nav.main a:hover { background: var(--raised); }
  nav.main a[aria-current="true"] { background: var(--raised); color: var(--ink); }
  .hero { padding: 36px 0 56px; }
  .logo-btn { margin-bottom: 22px; }
  .logo-btn img { width: 68px; height: 68px; border-radius: 17px; }
  .hero .row { margin-top: 26px; }
  .scene { margin-top: 8px; }
  .badge { left: 6px; top: -6px; }
  .group-h .g-avatars { display: none; }
  .group-h button { padding: 14px 16px; gap: 12px; }
  .group-inner .grid { padding: 2px 12px 14px; }
}
@media (max-width: 560px) {
  /* Kompakte Karten: Bild links, Text rechts */
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .pcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); border-radius: 14px; }
  .pcard .thumb { aspect-ratio: auto; height: 100%; min-height: 112px; border-bottom: 0; border-right: 1px solid var(--line); }
  .pcard .thumb .status { left: 6px; top: 6px; font-size: 10px; padding: 2px 7px; gap: 4px; }
  .pcard .thumb .status::before { width: 5px; height: 5px; }
  .pcard .body { padding: 12px 14px; gap: 6px; }
  .pcard .title { gap: 8px; }
  .pcard .logo { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
  .pcard .logo svg { width: 16px; height: 16px; }
  .pcard h4 { font-size: 16px; }
  .pcard .meta { font-size: 12px; gap: 2px 8px; }
  .pcard .meta span + span::before { margin-right: 8px; }
  .pcard p { font-size: 14px; -webkit-line-clamp: 2; }
  .pcard .actions { padding-top: 4px; gap: 6px; }
  .pcard .actions .btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
  .group-h .g-desc { display: none; }
  .group-h .g-ico { width: 38px; height: 38px; border-radius: 11px; }
  .group-h .g-title { font-size: 18px; }
  .featured .panel .row .btn { flex: 1 1 100%; }
  .stage > img { aspect-ratio: 4 / 3; }
  .cards, .contact-list { gap: 12px; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  .pcard { grid-template-columns: 80px minmax(0, 1fr); }
  .seg button { padding: 5px 10px; }
  .tools { gap: 6px; }
}

/* =====================================================================
   Runde 3 (Oktober 2026): Karten, Downloads, Hero-Zahlen, Tab-Leiste,
   Kontakt, Barrierefreiheit, 404
   ===================================================================== */

/* „Neu"-Abzeichen */
.status.new { color: var(--accent); border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .1); }

/* Karten: ganze Karte klickbar, ein Knopf, „Details"-Hinweis */
.pcard { cursor: pointer; }
.pcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pcard .actions { align-items: center; justify-content: space-between; }
.pcard .more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .2s, gap .2s; }
.pcard .more .chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: -45deg; }
.pcard:hover .more { color: var(--ink); gap: 9px; }

/* Downloads: passendes System groß */
.dl.primary { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); padding: 16px 18px; }
.dl.primary strong { font-size: 17px; }
.dl-other { margin: 14px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* ================================
   ENHANCED DOWNLOAD BUTTONS WITH LIQUID EFFECT
   ================================ */
.dl {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface), var(--raised));
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dl:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 9px 25px rgba(0, 0, 0, 0.2), 0 0 14px rgba(var(--accent-rgb), 0.15);
}

.dl:active {
  transform: scale(0.975);
}

.dl.primary {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.08));
  padding: 18px 20px;
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.12), inset 3px 0 0 var(--accent);
}

.dl.primary:hover {
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.12));
}

/* Liquid wave effect */
.dl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5%;
  bottom: -105%;
  width: 110%;
  height: 110%;
  background: linear-gradient(to bottom, var(--accent-2), var(--accent) 55%, rgba(var(--accent-rgb), 0.8));
  border-radius: 48% 52% 0 0 / 12% 12% 0 0;
  transition: bottom 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  opacity: 0.15;
}

.dl:hover::before {
  bottom: -3%;
  opacity: 0.2;
}

.dl.primary::before {
  opacity: 0.25;
}

.dl.primary:hover::before {
  opacity: 0.35;
}

/* Wave animation */
.dl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5%;
  bottom: -105%;
  width: 110%;
  height: 20px;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-2%) rotate(-1deg);
  transition: bottom 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
  box-shadow: 0 -2px 7px rgba(var(--accent-rgb), 0.2);
}

.dl:hover::after {
  bottom: -3%;
  opacity: 1;
  animation: wave 2.2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% {
    transform: translateX(-2%) rotate(-1deg);
  }
  50% {
    transform: translateX(2%) rotate(1deg);
  }
}

/* Icon container */
.dl .dl-ico {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--raised), var(--bg-2));
  border: 1px solid var(--line);
  color: var(--accent);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.dl:hover .dl-ico {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--accent);
  transform: scale(1.02);
}

.dl.primary .dl-ico {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.dl.primary:hover .dl-ico {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* Download icon animation */
.dl .dl-ico svg {
  width: 23px;
  height: 23px;
  transition: transform 0.3s ease;
}

.dl:hover .dl-ico svg {
  transform: translateY(2px);
}

/* Text content */
.dl .dl-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 10px;
  z-index: 2;
}

.dl strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 1.2;
  transition: transform 0.25s ease;
}

.dl small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.78;
  transform: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.dl:hover small {
  opacity: 1;
  color: color-mix(in srgb, var(--ink) 55%, var(--muted));
}

.dl.primary strong {
  font-size: 17px;
}

.dl.primary small {
  font-size: 13px;
}

/* Arrow icon */
.dl .arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.dl:hover .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.dl.primary .arrow {
  color: var(--on-accent);
}

.dl.primary:hover .arrow {
  color: var(--on-accent);
}

/* Ripple effect (added as span) */
.dl .ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 20;
  animation: ripple 0.65s ease-out forwards;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(42);
    opacity: 0;
  }
}

/* Unsupported state (mobile) */
.dl.unsupported {
  cursor: not-allowed;
  background: linear-gradient(145deg, var(--bg-2), var(--raised));
  border-color: var(--line);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  opacity: 0.92;
}

.dl.unsupported:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.dl.unsupported::before,
.dl.unsupported::after {
  display: none;
}

.dl.unsupported .dl-ico {
  background: var(--bg-2);
  border-color: var(--line);
}

.dl.unsupported .dl-ico svg {
  opacity: 0.45;
}

.dl.unsupported strong {
  color: var(--muted);
}

.dl.unsupported small {
  opacity: 1;
  transform: translateY(0);
  color: var(--line-2);
}

/* Mobile adjustments */
@media (max-width: 780px) {
  .dl {
    padding: 12px 16px;
  }
  .dl .dl-ico {
    width: 40px;
    height: 40px;
  }
  .dl strong {
    font-size: 14px;
  }
  .dl small {
    font-size: 11px;
  }
}

/* Hero: Zahlenzeile */
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 26px 0 0; padding: 0; }
.hero-facts div { display: flex; align-items: baseline; gap: 8px; }
.hero-facts b { font: 700 26px var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 14px; color: var(--muted); }
.hero-facts:empty { display: none; }
.hero .row { margin-top: 26px; }

/* Kontakt: kompakte Zeile */
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cbtn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cbtn:hover { color: var(--ink); border-color: rgba(var(--accent-rgb), .55); transform: translateY(-2px); box-shadow: 0 18px 36px -26px rgba(var(--accent-rgb), .7); }
.cbtn .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); color: var(--accent); }
.cbtn strong { display: block; font: 700 16px var(--font-display); }
.cbtn small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.cbtn.copy-mail { padding: 12px; margin-left: -4px; }
.cbtn.copy-mail .ico { color: var(--muted); }
.cbtn.copy-mail:hover .ico { color: var(--accent); }

/* Dialog: Teilen-Knopf */
.pd-head .icon-btn.share { margin-left: auto; }
.pd-head .icon-btn.share + .icon-btn { margin-left: 0; }

/* Untere Tab-Leiste (nur Handy) */
.tabbar { display: none; }
@media (max-width: 780px) {
  .tabbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border: 1px solid var(--line-2); border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); translate: 0 calc(100% + 24px); transition: translate .35s cubic-bezier(.2,.7,.2,1); }
  .tabbar.show { translate: 0 0; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 6px; border-radius: 14px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; transition: color .2s, background .2s; }
  .tabbar a[aria-current="true"] { color: var(--accent); background: rgba(var(--accent-rgb), .1); }
  .tabbar a svg { transition: transform .2s; }
  .tabbar a:active svg { transform: scale(.9); }
  body { padding-bottom: 84px; }
  .to-top { bottom: 92px; }
  .menu-btn { display: none; }
  nav.main { display: none !important; }
  .hero-facts { gap: 6px 22px; margin-top: 20px; }
  .hero-facts b { font-size: 22px; }
}
@media (max-width: 560px) {
  .contact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .cbtn:not(.copy-mail) { grid-column: 1; }
  .cbtn.copy-mail { grid-column: 2; margin: 0; }
}

/* 404 */
.nf { min-height: calc(100dvh - 66px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.nf .wrap { max-width: 560px; display: grid; justify-items: center; gap: 10px; }
.nf-logo { border-radius: 24px; box-shadow: 0 18px 40px -14px rgba(var(--accent-rgb), .7); margin-bottom: 8px; }
.nf-code { font: 700 clamp(64px, 14vw, 120px)/1 var(--font-display); letter-spacing: -.05em; color: var(--accent); margin: 0; }
.nf h1 { font-size: clamp(28px, 5vw, 40px); }
.nf p { color: var(--muted); max-width: 32em; }
.nf .row { justify-content: center; margin-top: 10px; }

/* ---------- Barrierefreiheits-Modus ----------
   Mehr Kontrast, größere Schrift, unterstrichene Links, keine Bewegung. */
:root[data-a11y="1"] {
  --muted: #d6d2df; --line: #4a4657; --line-2: #6b6680; --accent: #ff5c75; --accent-rgb: 255, 92, 117; --leaf: #9ef07e; --leaf-rgb: 158, 240, 126; --amber: #ffc46b; --sky: #8ec8ff;
  --grid: rgba(255, 255, 255, .08);
}
:root[data-a11y="1"][data-theme="light"] {
  --muted: #2e2b36; --line: #b9b5c6; --line-2: #8b8699; --accent: #b0102f; --accent-rgb: 176, 16, 47; --leaf: #1f6a14; --leaf-rgb: 31, 106, 20; --amber: #7a4700; --sky: #134a8f;
}
:root[data-a11y="1"] body { font-size: 19px; line-height: 1.7; }
:root[data-a11y="1"] a:not(.btn):not(.brand):not(.badge):not(.pcard):not(.dl):not(.cbtn):not(.tabbar a):not(nav.main a) { text-decoration: underline; text-underline-offset: 3px; }
:root[data-a11y="1"] .pcard p, :root[data-a11y="1"] .card p, :root[data-a11y="1"] .info p, :root[data-a11y="1"] .legal p, :root[data-a11y="1"] .legal li { font-size: 1.02em; }
:root[data-a11y="1"] .pcard .meta, :root[data-a11y="1"] .stat span, :root[data-a11y="1"] .pcard .more, :root[data-a11y="1"] .g-desc, :root[data-a11y="1"] .hero-facts span, :root[data-a11y="1"] .cbtn small { font-size: 15px; }
:root[data-a11y="1"] .status { font-size: 13px; }
:root[data-a11y="1"] :focus-visible { outline-width: 4px; outline-offset: 4px; }
:root[data-a11y="1"] .icon-btn#a11y { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-a11y="1"] .hero-bg, :root[data-a11y="1"] .progress, :root[data-a11y="1"] .spot::before { display: none; }
:root[data-a11y="1"] .btn-primary::after { display: none; }
:root[data-a11y="1"] *, :root[data-a11y="1"] *::before, :root[data-a11y="1"] *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
:root[data-a11y="1"] .reveal { opacity: 1; translate: 0 0; }
:root[data-a11y="1"] html { scroll-behavior: auto; }
:root[data-a11y="1"] body::before { display: none; }
:root[data-a11y="1"] .hero::before { animation: none; }
:root[data-a11y="1"] .pcard { opacity: 1 !important; transform: none !important; }
