@media (max-width: 820px) {
    .event-details {
        max-width: 100%;
        padding: 0.6rem;
        margin: 0.6rem 0;
    }

    .event-details .event-time {
        text-align: left;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .event-figure {
        max-width: 640px;
    }
}

@media (max-width: 600px) {
    .event-figure {
        max-width: 100%;
        margin: 0.5rem;
    }

    .event-figure .event-image {
        max-height: 50vh;
    }
}

@media (max-width: 430px) {
    .event-details {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

@media screen and (max-width: 800px) {
    main {
        max-width: 100%;
        padding: 0.75rem 0.85rem;
    }

    aside {
        float: none;
        max-width: 100%;
        margin: 1rem 0.85rem;
    }

    .nav-container {
        display: block;
        width: 100%;
        text-align: center;
    }

    #top-nav {
        width: 100%;
    }

    #top-ul {
        display: none;
        width: 100%;
        padding: 0 0.75rem 0.75rem;
        box-sizing: border-box;
    }

    #burger-menu {
        display: block;
        font-size: 2rem;
        line-height: 1;
        margin: 0.5rem 1rem 0 auto;
        cursor: pointer;
    }

    #burger-check:checked + #top-ul {
        display: block;
    }

    header nav ul {
        display: block;
        text-align: left;
    }

    header nav li {
        display: block;
        width: 100%;
    }

    header nav a {
        display: block;
        width: auto;
        margin: 0.35rem 0;
        box-sizing: border-box;
    }

    html {
        font-size: 18px;
        line-height: 1.4;
    }

    h1 {
        font-size: 30px;
        letter-spacing: normal;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    main {
        margin: 0 12px;
    }

    aside {
        float: none;
        margin: 15px 12px;
    }

    .link_blocks div {
        width: 100%;
        max-width: none;
    }

    .slide {
        width: 85vw;
        margin-left: 0;
        min-height: 30ex;
    }

    figcaption {
        margin-bottom: 15px;
        font-size: 14px;
    }

    .Quelle {
        font-size: 14px;
    }

    object {
        display: none;
    }

    .youtube {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .foto_flex img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .results_flex {
        display: flex;
        flex-wrap: wrap;
    }

    .results_foto_flex img {
        height: 45vh;
        width: auto;
        padding: 5px;
    }

    .results_foto_flex_quer {
        height: auto;
    }

    #flyer_pdf {
        display: none;
    }

    #footer-kontakt {
        width: 100%;
        background-color: rgb(180, 173, 172);
        bottom: 0;
        left: 0;
        margin-top: 20px;
        float: right;
        position: relative;
    }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
    .nav-container {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    #top-nav {
        width: 100%;
    }

    #top-ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
    }

    #burger-menu {
        display: none;
    }

    header nav li {
        display: inline-block;
    }

    header nav a {
        width: 7.5em;
        margin: 0.2rem;
    }

    main {
        margin: 0 18px;
    }

    .slide {
        width: 74vw;
        margin-left: 13%;
    }

    .link_blocks div {
        width: 46%;
    }

    .foto_flex img {
        width: 48%;
        height: auto;
        max-height: 260px;
        object-fit: cover;
    }

    .youtube {
        width: 90%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    #flyer_pdf {
        display: none;
    }
}

/* ipad */
@media screen and (min-width: 801px) and (max-width: 1200px) {
    #flyer_pdf {
        display: none;
    }

    .youtube {
        width: 750px;
        height: 520px;
    }

    .results_foto_flex img {
        height: 35vh;
        width: auto;
        padding: 5px;
    }

    .results_foto_flex_quer {
        width: 44% !important;
    }
}

@media screen and (max-width: 430px) {
    html {
        font-size: 16px;
        line-height: 1.3;
    }

    main {
        margin: 3px;
    }

    h1 {
        font-size: 22px;
        letter-spacing: normal;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 17px;
    }

    .nav-container {
        display: block;
        float: none;
    }

    #burger-menu {
        display: block;
        margin-right: 20px;
        float: right;
    }

    #burger-check {
        display: none;
    }

    #top-ul {
        display: none;
    }

    #burger-check:checked + #top-ul {
        display: block;
    }

    header nav ul {
        display: block;
        text-align: left;
    }

    header nav a {
        margin: 5px 0;
        width: 100%;
    }

    .slide {
        width: 90vw;
        margin-left: 0;
    }

    .link_blocks div {
        width: 100%;
        max-width: 100%;
    }

    figcaption {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .Quelle {
        font-size: 14px;
    }

    .youtube {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    object {
        display: none;
    }

    .results-flex {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .foto_flex img {
        width: 100%;
        height: auto;
    }

    .results_foto_flex {
        display: flex;
        flex-wrap: wrap;
    }

    .results_foto_flex_quer {
        height: 15vh !important;
    }

    .results_foto_flex img {
        height: 45vh;
        width: auto;
        padding: 5px;
    }

    #chronik_pic {
        max-height: 300px;
    }

    #footer-kontakt {
        width: 100%;
        background-color: rgb(180, 173, 172);
        bottom: 0px;
        left: 0px;
        margin-top: 20px;
        float: right;
        position: relative;
    }

    #flyer_pdf {
        display: none;
    }

    .event-list {
        list-style: none;
        padding: 0;
    }
}
