/* ===========================================================================
   DocWeb – Website (Werbe-/Marketingseite, Datenschutz, Installation)
   Eigenständiges Stylesheet: keine externen Schriften, keine CDNs, keine
   Analyse – die Seite lädt ausschliesslich eigene Dateien.
   =========================================================================== */

:root {
    --bg: #ffffff;
    --surface: #f7f9fc;
    --surface-2: #eef2f8;
    --border: #e2e8f0;
    --text: #111827;
    --muted: #5b6675;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff4ff;
    --ok: #15803d;
    --ok-soft: #ecfdf3;
    --radius: 14px;
    --radius-sm: 9px;
    --maxw: 1080px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -18px rgba(16, 24, 40, .22);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* Anker nicht unter dem klebenden Kopf verschwinden lassen */
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.018em; margin: 0; }
p { margin: 0; }
img, svg { max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                 "Liberation Mono", monospace;
    font-size: .88em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .1em .38em;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------------- Kopfzeile */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 650;
    font-size: 1.06rem;
    letter-spacing: -.02em;
    flex: none;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small {
    display: block;
    font-size: .7rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .01em;
    line-height: 1.1;
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}
.nav a {
    color: var(--muted);
    font-size: .93rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a.active { color: var(--primary); background: var(--primary-soft); }

/* Sprachumschaltung (nur Links mit ?lang=xx, keine Cookies) */
.langs {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: none;
    margin-left: 10px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}
.langs .lang {
    font-size: .82rem;
    font-weight: 550;
    color: var(--muted);
    padding: 5px 8px;
    border-radius: 7px;
    white-space: nowrap;
}
.langs a.lang:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.langs .lang.current { color: var(--primary); background: var(--primary-soft); }

/* -------------------------------------------------------------------- Hero */

.hero {
    padding: 76px 0 64px;
    background:
        radial-gradient(900px 380px at 12% -10%, var(--primary-soft), transparent 70%),
        radial-gradient(700px 320px at 92% 0%, #f0fdf7, transparent 65%);
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.05rem);
    font-weight: 720;
    max-width: 18ch;
}
.hero .lead {
    margin-top: 18px;
    font-size: clamp(1.03rem, .99rem + .35vw, 1.22rem);
    color: var(--muted);
    max-width: 62ch;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .82rem;
    font-weight: 550;
    color: var(--muted);
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    flex: none;
}

/* ----------------------------------------------------------------- Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: .96rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: #c9d3e0; background: var(--surface); }

/* ------------------------------------------------------- Abschnitte & Raster */

.section { padding: 68px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--surface); }

.section-head { max-width: 68ch; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); font-weight: 680; }
.section-head p { margin-top: 12px; color: var(--muted); }

.eyebrow {
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 18px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.card h3 {
    font-size: 1.03rem;
    font-weight: 640;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.card .icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.card .icon svg { width: 18px; height: 18px; }

/* Kennzahlen unter dem Hero */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 44px;
}
.facts div { background: #fff; padding: 20px 22px; }
.facts dt {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
}
.facts dd { margin: 6px 0 0; font-weight: 620; font-size: 1rem; }

/* ------------------------------------------------------------ Nummerierte Liste */

.steps { list-style: none; margin: 0; padding: 0; }
.steps > li {
    position: relative;
    padding: 0 0 26px 52px;
    border-left: 2px solid var(--border);
    margin-left: 15px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -16px;
    top: -2px;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .84rem;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg);
}
.steps { counter-reset: step; }
.steps h3 { font-size: 1.02rem; font-weight: 640; }
.steps p { margin-top: 8px; color: var(--muted); }

/* -------------------------------------------------------------- Textblöcke */

.prose { max-width: 780px; }
.prose h2 {
    font-size: 1.35rem;
    font-weight: 670;
    margin-top: 44px;
    padding-top: 8px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.06rem; font-weight: 640; margin-top: 28px; }
.prose h4 { font-size: .98rem; font-weight: 640; margin-top: 22px; color: #333b47; }
.prose p { margin-top: 12px; color: #333b47; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; color: #333b47; }
.prose li { margin-top: 7px; }
.prose > p:first-of-type { font-size: 1.05rem; color: var(--muted); }

/* Code-Blöcke */
pre {
    margin: 14px 0 0;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    overflow-x: auto;
    font-size: .85rem;
    line-height: 1.6;
}
pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Hinweisboxen */
.note {
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-top: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: .93rem;
    color: #333b47;
}
.note strong { color: var(--text); }
.note-info { background: var(--primary-soft); border-color: #d3e0fb; }
.note-ok { background: var(--ok-soft); border-color: #c9ecd8; }
.note-warn { background: #fffbeb; border-color: #fde8c0; }

/* Inhaltsverzeichnis der Hilfeseite */
.toc {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 40px;
}
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 12px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-top: 6px; font-size: .93rem; break-inside: avoid; }

/* Zwei-Wege-Umschalter (Synology / Webserver) */
.paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 8px;
}
.path-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    color: var(--text);
}
.path-card:hover { text-decoration: none; border-color: #c9d3e0; box-shadow: var(--shadow); }
.path-card h3 { font-size: 1.05rem; font-weight: 650; }
.path-card p { margin-top: 8px; color: var(--muted); font-size: .93rem; }
.path-card .kicker {
    font-size: .76rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    font-size: .93rem;
}
th, td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
th { font-weight: 620; background: var(--surface); }
td:first-child { white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ------------------------------------------------------------------ Liste */

.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li {
    position: relative;
    padding-left: 30px;
    margin-top: 11px;
    color: #333b47;
}
.ticks li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .48em;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--ok);
    border-bottom: 2px solid var(--ok);
    transform: rotate(-45deg);
}

/* ------------------------------------------------------------ Anmeldeseite */

.login-wrap {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 940px;
    margin: 0 auto;
}

.login-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 30px 26px;
    box-shadow: var(--shadow);
}
.login-card h1 { font-size: 1.5rem; font-weight: 680; }
.login-sub { margin-top: 10px; color: var(--muted); font-size: .93rem; }

.login-card form { margin-top: 22px; }
.login-cta { margin-top: 22px; }
.login-card label {
    display: block;
    font-size: .87rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.login-card label + input { margin-bottom: 16px; }
.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 11px 13px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
}
.login-card input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.btn-block { width: 100%; margin-top: 4px; }
.btn[disabled] { opacity: .65; cursor: default; }

.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 9px;
    padding: 10px 13px;
    font-size: .9rem;
    margin-bottom: 14px;
}

.login-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: .87rem;
    color: var(--muted);
}

.login-target {
    margin-top: 8px;
    font-size: .8rem;
    color: var(--muted);
}
.login-target code { font-size: .95em; }

.login-aside h2 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 650;
    margin-top: 26px;
}
.login-aside h2:first-child { margin-top: 0; }
.login-aside p { margin-top: 10px; color: #333b47; font-size: .94rem; }
.login-aside .ticks li { font-size: .94rem; }

@media (max-width: 820px) {
    .login-wrap { grid-template-columns: 1fr; gap: 30px; }
}

/* ------------------------------------------------------------------ Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 44px 0 34px;
    font-size: .92rem;
    color: var(--muted);
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 56px;
    justify-content: space-between;
}
.footer-col h4 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 650;
}
.footer-col ul { list-style: none; margin: 12px 0 0; padding: 0; }
.footer-col li { margin-top: 8px; }
.footer-col a { color: #333b47; }
.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: space-between;
    font-size: .87rem;
}

/* -------------------------------------------------------------- Anpassungen */

@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero { padding: 52px 0 44px; }
    .section { padding: 48px 0; }
    .toc ol { columns: 1; }
    .site-header .container { min-height: 58px; gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .nav a { padding: 7px 9px; font-size: .88rem; }
    .langs { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; }
    .brand small { display: none; }
    .steps > li { padding-left: 44px; }
}

@media print {
    .site-header, .hero-actions, .site-footer { display: none; }
    .section { padding: 12px 0; }
}
