/*Anpassung responisv*/
/*allgemein*/

@media (min-width: 1201px) {
    .modal-full-container-img {
        width: 80vw;
        max-width: 1440px;
        height: calc(80vw * 0.6);
        max-height: calc(1440px * 0.6);
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {

    .container-nav-links {
        width: auto;
    }

    .slide li div {
        width: calc(100%);
    }

    .modal-container {
        width: calc(100%);
    }

    .container-sub {
        width: calc(100% - 4rem);
    }

    .block-half {
        width: 50% !important;
    }

    .block-half.title-container {
        width: 40% !important;
    }

    .block-half.no-title-container {
        width: 60% !important;
    }

    .block-full p,
    .block-full p.center {
        width: auto;
    }

    .table {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-flow: dense;
    }

    .ref {
        grid-template-columns: repeat(3, 1fr);
    }

    .ref.var {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-sub {
        width: auto;
    }

    .table-sub.var2 {
        width: auto;
    }

    .table-sub.var {
        width: auto;
    }

    .modal-full-container-inner {
        width: calc(100% - 9rem);
    }

    .modal-full-container-img {
        width: calc(100% - 4rem);
    }

    .modal-info-content {
        height: calc((((100vw - 4rem) /2) *0.6) - 2rem);
    }

}

@media (max-width: 1024px) and (min-width: 813px) {

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2.0rem;
    }

    button {
        padding: 0.5rem 1.5rem;
        font-size: 1.25rem;
        padding-bottom: 0.6rem;
    }

    .container-nav-links {
        width: auto;
    }

    .slide li div {
        width: calc(100%);
    }

    .modal-container {
        width: calc(100%);
    }

    .container-sub {
        width: calc(100% - 4rem);
    }

    .block-half {
        width: 50% !important;
    }

    .block-half.title-container {
        width: 40% !important;
    }

    .block-half.no-title-container {
        width: 60% !important;
    }

    .block-full p,
    .block-full p.center {
        width: auto;
    }

    .team {
        transform: translateX(-2rem);
        width: calc(100% + 4rem);
        border-radius: unset;
    }

    ul.grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .table {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: dense;
    }
    .ref {
        grid-template-columns: repeat(2, 1fr);
    }

    .ref.var {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-sub {
        width: auto;
    }

    .table-sub.var2 {
        width: auto;
    }

    .table-sub.var {
        width: auto;
    }

    .modal-full-container-inner {
        width: calc(100% - 9rem);
    }

    .modal-full-container-img {
        width: calc(100% - 4rem);
    }

    .modal-info-content {
        height: calc(((100vw - 4rem) *0.6/2) - 2rem);
    }

    .modal-detail {
        width: 45%;
    }

    .ref-card.var div {
        padding-top: calc(100% - 2rem);
    }

    .modal-info-content {
        height: calc((((100vw - 4rem) /2) *1.0) - 2rem);
    }
    
}

@media (min-width: 668px) and (max-width: 812px) {
    .ref {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ref.var {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .table-sub {
        width: auto !important;
    }

    .table-sub.var2 {
        width: auto !important;
    }

    .table-sub.var {
        width: auto !important;
    }

}

/*Smartphones Hochformat*/
@media (max-width: 812px) and (min-width: 426px) and (orientation: portrait) {

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2.0rem;
    }

    button {
        padding: 0.5rem 1.5rem;
        font-size: 1.25rem;
        padding-bottom: 0.6rem;
    }

    #refButton button {
        margin: 1rem 0;
    }

    .container-nav-links {
        width: auto;
    }

    .nav-links-inner {
        display: none;
    }

    .nav-burger-menu {
        display: flex;
    }

    .slide li div {
        width: calc(100%);
    }

    .modal-container {
        width: calc(100%);
    }

    .container-sub {
        width: calc(100% - 4rem);
    }

    .block-half {
        width: 100% !important;
    }

    .left > div {
        padding-right: 0;
    }

    .right > div {
        padding-left: 0;
    }

    .title-container {
        order: -1;
    }

    .block-full p,
    .block-full p.center {
        width: auto;
    }
    
    .team {
        transform: translateX(-2rem);
        width: calc(100% + 4rem);
        border-radius: unset;
    }

    ul.grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .table {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-flow: dense;
    }
    .ref {
        grid-template-columns: repeat(1, 1fr);
    }

    .ref.var {
        grid-template-columns: repeat(1, 1fr);
    }

    .table-sub {
        width: auto;
    }

    .table-sub.var2 {
        width: auto;
    }

    .table-sub.var {
        width: auto;
    }

    .modal-full-container-inner {
        width: calc(100% - 9rem);
    }

    .modal-full-container-img {
        width: calc(100% - 4rem);
    }

    .modal-detail-content {
        height: 100%;
        margin: 0 1rem;
    }

    .ref-card.var div {
        padding-top: calc(100% - 2rem);
    }

    .modal-info-content {
        height: calc(((100vw - 4rem) *1.0) - 2rem);
    }

    .modal-detail {
        width: 60%;
    }

    .modal-full-container-inner {
        width: calc(100% - 3rem);
        margin: 6rem auto 1rem auto;
        height: calc(100% - 6.5rem);
        padding: 1.5rem 1.5rem 0 1.5rem;
        border-radius: unset;
    }

    .imgSlide img {
        height: calc(100vw * 0.6);
        border-bottom-left-radius: unset;
        border-bottom-right-radius: unset;
    }

    .modal-full .discriptive-link {
        color: rgb(31, 31, 31) !important;
    }

    .detail-trigger {
        display: none;
    }

    .modal-detail {
        width: 100%;
        margin: 0;
        height: calc(100% - 60vw);
        top: calc(100vw * 0.6);
        display: block !important;
        box-shadow: none;
        border-radius: unset;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
    }

    .modal-detail-trigger {
        display: none;
    }

    .container-dots {
        top: calc(60vw - 4.75rem) !important;
        bottom: unset;
    }

    .modal-full-container-img .modal-close {
        bottom: unset;
        top: 0;
    }

    .dots {
        padding: 0.15rem 0.5rem;
    }

    .modal-close .discriptive-link {
        color: rgba(255,255,255,0.0) !important;
        background: url(../img/quit-white.svg);
        background-size: 1.5rem 1.5rem;
        background-repeat: no-repeat;
        background-position: center;
        width: 3rem;
        font-size: 0.6rem;
        margin: 0.5rem 0.5rem 0.5rem auto;
    }

    .modal-banner .modal-close .discriptive-link {
        color: rgba(255,255,255,0.0) !important;
        background: url(../img/quit-white.svg);
        background-size: 1.5rem 1.5rem;
        background-repeat: no-repeat;
        background-position: center;
        width: 3rem;
        font-size: 0.6rem;
        margin: auto 1rem 1rem auto;
    }

    .text .modal-close {
        margin: 0 -1.5rem;
        order: -1;
    }
    
}

@media (max-width: 425px) and (orientation: portrait) {

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2.0rem;
    }

    .logo {
        height: 3rem;
        width: calc(2.24 * 3rem);
    }

    .head {
        height: 75vh;
    }

    .head .discriptive-link {
        display: none;
    }

    button {
        padding: 0.5rem 1.5rem;
        font-size: 1.25rem;
        width: 100%;
        padding-bottom: 0.6rem;
    }

    #refButton button {
        margin: 1rem 0;
    }

    .container-nav-links {
        width: auto;
    }

    .nav-links-inner {
        display: none;
    }

    .burger-menu {
        width: calc(100% - 2rem);
    }

    .burger-link-container {
        width: calc(100% - 2rem);
        height: calc(100% - 5rem);
        overflow-y: scroll;
    }

    .nav-burger-menu {
        display: flex;
    }

    .slide li div {
        width: calc(100%);
    }

    .modal-container {
        width: calc(100%);
    }

    .container-sub {
        width: calc(100% - 2rem);
        padding-top: 4rem;
    }

    .block-half {
        width: 100% !important;
    }

    .left > div {
        padding-right: 0;
    }

    .right > div {
        padding-left: 0;
    }

    .title-container {
        order: -1;
    }

    .block-full p,
    .block-full p.center {
        width: auto;
        text-align: left;
    }
    
    .team {
        transform: translateX(-2rem);
        width: calc(100% + 3rem);
        border-radius: unset;
    }

    ul.grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .table {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-flow: dense;
    }
    .ref {
        grid-template-columns: repeat(1, 1fr);
    }

    .ref.var {
        grid-template-columns: repeat(1, 1fr);
    }

    .table-sub {
        width: auto;
    }

    .table-sub.var2 {
        width: auto;
    }

    .table-sub.var {
        width: auto;
    }

    .modal-container-sub {
        margin: auto 0 1rem 0;
    }

    .modal-full-container-inner {
        width: calc(100% - 3rem);
        margin: 6rem auto 1rem auto;
        height: calc(100% - 6.5rem);
        padding: 1.5rem 1.5rem 0 1.5rem;
        border-radius: unset;
    }

    .modal-full-container-img {
        width: calc(100%);
        height: calc(100% - 5rem);
        margin: 5rem auto 0 auto;
        max-height: unset;
        border-radius: unset;
    }

    .modal-detail-content {
        height: 100%;
        margin: 0 1rem;
    }

    .imgSlide {
        border-radius: unset;
    }

    .imgSlide img {
        height: 40%;
        border-radius: unset;
    }

    .modal-full .discriptive-link {
        color: rgb(31, 31, 31) !important;
    }

    .container-dots {
        top: calc(40% - 4.75rem) !important;
        bottom: unset;
    }

    .detail-trigger {
        display: none;
    }

    .ref-card.var div {
        padding-top: calc(100% - 2rem);
    }

    .modal-info-content {
        height: calc(((100vw - 4rem) *1.0) - 2rem);
    }

    .modal-info-content p {
        font-size: 0.8rem;
    }

    .modal-info-content h3 {
        font-size: 0.9rem;
        height: 3rem;
    }

    .modal-detail {
        width: 100%;
        margin: 0;
        height: calc(100% - 40%);
        top: 40%;
        display: block !important;
        box-shadow: none;
        border-radius: unset;
    }

    .modal-detail-trigger {
        display: none;
    }

    .dots {
        padding: 0.15rem 0.5rem;
    }

    .modal-full-container-img .modal-close {
        bottom: unset;
        top: 0;
    }

    .modal-close .discriptive-link {
        color: rgba(255,255,255,0.0) !important;
        background-size: 1.5rem 1.5rem;
        background-repeat: no-repeat;
        background-position: center;
        width: 3rem;
        font-size: 0.6rem;
        padding: 0.15rem 0.15rem;
        margin: 0.5rem 0.5rem 0.5rem auto;
    }

    .modal-banner .modal-close .discriptive-link {
        color: rgba(255,255,255,0.0) !important;
        background: url(../img/quit-white.svg);
        background-size: 1.5rem 1.5rem;
        background-repeat: no-repeat;
        background-position: center;
        width: 3rem;
        font-size: 0.6rem;
        padding: 0.15rem 0.15rem;
        margin: auto 0.25rem 0.25rem auto;
    }

    .text .modal-close {
        margin: 0 -1.5rem;
        order: -1;
    }
    
}

/*Smartphones Querformat*/
@media  (min-width: 668px) and (max-width: 812px) and (orientation: landscape) {

    body > .container {
        margin-top: 0rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2.0rem;
    }

    button {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
        padding-bottom: 0.6rem;
    }

    #refButton button {
        margin: 1rem 0;
    }

    .container-nav-links {
        width: auto;
    }

    .nav-links-inner {
        display: none;
    }

    .burger-menu {
        width: calc(50% - 2rem);
    }

    .burger-link-container {
        width: calc(100% - 2rem);
        height: calc(100% - 5rem);
        overflow-y: scroll;
        top: 5rem;
    }

    .nav-burger-menu {
        display: flex;
    }

    .head {
        height: 100vh;
    }

    .head .discriptive-link {
        display: none;
    }

    .head ul li {
        font-size: 0.8rem;
    }

    .head ul p {
        font-size: 0.9rem;
    }

    .modal-content h3 {
        margin: 1rem 0;
    }

    .modal-content ul {
        margin: 1rem 0;
    }

    .slide li span {
        height: 100vh;
    }

    .slide li div {
        width: calc(100%);
        height: 100vh;
    }

    .modal-container {
        width: calc(100%);
        height: 100vh;
    }

    .container-sub {
        width: calc(100% - 4rem);
    }

    .block-half {
        width: 50% !important;
    }

    .block-half.title-container {
        width: 40% !important;
    }

    .block-half.no-title-container {
        width: 60% !important;
    }

    .block-full p,
    .block-full p.center {
        width: auto;
    }
    
    .team {
        transform: translateX(-2rem);
        width: calc(100% + 4rem);
    }

    ul.grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .table {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-flow: dense;
    }
    .ref {
        grid-template-columns: repeat(2, 1fr);
    }

    .ref.var {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-sub {
        width: auto;
    }

    .table-sub.var2 {
        width: auto;
    }

    .table-sub.var {
        width: auto;
    }

    .modal-container-sub {
        margin: auto 1rem 1rem auto;
        width: 70vw;
    }

    .modal-full-container-inner {
        width: calc(100% - 3rem);
        margin: 6rem auto 1rem auto;
        height: calc(100% - 6.5rem);
        padding: 1.5rem 1.5rem 0 1.5rem;
        border-radius: unset;
    }

    .modal-full-container-img {
        width: calc(100%);
        height: calc(100% - 5rem);
        margin: 5rem auto 0 auto;
        max-height: unset;
        border-radius: unset;
    }

    .imgSlide {
        border-radius: unset;
    }

    .imgSlide img {
        border-radius: unset;
    }

    .ref-card.var div {
        padding-top: calc(100% - 2rem);
    }

    .modal-info-content {
        height: calc(((100vw - 4rem) *0.5) - 2rem);
    }

    .modal-detail {
        width: 50%;
    }

    .modal-detail-content {
        width: 100%;
        height: calc(100% - 4rem);
        overflow-y: scroll;
        margin: 0 1rem 1rem 1rem;
    }

    .text .modal-close {
        margin: 0 -1.5rem;
        order: -1;
    }
    
}

@media (max-width: 667px) and (orientation: landscape) {

    body > .container {
        margin-top: 0rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2.0rem;
    }

    button {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
        padding-bottom: 0.6rem;
    }

    #refButton button {
        margin: 1rem 0;
    }

    .container-nav-links {
        width: auto;
    }

    .nav-links-inner {
        display: none;
    }

    .burger-menu {
        width: calc(60% - 2rem);
    }

    .burger-link-container {
        width: calc(100% - 2rem);
        height: calc(100% - 5rem);
        overflow-y: scroll;
        top: 5rem;
    }

    .nav-burger-menu {
        display: flex;
    }

    .head {
        height: 100vh;
    }

    .head .discriptive-link {
        display: none;
    }

    .head ul li {
        font-size: 0.8rem;
    }

    .head ul p {
        font-size: 0.9rem;
    }

    .modal-content h3 {
        margin: 1rem 0;
    }

    .modal-content ul {
        margin: 1rem 0;
    }

    .slide li span {
        height: 100vh;
    }

    .slide li div {
        width: calc(100%);
        height: 100vh;
    }

    .modal-container {
        width: calc(100%);
        height: 100vh;
    }

    .container-sub {
        width: calc(100% - 4rem);
    }

    .block-half {
        width: 100% !important;
    }

    .left > div {
        padding-right: 0;
    }

    .right > div {
        padding-left: 0;
    }

    .title-container {
        order: -1;
    }

    .block-full p,
    .block-full p.center {
        width: auto;
        text-align: left;
    }
    
    .team {
        transform: translateX(-2rem);
        width: calc(100% + 4rem);
    }

    ul.grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .table {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-flow: dense;
    }
    .ref {
        grid-template-columns: repeat(2, 1fr);
    }

    .ref.var {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-sub {
        width: auto;
    }

    .table-sub.var2 {
        width: auto;
    }

    .table-sub.var {
        width: auto;
    }

    .modal-container-sub {
        margin: auto 1rem 1rem auto;
        width: 70vw;
    }

    .modal-full-container-inner {
        width: calc(100% - 3rem);
        margin: 6rem auto 1rem auto;
        height: calc(100% - 6.5rem);
        padding: 1.5rem 1.5rem 0 1.5rem;
        border-radius: unset;
    }

    .modal-full-container-img {
        width: calc(100%);
        height: calc(100% - 5rem);
        margin: 5rem auto 0 auto;
        max-height: unset;
    }

    .text .modal-close {
        margin: 0 -1.5rem;
        order: -1;
    }

    .ref-card.var div {
        padding-top: calc(100% - 2rem);
    }

    .modal-info-content {
        height: calc(((100vw - 4rem) *0.5) - 2rem);
    }

    .modal-info-content p {
        font-size: 0.8rem;
    }

    .modal-info-content h3 {
        font-size: 0.9rem;
        height: 3rem;
    }

    .modal-detail {
        width: 70%;
    }

    .modal-detail-content {
        width: 100%;
        height: calc(100% - 5rem);
        overflow-y: scroll;
    }

    .imgSlide {
        border-radius: unset;
    }
    
}


/*Anpassung nach Plattform*/
.ua-mobile .noscroll,
.ua-mobile-iphone .noscroll,
.ua-desktop-macintosh .noscroll {
    overflow: hidden;
    padding-right: 0 !important;
}

.ua-mobile .noscroll .container-nav-links,
.ua-mobile-iphone .noscroll .container-nav-links,
.ua-desktop-macintosh .noscroll .container-nav-links {
    padding-right: 0 !important;
}

.ua-mobile .noscroll .nav-burger-menu div,
.ua-mobile-iphone .noscroll .nav-burger-menu div,
.ua-desktop-macintosh .noscroll .nav-burger-menu div {
    padding-right: 0 !important;
}

.ua-mobile .noscroll .burger-close div,
.ua-mobile-iphone .noscroll .burger-close div,
.ua-desktop-macintosh .noscroll .burger-close div {
    padding-right: 0 !important;
}

.ua-mobile .modal-full-container,
.ua-mobile-iphone .modal-full-container,
.ua-desktop-macintosh .modal-full-container {
    width: 100vw;
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .ua-desktop-windows .modal-info-content {
        height: calc((((100vw - 4rem - 17px) /2) *0.6) - 2rem);
    }
}

@media (max-width: 812px) and (min-width: 426px) and (orientation: portrait) {
    .ua-desktop-windows .modal-info-content {
        height: calc((((100vw - 4rem - 17px)) *1.0) - 2rem);
    }
}

@media (max-width: 812px) and (min-width: 668px) and (orientation: landscape) {
    .ua-desktop-windows .modal-info-content {
        height: calc((((100vw - 4rem - 17px)) *0.5) - 2rem);
    }
}

@media (max-width: 1024px) and (min-width: 813px) {
    .ua-desktop-windows .modal-info-content {
        height: calc((((100vw - 4rem - 17px) /2) *1.0) - 2rem);
    }
}

/* Anpassung Bilder */
@media (max-height: 1024px) and (max-width: 812px) {
    .slide li:nth-child(1) span.loading {
        background-image: url(../img/background/001_comp-mobile.jpg);
    }
    .slide li:nth-child(2) span.loading {
        background-image: url(../img/background/002_comp-mobile.jpg);
        animation-delay: 5s;
    }
    .slide li:nth-child(3) span.loading {
        background-image: url(../img/background/003_comp-mobile.jpg);
        animation-delay: 10s;
    }
    .slide li:nth-child(4) span.loading {
        background-image: url(../img/background/004_comp-mobile.jpg);
        animation-delay: 15s;
    }
    .slide li:nth-child(5) span.loading {
        background-image: url(../img/background/005_comp-mobile.jpg);
        animation-delay: 20s;
    }
}

@media (max-width: 812px) {
    .team {
        background-image: url(../img/diverse/team-mobile.jpg);
    }
}