/*
 * GLOBALE EINSTELLUNGEN & VARIABLEN
 */
 :root {
    --main-bg-color: #f9f7e7;
    --main-text-color: #3f572c; /* GRÜN-TON */
    --navi-hover-color: #7da340; /* HELLERER GRÜN-TON */
    --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 (URSPRÜNGLICH WIEDERHERGESTELLT) */
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;
}
.header { padding: 0; }

/* --- 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;

    /* Flexbox für eine stabile Stapelung aller Beitragsblöcke (LAYOUT KORREKT) */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Allgemeine Formatierung für Platzhalter-Sektionen */
.content-placeholder {
    padding: 20px;
    border: 1px solid #ccc;
    background-color: var(--content-bg);
}

/* Formatierung für Überschriften */
.content-heading {
    color: var(--main-text-color);
    font-size: 1.2rem;
    margin-top: 0;
}


/* Webshop-Link-Bereich (Bild) - Full Width */
.content-webshop-link {
    padding: 0;
    border: none;
    background-color: transparent;
    text-align: center;
}
.webshop-link {
    display: block;
    padding: 0;
    margin: 0;
}
.webshop-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------------------------- */
/* BEITRAGS-KLASSEN (SELBSTSTÄNDIGE BLÖCKE)             */
/* ---------------------------------------------------- */

/* 1. Einspaltiger Beitrag (Full Width) */
.content-block-full-width {
    padding: 20px;
    border: 1px solid #ccc;
    background-color: var(--content-bg);
}

/* 2. Zweispaltiger Beitrag (Container) */
.content-block-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) {

    /* Zweispaltige Blöcke werden auf dem Desktop nebeneinander angeordnet */
    .content-block-two-columns {
        grid-template-columns: 1fr 1fr; /* Zwei gleichbreite Spalten */
    }
}


/* --- 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;
    }
}

/* Zusätzliche Tabellen- und Link-Stile */
.kontakt-table {
    border-collapse: collapse;
    margin-top: 10px;
}
.kontakt-table td {
    padding: 5px 15px 5px 0;
    vertical-align: top;
}
.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;
}