/* ==========================================================================
   BIOSPHEAR - Style Sheet (style.css)
   ========================================================================== */

/* --- 1. Grunddesign & Typografie für ALLE Seiten --- */
body {
    background-color: #fdfdfd;                 /* Helles Off-White */
    color: #345c28;                            /* Dunkelgrüne Schrift */
    font-family: 'Exo', sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #345c28;
    font-weight: 700;
    margin-top: 0;
}

a {
    color: #345c28;
    text-decoration: none;
    font-weight: 600;
}

a:hover,
a:focus {
    text-decoration: underline;
}


/* --- 2. Inhalts-Container & Haupt-Poster --- */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-poster {
    max-width: 600px;         /* Begrenzung auf Desktops/Laptops */
    width: 100%;              /* Automatische Skalierung auf Mobilgeräten */
    height: auto;             /* Seitenverhältnis beibehalten */
    display: block;
    margin: 0 auto 30px auto; /* Horizontal zentriert */
    border-radius: 4px;       /* Leicht abgerundete Ecken */
}


/* --- 3. Barrierefreie Hauptnavigation (Outlined Buttons) --- */
nav {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;                  /* Abstand zwischen den Buttons */
    justify-content: center;
}

.nav-menu li {
    flex: 1;                    /* Alle Buttons sind gleich breit */
    text-align: center;
}

.nav-menu a {
    display: block;
    background-color: #fdfdfd;
    color: #345c28;
    border: 2px solid #345c28;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background-color: #345c28;
    color: #fdfdfd;
    text-decoration: none;
    outline: 2px solid #345c28; /* Tastatur-Fokus deutlich sichtbar */
    outline-offset: 2px;
}

/* Hervorhebung der aktuell aktiven Seite (Home, Projekt oder Impressum) */
.nav-menu a[aria-current="page"] {
    background-color: #345c28;
    color: #fdfdfd;
}


/* --- 4. Barrierefreie Textversion des Plakats (Accordion) --- */
.poster-text-accordion {
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
    background-color: #f4f6f3;
    border: 1px solid #345c28;
    border-radius: 4px;
    padding: 12px 18px;
}

.poster-text-accordion summary {
    font-weight: 600;
    color: #345c28;
    cursor: pointer;
    padding: 5px 0;
    font-size: 1.05em;
}

.poster-text-accordion summary:focus {
    outline: 2px solid #345c28;
    outline-offset: 3px;
}

.poster-text-accordion article {
    margin-top: 15px;
    border-top: 1px solid #c2d1bd;
    padding-top: 15px;
}

.poster-text-accordion section {
    margin-bottom: 20px;
}

.poster-text-accordion ol, 
.poster-text-accordion ul {
    padding-left: 20px;
}

.poster-text-accordion li {
    margin-bottom: 8px;
}


/* --- 5. Hilfsklassen & Barrierefreiheit --- */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* --- 6. Responsive Anpassungen (Mobilgeräte) --- */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .nav-menu {
        flex-direction: column; /* Buttons auf sehr schmalen Bildschirmen untereinander anordnen */
        gap: 10px;
    }
}