/* landing.css - Heller, freundlicher Dorf-Look */

:root {
    --landing-primary: #3b5a32; /* Warmes, natürliches Grün */
    --landing-primary-hover: #4d7542;
    --landing-accent: #c29b62; /* Historisches Gold aus dem Map-Theme als Akzent */
    --landing-bg: #fdfcf9; /* Sehr warmes, weiches Weiß (Sand/Papier-Anmutung) */
    --landing-surface: #ffffff;
    --landing-text: #2c3e2e; /* Dunkles Grün-Grau für Text, weicher als reines Schwarz */
    --landing-text-muted: #6b7a6d;
    --landing-border: #e8e6df;
}

body#html-body {
    background-color: var(--landing-bg);
    color: var(--landing-text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    overflow-y: auto; /* Erlaube Scrollen auf der Startseite */
}

/* Entferne die Fixierung von #app-container auf der Landingpage */
.landing-page-active #app-container {
    height: auto;
    min-height: 100vh;
    display: block;
}

.landing-page-active #content {
    display: block;
}

/* --- Navigation Bar --- */
.landing-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(253, 252, 249, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--landing-border);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--landing-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--landing-text);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--landing-primary);
}

.nav-btn {
    background: var(--landing-primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--landing-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 90, 50, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--landing-text);
    border-radius: 2px;
}

/* --- Hero Section --- */
.landing-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.landing-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(253, 252, 249, 0.4), var(--landing-bg)), url('/site/templates/assets/hero_cunsdorf.png') center/cover;
    /* Historisches Bild von Cunsdorf mit leichtem Overlay für bessere Lesbarkeit */
    background-blend-mode: overlay;
    z-index: -1;
    filter: contrast(1.1) brightness(1.05);
}

.landing-hero-content {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255,255,255,0.5);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--landing-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.landing-hero p.subtitle {
    font-size: 1.5rem;
    color: var(--landing-text-muted);
    font-weight: 300;
    margin-bottom: 32px;
}

/* --- Typografie und Abschnitte --- */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-light {
    background-color: var(--landing-surface);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    margin: 40px auto;
    padding: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--landing-primary);
    margin-bottom: 12px;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background-color: var(--landing-accent);
    margin: 0 auto;
    border-radius: 2px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.text-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--landing-text);
}

.image-content img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* --- Call to Action Sektion --- */
.cta-section {
    background: var(--landing-primary);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-top: 60px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: rgba(255,255,255,0.9);
}

.btn-primary-light {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--landing-primary);
    padding: 18px 36px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-primary-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: var(--landing-bg);
}

/* --- Footer --- */
.site-footer {
    background: #1a2a16;
    color: rgba(255,255,255,0.7);
    padding: 40px 20px;
    text-align: center;
}

.site-footer p {
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .landing-hero h1 {
        font-size: 3rem;
    }
    .section-light {
        padding: 40px 20px;
    }
    
    /* Mobile Nav */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(253, 252, 249, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 24px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-bottom: 1px solid var(--landing-border);
        
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .nav-links.nav-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
