/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** BURGER MENU ****/
@media all and (max-width: 1200px) {
    .bottommenu nav {
        visibility: hidden;
        position: absolute;
        padding: 2rem 0;
        top: 100%;
        right: 0;
        width: 100%;
        opacity: 1;
    }
    .bottommenu nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .menuitem {
        flex-direction: column;
        align-items: center;
    }
    #burgermenu {
        display: block;
    }
    .dropdown {
        position: relative;
        padding: 0 1rem;
        margin: 0;
        top: 0;
    }
    .bottommenu {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    nav li {
        height: fit-content;
    }
}
/**** LAPTOP ****/
@media all and (max-width: 1300px) {
    #hero h1 {
        width: 100%;
    }
    .content.flex {
        gap: 3em;
    }
    #all {
        grid-column: 1 / 3;
    }
    .box:nth-child(1) {
        grid-row: 1;
    }
    .box:nth-child(2) {
        grid-row: 1;
    }
    .box:nth-child(3) {
        grid-row: 2;
    }
    .box:nth-child(4) {
        grid-row: 2;
    }
    .grid {
        justify-content: normal;
    }
}

/**** TABLET *****/
@media all and (max-width: 1000px) {
    .info.flex {
        flex-direction: row;
        gap: .5rem;
    }
    .right img {
        display: none;
    }
    .flex:not(.option) {
        flex-direction: column;
        gap: 1em;
    }
    .select {
        flex-direction: row;
    }
    #popup .select {
        flex-direction: row;
    }
    .teaser div {
        margin: auto;
        text-align: center;
        width: 100%;
        margin: auto;
    }
    .teaser div:nth-of-type(1) {
        grid-row: 1;
        grid-column: 1;
    }
    .teaser div:nth-of-type(2) {
        grid-row: 2;
        grid-column: 1;
    }
    .teaser div:nth-of-type(3) {
        grid-row: 3;
        grid-column: 1;
    }
    .teaser i {
        margin: auto;
    }
    .content {
        padding: calc(1rem + 5vw) calc(1rem + 3vw);
    }
    #popup {
        left: calc(1rem + 3vw);
        width: calc(100% - calc(calc(1rem + 3vw) * 2));
        transform: translateY(-50%);
        max-width: none;
    }
    #popup .select {
        flex-direction: row;
    }
}

/**** SMARTPHONE ****/
@media all and (max-width: 600px) {
    .info.flex {
        flex-direction: column;
    }
    input {
        padding: .5rem 0rem;
        text-align: center;
    }
    textarea::placeholder {
        text-align: center;
    }
    nav,
    .menuitem a {
        transition: none;
    }
    #all {
        grid-column: 1 / 2;
    }
    .box:nth-child(1) {
        grid-row: 1;
    }
    .box:nth-child(2) {
        grid-row: 2;
    }
    .box:nth-child(3) {
        grid-row: 3;
    }
    .box:nth-child(4) {
        grid-row: 4;
    }
    .all a span {
        display: none;
    }
    #recaptcha {
        flex-direction: column;
        align-items: start;
        gap: 1rem
    }
    #popup {
        top: auto;
        bottom: 0;
        left: 0;
        margin: 0;
        padding: 2rem 1.5rem;
        width: 100%;
        transform: none;
        border-radius: 0;
    }
}

/**** MOBILE ****/
@media all and (max-width: 450px) {
    .topmenu {
        display: none;
    }
    .select.flex {
        flex-direction: column;
    }
    .flex {
        flex-direction: column;
    }
    .option {
        align-items: start;
    }
    #popup .select {
        flex-direction: column;
    }
    #popup button{
        width: 100%;
    }
}
/* Teaserboxen: zwei Spalten auf kleineren Bildschirmen, eine auf Smartphones */
@media all and (max-width: 1300px) {
    #teaserbox .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media all and (max-width: 600px) {
    #teaserbox .grid {
        grid-template-columns: 1fr;
    }
}
@media all and (max-width: 600px) {
    #topfooter .inner.grid {
        grid-template-columns: 1fr;
    }
}
@media all and (max-width: 1200px) {
    .bottommenu .nav > ul > li {
        height: auto;
        min-height: 42px;
    }
    .bottommenu .dropdown {
        min-width: 0;
    }
}
@media all and (max-width: 600px) {
    #topfooter {
        padding: 40px 0;
    }
    #topfooter .inner.grid {
        gap: 2rem;
    }
    #topfooter .box {
        padding: 0 24px;
    }
    #topfooter .footer-hours {
        flex-wrap: wrap;
        gap: 4px 12px;
    }
}
/* Mobile Navigation: sichtbarer Schalter und umbrechende Unterpunkte */
@media all and (max-width: 1200px) {
    .bottommenu .inner {
        justify-content: flex-end;
    }
    #burgermenu {
        width: 44px;
        min-height: 44px;
        padding: 10px 6px;
    }
    #burgermenu .burger .line {
        background: var(--white);
    }
    .bottommenu .nav {
        max-height: 75vh;
        overflow-y: auto;
    }
    .bottommenu .nav > ul > li {
        width: 100%;
    }
    .bottommenu .nav > ul > li > a {
        min-height: 44px;
        justify-content: center;
    }
    .bottommenu .dropdown,
    .bottommenu .nav .dropdown {
        width: 100%;
        min-width: 0;
    }
    .bottommenu .dropdown a {
        white-space: normal;
    }
}

/* Hero und Inhaltsbreiten auf Tablet und Smartphone */
@media all and (max-width: 1000px) {
    #hero .inner {
        position: relative;
        min-height: 360px;
        max-height: none;
    }
    #hero .inner > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    #hero .content {
        position: relative;
        width: 100%;
        margin: 0;
        padding: 40px 24px;
    }
    #hero h1 {
        width: 100%;
        max-width: 650px;
        font-size: 36px;
        line-height: 1.2;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
    }
    .content .inner,
    .content .flex > div {
        min-width: 0;
        max-width: 100%;
    }
    #about .left,
    #about .right,
    #linkblock {
        width: 100%;
    }
    .content p,
    .content li,
    #topfooter a {
        overflow-wrap: anywhere;
    }
}

@media all and (max-width: 600px) {
    .content {
        padding: 36px 24px;
    }
    #hero .inner {
        min-height: 340px;
    }
    #hero h1 {
        font-size: 30px;
        margin: 0 0 20px;
    }
    #hero-btn {
        margin-top: 0;
        max-width: 100%;
    }
    main .content h2,
    main .content h3 {
        font-size: 24px;
        line-height: 1.3;
    }
    main .content p,
    #about li {
        font-size: 16px;
        line-height: 1.6;
    }
    .option.flex {
        flex-direction: column;
        align-items: flex-start;
    }
    #linkblock {
        min-width: 0;
    }
    #selection span {
        height: auto;
    }
    #topfooter .footer-hours {
        display: block;
    }
    #topfooter .footer-hours > span {
        display: block;
        width: auto;
    }
}
/* Smartphone-Header wie auf der Homepage */
@media all and (max-width: 600px) {
    .topmenu {
        display: block;
        padding: 0 24px;
        background: var(--white);
    }
    .topmenu .inner nav {
        padding: 20px 0 12px;
    }
    .topmenu .logo {
        width: 300px;
        max-width: 100%;
        height: auto;
    }
    .topmenu .logo img {
        display: block;
        height: auto;
    }
    .bottommenu {
        padding: 0 14px;
    }
    #burgermenu {
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto;
        min-height: 44px;
        padding: 0;
    }
    #burgermenu::before {
        content: "MENÜ";
        font-family: 'Questrial', sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: var(--white);
    }
    #burgermenu .burger {
        width: 18px;
        height: 16px;
    }
    #burgermenu .burger .line {
        width: 18px;
    }
}
/* Willkommen im mobilen Menü hervorheben */
@media all and (max-width: 1200px) {
    .bottommenu .nav > .nav-list > li:first-child > a {
        width: 100%;
        background: #ee1c25;
        color: var(--white);
    }
}