/* --------------------- reset -------------------- */
:root {
    --grid-row-gap: 3vw;
    --grid-column-gap: 10vw;
}

* {
    box-sizing: border-box;
}

html,
body {
    border: none;
    margin: 0;
    padding: 0;

    font-family: 'Inter', sans-serif;
    background-color: black;
    color: white;
    scroll-behavior: smooth;
}


/* ------------------ general styles / typo ------------------ */
img {
    width: 100%;
    object-fit: cover;
}

h1 {
    font-weight: 700;
    font-size: 6rem;
    margin-top: 0;
    margin-bottom: 0px;
    text-transform: uppercase;
}

p {
    font-weight: 300;
    font-size: 1.2rem;
}

a {
    text-decoration: none;
    color: white;
}

/* ---------------- special typo ------------------------- */
p.subtitle {
    font-weight: 200;
    padding-left: 10px;
    margin-top: 0;
    font-size: 1.5rem;
}
a.cta {
    transition: transform 0.2s ease;
    animation: pulse 3s 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
  }

p.cta {
    font-weight: 400;
    font-size: 1.5rem;
}

h1>svg {
    width: 100px;
    height: 100px;
    stroke-width: 2;
}

.hero>a {
    text-align: center;
    color: #ffffff5a;

    svg {
        stroke-width: 2;
        width: 30px;
        height: 30px;
        padding-top: 5px;
    }
}

/*------------------------ layout --------------- */
header,
section,
footer {
    width: 80vw;
    max-width: 1500px;
    margin: 0 auto;
}

header {
    height: 100vh;
    display: flex;
    align-items: flex-end;


    .hero {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 75%;
        width: 100%;
    }
}

section.intro {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--grid-column-gap);

    div {
        width: fit-content;
    }

    div:has(.right) {
        align-self: flex-end;
    }

    svg {
        width: 25px;
        height: 25px;
        margin-bottom: -5px;
    }
}


.left {
    background-color: #bebebe;
    color: black;
    border-radius: 50px;
    padding: 15px 30px;
    display: inline-block;
    margin-left: 15px;
}

.right {
    background-color: rgb(10, 132, 255);
    border-radius: 50px;
    padding: 15px 30px;
    display: inline-block;
    margin-right: 15px;
}


section.double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: var(--grid-column-gap);

    grid-row-gap: var(--grid-row-gap);
    margin-bottom: var(--grid-row-gap);
}

section.single {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;

    grid-row-gap: var(--grid-row-gap);
    margin-bottom: var(--grid-row-gap);

    div {
        display: flex;
        flex-direction: column;
    }
}

section.outro {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--grid-column-gap);

    h1 {
        text-align: center;
    }
}

footer {
    text-align: center;
    padding: 80px;
    padding-top: 10vh;
    color: #ffffff5a;

}

/* Audio Player Container */
audio {
    width: 100%;              /* Passt die Breite an den Container an */
    max-width: 300px;         /* Maximalbreite für bessere Übersichtlichkeit */
    height: 40px;             /* Standardhöhe für eine kompakte Anzeige */
    margin: 1rem auto;        /* Zentriert mit einheitlichem Abstand */
    background-color: #333;   /* Dunkler Hintergrund für Kontrast */
    color: #fff;              /* Textfarbe für guten Lesekontrast */
    border-radius: 5px;       /* Abgerundete Ecken */
    outline: none;            /* Entfernt Standardrahmen */
}

/* Anpassung der Bedienelemente */
audio::-webkit-media-controls-panel,
audio::-webkit-media-controls-enclosure {
    background-color: #333;   /* Anpassung des Control-Panel-Hintergrunds */
    color: #fff;              /* Anpassung der Symbolfarbe */
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    filter: invert(1);        /* Anpassung für helle Icons auf dunklem Hintergrund */
}

/* Zusätzliche Style-Anpassungen für Firefox */
audio {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Schatten für dezenten 3D-Effekt */
}

/* Hover-Effekte */
audio:hover {
    background-color: #444;   /* Leichter Farbwechsel bei Hover */
    cursor: pointer;
}


/* ---------------- animation --------------------- */
/* Initial-Zustand */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation beim Scrollen */
section.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* ------------------ RESPONSIVE MEDIA QUERIES ---------------- */
@media screen and (max-width: 1000px) {

    header,
    section,
    footer {
        width: 90vw;
    }

    section.double,
    section.single {
        grid-column-gap: 5vw;
        grid-row-gap: 2vw;
        margin-bottom: 5vw;
    }

    .left, .right {
        max-width: 90%;
    }
}


@media screen and (max-width: 600px) {
    h1 {
        font-size: 3.5rem;
    }

    p {
        font-weight: 300;
        font-size: 1rem;
    }

    header {
        height: 90vh;
    }

    header,
    section,
    footer {
        width: 85vw;
    }

    p.subtitle {
        font-size: 1.2rem;
    }

    p.cta {
        font-weight: 400;
        font-size: 1.2rem;
    }

    section.intro {
        padding: 0;

        svg {
            margin-bottom: 0;
        }
    }

  

    section.single {
        grid-template-columns: 1fr;
        grid-row-gap: 5px;
        margin-bottom: 20px;
    }

    section.double {
        grid-column-gap: 20px;
        grid-row-gap: 5px;
        margin-bottom: 20px;
    }

    footer {
        padding: 40px;
        padding-top: 10vh;
    }
}

@media screen and (max-width: 470px) {
    .left, .right {
        max-width: 85%;
    }
}