    /**************************************
    * Overwrite out of app context styles *
    **************************************/

    /* Remove white border below hero image. */

body.landing .if6_openerstage {
    margin-bottom: 0;
}

/* Improve red boxes below app. */

.to-new.cbox.cbox-imagetext .image-wrapper {
    padding-right: 0 !important;
    margin-bottom: 1.25rem !important;
}

.to-new.cbox.cbox-imagetext .image-wrapper.right-aligned {
    margin-left: -1.25rem !important;
    margin-right: -1.25rem !important;
}

@media (min-width: 568px) {
    .to-new.cbox.cbox-imagetext .image-wrapper {
        margin-bottom: -1.25rem !important;
    }

    .to-new.cbox.cbox-imagetext .image-wrapper:not(.right-aligned) {
        margin-right: -0.5625rem !important;
    }

    .to-new.cbox.cbox-imagetext .image-wrapper.right-aligned {
        margin-left: -0.5625rem !important;
    }
}

.to-new .accordionate input[type="checkbox"] {
    z-index: 3;
    top: -1.25rem;
    left: -1.25rem;
    height: calc(100% + 2.75rem);
    width: calc(100% + 1.25rem);
}

.to-new.cbox.cbox-product .inner-content {
    padding-bottom: 1.25rem;
}

@media (min-width: 568px) {
    .to-new.cbox.cbox-product .inner-content {
        padding-left: 0.5rem !important;
    }
}

.to-new.cbox.cbox-product .col-sm-6:first-child .inner-content {
    padding-left: 0 !important;
}

.to-new .accordionate .more-link,
.to-fancy-box .more-link {
    display: inline-flex !important;
    position: relative;
    font-weight: bold;
    padding: 0 2rem 0 0 !important;
    margin: 2rem 0 2rem !important;
}

.to-new .accordionate input[type="checkbox"]:not(:checked) ~ .inner-content .more-link {
    display: none !important;
}

.to-new .accordionate p:last-child .more-link,
.to-new .accordionate div.more-link:last-child {
    margin-bottom: 0 !important;
}

.to-new .accordionate .more-link:hover,
.to-fancy-box .more-link:hover {
    text-decoration: underline;
}

.to-new .accordionate .more-link i,
.to-fancy-box .more-link i {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    border: 1px solid white;
    border-radius: 50%;
    height: 1.5rem;
    width: 1.5rem;
    display: block;
}

.to-new .accordionate .more .more-link i {
    border-color: #000;
}

.to-new .accordionate .more .more-link i,
.to-fancy-box .more-link i {
    transform: translateY(-50%) rotate(90deg);
}

.to-new .accordionate .more-link i:before,
.to-fancy-box .more-link i:before,
.to-new .accordionate .more-link i:after,
.to-fancy-box .more-link i:after {
    left: 0.5625rem;
    top: 0.4375rem;
    content: "";
    position: absolute;
    background-color: #ffffff;
    width: 3px;
    height: 9px;
}

.to-new .accordionate .more .more-link i:before,
.to-new .accordionate .more .more-link i:after {
    background-color: #000;
}

.to-new .accordionate .more-link i:before,
.to-fancy-box .more-link i:before {
    transform: translate(-2px, 0) rotate(45deg);
}

.to-new .accordionate .more-link i:after,
.to-fancy-box .more-link i:after {
    transform: translate(2px, 0) rotate(-45deg);
}

.to-new .accordionate .more {
    background-color: #fff;
    border-bottom: 10px solid #fe0000;
    margin-bottom: -20px;
    padding: 2rem 1.25rem 1rem;
    position: relative;
    z-index: 2;
}

.to-new .accordionate .more * {
    color: #000 !important;
}

.to-new .accordionate .more:before {
    display: none;
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    width: 0;
    height: 0;
    border-left: 1.25rem solid transparent;
    border-right: 1.25rem solid transparent;
    border-top: 1.25rem solid #f00;
}

.to-new .accordionate .more:after {
    content: '';
    position: absolute;
    right: .75rem;
    top: .75rem;
    height: 24px;
    width: 24px;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iI2ZmMDAwMCIgY2xhc3M9InctNiBoLTYiPgogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTYgMThMMTggNk02IDZsMTIgMTIiIC8+Cjwvc3ZnPgo=);
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    color: #fe0000;
}

.to-new .accordionate input[type="checkbox"]:checked ~ .more {
    padding-top: 0;
    padding-bottom: 0;
}

.to-new .accordionate:first-child .more {
    margin-right: -1.25rem;
    margin-left: -1.25rem;
}

.to-new .accordionate:last-child .more {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
}

@media (min-width: 568px) {
    .to-new .accordionate:first-child .more {
        margin-right: -0.6875rem;
        margin-left: -1.25rem;
    }

    .to-new .accordionate:last-child .more {
        margin-left: -0.6875rem;
        margin-right: -1.25rem;
    }
}

@media (max-width: 567px) {
    .to-new .accordionate,
    .to-new .to-invert-order {
        order: 2;
    }
}

/* Improve awards section */

div.ccm-page .awards {
    padding-left: 0;
    padding-right: 0;
}

div.ccm-page .awards .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

div.ccm-page .awards .flex > div {
    flex-basis: 320px;
    padding: 1rem;
}

/*******************
* Begin app styles *
*******************/

/* Setup variables and container */

#finanzportal_jobboerse {
    position: relative;
    z-index: 100;

    --to-app-white: #ffffff;
    --to-app-red: #fe0000;
}

#finanzportal_jobboerse .container.container--app {
    max-width: 1140px !important;
    margin: 0 auto;
}

/* Handle loading state */

#jobs {
    opacity: 0;
    transition: opacity .5s .4s ease-out, margin .5s .4s ease-out;
    padding: 0 1rem;
    transform: translateY(1rem);
}

#jobs.to-app {
    opacity: 1;
    margin-top: -4rem;
}

/* Limit app width, except red box */

.to-app .to-app__search ~ *:not([class*='fullscreen']) {
    max-width: 936px;
}

/* Home mode state */

.to-app:not(.is-home-mode) .to-app__title,
.to-app:not(.is-home-mode) .to-app__chips,
.to-app.is-home-mode .to-app__filter-results,
.to-app.is-home-mode .to-app__listing,
.to-app.is-home-mode .result-information,
.to-app.is-home-mode .load-more {
    display: none;
}

.to-app.force-show-elements .result-information,
.to-app.force-show-elements .load-more {
    display: block;
}

/* Define app variables */

.to-app {
    font-size: 16px;
    margin-bottom: 2rem;

    --scale-space: 1;
    --scale-fonts: 1;
}

@media (max-width: 767px) {
    .to-app {
        --scale-space: .5;
        --scale-fonts: .675;
    }
}

/* Search box (red) */

.to-app__search {
    background-color: var(--to-app-red);
    color: var(--to-app-white);
    margin-bottom: calc(2rem * var(--scale-space));
    padding: calc(1.5rem * var(--scale-space)) 0;
    border-radius: 0.625rem;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .16);
    z-index: 100000;
}

.to-app__search > * {
    padding: 0 calc(1.5rem * var(--scale-space));
    background-color: var(--to-app-red);
    color: var(--to-app-white);
}

/* App title */

.to-app__title {
    font-size: calc(1.7rem * var(--scale-fonts));
    margin-bottom: 2rem;
    line-height: 1.1;
    font-family: "Sparkasse Head";
}

/* Search Form */

.to-app__form label {
    color: var(--to-app-white);
    margin-bottom: .25rem;
    line-height: 1;
}

.to-app__form input {
    border: 0;
    height: 45px;
    padding: 0 1rem;
    box-shadow: none;
    border-radius: 0.5rem;
    transition: box-shadow .2s;
}

.to-app__form input:hover {
    box-shadow: inset 0 3px 6px 0 rgba(0, 0, 0, .2);
}

.to-app__form input:active,
.to-app__form input:focus {
    box-shadow: inset 0 3px 6px 0 rgba(0, 0, 0, .4);
}

.to-app__form svg {
    display: none;
}

.to-app__form input::placeholder {
    font-style: normal;
    opacity: .5;
}

.to-app__form button {
    height: 3.125rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    border: 2px solid var(--to-app-white);
    color: var(--to-app-white);
    background-color: var(--to-app-red);
    transition: all .2s;
    opacity: 1 !important;
}

.to-app__form button:hover {
    background-color: var(--to-app-white);
    border-color: var(--to-app-red);
    color: var(--to-app-red);
}

/* Autosuggest dropdown */

.to-app__form ul {
    top: 4.375rem !important;
}

@media (max-width: 767px) {
    .to-app__form ul {
        top: 4rem !important;
    }

    .to-app__form .job-search__autosuggest {
        padding-right: 0;
    }
}

/* Category chips */

.to-app__chips {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0 calc(1rem * var(--scale-space));
    max-width: 64rem;
}

.to-app__chip {
    height: 1.75rem;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0 .75rem;
    background: var(--to-app-white);
    margin: .25rem;
    border-radius: 1.75rem;
    font-size: 16px;
    border: 1px solid var(--to-app-white);
    background-color: var(--to-app-white);
    color: var(--to-app-red)!important;
    transition: all .2s;
}

.to-app__chip:hover {
    background-color: var(--to-app-red);
    border-color: var(--to-app-white);
    color: var(--to-app-white)!important;
}

/* Latest job link */

.to-app__latest-link {
    text-align: center;
    display: none;
    color: var(--to-app-white) !important;
    font-weight: 300;
    font-size: 0.875rem;
    margin-inline: 20px;
    padding: 20px;
    border-radius: 8px;
    border: 1px #fff solid;
}

.to-app.is-home-mode .to-app__latest-link {
    display: block;
}

/* Back and filter actions */

.to-app__actions {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.to-app__action {
    text-align: center;
    display: block;
    color: var(--to-app-white);
    margin: 0 .5rem;
    border: 1px #fff solid;
    border-radius: 90px;
    padding: 8px 25px;
    text-decoration: none !important;
}

.to-app__action:hover {
    color: var(--to-app-white) !important;
}

.to-app:not(.is-home-mode) .to-app__back {
    order: 2;
}

/* Listing filter & Load more */

.to-app__filter-results[style="display: block;"] {
    display: flex !important;
}

.to-app__filter-results .dropdown {
    border: none;
}

.to-app__filter-results select {
    height: 38.5px;
    border: 1px solid var(--to-app-red);
}

.to-app__filter-results select + span {
    height: 38.5px !important;
}

.to-app__filter-results button,
.to-app button.load-more {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--to-app-red);
    color: var(--to-app-red);
    background-color: var(--to-app-white);
    box-shadow: none !important;
    transition: all .2s;
    border-radius: 90px;
}

.to-app__filter-results button:hover,
.to-app button.load-more:hover {
    border-color: var(--to-app-red);
    color: var(--to-app-white);
    background-color: var(--to-app-red);
}

/* CMS box styles */

div.ccm-page .cbox-newstyle .image {
    margin-bottom: 0 !important;
}

div.ccm-page .cbox-newstyle h2 {
    color: var(--to-app-white);
    background: var(--to-app-red);
    padding: .5rem;
    display: inline-block;
    font-weight: 400;
    font-size: 1.25rem;
    transform: translateY(-50%);
}

div.ccm-page .cbox-newstyle .textbutton,
div.ccm-page .to-fancy-box .textbutton {
    height: 1.75rem;
    display: inline-flex;
    text-align: left;
    justify-content: flex-start;
    align-items: center;
    padding: 0 .75rem;
    background: var(--to-app-white);
    margin: .25rem;
    border-radius: 1.75rem;
    font-size: 0.875rem;
    border: 2px solid var(--to-app-red);
    background-color: var(--to-app-white);
    color: var(--to-app-red);
    transition: all .2s;
}

div.ccm-page .cbox-newstyle .textbutton:hover,
div.ccm-page .to-fancy-box .textbutton:hover {
    background-color: #fe0000;
    color: #ffffff;
}

div.ccm-page .cbox-newstyle .textbutton > span:after,
div.ccm-page .to-fancy-box .textbutton > span:after {
    display: none !important;
}

/********************
* Begin new modules *
********************/

/* Add new fancy box styles (full-width element)  */

div.ccm-page .to-fancy-box {
    background-color: #fe0000;
    color: #fff;
    position: relative;
    margin: 0 0 20px 0;
}

div.ccm-page .to-fancy-box__wrapper {
    position: relative;
    max-width: 88rem;
    margin: 0 auto;
}

div.ccm-page .to-fancy-box p,
div.ccm-page .to-fancy-box h1,
div.ccm-page .to-fancy-box h2 {
    color: #fff;
}

div.ccm-page .to-fancy-box h1,
div.ccm-page .to-fancy-box h2 {
    font-size: 2.5rem;
}

@media (max-width: 1023px) {
    div.ccm-page .to-fancy-box h1,
    div.ccm-page .to-fancy-box h2 {
        font-size: 1.25rem;
    }
}

div.ccm-page .to-fancy-box__content {
    padding: 4rem;
    max-width: 27.5rem;
    width: 33%;
}

@media (max-width: 1023px) {
    div.ccm-page .to-fancy-box__content {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    div.ccm-page .to-fancy-box__content {
        width: 100%;
        padding: 1rem;
        max-width: none;
    }
}

div.ccm-page .to-fancy-box__content b,
div.ccm-page .to-fancy-box__content strong {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 8px;
    display: inline-block;
}

div.ccm-page .to-fancy-box__content a:hover {
    color: #fff;
}

div.ccm-page .to-fancy-box__content p:last-child {
    margin-bottom: 0;
}

div.ccm-page .to-fancy-box__content .more-link {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

div.ccm-page .to-fancy-box__image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 767px) {
    div.ccm-page .to-fancy-box__image {
        width: 100%;
        position: relative;
        right: auto;
        top: auto;
        aspect-ratio: 10/4;
    }
}

div.ccm-page .to-fancy-box__image img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: left top;
}

div.ccm-page .to-fancy-box__white {
    background-color: #fff;
    color: #000;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 18rem;
    width: 100%;
    z-index: 2;
    bottom: 4rem;
    padding: 2rem;
}

@media (max-width: 1023px) {
    div.ccm-page .to-fancy-box__white {
        bottom: 1rem;
        padding: 1rem;
        max-width: 15rem;
    }
}

@media (max-width: 767px) {
    div.ccm-page .to-fancy-box__white {
        text-align: center;
        position: relative;
        bottom: auto;
        left: auto;
        transform: translateX(0);
        max-width: none;
    }
}

div.ccm-page .to-fancy-box__white p {
    color: #000;
}

div.ccm-page .to-fancy-box__white h2,
div.ccm-page .to-fancy-box__white h3 {
    font-size: 1.5625rem;
    color: #fe0000;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

@media (max-width: 1023px) {
    div.ccm-page .to-fancy-box__white h2,
    div.ccm-page .to-fancy-box__white h3 {
        font-size: 1.25rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

div.ccm-page .to-fancy-box__white .textbutton {
    background-color: #fff;
    border: 2px solid #fe0000;
    color: #fe0000;
}
