/* CSS Custom Properties für Dark/Light Mode */
:root {
    --bg-primary: #2c3e50;
    --bg-secondary: #34495e;
    --bg-card: rgba(44, 62, 80, 0.8);
    --bg-header: rgba(44, 62, 80, 0.95);
    --bg-section-alt: rgba(52, 73, 94, 0.3);
    --bg-manifesto: rgba(231, 76, 60, 0.1);
    --bg-contact: rgba(44, 62, 80, 0.9);
    --bg-footer: #2c3e50;
    
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-muted: #7f8c8d;
    --accent-color: #e74c3c;
    --accent-hover: #c0392b;
    
    --border-color: #e74c3c;
    --shadow-color: rgba(231, 76, 60, 0.4);
}

/* Manual Dark Mode via data-theme */
[data-theme="dark"] {
    --bg-primary: #2c3e50;
    --bg-secondary: #34495e;
    --bg-card: rgba(44, 62, 80, 0.8);
    --bg-header: rgba(44, 62, 80, 0.95);
    --bg-section-alt: rgba(52, 73, 94, 0.3);
    --bg-manifesto: rgba(231, 76, 60, 0.1);
    --bg-contact: rgba(44, 62, 80, 0.9);
    --bg-footer: #2c3e50;
    
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-muted: #7f8c8d;
    --accent-color: #e74c3c;
    --accent-hover: #c0392b;
    
    --border-color: #e74c3c;
    --shadow-color: rgba(231, 76, 60, 0.4);
}

/* Manual Light Mode via data-theme */
[data-theme="light"] {
    --bg-primary: #ecf0f1;
    --bg-secondary: #bdc3c7;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-section-alt: rgba(236, 240, 241, 0.5);
    --bg-manifesto: rgba(231, 76, 60, 0.05);
    --bg-contact: rgba(255, 255, 255, 0.9);
    --bg-footer: #34495e;
    
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --text-muted: #7f8c8d;
    --accent-color: #e74c3c;
    --accent-hover: #c0392b;
    
    --border-color: #e74c3c;
    --shadow-color: rgba(231, 76, 60, 0.2);
}

/* Automatic Dark Mode based on system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg-primary: #2c3e50;
        --bg-secondary: #34495e;
        --bg-card: rgba(44, 62, 80, 0.8);
        --bg-header: rgba(44, 62, 80, 0.95);
        --bg-section-alt: rgba(52, 73, 94, 0.3);
        --bg-manifesto: rgba(231, 76, 60, 0.1);
        --bg-contact: rgba(44, 62, 80, 0.9);
        --bg-footer: #2c3e50;
        
        --text-primary: #ecf0f1;
        --text-secondary: #bdc3c7;
        --text-muted: #7f8c8d;
        --accent-color: #e74c3c;
        --accent-hover: #c0392b;
        
        --border-color: #e74c3c;
        --shadow-color: rgba(231, 76, 60, 0.4);
    }
}

/* Automatic Light Mode based on system preference */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg-primary: #ecf0f1;
        --bg-secondary: #bdc3c7;
        --bg-card: rgba(255, 255, 255, 0.9);
        --bg-header: rgba(255, 255, 255, 0.95);
        --bg-section-alt: rgba(236, 240, 241, 0.5);
        --bg-manifesto: rgba(231, 76, 60, 0.05);
        --bg-contact: rgba(255, 255, 255, 0.9);
        --bg-footer: #34495e;
        
        --text-primary: #2c3e50;
        --text-secondary: #34495e;
        --text-muted: #7f8c8d;
        --accent-color: #e74c3c;
        --accent-hover: #c0392b;
        
        --border-color: #e74c3c;
        --shadow-color: rgba(231, 76, 60, 0.2);
    }
}

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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

header {
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 3px solid var(--border-color);
    transition: background-color 0.3s ease;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: var(--text-primary);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="mountains" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><polygon points="20,80 50,20 80,80" fill="%23e74c3c" opacity="0.1"/><polygon points="60,80 90,30 120,80" fill="%23e74c3c" opacity="0.08"/></pattern></defs><rect width="100%" height="100%" fill="url(%23mountains)"/></svg>');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding-top: 80px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--accent-color);
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(231, 76, 60, 0.4);
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    color: var(--text-primary);
    font-weight: bold;
    letter-spacing: 2px;
}

.hero .subtitle {
    font-size: 1.8em;
    margin-bottom: 35px;
    color: var(--text-secondary);
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero .tagline {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-primary);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.section {
    padding: 80px 0;
    transition: background-color 0.3s ease;
}

.section:nth-child(even) {
    background: var(--bg-section-alt);
}

.section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent-color);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pillar {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s, background-color 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
}

.pillar h3 {
    color: var(--accent-color);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.pillar p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about {
    text-align: center;
}

.about p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.manifesto {
    background: var(--bg-manifesto);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 40px;
    margin: 50px 0;
    font-style: italic;
    font-size: 1.1em;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.contact {
    text-align: center;
    background: var(--bg-contact);
    transition: background-color 0.3s ease;
}

.contact h2 {
    margin-bottom: 30px;
}

.contact p {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

footer {
    background: var(--bg-footer);
    text-align: center;
    padding: 30px 0;
    border-top: 3px solid var(--accent-color);
    transition: background-color 0.3s ease;
}

footer p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.2em;
        letter-spacing: 1px;
    }
    
    .hero .subtitle {
        font-size: 1.5em;
    }
    
    .hero .tagline {
        font-size: 1.2em;
        max-width: 600px;
    }
    
    .hero-image {
        max-width: 90%;
        margin-bottom: 20px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .cta-button {
        font-size: 1em;
        padding: 16px 32px;
    }
    
    .nav-links {
        display: none;
    }
    
    .pillars {
        grid-template-columns: 1fr;
    }
    
    .theme-toggle {
        margin-left: 10px;
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        max-width: 95%;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    }
    
    .hero h1 {
        font-size: 2.5em;
        letter-spacing: 1px;
    }
    
    .hero .subtitle {
        font-size: 1.3em;
    }
    
    .hero .tagline {
        font-size: 1.1em;
        padding: 0 10px;
        max-width: 90%;
    }
    
    .cta-button {
        font-size: 0.95em;
        padding: 14px 28px;
    }
}