@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-v24-latin-regular.woff2') format('woff2'),
         url('fonts/poppins-v24-latin-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-v24-latin-600.woff2') format('woff2'),
         url('fonts/poppins-v24-latin-600.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins-v24-latin-700.woff2') format('woff2'),
         url('fonts/poppins-v24-latin-700.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== Grundlayout ===== */
html, body {
    height: 100%;
    margin: 0;
    line-height: 1.6;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', Arial, sans-serif;
}

main {
    flex: 1 0 auto;
}

/* ===== Container ===== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

section {
    padding: 80px 0;
}

.light {
    background: #f7f7f7;
}

/* ===== HEADER ===== */
header {
    background-color: #4CAF50;
    padding: 20px 0;
    position: relative;
}

header .header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-contact {
    font-weight: 600;
}

.header-contact a {
    background: #8cbf3f;
    color: white;
    padding: 6px 14px;
    border-radius: 25px;
    text-decoration: none;
}

.header-contact a:hover {
    color: #385311;
}

/* Navigation Desktop */
#main-nav {
    display: flex;
    align-items: center;
}

#main-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

#main-nav a:hover {
    color: #cce5cc;
}

/* Dropdown Desktop */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    color: white;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin-left: 20px;
}

.dropbtn:hover {
    color: #cce5cc;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #4CAF50;
    min-width: 170px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    flex-direction: column;
}

.dropdown-content a {
    padding: 10px 15px;
    margin: 0;
    color: white;
}

.dropdown-content a:hover {
    background: none;
    color: #cce5cc;
}

/* Smooth Desktop Dropdown */
@media (min-width: 1106px) {
    .dropdown-content {
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 160ms ease, transform 160ms ease;
        pointer-events: none;
    }

    .dropdown:hover .dropdown-content {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Burger */
#burger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* ===== BURGER ab 1105px ===== */
@media (max-width: 1105px) {

    .header-contact {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }

    .header-contact a {
        padding: 10px 18px;
        font-size: 16px;
        font-weight: 700;
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    }

    #burger {
        display: block;
    }

    #main-nav {
        flex-direction: column;
        width: 100%;
        background-color: #4CAF50;
        position: absolute;
        top: 60px;
        left: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 220ms ease, opacity 180ms ease;
        pointer-events: none;
    }

    #main-nav.show {
        max-height: 520px;
        opacity: 1;
        pointer-events: auto;
    }

    #main-nav a {
        margin: 10px 0;
        padding: 0;
        text-align: center;
    }

    .dropbtn {
        display: none;
    }

    .dropdown-content {
        display: flex;
        position: relative;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .dropdown-content a {
        margin: 10px 0;
        padding: 0;
        background: none;
    }
}

/* ===== HERO ===== */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 40px 20px;
}

.hero-container {
    width: 100%;
    max-width: 1920px;
}

.hero-img {
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 1024px) { .hero { height: 300px; } }
@media (max-width: 768px) { .hero { height: 250px; } }
@media (max-width: 480px) { .hero { height: 200px; } }

/* ===== Cards ===== */
.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    flex: 1 1 300px;
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.card h3 {
    color: #4CAF50;
    margin-top: 0;
}

.card ul {
    padding-left: 20px;
}

.card ul li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .cards { flex-direction: column; }
}

/* ===== ÜBER MICH BEREICH ===== */

.about-wrapper {
    display: flex;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 40px;
}

.about-image {
    flex: 0 0 280px;
    display: flex;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.about-box {
    background: #f7f7f7;
    padding: 25px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.about-wrapper .about-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-box + .about-box {
    margin-top: 40px;
}

.about-box h2,
.about-box h3 {
    margin-top: 0;
    color: #4CAF50;
}

@media (max-width: 768px) {

    .about-wrapper {
        flex-direction: column;
    }

    .about-image {
        width: 200px;
        margin: 0 auto 30px auto;
        height: auto;
    }

    .about-image img {
        height: auto;
    }

    .about-wrapper {
        margin-bottom: 30px;
    }

    .about-box + .about-box {
        margin-top: 30px;
    }
}

/* ===== News ===== */
.news-section {
    padding: 40px 0 20px 0;
}

.news-box {
    background: #e8f5e9;
    border-left: 6px solid #4CAF50;
    padding: 25px 30px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.news-box strong {
    color: #2e7d32;
    font-size: 18px;
}

/* ===== Footer ===== */
footer {
    flex-shrink: 0;
    background: #222;
    color: white;
    text-align: center;
    padding: 30px 0;
}

@media (max-width: 1105px) {
    .dropdown-content a:hover {
        background: none !important;
        color: #cce5cc !important;
    }
}

/* ===== Kontaktseite ===== */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 16px;
}

.contact-item i {
    width: 26px;
    min-width: 26px;
    text-align: center;
    color: #4CAF50;
    font-size: 18px;
    margin-top: 3px;
}

.contact-item span,
.contact-item a {
    display: block;
    color: #333;
    text-decoration: none;
}

.contact-item a:hover {
    color: #cce5cc;
}

/* =====================================================
   DARK MODE (nur Farb-Overrides – Layout bleibt gleich)
===================================================== */

@media (prefers-color-scheme: dark) {

body {
    background:#181818;
    color:#e7e7e7;
}

.light {
    background:#202020;
}

.hero {
    background:#181818;
}

.card {
    background:#242424;
}

.about-box {
    background:#242424;
}

.news-box {
    background:#1f2a20;
    border-left:6px solid #74d67a;
}

.news-box strong {
    color:#9be39f;
}

footer {
    background:#111;
    color:#f3f3f3;
}

.contact-item span,
.contact-item a {
    color:#e7e7e7;
}

header {
    background:#2e7d32;
}

.header-contact a {
    background:#5c8f2a;
}

#main-nav {
    background:#2e7d32;
}

.dropdown-content {
    background:#2e7d32;
}

}
