/* ==========================================
   scale² – Blog Styles
   Dark Mode, Neon Green, Artikel-Typografie
   ========================================== */

/* ==========================================
   Local Fonts (gleich wie Hauptseite)
   ========================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================
   CSS Variables (identisch mit Hauptseite)
   ========================================== */
:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111114;
    --bg-card: #161619;
    --bg-card-hover: #1c1c20;
    --bg-dark: #050506;
    --text-primary: #f0f0f2;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-1: #f0f0f2;
    --accent-2: #e2e8f0;
    --accent-3: #cbd5e1;
    --accent-pop: #39ff14;
    --gradient: linear-gradient(135deg, #111114, #1a1a1e);
    --gradient-text: linear-gradient(135deg, #f0f0f2, #94a3b8);
    --gradient-pop: linear-gradient(135deg, #39ff14, #00e676);
    --glow: 0 4px 24px rgba(57, 255, 20, 0.08);
    --glow-strong: 0 8px 40px rgba(57, 255, 20, 0.12);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================
   Reset & Base
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(57, 255, 20, 0.2);
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   Navigation (gleich wie Hauptseite)
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo sup {
    font-size: 0.7em;
    color: var(--accent-pop);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    color: var(--accent-pop);
    border-color: var(--accent-pop);
    background: rgba(57, 255, 20, 0.05);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   Scroll Progress Bar
   ========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-pop);
    z-index: 200;
    transition: width 0.05s linear;
}

/* ==========================================
   Blog Hero (Übersichtsseite)
   ========================================== */
.blog-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 50%, rgba(57, 255, 20, 0.04) 0%, var(--bg-primary) 70%);
    position: relative;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 0;
}

.blog-hero-bg img {
    position: absolute;
    width: 52%;
    opacity: 0.07;
    object-fit: cover;
}

.blog-hero-bg img:nth-child(1) { left: -6%; top: 50%; transform: translateY(-50%); }
.blog-hero-bg img:nth-child(2) { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.blog-hero-bg img:nth-child(3) { right: -6%; top: 50%; transform: translateY(-50%); }

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-pop);
    margin-bottom: 1.5rem;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-pop);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   Category Filter
   ========================================== */
.blog-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 2rem 0 0;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.filter-btn.active {
    color: #0a0a0b;
    background: var(--accent-pop);
    border-color: var(--accent-pop);
}

/* Hidden state for filtered cards */
.blog-card.hidden {
    display: none;
}

/* ==========================================
   Artikel-Grid (Übersichtsseite)
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0 6rem;
}

.blog-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(57, 255, 20, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(57, 255, 20, 0.08);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.blog-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.blog-card-image-placeholder svg {
    color: var(--accent-pop);
    opacity: 0.3;
}

.blog-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.blog-card-category {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-pop);
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 100px;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.blog-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.blog-card-readtime {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-card-arrow {
    color: var(--accent-pop);
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-arrow {
    transform: translateX(4px);
}

/* ==========================================
   Artikel-Seite: Header
   ========================================== */
.article-header {
    padding: 10rem 0 3rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 50%, rgba(57, 255, 20, 0.04) 0%, var(--bg-primary) 70%);
    position: relative;
    overflow: hidden;
}

.article-header-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-header-bg img {
    width: 100%;
    opacity: 0.07;
    object-fit: cover;
}

.article-header .container {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-pop);
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 100px;
}

.article-date,
.article-readtime {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.article-readtime {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.article-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================
   Artikel-Seite: Body (Typografie)
   ========================================== */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.article-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.article-body p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body a {
    color: var(--accent-pop);
    text-decoration: none;
    border-bottom: 1px solid rgba(57, 255, 20, 0.3);
    transition: border-color 0.3s ease;
}

.article-body a:hover {
    border-color: var(--accent-pop);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.article-body ul li,
.article-body ol li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-pop);
}

.article-body ol {
    counter-reset: ol-counter;
}

.article-body ol li {
    counter-increment: ol-counter;
}

.article-body ol li::before {
    content: counter(ol-counter) ".";
    position: absolute;
    left: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-pop);
}

.article-body blockquote {
    border-left: 3px solid var(--accent-pop);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: rgba(57, 255, 20, 0.02);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.75;
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-card);
    color: var(--accent-pop);
    padding: 0.2em 0.45em;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.article-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 2rem 0;
}

.article-body figure {
    margin: 2.5rem 0;
}

.article-body figure img {
    margin: 0;
    width: 100%;
}

.article-body figcaption {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0;
    padding: 0.65rem 1rem;
    background: rgba(255, 59, 59, 0.05);
    border-left: 2px solid rgba(255, 59, 59, 0.35);
    border-radius: 0 4px 4px 0;
    font-size: 0.76rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.5;
}

.article-body figcaption::before {
    content: "⚠";
    font-style: normal;
    font-size: 0.8rem;
    color: rgba(255, 59, 59, 0.6);
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.article-body hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 3rem 0;
}

/* ==========================================
   Artikel-CTA
   ========================================== */
.article-cta {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.article-cta-block {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #0d1a00, #0a1500);
    border: 1px solid rgba(57, 255, 20, 0.15);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.article-cta-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(57, 255, 20, 0.08), transparent 50%);
    pointer-events: none;
}

.article-cta-block h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
}

.article-cta-block p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: #0a0a0b;
    background: var(--accent-pop);
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(57, 255, 20, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(57, 255, 20, 0.35);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   Back to Blog Link
   ========================================== */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 2rem;
}

.back-to-blog:hover {
    color: var(--accent-pop);
}

.back-to-blog svg {
    transition: transform 0.3s ease;
}

.back-to-blog:hover svg {
    transform: translateX(-3px);
}

/* ==========================================
   Footer (gleich wie Hauptseite)
   ========================================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.footer-logo sup {
    color: var(--accent-pop);
    font-size: 0.7em;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-transparency {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.6;
}

/* ==========================================
   Reveal Animation
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 11, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 105;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary) !important;
    }

    .nav-links .nav-cta {
        font-size: 1.25rem;
        padding: 0.75rem 2rem;
        color: var(--accent-pop);
        border-color: var(--accent-pop);
    }

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

    .blog-hero {
        padding: 8rem 0 3rem;
    }

    .article-header {
        padding: 8rem 0 2rem;
    }

    .article-body {
        padding: 2rem 1.5rem 3rem;
    }

    .article-cta {
        padding: 0 1.5rem 3rem;
    }

    .article-meta {
        gap: 0.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
