/* 
================================================================================

Theme Name:     EchtHaarDirekt
Theme URI:      http://www.echthaardirekt.de

Description:    EchtHaarDirekt - Haarverlängerungen aus 100 Prozent Echthaar.

Author:         EchtHaarDirekt
Author URI:     http://www.echthaardirekt.de

Version:        1.0

Date created:	15/09/2025
Last modified:	15/01/2026

================================================================================
*/




/*============================================================================*/
/* ----- GENERAL ----- */
/*============================================================================*/

* {
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth !important;
    scroll-padding-top: 100px; /* for fixed headers */
}

body {
    margin: 0px auto;
    overflow-x: clip;
}

body:not(.woocommerce) html,
body:not(.woocommerce) body {
    scroll-behavior: smooth !important;
}

    /* Text selection */
    ::selection {background: var(--wp--preset--color--black); color: var(--wp--preset--color--white);}
    ::-moz-selection { background: var(--wp--preset--color--black); color: var(--wp--preset--color--white);}

    /* Images */
    a img {border: none;transition: all ease 0.4s;}
    a img:hover {opacity: 0.75;}

    /* Overlaping Sections */
    .overlap {
        position: relative;
        z-index: 1;
    }

    /* Marked Text */
    mark {padding: 10px;}
    

/*============================================================================*/
/* ----- TEMPLATE & THEME ----- */
/*============================================================================*/

/* ----- HEADER ----- */

header {
    position: sticky;
    top: 0;
    height: auto;
    width: 100%;
    z-index: 10;
}

    button#menu-button {
        width: 24px;
        height: 24px;
        border: none;
        font-size: 0;
        background: none;
        cursor: pointer;
        transition: all ease 0.4s;
    }

        button#menu-button span {
            width: 100%;
            height: 100%;
            display: block;
            transition: all ease 0.4s;
            background: var(--wp--preset--color--black);
            mask: url(assets/img/icon-menu.svg) no-repeat;
            mask-size: 100% 100% !important;
            -webkit-mask: url(assets/img/icon-menu.svg) no-repeat;
            -webkit-mask-size: 100% 100% !important;
        }

        button#menu-button.opened span {
            transform: rotate(90deg);
            mask: url(assets/img/icon-close.svg) no-repeat;
            -webkit-mask: url(assets/img/icon-close.svg) no-repeat;
        }

    #classic-menu-wrapper {
        position: fixed;
        top: 0;
        z-index: 5;
        right: -100%;
        width: 480px;
        height: 100vh;
        overflow-y: auto;
        transition: all ease 0.4s;
        background: var(--wp--preset--color--custom-weinrot-2)
    }

    #classic-menu-wrapper.opened {
        right: 0;
    }

        button#menu-close-button {
            width: 24px;
            height: 24px;
            border: none;
            font-size: 0;
            background: none;
            cursor: pointer;
            transition: all ease 0.4s;
        }

            button#menu-close-button span {
                width: 100%;
                height: 100%;
                display: block;
                margin: 2.5rem;
                transition: all ease 0.4s;
                background: var(--wp--preset--color--white);
                mask: url(assets/img/icon-close.svg) no-repeat;
                mask-size: 100% 100% !important;
                -webkit-mask: url(assets/img/icon-close.svg) no-repeat;
                -webkit-mask-size: 100% 100% !important;
            }

        #menu-logo {
            margin: 2.5rem;
        }

        nav#main-menu {
            margin: 0;
            padding: 0;
            width: auto;
            margin: 2.5rem;
            color: var(--wp--preset--color--white);
        }

            /* 1st Level */
            nav#main-menu ul {
                color: #FFF;
                list-style: disc;
                padding: 0 0 0 1.25rem;
            }

            nav#main-menu ul li {
                position: relative;
                margin: 0;
                padding: 0;
                width: auto;
                height: auto;
                margin: 14px 0;
            }

                nav#main-menu ul li a {
                    width: auto;
                    display: block;
                    transition: all ease 0.2s;

                    font-weight: 400;
                    text-decoration: none;
                    color: var(--wp--preset--color--white);
                    font-size: var(--wp--preset--font-size--l);
                    font-family: var(--wp--preset--font-family--league-spartan);
                }

                nav#main-menu ul li a:hover {
                    margin-left: 10px;
                }

                nav#main-menu ul li.current-menu-item > a,
                nav#main-menu ul li.current-menu-ancestor > a,
                nav#main-menu ul li.current_page_parent > a,
                nav#main-menu ul li.current-page-ancestor > a {
                    font-weight: 400
                }

                nav#main-menu ul li button {
                    position: absolute;
                    top: clamp(0.25rem, 0.5vw + 0.1rem, 0.5rem);
                    right: 0;
                    width: 24px;
                    height: 24px;
                    border: none;
                    font-size: 0;
                    background: none;
                    cursor: pointer;
                    transition: all ease 0.4s;
                }

                    nav#main-menu ul li button span {
                        width: 100%;
                        height: 100%;
                        display: block;
                        transition: all ease 0.4s;
                        background: var(--wp--preset--color--white);
                        mask: url(assets/img/icon-arrow.svg) no-repeat;
                        mask-size: 100% 100% !important;
                        -webkit-mask: url(assets/img/icon-arrow.svg) no-repeat;
                        -webkit-mask-size: 100% 100% !important;
                    }

                    nav#main-menu ul li.opened button span {
                        transform: rotate(-90deg);
                    }

        /* 2nd Level */
        nav#main-menu ul li ul {
            display: none;
            height: auto;
            margin: 0 0 0 1.25rem;
        }

            nav#main-menu ul li ul li a {
                font-size: var(--wp--preset--font-size--m);
            }


/* ----- MAIN CONTENT ----- */

main {
    position: relative;

    animation-name: starting;
    animation-duration: 1.2s;
    animation-iteration-count: 1;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes starting {
    0% {opacity: 0;}
    100% {opacity: 1;}
}


/* ----- FOOTER ----- */

footer {
    position: relative;
}

    /* Quick Buttons */
    footer .quick-contact {
        position: fixed;
        z-index: 1;
        bottom: 50%;
        right: 0.625rem;
        transform: translateY(50%);
    }

    footer .quick-basket {
        position: fixed;
        z-index: 1;
        bottom: 0.625rem;
        right: 0.625rem;
    }

    .quick-basket { /* <-- also for Block Editor */
        border-radius: 100%;
        transition: all ease 0.2s;
        background: var(--wp--preset--color--custom-weinrot-1);
    }

    .quick-basket:hover {
        transform: scale(1.075);
    }

    .quick-basket .wc-block-mini-cart__badge {
        border: 1px solid var(--wp--preset--color--custom-weinrot-2);
    }


/* ----- BLOCK ADJUSTMENTS ----- */

/* General */
.alignfull.has-global-padding {
    padding-left: var(--wp--style--root--padding-left);
    padding-right: var(--wp--style--root--padding-right);
}

.is-layout-constrained > :first-child,
.is-layout-flow > :first-child {
    margin-block-start: 0;  
}

.is-layout-constrained > :last-child,
.is-layout-flow > :last-child {
    margin-block-end: 0;  
}

/* Media/Text Block */
.wp-block-media-text .wp-block-media-text__content > :first-child {
    margin-block-start: 0;
}

.wp-block-media-text .wp-block-media-text__content > :last-child {
    margin-block-end: 0;
}

.wp-block-media-text .wp-block-media-text__content {
    padding: 0 8% 0 8%;
}

/* Cover Block */
.wp-block-cover {
    padding: 0;
}

    .wp-block-cover.alignfull .wp-block-cover__inner-container {
        padding-left: var(--wp--style--root--padding-left);
        padding-right: var(--wp--style--root--padding-right);
    }

/* Buttons Block */
.wp-block-button {
    transition: all ease 0.4s;
}

.wp-block-button:hover {
    transform: scale(1.05);
}

/* Buttons Block (Special) */
.wp-block-buttons.hc-anchor {
    position: fixed;
    bottom: 10px;
    z-index: 5;
    left: calc(50% - 110px);
}

/* Gallery Block */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    font-size: 12px;
    line-height: 1.2;
    padding: 0;
    background: none;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption

/* File Block */
.wp-block-file {
    display: flex;
    align-items: center;
    font-size: var(--wp--preset--font-size--m) !important;
}

.wp-block-file a:first-child:before {
    position: relative;
    float: left;
    content: "";
    width: 24px;
    height: 24px;
    display: block;
    margin-right: 6px;
    background-color: var(--wp--preset--color--black);

    mask: url(assets/img/icon-download.svg) no-repeat;
    -webkit-mask: url(assets/img/icon-download.svg) no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}

/* Rank Math FAQ (Accordion) Block */
.rank-math-block .rank-math-list-item {
    padding: var(--wp--preset--spacing--40);
    margin: 1.25rem 0;
    border-radius: 10px;
    border: 1px solid #CCC;
}

    .rank-math-block .rank-math-question {
        position: relative;
        cursor: pointer;
        padding-left: 42px;

        font-size: var(--wp--preset--font-size--l)
    }

    .rank-math-block .rank-math-question::before {
        position: absolute;
        left: 0;
        top: 50%;
        content: "+";
        transform: translateY(-50%);
        transition: all ease 0.4s;
        
        color: var(--wp--preset--color--custom-weinrot-1);
        font-size: 42px;
        font-weight: 400;
    }

    .rank-math-block .rank-math-question.active::before {
        content: "-";
    }

    .rank-math-block .rank-math-answer {
        display: none;
        padding: 0;
        margin: 0;
    }


/* Image Slider Block (Getwid Plugin) */
.wp-block-getwid-images-slider.has-cropped-images .wp-block-getwid-images-slider__item img {
    border-radius: 10px;
}

/* Content Slider Block (Getwid Plugin) */

.wp-block-getwid-content-slider.product-slider .slick-slide {
    margin: 0 10px;
}

.wp-block-getwid-content-slider.product-slider .slick-slide > * {
    min-height: 680px;
}


/* ----- BLOCK EDITOR ADJUSTMENTS ----- */

/* Seitentitel */
.editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper {
    margin: 0 !important;
    text-align: center !important;
    border-bottom: 1px solid #E0E0E0 !important;
}

    .editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper h1 {
	    font-size: 1rem;
        line-height: 1.4;
        font-weight: 700;
        color: #000;
	    font-style: none;
        text-transform: none;
        margin: 0 auto !important;
        padding: 10px 0 10px 0 !important;
        font-family: var(--wp--preset--font-family--system-font) !important;
    }


/* ----- WOOCOMMERCE ----- */

.wc-block-mini-cart__badge {
    background: var(--wp--preset--color--custom-weinrot-1);
}

table.wc-block-mini-cart-items tr.wc-block-cart-items__row {
    border-top: 1px solid var(--wp--preset--color--light-grey);
}

.wp-block-woocommerce-product-image-gallery img {
    border-radius: 10px;
}

table.variations tr {
    line-height: 1;
}

table.variations tr th {
    padding: 0.625rem 0;
}

table.variations tr th label {
    margin: 0;
}

.woocommerce table.variations tr td select {
    font-size: var(--wp--preset--font-size--s);
}

.woocommerce div.product div.images ol.flex-control-thumbs {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    grid-template-columns: repeat(4, 1fr);
}

.woocommerce div.product div.images ol.flex-control-thumbs li {
    width: 100%;
}

.woocommerce div.product div.images ol.flex-control-thumbs li img {
    opacity: 1;
}

.cfvsw-label-stacked table.variations td.value {
    display: block;
}

.woocommerce div.product form.cart .reset_variations {
    display: block;
    font-size: var(--wp--preset--font-size--m);
}

.wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs {
    color: var(--wp--preset--color--white);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 0.625rem clamp(0.625rem, 1.25vw + 0.25rem, 1.25rem) !important;
    background: var(--wp--preset--color--custom-weinrot-1);
}

.wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li {
    border: none !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 0 clamp(1.25rem, 2.5vw + 0.5rem, 2.5rem);
    max-width: var(--wp--style--global--content-size)
}

.woocommerce div.product form.cart .variations {
    margin-bottom: 0;
}

.woocommerce .button,
.wc-block-components-button:not(.is-link) {
    border-radius: 4px !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked:before {
    background: var(--wp--preset--color--custom-weinrot-1);
}

header .wp-block-woocommerce-customer-account {
    position: relative;
}

header .wp-block-woocommerce-customer-account .is-logged-in {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 100%;
    background: #11C87E;
}

.wc-block-product .wc-block-components-product-image img {
    border-radius: 10px;
}

.woocommerce-MyAccount-content h2 {
    font-size: var(--wp--preset--font-size--xl);
}

.woocommerce-MyAccount-content .woocommerce-Address {
    width: calc(48% - 2.5rem) !important;
    margin: 1.25rem 0;
    padding: 1.25rem;
    border-radius: 10px;
    background: var(--wp--preset--color--white);
}

.woocommerce-MyAccount-navigation-link--downloads {
    display: none;
}

.woocommerce-MyAccount-navigation-link--customer-logout:before {
    position: relative;
    width: 16px;
    height: 16px;
    float: left;
    content: "";
    display: block;
    margin: 4px 6px 0 0;
    background: var(--wp--preset--color--custom-weinrot-1);
    mask: url(assets/img/icon-logout.svg) no-repeat;
    -webkit-mask: url(assets/img/icon-logout.svg) no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}

.woocommerce-account .addresses .title .edit {
    float: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    padding: 12px 0 !important;
    border-top: 1px solid var(--wp--preset--color--custom-weinrot-2);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    font-weight: 700;
    text-decoration: none;
}

.woocommerce-product-gallery__image {
    aspect-ratio: 1/1;
}

    .woocommerce-product-gallery__image a {
        width: 100% !important;
        height: 100% !important;
    }

        .woocommerce-product-gallery__image a  img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover;
        }

table.wc-block-cart-items {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #E5E5E5;
    background: var(--wp--preset--color--white) !important;
}

table.wc-block-cart-items tr {
    border: none !important;
}

.wp-block-woocommerce-checkout-order-summary-block {
    padding: 10px;
    background: var(--wp--preset--color--white)
}

.wc-gzd-checkout .wc-block-components-order-summary, 
.wc-gzd-checkout .wc-block-components-order-summary.is-large {
    background: var(--wp--preset--color--white);
}

.wc-block-components-product-metadata {
    display: flex;
    flex-direction: column;
}

.wc-block-components-product-metadata .wc-block-components-product-details {
    margin: 0;
}

.wc-block-components-product-metadata .wc-block-components-product-details:nth-of-type(2) {
    order: -1;
}

.wc-block-mini-cart__tax-label {
    display: none;
}

.label-above .wapf-field-label {
    margin-bottom: 0;
}

.woocommerce-page label {
    margin: 0;
}

.wapf-swatch-label {
    line-height: 1.2;
}

.wapf-image-swatch-wrapper {
    gap: 6px;
}

.config-just-info {
    display: none !important;
}

p.wc-gzd-cart-info.delivery-time-info {
    margin: 0 !important;
}

/* ----- FORMS ----- */

main form {
    margin: 0;
    padding: 0;    
}

    main fieldset {
        margin: 0;
        padding: 0;
        border: none;
    }
    
        main legend {display: none;}
        
        main label  {
            display: block;
            font-weight: 700;
            font-size: var(--wp--preset--font-size--s)
        }
        
        main input,
        main select,
        main textarea {
            width: calc(100% - 32px);
            outline: none;
            padding: 12px;
            border-radius: 4px;
            background: #FFF;
            border: 1px solid #B2B2B2;
            background: var(--wp--preset--color--white);

            color: var(--wp--preset--color--black);
            font-weight: 400;
            line-height: 1.4;
            font-size: var(--wp--preset--font-size--m);
            font-family: var(--wp--preset--font-family--league-spartan);
        }
        
        main select {
            width: 100%;
        }
        
        main textarea {
            height: 150px;
            overflow: auto;
        }

        main input[type=radio],
        main input[type=checkbox] {
            width: auto;
        }  
        
        input[type="radio"],
        input[type="checkbox"] {
            width: auto;
            height: auto;
            outline: none;
            appearance: none;
            margin-right: 6px;
            background: var(--wp--preset--color--white);
            padding: 6px; /* instead of width and height */
            border: 1px solid var(--wp--preset--color--black);
            -webkit-appearance: none; /* for Safari */
        }

        input[type="radio"] {
            border-radius: 100%;
        }

        input[type="radio"]:checked,
        input[type="checkbox"]:checked {
            background: var(--wp--preset--color--custom-weinrot-1) no-repeat;
        }
        
        main input:focus,
        main select:focus,
        main textarea:focus {
            border-color: var(--wp--preset--color--custom-weinrot-1);
        }

        input[type="radio"]:focus,
        input[type="checkbox"]:focus {
            outline: 2px solid var(--wp--preset--color--black);
        }

        main input::placeholder,
        main select::placeholder,
        main textarea::placeholder {
            color: #aaa;
            font-size: var(--wp--preset--font-size--s);
        }
        
        /* Buttons */
        main input[type=submit],
        main button[type=submit] {
            width: auto;
            border: none;
            cursor: pointer;
            padding: 12px 24px;
            transition: all ease 0.2s;
            background: var(--wp--preset--color--custom-weinrot-1);

            color: var(--wp--preset--color--white);
            font-size: var(--wp--preset--font-size--m);
        }
        
        main input[type=submit]:hover,
        main button[type=submit]:hover {
            opacity: 0.75;
        }

        main input[type=submit]:focus,
        main button[type=submit]:focus {
            outline: 2px solid var(--wp--preset--color--black);
        }
        
        main input[type=submit]:active,
        main button[type=submit]:active {
            outline: none;
        }


/* Plugin adjustments: Contact Form 7 */

.wpcf7-list-item {
    width: 100% !important;
    margin-left: 0 !important;
}        

img.ajax-loader {
    width: 16px !important;
    height: auto !important;
}

.wpcf7 form .wpcf7-response-output {
    border: none !important;
    width: 95%;
    border-radius: 6px;
    margin: 0 !important;
    padding: 10px 2.5% 10px 2.5% !important;

    color: #fff !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #11C87E;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background: #F03747;
}

.wpcf7-not-valid-tip {
    color: #F03747 !important;
}



/*============================================================================*/
/* ----- BREAKPOINT @ 780 Pixel ----- */
/*============================================================================*/

@media only screen and (max-width: 780px) { 

/* ----- HEADLINES ----- */
h1, h2, h3 {
    -moz-hyphens: auto;
    -o-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto; 
}


/* ----- HEADER ----- */
 
header .wp-block-image.site-logo-custom img {
    width: 90px !important;
}

#classic-menu-wrapper {
    top: 0;
    width: 100vw;
}

/* ----- WOOCOMMERCE ----- */

.woocommerce-MyAccount-content .woocommerce-Address {
    width: calc(100% - 2.5rem) !important;
}

.woocommerce-product-gallery__image {
    aspect-ratio: 4/3;
}

.wc-block-mini-cart__button {
    margin-top: -10px;
}

.wc-block-mini-cart__amount {
    position: absolute;
    bottom: 10px;
    font-size: 10px;
}

header .wp-block-woocommerce-customer-account {
    margin-top: -10px;
}

header .wp-block-woocommerce-customer-account .label {
    position: absolute;
    left: 0;
    bottom: -5px;
    font-size: 10px;
}

} /* <--- END OF BREAKPOINT */


/*============================================================================*/
/* ----- BREAKPOINT @ 600 Pixel ----- */
/*============================================================================*/

@media only screen and (max-width: 600px) { 

/* Media/Text Block */
.wp-block-media-text .wp-block-media-text__content,
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding: 1.25rem 0 0 0;
} 

.wp-block-media-text.alignfull .wp-block-media-text__content,
.wp-block-media-text.has-background .wp-block-media-text__content {
    padding: 0 5% 0 5%;
}

/* Gallery Block */
.wp-block-gallery.has-nested-images figure.wp-block-image {
    width: calc(32% - var(--wp--style--unstable-gallery-gap, 16px)/2) !important;
}
    
} /* <--- END OF BREAKPOINT */