body {
    background-color: #1E2A30;
    margin: 0;
    padding: 0;
}

#background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    transition: background-color 0.3s ease, background-image 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

section {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    position: relative;
    align-items: center;

}

article {
    display: flex;
    flex-direction: column;
    min-width: 60%;
    max-width: 800px;
    justify-content: center;
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

p {
    color: white;
    font-family: "griffith-gothic-condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.75rem;
}

h1 {
    color: white;
    font-family: "ltc-bodoni-175", serif;
    font-weight: 400;
    font-style: normal;
    font-variant: small-caps;
    font-size: 4.5rem;
    text-align: center;
    margin: 5px 15px 0px 15px;
    position: relative;
    z-index: 10;
}

h2 {
    color: #bab7b7;
    font-family: "ltc-bodoni-175", serif;
    font-weight: 400;
    font-style: normal;
    font-variant: small-caps;
    font-size: 3.5rem;
    text-align: center;
    margin: 5px 15px 0px 15px;
    opacity: 0.8;
    position: relative;
    z-index: 10;
}

h3 {
    color: white;
    text-align: left;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5rem;
}

h4 {
    color: white;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 400;
    font-style: normal;
    font-variant: small-caps;
    font-size: 2rem;
    margin: 5px 15px 0px 15px;
}

iframe {
    border: none;
    width: 40%;
    height: 30vw;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

#welcomeScreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16/9;
    width: 100vw;
    height: 100vh;
    margin: 0;
}

#speaker-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
}

/* Generische Styles für alle Silhouetten */
[id^="silhouette"] {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    height: 100vh;
    width: auto;
    z-index: 5;
    transition: left 1s ease-out, right 1s ease-out;
    pointer-events: none;
}

/* Von links einfliegend */
[id^="silhouette"].from-left {
    left: -100vw;
    right: auto;
}

[id^="silhouette"].from-left.visible {
    left: 0;
}

/* Von rechts einfliegend */
[id^="silhouette"].from-right {
    right: -100vw;
    left: auto;
}

[id^="silhouette"].from-right.visible {
    right: 0;
}

#introSection {
    position: relative;
}

#introSection::before {
    background-color: #2C3E46;
}

.descriptionImage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: auto;
    opacity: 0;
    color: white;
    transform: scaleX(-1);
    z-index: 0;
    margin: 0;
}

.descriptionText {
    margin-right: 20px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    width: 60%;
    max-width: 50vw;
    position: relative;
    z-index: 10;
}

.aboutAuthors {
    position: relative;
    z-index: 10;
}

.aboutSection {
    background-color: #2C3E46;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
}

.spotifyList {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: none;
}

.teamMemberList {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    z-index: 10;
}

.teamMember {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin: 10px;
    align-self: flex-start;
    text-align: center;
}

.teamMemberImage {
    max-width: 300px;
    width: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin-bottom: 10px;
    align-self: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        margin: 5px 10px;
    }

    h2 {
        font-size: 2rem;
        margin: 5px 10px;
    }

    h3 {
        font-size: 2rem;
    }

    h4 {
        font-size: 1.5rem;
        margin: 5px 10px;
    }

    p {
        font-size: 1.2 rem;
    }

    article {
        min-width: 90%;
        max-width: 90%;
        min-height: 100vh;
        padding: 20px 0;
    }

    section {
        min-height: 100vh;
    }

    .descriptionText {
        width: 90%;
        max-width: 90%;
        margin: 20px 15px;
    }

    /* Silhouetten auf Mobile: Alle am unteren Bildrand, horizontal zentriert */
    [id^="silhouette"] {
        position: fixed;
        left: 50% !important;
        right: auto !important;
        bottom: 0;
        top: auto;
        transform: translateX(-50%);
        height: 100vh;
        width: auto;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    [id^="silhouette"].visible {
        opacity: 0.8;
        left: 50% !important;
        right: auto !important;
    }

    /* Episode3 und Episode4 - 100vw breit statt 100vh hoch */
    #silhouetteEpisode3Section,
    #silhouetteEpisode4Section {
        width: 100vw;
        height: auto;
    }

    /* Intro und Episode1 - 20px nach links verschieben */
    #silhouetteIntroSection {
        transform: translateX(calc(-50% - 100px));
    }

 #silhouetteEpisode1Section {
        transform: translateX(calc(-50% - 150px));
    }

    iframe {
        width: 90%;
        height: 60vw;
    }

    .teamMember {
        width: 90%;
        margin: 20px auto;
    }

    .teamMemberImage {
        max-width: 150px;
    }

    #speaker-icon {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .spotifyList {
        flex-direction: column;
        align-items: center;
    justify-content: center;
    }
}