:root {
    --brand: #f97316;
    --brand-2: #fbbf24;
    --brand-dark: #c2570e;
    --bg: #09090b;
    --bg-alt: #111113;
    --bg-elevated: #18181b;
}

/* === ServerWatch-Theme-Auswahl — übernommen aus der App (Ember/Aurora/Nebula/Ocean/Rosé) === */
/* Ember ist die :root-Vorgabe (oben aus den Design-Tokens); die anderen überschreiben nur die Akzent-/BG-Variablen, der Rest folgt automatisch. */
:root { --brand-soft: rgba(249,115,22,.14); --brand-glow: rgba(249,115,22,.25); --amb1: rgba(249,115,22,.10); --amb2: rgba(251,191,36,.07); }
html[data-theme="aurora"] { --brand:#2dd4bf; --brand-2:#22d3ee; --brand-dark:#14b8a6; --bg:#0a0f0e; --bg-alt:#0d1714; --bg-elevated:#11201c; --brand-soft:rgba(45,212,191,.14); --brand-glow:rgba(45,212,191,.25); --amb1:rgba(45,212,191,.10); --amb2:rgba(34,211,238,.07); }
html[data-theme="nebula"] { --brand:#a78bfa; --brand-2:#f472b6; --brand-dark:#7c3aed; --bg:#0b0a12; --bg-alt:#12101d; --bg-elevated:#181527; --brand-soft:rgba(167,139,250,.16); --brand-glow:rgba(167,139,250,.28); --amb1:rgba(167,139,250,.11); --amb2:rgba(244,114,182,.07); }
html[data-theme="ocean"] { --brand:#38bdf8; --brand-2:#6366f1; --brand-dark:#0284c7; --bg:#080d14; --bg-alt:#0c1420; --bg-elevated:#101b2b; --brand-soft:rgba(56,189,248,.14); --brand-glow:rgba(56,189,248,.25); --amb1:rgba(56,189,248,.10); --amb2:rgba(99,102,241,.07); }
html[data-theme="rose"] { --brand:#fb7185; --brand-2:#e879f9; --brand-dark:#e11d6b; --bg:#120a0d; --bg-alt:#1a0f14; --bg-elevated:#22141b; --brand-soft:rgba(251,113,133,.15); --brand-glow:rgba(251,113,133,.26); --amb1:rgba(251,113,133,.11); --amb2:rgba(232,121,249,.07); }
/* Verlauf, Glow, Ambient-Hintergrund und Hardcoded-Orange auf die Variablen umstellen, damit alles dem Theme folgt */
:root { --gradient: linear-gradient(135deg, var(--brand), var(--brand-2)); --glow: 0 0 40px var(--brand-glow); }
body { background: radial-gradient(900px 500px at 12% -8%, var(--amb1), transparent 60%), radial-gradient(820px 460px at 100% 0%, var(--amb2), transparent 55%), var(--bg) !important; background-attachment: fixed; }
.card:hover { border-color: var(--brand-glow); }
.btn-primary { box-shadow: 0 6px 20px var(--brand-glow); }
.tag { background: var(--brand-soft); }

/* --- Theme-Picker (schwebend, unten rechts) --- */
.sw-theme-picker { position: fixed; right: 1rem; bottom: 1rem; z-index: 300; }
.sw-theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--bg-elevated); color: var(--fg); font-size: 1.15rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
.sw-theme-toggle:hover { border-color: var(--brand); }
.sw-theme-panel { position: absolute; right: 0; bottom: 54px; background: var(--bg-elevated); border: 1px solid var(--glass-border); border-radius: 12px; padding: .4rem; box-shadow: var(--shadow); min-width: 168px; }
.sw-theme-panel[hidden] { display: none; }
.sw-theme-title { font-size: .7rem; color: var(--muted); padding: .3rem .5rem; text-transform: uppercase; letter-spacing: .06em; }
.sw-theme-opt { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .5rem; border: none; background: none; color: var(--fg); border-radius: 8px; cursor: pointer; font: inherit; font-size: .9rem; text-align: left; }
.sw-theme-opt:hover { background: var(--glass); }
.sw-theme-opt[aria-current="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sw-sw { width: 16px; height: 16px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }

/* --- Screenshot-Platzhalter (Browser-Frame-Optik, theme-konform) --- */
.shot { margin: 1.75rem 0; border: 1px solid var(--glass-border); border-radius: 14px; overflow: hidden; background: var(--bg-elevated); box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: .45rem; padding: .6rem .85rem; border-bottom: 1px solid var(--glass-border); background: var(--bg-alt); }
.shot-dot { width: 11px; height: 11px; border-radius: 50%; }
.shot-dot.r { background: #ff5f57; } .shot-dot.y { background: #febc2e; } .shot-dot.g { background: #28c840; }
.shot-url { margin-left: .55rem; flex: 1; font-size: .72rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: .22rem .75rem; border: 1px solid var(--glass-border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-body { aspect-ratio: 16/9; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: radial-gradient(120% 120% at 50% 0%, var(--brand-soft, rgba(249,115,22,.12)), transparent 62%), var(--bg-elevated); }
.shot-ico { font-size: 2rem; line-height: 1; opacity: .85; }
.shot-cap { margin-top: .55rem; color: var(--fg); font-weight: 600; }
.shot-sub { margin-top: .2rem; color: var(--muted); font-size: .82rem; }

/* --- Marketing-Seiten (mit Grid oder Bild) nutzen die volle Breite; Fließtext bleibt schmal --- */
.prose:has(.grid), .prose:has(img) { max-width: none; }
.prose:has(.grid) > :is(p, h2, h3, h4, ul, ol, blockquote, pre), .prose:has(img) > :is(p, h2, h3, h4, ul, ol, blockquote, pre) { max-width: 760px; }
.prose:has(.grid) > img, .prose:has(img) > img, .prose:has(.grid) > p > img, .prose:has(img) > p > img { display: block; width: 100%; max-width: 1000px; margin: 1.75rem auto; }

/* --- Inhaltsbilder: clean gerahmt + klickbar (Lightbox) --- */
.prose img { border-radius: 12px; border: 1px solid var(--glass-border); box-shadow: var(--shadow); cursor: zoom-in; height: auto; }
.lb-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 2.5rem; background: rgba(5,5,8,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: zoom-out; }
.lb-overlay.open { display: flex; }
.lb-overlay img { max-width: 95vw; max-height: 90vh; border-radius: 12px; border: 1px solid var(--glass-border); box-shadow: 0 24px 70px rgba(0,0,0,.7); }
.lb-close { position: fixed; top: .6rem; right: 1.3rem; font-size: 2.3rem; line-height: 1; color: #fff; opacity: .85; cursor: pointer; user-select: none; }
.lb-close:hover { opacity: 1; }

/* --- Inhalts-Figuren mit Bildunterschrift --- */
.prose figure { margin: 1.75rem auto; max-width: 1000px; }
.prose figure img { display: block; width: 100%; margin: 0; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .55rem; }

/* === Layout & Typografie — dezent fluid (skaliert leicht mit der Breite) === */
:root { --max: 1240px; }
html { font-size: clamp(15px, 0.18vw + 12.6px, 16px); }
body { line-height: 1.6; }
.container { padding-left: clamp(1.25rem, 3vw, 2rem); padding-right: clamp(1.25rem, 3vw, 2rem); }
.hero { padding: clamp(2.75rem, 6vw, 5.5rem) 1rem clamp(2.25rem, 4vw, 3.75rem); }
.hero-title { font-size: clamp(2rem, 2.6vw + .95rem, 3.4rem); line-height: 1.08; letter-spacing: -.025em; }
.hero-subtitle { font-size: clamp(1rem, 0.45vw + .85rem, 1.2rem); max-width: 52ch; }
.section { padding: clamp(2.5rem, 4.5vw, 4.5rem) 0; }
.section-title { font-size: clamp(1.45rem, 1vw + 1.05rem, 1.95rem); }
.prose { font-size: clamp(.97rem, .2vw + .92rem, 1.08rem); line-height: 1.68; }
.prose h2 { font-size: clamp(1.3rem, .7vw + 1.05rem, 1.65rem); margin-top: 2.2rem; }
.prose h3 { font-size: clamp(1.08rem, .4vw + 1rem, 1.28rem); margin-top: 1.5rem; }
.prose p { margin: 0 0 1rem; }
.card-title { font-size: clamp(1.05rem, .35vw + 1rem, 1.25rem); }
.card-body { padding: 1.15rem 1.3rem; }
/* Buttons: kräftiger Kontrast, normale Größe */
.btn { padding: .65rem 1.3rem; font-size: .96rem; }
.btn-primary { color: #0a0a12; font-weight: 700; }
.btn-outline { font-weight: 600; }
/* Navigation schlank halten, damit sie einzeilig bleibt */
.site-header .container { gap: .75rem; }
.site-nav { gap: .1rem; }
.nav-link { font-size: .94rem; padding: .4rem .55rem; }
.brand { font-size: 1.18rem; }
/* Lesbarkeit auf sehr breiten Screens: Fließtext zentriert begrenzen */
.section > .container > p.muted { max-width: 60ch; }

/* === Vergleichs-Matrix === */
.cmp-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--glass-border); border-radius: 14px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 720px; }
.cmp-table th, .cmp-table td { padding: .7rem .85rem; text-align: center; border-bottom: 1px solid var(--glass-border); }
.cmp-table thead th { background: var(--bg-alt); color: var(--fg); font-weight: 600; position: sticky; top: 0; }
.cmp-table tbody th { text-align: left; font-weight: 500; color: var(--fg); white-space: nowrap; }
.cmp-table th.cmp-self, .cmp-table td.cmp-self { background: var(--brand-soft, rgba(249,115,22,.10)); }
.cmp-table thead th.cmp-self { color: var(--brand); font-weight: 700; }
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: none; }
.cmp-y { color: #22c55e; font-weight: 700; }
.cmp-p { color: #f59e0b; font-weight: 700; }
.cmp-n { color: var(--muted); }
.cmp-legend { font-size: .82rem; color: var(--muted); margin: .4rem 0 0; }
/* Positionierungs-Quadrant */
.cmp-quad { display: block; width: 100%; max-width: 640px; margin: 1.75rem auto; height: auto; }
