/*
 Theme Name:   Die Kinderwunschärztin
 Theme URI:    https://kinderwunschaerztin.de
 Description:  GeneratePress child theme
 Author:       Die Kinderwunschärztin
 Author URI:   https://kinderwunschaerztin.de
 Template:     generatepress
 Text Domain:  kw
 Version:      1.0
*/

/* GENERAL */
body {
    background-image: url('images/half-logo-side.svg');
    background-position: right 700px;
    background-size: 300px auto;
    background-repeat: no-repeat;
    padding-top: 20px;
}

img {
    border-radius: var(--radius-s);
}

.dl-archive-karriere__loop h4 {
    hyphens: auto;
}

@media (max-width:768px) {
    body {
        padding-top: 0;
        background-size: 150px auto;
    }
}
@media (max-width:480px) {
    body {
        background-image: none;
    }
}

/* LAYOUTS */
.one-container .site-content {
    padding-top: 0;
}
.blog.one-container .site-content,
.single-leistungen.one-container .site-content {
    flex-direction: column;
}

.entry-content:not(:first-child), .entry-summary:not(:first-child), .page-content:not(:first-child) {
    margin-top: var(--space-xl);
}

body.single-post article {
    max-width: 840px;
    margin: 0 auto;
}

@media (max-width:768px) {
    .one-container .site-content {
        padding: 0 var(--space-xs) var(--space-xs);
    }
}

/* BUTTONS */
.button-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
a.button,
li.button a {
    min-width: 120px;
    border-radius: 200px;
    background: var(--desire);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 24px;
}
a.button.sm { padding: 10px 24px; }
a.button.light { background: var(--calm); color: var(--black); }
a.button.calm { background: #fff; color: var(--black); }
a.button:hover, li.button a:hover { background: var(--darkdesire); }
a.button.light:hover { background: #fff; }
a.button.calm:hover { background: var(--lightcalm); }
a.button:active, li.button a:active { background: var(--black); }
a.button.light:active { background: var(--darkcalm); color: #fff; }
a.button.calm:active { background: var(--darkcalm); color: #fff; }

@media (max-width: 767px) {
    .banner-featured-inhalt {
        text-align: center;
    }
    .button-wrapper {
        flex-direction: column;
        align-items: center;
    }
}

/* HEADER */
.dl-site-header {
    top: 40px !important;
}
.dl-site-header.gb-is-sticky {
    left: 50% !important;
    top: 20px !important;
    width: 100vw !important;
}
.gb-sticky-placeholder {
    display: none !important;
}

#site-navigation {
    max-width: 1384px;
    margin: 40px auto 0;
}
.inside-header,
.inside-navigation {
    max-width: calc(100% - 60px);
}
.inside-navigation {
    background: rgba(255, 255, 255, 0.3) !important;
    padding: 15px 25px;
    border-radius: 200px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-top: 20px;
}
.sticky-enabled .main-navigation.is_stuck {
    box-shadow: none;
    max-width: 1384px;
    margin: 0 auto;
}
.sticky-enabled .main-navigation.is_stuck .inside-navigation {
    background: rgba(22, 8, 10, 0.50);
}

@media (max-width: 767px) {
    .dl-site-header {
        top: var(--space-xs) !important;
    }
}

.mega-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
.mega-menu > li {
    padding: 5px 0;
}
.mega-menu > li:first-child {
    padding-top: 0;
}
.mega-menu > li > a {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: var(--space-4xs);
    padding: 10px var(--space-4xs);
    font-size: 14px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}
.mega-menu > li.active > a,
.mega-menu > li > a:hover  {
    background: var(--calm);
    color: var(--black);
}
.mega-menu > li.active > a::after {
    content: url("data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L1 11' stroke='%2316080A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    transition: transform 0.3s ease;
    margin-left: auto;
}

.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sub-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}
.sub-menu li a:hover {
    text-decoration: underline;
}

.submenu-panel {
    padding: 0;
    border-left: 1px solid var(--calm);
}
.submenu-panel > .sub-menu {
    display: none;
}
.submenu-panel > .sub-menu.active {
    display: block;
}

@media (min-width: 768px) {
    .dl-megamenu__container .gb-overlay {
        width: 100vw;
        max-width: 1404px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px var(--space-s) 0 0;
    }
    .dl-megamenu__container .gb-overlay .gb-overlay__content {
        float: right;
    }
    .dl-mega-menu__tabs {
        display: grid;
        grid-template-columns: 220px 1fr;
        max-width: 900px;
    }

    .mega-menu > li > .sub-menu {
        display: none !important;
    }
    .mega-menu > li > a {
        font-weight: 600;
        border-radius: var(--radius-xl);
    }
    .mega-menu > li.menu-item-has-children > .submenu-toggle {
        display: none;
    }
}

@media (max-width: 767px) {
    .dl-megamenu__container ul.gb-menu > li.menu-item > a {
        position: relative;
    }
    .dl-megamenu__container ul.gb-menu > li.menu-item > a > span.gb-submenu-toggle {
        position: absolute;
        top: 0; bottom: 0;
        left: 0; right: 0;
        display: flex;
        justify-content: right;
        width: 100%;
        padding: 0 20px;
        border-radius: var(--radius-xl);
    }
    .dl-mega-menu {
        padding-top: var(--space-2xs);
        padding-bottom: var(--space-2xs);
    }
    .dl-mega-menu__tabs {
        display: block;
    }
    .mega-menu {
        border-right: none;
    }
    .mega-menu > li.menu-item-has-children {
        position: relative;
    }
    .mega-menu > li > .sub-menu {
        display: none !important;
    }
    .mega-menu > li.active > .sub-menu {
        display: block !important;
    }
    .mega-menu > li > a {
        pointer-events: inherit;
        font-weight: 600;
        margin-right: 0;
        padding-right: 0;
    }
    .mega-menu > li.active > a,
    .mega-menu > li > a:hover {
        background: none;
        text-decoration: underline;
    }
    .mega-menu > li > a::after {
        content: url("data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L1 11' stroke='%2316080A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
        transition: transform 0.3s ease;
        margin-left: auto;
        margin-right: 10px;
        transform: rotate(90deg);
    }
    .mega-menu > li.menu-item-has-children > .submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 2em;
        height: 100%;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2;
    }
    .mega-menu > li.active > a::after {
        transform: scaleY(-1) rotate(90deg);
    }
    .gb-submenu-toggle .gb-submenu-toggle-icon {
        width: 24px;
        height: 24px;
    }
    .submenu-panel {
        display: none;
    }
}

/* FUßLEISTE */
.site-footer {
    max-width: 1404px;
    margin: 0 auto 16px;
}

.footer-akkordeon .wp-block-kadence-pane:first-child button.kt-blocks-accordion-header {
    border: none !important;
}

body .wpml-language-switcher-block ul.hasSpacing.isHorizontal li:not(:last-child) {
    margin-right: var(--space-4xs) !important;
}
.wpml-language-switcher-block li.wp-block-navigation-item[data-wpml="current-language-item"] {
    font-weight: 600;
}
.wpml-language-switcher-block li.wp-block-navigation-item a:hover {
    text-decoration: underline;
}

.site-info {
    text-align: inherit;
    font-size: inherit;
}
.inside-site-info {
    display: block;
}
.inside-footer-widgets>div:first-child {
    flex: 0 0 30%;
} 
.footer-bar .wpml-ls-legacy-list-horizontal {
    padding: 0;
}
.footer-bar .wpml-ls-legacy-list-horizontal a {
    padding: 5px 0 6px 20px;
}
.copyright-bar {
    border-top: 1px solid var(--black);
    padding: 16px 0 36px;
}

@media (max-width: 1023px) {
    .inside-footer-widgets {
        flex-direction: column;
        row-gap: 3em;
    }
}
@media (min-width: 768px) {
    .inside-footer-widgets>div:first-child {
        flex: inherit;
    }
    .inside-footer-widgets .wp-block-kadence-accordion .kt-accordion-panel {
        display: block;
        max-height: initial !important;
    }
    .inside-footer-widgets .wp-block-kadence-accordion button.kt-blocks-accordion-header {
        background: none !important;
        cursor: default;
    }
    .inside-footer-widgets .wp-block-kadence-accordion .kt-blocks-accordion-title-wrap {
        padding-right: 0;
    }
    .inside-footer-widgets .wp-block-kadence-accordion .kt-blocks-accordion-icon-trigger {
        display: none;
    }
    .footer-bar .wpml-ls-legacy-list-horizontal a {
        padding: 5px 0 6px 20px;
    }
}
@media (max-width: 767px) {
    .site-footer {
        margin-bottom: 0;
        border-radius: 0;
    }
    .inside-footer-widgets {
        row-gap: 0;
    }
    .footer-bar .wpml-ls-legacy-list-horizontal a {
        padding: 5px 20px 6px 0;
    }
    .copyright-bar {
        padding-bottom: 0;
    }
}

/* VISIBILITY */
@media (min-width: 768px) {
    .nodesktoptablet {
        display: none;
    }
}
@media (max-width: 767px) {
    .nomobile {
        display: none;
    }
}

/* FORMS */
.dlForms {
    padding-top: var(--space-s);
}
.dlForms__intro {
    text-align: center;
}
select#dlFormsSelect {
    width: 180px;
    margin-bottom: 25px;
    padding: 8px 40px 8px 16px;
    border: 1px solid var(--black);
    border-radius: var(--radius-xs);
    background-color: white;
    font-size: 16px;
    box-sizing: border-box;
    min-height: 50px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}
.dlFormsBars {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 60px;
}
.dlFormsBars > div {
    position: relative;
}
.dlFormsBars > div:nth-child(odd)::after {
    content: '';
    position: absolute;
    top: 0;
    right: -30px;
    width: 1px;
    height: 100%;
    background: var(--calm);
}
.dlFormsBars_cycle {
    display: inline-block;
    background: var(--light);
    font-size: var(--text-s);
    font-weight: 600;
    margin-bottom: 30px;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
}
.dlFormsBars__container {
    margin-bottom: 30px;
}
.dlFormsBars__label {
    margin-bottom: 6px;
}
.dlFormsBars__value {
    display: inline-block;
    font-family: 'DM Serif Text';
    font-size: var(--text-l);
    font-weight: bold;
}
.dlFormsBars__bg {
    background-color: var(--calm);
    height: 20px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.dlFormsBars__fill {
    height: 100%;
    width: 0%;
    background-color: var(--darkcalm);
    border-radius: 10px;
    transition: width 1s ease-out;
}
.dlForms__cite {
    font-size: var(--text-xs);
    margin-top: 30px;
}

@media (max-width: 767px) {
    .dlFormsBars {
        grid-auto-flow: row;
        gap: 40px;
    }
    .dlFormsBars > div:nth-child(odd)::after {
        right: 0;
        top: auto;
        bottom: -5px;
        width: 100%;
        height: 1px;
    }
}

/* BLOCKS - CORE - EMBEDS */
.wp-block-embed {
    margin-left: 0;
    margin-right: 0;
    border-radius: 40px;
    overflow: hidden;
}
.video-block { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-block iframe, .video-block object, .video-block embed, .video-block video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before { padding-top: 0; }

/* BLOCKS - CORE - LISTS */
ol.wp-block-list,
ul.wp-block-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0 0 1.5em 1.5em;
}

/* BLOCKS - CORE - SOCIAL */
.wp-block-social-link {
    gap: 15px;
}
.wp-block-social-link:hover {
    transform: none;
}
.wp-block-social-links li a:hover {
    transform: none;
}
.wp-block-social-links li.hidetext a span {
    display: none;
}
.wp-block-social-links .wp-social-link span:not(.screen-reader-text) {
    margin-left: 5px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .wp-block-social-links li a span {
        display: none;
    }
}

/* PLUGINS - FILTERS & GRIDS */
.ymc-container .filter-layout--top {
    grid-gap: 0;
}
#ltag-descriptions-container {
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding-bottom: var(--space-4xs);
}
.ltag-descriptions-inner {
    padding: 0 15px 0 15px !important;
    transition: opacity 0.3s ease, padding 0.3s ease !important;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.ltag-descriptions-inner h4 {
    margin-bottom: 5px;
}
.ltag-descriptions-inner p {
    display: block;
}