/* ==========================================================================
   IT-Oberlausitz — Minimalist & Timeless Editorial Design
   Inhaber: Maximilian Franz (IT Systems Engineer)
   Konzept: Menschlich, schlicht, authentisch, handwerklich präzise.
   Kein KI-typisches Neon/Bento-Glow, keine künstlichen Animationen.
   Dual-Theme (Dunkel Standard + Hell umschaltbar), 100% DSGVO-konform.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Themes
   -------------------------------------------------------------------------- */

/* Dunkles Farbschema (Standard) — Ruhiges Graphit/Anthrazit, kein grelles Neon */
:root, [data-theme="dark"] {
    --bg: #121316;
    --bg-alt: #17191e;
    --bg-card: #1b1e24;
    --text: #eceff3;
    --text-secondary: #9aa2ae;
    --text-muted: #7e8795;
    
    /* Zurückhaltendes Ingenieurs-Blau (sachlich, vertrauensvoll, WCAG AA konform) */
    --accent: #4586ed;
    --accent-hover: #3576de;
    --accent-btn: #2563eb;
    --accent-btn-hover: #1d4ed8;
    --badge-active-text: #60a5fa;
    --accent-subtle: rgba(61, 126, 232, 0.09);
    
    /* Feine, klare Haarlinien */
    --border: #23272f;
    --border-card: #262a33;
    --border-card-hover: #3a404d;
    
    --shadow-card: none;
    --shadow-hover: none;
    
    /* Status & Badges */
    --status-dot: #22c55e;
    --badge-bg: rgba(34, 197, 94, 0.08);
    --badge-border: rgba(34, 197, 94, 0.22);
    --badge-text: #4ade80;
    
    /* Dezente technische Schlagworte */
    --tag-bg: #17191e;
    --tag-border: #2a2f3a;
    --tag-text: #8d98a7;
    
    --navbar-bg: rgba(18, 19, 22, 0.88);
}

/* Helles Farbschema — Klares, warmes Papierweiß, hohe Lesbarkeit */
[data-theme="light"] {
    --bg: #fcfdfd;
    --bg-alt: #f4f5f7;
    --bg-card: #ffffff;
    --text: #14171c;
    --text-secondary: #4b5563;
    --text-muted: #5e6876;
    
    /* Klassisches Königsblau */
    --accent: #1e5fc9;
    --accent-hover: #164bb0;
    --accent-btn: #1e5fc9;
    --accent-btn-hover: #164bb0;
    --badge-active-text: #1d4ed8;
    --accent-subtle: #eef3fc;
    
    --border: #e3e6eb;
    --border-card: #e5e8ee;
    --border-card-hover: #c4ccd8;
    
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05);
    
    --status-dot: #16a34a;
    --badge-bg: #eefbf1;
    --badge-border: #bcf0c9;
    --badge-text: #166534;
    
    --tag-bg: #f1f3f6;
    --tag-border: #dde1e7;
    --tag-text: #444e5d;
    
    --navbar-bg: rgba(252, 253, 253, 0.9);
}

/* --------------------------------------------------------------------------
   2. Basis-Styles & Typografie
   -------------------------------------------------------------------------- */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 28px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--text);
    color: var(--bg);
    padding: 8px 16px;
    border-radius: 0 0 4px 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 200;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand-accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link-muted {
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Schlichter Theme-Toggle-Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--border-card-hover);
}

[data-theme="dark"] .sun-icon { display: inline; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: inline; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */

.hero {
    padding: 130px 0 76px;
}

/* Dezent-menschlicher Statusindikator ohne grelles Pulsieren */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-text);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: var(--status-dot);
    border-radius: 50%;
    display: inline-block;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--text);
    max-width: 680px;
}

.hero-role-title {
    display: block;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-secondary);
    margin-top: 8px;
    letter-spacing: -0.015em;
}

.hero-role {
    font-size: 1.12rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

.hero-lead {
    margin-top: 20px;
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.7;
}

/* Handwerklich-solider Button ohne KI-Glow, WCAG AA konform (5.17:1 Kontrast) */
.btn {
    display: inline-block;
    margin-top: 32px;
    padding: 12px 24px;
    background: var(--accent-btn);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background-color 0.15s ease;
}

.btn:hover {
    background: var(--accent-btn-hover);
}

/* --------------------------------------------------------------------------
   5. Abschnitte & Split-Layout
   -------------------------------------------------------------------------- */

.section {
    padding: 72px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.split {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 48px;
    align-items: start;
}

.label {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    position: sticky;
    top: 96px;
}

.split-content h2 {
    font-size: 1.55rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.35;
    color: var(--text);
}

.split-content p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 16px;
}

.split-content p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. Strukturierte Fakten & Profil-Details
   -------------------------------------------------------------------------- */

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.15s ease;
}

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

/* Fakten-Raster */
.bento-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

.fact-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
}

.fact-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.fact-value {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. Zertifizierungen & Qualifikationen
   -------------------------------------------------------------------------- */

.badges-container {
    margin-top: 36px;
}

.badges-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

.badge-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    transition: border-color 0.15s ease;
}

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

/* Sachliche, ruhige Icon-Fläche statt Neon-Pastell */
.badge-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.badge-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.badge-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    margin-left: 4px;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   8. Leistungen (Services)
   -------------------------------------------------------------------------- */

.bento-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-card-wide {
    grid-column: span 2;
}

.card-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.card-num {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.service-card h3 {
    font-size: 1.08rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Dezent-handwerkliche Schlagwort-Labels */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    font-size: 0.74rem;
    font-weight: 500;
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--tag-border);
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   9. Projekthistorie & Mandate
   -------------------------------------------------------------------------- */

.bento-timeline {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-card {
    padding: 24px 28px;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.timeline-date {
    font-size: 0.84rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-badge {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-badge.badge-active {
    background: var(--accent-subtle);
    border-color: rgba(61, 126, 232, 0.35);
    color: var(--badge-active-text);
    font-weight: 600;
}

.timeline-body h3 {
    font-size: 1.15rem;
    font-weight: 650;
    margin-bottom: 3px;
    color: var(--text);
}

.timeline-role {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-body p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   10. Kontakt
   -------------------------------------------------------------------------- */

.contact-bento {
    margin-top: 24px;
    padding: 10px 24px;
}

.contact-row {
    display: flex;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.94rem;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-label {
    width: 80px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--text);
}

.contact-row span {
    color: var(--text-secondary);
}

.contact-row a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-row a:hover {
    text-decoration: underline;
}

.note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* --------------------------------------------------------------------------
   11. Rechtliches (Tabs & Inhalt)
   -------------------------------------------------------------------------- */

.section-legal {
    padding: 48px 0 72px;
    border-top: 1px solid var(--border);
}

.legal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.legal-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 4px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.legal-tab.active {
    background: var(--accent-btn);
    color: #ffffff;
    border-color: var(--accent-btn);
    font-weight: 600;
}

.legal-tab:hover:not(.active) {
    border-color: var(--border-card-hover);
    color: var(--text);
}

.legal-content {
    display: none;
    max-width: 680px;
}

.legal-content.active {
    display: block;
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 650;
    margin-bottom: 14px;
    color: var(--text);
}

.legal-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 20px 0 6px;
    color: var(--text);
}

.legal-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-note {
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Responsive Anpassungen
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    html { font-size: 15px; }

    .hero { padding: 100px 0 50px; }
    .hero h1 { font-size: 2.1rem; }

    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px 28px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        display: none;
    }
    .nav-menu.active { display: flex; }

    .split {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .label {
        position: static;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .service-card-wide {
        grid-column: span 1;
    }

    .bento-facts {
        grid-template-columns: 1fr;
    }

    .badges-grid {
        grid-template-columns: 1fr;
    }

    .contact-row {
        flex-direction: column;
        gap: 4px;
    }

    .contact-label {
        width: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}
