/* ============================================================
   LAGERSCHMIERUNG - Website Stylesheet
   Industrial Anthracite Theme
   Orientierung am Design der Lager-Schmierdatenbank:
   dunkles Anthrazit, garnige Kanten, Monospace für technische
   Werte, dezente Akzente, kein Marketing-/SaaS-Look.
   ============================================================ */

/* ---------- Variablen / Theme ---------- */
:root {
    --anth-950: #101216;   /* Seite unten / Footer */
    --anth-900: #16181d;   /* Hauptfläche */
    --anth-850: #1b1e24;   /* Hero / abgesetzte Flächen */
    --anth-800: #1f232a;   /* Karten / Panels */
    --anth-700: #2a2f38;   /* Hover / Linien betont */
    --anth-600: #3a4150;   /* Linien / sekundäre Elemente */
    --anth-400: #9aa3af;   /* gedämpfter Text */
    --anth-200: #e5e8ec;   /* Haupttext */
    --white:    #edf0f3;   /* neutraler Akzent */

    /* dezente Akzentfarbe (Amber, sparsam) */
    --accent:       #d9a441;
    --accent-dim:   rgba(217, 164, 65, 0.12);

    /* Statusfarben */
    --status-ok:        #4ca96f;
    --status-warn:      #d99a2b;
    --status-danger:    #d1544a;

    --radius: 2px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------- Reset / Basis ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem;
    scrollbar-color: var(--anth-600) var(--anth-900);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--anth-900);
    color: var(--anth-200, var(--anth-400));
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(154, 163, 175, 0.35);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    letter-spacing: 0.01em;
    font-family: var(--font-sans);
}

.container {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Abschnitts-Basis ---------- */
main.container {
    padding-block: 2rem 3rem;
}

.section {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section.alt {
    background: var(--anth-850);
    border: 1px solid var(--color-line-soft, var(--anth-700));
    border-radius: var(--radius);
    padding-block: clamp(2rem, 4vw, 3rem);
    margin-block: 2rem;
}

.section-head {
    margin-bottom: 2rem;
}

.section-head h2,
.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--anth-200);
    margin: 0 0 1rem;
}

.section-lead {
    max-width: 60ch;
    color: var(--anth-400);
    margin-bottom: 2rem;
}

.section-label {
    display: inline-block;
    background: var(--anth-800);
    border: 1px solid var(--anth-600);
    border-radius: 2px;
    color: var(--anth-400);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
}

.small {
    font-size: 0.9rem;
    color: var(--anth-400);
}

.mixed-tone {
    color: var(--anth-400);
    margin-bottom: 1rem;
}
/* ---------- Header / Navigation ---------- */
.site-header {
    background: var(--anth-950);
    border-bottom: 1px solid var(--anth-600);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--anth-600);
    border-radius: var(--radius);
    background: var(--anth-800);
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 700;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    font-size: 1rem;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2rem);
}

.main-nav a[href^="#"] {
    color: var(--anth-400);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color 160ms ease, border-color 160ms ease;
}

.main-nav a[href^="#"]:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

.main-nav a.active {
    color: var(--white);
    border-bottom-color: var(--accent);
}

.site-header.scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--anth-600);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--white);
    transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 40;
        background: rgba(22, 24, 29, 0.98);
        padding: 7rem 2rem;
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.4rem;
        font-size: 1.05rem;
    }

    .main-nav .btn {
        margin-top: 2rem;
        width: 100%;
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: var(--radius);
    padding: 0.75rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn.primary {
    background: var(--white);
    color: #15181d;
    border-color: var(--white);
}

.btn.primary:hover {
    background: transparent;
    color: var(--white);
}

.btn.secondary-2 {
    background: transparent;
    color: var(--anth-200);
    border-color: var(--anth-600);
}

.btn.secondary-2:hover {
    color: var(--white);
    border-color: var(--white);
}

.btn.small {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
}

.btn.large {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}
/* ---------- Dokumentkopf ---------- */
.doc-head {
    border-bottom: 1px solid var(--anth-600);
    padding: clamp(2rem, 5vw, 3.5rem) 0 2rem;
    margin-bottom: 2rem;
}

.doc-head h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--white);
    margin: 1rem 0 1rem;
}

.doc-lead {
    max-width: 70ch;
    color: var(--anth-400);
    margin-bottom: 1.75rem;
}

.doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* ---------- Grundlagen-Karten ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--anth-800);
    border: 1px solid var(--anth-600);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    color: var(--anth-200);
    transition: border-color 160ms ease;
}

.card:hover {
    border-color: var(--white);
}

.card-index {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 0.15rem 0.5rem;
    margin-bottom: 1.1rem;
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.card p {
    color: var(--anth-400);
}

/* ---------- Split (Warum) ---------- */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.split-copy {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

.split-panel {
    background: var(--anth-800);
    border: 1px solid var(--anth-600);
    border-radius: var(--radius);
    padding: 2rem;
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--anth-200);
    margin: 0 0 1.25rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.check-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--anth-400);
    margin-bottom: 0.7rem;
}

.check-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--accent);
}
/* ---------- Fettaufbau ---------- */
.known-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.known-card {
    background: var(--anth-800);
    border: 1px solid var(--anth-600);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
}

.known-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--anth-200);
    margin: 0 0 0.75rem;
}

.known-card p {
    color: var(--anth-400);
}

.known-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tag {
    display: inline-block;
    background: var(--anth-800);
    border: 1px solid var(--anth-600);
    border-radius: 2px;
    color: var(--anth-400);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.8rem;
}

.tag b {
    color: var(--accent);
}

/* ---------- EP/AW-Blöcke ---------- */
.block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.block {
    background: var(--anth-800);
    border: 1px solid var(--anth-600);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
}

.block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--anth-200);
    margin: 0 0 0.75rem;
}

.block p {
    color: var(--anth-400);
}

/* ---------- Dual (Nachschmier / Verträglichkeit) ---------- */
.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dual-card {
    background: var(--anth-800);
    border: 1px solid var(--anth-600);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
}

.dual-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--anth-200);
    margin: 0 0 0.9rem;
}
/* ---------- Fehler-Karten ---------- */
.error-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.error-card {
    background: var(--anth-800);
    border: 1px solid var(--anth-600);
    border-radius: var(--radius);
    padding: 1.9rem 1.75rem;
}

.error-card .error-no {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--status-danger, var(--anth-400));
    border: 1px solid rgba(209, 84, 74, 0.4);
    padding: 0.1rem 0.45rem;
    border-radius: 2px;
    margin-bottom: 1rem;
}

.error-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--anth-200);
    margin: 0 0 0.6rem;
}

.error-card p {
    color: var(--anth-400);
    font-size: 0.96rem;
}

/* ---------- Datenhinweis ---------- */
.data-note {
    max-width: 62ch;
    margin: 0 auto;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 2rem 2.25rem;
}

.data-note h2 {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.9rem;
}

.data-note p {
    color: var(--anth-400);
    font-size: 0.95rem;
}

/* ---------- Kontakt-Band ---------- */
.contact-band {
    background: var(--anth-800);
    border: 1px solid var(--anth-600);
    border-radius: var(--radius);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contact-band h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--anth-200);
    margin: 0 0 0.75rem;
}

.contact-band p {
    max-width: 60ch;
    color: var(--anth-400);
    margin-bottom: 1.4rem;
}

/* ---------- Technische Datentabelle ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--anth-600);
    border-radius: var(--radius);
    background: var(--anth-800);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--anth-700);
    vertical-align: top;
}

.data-table thead th {
    background: var(--anth-700);
    color: var(--anth-200);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .cell-symbol {
    width: 4rem;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.data-table .cell-name {
    width: 12rem;
    color: var(--white);
}

.data-table .cell-text {
    color: var(--anth-400);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--anth-950);
    color: var(--anth-400);
    border-top: 1px solid var(--anth-600);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-brand .brand {
    margin-bottom: 1rem;
}

.footer-text {
    margin-top: 1rem;
}

.footer-note {
    font-size: 0.82rem;
    color: var(--anth-600);
    margin-top: 0.5rem;
}

.footer-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--anth-400);
    margin: 0 0 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: var(--anth-400);
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: color 160ms ease, border-color 160ms ease;
}

.footer-col a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

.footer-copy {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.82rem;
    color: var(--anth-600);
}
/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dual {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .card-grid,
    .known-grid,
    .block-grid,
    .error-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding-block: 3.5rem;
    }

    .doc-head {
        padding: 2rem 0 1.5rem;
    }

    .doc-actions .btn {
        width: 100%;
    }

    .data-note {
        padding: 1.5rem;
    }
}

/* ---------- Bedienbarkeit / Druck ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    .site-header {
        display: none;
    }
}
