/* =====================================================================================================
   Elvuro – Hauptwebsite
   Branding wie die Elvuro-Anmeldeseite: fast schwarzer Grund (#07060a), Rotverläufe von Weinrot bis Hellrot,
   offizielles Logo, Schrift „Inter“ (lokal eingebunden, SIL OFL – siehe /fonts/OFL.txt).
   Animationen nur über transform/opacity; „Bewegung reduzieren“ wird respektiert.
   ===================================================================================================== */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'), url(/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'), url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #07060a;
  --bg-2: #0d0a10;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 120, 135, .35);
  --text: #f6eff1;
  --text-2: #cbbfc4;     /* ≈ 11:1 auf --bg */
  --muted: #a3969c;      /* ≈ 7:1 auf --bg */
  --red: #ff4d5e;
  --red-deep: #b3132b;
  --red-dark: #7a0c1e;
  --red-light: #ff9aa4;
  --wine: #4a0b16;
  --grad: linear-gradient(135deg, #9e0f26 0%, #d42a40 55%, #ff4d5e 100%);
  --grad-text: linear-gradient(95deg, #ffffff 0%, #ffd5d9 35%, #ff7a87 75%, #ff4d5e 100%);
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font: 'Inter Variable', 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: rgba(255, 255, 255, .07); padding: .1em .4em; border-radius: 6px; }
.break { word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--red-light); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: #fff; color: #111; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 880px; }

/* ---------- Hintergrund: statische Lichtflächen (kein Dauer-Blur-Animieren → sparsam) ---------- */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 10% -10%, rgba(120, 14, 32, .55) 0%, transparent 62%),
    radial-gradient(900px 650px at 105% 30%, rgba(90, 10, 26, .45) 0%, transparent 60%),
    radial-gradient(800px 600px at 40% 110%, rgba(255, 77, 94, .10) 0%, transparent 70%),
    linear-gradient(160deg, #0c070b 0%, #07060a 45%, #0a0609 100%); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.g1 { width: 520px; height: 520px; background: radial-gradient(circle at 40% 40%, #c8102e, #5a0716 70%); top: -200px; left: -160px; }
.g2 { width: 420px; height: 420px; background: radial-gradient(circle at 60% 60%, #8f0d24, #2b040b 70%); top: 40%; right: -180px; opacity: .4; }
.g3 { width: 300px; height: 300px; background: #ff5a6a; bottom: -140px; left: 30%; opacity: .1; }
.grid-lines { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }

/* ---------- Buttons ---------- */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  color: #fff; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s; position: relative; isolation: isolate; text-align: center; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .92rem; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn-xl { --h: 60px; padding: 0 32px; font-size: 1.08rem; }
.btn-primary { background: var(--grad); box-shadow: 0 10px 30px rgba(212, 42, 64, .35), inset 0 1px 0 rgba(255, 255, 255, .25); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.btn-primary::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; background: var(--grad); filter: blur(14px); opacity: 0; transition: opacity .3s var(--ease); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(212, 42, 64, .5), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:hover::after { opacity: .55; }
.btn-ghost { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { color: #fff; background: rgba(255, 77, 94, .12); border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 77, 94, .18); }
.btn:active { transform: translateY(0); }
.btn.is-unavailable { opacity: .75; }

/* ---------- Header / Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background-color .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(9, 7, 11, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--border); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 6px 16px rgba(255, 77, 94, .35)); }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
/* Sprachumschalter DE / EN (Sprache steckt in der Adresse, nichts wird gespeichert) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang-switch a { min-width: 38px; padding: 5px 10px; border-radius: 999px; font-size: .82rem; font-weight: 650; letter-spacing: .04em; color: var(--muted); text-align: center; text-decoration: none; transition: color .2s var(--ease), background-color .2s var(--ease); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a:focus-visible { outline: 2px solid var(--red-light); outline-offset: 2px; }
.lang-switch a[aria-current="true"] { color: #fff; background: var(--grad); }
.legal-lang-note { margin-bottom: 18px; border-color: var(--border-strong); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current='true'] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links a[aria-current='true'] { box-shadow: inset 0 -2px 0 var(--red); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 20px 24px max(24px, env(safe-area-inset-bottom)); background: rgba(9, 7, 11, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
  .nav-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav-links { flex-direction: column; gap: 2px; }
  .nav-links a { padding: 14px 16px; font-size: 1.1rem; }
  .nav-links a[aria-current='true'] { box-shadow: inset 3px 0 0 var(--red); }
  .nav-cta { --h: 52px; font-size: 1.02rem; }
  .lang-switch { align-self: flex-start; }
  .lang-switch a { min-width: 52px; padding: 9px 14px; font-size: .95rem; }
  .site-header.menu-open { background: rgba(9, 7, 11, .97); border-bottom-color: var(--border); }
  body.no-scroll { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 96px); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo { position: relative; width: 96px; height: 96px; margin-bottom: 28px; }
.hero-logo img { position: relative; width: 96px; height: 96px; filter: drop-shadow(0 14px 34px rgba(255, 77, 94, .45)) drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); animation: float 7s ease-in-out infinite; }
.hero-ring { position: absolute; inset: -18px; border-radius: 34px; background: radial-gradient(circle, rgba(255, 77, 94, .35), transparent 70%); opacity: .8; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-title .line { display: block; }
.hero-title { font-size: clamp(2.1rem, 6.2vw, 4.6rem); max-width: 18ch; margin-bottom: 22px; letter-spacing: -.035em; line-height: 1.05; }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--text-2); max-width: 680px; margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-hints { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: .95rem; }
.hero-hints li { display: inline-flex; align-items: center; gap: 8px; }
.hero-hints .icon { width: 1.05em; height: 1.05em; color: var(--red-light); }
.dl-message { margin: 18px auto 0; max-width: 560px; padding: 12px 16px; border-radius: var(--radius-s); background: rgba(255, 77, 94, .1); border: 1px solid var(--border-strong); color: var(--text); font-size: .95rem; }
.dl-message a { font-weight: 700; }

.hero-shot { margin-top: clamp(44px, 7vw, 80px); max-width: 1120px; }
.window { position: relative; border-radius: 18px; overflow: hidden; background: #0f0d14; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 77, 94, .06), 0 0 120px rgba(255, 77, 94, .16); }
.window::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #120f16; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3238; }
.window-bar span:first-child { background: #ff5f57; } .window-bar span:nth-child(2) { background: #febc2e; } .window-bar span:nth-child(3) { background: #28c840; }
.window-bar em { margin-left: 10px; font-style: normal; font-size: .8rem; color: var(--muted); }
.window img { width: 100%; height: auto; }
.hero-shot figcaption { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head h2, .web-copy h2, .support-card h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-light); background: rgba(255, 77, 94, .1); border: 1px solid rgba(255, 77, 94, .25); }
.section-lead { color: var(--text-2); font-size: 1.08rem; margin: 0; }

.card { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background-color .3s; overflow: hidden; }
.feature::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px 200px at 0% 0%, rgba(255, 77, 94, .14), transparent 70%); }
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, .35), 0 0 40px rgba(255, 77, 94, .1); }
.feature:hover::before { opacity: 1; }
.feature h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.feature p { color: var(--text-2); margin: 0; font-size: 1rem; }
.feature-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: #fff; background: var(--grad); box-shadow: 0 10px 24px rgba(212, 42, 64, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.feature-icon .icon { width: 24px; height: 24px; }
.feature-icon.big { width: 60px; height: 60px; border-radius: 18px; }
.feature-icon.big .icon { width: 30px; height: 30px; }

/* Web */
.web-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 56px); overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 77, 94, .16), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); }
.web-copy p { color: var(--text-2); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.check-list .icon { color: var(--red); margin-top: .2em; width: 1.1em; height: 1.1em; }
.web-action { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.web-action .btn { width: 100%; max-width: 380px; }
.web-url { margin: 0; color: var(--muted); font-size: .9rem; word-break: break-all; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--text-2); }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #8a8088; }
body[data-web-state='up'] .status-pill .dot { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }
body[data-web-state='down'] .status-pill .dot { background: #ff4d5e; box-shadow: 0 0 0 4px rgba(255, 77, 94, .15); }
.notice-info { background: rgba(255, 255, 255, .04) !important; border-color: rgba(255, 255, 255, .14) !important; color: var(--text-2) !important; }
.notice { margin: 0; padding: 12px 16px; border-radius: var(--radius-s); background: rgba(255, 184, 77, .08); border: 1px solid rgba(255, 184, 77, .3); color: #f3e2c7; font-size: .92rem; text-align: left; }

/* Download */
.download-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 560px; margin: 0 auto; }
@media (min-width: 1180px) { .download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; align-items: start; } }
.download-card { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.download-brand { display: flex; align-items: center; gap: 18px; }
.download-brand img { width: 64px; height: 64px; filter: drop-shadow(0 10px 24px rgba(255, 77, 94, .35)); }
.download-brand h3 { font-size: 1.5rem; margin: 0 0 2px; }
.download-brand p { margin: 0; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.download-card .dl-message { margin: 0; }
.meta { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--border); }
.meta > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.meta dt { color: var(--muted); font-weight: 600; font-size: .92rem; }
.meta dd { margin: 0; min-width: 0; }
.download-card > .muted.small, .download-card > .notice { margin: 0; }
.reqs h4 { font-size: 1rem; margin: 0 0 6px; }
.reqs ul { margin: 0; padding-left: 1.2em; color: var(--text-2); }

/* ---------- Plattform-Downloads (R20) – mobile-first ---------- */
/* Hero: passendes Angebot zum erkannten Gerät */
.hero-download { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.offer { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.offer[hidden] { display: none; }
.offer .cta-row { width: 100%; flex-direction: column; align-items: stretch; max-width: 420px; }
.offer .cta-row .btn { width: 100%; }
@media (min-width: 601px) { .offer .cta-row { flex-direction: row; justify-content: center; align-items: center; max-width: none; } .offer .cta-row .btn { width: auto; } }
.offer-note { margin: 0; max-width: 600px; color: var(--muted); font-size: .93rem; }
.offer-note a { font-weight: 600; }
/* je Zustand nur die passende Notiz zeigen (Zustand wird live von main.js aktualisiert) */
.offer:not([data-state='available']) [data-when='available'], .offer:not([data-state='external']) [data-when='external'],
.offer:not([data-state='missing']) [data-when='missing'], .offer:not([data-state='integrity']) [data-when='integrity'] { display: none; }
/* iPhone/iPad: niemals eine APK anbieten */
body[data-ios='1'] [data-apk-only] { display: none !important; }
body:not([data-ios='1']) [data-ios-only] { display: none !important; }

.btn-label { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.btn-sub { font-size: .76em; font-weight: 600; opacity: .85; }
.btn .icon { flex: none; }
.btn.is-busy { pointer-events: none; opacity: .8; }

/* Plattform-Auswahl */
.platform-switch { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.platform-detected { margin: 0; font-size: .9rem; color: var(--text-2); }
.platform-switch ul { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 420px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 22px; }
@media (min-width: 601px) { .platform-switch ul { display: flex; width: auto; max-width: none; border-radius: 999px; } }
.platform-switch a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  color: var(--text-2); font-weight: 600; font-size: .92rem; transition: background-color .2s, color .2s; }
.platform-switch a:hover { color: #fff; background: rgba(255, 77, 94, .12); }
.platform-switch a[aria-current='true'] { color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(212, 42, 64, .3); }
.platform-switch .icon { width: 1.1em; height: 1.1em; }

/* Download-Karten */
.platform-badge { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); box-shadow: 0 10px 24px rgba(212, 42, 64, .3); }
.platform-badge .icon { width: 28px; height: 28px; color: #fff; }
.download-brand > div { min-width: 0; flex: 1; }
.download-brand h3 { font-size: 1.3rem; }
.download-card { position: relative; }
.detected-badge { display: none; position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(255, 77, 94, .2); border: 1px solid var(--border-strong); }
.download-card.is-detected { border-color: var(--border-strong); box-shadow: 0 0 0 1px rgba(255, 77, 94, .25), var(--shadow); }
.download-card.is-detected .detected-badge { display: inline-block; }
.download-card.is-detected { order: -1; }
@media (min-width: 1180px) { .download-card.is-detected { order: 0; } .download-card { padding: 30px 26px; } .download-card .btn-lg { padding: 0 16px; font-size: .98rem; } }
.download-card.is-detected .download-brand { margin-top: 14px; }
.download-card .download-actions { flex-direction: column; }
.download-card .download-actions .btn { width: 100%; }
.badge-ok { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #b8f5d2; background: rgba(61, 220, 132, .12); border: 1px solid rgba(61, 220, 132, .35); }

/* Anleitungen */
.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; color: var(--text-2); text-align: left; }
.steps strong { color: var(--text); }
.icon.inline { width: 1.1em; height: 1.1em; vertical-align: -.2em; }
.a2hs, .help { width: 100%; max-width: 600px; text-align: left; border: 1px solid var(--border); border-radius: var(--radius-s); background: rgba(255, 255, 255, .03); }
.a2hs summary, .help summary { cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; font-weight: 600; font-size: .95rem; color: var(--text); }
.a2hs summary .icon { width: 1.2em; height: 1.2em; color: var(--red-light); }
.a2hs[open], .help[open] { border-color: var(--border-strong); }
.a2hs > .steps, .a2hs > p { margin: 0 16px 12px; }
.help-body { padding: 0 16px 14px; display: grid; gap: 10px; font-size: .93rem; color: var(--text-2); }
.help-body p { margin: 0; }

/* Hinweisfeld: Fortschritt, Erfolg, Fehler */
.dl-panel { width: 100%; max-width: 600px; margin: 0 auto; padding: 16px; border-radius: var(--radius-s); border: 1px solid var(--border-strong); background: rgba(255, 77, 94, .07);
  display: grid; gap: 12px; text-align: left; font-size: .95rem; outline: none; }
.dl-panel[hidden], .dl-panel [hidden] { display: none !important; }
.dl-panel .dl-done { display: grid; gap: 10px; }
.dl-panel p { margin: 0; }
.dl-progress { display: grid; gap: 10px; }
.dl-progress-head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.spinner { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .2); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .2s linear; }
.progress.is-indeterminate span { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.dl-progress .btn { justify-self: start; }
.dl-done-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; color: #fff; }
.dl-done-title .icon { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; color: #07060a; background: #3ddc84; }
.dl-guide { display: grid; gap: 10px; }
.dl-guide-toggle { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s, border-color .15s; }
.dl-guide-toggle:hover { background: rgba(255, 255, 255, .08); border-color: var(--border-strong); }
.dl-guide-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.dl-guide-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.dl-guide-toggle[aria-expanded="false"] .icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .dl-guide-toggle, .dl-guide-toggle .icon { transition: none; } }
.dl-error { display: grid; gap: 10px; color: var(--text); }
.dl-error-title { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dl-error-title .icon { flex: none; width: 22px; height: 22px; color: #ffb84d; }
.dl-panel .cta-row { justify-content: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; width: auto; }
.dl-panel .cta-row .btn { width: auto; }
.download-card .dl-panel { max-width: none; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq { background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); border: 1px solid var(--border); border-radius: var(--radius-s); transition: border-color .25s, background-color .25s; }
.faq[open] { border-color: var(--border-strong); background: rgba(255, 77, 94, .05); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; font-size: 1.05rem; position: relative; border-radius: inherit; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--red-light); border-bottom: 2px solid var(--red-light);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: #fff; }
.faq-body { padding: 0 22px 18px; color: var(--text-2); }
.faq-body p:last-child { margin-bottom: 0; }

/* Support */
.support-card { text-align: center; padding: clamp(28px, 5vw, 52px); display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: radial-gradient(500px 240px at 50% 0%, rgba(255, 77, 94, .14), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); }
.support-card h2 { margin: 6px 0 0; }
.support-card p { max-width: 600px; margin: 0; }
.support-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(5, 4, 7, .6); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin: 12px 0 0; }
.footer-col h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); text-decoration: none; }
.footer-col a[href^="mailto:"] { overflow-wrap: break-word; } /* Notfall-Umbruch, falls selbst ein Teil vor/nach dem @ nicht passt */
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem;
  padding-right: 60px; /* Platz für den fixierten „Nach oben“-Button (50px + Abstand), damit er „Made by …“ nicht verdeckt */ }
.footer-bottom p { margin: 0; }
.credit-name { font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Zurück nach oben ---------- */
.to-top { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 30px rgba(212, 42, 64, .45); text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
.to-top:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 36px rgba(212, 42, 64, .6); }
.to-top .icon { width: 22px; height: 22px; }

/* ---------- Rechtsseiten / Hinweisseiten ---------- */
.legal-main { padding-top: clamp(32px, 6vw, 64px); }
.legal-card { padding: clamp(24px, 5vw, 52px); }
.legal-card h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal-card h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-top: 1.6em; }
.legal-card h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal-card ul { padding-left: 1.2em; }
.legal-card li { margin-bottom: .5em; color: var(--text-2); }
.legal-card p { color: var(--text-2); }
.legal-card strong { color: var(--text); }
.lead-sm { font-size: 1.08rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.legal-toc a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; }
.legal-toc a:hover { border-color: var(--border-strong); background: rgba(255, 77, 94, .1); }
.legal-version { color: var(--muted) !important; font-size: .9rem; }
.legal-alias { color: var(--muted); font-weight: 600; }
.legal-sep { border: 0; border-top: 1px solid var(--border); margin: 36px 0 20px; }
.legal-note { font-size: .92rem; }
.legal-card.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.legal-card.center .cta-row { margin-top: 18px; }
.page-logo { width: 72px; height: 72px; margin-bottom: 16px; filter: drop-shadow(0 10px 26px rgba(255, 77, 94, .4)); }

/* ---------- Scroll-Animationen (nur mit JS aktiv; ohne JS ist alles sichtbar) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .container { padding: 0 18px; }
  .web-card { grid-template-columns: 1fr; }
  .web-action .btn { max-width: none; }
  .meta > div { grid-template-columns: 1fr; gap: 2px; }
  .window-bar { height: 28px; } .window-bar span { width: 9px; height: 9px; } .window-bar em { font-size: .72rem; }
  .window { border-radius: 12px; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; }
  .cta-row .btn { width: 100%; }
  .download-actions { flex-direction: column; }
  .download-actions .btn { width: 100%; }
  .support-links { flex-direction: column; width: 100%; }
  .support-links .btn { width: 100%; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .support-links .btn > span { white-space: normal; min-width: 0; text-align: left; }
  .support-links .btn strong { display: block; }
  .support-links .btn .sep { display: none; }
  .support-links .btn .addr { overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .card { padding: 22px; }
  .hero-logo, .hero-logo img { width: 80px; height: 80px; }
  .btn-xl { --h: 56px; padding: 0 22px; }
}

/* Sehr schmale Handys (z. B. 320 px): Footer-Spalten untereinander, damit „Nutzungsbedingungen“ und die
   E-Mail-Adressen nebeneinander nicht breiter als der Bildschirm werden. */
@media (max-width: 360px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn, .card, .faq { border: 1px solid CanvasText; }
  .platform-switch a[aria-current='true'] { outline: 2px solid Highlight; }
  .progress span { background: Highlight; }
  .text-grad, .brand-name, .credit-name { color: CanvasText; background: none; }
}
