/* --- GLOBALE VARIABLEN & RESET --- */
:root {
    --primary-color: #0d8a72;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-color);
    text-decoration: none;
}
.logo span { 
    color: var(--primary-color); 
}
.main-nav a {
    color: var(--dark-color);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}
.main-nav a:hover { 
    color: var(--primary-color); 
}

/* --- HERO BEREICH (DESKTOP) --- */
.hero {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0.1) 100%), 
                url('images/gallenschmerzen.png') no-repeat center center/cover;
    padding: 100px 0;
    border: 1px solid #e0e0e0;
    min-height: 400px;
    display: flex;
    align-items: center;
    
    /* Fluchtet exakt mit der Breite der Karten */
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 40px auto; 
    border-radius: 8px; 
}

.hero-content {
    max-width: 600px;
    margin: 0;
    text-align: left;
    padding-left: 20px; 
}

.hero h1 {
    font-size: 48px;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.hero h2 {
    font-size: 22px;
    color: #4a5568;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.4;
}

/* --- GRID & CARDS --- */
.grid-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}
.card h3 { 
    margin-bottom: 15px; 
    color: var(--dark-color); 
}
.card p { 
    margin-bottom: 20px; 
    color: #555; 
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.btn:hover { 
    opacity: 0.9; 
}

/* --- FOOTER --- */
.site-footer {
    background: var(--dark-color);
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
    font-size: 14px;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #44576c;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.footer-nav a { 
    color: #ccc; 
    text-decoration: none; 
    margin-left: 15px; 
}
.footer-nav a:hover { 
    color: #fff; 
}
.medical-disclaimer { 
    color: #aaa; 
    text-align: center; 
    font-size: 12px; 
}
/* --- ALLE RESPONSIVE ANPASSUNGEN (HANDY) --- */
@media (max-width: 768px) {
    .header-flex, .footer-flex { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
    }
    
    .main-nav a { 
        margin: 0 10px; 
    }

    .hero {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 40%, rgba(255, 255, 255, 0.3) 100%), 
                    url('images/gallenschmerzen.png') no-repeat center center/cover;
        padding: 40px 0;
        min-height: 280px;
        
        /* Erzwingt die volle Bildschirmbreite, ignoriert jegliches übergeordnetes Padding */
        width: 100vw; 
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        margin-bottom: 30px;
        
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .hero h1 { 
        font-size: 28px; 
    }
    
    .hero h2 { 
        font-size: 16px; 
        margin-bottom: 20px;
    }
}