/* Grundlegende Stildefinitionen */
:root {
    --primary-color: #007CA5;
    --secondary-color: #c94d0c;
    --background-light: #E9F5F8;
    --background-dark: #f7f7f7;
    --text-dark: #212121;
    --text-medium: #666;
    --border-light: #d3e4e8;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

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

/* Header-Stil */
.header {
    background-color: #fff;
    padding: 1rem 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    /* Stil für das Logo-Element */
    text-decoration: none;
	background-image: url('/img/logo-bellende-gesundheit.png');
    background-size: cover; /* Passt das Bild an, um den gesamten Container auszufüllen */
    background-position: center; /* Zentriert das Bild */
    background-repeat: no-repeat; /* Verhindert, dass das Bild gekachelt wird */
	
}

/* Stil für den Logo-Platzhalter */
.logo-placeholder {
    display: block;
    width: 200px;
    height: 50px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
}

/* KORREKTUR: Gilt jetzt nur für die Hauptnavigation, nicht für das Dropdown */
.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Dropdown-Menü für Ratgeber */
.has-dropdown {
    position: relative;
}

/* KORREKTUR: Spezifischerer Selektor, um das Verstecken zu erzwingen */
li.has-dropdown > .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 5px;
    min-width: 200px;
    z-index: 10;
}

/* Dropdown-Menü beim Hover anzeigen (Desktop) */
@media (min-width: 769px) {
    .has-dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Dropdown-Menü beim Klick anzeigen (Mobile & Desktop) */
.has-dropdown.active > .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    display: block;
    font-weight: 400;
}

/* Hero-Sektion */
.hero {
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #b0400c;
}

/* Info-Sektion */
.info-section {
    background-color: #fff;
    padding: 4rem 20px;
    text-align: center;
}

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

.info-text h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 1rem;
}

/* Ratgeber-Grid */
.ratgeber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 4rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ratgeber-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ratgeber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.ratgeber-card h3 {
    color: var(--primary-color);
    font-size: 1.25em;
    padding: 1rem;
}

.ratgeber-card p {
    color: var(--text-medium);
    font-size: 0.9em;
    padding: 0 1rem 1rem;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0 1rem 1.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem 20px;
    text-align: left;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.9em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer p {
    margin-top: 1rem;
    font-size: 0.8em;
    opacity: 0.7;
}

/* Mobile-Stil */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }
    
    .nav-list li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
    
    li.has-dropdown > .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        min-width: unset;
        width: 100%;
        display: none; 
    }

    .nav-menu.active .has-dropdown.active > .dropdown-menu {
        display: block;
    }

    .nav-menu.active .dropdown-menu a {
        padding-left: 2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .footer-container {
        align-items: center;
        text-align: center;
    }
}

/* Stil für Inhaltsseiten (z.B. Impressum und Datenschutz) */
.page-content {
    padding: 4rem 20px;
    background-color: #fff;
}

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

.content-container h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-container h2 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.content-container p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.content-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.content-container a:hover {
    text-decoration: underline;
}

