:root {
    --primary-color: #442812; /* Dark Brown */
    --accent-color: #D6CDC1; /* Beige */
    --bg-color: #fdfdfd;
    --text-color: #333;
    --nav-hover: #6d4c2e;
    --alert-bg: #f9f9f9;
    --alert-border: #eee;
}

/* Reset & Basics */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER (Neu: Bild als Hintergrund) */
header {
    background-image: url('../img/header.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Falls das Bild nicht lädt oder als Fallback */
    background-color: var(--accent-color); 
    padding: 3rem 0; /* Mehr Platz für das Bild */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center; /* Immer zentriert */
    text-align: center;
}

.header-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.brand {
    text-decoration: none;
    color: var(--primary-color);
}

.site-title {
    font-size: 3rem; /* Groß auf Desktop */
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5); /* Bessere Lesbarkeit auf Hintergrund */
}

/* NAVIGATION */
nav {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: center; /* Desktop: Zentriert */
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.nav-list a:hover, .nav-list a.current {
    background-color: var(--primary-color);
    color: #fff;
}

/* BURGER MENU (Standardmäßig ausgeblendet) */
.burger-menu {
    display: none;
    cursor: pointer;
    padding: 15px;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* Main Content */
main {
    flex: 1;
    padding: 100px 0 60px 0; /* Deutlich mehr Abstand nach oben */
}

h1, h3 {
    color: var(--primary-color);
    margin-top: 0;
}

h2 {
    color: var(--primary-color);
    margin-top: 20px; /* Zusätzlicher Puffer für die erste Überschrift */
    margin-bottom: 30px;
}

/* Homepage Grid */
.home-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.home-text {
    flex: 1;
}

.home-image {
    flex: 1;
    max-width: 500px;
}

/* Helper Classes (Refactored from Inline Styles) */
.alert-box {
    border: 2px solid var(--alert-border); 
    padding: 15px; 
    border-radius: 8px; 
    text-align: center; 
    background-color: var(--alert-bg);
    margin-top: 15px;
}

.alert-box.warning {
    background-color: #fff8e1;
    border-color: #ffe082;
    text-align: left;
}

.alert-text {
    font-weight: bold; 
    margin: 0;
}

.caption-text {
    font-size: 0.9em; 
    color: #666; 
    margin-top: 5px; 
    text-align: center;
}

.team-name {
    font-weight: bold; 
    font-size: 1.2em;
}

.divider-dotted {
    border: 0; 
    border-top: 1px dotted #ccc; 
    margin: 20px 0;
}

.divider-light {
    margin: 15px 0; 
    border: 0; 
    border-top: 1px solid #eee;
}

.divider-section {
    max-width: 600px; 
    margin: 30px auto; 
    border: 0; 
    border-top: 1px solid #ddd;
}

.list-clean {
    list-style-type: none; 
    padding-left: 0;
}

.text-link {
    color: inherit; 
    text-decoration: none;
}

.text-link-bold {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.map-container {
    flex: 1.5; 
    max-width: none;
}

.map-iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border-left: 5px solid var(--accent-color);
}

.service-card.green-accent {
    border-left-color: #4CAF50;
}

.service-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.small-note {
    font-size: 0.9em;
}

.centered-content {
    text-align: center; 
    max-width: 600px; 
    margin: 0 auto;
}

.centered-bold-title {
    font-weight: bold; 
    font-size: 1.1em;
}

.impressum-box {
    background: #fff; 
    padding: 30px; 
    border-radius: 8px; 
    border: 1px solid #eee;
}

/* Team Styles */
.team-member {
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.team-member:last-child {
    border-bottom: none;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.gallery-caption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table.opening-hours {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table.opening-hours th, table.opening-hours td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

table.opening-hours th {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
}

table.opening-hours tr:last-child td {
    border-bottom: none;
}

/* FOOTER (Kleiner und dezenter) */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 10px 0; /* Weniger Padding */
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem; /* Kleinere Schrift */
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    
    /* Header Anpassung */
    .site-title {
        font-size: 2rem; /* Kleiner auf Mobile, damit nichts abgeschnitten wird */
        word-wrap: break-word; /* Umbruch erlauben falls nötig */
    }

    /* Burger Menu Logik */
    .burger-menu {
        display: flex; /* Zeigen */
        margin-left: auto; /* Rechtsbündig im Container */
    }

    .nav-container {
        justify-content: space-between; /* Burger rechts, Logo/Brand links (falls vorhanden) */
        padding: 0 20px;
    }

    .nav-list {
        display: none; /* Erstmal verstecken */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Unterhalb der Nav-Bar */
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    /* Wenn Klasse "active" gesetzt ist (durch JS) */
    .nav-list.active {
        display: flex;
    }

    .nav-list a {
        padding: 15px;
        border-bottom: 1px solid #f5f5f5;
        text-align: center; /* Menüpunkte zentriert */
    }

    /* Homepage: Text first, then Image */
    .home-grid {
        flex-direction: column-reverse; /* Bild unten, Text oben. Aber warte... 
           Desktop: Text Links, Bild Rechts.
           HTML Order: Bild, Text? 
           User wollte: "Desktop: Bild rechts und Text daneben. Mobile: Zuerst Text dann Bild."
           Ich muss sicherstellen, dass das HTML: Text -> Bild ist.
           Dann ist Desktop (Row): Text | Bild.
           Mobile (Column): Text (oben) | Bild (unten).
           Also KEIN reverse nötig, wenn HTML stimmt.
           Ich prüfe das HTML gleich.
        */
        flex-direction: column; 
    }
}