* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #d40000;
    font-family: "Poppins", sans-serif;
}

/* Gesamter Bildschirm */
.hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #d40000;
}

/* Veranstaltungsbild */
.hero img {
    display: block;
    width: 100%;
    height: 100svh;
    object-fit: cover;
    object-position: center;
}

/* Bereich für den Instagram-Button */
.overlay {
    position: absolute;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: calc(100% - 32px);
    display: flex;
    justify-content: center;
    z-index: 2;
}

/* Button */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 220px;
    min-height: 56px;
    padding: 15px 34px;

    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(120, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

.button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* Tablets */
@media (max-width: 900px) {
    .hero img {
        object-position: center center;
    }

    .overlay {
        bottom: max(22px, env(safe-area-inset-bottom));
    }

    .button {
        min-width: 210px;
        font-size: 17px;
        padding: 14px 30px;
    }
}

/* Smartphones */
@media (max-width: 600px) {
    .hero {
        min-height: 100svh;
        align-items: flex-start;
    }

    .hero img {
        width: 100%;
        height: 100svh;

        /*
        Das gesamte quadratische Bild bleibt sichtbar.
        Freie Flächen werden rot dargestellt.
        */
        object-fit: contain;
        object-position: center top;
    }

    .overlay {
        bottom: max(18px, env(safe-area-inset-bottom));
        width: calc(100% - 24px);
    }

    .button {
        width: 100%;
        max-width: 360px;
        min-height: 54px;
        padding: 14px 22px;
        font-size: 16px;
    }
}

/* Sehr kleine Smartphones */
@media (max-width: 380px) {
    .button {
        font-size: 15px;
        min-height: 50px;
        padding: 12px 18px;
    }
}

/* Smartphone im Querformat */
@media (max-height: 520px) and (orientation: landscape) {
    .hero img {
        object-fit: cover;
    }

    .overlay {
        bottom: 12px;
    }

    .button {
        min-height: 44px;
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Weniger Animation bei entsprechender Systemeinstellung */
@media (prefers-reduced-motion: reduce) {
    .button {
        transition: none;
    }
}
