/* =========================================
   Variablen & Grundlayout
========================================= */

:root {
    --accent: #4c8b4a;
    --accent-light: #e3f1e3;
    --dark: #1f2a24;
    --bg: #f5f7f4;
    --text: #233129;
    --border: #d5e0d6;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* =========================================
   Header & Navigation
========================================= */

header {
    background: white;
    padding: 1.2rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dce5dc;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #435247;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent);
}

/* =========================================
   Sektionen & Typografie
========================================= */

section {
    padding: 3rem 8%;
}

h2 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #66776b;
    margin-bottom: 2rem;
}

/* =========================================
   Hero-Bild (global)
========================================= */

/* Einheitliches Hero-Bild für alle Seiten */
.hero-image {
    background: url("bilder/aepfel2.jpg") center/cover no-repeat;
    height: 6vh;                 /* Desktop & Tablet */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    text-align: center;
}

/* Mobile Ansicht: Hero-Bild kleiner */
@media (max-width: 768px) {
    .hero-image,
    .page-bioland-demeter .hero-image,
    .page-datenschutz .hero-image,
    .page-impressum .hero-image,
    .page-kontakt .hero-image,
    .page-obstkalender .hero-image,
    .page-zertifikate .hero-image {
        height: 3.5vh;
    }
}

/* Unterseiten-Hero nur auf größeren Screens 6vh */
@media (min-width: 769px) {
    .page-bioland-demeter .hero-image,
    .page-datenschutz .hero-image,
    .page-impressum .hero-image,
    .page-kontakt .hero-image,
    .page-obstkalender .hero-image,
    .page-zertifikate .hero-image {
        height: 6vh;
    }
}


/* =========================================
   Karten (global)
========================================= */

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

/* =========================================
   Startseite Hero-Grid
========================================= */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.hero img {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

/* =========================================
   Bioland/Demeter – card-with-logo
========================================= */

.card-with-logo {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 1.5rem;
    align-items: center;
}

.card-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* =========================================
   Kontakt
========================================= */

.card-wrapper {
    max-width: 900px;
    margin-bottom: 2rem;
}

input[type=checkbox] {
    display: none;
}

/* =========================================
   Obstkalender
========================================= */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 1.5rem;
}

.fruit {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    width: 300px;
}

.fruit h3 {
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.months {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.months span {
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    background: #ecf4ec;
    color: #435247;
    font-size: 0.85rem;
}

.months span.active {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

/* =========================================
   Zertifikate
========================================= */

.cert-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cert-item img {
    width: 200px;
    object-fit: contain;
}

.cert-image img {
    max-width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

/* =========================================
   Datenschutz & Impressum
========================================= */

.page-datenschutz section:not(.hero-image),
.page-impressum section:not(.hero-image) {
    background: white;
}


/* =========================================
   Footer
========================================= */

footer {
    background: #ecf2ec;
    padding: 1.5rem 8%;
    font-size: 0.85rem;
    border-top: 1px solid #d4e0d4;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    margin-right: 1rem;
}

/* =========================================
   Responsive – Mobile First
========================================= */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    /* Header */
    header {
        flex-wrap: wrap;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    /* Hero */
    .hero-image {
        height: 3.5vh;
    }

    .hero-image h1 {
        font-size: 1.5rem;
    }

    /* Bioland/Demeter */
    .card-with-logo {
        display: flex;
        flex-direction: column-reverse;
    }

    .card-logo img {
        max-width: 160px;
    }

    /* Obstkalender */
    .calendar-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .fruit {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    /* Zertifikate */
    .cert-wrapper {
        grid-template-columns: 1fr;
    }

    .cert-image {
        margin-top: 2rem;
    }
}
