html {
    scroll-behavior: smooth;
    scroll-padding-top: 300px;
}

.w3-padding-8 {
    padding: 8px;
}

/** Page Builder **/

.page_builder_single_headline h1,
.page_builder_single_headline h2,
.page_builder_single_headline h3,
.page_builder_single_headline h4,
.page_builder_single_headline h5,
.page_builder_single_headline h6 {
    padding-left: 0;
    padding-right: 0;
}

body.page-company .page_builder_single_headline h3 {
    padding: 4px 8px;
}

.page_builder_single_headline h1.headline-brochure,
.page_builder_single_headline h2.headline-brochure,
.page_builder_single_headline h3.headline-brochure,
.page_builder_single_headline h4.headline-brochure,
.page_builder_single_headline h5.headline-brochure,
.page_builder_single_headline h6.headline-brochure {
    color: #003063;
    position: relative;
    width: fit-content;
    margin: 0 auto;
    padding-bottom: 15px;
    margin-bottom: 45px;
}

.page_builder_single_headline h1.headline-brochure:after,
.page_builder_single_headline h2.headline-brochure:after,
.page_builder_single_headline h3.headline-brochure:after,
.page_builder_single_headline h4.headline-brochure:after,
.page_builder_single_headline h5.headline-brochure:after,
.page_builder_single_headline h6.headline-brochure:before {
    content: "";
    position: absolute;
    left: 25%;
    bottom: 8px;
    height: 1px;
    width: 50%;
    border-bottom: 3px solid #cc0502;
}

.page-builder-wrapper p {
    margin: 0 0 10px 0;
}
.page-builder-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.page-builder-img-wrapper,
.page-builder-img-source-wrapper {
    position: relative;
}
.page-builder-img-source-wrapper {
    height: 100%;
}
.page-builder-img-wrapper .page-builder-img-source-wrapper .page-builder-img-label {
    position: absolute;
    bottom: 10%;
    text-align: center;
    padding: 5px;
    border: 1px solid white;
    border-left: none;
    color: #fff;
    background-color: #cc0502;
}
.page-builder-img-wrapper .page-builder-img-description {
    width: 100%;
    padding: 8px 16px;
    text-align: right;
}
.page-builder-img-wrapper .page-builder-img-description-parallax {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: white;
    box-shadow: inset 0 0 4px #000000;
    padding: 8px 16px;
    text-align: right;
}
.page-builder-wrapper .w3-display-right {
    right: -32px;
}
.page-builder-wrapper .w3-display-left {
    left: -32px;
}

/** Animated down chevron **/
.chevron {
    position: absolute;
    left: 50%;
    width: 2.1em;
    height: 0.48em;
    opacity: 0;
    transform: scale(0.3);
    animation: move-chevron 3s ease-out infinite;
}

.chevron:first-child {
    animation: move-chevron 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
    animation: move-chevron 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background: #cc0502;
}

.chevron:before {
    left: 0;
    transform: skewY(30deg);
}

.chevron:after {
    right: 0;
    width: 50%;
    transform: skewY(-30deg);
}

@keyframes move-chevron {
    25% {
        opacity: 1;
    }
    33.3% {
        opacity: 1;
        transform: translateY(2.28em);
    }
    66.6% {
        opacity: 1;
        transform: translateY(3.12em);
    }
    100% {
        opacity: 0;
        transform: translateY(4.8em) scale(0.5);
    }
}

/* Page Builder Horizontal Scroller */
.pb-horizontal-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    /* grid-gap: 16px; */
    margin-bottom: 20px;
    padding: 8px 8px 20px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}
.pb-horizontal-scroller.pb-no-overflow {
    overflow: initial;
    grid-auto-flow: unset;
    grid-row-gap: 16px;
}
.pb-snaps-inline {
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 8px;
}
.pb-snaps-inline > * {
    scroll-snap-align: start;
}
@media (min-width: 600px) {
    .w3-fourfifth .pb-horizontal-scroller.pb-no-overflow,
    .w3-threequarter .pb-horizontal-scroller.pb-no-overflow,
    .w3-twothird .pb-horizontal-scroller.pb-no-overflow,
    .w3-half .pb-horizontal-scroller.pb-no-overflow {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
    }
    .w3-fourfifth .pb-horizontal-scroller {
        grid-auto-columns: 100%;
    }
    .w3-threequarter .pb-horizontal-scroller {
        grid-auto-columns: 33%;
    }
    .w3-twothird .pb-horizontal-scroller {
        grid-auto-columns: 66%;
    }
    .w3-half .pb-horizontal-scroller {
        grid-auto-columns: 50%;
    }
    .w3-fourfifth .pb-horizontal-scroller[data-elems-count="1"],
    .w3-threequarter .pb-horizontal-scroller[data-elems-count="1"],
    .w3-twothird .pb-horizontal-scroller[data-elems-count="1"],
    .w3-half .pb-horizontal-scroller[data-elems-count="1"],
    .w3-fourfifth .pb-horizontal-scroller[data-landscape="true"],
    .w3-threequarter .pb-horizontal-scroller[data-landscape="true"],
    .w3-twothird .pb-horizontal-scroller[data-landscape="true"],
    .w3-half .pb-horizontal-scroller[data-landscape="true"] {
        grid-auto-columns: 100%;
    }
    .w3-fourfifth .pb-horizontal-scroller.pb-no-overflow[data-elems-count="1"],
    .w3-threequarter .pb-horizontal-scroller.pb-no-overflow[data-elems-count="1"],
    .w3-twothird .pb-horizontal-scroller.pb-no-overflow[data-elems-count="1"],
    .w3-half .pb-horizontal-scroller.pb-no-overflow[data-elems-count="1"] {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    .w3-full .pb-horizontal-scroller,
    .w3-full .pb-horizontal-scroller[data-elems-count="1"],
    .w3-full .pb-horizontal-scroller[data-landscape="true"] {
        grid-auto-columns: 100%;
    }
    .w3-full .pb-horizontal-scroller[data-elems-count="2"] {
        grid-auto-columns: 50%;
    }
    .w3-full .pb-horizontal-scroller[data-elems-count="3"] {
        grid-auto-columns: 33%;
    }
    .w3-full .pb-horizontal-scroller[data-elems-count="4"] {
        grid-auto-columns: 25%;
    }
    .w3-full .pb-horizontal-scroller.pb-no-overflow[data-elems-count="1"] {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
    }
    .w3-full .pb-horizontal-scroller[data-elems-per-group="2"] {
        grid-auto-columns: 50%;
    }
    .w3-full .pb-horizontal-scroller.pb-no-overflow[data-elems-per-group="2"] {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
    }
    .w3-full .pb-horizontal-scroller[data-elems-per-group="3"] {
        grid-auto-columns: 33%;
    }
    .w3-full .pb-horizontal-scroller.pb-no-overflow[data-elems-per-group="3"] {
        grid-template-columns: repeat(auto-fill, minmax(33%, 1fr));
    }
    .w3-full .pb-horizontal-scroller[data-elems-per-group="4"] {
        grid-auto-columns: 25%;
    }
    .w3-full .pb-horizontal-scroller.pb-no-overflow[data-elems-per-group="4"] {
        grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
    }
    .pb-horizontal-scroller {
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding: 8px 8px 8px 8px;
    }
    .pb-horizontal-scroller::-webkit-scrollbar {
        display: none;
    }
}
/* Page Builder Card */
.pb-pr-item {
    height: 100%;
    min-height: 250px;
    margin: 0 8px;
}
.pb-pr-item.ad {
    min-height: 300px;
}
.pb-pr-item.simple {
    min-height: auto;
}
.pb-card {
    display: flex;
    flex-direction: column;
    min-height: 350px;
    height: 100%;
    position: relative;
    top: 0;
}
.pb-pr-item.simple .pb-card {
    min-height: auto;
}
.pb-pr-item.pb-item-landscape {
    min-height: 305px;
}
.pb-pr-item.pb-item-landscape .pb-card {
    flex-direction: row;
    min-height: 305px;
}
.pb-card-thumb {
    padding-bottom: 60%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.pb-pr-item.ad .pb-card-thumb,
.pb-pr-item.simple .pb-card-thumb {
    background-size: contain;
}
.pb-card article {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pb-pr-item.pb-item-landscape .pb-card article {
    justify-content: inherit;
    border-left: 1px solid #ccc;
}
.pb-card-label {
    position: absolute;
    bottom: 15%;
    left: 0;
    text-align: center;
    padding: 5px;
    border: 1px solid white;
    border-left: none;
}
.pb-card h1 {
    font-size: 20px;
    margin: 0;
    color: #333;
}
.pb-card span {
    font-size: 12px;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 2em 0 0 0;
}
/* Page Builder Tabs / Accordion */
.pb-accordion {
}
.pb-accordion h2 {
    text-align: left;
    font-size: 1em;
    font-weight: normal;
    margin: 0 0 1px 0;
    padding: 0;
}
.pb-accordion h2 button {
    background: #a8a8a8;
    border: none;
    font-size: 1.2em;
    color: white; /*#cc0502;*/
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
}
.pb-accordion h2 button[aria-expanded="false"] {
    background: #666;
    color: white;
}
.pb-tabs {
}
.pb-tabs ul {
    display: flex;
    flex-wrap: nowrap;
}
.pb-tabs li {
    display: flex;
    list-style: none;
    width: 100%;
    padding: 0px 8px;
}
.pb-tabs ul li button {
    background: none;
    border: none;
    font-size: 14px;
    color: #cc0502;
    cursor: pointer;
    width: 100%;
    text-align: center;
    padding: 16px;
    background-color: #444;
    color: white;
    border-top: 1px solid rgb(0 0 0 / 12%);
    border-right: 1px solid rgb(0 0 0 / 12%);
    border-left: 1px solid rgb(0 0 0 / 12%);
    margin-bottom: 8px;
}
.pb-tabs ul li button[aria-selected="true"] {
    background-color: white;
    color: #cc0502;
    margin-bottom: 0px;
    padding: 0px 8px 8px 8px;
    /* box-shadow: 0 0 2px 0 rgb(0 0 0 / 16%), 0 0 5px 0 rgb(0 0 0 / 12%); */
}
/* Page Builder Selector */
.pb-selector-list input {
    border: solid 1px #ccc;
    border-radius: 5px;
    padding: 7px 14px;
    margin-bottom: 10px;
}
.pb-selector-list input:focus {
    outline: none;
    border-color: #aaa;
}
.pb-selector-list .sort {
    padding: 8px 0;
    border: none;
    display: inline-block;
    text-decoration: none;
    height: 40px;
    cursor: pointer;
    background-color: transparent;
}
.pb-selector-list .sort:hover {
    text-decoration: none;
    background-color: #f2f2f2;
}
.pb-selector-list .sort:focus {
    outline: none;
}
.pb-selector-list .sort:after {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid transparent;
    content: "";
    position: relative;
    top: -10px;
    right: -5px;
}
.pb-selector-list .sort.desc:after {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    content: "";
    position: relative;
    top: 4px;
    right: -5px;
}
.pb-selector-list .sort.asc:after {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #333;
    content: "";
    position: relative;
    top: -4px;
    right: -5px;
}
.pb-selector-list ul.pagination li {
    display: inline-block;
    list-style: none;
    padding: 0 8px;
}
.pb-selector-list ul.pagination li.active a {
    color: #333;
}
ul.pb-selector-list-multi {
    padding: 0;
    margin: 0;
}
ul.pb-selector-list-multi li {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}
/* Timeline */

/* The actual timeline (the vertical ruler) */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    background-color: #eee;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.tl-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.tl-container::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: white;
    border: 4px solid #cc0502;
    top: 18px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.tl-left {
    left: 0;
}

/* Place the container to the right */
.tl-right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.tl-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #eee;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #eee;
}

/* Add arrows to the right container (pointing left) */
.tl-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #eee;
    border-width: 10px 10px 10px 0;
    border-color: transparent #eee transparent transparent;
}

/* Fix the circle for containers on the right side */
.tl-right::after {
    left: -16px;
}

/* The actual content */
.tl-content {
    padding: 20px 30px;
    background-color: #eee;
    position: relative;
    border-radius: 6px;
}

.tl-content h3 {
    text-align: left;
    margin-top: 0;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
    .quarter {
        flex: 0 1 100% !important;
    }
    /* Place the timelime to the left */
    .timeline::after {
        left: 31px;
    }

    /* Full-width containers */
    .tl-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .tl-container::before {
        left: 60px;
        border: medium solid #eee;
        border-width: 10px 10px 10px 0;
        border-color: transparent #eee transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .tl-left::after,
    .tl-right::after {
        left: 18px;
    }

    /* Make all right containers behave like the left ones */
    .tl-right {
        left: 0%;
    }
}

.flex-eq {
    display: flex;
}

@media (max-width: 1023px) {
    .flex-eq {
        display: block;
    }
}

/** Eventdata  */
table.pb-event-data th {
    white-space: nowrap;
}
table.pb-event-data tr,
table.pb-event-data tr td {
    border-top: 1px solid #ccc;
    border-bottom: 0;
}
table.pb-event-data td,
.pb-selector-list table.pb-event-data td {
    padding: 16px;
}
table.pb-event-data td:first-child {
    width: 33%;
    font-weight: bold;
}
.pb-selector-list table.pb-event-data td:first-child {
    width: auto;
    font-weight: normal;
}
table.pb-event-data ul.pb-selector-list-multi li {
    padding: 0;
}

.videoimg {
    container-type: inline-size;
}

.video-preview-text {
    /*
    font-size: 12px;
    line-height: 16px;
    width: calc(100% - 16px);
    max-height: 576px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #173152;
    opacity: .7;
    color: white;
    margin: 0 8px;
    padding: 20px;
    transition: all 0.5s;
    */

    font-size: 24px;
    height: 100%;
    background-color: rgba(23, 49, 82, 0.7);
    color: white;
    margin: 0 8px;
    transition: all 0.5s;
    width: 100%;
    top: 0;
    position: absolute;
    left: -8px;
    font-family: Oswald;
    line-height: 32px;
    padding: 50px;
}

.video-preview-text a,
.video-preview-text a:link,
.video-preview-text a:visited {
    color: white;
    text-decoration: underline;
}

.video-preview-text a:hover {
    text-decoration: none;
}

@media (max-width: 1023px) {
    .video-preview-text {
        font-size: 14px;
        line-height: 18px;
        padding: 16px;
        top: 5%;
        left: 5%;
        width: 90%;
        height: 90%;
    }
    .video-preview-text img {
        transform: scale(0.5);
        margin-top: -25px;
    }
}

@container (max-width: 600px) {
    .video-preview-text {
        padding: 16px 5px;
        font-size: 14px;
        line-height: 18px;
    }
    .video-preview-text img {
        width: 130px;
    }
}
