/* style.css - HAMBURGER MENU VERSION */

/* --- 1. GRUNDLAGEN & VARIABLEN --- */
:root {
    --primary: #0f172a;  
    --accent: #3b82f6;   
    --bg-light: #f8fafc; 
    --text-main: #334155;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 8px;       
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    opacity: 0; 
    transition: opacity 0.2s ease-in;
}

body.loaded { opacity: 1; }

/* SPRACH-LOGIK */
body.lang-de .content-en { display: none !important; }
body.lang-en .content-de { display: none !important; }

/* --- 2. HEADER --- */
header {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

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

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link { text-decoration: none; display: flex; align-items: center; }
.logo-img { max-height: 50px; width: auto; display: block; }
.logo-text { font-weight: 800; font-size: 1.5rem; color: var(--primary); }

/* Navigation Container */
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 0.8rem; align-items: center; }

/* HAMBURGER ICON (Standardmäßig unsichtbar) */
.hamburger {
    display: none; /* Nur mobil sichtbar */
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Nav Buttons Style */
.nav-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background-color: #f1f5f9;
    color: var(--text-main);
    border: 1px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
}
.nav-btn:hover {
    background-color: var(--accent);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.nav-btn:active { transform: translateY(0); background-color: #2563eb; }

/* Sprach-Buttons */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 1px solid #cbd5e1;
    padding-left: 1rem;
}
.lang-btn { transition: color 0.2s; color: #94a3b8; }
.lang-btn:hover { color: var(--accent); }


/* --- 3. IFRAME & CONTENT --- */
#main-frame {
    width: 100%;
    height: calc(100vh - 80px); 
    border: none;
    display: block;
}

.content-wrapper { padding: 3rem 0; min-height: 60vh; }

.hero {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 3rem;
}
.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    hyphens: auto;
}
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

.section-title { font-size: 2rem; color: var(--primary); margin-bottom: 2rem; text-align: center; }

/* Bilder Styles */
.card .icon-placeholder img, .visual-content img, .img-placeholder img {
    width: 100%; display: block; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
}
.card .icon-placeholder img { height: 200px; }
.visual-content img, .img-placeholder img { height: auto; aspect-ratio: 16/9; max-height: 400px; }
.visual-content.square img, .visual-content.square .img-placeholder { aspect-ratio: 1 / 1 !important; max-height: 500px; }

/* Placeholder Resets */
.card .icon-placeholder, .visual-content .img-placeholder { background: transparent; padding: 0; width: 100%; display: block; }
.card .icon-placeholder { margin-bottom: 1.5rem; }
.img-placeholder:empty { background-color: #e2e8f0; min-height: 200px; }

/* Grid & Layouts */
.grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: var(--white); padding: 2rem; border-radius: var(--radius);
    box-shadow: var(--shadow); border-top: 4px solid var(--accent);
    height: 100%; display: flex; flex-direction: column;
}
.card h3 { color: var(--primary); margin: 0.5rem 0; }
.card p { margin-bottom: auto; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.text-block { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 2rem; }
.text-block h2 { color: var(--primary); margin-bottom: 1rem; font-size: 1.5rem; }
.text-block ul { margin-left: 1.5rem; }

.map-responsive { overflow: hidden; padding-bottom: 40%; position: relative; height: 0; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 2rem; border: 1px solid #e2e8f0; }
.map-responsive iframe { left: 0; top: 0; height: 100%; width: 100%; position: absolute; border: 0; }

footer { border-top: 1px solid #e2e8f0; background: var(--bg-light); color: #64748b; padding: 3rem 0; margin-top: 4rem; text-align: center; font-size: 0.9rem; }
footer a { color: var(--accent); text-decoration: none; }


/* --- 9. MOBILE ANPASSUNG (OPTIMIERT) --- */
@media (max-width: 900px) {
    /* Header Container */
    header { height: 70px; padding: 0; z-index: 1000; }
    
    /* WICHTIG: Weniger Randabstand mobil (mehr Platz für Inhalt) */
    .container {
        padding: 0 1rem; /* Vorher 1.5rem */
    }

    /* Listen-Einrückung korrigieren, damit sie nicht so weit rechts stehen */
    .text-block ul {
        margin-left: 0; 
        padding-left: 1.2rem;
    }

    /* Navigation Rechts */
    .nav-right { position: static; }

    /* Hamburger Icon sichtbar */
    .hamburger { display: block; margin-left: 1rem; }

    /* Navigation Dropdown */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e2e8f0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav-links.active { max-height: 500px; }

    /* Mobile Nav Buttons */
    .nav-btn {
        width: 100%;
        text-align: left;
        border-radius: 0;
        background: transparent;
        border-bottom: 1px solid #f1f5f9;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    .nav-btn:hover {
        background-color: #f8fafc;
        color: var(--accent) !important;
        transform: none;
        box-shadow: none;
    }

    .lang-switch { padding-left: 0; border-left: none; }

    /* Iframe & Content Anpassungen */
    #main-frame { height: calc(100vh - 70px); }
    .grid { grid-template-columns: 1fr; }
    .split-section { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Bilder mobil anpassen */
    .card .icon-placeholder img { height: 180px; } /* Etwas höher für bessere Optik */
    .visual-content img, .img-placeholder img { max-height: 250px; }
    
    .map-responsive { padding-bottom: 75%; }
    
    /* Animation Hamburger */
    .hamburger.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}