/*
 * GLOBALE EINSTELLUNGEN & VARIABLEN
 */
:root {
    --main-bg-color: #f9f7e7;        
    --main-text-color: #3f572c;      
    --navi-hover-color: #7da340;     
    --content-bg: #f0ead2;             /* Hintergrund für Content-Blöcke */
    --font-stack: Verdana, Arial, Helvetica, sans-serif; 
}

/* ---------------------------------------------------- */
/* BASE STYLES & LINKS */
/* ---------------------------------------------------- */
body {
    background-color: var(--main-bg-color);
    font-family: var(--font-stack);
    color: var(--main-text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Link-Styling: Kein Unterstrich, gewünschte Farbe */
a {
    text-decoration: none; 
    color: var(--main-text-color); 
    transition: color 0.3s ease;
}
a:hover {
    color: var(--navi-hover-color);
    text-decoration: none;
}

/* --- Container zur Zentrierung der Hauptbereiche --- */
.header, .main-nav, .main-content, .footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Horizontaler Innenabstand */
}
.header { padding: 0; } /* Header füllt die ganze Breite */

/* --- Navigationsleiste --- */
.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 20px;
    gap: 30px; 
    margin-top: 20px;
    border-bottom: 1px solid #ccc; 
}
.navi-link {
    font-size: 14px;
    font-weight: normal;
}


/* ---------------------------------------------------- */
/* HAUPTINHALT (MAIN-CONTENT) */
/* ---------------------------------------------------- */
.main-content {
    /* Setzt den Rahmen und den Hintergrund für den gesamten Inhaltsbereich */
    padding: 20px;
    background-color: white; 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
    margin-top: 20px;
    
    /* Layout-Grid für die Hauptstruktur (Webshop, 2 Spalten, 1 Spalte) */
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr; /* Mobile-First: Alles in einer Spalte */
}

/* Allgemeine Formatierung für Platzhalter-Sektionen */
.content-placeholder {
    padding: 20px;
    border: 1px solid #ccc;
    background-color: var(--content-bg);
}

.content-heading {
    color: var(--main-text-color);
    font-size: 1.2rem;
}

/* Webshop-Link-Bereich (Bild) */
.content-webshop-link {
    padding: 0; /* Webshop-Link ist nur ein Container für das Bild */
    border: none; /* Entfernt den Rand um das Bild */
    background-color: transparent;
    text-align: center;
}
.webshop-link {
    display: block;
    padding: 0;
    margin: 0;
}
.webshop-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container für die 2 Spalten */
.section-two-columns {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr; /* Mobil: Standardmäßig eine Spalte */
}


/* ---------------------------------------------------- */
/* DESKTOP-LAYOUT: Anpassungen für breite Bildschirme (ab 768px) */
/* ---------------------------------------------------- */
@media (min-width: 768px) {
    
    /* ZWEISPALTIGER BEREICH: Nebeneinander auf dem Desktop */
    .section-two-columns {
        grid-template-columns: 1fr 1fr; /* Zwei gleichbreite Spalten */
    }

    /* Der Hauptinhalt bleibt ein einfaches Layout, da die 2 Spalten im Container liegen */
    .main-content {
        /* Hier sind die drei Hauptblöcke (Webshop, 2 Spalten Container, 1 Spalte Container) */
        grid-template-areas: 
            "webshop"
            "two-cols"
            "one-col";
    }
    
    .content-webshop-link { grid-area: webshop; }
    .section-two-columns { grid-area: two-cols; }
    .placeholder-C { grid-area: one-col; }
}


/* --- Footer-Bereich --- */
.footer {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: var(--main-text-color);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #ccc;
}
.legal-info a {
    margin: 0 10px;
}


/* --- Media Queries für mobile Geräte --- */
@media (max-width: 768px) {
    .header, .main-nav, .main-content, .footer {
        padding-left: 10px;
        padding-right: 10px;
    }
    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .footer {
        flex-direction: column;
        gap: 10px;
    }
    
}
/* Styling für Tabellen im Inhalt (falls nötig) */
.kontakt-table {
    border-collapse: collapse;
    margin-top: 10px;
}
.kontakt-table td {
    padding: 5px 15px 5px 0;
    vertical-align: top;
}

/* Spezielle Link-Stile im Impressum, um Vererbung sicherzustellen */
.kontakt-table a {
    color: var(--main-text-color) !important; 
    text-decoration: none !important; 
}
.kontakt-table a:hover {
    color: var(--navi-hover-color) !important;
    text-decoration: underline !important; /* Unterstreichung bei Hover, falls gewünscht */
}