/* Verbesserte Rückenwind Start-Screen Styles */

/* Hauptcontainer mit dem Cover-Bild als Hintergrund */
#startScreen {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/image/rueckenwind_cover.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Subtiler Parallax-Effekt */
}

/* Verbesserter Farbverlauf inspiriert von den warm/kühlen Tönen des Covers */
#startScreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
                rgba(214, 41, 65, 0.6) 0%,    /* Rot (warme Seite) */
                rgba(99, 29, 118, 0.7) 50%,    /* Lila (Übergang) */
                rgba(153, 141, 171, 0.6) 100%); /* Mint (kühle Seite) */
    z-index: 1;
    opacity: 1;
    animation: coverFlowOpacity 30s infinite alternate ease-in-out; /* Subtile Farbänderung */
}

/* Zweites Element für sanften Übergang mit entgegengesetzter Opacity */
#startScreen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
                rgba(253, 200, 64, 0.6) 0%,    /* Gelb */
                rgba(214, 41, 65, 0.7) 50%,    /* Rot */
                rgba(99, 29, 118, 0.6) 100%);  /* Lila */
    z-index: 1;
    opacity: 0;
    animation: coverFlowOpacity2 30s infinite alternate ease-in-out; /* Subtile Farbänderung */
}

@keyframes coverFlowOpacity {
    0%, 20% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

@keyframes coverFlowOpacity2 {
    0%, 20% { opacity: 0; }
    80%, 100% { opacity: 1; }
}

/* Windstreifen-Effekt für Bewegungseindruck */
.wind-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.03) 25%,
                rgba(255, 255, 255, 0.05) 50%,
                rgba(255, 255, 255, 0.03) 75%,
                transparent 100%);
    background-size: 200% 100%;
    animation: windFlow 30s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes windFlow {
    from { background-position: 0 0; }
    to { background-position: 800px 0; }
}

/* Verbesserter Titel mit Glow-Effekt */
#title {
    font-size: 72px;
    font-weight: bold;
    letter-spacing: 3px;
    color: white;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 
        0 0 20px rgba(253, 200, 64, 0.7),
        0 0 40px rgba(214, 41, 65, 0.5);
    animation: titlePulse 3s infinite alternate;
    position: relative;
    z-index: 3;
}

@keyframes titlePulse {
    0% {
        text-shadow: 
            0 0 20px rgba(253, 200, 64, 0.7),
            0 0 40px rgba(214, 41, 65, 0.5);
    }
    100% {
        text-shadow: 
            0 0 30px rgba(253, 200, 64, 0.8),
            0 0 50px rgba(214, 41, 65, 0.6),
            0 0 70px rgba(99, 29, 118, 0.4);
    }
}

/* Verbesserte Untertitel-Styles */
.subtitle {
    color: var(--secondary);
    text-shadow: 0 0 15px rgba(247, 193, 187, 0.8);
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    z-index: 3;
}

/* Container für die Buttons nebeneinander */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 3;
}

/* Verbesserte Start-Button-Styles */
#startButton {
    background: linear-gradient(45deg, 
                var(--accent), 
                var(--primary), 
                var(--primary), 
                var(--accent));
    background-size: 300% 300%;
    animation: gradientMove 3s infinite alternate;
    padding: 15px 40px;
    font-size: 26px;
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 
        0 0 20px rgba(214, 41, 65, 0.7),
        0 10px 20px -5px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* Credits-Button-Styles */
#creditsButton {
    background: linear-gradient(45deg, 
                var(--secondary), 
                var(--highlight), 
                var(--highlight), 
                var(--secondary));
    background-size: 300% 300%;
    animation: gradientMove 3s infinite alternate;
    padding: 15px 30px;
    font-size: 26px;
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 
        0 0 20px rgba(99, 29, 118, 0.7),
        0 10px 20px -5px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

#startButton:hover, #creditsButton:hover {
    transform: translateY(-3px) scale(1.05);
}

#startButton:hover {
    box-shadow: 
        0 0 30px rgba(214, 41, 65, 0.9),
        0 15px 25px -5px rgba(0, 0, 0, 0.3);
}

#creditsButton:hover {
    box-shadow: 
        0 0 30px rgba(99, 29, 118, 0.9),
        0 15px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Verbesserte Shine-Animation für die Buttons */
#startButton:after, #creditsButton:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(30deg) translateY(150%);
    transition: transform 0.7s;
}

#startButton:hover:after, #creditsButton:hover:after {
    transform: rotate(30deg) translateY(-150%);
}

/* Credits-Screen-Styles - verbessert für Scrollbarkeit auf Mobil */
#creditsScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow-y: auto; /* Ermöglicht Scrollen */
}

#creditsScreen.visible {
    display: flex;
    opacity: 1;
}

.credits-content {
    position: relative;
    width: 80%;
    max-width: 1000px;
    background: linear-gradient(135deg,
                rgba(99, 29, 118, 0.7) 0%,
                rgba(214, 41, 65, 0.7) 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    box-shadow: 0 0 40px rgba(214, 41, 65, 0.4);
    animation: creditsGlow 4s infinite alternate;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px 0; /* Abstand zum Rand hinzufügen */
}

/* Anpassungen der Scrollbar für bessere Sichtbarkeit */
.credits-content::-webkit-scrollbar {
    width: 10px;
}

.credits-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.credits-content::-webkit-scrollbar-thumb {
    background: rgba(253, 200, 64, 0.5);
    border-radius: 5px;
}

.credits-content::-webkit-scrollbar-thumb:hover {
    background: rgba(253, 200, 64, 0.8);
}

@keyframes creditsGlow {
    0% {
        box-shadow: 0 0 40px rgba(214, 41, 65, 0.4);
    }
    100% {
        box-shadow: 0 0 60px rgba(253, 200, 64, 0.5);
    }
}

.credits-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 31;
}

.credits-close:hover {
    opacity: 1;
    transform: scale(1.2);
    color: rgba(253, 200, 64, 1);
}

.credits-content h2 {
    font-size: 48px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-shadow: 
        0 0 20px rgba(253, 200, 64, 0.7),
        0 0 40px rgba(214, 41, 65, 0.5);
}

.credits-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.credits-cover {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.credits-cover img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.credits-cover img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(214, 41, 65, 0.5);
}

.credits-info {
    flex: 1;
    min-width: 280px;
}

.credits-section {
    margin-bottom: 30px;
}

.credits-section h3 {
    font-size: 28px;
    color: rgba(253, 200, 64, 1);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(99, 29, 118, 0.5);
}

.credits-section p {
    font-size: 18px;
    line-height: 1.6;
    margin: 8px 0;
}

/* Styling für Links in Credits */
.credits-section a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    padding: 0 2px;
}

.credits-section a:hover {
    color: #FDC840;
    border-bottom: 1px solid #FDC840;
    text-shadow: 0 0 10px rgba(253, 200, 64, 0.5);
    background-color: rgba(99, 29, 118, 0.3);
    border-radius: 3px;
}

/* Artist-Links im Start-Screen */
#artist a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    padding: 0 2px;
}

#artist a:hover {
    color: #FDC840;
    border-bottom: 1px solid #FDC840;
    text-shadow: 0 0 10px rgba(253, 200, 64, 0.5);
    background-color: rgba(99, 29, 118, 0.3);
    border-radius: 3px;
}

.back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

#backButton {
    background: linear-gradient(45deg, 
                rgba(253, 200, 64, 0.8),
                rgba(214, 41, 65, 0.8));
    padding: 12px 30px;
    font-size: 20px;
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#backButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(214, 41, 65, 0.4);
}

/* Info-Panel Verbesserungen */
.infoPanel {
    background: rgba(99, 29, 118, 0.3);
    border-left: 4px solid var(--highlight);
    padding: 25px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: panelGlow 4s infinite alternate;
    position: relative;
    z-index: 3;
}

@keyframes panelGlow {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 10px 30px rgba(214, 41, 65, 0.3);
    }
}

.infoPanel h3 {
    color: var(--highlight);
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(253, 200, 64, 0.5);
    text-align: center;
}

/* Künstler-Info mit Hover-Effekt */
#artist {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 18px;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(99, 29, 118, 0.5);
    transition: color 0.3s, text-shadow 0.3s;
    z-index: 3;
}

#artist:hover {
    color: white;
    text-shadow: 0 0 15px rgba(247, 193, 187, 0.8);
}

/* Verbesserte Partikel-Animation */
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: float 15s infinite ease-in-out;
}

/* Custom Hand-Cursor für den Start-Bildschirm - simples, vollständiges Design */
#startScreen, 
#startButton, 
#creditsButton,
.start-column, 
.infoPanel {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' filter='drop-shadow(0 0 2px rgba(0,0,0,0.7))'%3E%3Cpath d='M15,6 L15,19 M10,8 L10,19 M20,8 L20,19 M5,11 L5,19 C5,24 9,28 16,28 C23,28 27,24 27,19 L27,14'/%3E%3Cpath d='M27,14 C27,12 25,12 25,14 L25,16'/%3E%3C/svg%3E") 5 0, auto;
}

/* Spezieller Hover-Cursor für interaktive Elemente - simples, vollständiges Design */
#startButton:hover, #creditsButton:hover, #backButton:hover, .credits-close:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none' stroke='%23FDC840' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' filter='drop-shadow(0 0 3px rgba(0,0,0,0.9))'%3E%3Cpath d='M15,6 L15,19 M10,8 L10,19 M20,8 L20,19 M5,11 L5,19 C5,24 9,28 16,28 C23,28 27,24 27,19 L27,14'/%3E%3Cpath d='M27,14 C27,12 25,12 25,14 L25,16'/%3E%3C/svg%3E") 5 0, pointer;
}

/* Sonnenuntergang-Effekt */
.sunset-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(253, 200, 64, 0.2) 0%,
        rgba(214, 41, 65, 0.1) 50%,
        rgba(99, 29, 118, 0) 100%
    );
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
    animation: colorShift 8s infinite alternate;
}

@keyframes colorShift {
    0% { opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { opacity: 0.3; }
}

/* CSS für Release-Link Buttons */
/* Listen Button auf dem Startbildschirm */
.listen-button {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    padding: 5px 12px;
    background: linear-gradient(45deg, #FDC840, #D62941);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(214, 41, 65, 0.5);
    white-space: nowrap;
}

.listen-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 200, 64, 0.7);
    background: linear-gradient(45deg, #FDC840, #631D76);
    color: white !important;
    border-bottom: none !important;
    text-shadow: none !important;
}

.listen-icon {
    font-size: 18px;
    margin-right: 6px;
}

/* Release-Link im Credits-Screen */
.song-links {
    margin-top: 20px;
}

.release-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(45deg, #FDC840, #D62941);
    border-radius: 25px;
    color: white !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(214, 41, 65, 0.5);
}

.release-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 200, 64, 0.7);
    background: linear-gradient(45deg, #FDC840, #631D76);
    text-shadow: none !important;
}

.music-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* Button im Game Over Screen */
.song-button {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(45deg, #FDC840, #D62941);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(253, 200, 64, 0.6);
}

.song-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(253, 200, 64, 0.8);
    background: linear-gradient(45deg, #D62941, #631D76);
}

.music-note {
    font-size: 24px;
    margin-right: 10px;
    animation: musicPulse 2s infinite alternate;
}

@keyframes musicPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.3); }
}

/* Optimierungen für mobile Geräte */
@media (max-width: 768px) {
    #title {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .button-container {
        flex-direction: column;
        gap: 15px;
    }

    #startButton, #creditsButton {
        padding: 12px 30px;
        font-size: 22px;
    }

    /* Umschalten auf einspaltiges Layout */
    .start-layout {
        flex-direction: column;
        width: 95%;
        gap: 20px;
    }

    .start-column {
        padding: 25px;
    }

    .infoPanel {
        font-size: 14px;
        padding: 15px;
    }

    .infoPanel h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    #artist {
        font-size: 16px;
    }

    .hand-element {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    /* Verbesserte Credits-Seite für Mobil */
    .credits-content {
        padding: 25px;
        width: 90%;
        margin: 60px 0; /* Mehr Platz für Scrollbarkeit */
    }

    .credits-content h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .credits-layout {
        flex-direction: column; /* Einspaltiges Layout für Mobil */
        gap: 20px;
    }

    .credits-cover {
        margin-bottom: 10px;
    }

    .credits-cover img {
        max-width: 80%;
    }

    .credits-section h3 {
        font-size: 22px;
    }

    .credits-section p {
        font-size: 16px;
    }

    /* Angepasster Close-Button für Mobil */
    .credits-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    /* Anpassungen für Release-Link Buttons auf Mobilgeräten */
    .listen-button {
        margin-left: 0;
        margin-top: 10px;
        font-size: 14px;
        padding: 4px 10px;
    }
    
    #artist {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .release-link {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    .song-button {
        padding: 10px 20px;
        font-size: 18px;
    }
}

/* Kleine Mobilgeräte */
@media (max-width: 480px) {
    #title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    #startButton, #creditsButton {
        padding: 10px 25px;
        font-size: 18px;
    }

    .start-column {
        padding: 20px;
    }

    .infoPanel {
        font-size: 13px;
        padding: 12px;
    }

    .infoPanel h3 {
        font-size: 18px;
    }

    .credits-content {
        padding: 20px;
        margin: 40px 0;
    }

    .credits-content h2 {
        font-size: 28px;
    }

    .credits-section h3 {
        font-size: 20px;
    }

    .credits-section p {
        font-size: 14px;
    }
}