/*
Theme Name: HLB Deutschland
Author: Lars Pätzke für ADALIS Werbeagentur
Author URI: https://paetzke.io/
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 7.0
Version: 1.0
Text Domain: hlbdeutschland
*/

html {
    font-size: 16px;
}
body {
    font-family: var(--hlb-font-family);
    min-width: var(--hlb-page-min-width);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    min-height: 100vh;
    scroll-behavior: smooth;
}
.page-template-page-bewerbungsformular {
    background-color: var(--hlb-primary-color);
}

/**
 * Theme Header
 */
header#pageHeader {
    height: 120px;
    width: 100%;
    background-color: var(--hlb-primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    z-index: 101;
}
/* topbar */
.topbar-col {
    position: relative;
}
#topbar {
    position: absolute;
    top: -1rem;
    right: 0;
    width: 100%;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
    z-index: 1;
    color: #fff;
    font-size: var(--hlb-font-size-small);
    display: flex;
    justify-content: flex-end;
    align-content: center;
    gap: 1rem;
}
#topbar button {
    background: transparent;
    border: none;
    outline: none;
    touch-action: manipulation;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    font-size: var(--hlb-font-size-small);
}
#topbar button svg {
    height: var(--hlb-font-size);
    width: auto;
}
/* logo */
header#pageHeader img {
    width: 210px;
    height: auto;
    position: relative;
    z-index: 2;
}
.header-col {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#mainMenuToggle {
    background: transparent;
    border: none;
    outline: none;
    touch-action: manipulation;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* icon closed/opened */
#mainMenuToggle.open .icon-closed {
    display: none;
}
#mainMenuToggle .icon-closed {
    display: block;
}
#mainMenuToggle.open .icon-opened {
    display: block;
}
#mainMenuToggle .icon-opened {
    display: none;
}

/* mobile menu */
@media (max-width: 767px) {
    #pageHeader .menu {
        display: none;
    }
    #pageHeader #mainMenu.open .menu {
        display: block;
    }
    #pageHeader #mainMenu {
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        height: auto;
        background-color: var(--hlb-primary-color);
    }
    #pageHeader .menu {
        margin: 1rem 0;
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
        list-style: none;
    }
    #pageHeader .menu li {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    #pageHeader .menu li a {
        color: #fff;
        text-decoration: none;
        font-weight: var(--hlb-font-weight-default);
        line-height: 1;
        display: block;
        padding: 0.9rem 0;
        font-size: var(--hlb-font-size-medium);
        hyphens: auto;
    }
    #pageHeader .menu li a:hover {
        color: var(--hlb-secondary-color);
    }
    #pageHeader .menu li.menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #pageHeader .menu-item-has-children > a::after {
        content: "";
        position: relative;
        display: inline-block;
        width: 18px;
        height: 18px;
        margin-right: 10px;
        margin-left: 5px;
        background: url(./assets/img/DropArrow.svg) no-repeat 0 0;
        -webkit-transition: -webkit-transform .2s ease-in-out;
        transition: -webkit-transform .2s ease-in-out;
        transition: transform .2s ease-in-out;
        transition: transform .2s ease-in-out,-webkit-transform .2s ease-in-out;
    }
    #pageHeader .open.menu-item-has-children > a::after {
        transform: rotate(180deg);
    }
    #pageHeader .menu li > ul {
        display: none;
        margin: 0.5rem 0;
        padding: 0 0 0 0.5rem;
    }
    #pageHeader .menu li > ul li a {
        padding: 0.5rem 0;
    }
    #pageHeader .menu li.open > ul {
        display: block;
    }
    
}
/* desktop menu */
@media (min-width: 768px) {
    header#pageHeader {
        height: 160px;
        position: fixed;
        top: 0;
        left: 0;
    }
    body {
        padding-top: 160px;
    }
    header#pageHeader img {
        width: 230px;
    }
    #mainMenuToggle {
        display: none;
    }
    #pageHeader .menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: 0;
        gap: 1.5vw;
    }
    #pageHeader .menu li {
        margin: 0;
        padding: 0;
        list-style: none;
        position: relative;
    }
    #pageHeader .menu li a {
        color: #fff;
        text-decoration: none;
        font-weight: var(--hlb-font-weight-default);
        line-height: 1;
        font-size: var(--hlb-font-size-medium);
    }
    #pageHeader .menu li a:hover {
        color: var(--hlb-secondary-color);
    }
    .menu-item-has-children::after {
        content: "";
        position: relative;
        display: inline-block;
        width: 18px;
        height: 18px;
        margin-left: 1px;
        margin-bottom: -5px;
        background: url(./assets/img/DropArrow.svg) no-repeat 0 0;
        -webkit-transition: -webkit-transform .2s ease-in-out;
        transition: -webkit-transform .2s ease-in-out;
        transition: transform .2s ease-in-out;
        transition: transform .2s ease-in-out,-webkit-transform .2s ease-in-out;
    }
    .open.menu-item-has-children::after {
        transform: rotate(180deg);
    }
    #pageHeader .menu li > ul {
        display: none;
        position: absolute;
        top: 92px;
        background: var(--hlb-primary-color);
        padding: 0.5rem 1rem;
        left: -1rem;
        max-width: 200%;
        min-width: calc(100% + 2rem);
        hyphens: auto;
    }
    #pageHeader .menu li > ul li a {
        padding: 0.5rem 0;
        display: block;
    }
    #pageHeader .menu li.open > ul {
        display: block;

    }
}

@media (min-width: 992px) {
    header#pageHeader img {
        width: 255px;
    }
    #pageHeader .menu {
        gap: 2vw;
    }
    .menu-item-has-children::after {
        width: 20px;
        height: 20px;
        margin-left: 5px;
    }
}

/* custom icon in header .linkedin */
#pageHeader .menu li.linkedin a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0;
}
#pageHeader .menu li.linkedin a::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
    background: url(./assets/img/linkedin.svg) no-repeat 0 0;
}
@media (min-width: 768px) {
    #pageHeader .menu li.linkedin a {
        justify-content: center;
    }
}
/* search */
#searchWrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 102;
    background: var(--hlb-primary-color);
}
#searchWrapper.open {
    display: block;
}
#search {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 480px;
}
.search-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6vh;
}
.close-search {
    align-self: flex-end;
}
#searchsubmit {
    align-self: flex-start;
}

/**
 * search.php (search Results)
 */

#searchresults {
    min-height: 50vh;
}
#searchresults h1 {
    margin-top: 60px;
    margin-bottom: 30px;
    font-size: var(--hlb-font-size-h1);
    font-weight: var(--hlb-font-weight-bold);
    line-height: 1.2;
}
.search-result {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}
.search-result:last-child {
    border: none;
}
.search-result a,
.search-result h2,
.search-result p {
    color: #000;
    text-decoration: none;
}
/**
 * Theme Footer
 */

footer#pageFooter {
    background-color: var(--hlb-primary-color);
    color: #fff;
    padding: 6rem 0;
    position:relative;
}
footer#pageFoote a {
    color: #fff;
}

/* Pseudo-Element für die schräge Linie */
footer#pageFooter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* volle Breite */
    height: 100%; /* volle Höhe */
    background-color: var(--hlb-primary-color);
    transform: skewY(-4deg); /* Schrägstellung des Elements */
    transform-origin: top left;
}
footer#pageFooter .container {
    position: relative;
    z-index: 1;
}
#footerMenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}
#footerMenu a {
    color: #fff;
    text-decoration: none;
    font-size: var(--hlb-font-size);
}
@media (min-width: 768px) {
    #footerMenu ul {
        justify-content: flex-end;
    }
}
footer#pageFooter .footer-legal-notice {
    margin-top: 4rem;
}

/**
 * Page Template Contained Width
 */
.page-contained-width {
    margin: 8rem 0 7rem 0;
}
.page-contained-width h1 {
    font-size: var(--hlb-font-size-h1);
    font-weight: var(--hlb-font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.page-contained-width h2 {
    font-size: var(--hlb-font-size-h2);
    font-weight: var(--hlb-font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.page-contained-width h3 {
    font-size: var(--hlb-font-size-h3);
    font-weight: var(--hlb-font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.page-contained-width h4 {
    font-size: var(--hlb-font-size-h4);
    font-weight: var(--hlb-font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.page-contained-width h5 {
    font-size: var(--hlb-font-size-h5);
    font-weight: var(--hlb-font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.page-contained-width h6 {
    font-size: var(--hlb-font-size-h6);
    font-weight: var(--hlb-font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.page-contained-width p {
    font-size: var(--hlb-font-size);
    font-weight: var(--hlb-font-weight-default);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.page-contained-width ul {
    font-size: var(--hlb-font-size);
    font-weight: var(--hlb-font-weight-default);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.page-contained-width ol {
    font-size: var(--hlb-font-size);
    font-weight: var(--hlb-font-weight-default);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.page-contained-width ul li {
    margin-bottom: 0.5rem;
}
.page-contained-width ol li {
    margin-bottom: 0.5rem;
}
.page-contained-width a {
    color: var(--hlb-primary-color);
    text-decoration: none;
}
.page-contained-width a:hover {
    color: var(--hlb-secondary-color);
}
.page-contained-width img {
    max-width: 100%;
    height: auto;
}

/**
 * Single Stellenanzeige
 */
.hlb-single-stellenanzeige .hlb-single-stellenanzeige-header {
    background: var(--hlb-primary-color);
    padding: 0 0 0 0;
    position: relative;
    top: 0;
}
/* Pseudo-Element für die schräge Linie */
.hlb-single-stellenanzeige .hlb-single-stellenanzeige-header::before {
    content: '';
    position: absolute;
    bottom: calc(-55%);
    left: 0;
    width: 100%;
    height: calc(100%);
    bottom: -80px;
    height: 200%;
    background-color: var(--hlb-primary-color);
    transform: skewY(-4deg); /* Schrägstellung des Elements */
    transform-origin: top left;
}

@media (min-width: 992px) {
    .hlb-single-stellenanzeige .hlb-single-stellenanzeige-header::before {
        bottom: -120px;
    }
}
/* Prevent white background from showing on rubber band scrolling */
.hlb-single-stellenanzeige .hlb-single-stellenanzeige-header::after {
    width: 100%;
    height: 180px;
    top: -180px;
    left: 0;
    position: absolute;
    content: '';
    background-color: var(--hlb-primary-color);
}
/*
@media (min-width: 360px) {
    .hlb-single-stellenanzeige .hlb-single-stellenanzeige-header::before {
        bottom: calc(-50%);
    }
}
@media (min-width: 660px) {
    .hlb-single-stellenanzeige .hlb-single-stellenanzeige-header::before {
        bottom: calc(-60%);
    }
}
@media (min-width: 992px) {
    .hlb-single-stellenanzeige .hlb-single-stellenanzeige-header::before {
        bottom: calc(-100%);
    }
}*/
.hlb-single-stellenanzeige .hlb-single-stellenanzeige-header h1 {
    margin-top: 2rem;
}
.hlb-single-stellenanzeige-title {
    color: var(--hlb-text-color);
    background-color: var(--hlb-secondary-color);
    padding: 0.6rem 0.8rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    display: inline-block;
    hyphens: auto;
}
.hlb-single-stellenanzeige-title span {
    font-weight: var(--hlb-font-weight-default);
}

/* teaser */
.hlb-single-stellenanzeige-teaser {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hlb-single-stellenanzeige-teaser h2 {
    margin: 20vh 0;
} 
/* content */

.hlb-single-stellenazeige-content {
    padding: 8rem 0;
    background: var(--hlb-background-color);
}
.hlb-single-stellenazeige-content header {
    display: flex;
    flex-direction: column;
}
.hlb-single-stellenazeige-content header img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .hlb-single-stellenazeige-content header {
        flex-direction: row;
        align-items: center;
    }
    .hlb-single-stellenazeige-content header img {
        width: 33.33333%;
    }
    .hlb-single-stellenazeige-content header h2 {
        margin-left: -2rem;
    }
}
@media (min-width: 992px) {
    .hlb-single-stellenazeige-content header {
        align-items: flex-start;
    }
    .hlb-single-stellenazeige-content header img {
        width: 50%;
    }
    .hlb-single-stellenazeige-content header h2 {
        transform: translateY(-50%);
        margin-left: -3rem;
    }
}
.hlb-single-stellenazeige-content h3 {
    font-size: var(--hlb-font-size-large);
    font-weight: var(--hlb-font-weight-bold);
    margin: 2.8rem 0 1.8rem 0;
}
.hlb-single-stellenazeige-content ul {
    padding: 0 0 0 1rem;
    margin: 0;
}
.hlb-single-stellenazeige-content li {
    margin: 0 0 0.6rem 0;
    font-size: var(--hlb-font-size);
    font-weight: var(--hlb-font-weight-default);
    line-height: 1.6;
}
/* cta */
.hlb-single-stellenanzeige-cta {
    position: sticky;
    top: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5rem 0 0 0;
}
.hlb-single-stellenanzeige-cta p {
    color: var(--hlb-primary-color);
    font-size: var(--hlb-font-size-medium);
    text-align: center;
}
.hlb-single-stellenanzeige-cta p span {
    font-size: var(--hlb-font-size-extra-large);
    font-weight: var(--hlb-font-weight-bold);
}
@media (min-width: 768px) {
    .hlb-single-stellenanzeige-cta {
        margin: 3rem 0 0 0;
    }
}

/**
 * 404 Template
 */
.hlb-404 {
    padding: 10rem 0 8rem 0;
    background: var(--hlb-background-color);
}