/*
Theme Name: fv-radfahren-mv.de
Author: AI
Description: fv-radfahren-mv.de
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Mulish:wght@300;500;700;800&display=swap');

:root {
    --primary: #e65100;
    --secondary: #263238;
    --accent: #ff6d00;
    --bg-main: #fef8f2;
    --white: #ffffff;
    --text-main: #212121;
    --text-muted: #4a4a4a;
    --border: #263238;
    
    --container-width: 1280px;
    --content-width: 800px;
    --transition: all 0.3s ease;
    --radius: 16px;

    --section-pad: clamp(5rem, 12vw, 10rem);
}

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

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Mulish', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, .logo, .btn-arc {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
    letter-spacing: 0.05em;
}

h1 { font-size: clamp(2rem, 8vw, 5rem); margin-bottom: 2rem; word-break: break-word; }
h2 { font-size: clamp(1.8rem, 5vw, 3.5rem); margin-bottom: 4rem; text-align: center; word-break: break-word; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Axis 8: D-C Whitespace */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
}

/* Axis 1: N-B Fixed Sidebar Navigation */
.site-header {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 240px;
    background: var(--bg-main);
    z-index: 9999;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    overflow-x: hidden;
}
.site-main {
    margin-left: 240px;
    width: calc(100% - 240px);
}

.header-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 0 2rem;
}

.logo {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem !important;
    color: var(--primary) !important;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-bottom: 4rem;
}
.logo span { color: var(--secondary); font-weight: 300; }

.main-nav ul { display: flex; flex-direction: column; list-style: none; gap: 1.5rem; }
.main-nav a { font-size: 1rem; font-family: 'Anton', sans-serif; text-transform: uppercase; opacity: 0.8; }
.main-nav a:hover { color: var(--primary); opacity: 1; }

.nav-toggle { display: none; }

/* Axis 2: H-A Full Bleed Overlay */
.hero-arc {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}
.hero-content { max-width: 900px; z-index: 1; color: var(--white); }
.hero-content h1 { color: var(--white); }
.hero-content p { font-size: 1.4rem; color: rgba(255,255,255,0.8); max-width: 800px; margin: 0 auto 3rem; }

.btn-arc {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    margin-top: 2rem;
}
.btn-arc:hover { transform: translateY(-3px); background: var(--accent); }

/* Axis 3: F-A Horizontal stripes */
.features-section { padding: var(--section-pad) 0; }
.feature-stripe {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}
.feature-stripe.alt {
    background: var(--white);
}

/* Axis 5: U-F Text manifesto */
.manifesto-section {
    padding: var(--section-pad) 0;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}
.manifesto-section h2 { color: var(--white); }
.manifesto-section p { font-size: 1.5rem; max-width: 800px; margin: 0 auto; line-height: 1.8; }

/* Axis 4: C-B Horizontal Cards */
.posts-section { padding: var(--section-pad) 0; }
.posts-heading { text-align: left; }
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) {
    .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1400px) {
    .posts-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.post-card-arc { 
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: var(--transition);
    background: var(--white);
    /* Axis 7: V-A Soft shadows */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
@media (min-width: 1600px) {
    .post-card-arc { flex-direction: row; }
    .post-card-arc .thumb { width: 40%; height: auto; }
    .post-card-arc .post-card-content { width: 60%; }
}
.post-card-arc:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.post-card-arc .thumb { height: 250px; position: relative; display: block; }
.post-card-arc .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.post-card-content { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.meta-cat { font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; text-transform: uppercase; }
.post-card-content h3 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 1rem; }
.post-card-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.read-more { font-weight: 800; font-family: 'Anton', sans-serif; font-size: 1rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; text-transform: uppercase; }

.all-articles-link { text-align: center; margin-top: 6rem; }

.pagination { display: flex; justify-content: center; gap: 1rem; margin: 6rem 0; }
.pagination .page-numbers { 
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid var(--border); background: var(--white); 
    font-weight: 700; color: var(--text-main);
}
.pagination .page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Axis 6: FT-A Minimalist Footer */
.site-footer { padding: 4rem 0; background: var(--white); border-top: 1px solid var(--border); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; flex-wrap: wrap; gap: 1rem; }

/* Responsive / Reset N-B at 1024px */
@media (max-width: 1024px) {
    .site-header {
        position: fixed;
        width: 100%;
        height: 80px;
        bottom: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .site-main {
        margin-left: 0;
        width: 100%;
        margin-top: 80px;
    }
    .header-inner { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; padding: 0; }
    .logo { margin-bottom: 0; }
    
    .main-nav { display: none; }
    .nav-toggle { 
        display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 10001; 
        background: none; border: none;
    }
    .nav-toggle span { width: 25px; height: 2px; background: var(--text-main); transition: 0.3s; }
    
    body.menu-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.menu-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    body.menu-open .main-nav { 
        display: flex; position: fixed; inset: 0; background: var(--bg-main); 
        z-index: 10000; align-items: center; justify-content: center;
    }
    body.menu-open .main-nav ul { flex-direction: column; text-align: center; gap: 2.5rem; }
    body.menu-open .main-nav a { font-size: 2rem; }
}

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; text-align: center; }
    .container { padding: 0 2rem; }
}

/* RULE 21 FIX */
.post-card-arc {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.post-card-arc .thumb {
    display: block !important;
    height: clamp(180px, 25vw, 300px) !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.post-card-arc .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.post-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}
.post-card-content h3 {
    flex-grow: 1 !important;
}
.btn-read, .read-more-link {
    margin-top: auto !important;
}

.logo, .footer-logo { flex-wrap: wrap !important; }

/* FIX HERO OVERLAP RULE 16 */
.site-main > section:first-child {
    padding-top: clamp(140px, 15vh, 180px) !important;
}
.hero-split {
    padding-top: 0 !important;
}
.hero-split .hero-text {
    padding-top: clamp(140px, 15vh, 180px) !important;
}


.hero-arc {
    height: auto !important;
    min-height: max(400px, 50vh) !important;
}


/* FIX BACKGROUND VISIBILITY BUG (STACKING CONTEXT) */
section, .hero-arc, .hero-split, .site-main > section {
    isolation: isolate;
}
.hero-content, .hero-text {
    position: relative;
    z-index: 1;
}

