/* === VARIABLES & RESET === */
:root {
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --text-main: var(--gray-900);
    --text-muted: var(--gray-600);
    --accent: #0033aa;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --emergency: #dc2626;
    --emergency-bg: #fef2f2;
    --success: #059669;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-size-h1: clamp(2.5rem, 8vw, 5rem);
    --font-size-h2: clamp(1.75rem, 4vw, 3rem);
    --font-size-hero-tagline: clamp(1.5rem, 4vw, 2.5rem);
    --font-size-body: 1.125rem;
    --line-height-body: 1.7;
    --line-height-headline: 1.1;
    --spacing-section: 8rem;
    --spacing-section-mobile: 4rem;
    --spacing-hero: 12rem;
    --spacing-hero-mobile: 6rem;
    --spacing-container: 2rem;
    --spacing-container-desktop: 4rem;
    --sidebar-width: 320px;
    --banner-height: 50px;
    --container-max-width: 1200px;
    --hero-max-width: 900px;
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--gray-50);
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 300;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: var(--banner-height);
    hyphens: auto;
    -webkit-hyphens: auto;
}

.content-area {
    background-color: var(--white);
    min-height: calc(100vh - var(--banner-height));
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === GLOBAL === */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.btn-primary,
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    text-align: center;
}
.btn-primary:hover,
.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}
.btn-primary:active,
.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}

/* === STATUS BANNER === */
.status-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--banner-height);
    z-index: 3000;
    background-color: #111;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 4px solid var(--accent);
    padding: 0 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.status-icon {
    font-size: 1.1em;
    line-height: 1;
    flex-shrink: 0;
}

.status-banner a { color: #93c5fd; text-decoration: underline; text-underline-offset: 2px; }
.status-banner a:hover { color: #fff; text-decoration: underline; }
.status-banner a:focus { outline: 2px solid #93c5fd; outline-offset: 2px; color: #bfdbfe; }

@media (max-width: 600px) {
    .status-banner {
        font-size: 0.7rem;
        justify-content: space-between;
        padding: 0.3rem 0.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        min-height: var(--banner-height);
        height: auto;
    }
    .status-item {
        white-space: normal;
        word-break: break-word;
        font-size: 0.65rem;
    }
}

/* === SIDEBAR & NAV === */
.sidebar {
    background: var(--white);
    border-right: 1px solid var(--gray-100);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.brand-link {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gray-900);
    text-decoration: none;
    display: block;
    line-height: 1.3;
    transition: color 0.2s;
}
.brand-link:hover { color: var(--gray-900); }

.brand-subtitle {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--gray-600);
    font-weight: 400;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 3rem;
}
.main-nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
}
.main-nav a:hover { color: var(--gray-900); padding-left: 4px; }
.main-nav a i { font-size: 1.1rem; color: var(--gray-600); margin-right: 12px; transition: color 0.3s; }
.main-nav a:hover i { color: var(--primary); }

.sidebar-footer {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 2rem;
}
.sidebar-footer a { color: inherit; text-decoration: none; border-bottom: 1px dotted #999; margin-right: 10px; }

/* === CONTENT === */
.prose {
    max-width: 680px;
    margin: 0 auto;
}
.prose h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: var(--line-height-headline);
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    word-break: break-word;
}
.prose h2 {
    font-size: var(--font-size-h2);
    font-weight: 300;
    margin-top: 5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    color: var(--gray-900);
}
.prose h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}
.prose p {
    font-size: var(--font-size-body);
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-body);
}
.prose ul, .prose ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: #444; }
.prose li { margin-bottom: 0.5rem; }
.prose hr { border: 0; height: 1px; background: #eee; margin: 4rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.prose table th, .prose table td { padding: 0.5rem 0.75rem; text-align: left; border: 1px solid var(--gray-100); }
.prose table th { background: var(--gray-50); font-weight: 600; color: var(--gray-900); }
.prose table tbody tr:nth-child(even) { background: var(--gray-50); }
.prose table a { color: var(--primary); }

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
}
.profile-avatar,
.portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
}
.profile-avatar:hover,
.portrait:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}
.hero .portrait {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05), 0 0 0 4px rgba(0, 90, 155, 0.12);
}
.hero .btn-primary { margin-top: 1.5rem; padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: 10px; }

/* Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: var(--spacing-section) 0;
    width: 100%;
    max-width: 1200px;
}
.feature-card,
.trust-item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.feature-card:hover,
.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.feature-number {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.7;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    border-radius: 12px;
}
.trust-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.check-icon { color: var(--accent); font-weight: bold; font-size: 1.2rem; }

/* Animations */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.js-enabled .fade-in { opacity: 0; transform: translateY(30px); }
.js-enabled .fade-in.fade-in-visible,
.js-enabled .fade-in.visible { opacity: 1; transform: translateY(0); }
.js-enabled .fade-in:nth-child(1) { transition-delay: 0.1s; }
.js-enabled .fade-in:nth-child(2) { transition-delay: 0.2s; }
.js-enabled .fade-in:nth-child(3) { transition-delay: 0.3s; }
.js-enabled .fade-in:nth-child(4) { transition-delay: 0.4s; }
.js-enabled .fade-in:nth-child(5) { transition-delay: 0.5s; }

/* === RESPONSIVE === */
.mobile-menu-button {
    position: fixed;
    top: calc(var(--banner-height) + 1rem);
    right: 1.5rem;
    z-index: 2500;
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: block;
}
.mobile-menu {
    position: fixed;
    top: var(--banner-height) !important;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 2400;
    display: none;
    flex-direction: column;
    padding: 4rem 2rem;
    overflow-y: auto;
}
.mobile-menu.active { display: flex; }
.mobile-menu-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.mobile-menu .mobile-menu-social { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-100); }
.mobile-menu .mobile-menu-social .social-link { font-size: 1rem; padding: 0.5rem 0; }

/* Mobile (<600px) */
@media (max-width: 599px) {
    .sidebar { display: none; }
    .layout-grid { display: block; }
    .content-area {
        padding: var(--spacing-section-mobile) var(--spacing-container) !important;
        max-width: 100%;
        margin: 0;
    }
    .hero { padding: var(--spacing-hero-mobile) var(--spacing-container) !important; }
    section { padding: var(--spacing-section-mobile) 0 !important; }
    .prose p { font-size: 1rem; }
    .prose h1, .hero-name { font-size: 2.5rem !important; word-break: break-word; }
    .hero-tagline { font-size: 1.5rem !important; }
    .feature-grid, .trust-grid { grid-template-columns: 1fr !important; width: 100% !important; gap: 2rem !important; }
    .feature-card, .trust-item, .article-card { padding: 2rem !important; }
    .profile-header { flex-direction: column; text-align: center; }
    .portrait, .profile-avatar { width: 150px !important; height: 150px !important; }
    .trust-grid { padding: 1.5rem; }
}

/* Tablet (600–899px) */
@media (min-width: 600px) and (max-width: 899px) {
    .sidebar {
        display: flex;
        position: fixed;
        top: var(--banner-height);
        left: 0; bottom: 0;
        width: 280px;
        z-index: 2400;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    .sidebar.active { transform: translateX(0); }
    .mobile-menu { display: none !important; }
    .content-area { padding: 3rem 2rem; }
    .prose h1, .hero-name { font-size: 3.5rem; }
    .hero-tagline { font-size: 2rem; }
}

/* Desktop (≥900px) */
@media (min-width: 900px) {
    .sidebar {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        position: fixed !important;
        top: var(--banner-height);
        left: 0; bottom: 0;
        width: var(--sidebar-width);
        height: calc(100vh - var(--banner-height));
        overflow-y: auto;
        border-right: 1px solid #f0f0f0;
        background: #fff;
        z-index: 100;
        padding: 2rem 1.5rem;
        transform: none;
    }
    .layout-grid {
        display: block !important;
        margin-left: var(--sidebar-width);
        min-height: 100vh;
    }
    .content-area {
        padding: var(--spacing-section) var(--spacing-container-desktop);
        max-width: var(--container-max-width);
        margin: 0 auto;
    }
    .mobile-menu-button, .mobile-menu { display: none !important; }
    .prose h1, .hero-name { font-size: 4rem; }
    .hero-tagline { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
    .prose h1, .hero-name { font-size: 5rem; }
    .hero-tagline { font-size: 3rem; }
}

/* === FOOTER === */
.site-footer {
    margin-top: var(--spacing-section);
    padding-top: 3rem;
    border-top: 1px solid var(--gray-100);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--gray-600);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.footer-links { margin-bottom: 1rem; text-align: left; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted #999;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-main); border-bottom-color: var(--accent); }
.footer-separator { color: var(--gray-100); user-select: none; }
.copyright { margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.85rem; }
.data-location { margin-bottom: 1rem; color: var(--text-muted); font-size: 0.8rem; font-style: italic; }

.security-score {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-100);
}
.security-score-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-mono);
}
.security-score-text strong { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.security-score-link { color: var(--accent); text-decoration: underline; margin-left: 0.5rem; transition: color 0.2s; }
.security-score-link:hover { color: #002288; text-decoration: none; }

.footer-mdn { margin-top: 1rem; }
.footer-mdn-text { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.footer-mdn-text a { color: var(--primary); text-decoration: underline; }
.footer-mdn-text a:hover { text-decoration: none; }
.security-badges { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--gray-100); }
.security-badges h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-weight: 500;
}
.security-badges-text { font-size: 0.7rem; }

.site-footer ul { list-style: none; padding: 0; margin: 2rem auto 0; text-align: left; display: inline-block; max-width: 100%; }
.site-footer li { margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.85rem; font-family: var(--font-mono); }

/* === UTILITY CLASSES === */
section { padding: var(--spacing-section) 0; }
@media (max-width: 768px) { section { padding: var(--spacing-section-mobile) 0; } }

.content-wrapper { max-width: 900px; margin: 0 auto; padding: 0 var(--spacing-container); }
.hero {
    padding: var(--spacing-hero) var(--spacing-container);
    text-align: center;
    max-width: var(--hero-max-width);
    margin: 0 auto;
    background: linear-gradient(180deg, var(--gray-50) 0%, transparent 100%);
    border-radius: 0 0 24px 24px;
    position: relative;
}
.hero::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--gray-200), transparent); }
@media (max-width: 768px) { .hero { padding: var(--spacing-hero-mobile) var(--spacing-container); border-radius: 0 0 16px 16px; } }

.section-spacer { margin-top: var(--spacing-section); margin-bottom: 3rem; }
.content-spacer { margin-top: var(--spacing-section); }
.margin-top-zero { margin-top: 0; }
.margin-y-medium { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.no-margin { margin: 0; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; gap: 0.5rem; }
.font-semibold { font-weight: 600; }

/* Typography */
.hero-name {
    font-size: var(--font-size-h1);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: var(--line-height-headline);
    margin: 2rem 0 1rem;
    color: var(--gray-900);
}
.hero-subtitle { font-size: 1.25rem; color: var(--gray-600); font-weight: 500; margin-bottom: 2.5rem; line-height: 1.5; }
.hero-tagline {
    font-size: var(--font-size-hero-tagline);
    font-weight: 400;
    color: var(--gray-900);
    margin-bottom: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.hero-description {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--gray-600);
    max-width: 680px;
    margin: 0 auto 0.5rem;
}
.text-subtitle { font-size: 1rem; opacity: 0.8; }
.text-medium { font-size: 1.2rem; margin-bottom: 2rem; }
.text-small { font-size: 0.9rem; }
.text-large { font-size: 1.4rem; font-weight: 500; color: var(--gray-600); margin-top: -1rem; margin-bottom: 2rem; line-height: 1.4; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.text-mono { font-family: var(--font-mono); }
.text-mono-small { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }

/* Sections */
.section-header { font-size: 0.75rem; font-family: var(--font-mono); color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 3rem; font-weight: 500; }
.lead-text { font-size: 1.25rem; color: var(--gray-600); font-weight: 400; line-height: 1.6; margin-bottom: 2rem; }
.audit-text { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.disclosure-link { text-decoration: underline; color: var(--text-main); }

/* Feature card */
.feature-icon { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; }
.feature-card-text { font-size: 0.95rem; color: var(--text-muted); }
.project-single { max-width: 640px; margin-left: auto; margin-right: auto; }
.project-icon { display: block; margin-bottom: 0.75rem; border-radius: 8px; }
.project-card .btn-primary { margin-top: 1rem; display: inline-block; }
.project-links { margin-top: 1.25rem; font-size: 0.95rem; }
.project-links .article-link { display: inline-block; margin-top: 0.35rem; }
.project-title { font-size: var(--font-size-h2); margin-bottom: 0.75rem; }
.feature-list { font-size: 0.9rem; color: var(--text-muted); padding-left: 1.2rem; margin-top: 1rem; }

/* Trust */
.trust-badge-subtitle { font-size: 0.85rem; color: var(--text-muted); }

/* Profile */
.profile-title { margin-bottom: 0.5rem; font-size: 2.5rem; }
.profile-subtitle { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.profile-badge { color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; margin-top: 3rem; }
.contact-list { margin-bottom: 2rem; }
.contact-form { margin-bottom: 2rem; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--gray-900); margin-top: 1rem; margin-bottom: 0.35rem; }
.contact-form .required { color: var(--emergency); }
.contact-form input, .contact-form textarea {
    width: 100%; max-width: 480px; padding: 0.6rem 0.75rem;
    font-family: var(--font-main); font-size: 1rem;
    border: 1px solid var(--gray-100); border-radius: 6px;
    background: var(--white); color: var(--gray-900);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form select {
    width: 100%; max-width: 480px; padding: 0.6rem 0.75rem;
    font-family: var(--font-main); font-size: 1rem;
    border: 1px solid var(--gray-100); border-radius: 6px;
    background: var(--white); color: var(--text-main);
}
.form-hint { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; margin-bottom: 0.5rem; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button[type="submit"] { margin-top: 1.25rem; }
.contact-directly-below { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-100); }
.contact-directly-label { font-weight: 600; margin-bottom: 0.5rem; }
.contact-directly-below p { margin: 0.35rem 0; }
.contact-directly-below a { color: var(--primary); }
.contact-message { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; max-width: 520px; }
.contact-message-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.contact-message-error { background: var(--emergency-bg); border: 1px solid #fecaca; color: #991b1b; }
.contact-message p { margin: 0; font-size: 0.95rem; }
.contact-email-obfuscated { font-size: 1.1rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.contact-email-obfuscated:hover { text-decoration: underline; }

.emergency-box {
    background: var(--emergency-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-left: 3px solid var(--emergency);
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}
.emergency-box h3 { margin-top: 0; display: flex; align-items: center; gap: 0.5rem; color: var(--emergency); font-weight: 700; }
.emergency-box i { color: var(--emergency); }
.emergency-box a, .emergency-phone-link { font-size: 1.4rem; font-weight: 700; color: var(--emergency); text-decoration: none; display: block; margin: 0.5rem 0; transition: color 0.2s; }
.emergency-box a:hover, .emergency-phone-link:hover { text-decoration: underline; }
.emergency-box p { font-size: 0.85rem; color: var(--gray-600); margin-top: 0.5rem; margin-bottom: 0; }

.info-box {
    background: var(--white);
    border: 1px solid var(--gray-100);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.info-box:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.info-box h3 { margin-top: 0; display: flex; align-items: center; gap: 0.5rem; }
.info-box a { font-size: 1.2rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.info-box p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

.pgp-box {
    background: var(--white);
    border: 1px solid var(--gray-100);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pgp-box:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.pgp-box h3 { margin-top: 0; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.pgp-box p { font-size: 0.8rem; margin-bottom: 1rem; }
.pgp-box a { font-size: 0.85rem; text-decoration: underline; color: var(--text-main); }
.pgp-fingerprint { margin-top: 0.5rem; font-family: var(--font-mono); word-break: break-all; }

/* CTA boxes */
.cta-box {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.cta-box p:first-child { margin: 0; font-weight: 600; font-size: 1.1rem; }
.cta-box p:nth-child(2) { margin: 0.5rem 0 1.5rem 0; color: #666; }

.article-cta-box {
    background: var(--white);
    border: 1px solid var(--gray-100);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.article-cta-box p:first-child { margin: 0; font-weight: 600; }
.article-cta-box p:nth-child(2) { margin: 0.5rem 0; font-size: 0.9rem; }
.article-cta-box a { font-size: 0.9rem; text-decoration: underline; }

/* Error pages */
.error-container { text-align: center; padding: var(--spacing-hero) var(--spacing-container); max-width: 800px; margin: 0 auto; }
.error-title { font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin-bottom: 2rem; }
.error-title-403 { color: var(--gray-900); }
.error-title-404 { color: var(--primary); }
.error-title-500 { color: var(--emergency); }
.error-message { max-width: 600px; margin: 0 auto; font-size: var(--font-size-body); line-height: var(--line-height-body); color: var(--gray-600); }
.error-message-muted { max-width: 600px; margin: 0 auto; color: var(--gray-600); font-size: var(--font-size-body); }
.error-link { text-decoration: underline; color: var(--primary); font-weight: 600; transition: color 0.2s; }
.error-link:hover { color: var(--primary-hover); }

/* === BLOG === */
.blog-header { text-align: center; max-width: 800px; margin: 0 auto var(--spacing-section); padding: 0 var(--spacing-container); }
.blog-subtitle { font-size: 1.125rem; color: var(--gray-600); font-weight: 400; margin-top: 1rem; margin-bottom: 3rem; }
.blog-prose { max-width: 700px; margin: 0 auto var(--spacing-section); text-align: left; }
.article-list { max-width: 900px; margin: 0 auto; padding: 0 var(--spacing-container); }

.article-card {
    margin-bottom: 4rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

.article-preview-image { margin: -3rem -3rem 2rem -3rem; border-radius: 16px 16px 0 0; overflow: hidden; }
.article-preview-image a { display: block; line-height: 0; }
.article-preview-image img { width: 100%; height: auto; object-fit: cover; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.article-card:hover .article-preview-image img { transform: scale(1.05); }

.article-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gray-600); margin-bottom: 0.5rem; font-weight: 500; }
.article-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.article-title-link { text-decoration: none; color: var(--gray-900); transition: color 0.2s; }
.article-title-link:hover { color: var(--primary); }
.article-excerpt { color: var(--gray-600); font-size: var(--font-size-body); line-height: var(--line-height-body); margin-top: 1rem; }
.article-link { font-size: 0.9rem; text-decoration: underline; color: var(--primary); font-weight: 600; transition: color 0.2s; }
.article-link:hover { color: var(--primary-hover); }
.article-back-link { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; margin-bottom: 2rem; display: block; }

/* Article images */
.prose figure { margin: 3rem 0; text-align: center; }
.prose figure.article-featured-image { margin: 3rem 0 4rem 0; }
.prose figure img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); cursor: zoom-in; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.prose figure img:hover { transform: scale(1.02); }
.prose figure figcaption { margin-top: 1rem; font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; text-align: left; padding: 0 1rem; }
.prose figure figcaption strong { color: var(--gray-900); font-weight: 600; }
.prose figure figcaption small { display: block; margin-top: 0.5rem; font-size: 0.8125rem; color: var(--gray-600); font-style: italic; }
.prose figure figcaption a { color: var(--primary); text-decoration: underline; }
.prose figure figcaption a:hover { color: var(--primary-hover); text-decoration: none; }

/* Fullscreen modal */
.image-fullscreen {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}
.image-fullscreen.active { display: flex; }
.image-fullscreen img { max-width: 95%; max-height: 95%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.image-fullscreen-close {
    position: absolute;
    top: 2rem; right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    user-select: none;
}
.image-fullscreen-close:hover { background: rgba(255, 255, 255, 0.2); }

@media (max-width: 768px) {
    .image-fullscreen { padding: 1rem; }
    .image-fullscreen img { max-width: 100%; max-height: 100%; }
    .image-fullscreen-close { top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.5rem; }
    .article-preview-image { margin: -3rem -3rem 2rem -3rem; }
}

/* === TERMINAL COMPONENT === */
.story-terminal {
    background: #1e1e1e;
    border-radius: 12px;
    margin: 4rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    color: #e0e0e0;
    border: 1px solid #333;
    font-family: var(--font-main);
}
.terminal-header { background: #2d2d2d; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid #333; }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
.terminal-title { margin-left: 1rem; font-family: var(--font-mono); font-size: 0.8rem; color: #888; }
.terminal-body { padding: 2.5rem; }
.terminal-headline { color: #fff !important; font-size: 1.5rem !important; margin-top: 0 !important; margin-bottom: 2rem !important; line-height: 1.3; }
.terminal-text { color: #bbb !important; font-size: 1.1rem; margin-bottom: 2.5rem; }
.timeline-entry { margin-bottom: 1.5rem; padding-left: 1.5rem; border-left: 2px solid #444; }
.timeline-entry.success { border-left-color: var(--success); }
.timeline-entry p { color: #d4d4d4 !important; margin-bottom: 0; font-size: 1rem; }
.time-stamp { display: block; font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.timeline-entry.success .time-stamp { color: var(--success); }
.text-error { color: #ef4444; font-weight: bold; font-family: var(--font-mono); }
.text-success { color: var(--success); font-weight: bold; font-family: var(--font-mono); }
.terminal-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #444; color: #aaa !important; font-size: 0.95rem; font-style: italic; }
.terminal-footer strong { color: #fff; font-style: normal; }

@media (max-width: 600px) {
    .terminal-body { padding: 1.5rem; }
    .terminal-headline { font-size: 1.25rem !important; }
}

/* === SOCIAL LINKS === */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: color 0.2s;
}
.social-link:hover { color: var(--primary); }
.social-link i { font-size: 1.1em; line-height: 1; }

.sidebar-social { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-100); }
.hero-social { display: flex; gap: 1.5rem; margin-top: 1.5rem; justify-content: center; }

/* === BSI DIGITALER ERSTHELFER (CSS-Siegel) === */
.hero-bsi { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.bsi-badge-link { text-decoration: none; color: inherit; display: inline-block; }
.bsi-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 90, 155, 0.06);
    border: 1px solid rgba(0, 90, 155, 0.25);
    border-radius: 10px;
    padding: 0.6rem 1.15rem;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 90, 155, 0.06);
}
.bsi-badge-link:hover .bsi-badge {
    background: rgba(0, 90, 155, 0.1);
    border-color: rgba(0, 90, 155, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 90, 155, 0.12);
}
.bsi-icon-wrapper {
    font-size: 1.5rem;
    color: #005a9b;
    display: flex;
    align-items: center;
}
.bsi-text-content { display: flex; flex-direction: column; text-align: left; }
.bsi-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--text-main);
}
.bsi-subline {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.9;
}
.bsi-status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
    flex-shrink: 0;
}
.bsi-copy { font-size: 0.9rem; color: var(--gray-600); text-align: center; max-width: 360px; margin: 0; font-weight: 500; }
.bsi-copy a, .bsi-copy-footer a { color: var(--primary); text-decoration: underline; }
.bsi-copy a:hover, .bsi-copy-footer a:hover { text-decoration: none; }
@media (max-width: 480px) {
    .bsi-badge { flex-wrap: wrap; justify-content: center; text-align: center; }
    .bsi-text-content { text-align: center; }
}
.bsi-story-box {
    margin-top: 1.75rem;
    padding: 1.35rem 1.6rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(255,255,255,0.9) 100%);
    border: 1px solid var(--gray-100);
    border-left: 4px solid #005a9b;
    border-radius: 10px;
    max-width: 520px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.bsi-story-text { margin: 0; font-size: 0.95rem; color: var(--gray-600); line-height: 1.55; font-style: italic; }
.footer-bsi { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-100); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bsi-badge-footer { padding: 0.35rem 0.75rem; gap: 0.6rem; }
.bsi-badge-footer .bsi-icon-wrapper { font-size: 1.1rem; }
.bsi-badge-footer .bsi-label { font-size: 0.75rem; }
.bsi-badge-footer .bsi-subline { font-size: 0.65rem; }
.bsi-badge-footer .bsi-status-dot { width: 6px; height: 6px; }
.bsi-copy-footer { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
