/* Charmingplaces Core Styles */
.hidden {
    display: none !important;
}

/* Divi 5 / Theme Builder:
   Stellt sicher, dass Header-Menüs sauber über dem Seiteninhalt liegen. */
#main-content {
    position: relative;
    z-index: 0;
}

body {
    background-color: var(--cp-color-bg) !important;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    font-smooth: auto;
}

body,
p,
li,
a:not(.cp-mega-menu a) {
    font-family: var(--cp-font-body) !important;
    font-weight: 400;
}

.et-db #et-boc .et-l.et-l--body .et_builder_inner_content {
    z-index: 0 !important;
}
.et_pb_comments_0_tb_body #commentform textarea, .et_pb_comments_0_tb_body #commentform input[type='text'], .et_pb_comments_0_tb_body #commentform input[type='email'], .et_pb_comments_0_tb_body #commentform input[type='url'] {
    font-family: var(--cp-font-body) !important;
}
.cp_archive_row {
    background: var(--cp-color-body);
}

.et_boxed_layout #page-container {
    -webkit-box-shadow: unset;
    box-shadow: unset;
    background-color: transparent;
}

#cp-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

#cp-logo img {
    max-width: 100%;
    height: auto;
}

/* CP Brand Switch */
.cp-brand-switch {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 220px;

    margin-bottom: 24px;
}

.cp-brand-switch__link {
    font-family: var(--cp-font-heading) !important;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 0.95;
    text-transform: uppercase;
    text-align: center;

    color: #b8afa2;
    text-decoration: none;

    transition: color .2s ease;
}

.cp-brand-switch__link:hover {
    color: var(--cppink);
}

.cp-brand-switch__link.is-active {
    color: #101020;
}

.cp-brand-switch {
    display: flex;
    justify-content: center;
    gap: 140px;
    margin-bottom: 40px;
}

.cp-brand-switch__link {
    position: relative;

    display: inline-block;

    font-family: var(--cp-font-heading);
    font-size: 28px;
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;

    color: #b8afa2;

    transition: color 0.2s ease;
}

.cp-brand-switch__link:hover {
    color: var(--cppink);
    text-decoration: none;
}

.cp-brand-switch__link.is-active {
    color: #101020;
}

/* Coming Soon Variante */
.cp-brand-switch__coming {
    cursor: default;
}

.cp-brand-switch__coming:hover {
    color: #b8afa2;
}

.cp-brand-switch__badge {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);

    padding: 3px 9px;
    border-radius: 999px;

    background: var(--cppink);
    color: #fff;

    font-family: var(--cp-font-body);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 767px) {

    .cp-brand-switch {
        gap: 24px;
        margin-bottom: 18px;
    }

    .cp-brand-switch__link {
        font-size: 1.3rem;
    }

    .post-header {
        padding: 0 16px;
    }

    .wp-block-rank-math-toc-block {
        padding: 1px 8% 20px;
        width: 115%;
        margin-left: -7%;
    }
}

    h1,
    h2:not(.page h2, .category-description h2, .kategorie-beschreibung h2, .entry-title, .cp-related-cards h2, .cp-expertrec-page-card__title, .page-id-1917 h2, .page-id-1923 h2),
    h3:not(.et_pb_module_header, .et_pb_text_inner h3, .cp-editorial-menu__heading, .cp-small-menu__heading, .cp-featured-box__title, .kategorie-beschreibung h3, .slot-info h3, .page-id-1917 h3, .page-id-1923 h3),
    h4:not(.page-id-1917 h4, .page-id-1923 h4),
    h5,
    h6 {
        clear: both;
        position: relative;
        margin: 1.875em 0 1em;
        padding: 0;
        word-wrap: break-word;
        -ms-word-wrap: break-word;
    }

    h2 {
        font-size: 2.618em;
        line-height: 1.2em;
    }

    h2.entry-title {
        font-size: clamp(1.5rem, .277vw + 1.4172rem, 1.625rem);
        line-height: 1.3em;
        margin: 10px;
    }

    h3 {
        font-size: clamp(1.218rem, 1.018rem + 0.8vw, 1.618rem);
        line-height: 1.25em;
    }

    /* Warum doppelt?
h4 {
    font-size: clamp(1.25rem, 1.191rem + 0.2358vw, 1.375rem);
    line-height: 1.25em;
}*/

    h4 {
        font-size: clamp(1.218rem, 1.018rem + 0.8vw, 1.618rem);
        line-height: 1.25em;
    }


    /* Footer */
    .newsletter {
        background-color: #fff;
        text-align: center;
        padding: 50px;
    }

    footer a {
        color: #222 !important;
    }

    footer a.partner {
        color: var(--cppink) !important;
    }

    /* Instagram */
    #sidebar-instagram {
        padding: 60px 40px 40px 40px;
        background-color: var(--cp-color-pink-light);
    }

    /* NOTE: Kategorie Header optimiert */


    .overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.2);
        /* Passen Sie die Farbe und Transparenz nach Bedarf an */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .overlay-content {
        color: #fff;
        text-align: center;
        padding: 0 20px;
    }

    .category-header {
        position: relative;
        width: 100%;
        overflow: hidden;
        margin-bottom: 24px;
    }

    .category-image {
        display: block;
    }

    /* NOTE: Kategorie PHP Marni Übernahme */
    .overlay .category-image-fullbg {
        width: 100%;
        height: 100%;
        max-height: 100%;
        background-size: cover;
        box-sizing: border-box;
        position: absolute !important;
        z-index: auto;
        background-position: center center;
        overflow: hidden;
    }

    .category-header.overlay {
        min-height: 360px;
        position: relative;
        margin: 0;
        padding: 0;
    }

    .color-overlay {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .color-overlay {
        background-color: rgba(32, 32, 36, .12);
    }


    .archive-page-title {
        font-family: Playfair Display;
        font-size: clamp(1.5625rem, -0.2232rem + 5.7143vw, 4.0625rem);
        font-weight: 500;
        letter-spacing: 5px;
        line-height: 1.1em;
        text-transform: uppercase;
        color: #fff;
        text-align: center;
    }

    .archive-page-title {
        margin: 0;
    }

    .kategorie-beschreibung {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Header Beiträge */
    .post-header {
        text-align: center;
        margin-top: 25px;
    }

    .post-meta a {
        color: #222;
    }

    .post-header a:hover {
        color: var(--cppink);
    }

    .post-header .entry-title {
        margin-top: 25px !important;
    }

    .post-header .post-meta {
        margin: 0 0 20px 0;
    }

    .post-meta span:not(.light) {
        padding: 0 10px;
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 2px;
        white-space: nowrap;
    }

    h2.wp-block-heading a {
        text-decoration: underline;
    }

    h2.wp-block-heading a:hover {
        color: var(--cppink);
    }

    .post-header .post-thumbnail {
        margin-bottom: 35px;
    }

    /* Kategorien */
    .category-image-container {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .category-image {
        display: flex;
        width: 100%;
        max-height: 360px;
        object-fit: cover;
    }

    .category-charmingpeople .category-image {
        object-position: top;
    }

    .cp-load-more {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
    }

    .cp-load-more__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cp-load-more__icon svg {
        width: 14px;
        height: 14px;
        transition: transform 0.2s ease;
        fill: currentColor;
    }

    .cp-load-more:hover .cp-load-more__icon svg {
        transform: translateY(2px);
    }

    .cp-load-more.is-loading .cp-load-more__icon svg {
        animation: cp-load-more-spin 1s linear infinite;
    }

    @keyframes cp-load-more-spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* Beitrag DorpCap */
    .et-dropcap {
        font-size: 4em !important;
        line-height: 1em !important;
        margin: -5px 12px -4px 0 !important;
        color: var(--cp-color-text);
        font-family: var(--cp-font-heading);
    }

    /* Buchungslücken */
    .cp-slot,
    .slot-header {
        max-width: 795px;
        margin: 0 auto;
    }

    .slot-header {
        margin-bottom: 32px;
    }

    .slot-text {
        padding: 16px;
    }

    .slot-info {
        padding: 40px 40px !important;
        background-color: #ffe8f6;
    }

    .spacer {
        height: 30px;
        background: var(--cp-color-body);
        margin: 40px 0;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .page-id-1923 .cp-newsletter-box,
    .page-id-1923 #sidebar-instagram,
    .page-id-1923 .cp-social,
    .page-id-1917 .cp-newsletter-box,
    .page-id-1917 #sidebar-instagram,
    .page-id-1917 .cp-social {
        display: none;
    }