/*
Theme Name:   marketingkollektiv
Theme URI:    https://marketingkollektiv.com
Description:  A child theme for the Greyd Theme powered by marketingkollektiv GmbH
Author:       marketingkollektiv GmbH
Author URI:   http://marketingkollektiv.com
Template:     greyd-theme
Version:      1.0.0
License:      GPLv2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  mk-theme
*/

/***************************************************
**** VARIABLEN ÜBERSCHREIBUNGEN
***************************************************/

:root {
    --pgn-numbers-gutter: 4px;
    --wp--custom--greyd--input--prim--border--style: solid;
    --wp--custom--line-height--normal: 1.55;
}

/***************************************************
**** GLOBAL FIXES
***************************************************/

main {
    position: relative;
    z-index: 1;
}

.wp-block-cover[style*="min-height:100vh"] {
    min-height: 100svh !important;
}

.wp-block-greyd-list a[href*="mailto:"],
.wp-block-greyd-list a[href*="tel:"],
.wp-block-greyd-box a:not(.button)[href*="mailto:"],
.wp-block-greyd-box a:not(.button)[href*="tel:"] {
    text-decoration: none;
    color: inherit;
    font: inherit;
}

.wp-block-image.is-style-rounded-corners img {
    border-radius: 30px;
}

.wp-block-greyd-accordion__title {
    transition: all .3s ease;
}

.wp-block-greyd-accordion__title:not([aria-expanded="true"]) .icon {
    color: var(--wp--preset--color--primary);
    transition: all .3s ease;
}

.ks_section {
	position: relative;
    overflow: hidden;
}
.ks_section:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 0;
    height: 5em;
    background: var(--wp--preset--color--primary);
    border-radius: 999px;
    transform: translate(0, 50%);
    filter: blur(5em);
    width: 70%;
    opacity: .5;
}

.caseslider .query-page,
.caseslider .ksd_casebox {
    height: 100%;
}

/***************************************************
**** HELPER
***************************************************/

html[lang*="de"] .showlang:not(.showlang--de) {
    display: none !important;
}
html[lang*="en"] .showlang:not(.showlang--en) {
    display: none !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.blackwhite .bg_image,
.blackwhite .wp-block-cover__image-background,
.blackwhite .wp-block-cover__video-background {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.mk-svg {
    width: 1.8em;
    display: block;
}


.contactbox {
    position: relative;
}

.footerline {
    transform: translate(0, -60%);
}

.blurry {
    backdrop-filter: blur(3px);
}

@media(max-height: 820px) {
    .is-position-sticky.unstickmobile {
        --sticky-offset: 0 !important;
        position: relative !important;
    }
}

.has-xx-large-font-size,
.has-x-large-font-size,
.has-large-font-size {
    letter-spacing: -1px;
}

.bgzindex {
    z-index: -22;
}

.img-block img {
    display: block;
}

.position-relative {
    position: relative;
}

.wp-block-greyd-tabs.is-style-chips .greyd_tab,
.wp-block-greyd-search-filter-buttons.is-style-chips .greyd_filter_button {
    font-size: var(--wp--custom--greyd--button--typography--font-size);
}


.ksd_casebox p:empty + p,
.ksd_casebox p:empty + ul {
    margin-top: 0;
}

.ksd_casebox ul {
    padding: 0;
    list-style-type: none;
}
.ksd_casebox ul li {
    padding-left: 1.8em;
    position: relative;
}
.ksd_casebox ul li:before {
    content: "–";
    color: var(--wp--preset--color--primary);
    position: absolute;
    top: 0;
    left: 0;
}


/***************************************************
****
**** POPOVER
****
***************************************************/

.wp-block-greyd-popover-button .icon_plus {
    margin-top: -3px;
}

.wp-block-greyd-popover-button.is-style-link-prim .icon_plus {
    color: var(--wp--preset--color--primary);
}

/***************************************************
****
**** NAVIGATION
****
***************************************************/

/*** ALLGEMEINES ***/

:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover),
.current-menu-item > a,
.current-menu-ancestor > a,
a.current-menu-ancestor {
    text-decoration: none;
    color: white !important;
}

.wp-block-navigation .wp-block-navigation-item a {
    white-space: nowrap;
}

/*** DESKTOP NAV PILLS ***/

.desknav nav > ul > li > a {
    padding: 7px 14px 5px;
    border-radius: 999px;
}
.desknav nav > ul > li.current-menu-item > a,
.desknav nav > ul > li.current-menu-ancestor > a {
    background-color: var(--color31);
}

.desknav nav > ul > li.wp-block-navigation-submenu > a:after {
    content: "\33";
    font-family: 'ElegantIcons' !important;
    speak: none;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    margin-left: 2px;
}



/*** SUBMENU ***/

.desknav .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
    --nav-submenu--background-color: var(--wp--preset--color--foreground);
}

.desknav .wp-block-navigation .has-child .wp-block-navigation__submenu-container::before {
    border-left-width: 7px;
    border-right-width: 7px;
    border-bottom-width: 7px;
}

.desknav .wp-block-navigation__submenu-container {
    border: 1px solid var(--wp--preset--color--foreground) !important;
}
.desknav .wp-block-navigation__submenu-container li:not(:first-child) {
    border-top: 1px solid var(--wp--preset--color--dark);
}
.desknav .wp-block-navigation__submenu-container li:hover > a {
    background: var(--wp--preset--color--dark);
}
.desknav .wp-block-navigation__submenu-container a {
    padding: 10px 20px;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}
.desknav .wp-block-navigation__submenu-container .current-menu-item a {
    color: var(--color11) !important;
}
.desknav .wp-block-navigation__submenu-container a:after,
.desknav .wp-block-categories-list li:before {
    content: "\24" / "";
    font-family: 'ElegantIcons' !important;
    speak: none;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
    transition: all .3s ease;
}
.desknav .wp-block-navigation__submenu-container a:after {
    transform: translateX(10px);
    opacity: 0;
}

.desknav .wp-block-navigation__submenu-container a:hover:after {
    opacity: 1;
    transform: translateX(4px);
}


.mobilenav .wp-block-navigation-submenu > a {
    display: none;
}
.mobilenav .wp-block-navigation-submenu > ul {
    padding: 0 !important;
}


/***************************************************
**** BUTTONS
***************************************************/

/*
.button.is-style-clear span[class*="arrow_"] {
    color: var(--wp--preset--color--primary);
    font-size: 1.2em !important;
}

.button span[style="flex:1"] {
    text-align: left;
}
*/

.button {
    white-space: nowrap;
}

.button.is-style-clear:hover {
    text-decoration: none !important;
    color: var(--color11);
}


/***************************************************
**** POPUPS
***************************************************/
/*
.popup_wrapper {
    --wp--custom--greyd--button--prim--color--text: var(--wp--preset--color--primary);
    --wp--custom--greyd--button--prim--hover--color--text: var(--wp--preset--color--foreground);
    --wp--custom--greyd--button--prim--hover--border--color: var(--wp--preset--color--foreground);
    position: relative;
}
*/
.popup_wrapper {
    position: relative;
}

/***************************************************
****
**** Plugin: Splide Carousel
****
***************************************************/

.wp-block-splide-carousel .splide__arrow {
    border-radius: var(--wp--custom--greyd--button--prim--border--radius);
    background: var(--wp--preset--color--dark);
    opacity: 1;
}

.wp-block-splide-carousel .splide__arrows .splide__arrow {
    width: 40px;
    height: 40px;
}

.wp-block-splide-carousel .splide__arrow svg {
    height: .7em;
    width: .7em;
    fill: white;
}

.wp-block-splide-carousel .splide__arrows--ltr .splide__arrow--prev {
    left: 1em;
}

.wp-block-splide-carousel .splide__arrows--ltr .splide__arrow--next {
    right: 1em;
}

.splide__controls {
    position: absolute;
    bottom: 1em;
    left: 1em;
    background: var(--wp--preset--color--dark);
    border-radius: var(--wp--custom--greyd--button--prim--border--radius);
    padding: 6px;
}

.wp-block-splide-carousel .splide__pagination__page,
.wp-block-splide-carousel .splide__toggle {
    background: white;
    opacity: 1 !important;
}

.wp-block-splide-carousel .splide__arrow:hover:not(:disabled),
.wp-block-splide-carousel .splide__toggle:hover,
.wp-block-splide-carousel .splide__pagination__page.is-active {
    background: var(--wp--preset--color--primary);
}

.wp-block-splide-carousel .splide__toggle {
    margin-right: 8px;
    height: 24px;
    width: 24px;
}


/***************************************************
**** QUERY LOOP
***************************************************/

.greyd-posts-slider .pgn.numbers {
    padding-bottom: 0;
    padding-top: var(--wp--preset--spacing--small);
    font-size: .9em;
}
.greyd-posts-slider .pgn.numbers a {
    color: white;
}

.wp-block-query-pagination a:not(.wp-element-button) {
    text-decoration: none;
    background-color: var(--color32);
}


/***************************************************
**** Blog / Kategorie-Menü
***************************************************/
/*
.wp-block-categories-list {
    list-style: none;
    padding: 0;
}

.wp-block-categories-list li {
    display: flex;
    gap: .5em;
    align-items: center;
}
.wp-block-categories-list li.current-cat > a {
    color: var(--wp--preset--color--primary);
}
.wp-block-categories-list li:before {
    color: var(--wp--preset--color--primary);
    font-size: 1.1em;
}
*/

/***************************************************
****
**** MATCHHEIGHT
****
***************************************************/

.matchheight .mhitem {
    height: 100%;
}

/***************************************************
****
**** FORMS
****
***************************************************/

.greyd_form {
    margin: 0 !important;
}
.multistep_progress, .multistep_pagination {
    margin: 4px 0 0 0 !important;
}

.greyd_form .label {
    font-size: var(--wp--custom--greyd--input--label--typography--font-size);
    font-weight: var(--wp--custom--greyd--input--label--typography--font-weight);
    line-height: var(--wp--custom--greyd--input--label--typography--line-height);
}

.multistep_button.prev_step {
    background: transparent;
    font-size: var(--wp--custom--greyd--button--typography--font-size);
    font-weight: var(--wp--custom--greyd--button--typography--font-weight);
    padding: 0;
    color: white;
}



.requirement-required {
    color: var(--wp--preset--color--primary) !important;
}

.input-wrapper label.checkbox-label, .input-wrapper .label.checkbox-label, fieldset label, .wp-block-greyd-forms-radiobuttons label:not(.label), .radio_buttons label:not(.label) {
    line-height: var(--wp--custom--line-height--normal) !important;
}

.input-wrapper .label_wrap {
    margin-bottom: calc(0.35 * var(--wp--preset--spacing--tiny)) !important;
}

.img_pnl_wrapper {
    gap: 5px !important;
}
.check-kacheln .img_pnl {
    gap: .6em !important;
}

.check-kacheln .img_pnl .img_wrap {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-color: var(--color33);
    background-image: none;
    background-repeat: no-repeat;
    background-size: 57%;
    background-position: center center;
    border-radius: 999px;
}

.check-kacheln.input-wrapper:not(.is-style-none) input:checked + span + .img_pnl .img_wrap,
.check-kacheln .img_pnl.selected .img_wrap {
    background-color: var(--wp--preset--color--primary);
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.8059 0.771089C10.7378 0.698496 10.6568 0.640877 10.5676 0.601557C10.4784 0.562236 10.3827 0.541992 10.286 0.541992C10.1893 0.541992 10.0936 0.562236 10.0044 0.601557C9.91511 0.640877 9.83412 0.698496 9.76605 0.771089L4.3104 6.54889L2.01829 4.11695C1.94761 4.04473 1.86417 3.98795 1.77274 3.94984C1.6813 3.91173 1.58367 3.89304 1.48541 3.89484C1.38715 3.89664 1.29019 3.91889 1.20006 3.96032C1.10992 4.00175 1.02839 4.06155 0.960114 4.13631C0.891835 4.21107 0.838147 4.29931 0.802115 4.39601C0.766083 4.49271 0.748412 4.59597 0.750112 4.6999C0.751812 4.80382 0.772849 4.90637 0.812023 5.0017C0.851196 5.09702 0.907738 5.18325 0.978421 5.25547L3.79046 8.22956C3.85854 8.30216 3.93953 8.35977 4.02877 8.39909C4.11801 8.43841 4.21372 8.45866 4.3104 8.45866C4.40707 8.45866 4.50278 8.43841 4.59202 8.39909C4.68126 8.35977 4.76225 8.30216 4.83033 8.22956L10.8059 1.90961C10.8802 1.83708 10.9396 1.74906 10.9801 1.65109C11.0207 1.55311 11.0417 1.44731 11.0417 1.34035C11.0417 1.23339 11.0207 1.12759 10.9801 1.02961C10.9396 0.931639 10.8802 0.843615 10.8059 0.771089Z' fill='white'/%3E%3C/svg%3E%0A");
}


.forms_wrapper .after-message .message {
    font-size: var(--wp--preset--font-size--tiny);
    padding: var(--wp--preset--spacing--tiny);
    margin-top: var(--wp--preset--spacing--tiny);
}