@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* =========================================================================
   ServerWatch — public site theme (neutral, self-contained, no framework)
   Re-brand by editing the CSS variables in :root below.
   ========================================================================= */

:root {
    --brand:         #f97316;
    --brand-2:       #fbbf24;
    --brand-dark:    #c2570e;
    --brand-contrast:#ffffff;
    --gradient:      linear-gradient(135deg, #f97316, #fbbf24);
    --bg:            #0a0a12;
    --bg-alt:        #111119;
    --bg-elevated:   #16161f;
    --glass:         rgba(255,255,255,.04);
    --glass-border:  rgba(255,255,255,.08);
    --fg:            rgba(255,255,255,.92);
    --muted:         rgba(255,255,255,.55);
    --border:        rgba(255,255,255,.08);
    --radius:        12px;
    --max:           1140px;
    --shadow:        0 10px 34px rgba(0,0,0,.45);
    --glow:          0 0 40px rgba(249,115,22,.25);
    --font:          "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono:     "JetBrains Mono", "Cascadia Code", ui-monospace, Consolas, monospace;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--fg);
    background: var(--bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
main { flex: 1; }

/* --- Skip link (a11y) ---------------------------------------------------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }

/* --- Buttons ------------------------------------------------------------- */
.btn { display: inline-block; padding: .6rem 1.2rem; border-radius: var(--radius); font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: .15s; }
.btn-primary { background: var(--brand); color: var(--brand-contrast); }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-outline { border-color: var(--border); color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* --- Header / nav -------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--fg); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--brand); }
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: .25rem .5rem; user-select: none; }
.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.nav-link { padding: .45rem .7rem; border-radius: var(--radius); color: var(--fg); font-weight: 500; }
.nav-link:hover { background: var(--bg-alt); text-decoration: none; }
.nav-link.active { color: var(--brand); }

@media (max-width: 820px) {
    .nav-burger { display: block; }
    .site-nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 1.25rem 1rem; display: none; }
    .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* --- Sections ------------------------------------------------------------ */
.section { padding: 3rem 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: 1.6rem; margin: 0 0 .35rem; }
.section-head { margin-bottom: 1.75rem; }
.page-header { padding: 2.5rem 0 1rem; }
.page-header h1 { margin: 0; }

/* --- Hero ---------------------------------------------------------------- */
/* Hero/-title/-subtitle werden vom ServerWatch-Dark-Theme weiter unten vollständig
   definiert (zentriert, Verlaufs-Titel auf dunklem Body). Die alte Light-Theme-Variante
   mit orangefarbenem Hintergrund wurde entfernt — sie ließ den Verlaufstext orange-auf-orange. */

/* --- Grids & cards ------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-title { margin: 0; font-size: 1.2rem; }
.card-meta { font-size: .85rem; color: var(--muted); }
.tag { display: inline-block; background: var(--bg-alt); color: var(--muted); border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; }

/* --- Prose (rendered HTML content) -------------------------------------- */
.prose { max-width: 75ch; }
.prose img { border-radius: var(--radius); margin: 1rem 0; }
.prose h2 { margin-top: 2rem; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1.5rem 0; padding: .5rem 1rem; background: var(--bg-alt); color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.4rem; }

/* --- Team & partners ----------------------------------------------------- */
.member { text-align: center; }
.member-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto .75rem; background: var(--bg-alt); }
.member-name { font-weight: 700; }
.member-role { color: var(--muted); font-size: .9rem; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.5rem; align-items: center; }
.partner-logo { max-height: 70px; margin: 0 auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.partner-logo:hover { filter: none; opacity: 1; }

/* --- Forms --------------------------------------------------------------- */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-control { width: 100%; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: var(--bg); color: var(--fg); }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45,108,223,.15); }
.field-validation-error, .validation-summary-errors { color: #c0392b; font-size: .9rem; }
.honeypot { position: absolute; left: -9999px; }

/* --- Flash messages ------------------------------------------------------ */
.flash { padding: .9rem 1.25rem; border-radius: var(--radius); margin: 1rem 0; }
.flash-success { background: #e6f4ea; color: #1e7e34; border: 1px solid #a8d5b5; }
.flash-error { background: #fdecea; color: #c0392b; border: 1px solid #f1b0a8; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { margin-top: auto; background: #1f2933; color: #cbd5e1; padding: 2.5rem 0 1.25rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-heading { color: #fff; font-size: 1rem; margin: 0 0 .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom a { color: #cbd5e1; }
.social-links { display: flex; gap: .75rem; }
.social-links svg { width: 22px; height: 22px; fill: currentColor; }

/* --- Cookie banner ------------------------------------------------------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin: 0 auto; background: #1f2933; color: #fff; padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 200; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cookie-banner p { margin: 0; flex: 1; font-size: .9rem; }

/* =========================================================================
   ServerWatch brand theme — dark glassmorphism + orange (appended overrides)
   ========================================================================= */
body {
    background:
        radial-gradient(900px 500px at 12% -8%, rgba(249,115,22,.10), transparent 60%),
        radial-gradient(820px 460px at 100% 0%, rgba(251,191,36,.07), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}

.site-header {
    background: rgba(10,10,18,.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0; z-index: 100;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; box-shadow: var(--glow); }
.nav-link { color: var(--muted); font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--fg); text-decoration: none; }

.hero { position: relative; text-align: center; padding: 5.5rem 1rem 4rem; }
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 720px; margin: 1rem auto 2rem; }

.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }

.card {
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: rgba(249,115,22,.45); }
.card-title { color: var(--fg); }
.card-meta { color: var(--muted); }

.btn { border-radius: 10px; font-weight: 600; padding: .7rem 1.3rem; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--gradient); color: #1a1206; border: none; box-shadow: 0 6px 20px rgba(249,115,22,.35); }
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }
.btn-outline { border: 1px solid var(--glass-border); color: var(--fg); background: rgba(255,255,255,.03); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.tag { background: rgba(249,115,22,.14); color: var(--brand); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; }

.site-footer { background: rgba(10,10,18,.85); border-top: 1px solid var(--glass-border); color: var(--muted); }
.footer-heading { color: var(--fg); }

.prose a { color: var(--brand); }
.prose h2, .prose h3 { color: var(--fg); }
.prose code { background: rgba(255,255,255,.06); padding: .15em .4em; border-radius: 5px; }
.prose pre { background: #0d0d16; border: 1px solid var(--glass-border); border-radius: 10px; padding: 1rem; overflow: auto; }


/* =========================================================================
   Landing-page components (hero badges, terminal, feature grid, install
   profiles, CTA band) — Whiskers v0.12 visual refresh
   ========================================================================= */

/* Hero: subtle grid backdrop + tighter rhythm */
.hero-landing { padding: 6rem 1rem 4.5rem; overflow: hidden; }
.hero-landing::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 30%, transparent 75%);
}
.hero-badges { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .02em;
    padding: .3rem .8rem; border-radius: 999px;
    color: var(--muted); background: var(--glass); border: 1px solid var(--glass-border);
}
.badge-version { color: var(--brand); border-color: rgba(249,115,22,.4); background: rgba(249,115,22,.10); }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: 1.9rem 0 2.6rem; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.02rem; }
.btn-github { display: inline-flex; align-items: center; gap: .55rem; }
.btn-github svg { width: 19px; height: 19px; }
.hero-footnote { color: var(--muted); font-size: .9rem; margin-top: 1.1rem; }

/* Terminal window */
.terminal {
    max-width: 780px; margin: 0 auto; text-align: left;
    background: rgba(8,8,14,.85); border: 1px solid var(--glass-border); border-radius: 14px;
    box-shadow: var(--shadow), 0 0 60px rgba(249,115,22,.10);
    overflow: hidden;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.terminal-bar {
    display: flex; align-items: center; gap: .45rem;
    padding: .6rem .9rem; border-bottom: 1px solid var(--glass-border);
    background: rgba(255,255,255,.03);
}
.terminal .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.terminal-title { margin-left: .6rem; font-size: .78rem; color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-body {
    margin: 0; padding: 1.1rem 1.2rem; font-family: var(--font-mono); font-size: .92rem;
    color: #e8e8ef; white-space: pre-wrap; word-break: break-all; line-height: 1.55;
}
.prompt { color: var(--brand); font-weight: 700; margin-right: .35rem; }

/* Copy buttons */
.copy-btn {
    font: 600 .74rem var(--font); letter-spacing: .03em; text-transform: uppercase;
    color: var(--muted); background: rgba(255,255,255,.05);
    border: 1px solid var(--glass-border); border-radius: 7px;
    padding: .25rem .65rem; cursor: pointer; transition: .15s;
}
.copy-btn:hover { color: var(--brand); border-color: var(--brand); }
.copy-btn.copied { color: #28c840; border-color: #28c840; }

/* Feature grid */
.section-sub { max-width: 640px; margin: .4rem auto 0; }
.section-head.text-center { text-align: center; }
.feature-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.feature-card {
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 1.6rem 1.5rem; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(249,115,22,.45); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.feature-card h3 { margin: 1rem 0 .5rem; font-size: 1.12rem; letter-spacing: -.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(249,115,22,.13); border: 1px solid rgba(249,115,22,.3); color: var(--brand);
    box-shadow: 0 0 24px rgba(249,115,22,.15);
}
.feature-icon svg { width: 24px; height: 24px; }

/* Install profiles */
.install-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.install-card {
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.install-head { display: flex; align-items: center; gap: .7rem; }
.install-head h3 { margin: 0; font-size: 1.1rem; }
.code-block { position: relative; background: rgba(8,8,14,.85); border: 1px solid var(--glass-border); border-radius: 10px; }
.code-block pre { margin: 0; padding: .95rem 1rem; overflow-x: auto; }
.code-block code { font-family: var(--font-mono); font-size: .8rem; color: #e8e8ef; white-space: pre; }
.code-block .copy-btn { position: absolute; top: .5rem; right: .5rem; }
.install-card p { margin: 0; font-size: .88rem; }

/* Intro split + checklist */
.intro-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 820px) { .intro-split { grid-template-columns: 1fr; gap: 1.5rem; } }
.intro-text { font-size: 1.02rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.checklist li {
    padding: .8rem 1rem .8rem 2.6rem; position: relative;
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px; font-size: .93rem;
}
.checklist li::before {
    content: "✓"; position: absolute; left: 1rem; color: var(--brand); font-weight: 800;
}

/* CTA band */
.cta-band {
    position: relative; overflow: hidden;
    border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
    background:
        radial-gradient(600px 280px at 50% 110%, rgba(249,115,22,.16), transparent 70%),
        var(--bg-alt);
}
.cta-band .hero-cta { margin-bottom: .5rem; }

/* Section flow */
.section { padding: 4.5rem 0; }


/* Sprachhinweis auf Beitragsseiten (verknüpfte Übersetzung) */
.lang-alt-banner {
    display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
    margin-bottom: 1.5rem; padding: .7rem 1rem;
    background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.3);
    border-radius: 10px; font-size: .92rem;
}
.lang-alt-banner a { font-weight: 600; }
