/* Green Libertarian Blog - Complete Stylesheet */
/* Updated with German filenames */

:root {
    --cream: #F5EDD5;
    --dark-brown: #3D2817;
    --green: #2D5F4F;
    --gold: #F0D060;
    --text-dark: #2C2C2C;
    --accent-purple: #8B6BA8;
}

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

html, body {
    height: 100%;
    font-family: 'Georgia', 'Garamond', serif;
    background-color: var(--cream);
    color: var(--text-dark);																																																																																																																																																								   `
}

body {
    display: flex;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.sidenav {
    position: fixed;
    left: 0;
    top: 0;
    width: 150px;
    height: 100vh;
    background-color: var(--dark-brown);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 100;
}

.sidenav a {
    color: var(--cream);
    text-decoration: none;
    font-size: 20px; /* //TT - increased by 2, adjust as needed */
    font-weight: bold; /* //TT - made bold, change to normal if preferred */
    transition: color 0.3s ease;
    display: block;
}

.sidenav a:hover {
    color: var(--gold);
}

/* ===== MAIN CONTAINER WW ===== */

.main-content-wrapper {
	display: flex;
	flex-direction: column;
    margin-left: 150px;
    width: calc(100% - 150px);
    position: relative;
    background-color: var(--cream);
    min-height: 100vh;
    padding: 50px 50px 50px 50px; /* //TT - top right bottom left */
	padding-bottom: 160px;  /* Space for graphics */

}

/* ===== HEADER ===== */
header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 5;
}

header h1 {
    font-size: 60px;
    color: var(--green);
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

header p {
    font-size: 30px;
    color: var(--text-dark);
    font-style: italic;
    font-weight: normal;
}

header hr {
    border: none;
    border-top: 2px solid var(--green);
    margin: 30px auto;
    width: 200px;
}

/* ===== ILLUSTRATIONS - Positioned Backgrounds ===== */
/* Sun - scales from 2560x1440 base */
/* Sun - offset scales with screen size */
.sun-illustration {
    position: fixed;
    left: calc(min(8.59375vw, 220px) - max(0px, (1600px - 100vw) * 0.05)); 
	top: 60px;
    width: min(14.0625vw, 360px);
    height: min(14.0625vw, 360px);
    background-image: url('/static/images/Sonnekreis3.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Wind Turbines - scales from 2560x1440 base */
.windmill-illustration {
    position: fixed;
    right: -350px;
    top: 40px;
    width: min(32.8125vw, 840px);  /* //TT - 32.8125vw at 2560px = 840px max */
    height: min(39.0625vw, 1000px); /* //TT - 39.0625vw at 2560px = 1000px max */
    background-image: url('/static/images/wind_räder2.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Grüne Hand - scales from 2560x1440 base */
.hand-illustration {
    position: fixed;
    left: calc(min(8.59375vw, 220px) - max(0px, (1600px - 100vw) * 0.06) - 100px); 
    bottom: -10vw;
    width: min(29.6875vw, 760px);  /* //TT - 29.6875vw at 2560px = 760px max */
    height: min(37.5vw, 960px);    /* //TT - 37.5vw at 2560px = 960px max */
    background-image: url('/static/images/Grüne_Hand3.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
}

/* Waves - scales from 2560x1440 base */
.wavy-lines {
    position: fixed;
    bottom: calc(0px - max(0px, (1200px - 100vw) * 0.09));  /* Same sink as stars! */
    left: 50%;
    transform: translateX(-50%);
    width: min(54.6875vw, 1400px);  /* //TT - 54.6875vw at 2560px = 1400px max */
    height: min(20vh, 150px);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wavy-lines::before {
    content: '';
    width: min(23.4375vw, 600px);  /* //TT - 23.4375vw at 2560px = 600px max */
    height: min(15vh, 150px);
    background-image: url('/static/images/Schlange_Welle.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.wavy-lines::after {
    content: '';
    width: min(23.4375vw, 600px);  /* //TT - 23.4375vw at 2560px = 600px max */
    height: min(15vh, 150px);
    background-image: url('/static/images/Schlange_Welle.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Stars - scales from 2560x1440 base */
/* Stars - scales from 2560x1440 base */
.stars-illustration {
    position: fixed;
    bottom: calc(0px - max(0px, (1200px - 100vw) * 0.09));  /* Slow sink */
    left: 50%;
    transform: translateX(-50%);
    width: min(5.859vw, 150px);   /* //TT - 5.859vw at 2560px = 150px max */
    height: min(20vh, 150px);  /* Same as waves - scales with viewport height */
    background-image: url('/static/images/Sterne1.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 4;
}
/* Brown stripe - GROWS as screen shrinks (opposite of other elements) */
.brown-stripe {
    position: fixed;
	bottom: calc(35px + max(0px, (1600px - 100vw) * 0.03));  
    right: max(0.7vw, 5px);  /* //TT - Moves LEFT as screen shrinks (right offset decreases) */
    width: calc(242px - max(0px, (1600px - 100vw) * 0.075));
    height: calc(85px - max(0px, (1600px - 100vw) * 0.026));
    background-image: url('/static/images/brauner_Streifen1.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 3;
    border-radius: 4px;
}
/* WEC - Same size as sk, positioned BELOW sun */
.wec-illustration {
    position: fixed;
	left: calc(min(8.59375vw, 220px) - max(0px, (1600px - 100vw) * 0.05));
	top: calc(60px + min(14.0625vw, 360px) + 40px);  /* //TT - Below sun with 40px gap */
    width: min(14.0625vw, 360px);
    height: min(14.0625vw, 360px);
    background-image: url('/static/images/WEC2.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

/* SP - Below WEC */
.sp-illustration {
    position: fixed;
    left: calc(min(8.59375vw, 220px) - max(0px, (1600px - 100vw) * 0.05));
    top: calc(60px + min(14.0625vw, 360px) + 40px + min(14.0625vw, 360px) + 40px);  /* //TT - Below WEC with 40px gap */
    width: min(14.0625vw, 360px);
    height: min(14.0625vw, 360px);
    background-image: url('/static/images/Solarpanel1.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}
/* Money bag positioning */
.money-illustration {
    position: fixed;
    left: min(6vw, 200px); 
    bottom: 100px;
    width: min(10.4vw, 266px);   /* 2x bigger: was 5.2vw/133px */
    height: min(10.4vw, 266px);  /* 2x bigger: was 5.2vw/133px */
    background-image: url('/static/images/Geldsack1.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    display: none !important;  /* Hidden by default */
}

/* ===== CONTENT AREAS CC ===== */

.content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    overflow-y: auto;
}
.page-title {
    font-size: 36px;
    color: var(--green);
    margin-bottom: 40px;
    font-weight: normal;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-title h2 {
    font-size: 46px;
    color: var(--green);
    font-weight: bold;
}

/* ===== BLOG INDEX ===== */

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.post-item {
    padding: 0;
    border: none;
    background: transparent;
}

.post-item h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: normal;
}

.post-item h3 a {
    color: var(--green);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-item h3 a:hover {
    color: var(--gold);
}

.post-meta {
    font-size: 18px;
    color: #2C2C2C;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: bold;
    margin-bottom: 20px;
}


/* ===== SMALL TEXT (dates, meta) ===== */
small {
    font-size: 18px;
    color: #666;
}

.post-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* ===== BLOG DETAIL PAGE ===== */

.post-detail {
    position: relative;
    z-index: 10;
}

.post-detail h2 {
    font-size: 48px;
    color: var(--green);
    margin-bottom: 20px;
    font-weight: normal;
}

.post-detail .post-meta {
    margin-bottom: 60px;
}

/* ===== PAGE TITLE (block page_title) ===== */
.page_title h2 {
    font-size: 48px;
    color: var(--green);
    margin-bottom: 20px;
    font-weight: normal;
}

/* ===== BLOG POST CONTENT FORMATTING ===== */

.post-body {
    margin-top: 40px;
}

.post-body h2 {
    font-size: 24px;
    font-weight: bold;
    color: var(--green);
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-body h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--green);
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-body strong,
.post-body b {
    font-weight: bold;
    color: var(--text-dark);
}

.post-body em,
.post-body i {
    font-style: italic;
}

.post-body p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.post-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.post-body blockquote {
    border-left: 4px solid var(--green);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}
.post-body p {
    margin-bottom: 20px;
}

/* ===== ABOUT PAGE ===== */

.about-content h3 {
    font-size: 24px;
    color: var(--green);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: normal;
}

.about-content p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 200px;

}




/* ===== TOPICS PAGE ===== */

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.topic-item {
    border-left: 4px solid var(--green);
    padding-left: 20px;
}

.topic-item h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: normal;
}

.topic-item a {
    color: var(--green);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.topic-item a:hover {
    color: var(--gold);
}

.topic-count {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* ===== COMMENTS SECTION ===== */

.comments-section {
    margin-top: 60px;
    border-top: 2px solid var(--green);
    padding-top: 40px;
}

.comments-section h3 {
    font-size: 24px;
    color: var(--green);
    margin-bottom: 30px;
    font-weight: normal;
}

.comment-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.btn {
    background-color: var(--green);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--gold);
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(45, 95, 79, 0.05);
    border-left: 3px solid var(--green);
}

.comment-author {
    font-weight: bold;
    color: var(--green);
}

.comment-date {
    font-size: 14px;
    color: #666;
}


/* ===== NEWSLETTER SIGNUP BUTTON ===== */

.signup-button {
    position: fixed;
    bottom: clamp(35px, calc(80px - 2vw), 80px);  /* Smooth bottom transition */
    right: max(0.27vw, 7px);
    background-color: transparent;
    color: var(--text-dark);
    padding: 15px 25px;
    border: none;
    border-radius: 4px;
    font-size: clamp(14px, calc(10px + .8vw), 26px); /* Smooth font scaling: 16-26px */
    font-weight: bold;
    cursor: pointer;
    z-index: 51;
    transition: color 0.3s ease;
}
.signup-button:hover {
    color: var(--gold);
}

/* ===== NEWSLETTER MODAL ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--cream);
    padding: 40px;
    border: 2px solid var(--green);
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.modal-content h2 {
    color: var(--green);
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: normal;
}

.modal-content p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--green);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--gold);
}


/* ===== TOPICS PAGE ===== */

.topics-container {
    max-width: 800px;
    margin: 0 auto;
}

.topics-intro {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.topics-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.topic-card {
    border-left: 4px solid #0066cc;
    padding: 15px;
    background-color: #f9f9f9;
}

.topic-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
}

.topic-title a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

.topic-title a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.topic-count {
    color: #666;
    margin: 10px 0 0 0;
    font-size: 14px;
}

.topics-empty {
    color: #999;
    margin-top: 30px;
}

/* ===== TOPIC DETAIL PAGE ===== */

.topic-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.topic-posts .post-item {
    padding: 20px;
    border-left: 4px solid var(--green);
    background-color: rgba(45, 95, 79, 0.03);
}

.topic-posts .post-item h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: normal;
}

.topic-posts .post-item h3 a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topic-posts .post-item h3 a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.read-more {
    color: var(--green);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    color: var(--gold);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile - final adjustments */

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidenav {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }
     /* WW  */
    .main-content-wrapper {
        margin-left: 0;
        width: 100%;
        padding-bottom: 200px;  /* Space for graphics */
    }
    
    header h1 {
        font-size: 32px;
    }
    
    header p {
        font-size: 20px;
    }
    

}

/* ===== PAGE-SPECIFIC VISIBILITY ===== */

/* DEFAULT: Hide all page-specific left elements by default */
.hand-illustration,
.wec-illustration,
.sp-illustration {
    display: none !important;
}

/* THEN override for specific pages */

/* Page 1 (Home): Show ONLY hand */
.page-home .hand-illustration {
    display: block !important;
}

/* Pages 2-3 (About, Topics): Show ONLY wec/sp */
.page-about .wec-illustration,
.page-about .sp-illustration,
.page-topics .wec-illustration,
.page-topics .sp-illustration {
    display: block !important;
}



/* WEC positioning... */

/* Post Detail pages ONLY: Giant sun, WT 1/3 visible, money bag */
.page-post-detail .sun-illustration {
    width: min(28.125vw, 720px);  /* //TT - CHANGED: 2X bigger */
    height: min(28.125vw, 720px);
    left: -200px;  /* //TT - CHANGED: Half hidden + 100px more left */
}

.page-post-detail .windmill-illustration {
    right: calc(-44vw * 2/3 + 100px);  /* //TT - CHANGED: 2/3 off + 100px more left */
}

/* Hide WEC/SP on post detail pages */
.page-post-detail .wec-illustration,
.page-post-detail .sp-illustration {
    display: none !important;  /* //TT - ADDED: No WEC/SP on posts */
}

/* Show money bag on both post detail AND topic detail pages */
.page-post-detail .money-illustration {
    display: block !important;
}