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

Theme Name:     Mammeno
Theme URI:      http://www.mammeno.de

Description:    

Author:         creativdrei Werbeagentur GmbH
Author URI:     http://www.creativdrei.de

Version:        1.0

Date created:	04/11/2025
Last modified:	04/11/2025

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




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

* {
    margin: 0;
    padding: 0;
}

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

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

    /* Text selection */
    ::selection {background: #000; color: #fff;}
    ::-moz-selection { background: #000; color: #fff;}

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

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

    #wp-skip-link {
        visibility: hidden;
    }


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

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

header {
    position: relative;
    top: 0;
    height: auto;
    width: 100%;
    z-index: 10;
    margin-bottom: -80px;
}

    .navigation-wrapper {
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 20;
        opacity: 0.9;
        transition: all 0.4s ease;

    }

    .navigation-wrapper.fixed-on-top {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
    }

    .sticky-placeholder {
        display: none;
    }


/* ----- 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;
}


/* ----- 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 0 0 10%;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding: 0 10% 0 0;
}

/* 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);
}


/* 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(img/icon-download.svg) no-repeat;
    -webkit-mask: url(img/icon-download.svg) no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}


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

/* Seitentitel */
.editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper {
    margin: 0 !important;
    background: #fff !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: #252525;
	    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;
    }


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

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

    main fieldset {
        margin: 0;
        padding: 0;
        border: none;
    }
    
        main legend {display: none;}
        
        main label  {display: block;}
        
        main input,
        main select,
        main textarea {
            border: none;
            background: none;
            width: calc(100% - 40px);
            padding: 14px 20px;
            outline: 2px solid var(--wp--preset--color--dark-turk);
            

            color: var(--wp--preset--color--dark-turk);
            font-size: var(--wp--preset--font-size--m);
            font-family: var(--wp--preset--font-family--work-sans);
        }
        
        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;
            padding: 10px; /* instead of width and height */
            border: 2px solid var(--wp--preset--color--dark-turk);
            -webkit-appearance: none; /* for Safari */
        }

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

        input[type="radio"]:checked,
        input[type="checkbox"]:checked {
            background: var(--wp--preset--color--dark-turk) no-repeat;
        }

        input[type="checkbox"]:checked::after,
        input[type="radio"]:checked::after {
            position: absolute;
            top: -6px;
            left: 6px;
            content: "X";
            font-size: 18px;
            color: white;
        }

        main input:focus,
        main select:focus,
        main textarea:focus {
            outline: 2px solid var(--wp--preset--color--yellow);
        }

        main input::placeholder,
        main select::placeholder,
        main textarea::placeholder {
            color: var(--wp--preset--color--dark-grey);
        }
        
        /* Buttons */
        main input[type=submit],
        main button[type=submit] {
            width: auto;
            cursor: pointer;
            border-radius: 30px;
            margin: 0.625rem 0;
            transition: all ease 0.4s;
        }
        
        main input[type=submit]:hover,
        main button[type=submit]:hover {
            transform: scale(1.05);
        }
        
        main input[type=submit]:active,
        main button[type=submit]:active {
            outline: 2px solid var(--wp--preset--color--yellow);
        }


/* Plugin adjustments: Contact Form 7 */

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

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

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

    color: #fff !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: var(--wp--preset--color--turk);
}

.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: red;
}

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


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

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

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

header {
    margin-bottom: 0;
}

    header .wp-block-site-logo img {
        width: 180px;
    }

    .navigation-wrapper {
        opacity: 1;
        padding: 0.625rem 0 !important;
    }


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

/* 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%;
}
    
} /* <--- END OF BREAKPOINT */