/* 
================================================================================

Theme Name:     BürgerGemeinschaft Berg
Theme URI:      http://www.buergergemeinschaft.de

Description:    Gegenwart leben. Zukunft gestalten. Die BürgerGemeinschaft ist eine unabhängige Wählergemeinschaft aus der Gemeinde Berg am Starnberger See.

Author:         lakeSITE webdesign
Author URI:     http://www.lakesite-webdesign.de

Version:        1.0

Date created:	17/10/2025
Last modified:	23/10/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;}


/*============================================================================*/
/* ----- TEMPLATE & THEME ----- */
/*============================================================================*/

/* ----- HEADER ----- */

header {
    position: relative;
    top: 0;
    height: auto;
    width: 100%;
    z-index: 10;
}

    /* Navigation */

    /* 1st Level */
    nav.main-menu ul li > a {
        padding: 0.313rem;
    }

    nav.main-menu ul li a:hover {
        color: var(--wp--preset--color--traffic-blue) !important;
    }

    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 {
        color: var(--wp--preset--color--traffic-blue) !important;
    }

    /* 2nd Level */
    nav.main-menu ul li ul {
        padding: 1.25rem;
    }

/* ----- 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;}
}

    /* PopUp Plugin */
    .pum-container {
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
    }

        .pum-content {
            padding: clamp(1.875rem, 1.25vw + 1.5rem, 2.5rem) !important; /* 30-40px @ 480-1280px */
        }


/* ----- 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 10% 0 10%;
}

/* 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.075);
}

/* 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--traffic-blue);

    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%;
}

.claim {
    z-index: 2;
    margin-top: clamp(-5rem, -12.5vw + 5rem, 1.25rem) !important;
}


/* ----- BLOCK EDITOR ADJUSTMENTS ----- */

/* Seitentitel */
.post-type-page .edit-post-visual-editor__post-title-wrapper {
    margin: 0 !important;
    text-align: center !important;
    border-bottom: 1px solid #E0E0E0 !important;
}

    .post-type-page .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;
            font-weight: 700;
            font-size: var(--wp--preset--font-size--s);
        }

        main form p {
            margin: 1rem 0 !important;
            font-size: var(--wp--preset--font-size--s);
        }
        
        main input,
        main select,
        main textarea {
            outline: none;
            border: none;
            padding: 14px 18px;
            width: calc(100% - 36px);
            border: 1px solid #DDD;
            background: var(--wp--preset--color--light-grey);

            font-weight: 700;
            color: var(--wp--preset--color--navy-blue);
            font-size: var(--wp--preset--font-size--s);
            font-family: var(--wp--preset--font-family--open-sans)
        }
        
        main select {
            width: 100%;
        }
        
        main textarea {
            height: 150px;
            overflow: auto;
        }

        main input[type=radio],
        main input[type=checkbox] {
            width: auto;
        }  
        
        main input[type="radio"],
        main input[type="checkbox"] {
            width: auto;
            height: auto;
            outline: none;
            appearance: none;
            margin-right: 6px;
            padding: 8px; /* instead of width and height */
            border: 1px solid #DDD;
            -webkit-appearance: none; /* for Safari */
        }

        main input[type="radio"] {
            border-radius: 100%;
        }

        main input[type="radio"]:checked,
        main input[type="checkbox"]:checked {
            background: var(--wp--preset--color--traffic-blue) no-repeat;
        }
        
        main input:focus,
        main select:focus,
        main textarea:focus {
            outline: 2px solid var(--wp--preset--color--navy-blue);
        }

        main input::placeholder,
        main select::placeholder,
        main textarea::placeholder {
            color: #888;
        }

        main input:focus::placeholder,
        main select:focus::placeholder,
        main textarea:focus::placeholder {
            color: var(--wp--preset--color--light-grey);
        }
        
        /* Buttons */
        main input[type=submit],
        main button[type=submit] {
            width: auto;
            border: none;
            cursor: pointer;
            transition: all ease 0.2s;
            color: var(--wp--preset--color--white);
            background: var(--wp--preset--color--traffic-blue);

            font-weight: 400;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
        
        main input[type=submit]:hover,
        main button[type=submit]:hover {
            opacity: 0.8;
        }
        
        main input[type=submit]:active,
        main button[type=submit]:active {
            outline: none;
        }


/* 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: calc(100% - 36px);
    margin: 0 !important;
    padding: 12px 18px !important;

    color: #fff !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #7CD343;
}

.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: #F91337;
}

.wpcf7-not-valid-tip {
    background: #F91337;
    padding: 5px 10px;
    color: white !important;
}


/*============================================================================*/
/* ----- BREAKPOINT @ 920 Pixel ----- */
/*============================================================================*/

@media only screen and (max-width: 920px) { 

/* ----- HEADER ----- */

    .header-inner-container .wp-block-group {
        margin-bottom: -8px !important;
    }

        .header-inner-container .wp-block-group .wp-block-site-logo {
            width: 64px;
        }

    /* Navigation */

    .wp-block-navigation__responsive-container-open {
        display: block !important;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none !important;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close {
        display: block !important;
    }

    /* 1st Level */
    nav.main-menu ul li > a {
        font-weight: 600;
    }

    /* 2nd Level */
    nav.main-menu ul li ul {
        margin-top: 0.625rem;
    }

        nav.main-menu ul li ul li {
            margin: 0.313rem 0;
        }

        nav.main-menu ul li ul li > a {
            font-weight: 400;
            text-transform: none;
        }

    
} /* <--- END OF BREAKPOINT */


/*============================================================================*/
/* ----- 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; 
}
*/


} /* <--- 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%;
}
    
} /* <--- END OF BREAKPOINT */