/* ----------- Colors ----------- */
:root {
    --main-blue: #0073C7;
    --nav-hover-color: #3a9fff;
    --lightgrey: #ececec;
    --white: #f9f9f9;
    --footer-height: 85px;
}

/* ----------- Generell ----------- */
* {
    font-family: sans-serif;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    margin: 0;
}

body {
    font-size: 12pt;
    background-color: var(--white);
}

a {
    color: var(--main-blue);
    font-weight: bold;
}

.mainContent {
    width: 60%;
    margin: 20px auto 50px auto;
    grid-column-gap: 25px;
}

.overlay {
    background-color: #00000080;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 3;
}

.checkbox.valError,
input.valError { border: 1px solid red !important}

small { font-size: 9pt }

main { 
    min-height: calc(100vh - var(--nav-height) * 2 - var(--footer-height));
    overflow: hidden;
}

h3 { font-size: 14pt }

label { user-select: none }

.centerAlign { text-align: center }

.largeField { grid-column: 1/3 }

.form .policy {
    position: absolute;
    bottom: 0;
    z-index: -1;
}

.checkbox input { display: none }

.checkbox input:checked + span { background-color: var(--main-blue) }

.greybox { background-color: var(--lightgrey) }

.clear { clear: both }

.clearRight { clear: right }

.hunderlined:hover { text-decoration: underline }

hr { border-color: #f3f3f3 }

.twoQuarters {
    display: grid;
    grid-template-columns: 50% 1fr;
}

.threeQuarters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.checkbox {
    display: inline-block;
    width: 17px;
    height: 17px;
    background-color: white;
    border: 1px solid #A7A7A7;
    padding: 2px;
}

.checkbox > span {
    display: block;
    width: 100%;
    height: 100%;
}

/* ----------- Tab Links ----------- */
.tabLinks {
    width: 50%;
    margin: auto;
}

.tabLinks > a {
    display: inline-block;
    background-color: var(--main-blue);
    color: white;
    font-weight: bold;
    padding: 15px 10px;
    width: 100%;
}

.tabLinks > a:hover, .tabLinks > a.active {
    background-color: var(--nav-hover-color);
}

/* ----------- Alert Field ----------- */
.alertField {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    z-index: 1;
    text-align: center;
}

.alertField > h2 {
    background-color: var(--main-blue);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    padding: 5px;
}

.alertField > h2 > img {
    position: absolute;
    right: 5px;
    cursor: pointer;
}

.alertField > h3 {
    padding: 10px;
}

/* ----------- Chef Profil ----------- */
.chefProfil {
    text-align: center;
}

.chefProfil img {
    max-width: 100%;
    max-height: 300px;
}

.chefProfil i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----------- Blocklists ----------- */
/* Content */
.contentBlockList,
.contentBlockList2,
.polygonBlockList {
    list-style-type: none;
    padding: 0;
}

.contentBlockList > h3,
.contentBlockList2 > h3 {
    text-align: center;
}

.contentBlockList li,
.contentBlockList2 li {
    background-color: var(--main-blue);
    padding: 15px;
    color: white;
}

.contentBlockList li {
    margin-top: 10px;
}

/* 2. Version mit 2 Spalten :3 */
.contentBlockList2 {
    grid-gap: 10px;
}

.contentBlockList2 h3 {
    grid-column: 1/3;
}

/* Polygon */
.polygonBlockList {
    grid-gap: 20px;
    grid-template-columns: 50% 50%;
    width: 50%;
    margin: 10% auto 15% auto;
    transform: translateX(-5%) rotate(45deg);
}

.polygonBlockList li {
    background-color: var(--main-blue);
    padding-top: 100%;
    position: relative;
}

.polygonBlockList li span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);;
    color: white;
    text-align: center;
}

/* ----------- Textbox ----------- */
.textbox {
    border: 2px solid var(--main-blue);
    background-color: var(--lightgrey);
    padding: 10px;
}

/* ----------- Wir freuen uns auf Ihre Kontaktaufnahme... ----------- */
.greetContact > .twoQuarters {
    width: max-content;
    text-align: center;
    align-items: center;
    padding: 15px;
    grid-column-gap: 45px;
    margin: auto;
}

/* ----------- Video ----------- */
.videoSection, .videoWrapper, .videoWrapper video, .videoWrapper img,
.videoTextbox {
    width: 100%;
}

.videoSection {
    border: 1px solid var(--main-blue);
}

.videoWrapper {
    position: relative;
    border-bottom: none;
    overflow: hidden;
    display: flex;
}

.videoWrapper img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: scale(1.1);
}

.videoTextbox {
    background-color: var(--main-blue);
    color: white;
    padding: 8px;
}

.videoWrapper .playOverlay {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000077;
    color: white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24pt;
    cursor: pointer;
    transition: opacity .3s;
}

.videoWrapper .playOverlay:hover {
    opacity: 1;
}

/* ----------- Formular ----------- */
.form {
    background-color: var(--lightgrey);
    padding: 8px;
    grid-row-gap: 15px;
}

.form .checkLabel {
    margin-bottom: 4px;
}

.checkLabel {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.checkLabel .checkbox {
    margin-right: 7px;
}

.form textarea {
    max-width: 100%;
    min-width: 100%;
}

.reqField::after {
    content: ' *';
    color: #0095C5;
}

.form .reqField:nth-last-child(1) {
    text-align: right;
    align-self: flex-end;
}

button {
    background-color: var(--main-blue);
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    border: 0;
}

input, button, textarea {
    font-size: 12pt;
}

input, select, textarea {
    border: 1px solid lightgrey;
}

.form input {
    width: 95%;
    min-width: 80%;
}

input {
    padding: 4px;
}

textarea {
    width: 100%;
    min-height: 100px;
}

.fileUpload input[type="file"] {
    display: none;
}

.fileUpload > span {
    background-color: var(--main-blue);
    color: white;
    display: flex;
    align-items: center;
    width: fit-content;
    width: -moz-fit-content;
    padding-left: 5px;
    cursor: pointer;
}

.fileUpload > span > i {
    display: inline-block;
    margin-right: 5px;
}

.fileUpload > span > input {
    background-color: white;
    pointer-events: none;
    min-width: 50%;
    height: 100%;
    margin-left: 5px;
    width: auto;
}

/* ----------- Icon List ----------- */
.iconList {
    text-align: center;
    grid-gap: 20px;
}

.iconList .iconContainer {
    position: relative;
}

.iconContainer b, .iconList b {
    display: block;
}

.iconList .iconInfo {
    display: none;
    background-color: var(--main-blue);
    position: absolute;
    z-index: 1;
    width: 200%;
    text-align: left;
    padding: 10px;
    color: white;
    border-bottom: 2px solid white;
}

.iconList .iconInfo::before {
    content: '';
    width: 35px;
    height: 20px;
    background-color: var(--main-blue);
    position: absolute;
    top: 1px;
    left: 25%;
    transform: translate(-50%, -100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.iconContainer {
    text-align: center;
}

.iconContainer img {
    width: 110px;
    height: 110px;
}

.iconShow {
    grid-gap: 15px;
}

.iconList .iconInfo.show {
    display: block;
}

.iconList .iconInfo.right {
    right: 0;
    width: calc(200% + 40px);
}

.iconList .iconInfo.right::before {
    left: unset;
    right: calc(25% - 10px);
    transform: translate(50%, -100%);
}

/* ----------- Share ----------- */
.share {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.share a.center {
    text-align: center;
}

.share a.right {
    text-align: right;
}

.share a {
    color: black;
    font-weight: bold;
    cursor: pointer;
    align-self: center;
    user-select: none;
    display: block;
    padding: 10px;
}

.share i, .share a:hover {
    color: var(--main-blue);
}

.share ul {
    list-style-type: none;
    padding: 0;
    grid-column: 1/4;
}

.share ul li:nth-child(1) a {
    padding-top: 0;
}

/* ---------------------- Header ---------------------- */

/* ----------- Navigation ----------- */
header {
    text-align: center;
    top: 0;
    position: sticky;
    z-index: 3;
    pointer-events: none;
}

:root {
    --nav-height: 65px;
}

nav.mainNav {
    background-color: var(--main-blue);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: var(--nav-height);
    pointer-events: all;
}

nav.mainNav > .navPoints:nth-child(1) {
    justify-self: flex-end;
}

.navPoints {
    display: flex;
}

.navPoint {
    display: inline-flex;
    align-items: center;
    color: white;
    font-weight: bold;
    height: var(--nav-height);
}

.navPoint .diagonalBorder::after {
    border-bottom: 2px solid white;
}

.navPoint .diagonalBorder:nth-child(1) {
    transform: rotate(180deg);
}

.navLabel {
    padding: 0 15px;
    position: relative;
    height: var(--nav-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 240px;
}

.diagonalBorder {
    display: inline-block;
    width: 40px;
    height: var(--nav-height);
    overflow: hidden;
    position: relative;
}

.diagonalBorder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -82px;
    display: block;
    width: 160px;
    height: 50%;
    transform: translateY(-50%) rotate(-65deg);
    background-color: var(--main-blue);
}

.diagonalBorder.logoBorder:not(.headerBorder) {
    background-color: white;
}

nav.mainNav > .navPoints:nth-child(1) .diagonalBorder::after,
.headerInfo  .diagonalBorder:nth-child(1)::after {
    border-top: 2px solid white;
    transform: translateY(-50%) rotate(65deg);
}

.headerInfo .diagonalBorder:nth-child(1) {
    transform: rotate(180deg);
}

.headerInfo  .diagonalBorder:nth-child(1)::after {
    border: 0;
}

/* Hover */
.navPoint:hover .diagonalBorder::after,
.navPoint:hover .navLabel,
.navPoint:hover + .navPoint .diagonalBorder:nth-child(1) {
    background-color: var(--nav-hover-color);
}

.navPoint.selected .diagonalBorder::after,
.navPoint.selected .navLabel,
.navPoint.selected + .navPoint .diagonalBorder:nth-child(1) {
    background-color: var(--nav-hover-color);
}
/* Logo */
.logo {
    background-color: white;
    height: var(--nav-height);
}

.mainNav .logo img {
    height: var(--nav-height);
}

.headerInfo {
    display: inline-flex;
    margin-right: -5px;
    position: relative;
    z-index: -1;
    transition: transform .3s;
}

.headerInfo.moveTop {
    transform: translateY(-50%);
}

.headerInfo.moveTop .infoContent {
    min-width: 652px;
}

.headerBorder::after {
    background-color: white;
}

.headerInfo .infoContent {
    background-color: var(--main-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 620px;
    transition: min-width .3s;
    pointer-events: all;
}

.infoContent > div {
    color: white;
    padding: 7px 20px;
}

.infoContent a {
    color: white;
    font-weight: normal;
    margin: 0 6px;
}

.infoContent .headLine {
    display: block;
    margin-bottom: 10px;
}

/* Mobile */
.mobileLogo, .mobileNav {
    display: none;
}

.mobileLogo {
    height: var(--nav-height);
}

.mobileNav {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    height: calc(100vh - var(--nav-height));
    background-color: #f6f6f6;
    z-index: 2;
}

.mobileNav ul {
    list-style-type: none;
    padding: 0;
    text-align: right;
}

.mobileNav li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobileNav a {
    display: inline-block;
    padding: 8px;
    color: black;
    font-weight: bold;
    min-width: max-content;
}

.mobileNav li::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 38px;
}

.activeLink {
    background-color: #e9e9e9;
}

.activeLink::after {
    background-color: var(--main-blue);
}

.mobileLogo > div:nth-child(1) {
    display: inline-block;
    background-color: white;
}

.hamburger {
    display: none;
    width: 35px;
    height: 28px;
    position: relative;
}

.hamburger > div {
    width: 35px;
    height: 6px;
    background-color: white;
    margin-bottom: 5px;
    position: absolute;
    transition: .3s;
}

.hamburger > div:nth-child(1) {
    transform-origin: right;
}

.hamburger > div:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger > div:nth-child(3) {
    margin: 0;
    left: 50%;
    bottom: 0;
    transform: translate(-50%);
    transform-origin: left;
}

.hamburger.extended > div:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, -2px);
}

.hamburger.extended > div:nth-child(2) {
    transform: rotate(-45deg);
}

.hamburger.extended  > div:nth-child(3) {
    transform: rotate(45deg) translate(-65%, -90%);
}

/* ---------------------- Abmelden ---------------------- */
.unsubscribe {
    width: 60%;
    margin: auto;
    padding: 25px 0;
}

/* ---------------------- Main ---------------------- */
.mainGrid {
    display: grid;
    grid-template-columns: 40% 1fr;
    grid-gap: 15px;
    padding: 25px;
    grid-template-rows: 480px auto;
}

.mainInfo.img {
    height: 100%;
    background-image: url(/images/stock/01home.jpg);
    border: 2px solid var(--main-blue);
    background-position: right;
    background-size: cover;
}

.mainInfo.img .imgContainer img {
    object-fit: contain;
}

.mainInfo.img .imgContainer {
    width: 250px;
    height: 100%;
    background-color: var(--main-blue);
    display: flex;
    justify-content: center;
    flex-flow: column;
    text-align: center;
    color: white;
    font-weight: bold;
    padding: 7px 0;
}

.textIntro {
    padding: 15px;
}

/* ----------- Weiterlesen ----------- */
.toggleWeiterlesen:not(.overlay) {
    color: var(--main-blue);
    font-weight: bold;
    cursor: pointer;
}

.toggleWeiterlesen.overlay {
    display: none;
}

.weiterlesen {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid var(--main-blue);
    z-index: 4;
}

.weiterlesen > span:nth-child(1) {
    background-color: var(--main-blue);
    text-align: right;
    padding: 0;
}

.weiterlesen > span:nth-child(1) i {
    padding: 10px;
    cursor: pointer;
    color: white;
}

.weiterlesen > span:nth-child(1) i:hover {
    color: var(--lightgrey);
}

.weiterlesen > span {
    display: block;
    padding: 10px;
}

/* ----------- 3 Steps ----------- */
.threeSteps {
    margin: 15px 25px;
    background-color: var(--lightgrey);
    height: 50vh;
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.threeSteps .loading {
    height: 10px;
    position: relative;
    background-color: #dbdbdb;
}

.threeSteps .loading > span {
    animation: none;
    width: 80%;
}

.threeSteps .stepsLabel {
    padding: 15px;
    background-color: #cacaca;
    text-align: center;
    font-weight: bold;
}

.threeSteps .slideField {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

.threeSteps ul, .slideField div:not(.weiterlesen) {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-flow: wrap;
    justify-content: center;
}

.threeSteps li, .threeSteps select, 
.threeSteps input[type="text"], 
.threeSteps input[type="email"], 
.threeSteps .slideField button,
.stepData li {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    margin: 30px;
    width: 200px; /*150px;*/
    height: 75px; /*150px;*/
    background-color: #fffdfd;
    border: 2px solid var(--main-blue);
    cursor: pointer;
    text-align: center;
    color: black;
    font-weight: normal;
}

.threeSteps input[type="text"], .threeSteps input[type="email"] {
    cursor: text;
}

.threeSteps li:hover, .threeSteps .slideField button:hover,
.threeSteps li.selected, .stepData li:hover {
    color: #fffdfd;
    background-color: var(--main-blue);
}

.threeSteps .leftCorner {
    display: flex;
    align-items: center;
}

.threeSteps .leftCorner button {
    margin-right: 5px;
}

.threeSteps label {
    margin-top: 9px;
}

.threeSteps select {
    text-align: center;
    text-align-last: center;
}

.no-fill-error {
    display: none;
    text-align: center;
    color: var(--main-blue);
}

.threeSteps .gettingStarted {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9bd;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

.threeSteps .gettingStarted button {
    margin: 10px;
}

.stepData {
    width: 850px;
    padding: 10px;
    background-color: var(--white);
    display: block;
    top: 50%;
    left: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    z-index: 4;
    box-shadow: 0 0 10px 0 #525252;
    overflow: auto;
    max-height: 95vh;
    display: none;
}

.overlay.toggleStepData {
    text-align: right;
}

.overlay.toggleStepData i {
    margin: 15px;
    font-size: 20pt;
    color: white;
    cursor: pointer;
}

.stepData h3 {
    margin: 15px 0;
}

.stepData ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
}

.stepData li {
    padding: 25px 10px;
    width: 100%;
    height: 100%;
    margin: 0;
}

.stepData input[type="range"] {
    width: 200px;
}

.stepData .range {
    display: flex;
    align-items: center;
}

.stepData .range [type="range"] {
    margin: 0 5px;
}

.stepData .condition {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: max-content;
}

.stepData .condition [type="range"] {
    grid-column: 1/4;
}

.stepData .condition > div:nth-last-child(2) {
    text-align: center;
}

.stepData .condition > div:nth-last-child(1) {
    text-align: right;
}

/* ----------- Search ----------- */
.searchWrapper {
    width: 100%;
    height: 100%;
    grid-template-rows: auto auto 1fr;
    grid-column-gap: 10px;
    grid-template-areas: 
        "Search Search" 
        "HL1 HL2"
        "C1 C2";
}

.searchWrapper input[type="text"] {
    border: 0;
    color: #898989;
    background-color: var(--lightgrey);
    padding: 10px;
    font-size: 12pt;
    width: 100%;
    height: 100%;
}

.searchWrapper .inputWrapper {
    max-height: 100%;
    overflow: auto;
    padding: 8px;
    background-color: var(--lightgrey);
}

.searchWrapper .headLine {
    background-color: var(--main-blue);
    color: white;
    text-align: center;
    padding: 14px 0;
}

.searchWrapper .inputWrapper ul {
    list-style-type: none;
    padding: 0;
}

.searchWrapper .inputWrapper ul ul {
    display: none;
    margin-left: 15px;
}

label .checkbox {
    margin-right: 7px;
}

.searchWrapper .inputWrapper li {
    margin: 12px 0;
}

.searchWrapper label,
.threeSteps label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

label:hover .checkbox {
    background-color: #f0f0f0;
}

.search {
    display: grid;
    grid-template-columns: 1fr min-content;
    margin-bottom: 10px;
    width: 50%;
}

/* ----------- Slider ----------- */
.slider:not(.compact):not(.noDescription) {
    display: grid;
    grid-template-rows: 1fr 85px;
    background-color: var(--lightgrey);
}

.slider.compact {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.slider.mainSlider {
    height: 100%;
}

.slider .sliderBottom {
    background-color: var(--main-blue);
    display: grid;
    grid-template-columns: 50px 1fr 50px;
}

.slider .sliderButton {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26pt;
    cursor: pointer;
    color: white;
    user-select: none;
}

.slider .sliderButton:hover {
    background-color: var(--nav-hover-color);
}

.slider .descriptions {
    width: 100%;
    height: 100%;
    padding: 8px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider .descriptions a {
    color: white;
}

.slider .descriptions a:hover {
    text-decoration: underline;
}

.slider .description {
    width: 100%;
}

.slider .description:not(.show) {
    display: none;
}

.slider .preview {
    position: relative;
    height: 100%;
    width: 100%;
}

.slider:not(.compact) .preview {
    overflow: hidden;
}

.slider .preview img {
    object-fit: cover;
    object-position: center;
}

.slider .preview img,
.slider .preview .slideField {
    transition: left 1s;
}

.slider:not(.compact) .preview .slideField {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.slider.compact .preview {
    display: flex;
    transition: left 1s;
}

.slider.compact .preview img {
    width: 25%;
    height: 100%;
    min-width: 25%;
    padding: 3px;
    object-fit: cover;
    cursor: pointer;
    opacity: .8;
}

.slider.compact .controls > span {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 100%;
    padding: 0 15px;
    background-color: black;
    left: 0;
    z-index: 1;
    font-size: 24pt;
    color: white;
    cursor: pointer;
    opacity: .5;
}

.slider.compact .controls > span:hover {
    opacity: .8;
}

.slider.compact .controls > span:nth-child(2) {
    left: unset;
    right: 0;
}

.slider .loading > span {
    animation-duration: 15s;
}

/* ----------- Loading ----------- */

.loading {
    position: absolute;
    width: 100%;
    height: 3px;
    top: 0;
    left: 0;
    display: block;
    z-index: 1;
}

.loading > span {
    content: '';
    background-color: var(--main-blue);
    display: block;
    width: 0%;
    height: 100%;
    transition: width 1s;
    animation: loadingAnimation linear infinite;
}

@keyframes loadingAnimation {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* ----------- Itemlist ----------- */
.itemList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin: auto;
    width: 80%;
}

.item {
    background-color: var(--main-blue);
    position: relative;
    color: white;
    height: 400px;
}

.item button {
    background-color: #00487d;
}

.item, .item img, .item .imageText {
    width: 100%;
}

.item img {
    object-fit: cover;
}

.item .itemImgPreview img, .item .imageText {
    height: 220px;
}

.item .imageText {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 8px;
    background-color: #028bef;
}

.item hr {
    margin: 10px 0;
    background-color: #CACACA;
}

.item .itemInfoWrapper {
    padding: 10px;
}

.item .itemInfoWrapper .twoQuarters {
    grid-row-gap: 10px;
}

.item button {
    width: 100%;
}

.headerContainer {
    border-top: 2px solid white;
}

.wechslerItems .itemList {
    width: 100%;
}

.itemSection {
    position: relative;
    min-height: 100px;
}

.itemLoading {
    position: absolute;
    background-color: #ffffff80;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 2;
}

/* ----------- Page Select ----------- */
.pageSelect {
    width: 100%;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    user-select: none;
}

.pageSelect i {
    font-size: 14pt;
    cursor: pointer;
    margin: 0 5px;
}

.pageSelect i:hover {
    color: var(--main-blue);
}

.pageJump.disabled {
    opacity: .5;
}

/* ----------- Footer ----------- */
footer {
    background-color: var(--lightgrey);
}

footer .footerContent {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    grid-column-gap: 350px;
    width: max-content;
    margin: auto;
    padding: 3px;
    height: var(--footer-height);
}

footer .footerContent span {
    display: inline-block;
    margin-bottom: 3px;
    color: #3E3E3E;
    font-size: 10pt;
}

/* ---------------------- Detail ---------------------- */
.detailGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 50px;
    grid-row-gap: 25px;
    grid-template-areas: 
        "slider slider contact"
        "info info ad";
    padding: 25px 10%;
}

.detailGrid.noSlider {
    grid-template-areas: 
        "info info contact"
        "info info ad";
}

.detailGrid > .largeField {
    grid-column: 1/4;
}

/* ----------- Image Viewer ----------- */
.imageViewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.imageViewer .preview {
    position: fixed;
    border: 2px solid white;
    pointer-events: all;
    width: max-content;
    height: max-content;
    transition: .5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imageViewer .preview img {
    max-width: 80vw;
    max-height: 80vh;
}

.imageViewer .controls {
    position: absolute;
    z-index: 3;
    width: 100%;
}

.imageViewer .controls i {
    font-size: 80pt;
    color: white;
    cursor: pointer;
    opacity: .8;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: all;
}

.imageViewer .controls i:hover {
    opacity: 1;
}

.imageViewer .controls i.prevImageViewer {
    left: 25px;
}

.imageViewer .controls i.nextImageViewer {
    right: 25px;
}

.openImageViewer {
    cursor: pointer;
}

.imageViewerOverlay {
    display: none;
}

.imageViewerOverlay > * {
    position: absolute;
    color: white;
}

.imageViewerOverlay i {
    top: 15px;
    right: 15px;
    font-size: 28pt;
    cursor: pointer;
}

.imageViewerOverlay #imageNumber {
    bottom: 15px;
    left: 15px;
    display: flex;
}

.imageViewerOverlay #imageNumber > span {
    display: inline-block;
    margin: 0 5px;
}

/* ----------- Textfields ----------- */
.detailTextField {
    margin-bottom: 15px;
}

/* ----------- Contact ----------- */
.detailContact {
    padding: 8px;
}

.detailContact > *:not(:nth-last-child(1)) {
    display: block;
    margin-bottom: 8px;
}

/* ----------- Image Show ----------- */
.detailImageShow {
    width: 100%;
    text-align: center;
}

.detailImageShow > img {
    object-fit: cover;
    width: 100%;
    max-width: 100%;
    height: 500px;
    max-height: 500px;
}

.detailImageShow .imageSelect img:hover,
.detailImageShow .imageSelect img.selected {
    opacity: 1;
}

/* ----------- Detailinfo ----------- */
.detailInfoWrapper button {
    width: 100%;
}

.detailInfoWrapper > div {
    margin: 20px 0;
}

.detailInfoWrapper > h3 {
    padding: 10px;
}

/* ----------- DetailList ----------- */
.detailList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style-type: none;
    padding: 0;
    grid-gap: 10px;
}

.detailList li {
    background-color: var(--lightgrey);
    padding: 10px;
}

.detailList li b {
    display: block;
    margin-bottom: 3px;
}

/* ----------- Werbung ----------- */
.detailAD > div {
    font-size: 40px;
    font-weight: bolder;
    padding: 15px;
    border: 2px solid grey;
    text-align: center;
}

.detailAD > div:nth-child(1) {
    margin-bottom: 25px;
}

.detailAD button {
    margin-top: 20px;
    width: 100%;
}

/* ---------------------- Über uns ---------------------- */
.aboutGrid {
    grid-template-rows: max-content;
    margin: auto;
    padding: 25px;
    grid-template-columns: repeat(3, calc(100% / 3));
    grid-template-areas: 
        "P1 P2 Chef"
        "P3 P4 Chef"
        "Table Table Chef";
    grid-gap: 40px;
}

.contactBox {
    vertical-align: top;
    display: inline-block;
    background-color: #ececec;
    padding: 1px 15px 15px 15px;
    text-align: left;
    width: 100%;
}

/* ----------- Plattformen ----------- */
.plattformTable {
    grid-area: Table;
    text-align: center;
    grid-gap: 5px;
    width: 75%;
}

.plattformTable a {
    width: 100%;
    height: 100%;
    display: grid;
    padding: 10px;
    border: 2px solid var(--main-blue);
    height: 88px;
}

.plattformTable a:hover {
    color: white;
    background-color: var(--main-blue);
}

.plattformTable img, .plattformTable a span {
    display: block;
    align-self: center;
    justify-self: center;
}

/* ---------------------- Presse ---------------------- */
.presse {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 25px;
    padding: 25px;
}

.presse img {
    object-fit: cover;
    width: 100%;
    max-width: 100%;
    max-height: 250px;
}

.presse span {
    width: 100%;
    padding: 10px;
    background-color: var(--main-blue);
    color: white;
    font-weight: bold;
    display: block;
    text-align: center;
}

/* ---------------------- Galerie ---------------------- */
.galerie > section {
    text-align: center;
}

.galerieGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    margin: auto;
}

.galerieGrid form {
    grid-column: 3/5;
    grid-row: 1/3;
} 

.galerieGrid > div {
    padding-top: 100%;
    position: relative;
    border: 1px solid var(--main-blue);
}

.galerieGrid > div.extended {
    grid-column: auto / span 2;
    padding-top: calc(50% - 4px);
}

.galerieGrid > div.extended img {
    width: 50%;
}

.galerieGrid > div.extended span {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    overflow: auto;
    width: 50%;
    padding: 4px;
}

.galerieGrid > div, .galerieGrid img {
    width: 100%;
}

.galerieGrid > div > span {
    display: none;
}

.galerieGrid img {
    position: absolute;
    height: 100%;
    object-fit: cover;
    object-position: center;
    top: 0;
    cursor: pointer;
}

.galerieGrid > div:not(.extended):hover::before {
    opacity: 1;
}

.galerieGrid > div.info::before {
    content: 'Infos';
}

.galerieGrid > div::before {
    content: 'Vollbildansicht';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 1;
    color: white;
    background-color: #00000080;
    font-weight: bold;
    font-size: 18pt;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

/* ---------------------- Kontakt ---------------------- */
.contactGrid {
    width: 50%;
    margin: auto;
    grid-gap: 25px;
    padding: 25px 0;
    grid-template-areas: "Form Chef";
}

/* ---------------------- AGB ---------------------- */
.agb {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 25px;
    grid-gap: 25px;
}

.agb > .tabLinks {
    margin: 0;
    width: max-content;
    max-width: 100%;
}

.impressum {
    padding: 25px;
}

/* ---------------------- Karriere Content ---------------------- */
section.karriereContent, section.karriereContact {
    display: grid;
    justify-content: center;
    grid-template-rows: max-content;
}

section.karriereContent {
    grid-template-areas: "P1" "P2" "Team" "Angebote" "Profil" "Chef";
}

section.karriereContact {
    grid-template-areas:  "Greet" "Form" "Contact" "Chef";
}

section.karriereContent > * {
    max-width: 100vw;
    padding: 0 5%;
}

/* ---------------------- Responsive ---------------------- */
@media only screen and (max-width: 1600px) {
    .itemList {
        width: 100%;
    }
}

@media only screen and (max-width: 1500px) {
    .aboutGrid {
        grid-template-columns: repeat(2, 50%);
        grid-template-areas: 
            "P1 Chef"
            "P2 Chef"
            "P3 Chef"
            "P4 Chef"
            "Table Table";
    }

    .mainContent {
        width: 80%;
    }

    .detailGrid {
        padding: 25px;
    }
}

@media only screen and (max-width: 1430px) {
    .mainGrid {
        grid-template: 400px auto / 45% 1fr;
    }
}

@media only screen and (max-width: 1336px) {
    .navLabel {
        width: 200px;
    }

    .headerInfo .infoContent {
        min-width: 539px;
    }

    .headerInfo.moveTop .infoContent {
        min-width: 571px;
    }
}

@media only screen and (max-width: 1250px) {
    .threeSteps li, .threeSteps select, .threeSteps input[type="text"], .threeSteps input[type="email"] {
        margin: 5px;
        height: 50px;
        width: 150px;
    }
}

@media only screen and (max-width: 1220px) {
    footer .footerContent {
        grid-column-gap: 250px;
    }

    .itemList {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 1176px) {
    .navLabel {
        width: 150px;
    }

    .headerInfo .infoContent {
        min-width: 439px;
    }

    .headerInfo.moveTop .infoContent {
        min-width: 472px;
    }

    .detailGrid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: 
            "slider slider"
            "info info"
            "contact ad";
    }

    .detailGrid.noSlider {
        grid-template-areas: 
        "info info"
        "contact ad";
    }

    .detailGrid > .largeField {
        grid-column: 1/3;
    }

    .mainContent {
        width: 90%;
    }

    .presse {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 1070px) {
    .galerieGrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .galerieGrid form {
        grid-column: 2/4;
    }

    .agb {
        grid-template-columns: 100%;
    }

    .mainGrid {
        grid-template: 350px auto / 50% 1fr;
    }
}

@media only screen and (max-width: 1000px) {
    footer .footerContent {
        grid-column-gap: 150px;
    }

    .mainGrid {
        grid-template: 470px auto / 100%;
    }

    .mainGrid > .largeField {
        grid-column: 1/2;
    }

    .slider.mainSlider {
        min-height: 500px;
    }
}

@media only screen and (max-width: 976px) {
    .navLabel {
        width: 130px;
        font-size: 11pt;
    }

    .headerInfo .infoContent {
        min-width: 400px;
        font-size: 11pt;
    }

    .headerInfo.moveTop .infoContent {
        min-width: 432px;
    }

    .mainContent {
        width: 95%;
        grid-template-columns: 100%;
    }

    .greetContact {
        margin: 15px 0;
    }

    .polygonBlockList {
        width: 35%;
    }

    .aboutGrid {
        grid-template-columns: 100%;
        grid-template-areas: "P1" "P3" "P4" "P2" "Chef" "Table";
    }

    .contactGrid {
        grid-template-areas: "Chef" "Form";
    }
}

@media only screen and (max-width: 896px) {
    .itemList {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobileLogo img {
        width: 90px;
    }

    .mobileLogo > div:nth-child(1) {
        display: flex;
        align-items: center;
    }

    .headerInfo .infoContent {
        min-width: fit-content;
        min-width: -moz-fit-content;
    }

    .headerInfo {
        border-top: 0;
        text-align: right;
    }

    .headerInfo .infoContent div div {
        display: flex;
        flex-flow: column;
    }

    .headerInfo .headLine,
    .headerInfo .diagonalBorder,
    nav.mainNav {
        display: none;
    }

    .mobileLogo {
        display: inline-flex;
    }

    header {
        background-color: var(--main-blue);
        display: flex;
        pointer-events: all;
    }

    .hamburger {
        display: inline-block;
    }

    .headerContainer {
        display: flex;
        align-items: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 15px;
        border: 0;
    }

    /* -------- Blue bar -------- */
    .bluebar {
        background-color: var(--main-blue);
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 140vw;
        transform-origin: center;
        color: white;
        display: flex;
        justify-content: center;
    }

    .bluebar.tiltLeft {
        transform: translateX(-50%) rotate(-5deg);
    }

    .bluebar.tiltLeft > * {
        transform: rotate(5deg);
        padding: 36px 0 12px 0;
    }

    .bluebar.tiltRight {
        transform: translateX(-50%) rotate(5deg);
        margin-bottom: 10px;
    }

    .bluebar.tiltRight > * {
        transform: rotate(-5deg);
        padding: 12px 0 36px 0;
        max-width: 100vw;
    }

    .bluebar .addInfo {
        color: black;
        background-color: white;
        padding: 7px;
    }

    .bluebar .contentWrapper {
        margin-bottom: 35px;
        max-width: 100vw;
        padding-left: 7px;
        padding-right: 7px;
    }

    /* -------- Blocklists Mobile -------- */
    .bluebar .contentBlockList, .bluebar .contentBlockList2 {
        text-align: center;
        display: grid;
        grid-template-columns: repeat(2, 50%);
        justify-content: center;
        padding: 7px;
        grid-gap: 7px;
        margin: auto;
        color: white;
        width: 100vw;
    }

    .bluebar .contentBlockList2 {
        padding: 35px 7px 55px 7px;
    }

    .bluebar .contentBlockList h3, .bluebar .contentBlockList2 h3 {
        padding-bottom: 7px;
        grid-column: 1/3;
    }

    .bluebar .contentBlockList li, .bluebar .contentBlockList2 li {
        display: inline-block;
        color: black;
        background-color: white;
        height: 100%;
        margin: 0;
    }

    .bluebar .contentBlockList li:nth-last-child(1):nth-child(even),
    .bluebar .contentBlockList2 li:nth-last-child(1):nth-child(even) {
        grid-column: 1 / span 2;
        width: 50%;
        justify-self: center;
    }

    /* Polygon */
    .bluebar.tiltLeft .polygonBlockList {
        transform: translateX(-5%) rotate(50deg);
    }

    .bluebar .polygonBlockList li {
        background-color: white;
    }

    .bluebar .polygonBlockList li span {
        color: black;
    }

    .bluebar .polygonBlockList {
        margin: 6% auto 8% auto;
        width: 25%;
        padding: 0;
    }

    /* -------- Karriere Content -------- */
    section.karriereContent {
        grid-template-areas: "P1" "Team" "P2" "Profil" "Angebote" "Chef";
    }

    section.karriereContact {
        grid-template-areas: "Greet" "Contact" "Form" "Chef";
    }
}

@media only screen and (max-width: 880px) {
    .stepData {
        width: 95%;
    }
}

@media only screen and (max-width: 850px) {
    .presse {
        grid-template-columns: repeat(2, 1fr);
    }

    .detailGrid {
        grid-template-columns: 1fr;
        grid-template-areas: "slider" "info" "contact" "ad";
    }

    .detailGrid.noSlider {
        grid-template-areas: "info" "contact" "ad";
    }

    .detailGrid > .largeField {
        grid-column: 1/2;
    }

    .detailImageShow > img {
        max-height: 400px;
        height: 400px;
    }

    .slider.compact {
        height: 100px;
    }

    .imageViewer .controls {
        bottom: 0;
    }

    .imageViewer .controls i {
        top: unset;
        transform: unset;
        bottom: 25px;
    }

    .tabLinks {
        width: 75%;
    }

    .detailList {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 800px) {
    footer .footerContent {
        grid-column-gap: 100px;
    }
}

@media only screen and (max-height: 765px) {
    .threeSteps {
        height: 70vh;
    }
}

@media only screen and (max-width: 750px) {
    .plattformTable {
        width: 100%;
        grid-template-columns: repeat(2, 50%);
    }

    .plattformTable img {
        display: none;
    }

    .galerieGrid {
        grid-template-columns: repeat(2, 50%);
    }

    .galerieGrid form {
        grid-column: 1/3;
    }
}

@media only screen and (max-width: 700px) {
    .threeSteps {
        height: 70vh;
    }

    footer .footerContent {
        grid-template-columns: 100%;
        grid-row-gap: 15px;
        margin: 0;
        height: auto;
    }

    .itemList {
        grid-template-columns: 100%;
    }
}

@media only screen and (max-width: 650px) {
    .detailImageShow > img {
        max-height: 300px;
        height: 300px;
    }

    .slider.compact {
        height: 80px;
    }

    .polygonBlockList {
        width: 45%;
    }

    .detailList {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 600px) {
    .stepData ul {
        grid-template-columns: 1fr 1fr;
    }

    .presse {
        grid-template-columns: 100%;
    }

    .bluebar .polygonBlockList {
        margin: 8% auto 10% auto;
        width: 30%;
    }

    .searchWrapper {
        grid-template-columns: 100%;
        grid-template-rows: auto auto 1fr auto 1fr;
        grid-template-areas: "Search" "HL1" "C1" "HL2" "C2";
    }

    .search {
        width: 100%;
    }

    .searchWrapper > .largeField {
        grid-column: auto;
    }

    .mainGrid {
        grid-template-rows: 835px auto;
    }

    .slider.mainSlider {
        display: none;
    }
}

@media only screen and (max-width: 500px) {
    .plattformTable {
        grid-template-columns: 100%;
    }

    .form input {
        width: 100%;
    }

    .fileUpload > span {
        width:100%
        flex-flow: column;
        padding: 7px 0 0 0;
    }

    .fileUpload > span > input {
        width: 100%;
        margin: 7px 0 0 0;
    }

    .tabLinks {
        width: 100%;
    }

    .bluebar .polygonBlockList {
        margin: 10% auto 12% auto;
        width: 35%;
    }
}

@media only screen and (max-width: 480px) {
    .galerieGrid {
        grid-template-columns: 100%;
    }

    .galerieGrid form {
        grid-column: auto;
    }
    
    .iconContainer img {
        width: 95px;
        height: 95px;
    }

    .detailGrid .form input {
        width: 100%;
    }

    .detailGrid .form {
        grid-template-columns: 100%;
    }

    .detailGrid .form .largeField {
        grid-column: 1/2;
    }

    .detailImageShow > img {
        max-height: 200px;
        height: 200px;
    }

    .slider.compact {
        height: 60px;
    }

    .slider.compact .controls > span {
        padding: 0 8px;
    }

    .iconShow.threeQuarters {
        grid-template-columns: repeat(2, 50%);
    } 
}


@media only screen and (max-width: 460px) {
    .detailList {
        grid-template-columns: 100%;
        grid-gap: 0;
    }

    .detailList li:nth-child(even) {
        background-color: transparent;
    }
}

@media only screen and (max-width: 400px) {
    .detailImageShow > img {
        max-height: 150px;
        height: 150px;
    }

    .iconContainer img {
        width: 75px;
        height: 75px;
    }

    .greetContact .twoQuarters {
        padding: 0;
    }

    .bluebar .polygonBlockList {
        margin: 12% auto 14% auto;
        width: 40%;
    }

    .stepData ul {
        grid-template-columns: 100%;
    }
}

@media only screen and (max-width: 369px) {
    .mobileLogo img {
        width: 90px;
    }

    .mobileLogo > div:nth-child(1) {
        display: flex;
        align-items: center;
    }
}

@media only screen and (max-width: 350px) {
    .stepData .range [type="range"] {
        width: 150px;
    }
}