@import url("../fonts/roboto.css");

/* ---- Theme: dunkel (Standard) */
:root {
    color-scheme: dark;
    --bg: #0b1020;
    --line: rgba(255, 255, 255, .08);
    --text: #e7e9f3;
    --text-soft: #c6cbe0;
    --muted: #9aa3c0;
    --strong: #ffffff;
    --link: #c4b5fd;
    /* Leitfarbe: dasselbe Violett wie das Farbschema „Violett“ der App (dort die Vorgabe) */
    --accent: #8b5cf6;
    --accent2: #d946ef;
    --orange: #ffb020;
    --pink: var(--accent);
    --cyan: #c4b5fd;
    --blue: var(--accent);
    --grad: linear-gradient(120deg, var(--accent), var(--accent2));
    --radius: 16px;
    --glow1: rgba(139, 92, 246, .20);
    --glow2: rgba(217, 70, 239, .12);
    --nav-bg: rgba(11, 16, 32, .72);
    --surface: rgba(255, 255, 255, .06);
    --surface-2: rgba(255, 255, 255, .1);
    --surface-soft: rgba(255, 255, 255, .02);
    --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
    --card-shadow: none;
    --input-bg: #0a0f1f;
    --pill-bg: rgba(139, 92, 246, .14);
    --pill-line: rgba(139, 92, 246, .35);
    --err-text: #fecaca;
    --ok-text: #cffafe;
    --tag-ok: #86efac;
    --tag-bad: #fca5a5;
    --tag-wait: #fde68a;
}

/* ---- Theme: hell */
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f7fb;
    --line: rgba(15, 23, 42, .1);
    --text: #14172b;
    --text-soft: #3b4160;
    --muted: #5b6280;
    --strong: #0b1020;
    --link: #6d28d9;
    --accent: #7c3aed;
    --accent2: #c026d3;
    --cyan: #7c3aed;
    --glow1: rgba(124, 58, 237, .10);
    --glow2: rgba(192, 38, 211, .09);
    --nav-bg: rgba(255, 255, 255, .78);
    --surface: rgba(15, 23, 42, .04);
    --surface-2: rgba(15, 23, 42, .08);
    --surface-soft: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --input-bg: #ffffff;
    --pill-bg: rgba(124, 58, 237, .08);
    --pill-line: rgba(124, 58, 237, .3);
    --err-text: #991b1b;
    --ok-text: #155e75;
    --tag-ok: #15803d;
    --tag-bad: #b91c1c;
    --tag-wait: #a16207;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: radial-gradient(1200px 600px at 75% -10%, var(--glow1), transparent 60%),
                radial-gradient(900px 500px at 0% 10%, var(--glow2), transparent 60%),
                var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font: 16px/1.6 Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
section { padding: 90px 0; }
.center { text-align: center; }

/* ---- Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { color: var(--text); font-weight: 500; }
.nav nav a:hover { color: var(--strong); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--strong); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.small { font-size: 1.05rem; }
.brand img { border-radius: 8px; }

/* ---- Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer;
    background: var(--grad); color: #fff !important; font-weight: 700; font-size: 1rem; text-decoration: none !important;
    box-shadow: 0 10px 30px -8px rgba(139, 92, 246, .55); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(139, 92, 246, .7); }
.btn-ghost { background: var(--surface); color: var(--text) !important; box-shadow: none; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: .92rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- Hero */
.hero { padding: 80px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--pill-bg); color: var(--cyan); border: 1px solid var(--pill-line); font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 34em; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero small { color: var(--muted); }

/* App-Mockup (reines CSS) */
.mock { border-radius: 14px; background: #f7f7f9; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); color: #1f2328; font-size: 11px; }
.mock .bar { height: 30px; background: #fff; border-bottom: 1px solid #ddd; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.mock .bar b { margin-left: 8px; font-size: 11px; }
.mock .panes { display: grid; grid-template-columns: 18% 30% 1fr 24%; height: 330px; }
.mock .pane { border-right: 1px solid #e3e3e8; padding: 8px; overflow: hidden; }
.mock .feeds div { padding: 5px 6px; border-radius: 5px; display: flex; justify-content: space-between; }
.mock .feeds div.on { background: #ede9fe; }
.mock .feeds em { font-style: normal; background: #6b7280; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 9px; }
.mock .list div { padding: 5px 4px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock .list div.u { font-weight: 700; }
.mock .list div.on { background: #7c3aed; color: #fff; }
.mock .prev { background: #fff; }
.mock .prev .img { height: 120px; border-radius: 6px; background: linear-gradient(135deg, #c026d3, #7c3aed 60%, #4f46e5); margin: 6px 0 8px; }
.mock .prev .ln { height: 7px; background: #e5e7eb; border-radius: 4px; margin: 6px 0; }
.mock .links { background: #f0f0f3; }
.mock .grp { background: #fff; border: 1px solid #d6d6dc; border-radius: 5px; padding: 6px; margin-bottom: 6px; }
.mock .grp b { display: block; font-size: 10px; }
.mock .grp s { text-decoration: none; color: #7c3aed; font-size: 9px; }
.mock .grp code { display: block; font: 9px Consolas, monospace; color: #374151; word-break: break-all; margin-top: 3px; }
.mock .copy { float: right; background: #7c3aed; color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 9px; }

/* ---- Logos/Trust */
.trust { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: .95rem; padding-top: 10px; }
.trust span::before { content: "✓ "; color: var(--cyan); font-weight: 700; }

/* ---- Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.card { background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(139, 92, 246, .12); margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; }

/* ---- Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; counter-reset: s; }
.step { position: relative; padding: 26px 26px 26px 76px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 24px; top: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; }

/* ---- Pricing */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-top: 40px; }
.price-card { background: linear-gradient(160deg, rgba(217, 70, 239, .12), rgba(139, 92, 246, .12)); border: 1px solid rgba(139, 92, 246, .35); border-radius: 22px; padding: 36px; box-shadow: 0 30px 60px -30px rgba(139, 92, 246, .5); }
.price { font-size: 4rem; font-weight: 800; line-height: 1; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 20px 0; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-soft); margin: 12px 0; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pink); flex: none; }
.pay { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pay span { font-size: .78rem; padding: 4px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--text-soft); }
.alert { padding: 14px 18px; border-radius: 12px; margin: 14px 0; }
.alert-err { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: var(--err-text); }
.alert-ok { background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35); color: var(--ok-text); }

/* ---- FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; background: var(--surface-soft); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* ---- Key-Box */
.keybox { font: 700 clamp(1.1rem, 3vw, 1.7rem) Consolas, monospace; letter-spacing: 2px; background: var(--input-bg); border: 1px dashed rgba(139, 92, 246, .6); border-radius: 12px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 18px 0; word-break: break-all; }

/* ---- Forms */
input[type=email], input[type=text], input[type=password] { width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); font-size: 1rem; font-family: inherit; }
input:focus { outline: 2px solid rgba(139, 92, 246, .5); }
.narrow { max-width: 620px; margin: 0 auto; }

/* ---- Legal */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-soft); }

/* ---- Admin */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td code { font-size: .85rem; }
.tag { font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }
.tag.ok { background: rgba(34, 197, 94, .18); color: var(--tag-ok); }
.tag.bad { background: rgba(239, 68, 68, .18); color: var(--tag-bad); }
.tag.wait { background: rgba(250, 204, 21, .18); color: var(--tag-wait); }
.inline { display: inline; }
.linkbtn { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font: inherit; }

/* ---- Theme-Umschalter */
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
                color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 17px; padding: 0; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: inline; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
:root[data-theme="light"] .mock { box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .08); }
:root[data-theme="light"] .price-card { background: linear-gradient(160deg, #f5f3ff, #fdf4ff); box-shadow: 0 30px 60px -30px rgba(139, 92, 246, .35); }

/* ---- Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); }

@media (max-width: 900px) {
    .hero-grid, .price-wrap { grid-template-columns: 1fr; }
    .features, .steps { grid-template-columns: 1fr; }
    .nav nav a:not(.btn) { display: none; }
    .mock { transform: none; }
}
/* Handy: Kopfzeile enger, sonst ragt „Download“ über den Rand */
@media (max-width: 520px) {
    .wrap { padding: 0 16px; }
    .nav nav { gap: 8px; }
    .brand { font-size: 1.12rem; gap: 7px; }
    .brand img { width: 28px; height: 28px; }
    .nav .btn-sm { padding: 8px 12px; }
}

/* ---- Feedback-Formular */
.form { display: grid; gap: 10px; margin-top: 24px; }
.form label { font-weight: 600; margin-top: 8px; }
.form textarea { width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg, #0a0f1f);
                 color: var(--text); font: inherit; resize: vertical; min-height: 160px; }
.form textarea:focus { outline: 2px solid rgba(139, 92, 246, .5); }
.form .btn { justify-self: start; margin-top: 10px; }
.kinds { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.kinds legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.kinds label { margin: 0; font-weight: 500; padding: 9px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.kinds label:has(input:checked) { border-color: var(--pink); background: rgba(139, 92, 246, .12); }
.kinds input { accent-color: var(--pink); margin-right: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nav nav a.lang { font-size: .82rem; font-weight: 700; padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px; }


/* ---- Vertrauens-Siegel (Made and hosted in Germany, exali) */
.trust-badges { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.trust-badges a { display: inline-flex; opacity: .92; transition: opacity .15s, transform .15s; }
.trust-badges a:hover { opacity: 1; transform: translateY(-2px); }
.mhg-badge img { height: 58px; width: auto; }
.exali-badge img { height: 62px; width: 62px; border-radius: 6px; }
.mhg-badge .mhg-l { display: none; }
:root[data-theme="light"] .mhg-badge .mhg-l { display: block; }
:root[data-theme="light"] .mhg-badge .mhg-d { display: none; }

/* ---- Kopfbereich: Text oben, darunter die Bilder groß und unverzerrt */
.hero-stack .hero-text { max-width: 900px; }
.hero-stack .lead { max-width: 46em; }
.hero-stack .shot-large { max-width: 1160px; margin-top: 44px; }
.hero-stack .shot-large + .shot-large { margin-top: 28px; }

/* ---- Echter Screenshot im Kopfbereich */
.shot { display: block; border-radius: 12px; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transition: transform .35s ease;
        box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1); }
.shot:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
:root[data-theme="light"] .shot { box-shadow: 0 30px 60px -20px rgba(30, 27, 75, .35), 0 0 0 1px rgba(0, 0, 0, .08); }
@media (max-width: 900px) { .shot, .shot:hover { transform: none; } }

.showcase { padding: 30px 0 40px; }
.shot-large { display: block; max-width: 1100px; margin: 34px auto 0; border-radius: 14px; overflow: hidden;
              box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .1); }
.shot-large img { display: block; width: 100%; height: auto; }
:root[data-theme="light"] .shot-large { box-shadow: 0 30px 70px -30px rgba(30, 27, 75, .4), 0 0 0 1px rgba(0, 0, 0, .08); }

/* ---- Screenshot je Design (dunkel ist Standard) */
.shot .shot-l, .shot-large .shot-l { display: none; }
:root[data-theme="light"] .shot .shot-l, :root[data-theme="light"] .shot-large .shot-l { display: block; }
:root[data-theme="light"] .shot .shot-d, :root[data-theme="light"] .shot-large .shot-d { display: none; }
.shot, .shot-large { cursor: zoom-in; }

/* ---- Galerie (Lightbox) */
.lb { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(5, 8, 18, .92); backdrop-filter: blur(6px); }
.lb.open { display: block; }
html.lb-lock { overflow: hidden; }
.lb-stage { position: absolute; inset: 56px 70px 56px 70px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); cursor: zoom-in;
                opacity: 0; transform: scale(.97); transition: opacity .2s, transform .2s; }
.lb-stage img.ready { opacity: 1; transform: none; }
.lb-stage.zoom { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.lb-stage.zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-btn { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
          background: rgba(255, 255, 255, .08); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 12px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #d7dbea; font-size: .92rem; }
.lb-count { margin-left: 12px; color: #9aa3c0; }
@media (max-width: 700px) { .lb-stage { inset: 56px 8px 56px 8px; } .lb-prev, .lb-next { top: auto; bottom: 46px; transform: none; } }

/* ---- Plattformen im Kopf der Startseite: sechs Kacheln über die ganze Breite */
.platforms { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 34px 0 10px; max-width: 1000px; }
.platform { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 10px 16px; border-radius: 18px;
            border: 1px solid var(--line); background: var(--card-bg); box-shadow: var(--card-shadow); color: var(--text); text-decoration: none !important;
            transition: transform .15s, border-color .15s, box-shadow .15s; }
.platform:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .65); box-shadow: 0 22px 40px -22px rgba(139, 92, 246, .8); }
.platform svg { width: 46px; height: 46px; margin-bottom: 8px; fill: url(#icoGrad); color: #a855f7; filter: drop-shadow(0 6px 14px rgba(168, 85, 247, .35)); }
.platform b { font-size: 1rem; line-height: 1.2; color: var(--strong); white-space: nowrap; }
.platform small { font-size: .8rem; color: var(--muted); line-height: 1.2; }
.platform.soon { border-style: dashed; box-shadow: none; }
.platform.soon svg { opacity: .6; filter: none; }
@media (max-width: 900px) { .platforms { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .platforms { gap: 10px; } .platform { padding: 16px 6px 12px; } .platform svg { width: 38px; height: 38px; } .platform b { font-size: .92rem; } }

/* ---- Download-Seite (/download) */
.dl-head { padding-bottom: 20px; }
.dl-head h1 { margin-top: 18px; }
.dl-version { margin: 0 10px 0 0; vertical-align: middle; }
.dl-body { padding-top: 26px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.dl-card { position: relative; display: flex; flex-direction: column; text-align: start; padding: 26px 24px 22px; }
.dl-card.mine { grid-column: span 3; border-color: rgba(139, 92, 246, .6); box-shadow: 0 0 0 1px rgba(139, 92, 246, .35), 0 24px 60px -30px rgba(139, 92, 246, .55); }
.dl-card.mine .dl-os { width: 76px; height: 76px; }
.dl-card.mine .dl-os svg { width: 44px; height: 44px; }
.dl-card.mine .dl-btn, .dl-server .dl-btn { align-self: flex-start; }
.dl-card.mine .dl-note { font-size: 1.05rem; }
/* der Server (NAS, Docker) steht als breite Karte unter den Systemen */
.dl-server { grid-column: 1 / -1; }
.dl-badge { position: absolute; top: 16px; inset-inline-end: 18px; font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: var(--grad); color: #fff; }
.dl-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.dl-top h2 { font-size: 1.45rem; margin: 0 0 2px; }
.dl-top p { margin: 0; font-size: .95rem; }
.dl-os { width: 60px; height: 60px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(139, 92, 246, .13); }
.dl-os svg { width: 34px; height: 34px; fill: url(#icoGrad); color: #a855f7; }
.dl-note { color: var(--text-soft); margin: 0 0 18px; flex: 1; }
.dl-btn { justify-content: center; }
.dl-btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.dl-btn[aria-disabled="true"]:hover { transform: none; background: var(--surface); }
.dl-file { margin: 12px 0 0; font-size: .86rem; color: var(--muted); word-break: break-all; }
.dl-file b { color: var(--text); font-weight: 600; font-family: Consolas, "Cascadia Mono", monospace; font-size: .84rem; }
.dl-sum { margin-top: 6px; font-size: .84rem; color: var(--muted); }
.dl-sum summary { cursor: pointer; }
.dl-sum code { display: block; margin-top: 6px; font: .76rem Consolas, "Cascadia Mono", monospace; word-break: break-all; color: var(--text-soft); }
.dl-foot { margin-top: 34px; }
@media (max-width: 1000px) { .dl-grid { grid-template-columns: 1fr 1fr; } .dl-card.mine { grid-column: span 2; } }
@media (max-width: 640px) { .dl-grid { grid-template-columns: 1fr; } .dl-card.mine { grid-column: auto; } .dl-card.mine .dl-btn, .dl-server .dl-btn { align-self: stretch; } .dl-badge { position: static; align-self: flex-start; margin-bottom: 12px; } }

/* ---- Doku und Hilfe (/docs) */
.docs { max-width: 900px; }
.docs-head { padding-bottom: 30px; }
.docs-body { padding-top: 20px; }
.doc-toc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.doc-toc a.card { display: block; color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.doc-toc a.card:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, .55); }
.doc-toc a.card h3 { color: var(--strong); }
.guide { padding: 44px 0 34px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.guide h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.guide h3 { margin: 1.9em 0 .6em; }
.guide p, .guide li { color: var(--text-soft); }
.guide ul { padding-inline-start: 1.2em; margin: .6em 0; }
.guide li { margin: .35em 0; }
.guide b { color: var(--strong); }
.guide code { font: .88em Consolas, "Cascadia Mono", monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.guide .code { margin: 12px 0 14px; }
.doc-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.doc-steps > li { counter-increment: step; position: relative; padding-inline-start: 46px; margin: 0 0 18px; }
.doc-steps > li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
                          display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: .92rem; }
.doc-shot { display: block; max-width: 720px; margin: 26px auto 22px; border-radius: 12px; overflow: hidden; cursor: zoom-in; border: 1px solid var(--line); }
.doc-shot img { display: block; width: 100%; height: auto; }
.doc-shot .shot-l { display: none; }
:root[data-theme="light"] .doc-shot .shot-l { display: block; }
:root[data-theme="light"] .doc-shot .shot-d { display: none; }
.doc-more { padding-top: 34px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .doc-toc { grid-template-columns: 1fr; } .doc-steps > li { padding-inline-start: 40px; } .guide code { white-space: normal; word-break: break-word; } }

/* ---- MCP-Abschnitt */
.mcp-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; margin-top: 40px; }
.code { background: var(--input-bg, #0a0f1f); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 6px 0 14px;
        font: .82rem/1.5 Consolas, "Cascadia Mono", monospace; overflow-x: auto; white-space: pre; color: var(--text); }
@media (max-width: 900px) { .mcp-grid { grid-template-columns: 1fr; } }

/* Vorschaubilder unter dem großen Screenshot */
.thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.thumbs a { display: block; width: 168px; text-decoration: none; color: var(--muted); font-size: .85rem; }
.thumbs img { display: block; width: 168px; height: 104px; object-fit: cover; object-position: top left; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); transition: transform .15s ease, border-color .15s ease; }
.thumbs a:hover img, .thumbs a:focus-visible img { transform: translateY(-2px); border-color: var(--blue); }
.thumbs span { display: block; margin-top: 6px; }

/* ---- Sprachmenü */
.langmenu { position: relative; }
.langmenu summary { list-style: none; cursor: pointer; font-size: .82rem; font-weight: 700; padding: 4px 9px; border: 1px solid var(--line);
    border-radius: 8px; color: var(--text); user-select: none; white-space: nowrap; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary::after { content: " ▾"; color: var(--muted); }
.langmenu[open] summary, .langmenu summary:hover { border-color: var(--blue); }
.langlist { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 190px; padding: 6px; border-radius: 12px;
    background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); display: grid; }
.nav nav .langlist a { display: flex; gap: 12px; align-items: baseline; padding: 7px 10px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.nav nav .langlist a b { font-size: .7rem; width: 22px; color: var(--muted); letter-spacing: .04em; }
.nav nav .langlist a:hover, .nav nav .langlist a.on { background: var(--surface); text-decoration: none; }
@media (max-width: 900px) { .nav nav .langlist a { display: flex !important; } }

/* ---- Rechts-nach-links (Arabisch) */
[dir="rtl"] .langlist { right: auto; left: 0; }
[dir="rtl"] .thumbs img { object-position: top right; }
[dir="rtl"] pre, [dir="rtl"] code, [dir="rtl"] .keybox { direction: ltr; text-align: left; }

/* Schriftzug fastRSS.com: „.com“ zurückhaltend */
.brand i { font-style: normal; font-weight: 600; color: var(--muted); }

/* ---- Symbole (Icons.cs): Linien-SVGs statt Emojis */
svg.i { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico svg.i { width: 24px; height: 24px; stroke: url(#icoGrad); vertical-align: middle; }
.ico { display: grid; place-items: center; }
.btn svg.i { margin-inline-end: .35em; }
.theme-toggle svg.i { width: 18px; height: 18px; vertical-align: middle; }
.kinds label svg.i { color: var(--muted); }

/* ---- Admin: Statistik */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.6rem; color: var(--strong); }
.stat span { color: var(--muted); font-size: .85rem; }
.bars td { padding: 3px 8px; font-size: .9rem; white-space: nowrap; }
.bars .bar { display: inline-block; height: 9px; border-radius: 5px; background: var(--blue); vertical-align: middle; min-width: 1px; }
.bars .bar.dl { background: var(--orange); }
.tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 18px; }
