/* Allgemeine Stile */
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style-type: none; /* entfernt die Punkte */
    padding-left: 0;       /* rückt nach links */
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e1e2f 0%, #2b2b44 100%);
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

/* WLAN Hinweis */
.wlan-hinweis {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 12px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Accordion */
.accordion-toggle {
    background-color: #2b2b44;
    color: #ff9f1c;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    border-radius: 8px;
    transition: background 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.accordion-toggle:hover,
.accordion-toggle.active {
    background-color: #3a3a5a;
}

.accordion-content {
    display: none;
    padding: 0 0 20px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Audiogruppen */
.group-title {
    font-size: 1.8em;
    color: #ff9f1c;
    margin-top: 40px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ff9f1c;
}

/* Audiosektionen (Grundbox) */
.audio-section {
    background-color: #2b2b44;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 2rem; /* Ergänzung für Abstand nach unten */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
}

.audio-section h3 {
    font-size: 1.3em;
    color: #ffcc80;
    margin-bottom: 10px;
}

/* ===========================
   Audio-Player / Tracks
   =========================== */

/* Wrapper um alle Tracks */
.audio-wrapper {
    margin-top: 20px;
}

/* Einzelner Track */
.track {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: #1e1e2f; /* dunkles Panel passend zum Theme */
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Kopfzeile eines Tracks (Titel + Buttons/Zeit) */
.track-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.track h3 {
    margin: 0;
    font-size: 1rem;
    flex: 1 1 auto;
    color: #ffcc80; /* wie andere Überschriften im Audio-Bereich */
}

/* Bereich für Play-Button und Zeit */
.track-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
}

/* Play-/Pause-Button */
.play-button {
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    background: #0077cc;   /* an Footer-Button angelehnt */
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: background 0.2s, transform 0.1s;
}

.play-button:hover {
    background: #005fa3;
    transform: scale(1.02);
}

/* Zeit-Anzeige */
.track-time {
    font-size: 0.9rem;
    opacity: 0.9;
    white-space: nowrap;
}

/* Fortschrittsbalken */
.track-progress {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    overflow: hidden;
}

.track-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #bb86fc; /* lila Akzent passend zum Link-Hover */
    transition: width 0.15s linear;
}

/* Globale Speed-Kontrolle (sticky) */
.speed-control {
    margin: 1rem 0 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;

    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #121212; /* Hintergrund wie Body */
    padding-top: 10px;
    padding-bottom: 10px;
}

.speed-label {
    font-weight: 600;
}

/* Buttons für Wiedergabegeschwindigkeit */
.speed-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.speed-button {
    border: 1px solid #ff9f1c;
    background: transparent;
    color: #ff9f1c;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 3.2rem;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.speed-button.active {
    background: #ff9f1c;
    color: #121212;
}

.speed-button:hover {
    background: #bb86fc;
    color: #121212;
}

/* Audioguide-Link (Startseite, nicht Player) */
.audioguide-link {
    display: block;
    background: #3a2b3f;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: background 0.3s, transform 0.2s;
}

.audioguide-link:hover {
    background: #bb86fc;
    color: #121212;
    transform: scale(1.03);
}

/* Footer */
footer {
    text-align: center;
    background-color: #1b1b34;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
}

.footer-link {
    display: inline-block;   /* oder block, dann volle Breite */
    padding: 10px 20px;
    background-color: #0077cc;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.footer-link:hover {
    background-color: #005fa3;
}

/* Bildergrid */
.bilder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    justify-items: center; /* sorgt für zentrierte Ausrichtung */
}

.bilder-grid img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bilder-grid figure {
    text-align: center; /* zentriert auch das figcaption */
    margin: 0;          /* optional: Standardabstand entfernen */
}

.bilder-grid figcaption {
    margin-top: 0.5rem; /* etwas Abstand zum Bild */
    font-size: 0.9rem;
    color: #fff;
}

/* Badges unter dem Button, mittig und groß */
.audioguide-item {
    text-align: center;
}

.badges {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.badge {
    font-size: 2.2rem;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

.badge img {
    height: 2.2em;
    vertical-align: middle;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .container {
        padding: 0 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .audio-section h3 {
        font-size: 1.1em;
    }

    .audioguide-link {
        font-size: 1em;
        padding: 12px;
    }

    .track-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .track-controls {
        justify-content: flex-start;
    }

    .speed-control {
        flex-direction: column;
        align-items: flex-start;
    }
}
