/* =========================
   Reset & Basis
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #1b5e20;
    background-color: white;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* =========================
   Header
========================= */
.header {
    border-bottom: 1px solid #e0e0e0;
    padding: 30px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
}

.header-text h1 {
    font-size: 2rem;
}

/* =========================
   Navigation
========================= */
.nav {
    border-bottom: 1px solid #e0e0e0;
}

.nav .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav a {
    color: #1b5e20;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 600;
}

.nav a:hover {
    text-decoration: underline;
}

/* =========================
   Sections als Schattenboxen
========================= */
.section {
    padding: 40px 0;
}

.section .container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-height: 24em;        /* ~15 Zeilen */
    overflow-y: auto;
    padding-right: 14px;
}

/* =========================
   Scrollbar nur bei Hover
========================= */
.section .container::-webkit-scrollbar {
    width: 6px;
}

.section .container::-webkit-scrollbar-thumb {
    background-color: #1b5e20;
    border-radius: 3px;
    opacity: 0;
}

.section .container:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.section .container {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.section .container:hover {
    scrollbar-color: #1b5e20 #f0f0f0;
}

/* =========================
   Scroll-Fade-Animation
========================= */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Barrierefreiheit */
@media (prefers-reduced-motion: reduce) {
    .fade-section {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* =========================
   Footer
========================= */
.footer {
    border-top: 1px solid #e0e0e0;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* =========================
   Mobile Anpassung
========================= */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        width: 60px;
    }

    .section .container {
        max-height: 18em; /* weniger Höhe mobil */
    }
}