/* ==========================================================================
   IT-Oberlausitz — Modern Editorial Bento Design System
   Dual Theme (Dark Default + Light Switch), Vivid Contours & Vibrant Accents.
   100% Self-Contained & DSGVO-compliant.
   ========================================================================== */

/* Dark Theme (Default) */
:root, [data-theme="dark"] {
    --bg: #0b0f19;
    --bg-alt: #111827;
    --bg-card: #161e31;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #38bdf8;
    --accent-hover: #0284c7;
    --accent-subtle: rgba(56, 189, 248, 0.12);
    --border: rgba(255, 255, 255, 0.1);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-card-hover: rgba(56, 189, 248, 0.5);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 10px 30px rgba(56, 189, 248, 0.18);
    --badge-bg: rgba(34, 197, 94, 0.12);
    --badge-border: rgba(34, 197, 94, 0.3);
    --badge-text: #4ade80;
    --tag-bg: rgba(56, 189, 248, 0.08);
    --tag-border: rgba(56, 189, 248, 0.25);
    --tag-text: #7dd3fc;
    --navbar-bg: rgba(11, 15, 25, 0.88);
}

/* Light Theme (Option) */
[data-theme="light"] {
    --bg: #fafafa;
    --bg-alt: #f1f5f9;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-subtle: #eff6ff;
    --border: #e2e8f0;
    --border-card: #e2e8f0;
    --border-card-hover: #93c5fd;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --badge-bg: #f0fdf4;
    --badge-border: #bbf7d0;
    --badge-text: #166534;
    --tag-bg: #f1f5f9;
    --tag-border: #cbd5e1;
    --tag-text: #334155;
    --navbar-bg: rgba(250, 250, 250, 0.92);
}

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

.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;
}

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

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

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

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

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom-color: transparent;
}

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

.brand-logo {
    font-size: 1.1rem;
    font-weight: 700;
    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.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

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

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

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

[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;
    transition: 0.2s ease;
}

/* ---- Hero ---- */
.hero {
    padding: 150px 0 90px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-text);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 600px;
}

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

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

.btn {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 28px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* ---- Sections & Bento Grid ---- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

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

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

.split-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

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

/* Bento Card System with Crisp Contours */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Bento Facts */
.bento-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.fact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
}

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

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

/* Bento Services Grid */
.bento-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

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

.card-num {
    font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* Tech Tags / Badges */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
    font-size: 0.76rem;
    font-weight: 500;
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--tag-border);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Bento Timeline & Contact */
.bento-timeline {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-card {
    padding: 32px;
}

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

.timeline-date {
    font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
}

.timeline-badge {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.timeline-badge.badge-active {
    background: var(--accent-subtle);
    border-color: var(--border-card-hover);
    color: var(--accent);
}

.timeline-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-role {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 14px;
}

.timeline-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

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

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

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

.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;
}

/* ---- Legal Tabs ---- */
.section-legal {
    padding: 48px 0 80px;
    border-top: 1px solid var(--border);
}

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

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

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

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

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

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

.legal-content h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

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

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

/* ---- Footer ---- */
.footer {
    padding: 28px 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);
}

/* ---- Specialization & Certification Badges ---- */
.badges-container {
    margin-top: 32px;
}

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

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

.badge-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-card:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.badge-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
}

.badge-sophos .badge-icon-wrapper {
    background: rgba(37, 99, 235, 0.12);
    color: #3b82f6;
}

.badge-veeam .badge-icon-wrapper {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.badge-microsoft .badge-icon-wrapper {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}

.badge-ihk .badge-icon-wrapper {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.badge-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
    margin-left: 4px;
    vertical-align: middle;
}

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

.badge-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
    html { font-size: 16px; }

    .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: 8px;
    }

    .label {
        position: static;
    }

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

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

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

    .footer-inner {
        flex-direction: column;
        gap: 6px;
    }
}
