/* --- Global Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: url("../pics/bg2.png"); /* Pfad relativ zur CSS-Datei */
    background-size: auto;
    background-position: center center;
    background-attachment: fixed; /* Hält den Hintergrund beim Scrollen fest */
    font-family: 'Lato', Arial, sans-serif; /* Lato hinzugefügt, Arial als Fallback */
    color: #fff;
    line-height: 1.6;
    display: flex;          /* Ermöglicht Footer am Boden */
    flex-direction: column; /* Stapelt Header, Main, Footer */
    min-height: 100vh;      /* Stellt sicher, dass Body mind. Bildschirmhöhe hat */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; /* Links/Rechts Padding für kleinere Screens */
}

/* Verbessert Lesbarkeit auf komplexem Hintergrund */
main .container {
    background-color: rgba(0, 0, 0, 0.6); /* Dunkler, halbtransparenter Hintergrund */
    padding: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px #000;
}

h1 {
    font-size: 2.8em;
    text-align: center;
    margin-top: 1rem;
    color: #ffcc66; /* Etwas hervorhebende Farbe */
}

h2 {
    font-size: 2em;
    color: #ffdd99;
    border-bottom: 1px solid #ffdd99;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.5em;
    color: #fff;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1em; /* Leicht vergrößert für bessere Lesbarkeit */
}

a {
    color: #99ccff; /* Helleres Blau für Links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #cce6ff;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto; /* Stellt sicher, dass Bilder skalieren */
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(0, 0, 50, 0.7); /* Dunkelblau, halbtransparent */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: sticky; /* Macht Navi oben "sticky" */
    top: 0;
    z-index: 1000; /* Stellt sicher, dass sie über anderem Inhalt liegt */
}

header .container {
    display: flex;
    justify-content: center; /* Zentriert die Navigation */
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleinen Screens */
    justify-content: center;
}

nav ul li {
    margin: 0 15px; /* Abstand zwischen Links */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block; /* Wichtig für Padding/Hover */
}

nav ul li a:hover,
nav ul li a.current-page { /* Style für Hover und aktuelle Seite */
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
}

/* --- Main Content Area --- */
main {
    flex-grow: 1; /* Lässt den Hauptinhalt den verfügbaren Platz füllen */
    padding: 20px 0;
}

/* --- Footer --- */
footer {
    background-color: rgba(0, 0, 30, 0.8); /* Noch dunkleres Blau */
    color: #ccc;
    text-align: center;
    padding: 15px 0;
    margin-top: auto; /* Schiebt den Footer nach unten */
    width: 100%;
    font-size: 0.9em;
}

/* --- Index Page Specific --- */
.welcome-section {
    text-align: center;
    padding: 40px 20px;
}
.welcome-section h1 {
    font-size: 3.5em; /* Größerer Titel für die Startseite */
}
.welcome-section .slogan {
    font-size: 1.4em;
    margin-top: 10px;
    color: #eee;
}

/* --- Audio Page Specific --- */
.audio-section {
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.15); /* Hellerer Innenhintergrund */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.audio-section h2 {
    margin-top: 0; /* Kein extra Abstand oben im Abschnitt */
    color: #ffdd99; /* Konsistente H2 Farbe */
    border: none; /* Keine Linie hier */
    text-align: center;
}

/* Responsive Spotify Embed */
.spotify-embed iframe {
    border-radius: 12px;
    width: 100%; /* Nimmt volle Breite des Containers */
    margin-top: 15px; /* Abstand nach oben */
}

/* Distrokid/External Links */
.external-link-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.external-link-item a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: left;
    border-radius: 8px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.4);
    color: #000; /* Dunkler Text für Kontrast auf hellem Link-BG */
    font-size: 1.1em;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-decoration: none; /* Standard-Unterstreichung entfernen */
}

.external-link-item a:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #000; /* Farbe beibehalten */
    text-decoration: none; /* Keine Unterstreichung bei Hover */
}

.external-link-icon img {
    display: block;
    height: 50px; /* Einheitliche Höhe */
    width: 50px;  /* Einheitliche Breite */
    margin-right: 15px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.5);
    border-radius: 4px; /* Leicht abgerundete Ecken für Icons */
    object-fit: contain;
}

.external-link-text {
    flex: 1; /* Nimmt verfügbaren Platz ein */
}

.external-link-arrow {
    margin-left: 15px;
    /* Optional: Hier könnte ein Pfeil-Icon via Font Awesome oder SVG rein */
    font-weight: bold;
    color: #333;
}

/* --- News Page Specific --- */
.news-article {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex; /* Flexbox für Bild/Text Layout */
    flex-wrap: wrap; /* Erlaubt Umbruch wenn nötig */
    gap: 20px; /* Abstand zwischen Bild und Text */
}

.news-image {
    flex: 0 0 150px; /* Feste Breite für das Bild, schrumpft nicht, wächst nicht */
    height: 150px; /* Feste Höhe */
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Skaliert Bild, um Container zu füllen, beschneidet wenn nötig */
    border-radius: 5px;
}

.news-content {
    flex: 1; /* Nimmt den restlichen Platz ein */
    min-width: 250px; /* Mindestbreite für Text, bevor Bild umbricht */
}

.news-content h2 {
    margin-top: 0; /* Kein extra Abstand zum Titel */
    font-size: 1.6em; /* Etwas kleiner als Seitentitel */
    color: #ffdd99;
    border: none;
    padding-bottom: 0;
}

.news-date {
    font-style: italic;
    font-size: 0.95em;
    color: #ccc;
    margin-bottom: 10px;
    display: block; /* Macht <time> zu einem Blockelement für Margin */
}

/* --- Video Page Specific --- */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive Grid */
    gap: 30px; /* Abstand zwischen Videos */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border: 5px solid rgba(221, 221, 221, 0.5); /* Hellerer Rahmen */
    border-radius: 8px; /* Abgerundete Ecken */
    background-color: #000; /* Schwarzer Hintergrund falls Video langsam lädt */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Rahmen wird vom Wrapper gesteuert */
}

/* --- Visuals Page Specific --- */
.visuals-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px 0; /* Kleinerer Abstand oben/unten */
}

.visuals-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visuals-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.6em;
    }
    nav ul {
        flex-direction: column; /* Navigation untereinander */
        align-items: center;
    }
    nav ul li {
        margin: 8px 0; /* Vertikaler Abstand */
    }
    .news-article {
        flex-direction: column; /* Bild über Text */
        align-items: center; /* Bild zentrieren */
    }
    .news-image {
        flex-basis: auto; /* Lässt Bild volle Breite nehmen */
        width: 80%; /* Nicht ganz volle Breite */
        max-width: 250px; /* Maximale Breite für das Bild */
        height: auto; /* Höhe automatisch anpassen */
        margin-bottom: 15px; /* Abstand zum Text */
    }
    .news-content {
        min-width: unset; /* Mindestbreite entfernen */
        text-align: center; /* Text zentrieren */
    }
    .video-gallery {
        grid-template-columns: 1fr; /* Nur eine Spalte für Videos */
        gap: 20px;
    }
    .visuals-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    main .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.4em;
    }
    body {
        font-size: 15px; /* Grundschriftgröße leicht reduzieren */
    }
    .external-link-item a {
        flex-direction: column; /* Icon über Text */
        text-align: center;
        padding: 15px;
    }
    .external-link-icon {
        margin-right: 0;
        margin-bottom: 10px; /* Abstand Icon zu Text */
    }
    .external-link-arrow {
        display: none; /* Pfeil auf kleinen Screens ausblenden */
    }
}