
:root {
    --bg: #0b1020;
    --bg2: #0f1530;
    --fg: #eef2ff;
    --muted: #9aa3b2;
    --brand: #7c9cff;
    --brand2: #4da3ff
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f7f9fc;
        --bg2: #ffffff;
        --fg: #111827;
        --muted: #6b7280;
        --brand: #3b82f6;
        --brand2: #2563eb
    }
}
/* Basis */
* {
    box-sizing: border-box
}

/* Fixierter Verlauf */
html {
    min-height: 100%;
    background: linear-gradient(180deg, var(--bg), var(--bg2));
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Inhalt liegt über dem Verlauf */
body {
    margin: 0;
    min-height: 100%;
    background: transparent;
    color: var(--fg);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Inter, Arial, sans-serif;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 20px 60px
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.logo {
    font-weight: 800;
    letter-spacing: .3px
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(124,156,255,.15);
    color: var(--brand);
    font-size: 12px
}

.hero {
    padding: 48px 0 28px;
    text-align: center
}

h1 {
    font-size: clamp(28px,5vw,44px);
    margin: 0 0 12px
}

p.lead {
    margin: 0 auto 22px;
    max-width: 740px;
    color: var(--muted);
    font-size: clamp(15px,2.5vw,18px);
    line-height: 1.55
}

.cta {
    display: inline-block;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg,var(--brand),var(--brand2));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(80,120,255,.25)
}

    .cta:active {
        transform: translateY(1px)
    }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 16px;
    margin-top: 28px
}

.card {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.08);
    text-align: left
}

    .card h3 {
        margin: 0 0 6px;
        font-size: 18px
    }

    .card p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.5
    }

    /* Inputs in Karten */
    .card input, .card textarea {
        width: 100%;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,.18);
        background: rgba(0,0,0,.15);
        color: var(--fg);
    }

        .card input:focus, .card textarea:focus {
            outline: none;
            border-color: rgba(124,156,255,.55);
            box-shadow: 0 0 0 3px rgba(124,156,255,.18);
        }

footer {
    margin-top: 44px;
    color: var(--muted);
    font-size: 13px;
    text-align: center
}

a.inline {
    color: var(--brand);
    text-decoration: none
}

    a.inline:hover {
        text-decoration: underline
    }

/* Topbar ganz oben, bleibt beim Scrollen sichtbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(12,17,35,.92), rgba(12,17,35,.70));
    backdrop-filter: blur(6px) saturate(1.1);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Inhalt der Topbar auf Seitenbreite zentrieren */
.topbar-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 20px;
    width: auto;
    display: block;
}

/* Brand-Link */
.brand {
    font-weight: 800;
    letter-spacing: .3px;
    text-decoration: none;
    color: var(--fg)
}

    .brand:hover {
        text-decoration: underline
    }

/* Spendenblock standardmäßig einblenden - AKTIVIERT! */
#donate, .donate-copy {
    display: block !important; /* [block|none] schaltet den Spendenblock */
}

/* ==========================================================
   Shared utility classes
   ========================================================== */

/* Centers text inside an element. */
.text-center {
    text-align: center;
}

/* Adds the default top margin used by standalone call-to-action sections. */
.end-cta {
    text-align: center;
    margin: 28px 0 0;
}


/* ==========================================================
   PZ Log Analyzer page
   ========================================================== */

/* Sets the wider page width for the log analyzer page only. */
.page-log-analyzer .wrap {
    max-width: 1100px;
}

/* Centers the log analyzer header content. */
.page-log-analyzer .header {
    text-align: center;
    margin-bottom: 12px;
}

    /* Styles the main log analyzer headline. */
    .page-log-analyzer .header h1 {
        font-size: clamp(24px, 4.5vw, 36px);
        margin: 6px 0 6px;
    }

    /* Styles the short description under the log analyzer headline. */
    .page-log-analyzer .header p {
        color: var(--muted);
        font-size: clamp(14px, 2.5vw, 16px);
    }

/* Keeps the topbar content wider on the log analyzer page. */
.page-log-analyzer .topbar-inner {
    max-width: 1100px;
}

/* Creates the glass-style main analyzer container. */
.page-log-analyzer .container {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    overflow: hidden;
}

/* Styles the top band inside the analyzer container. */
.page-log-analyzer .container-head {
    background: linear-gradient(135deg, rgba(124,156,255,.25), rgba(77,163,255,.25));
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 20px;
    text-align: center;
}

    /* Styles the analyzer container title. */
    .page-log-analyzer .container-head h2 {
        font-size: 18px;
        margin: 0;
    }

    /* Styles the analyzer container subtitle. */
    .page-log-analyzer .container-head p {
        color: var(--muted);
        font-size: 14px;
        margin-top: 6px;
    }

/* Adds spacing around the upload area. */
.page-log-analyzer .upload-section {
    padding: 28px;
}

/* Styles the drag-and-drop upload box. */
.page-log-analyzer .upload-box {
    text-align: center;
    background: rgba(0,0,0,.15);
    border: 2px dashed rgba(124,156,255,.35);
    border-radius: 14px;
    padding: 38px 22px;
    transition: .2s;
}

    /* Highlights the upload box when the user hovers over it. */
    .page-log-analyzer .upload-box:hover {
        border-color: var(--brand);
        background: rgba(255,255,255,.06);
    }

    /* Highlights the upload box while a file is dragged over it. */
    .page-log-analyzer .upload-box.dragover {
        border-color: var(--brand2);
        background: rgba(77,163,255,.08);
    }

/* Styles the upload icon. */
.page-log-analyzer .upload-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

/* Hides the native file input because the custom button opens it. */
.page-log-analyzer input[type=file] {
    display: none;
}

/* Styles the analyzer button. */
.page-log-analyzer .btn {
    background: linear-gradient(135deg,var(--brand),var(--brand2));
    color: #fff;
    border: 0;
    padding: 12px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 14px;
    box-shadow: 0 8px 24px rgba(80,120,255,.25);
    transition: transform .1s;
}

    /* Moves the analyzer button slightly when clicked. */
    .page-log-analyzer .btn:active {
        transform: translateY(1px);
    }

/* Hides the loading area by default. */
.page-log-analyzer .loading {
    display: none;
    text-align: center;
    padding: 36px;
}

    /* Shows the loading area when JavaScript adds the show class. */
    .page-log-analyzer .loading.show {
        display: block;
    }

/* Styles the loading spinner. */
.page-log-analyzer .spinner {
    border: 4px solid rgba(255,255,255,.2);
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    animation: spin 1s linear infinite;
    margin: 0 auto 14px;
}

/* Rotates the loading spinner. */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hides the results area by default. */
.page-log-analyzer .results {
    display: none;
    padding: 20px;
}

    /* Shows the results area when JavaScript adds the show class. */
    .page-log-analyzer .results.show {
        display: block;
    }

/* Creates the responsive summary card grid. */
.page-log-analyzer .summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    margin-bottom: 18px;
}

/* Styles each summary statistic card. */
.page-log-analyzer .stat-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

    /* Styles the large number inside a statistic card. */
    .page-log-analyzer .stat-card .stat-number {
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 3px;
    }

    /* Styles the label inside a statistic card. */
    .page-log-analyzer .stat-card .stat-label {
        color: var(--muted);
        font-size: 12px;
        letter-spacing: .5px;
        text-transform: uppercase;
    }

    /* Gives error statistic cards a red left border. */
    .page-log-analyzer .stat-card.error {
        border-left-color: #ef4444;
    }

    /* Gives warning statistic cards an orange left border. */
    .page-log-analyzer .stat-card.warning {
        border-left-color: #f59e0b;
    }

    /* Gives duplicate statistic cards a yellow left border. */
    .page-log-analyzer .stat-card.duplicate {
        border-left-color: #eab308;
    }

/* Styles each collapsible result section. */
.page-log-analyzer .section {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

/* Styles the clickable section header. */
.page-log-analyzer .section-header {
    background: rgba(255,255,255,.08);
    padding: 14px 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Styles the scrollable section content area. */
.page-log-analyzer .section-content {
    padding: 16px;
    max-height: 420px;
    overflow: auto;
}

/* Animates the arrow icon. */
.page-log-analyzer .toggle-arrow {
    transition: transform .25s;
}

/* Rotates the arrow when a section is collapsed. */
.page-log-analyzer .section-header.collapsed .toggle-arrow {
    transform: rotate(-90deg);
}

/* Styles each detected log entry. */
.page-log-analyzer .log-entry {
    background: rgba(0,0,0,.18);
    border-left: 3px solid var(--brand);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-family: Consolas,Monaco,ui-monospace,monospace;
    font-size: .86em;
    word-wrap: break-word;
}

    /* Styles error log entries. */
    .page-log-analyzer .log-entry.error {
        border-left-color: #ef4444;
        background: rgba(239,68,68,.12);
    }

    /* Styles warning log entries. */
    .page-log-analyzer .log-entry.warning {
        border-left-color: #f59e0b;
        background: rgba(245,158,11,.12);
    }

    /* Styles duplicate log entries. */
    .page-log-analyzer .log-entry.duplicate {
        border-left-color: #eab308;
        background: rgba(234,179,8,.12);
    }

/* Styles small labels inside log entries. */
.page-log-analyzer .badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .72em;
    font-weight: 700;
    margin-right: 6px;
}

/* Styles error badges. */
.page-log-analyzer .badge-error {
    background: #ef4444;
    color: #fff;
}

/* Styles warning badges. */
.page-log-analyzer .badge-warning {
    background: #f59e0b;
    color: #111;
}

/* Styles empty result messages. */
.page-log-analyzer .empty-state {
    opacity: .8;
    text-align: center;
    padding: 24px;
    color: var(--muted);
    font-style: italic;
}

/* Sets the custom scrollbar width for result content. */
.page-log-analyzer .section-content::-webkit-scrollbar {
    width: 10px;
}

/* Styles the custom scrollbar thumb. */
.page-log-analyzer .section-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 8px;
}

/* Keeps the custom scrollbar track transparent. */
.page-log-analyzer .section-content::-webkit-scrollbar-track {
    background: transparent;
}


/* ==========================================================
   Thank-you page
   ========================================================== */

/* Sets the thank-you page content width. */
.page-thank-you .wrap {
    max-width: 760px;
    padding: 48px 20px;
    text-align: center;
}

/* Adds spacing above the thank-you page button. */
.page-thank-you .cta {
    margin-top: 16px;
}