/* =========================================
   1. VARIABLEN & RESET
   ========================================= */
:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #d4af37; /* Goldener Akzent */
    --secondary-bg: #1e1e1e;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 300;
    scroll-behavior: smooth;
}

/* =========================================
   2. TYPOGRAFIE & LAYOUT HELFER
   ========================================= */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
}

/* =========================================
   4. HERO SECTION (Startbildschirm)
   ========================================= */
.hero {
    min-height: 100vh; /* Mindestens Bildschirmhöhe */
    padding: 100px 0;  /* Padding für Mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('https://www.joesanto.com/joesanto/images/landingpage_pict1.jpeg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effekt */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 2s ease-in-out;
    width: 100%;
}

.main-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.separator {
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0 auto 2rem auto;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #ddd;
}

/* --- Buttons (Allgemein) --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* =========================================
   5. HERO FEATURED TRACK (Spezielles Grid Design)
   ========================================= */
.hero-featured-container {
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.featured-heading {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
}

/* GRID LAYOUT FÜR DEN HERO PLAYER */
.hero-featured-container .track-item {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    
    display: grid;
    /* Spalten: PlayButton | TextPlatz | ButtonsPlatz */
    grid-template-columns: auto 1fr auto; 
    /* Zeilen: Titel | Meta & Buttons */
    grid-template-rows: auto auto;
    
    column-gap: 1.5rem;
    row-gap: 0.4rem;
    align-items: center;
    transition: all 0.3s ease;
}

/* 1. Play Button (Links, über 2 Zeilen) */
.hero-featured-container .track-play-btn {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 50px; /* Spezifische Größe im Hero */
    height: 50px;
}

/* Container auflösen, damit Kinder im Grid landen */
.hero-featured-container .track-info {
    display: contents; 
}

/* 2. Titel (Zeile 1, Volle verbleibende Breite) */
.hero-featured-container .track-title {
    grid-column: 2 / span 2; 
    grid-row: 1;
    
    font-size: 1.1rem; /* Etwas kleiner wie gewünscht */
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-self: end;
    text-align: left;
}

/* 3. Meta Text (Zeile 2, Links neben Buttons) */
.hero-featured-container .track-meta {
    grid-column: 2;
    grid-row: 2;
    
    font-size: 0.8rem;
    color: #999;
    align-self: start;
    white-space: nowrap;
    text-align: left;
}

/* 4. Buttons (Zeile 2, Rechts) */
.hero-featured-container .track-actions {
    grid-column: 3;
    grid-row: 2;
    
    display: flex;
    gap: 0.5rem;
    justify-self: end;
}

/* Button Styling im Hero kompakter machen */
.hero-featured-container .service-link {
    padding: 4px 12px;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.1);
}

.hero-featured-container .service-link i {
    font-size: 0.9rem;
}

/* =========================================
   6. INTRO & ABOUT SECTIONS
   ========================================= */
.intro {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--bg-color);
}

.lead-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
}

.lead-text strong {
    color: var(--accent-color);
    font-weight: 400;
}

.about {
    padding: 5rem 0;
    background-color: var(--secondary-bg);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

.about-text hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 2rem 0;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    filter: grayscale(80%);
    transition: filter 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-image img:hover {
    filter: grayscale(0%);
}

/* =========================================
   7. MUSIC / DISCOGRAPHY SECTION (Die Liste unten)
   ========================================= */
.music-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: #888;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.track-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Standard Track Item (für die Liste) */
.track-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-color);
}

/* Aktiver Song (wird per JS gesetzt) */
.track-item.playing {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
}

.track-item.playing .track-play-btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

/* Play Button Styling */
.track-play-btn {
    background: transparent;
    border: 2px solid #555;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.track-play-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.1);
}

.track-info {
    flex-grow: 1;
}

.track-title {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.track-meta {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}
.track-meta-tiny {
	font-size: 0.60rem;
}

.track-actions {
    display: flex;
    gap: 1rem;
}

/* Service Links (Spotify/YouTube Buttons) */
.service-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
    background-color: #333;
}

.service-link.spotify:hover { background-color: #1DB954; color: #fff; }
.service-link.youtube:hover { background-color: #FF0000; color: #fff; }
.service-link i { font-size: 1.1rem; }

/* =========================================
   8. MINI PLAYER (Sticky Bottom)
   ========================================= */
.mini-player {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    border-top: 1px solid var(--accent-color);
    padding: 15px 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.mini-player.active {
    bottom: 0;
}

.player-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.player-status {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-status i {
    margin-right: 8px;
}

.player-title {
    font-size: 0.9rem;
    color: #fff;
    font-family: var(--font-heading);
}

.control-btn {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    transform: scale(1.1);
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
    background-color: var(--bg-color);
}

.socials { margin-top: 1rem; }
.socials a {
    color: #777;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}
.socials a:hover { color: var(--accent-color); }

/* =========================================
   10. RESPONSIVE / MOBILE
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    /* Liste unten: Buttons/Text stapeln */
    .track-list .track-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .track-list .track-actions {
        width: 100%;
        justify-content: center;
    }
    
    .desktop-only { display: none; }
    .track-list .service-link {
        padding: 8px;
        border-radius: 50%;
    }

    /* Hero Featured Player auf Mobile */
    .hero-featured-container .track-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .hero-featured-container .track-play-btn {
        grid-row: 1 / span 2; /* Bleibt links */
    }

    .hero-featured-container .track-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 1rem;
    }

    .hero-featured-container .track-meta {
        grid-column: 2;
        grid-row: 2;
    }

    /* Buttons rutschen in neue Zeile unter alles */
    .hero-featured-container .track-actions {
        grid-column: 1 / span 2;
        grid-row: 3;
        justify-self: center;
        margin-top: 5px;
    }
    
    .hero-featured-container .desktop-only {
        display: inline; /* Im Hero Text anzeigen */
    }

    /* Mini Player Mobile */
    .mini-player {
        padding: 10px 20px;
        justify-content: space-between;
    }
    .player-info { text-align: left; }
}

/* =========================================
   11. NEUE SEKTIONEN (Ausblick & Kontakt)
   ========================================= */

/* --- Ausblick Section --- */
.outlook {
    padding: 5rem 0;
    background-color: var(--secondary-bg); /* Gleicher Hintergrund wie 'About' für Rhythmus */
    text-align: center;
}

.featured-subtitle {
    color: var(--accent-color); /* Gold */
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.outlook-content {
    max-width: 800px;
    margin: 0 auto;
    color: #ccc;
}

.outlook-quote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin: 2rem 0 1rem 0;
}

.outlook-songs {
    font-family: var(--font-heading);
    color: #ddd;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 2;
}

.outlook-songs span {
    color: var(--accent-color); /* Songtitel leicht golden hervorheben */
}

/* Button für inaktive Seite */
.btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #555;
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-secondary.disabled {
    cursor: default;
    opacity: 0.7;
}

.btn-secondary:not(.disabled):hover {
    border-color: #fff;
    color: #fff;
}

.note-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* --- Kontakt Section --- */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-color); /* Dunkler Hintergrund */
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
}

.contact-mail {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-weight: 300;
}

.contact-mail:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Mobile Anpassung für die neuen Bereiche */
@media (max-width: 600px) {
    .outlook-songs {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-mail {
        font-size: 1.2rem; /* Email etwas kleiner auf Handy damit sie passt */
    }
}

.track-item-hidden {
	display: none;
}

/* =========================================
   12. LEGAL PAGES (Impressum / Datenschutz)
   ========================================= */

.legal-page {
    padding-top: 120px; /* Platz für die fixe Navbar oben */
    padding-bottom: 5rem;
    background-color: var(--bg-color);
    min-height: 100vh;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: left;
}

.legal-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
}

.legal-block {
    margin-bottom: 2.5rem;
}

.legal-block h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
    font-family: var(--font-body); /* Bessere Lesbarkeit als Cinzel für Subheadlines hier */
    font-weight: 700;
    text-transform: none; /* Normale Schreibweise */
    letter-spacing: 0.5px;
}

.legal-block p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-block a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-block a:hover {
    color: #fff;
    text-decoration: underline;
}

.legal-footer-link {
    margin-top: 4rem;
    text-align: center;
}

/* Footer Links Hover Effekt */
.footer-links a:hover {
    color: var(--accent-color) !important;
}