@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: #000;
    color: #00ff41;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    max-width: min(1320px, 100vw - 1.5rem);
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.main-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 2s ease-in;
}

.matrix-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-shadow: 
        0 0 10px #00ff41,
        0 0 20px #00ff41,
        0 0 30px #00ff41,
        0 0 40px #00ff41;
    margin-bottom: 1.5rem;
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #00ff41;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    border-color: #00ff41;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.5),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
    text-shadow: 0 0 10px #00ff41;
}

.matrix-home-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.matrix-home-link:focus-visible {
    outline: 2px solid #00ff41;
    outline-offset: 6px;
}

/* Statische Seiten (Über / Kontakt) */
.static-page .static-main {
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.static-page .static-article {
    margin-bottom: 0;
}

.static-lead {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(0, 255, 65, 0.85);
    font-weight: 400;
    margin-top: 1rem;
}

.static-article .post-content p {
    margin-bottom: 1.25rem;
}

.static-article .post-content a {
    color: #00ff88;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.static-article .post-content a:hover {
    color: #fff;
    text-shadow: 0 0 8px #00ff41;
}

.contact-block {
    padding-top: 0.5rem;
}

.contact-direct {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 255, 65, 0.4);
    background: rgba(0, 255, 65, 0.05);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.contact-direct a {
    color: #00ff88;
    word-break: break-all;
}

.contact-direct a:hover {
    color: #fff;
    text-shadow: 0 0 8px #00ff41;
}

.form-demo-note {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    color: #00ff41;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 65, 0.5);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0, 255, 65, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.35);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.contact-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000;
    background: #00ff41;
    border: 2px solid #00ff41;
    padding: 0.85rem 1.75rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
    color: #00ff41;
    background: transparent;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.45);
}

.contact-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.form-feedback {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 255, 65, 0.5);
    background: rgba(0, 255, 65, 0.08);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Rechtstexte */
.legal-meta {
    font-size: 0.9rem !important;
    opacity: 0.85;
}

.legal-sections .legal-section {
    margin-bottom: 2rem;
}

.legal-sections .legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h3 {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #00ff88;
}

.legal-section p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.85;
    font-weight: 400;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: #00ff88;
    text-underline-offset: 3px;
}

.legal-section a:hover {
    color: #fff;
    text-shadow: 0 0 8px #00ff41;
}

.legal-placeholder {
    border-bottom: 1px dashed rgba(0, 255, 65, 0.65);
    padding: 0 0.1em 0.05em;
}

.legal-note {
    padding: 1rem 1.25rem;
    border-left: 3px solid rgba(0, 255, 65, 0.45);
    background: rgba(0, 255, 65, 0.06);
    font-size: 0.9rem !important;
}

/* Main Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(268px, min(400px, 34vw));
    gap: clamp(1.25rem, 2.5vw, 2.75rem);
    align-items: start;
    margin-bottom: 3rem;
}

@media (min-width: 1280px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    }
}

.blog-stream {
    min-width: 0;
    width: 100%;
    max-width: min(46rem, 100%);
    justify-self: center;
}

@media (min-width: 1100px) {
    .blog-stream {
        max-width: min(48rem, 100%);
    }
}

/* Erster Beitrag = optischer Haupt-Fokus */
#blog-posts-container > .blog-post:first-child {
    position: relative;
    border-width: 2px;
    border-color: #00ff41;
    padding: 2.25rem 2.25rem 2rem;
    background: rgba(0, 255, 65, 0.1);
    box-shadow:
        0 0 32px rgba(0, 255, 65, 0.42),
        0 0 80px rgba(0, 255, 65, 0.08),
        inset 0 0 28px rgba(0, 255, 65, 0.14);
}

#blog-posts-container > .blog-post:first-child::before {
    content: 'AKTUELL';
    position: absolute;
    top: -0.65rem;
    left: 1.25rem;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.35em;
    padding: 0.35rem 0.65rem;
    color: #000;
    background: #00ff41;
    box-shadow: 0 0 18px rgba(0, 255, 65, 0.55);
}

#blog-posts-container > .blog-post:first-child:hover {
    box-shadow:
        0 0 40px rgba(0, 255, 65, 0.55),
        0 0 90px rgba(0, 255, 65, 0.12),
        inset 0 0 32px rgba(0, 255, 65, 0.18);
}

#blog-posts-container > .blog-post:first-child .post-title {
    font-size: clamp(1.35rem, 2.8vw + 0.6rem, 2.05rem);
}

/* Blog Posts */
.blog-post {
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid #00ff41;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.3),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-in;
}

.blog-post:hover {
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.5),
        inset 0 0 20px rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
}

#blog-posts-container > .blog-post:first-child:hover {
    transform: translateY(-3px);
}

.post-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.post-title {
    font-size: clamp(1.2rem, 1.2vw + 1.1rem, 1.85rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px #00ff41;
    line-height: 1.3;
}

.post-title-clickable {
    cursor: pointer;
}

.post-title-clickable:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.post-title-clickable:focus-visible {
    outline: 2px solid #00ff41;
    outline-offset: 4px;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
    flex-wrap: wrap;
}

.post-date {
    color: #00ff41;
}

.post-category {
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.8rem;
    border: 1px solid #00ff41;
    background: rgba(0, 255, 65, 0.1);
}

.post-category-filter,
.post-classification-filter {
    cursor: pointer;
}

.post-category-filter:hover,
.post-classification-filter:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.35);
}

.post-category-filter:focus-visible,
.post-classification-filter:focus-visible {
    outline: 2px solid #00ff41;
    outline-offset: 3px;
}

.post-classification {
    color: rgba(200, 255, 220, 0.95);
    letter-spacing: 0.06em;
    padding: 0.2rem 0.8rem;
    border: 1px dashed rgba(0, 255, 200, 0.55);
    background: rgba(0, 255, 200, 0.06);
    font-size: 0.8rem;
}

.post-classification[data-k="7"] {
    border-color: rgba(255, 100, 100, 0.65);
    color: rgba(255, 200, 200, 0.95);
    background: rgba(255, 60, 60, 0.08);
}

.post-content {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(0, 255, 65, 0.9);
}

.post-content p {
    margin-bottom: 1rem;
}

.post-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.read-more {
    color: #00ff41;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    text-shadow: 0 0 10px #00ff41;
    transform: translateX(5px);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid #00ff41;
    padding: 1.5rem;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.3),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    text-shadow: 0 0 5px #00ff41;
}

.widget-content {
    line-height: 1.6;
    color: rgba(0, 255, 65, 0.9);
    font-size: 0.9rem;
}

.widget-terminal {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: clamp(0.68rem, 0.35vw + 0.62rem, 0.82rem);
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: rgba(0, 255, 80, 0.92);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}

/* Interaktive Fake-Shell in der Sidebar */
.fake-shell {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fake-shell-banner {
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed rgba(0, 255, 65, 0.35);
}

.fake-shell-output {
    min-height: 4.5rem;
    max-height: clamp(7rem, 22vh, 11rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.4rem 0.35rem;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: clamp(0.65rem, 0.3vw + 0.58rem, 0.78rem);
    line-height: 1.45;
    color: rgba(0, 255, 100, 0.9);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 255, 65, 0.25);
    box-shadow: inset 0 0 12px rgba(0, 255, 65, 0.06);
    scrollbar-color: rgba(0, 255, 65, 0.45) rgba(0, 0, 0, 0.4);
    scrollbar-width: thin;
}

.fake-shell-line {
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.fake-shell-line--cmd {
    color: rgba(160, 255, 190, 0.85);
    opacity: 0.92;
}

.fake-shell-line--err {
    color: rgba(255, 120, 120, 0.95);
    text-shadow: 0 0 6px rgba(255, 80, 80, 0.35);
}

.fake-shell-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding-top: 0.15rem;
    border-top: 1px dashed rgba(0, 255, 65, 0.28);
}

.fake-shell-prompt {
    flex-shrink: 0;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: clamp(0.68rem, 0.35vw + 0.6rem, 0.8rem);
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
    user-select: none;
}

.fake-shell-input {
    flex: 1 1 120px;
    min-width: 0;
    margin: 0;
    padding: 0.25rem 0.35rem;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: clamp(0.68rem, 0.35vw + 0.6rem, 0.8rem);
    color: #00ff41;
    background: rgba(0, 10, 4, 0.65);
    border: 1px solid rgba(0, 255, 65, 0.4);
    border-radius: 2px;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.08);
}

.fake-shell-input:focus {
    border-color: #00ff88;
    box-shadow:
        inset 0 0 12px rgba(0, 255, 65, 0.12),
        0 0 0 1px rgba(0, 255, 136, 0.35);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.terminal-cursor {
    animation: terminal-cursor-blink 0.85s step-end infinite;
}

@keyframes terminal-cursor-blink {
    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terminal-cursor {
        animation: none;
        opacity: 1;
    }
}

.category-list,
.archive-list {
    list-style: none;
}

.category-list li,
.archive-list li {
    margin-bottom: 0.8rem;
}

.category-link,
.archive-link {
    color: #00ff41;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
}

.category-link:hover,
.archive-link:hover {
    text-shadow: 0 0 8px #00ff41;
    border-bottom-color: #00ff41;
    transform: translateX(5px);
}

.category-link.active,
.archive-link.active {
    text-shadow: 0 0 10px #00ff41;
    border-bottom-color: #00ff41;
    font-weight: 700;
    color: #00ff41;
}

/* Feste Kategorie ohne Beiträge (nur Sidebar) */
.category-link--empty {
    opacity: 0.45;
}

/* Mobile: Infos / Sidebar als Klick-Menü (Button nur ≤968px sichtbar) */
.sidebar-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    max-width: min(46rem, 100%);
    margin: 1.5rem auto 0;
    padding: 0.9rem 1.25rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00ff41;
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid #00ff41;
    cursor: pointer;
    box-shadow:
        0 0 14px rgba(0, 255, 65, 0.35),
        inset 0 0 12px rgba(0, 255, 65, 0.08);
    transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.sidebar-menu-toggle:hover {
    box-shadow:
        0 0 22px rgba(0, 255, 65, 0.45),
        inset 0 0 16px rgba(0, 255, 65, 0.12);
    background: rgba(0, 255, 65, 0.08);
}

.sidebar-menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.sidebar-menu-toggle-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.9;
}

.sidebar-menu-toggle-text {
    flex: 1;
    text-align: center;
}

.sidebar-menu-toggle-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

.sidebar-menu-toggle-chevron::before {
    content: '▼';
    font-size: 0.55rem;
    line-height: 1;
    display: block;
    transition: transform 0.25s ease;
}

.sidebar-menu-toggle.is-open .sidebar-menu-toggle-chevron::before {
    transform: rotate(180deg);
}

.sidebar-menu-toggle.is-open {
    border-color: #00ff88;
    box-shadow:
        0 0 24px rgba(0, 255, 65, 0.5),
        inset 0 0 18px rgba(0, 255, 65, 0.14);
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }
    5% {
        clip: rect(42px, 9999px, 77px, 0);
    }
    10% {
        clip: rect(12px, 9999px, 29px, 0);
    }
    15% {
        clip: rect(85px, 9999px, 2px, 0);
    }
    20% {
        clip: rect(64px, 9999px, 99px, 0);
    }
    25% {
        clip: rect(30px, 9999px, 15px, 0);
    }
    30% {
        clip: rect(88px, 9999px, 53px, 0);
    }
    35% {
        clip: rect(22px, 9999px, 79px, 0);
    }
    40% {
        clip: rect(55px, 9999px, 11px, 0);
    }
    45% {
        clip: rect(3px, 9999px, 91px, 0);
    }
    50% {
        clip: rect(66px, 9999px, 38px, 0);
    }
    55% {
        clip: rect(19px, 9999px, 62px, 0);
    }
    60% {
        clip: rect(47px, 9999px, 8px, 0);
    }
    65% {
        clip: rect(73px, 9999px, 25px, 0);
    }
    70% {
        clip: rect(9px, 9999px, 84px, 0);
    }
    75% {
        clip: rect(58px, 9999px, 41px, 0);
    }
    80% {
        clip: rect(26px, 9999px, 96px, 0);
    }
    85% {
        clip: rect(51px, 9999px, 17px, 0);
    }
    90% {
        clip: rect(35px, 9999px, 70px, 0);
    }
    95% {
        clip: rect(14px, 9999px, 48px, 0);
    }
    100% {
        clip: rect(81px, 9999px, 6px, 0);
    }
}

/* Footer */
.main-footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
    opacity: 0.6;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.footer-text {
    font-size: 0.9rem;
    font-style: italic;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Post Preview Indicator */
.preview-indicator {
    color: rgba(0, 255, 65, 0.6);
    font-size: 1.5rem;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Post Modal */
.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 2rem 1rem;
    justify-content: center;
    align-items: flex-start;
    animation: fadeIn 0.3s ease-in;
}

.post-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    margin: 0;
    max-height: calc(100vh - 4rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff41;
    padding: 3rem;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.5),
        inset 0 0 30px rgba(0, 255, 65, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: rotate(90deg);
}

.modal-content .post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 255, 65, 0.3);
}

.modal-content .post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.modal-content .post-content a {
    color: #00ff88;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.modal-content .post-content a:hover {
    color: #fff;
    text-shadow: 0 0 8px #00ff41;
}

.modal-content .post-content p {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .blog-stream {
        max-width: min(46rem, 100%);
        justify-self: center;
        order: 0;
    }

    .sidebar-menu-toggle {
        display: flex;
        order: 1;
    }

    .sidebar {
        order: 2;
        width: 100%;
        max-width: min(46rem, 100%);
        display: none;
        flex-direction: column;
        gap: 2rem;
        margin-top: 0.35rem;
        padding-bottom: 0.5rem;
    }

    .sidebar.is-open {
        display: flex;
    }

    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .matrix-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }

    #blog-posts-container > .blog-post:first-child {
        padding: 1.85rem 1.35rem 1.5rem;
    }

    #blog-posts-container > .blog-post:first-child .post-title {
        font-size: 1.55rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .matrix-title {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .blog-post {
        padding: 1rem;
    }

    #blog-posts-container > .blog-post:first-child {
        padding: 1.65rem 1rem 1.25rem;
    }

    #blog-posts-container > .blog-post:first-child::before {
        font-size: 0.55rem;
        letter-spacing: 0.22em;
        left: 0.75rem;
    }

    #blog-posts-container > .blog-post:first-child .post-title {
        font-size: 1.35rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}
