* {
    box-sizing: border-box;
}

/* Grundkonfiguration */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #000;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    background-color: #a0201a;
    color: white;
    padding: 6px 12px; /* Etwas kompakterer Kasten */
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 2px;
    display: flex; 
    align-items: center;
    
    /* --- HIER DEN ABSTAND ANPASSEN --- */
    gap: 5px; /* Verringere diesen Wert auf 2px oder 0, wenn es noch enger sein soll */
}

.logo-bird {
    height: 28px; /* Leicht verkleinert, damit es harmonisch zum Text wirkt */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #4CAF50; /* Hover-Grün aus dem Bild */
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    font-size: 1.2rem;
}

/* Hintergrund & Hero Sektion */
.hero-section {
    min-height: 100vh; /* WICHTIG: 'min-height' statt 'height', damit der Bereich nach unten wachsen kann */
    width: 100%;
    /* Ersetze 'album-background.jpg' wieder durch dein Bild */
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('images/album-background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px; /* Genügend Abstand zum feststehenden Menü */
    padding-bottom: 60px; /* Etwas Luft nach unten, falls man scrollt */
}

/* Kachel-System */
.tile-container {
    display: flex;
    flex-wrap: wrap; /* Das ist der Zauberspruch: Erlaubt den Umbruch in die nächste Zeile! */
    gap: 30px; /* Der Abstand zwischen den Kacheln (horizontal und vertikal) */
    padding: 20px;
    width: 95%;
    max-width: 1400px; /* Optional: Hält die Kacheln auf extrem breiten Monitoren optisch zusammen */
    justify-content: center; /* Zentriert die Kacheln in jeder Zeile */
}

.tile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px; /* Legt eine feste Breite fest. Du kannst die Zahl anpassen, wenn du sie größer/kleiner willst */
    flex-shrink: 0; /* Verhindert, dass Flexbox die Kacheln auf kleinen Bildschirmen ungleichmäßig zusammenquetscht */
}

.song-tile {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.song-tile:hover {
    transform: scale(1.03);
    border-color: #fff;
    
}

.song-title {
    color: white;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.1;
    margin-top: 10px;
}

.placeholder {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.4);
    align-items: center; /* Zentriert "Add New Song" */
}

.status-text {
    color: white;
    margin-top: 10px;
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px #000;
}

.tile-links {
    display: flex;
    justify-content: center;
    gap: 15px; /* Abstand zwischen den Icons */
    margin-top: 8px; /* Abstand zum Status-Text */
}

.tile-links a {
    color: rgba(255, 255, 255, 0.7); /* Dezent weiß/grau */
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

/* Farbe beim Drüberfahren (Hover) */
.tile-links a:hover {
    color: #4CAF50; /* Dein Akzent-Grün */
    transform: scale(1.2);
}

/* Optional: Icons in der "Coming Soon" Kachel ausgrauen oder verstecken */
.tile-wrapper:has(.status-text:contains("coming soon")) .tile-links {
    opacity: 0.3;
    pointer-events: none; /* Nicht klickbar, wenn noch nichts da ist */
}

/* Spezifisch für die Social Icons in der Kontaktspalte */
.social-links-contact {
    display: flex;
    gap: 20px;
    /* Dieser Margin sorgt für den nötigen Abstand nach oben zu den Formularfeldern */
    margin-top: 40px; 
}

.social-links-contact a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links-contact a:hover {
    color: #4CAF50;
    transform: translateY(-3px);
}

/* Korrektur für die Grid-Ausrichtung */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px; /* Erhöht den horizontalen Abstand zwischen Info und Formular */
    align-items: start; /* Verhindert, dass die linke Spalte unnötig gestreckt wird */
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Richtet den Inhalt oben aus */
    gap: 25px; /* Erhöht den vertikalen Abstand zwischen Email, Ort und Icons */
}

/* Contact Box mit Glas-Effekt für maximale Lesbarkeit */
.contact-container {
    background: rgba(0, 0, 0, 0.85); /* Dunkler, fast blickdichter Hintergrund */
    backdrop-filter: blur(10px); /* Macht den Hintergrund hinter der Box leicht unscharf */
    padding: 50px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* Texte konsequent auf Weiß/Hellgrau setzen */
.contact-container h2 {
    color: #ffffff; /* Reinweiß */
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px; /* Abstand vom Icon-Zentrum zum Text */
    margin-bottom: 0px;
}

.info-item i {
    color: #4CAF50;
    font-size: 1.2rem;
    
    /* DIE LÖSUNG: */
    width: 30px;         /* Jedes Icon bekommt exakt 30px Platz */
    display: inline-flex;
    justify-content: center; /* Zentriert das Icon (egal wie schmal) in den 30px */
    align-items: center;
    flex-shrink: 0;      /* Verhindert, dass das Icon gequetscht wird */
}
.contact-intro {
    text-align: center;
    color: #e0e0e0; /* Hellgrau für weicheren Kontrast */
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Info-Texte (Email, Location) */
.info-item span {
    color: #ffffff;
    font-weight: 500;
}

/* Formularfelder optimieren */
.contact-form {
    display: grid;
    /* Erzeugt zwei gleich große Spalten */
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
}

/* Das Textfeld (textarea) und der Button sollen über beide Spalten gehen */
/* 1. Das Feedback-Feld (Textarea) - Dezent und edel */
.contact-form textarea {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.05); /* Sehr dunkler, transparenter Hintergrund */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    color: white;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical; /* Erlaubt dem User, die Höhe anzupassen, aber nicht die Breite */
    transition: border-color 0.3s, background 0.3s;
}

.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4CAF50; /* Dein Akzent-Grün bei Klick */
    outline: none;
}

/* 2. Der Button - Knallig und präsent (Dein SKAPPA-Rot) */
.submit-btn {
    grid-column: span 2;
    background: linear-gradient(135deg, #a0201a 0%, #7a1814 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(160, 32, 26, 0.4);
    transition: all 0.4s ease;
}

/* Hover-Effekt nur für den Button */
.submit-btn:hover {
    background: linear-gradient(135deg, #c02a23 0%, #a0201a 100%);
    box-shadow: 0 0 25px rgba(160, 32, 26, 0.6);
    transform: translateY(-2px);
}

/* Klick-Effekt */
.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(160, 32, 26, 0.4);
}



/* Mobile Anpassung */
@media (max-width: 600px) {
    .submit-btn {
        grid-column: span 1;
    }
}

/* Mobile Anpassung: Auf dem Handy alles wieder untereinander */
@media (max-width: 600px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
    .contact-form textarea,
    .contact-form .submit-btn {
        grid-column: span 1;
    }
}

/* Mobile Optimierung */
/* 1. Standard-Regel für Smartphones (Vertikal) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px 5px;
        height: auto;
        position: absolute;
    }

    .logo {
        /* ABSTAND UNTEN ERHÖHT */
        margin-bottom: 20px; 
        font-size: 1.2rem;
        padding: 5px 10px;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px; /* Etwas mehr Luft zwischen den einzelnen Wörtern */
        width: 100%;
        align-items: center;
    }

    .hero-section {
        /* Wert von 200px auf ca. 240px erhöhen */
        padding-top: 240px; 
    }
}

/* 2. Spezial-Regel für Querformat (Landscape) */
@media (max-width: 950px) and (orientation: landscape) {
    .navbar {
        flex-direction: row;
        justify-content: flex-start;
        /* Wir erhöhen den ersten Wert (oben/unten) auf 15px oder 20px */
        padding: 20px 20px; 
        height: auto;
    }

    .logo {
        font-size: 1.1rem; /* Logo wieder etwas präsentabler */
        padding: 6px 12px;
        margin-bottom: 0;
    }

    .logo-bird {
        height: 22px; /* Vogel wird wieder etwas größer */
    }

    .nav-links {
        flex-direction: row;
        gap: 20px; /* Mehr Abstand zwischen den Menüpunkten */
        margin-left: 40px; /* Mehr Abstand zum Logo */
    }

    .nav-links a {
        font-size: 0.9rem; /* Lesbarere Schriftgröße */
    }

    .social-icons {
        gap: 15px;
        margin-left: 20px;
    }

    .hero-section {
        /* Da das Menü jetzt höher ist, schieben wir die Kacheln 
           weiter nach unten, damit sie nicht verdeckt werden */
        padding-top: 110px; 
    }

.contact-grid {
        display: flex;
        flex-direction: column; /* Stapelt Info und Formular auch hier untereinander */
        gap: 30px;
        max-width: 600px; /* Begrenzt die Breite, damit die Zeilen nicht zu lang werden */
        margin: 0 auto;   /* Zentriert die gesamte Box */
    }

    .contact-form {
        grid-template-columns: 1fr 1fr; /* Name & Email wieder nebeneinander, da jetzt genug Breite da ist */
        width: 100%;
    }

    .contact-container {
        padding: 30px;
        margin-top: 20px;
    }

    .hero-section {
        padding-top: 130px; /* Genügend Platz zum höheren Menü lassen */
    }
}

/* Spezifischer Fix für das Kontaktformular auf Mobilgeräten */
@media (max-width: 768px) {
    .contact-grid {
        display: flex;
        flex-direction: column; /* Stapelt Info und Formular untereinander */
        gap: 30px;
    }

   .contact-form {
        grid-template-columns: 1fr; /* Nur noch eine Spalte */
        width: 100%;
    }

    /* Alle Felder und der Button auf 100% Breite zwingen */
    .contact-form input, 
    .contact-form textarea, 
    .submit-btn {
        grid-column: span 1; /* Nimmt die einzige verfügbare Spalte ein */
        width: 100% !important; /* !important stellt sicher, dass keine anderen Regeln dazwischenfunken */
        max-width: 100%;
    }

    /* Padding der schwarzen Box für Mobilgeräte optimieren */
    .contact-container {
        padding: 30px 15px; /* Weniger Seitenabstand, damit mehr Platz für die Felder bleibt */
        width: 92%; /* Nutzt den Bildschirmplatz fast vollständig aus */
    }
    .contact-info {
        text-align: center; /* Zentriert die Texte (Email/Ort) für eine bessere Optik */
        align-items: center;
    }

    .social-links-contact {
        justify-content: center; /* Zentriert die Social-Icons unter den Kontaktdaten */
        margin-top: 20px;
    }
}

/* Erzwungene Linksbündigkeit für die Icons in der Kontakt-Info */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important; /* Zwingt alles nach links */
    text-align: left !important;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px; /* Abstand zwischen Icon und Text */
    margin-bottom: 00px;
    width: 100%;
}

.info-item i {
    color: #4CAF50;
    font-size: 1.2rem;
    /* Dies ist der entscheidende Teil für die vertikale Achse: */
    width: 30px; 
    display: flex;
    justify-content: center; /* Zentriert das Icon in den 30px */
    flex-shrink: 0;
}

/* Mobile Korrektur: Verhindert, dass es auf dem Handy zentriert wird */
@media (max-width: 768px) {
    .contact-info {
        align-items: flex-start !important;
        padding-left: 0;
    }
}