/*
Theme Name: Preschool & Kindergarten Child
Description: Child-Theme für das Preschool & Kindergarten Theme
Template: preschool-and-kindergarten
Version: 1.0.0
*/

/* Custom styles for the After Main Content Widget */
.after-main-content-widget-area {
    margin: 30px 0;
    border-radius: 5px;
}

.after-main-content-widget {
    margin-bottom: 20px;
}

.after-main-content-widget:last-child {
    margin-bottom: 0;
}

.after-main-content-widget .widget-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .after-main-content-widget-area {
        margin: 20px 0;
        padding: 15px;
    }
}

/* Hier können Sie weitere CSS-Anpassungen hinzufügen */

:root {
    --rot: #E14755;
    --gelb: #E5DE4A;
    --blau: #41AAD4;
    --main: #616161;
}
body {
    overflow-x: hidden;
	font-family: 'Lato', sans-serif;
    font-size: clamp(0.9rem, 4.5cqw, 1rem);
	line-height: 140%;
}
li {
    margin-bottom: 0.25em;
}
#primary .post .entry-content h1, #primary .page .entry-content h1 {
    font-size: 1.75rem;
    line-height: 120%;
    color: unset;
    text-transform: uppercase;    
}
h2 {
    margin-bottom: 0.5em;
}
.site-branding {
    display: grid;
}
.page-header {
    .page-title {
        color: var(--rot);
    }
}
/* allgemeine Formatierungen */

#primary .post .entry-content h3, #primary .page .entry-content h3 {
    font-size: 1.5rem;
    line-height: 125%;
    margin-block: 0.25em 0.5em;
}
#primary .post .entry-content h4, #primary .page .entry-content h4 {
    font-size: 1.1rem;
    line-height: 140%;
    margin-block: 0.25em;
}

.scroll-container    {
    scroll-behavior: smooth;
    h2 {
        scroll-margin-top: 5em;
    }
}

/* Widgets */

.widget {
    color: var(--main);
    .widget-title {
        line-height: 120%;
        margin-bottom: 0.5em;
        color: var(--main);
        a {
            color: var(--main)!important;
        }
    }   
    h2.widget-title {
        font-size: 1rem;
        line-height: 120%;
        padding-bottom: 0.25em;
        border-bottom: 1px solid var(--gelb);
    }
    h3.widget-title {
        text-transform: none
    }
    ul li {
        color: var(--main);
        padding-left: 0;
        a {
            color: var(--main);
        }
    }
    ul li:before {
        display: none;
    }
    ul.link-list {
        list-style-type: square;
        padding-left: 1.5em;
        li::marker {
            color: var(--blau);
        }
        li:hover::marker {
            color: var(--rot);
        }
    }
}
#primary .post .entry-content h2, #primary .page .entry-content h2 {
    font-size: clamp(0.9rem, 4.5cqw, 1.9rem);
	line-height: 120%;
    color: var(--blau);
    margin-block: 0 0.5em;
}
h3.event-title {
    font-size: 0.8rem!important;
	svg {
		display: none;
	}
}
#primary .post .entry-content table, #primary .page .entry-content table {
    color: var(--main);
}

/* Navigation auf Ganztagsseite "Das offene Ganztagsangebot" */
ol.gts-angebot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    inset: 0;
    padding: 0;
    list-style-position: inside;
    li {
        margin-left: 0;
        background: var(--blau);
        color: white;
        inset: 0;
        border-radius: 0.25em;
        transition: 200ms;
        padding-left: 0.5em;
    }
    li:hover {
        background: var(--rot);
    }
    a, a:hover {
        color: white;
        text-decoration: none;
        padding: 0.5em;
        display: inline-block;
    }
}
a.btn, a:hover.btn {
    background: var(--blau);
    color: white;
    border-radius: 0.25em;
    transition: 200ms;
    padding: 0.25em 0.5em;
    text-decoration: none;
}

/* Terminkalender */
.mc-main .mc_ferien .event-title button {
    background: #41AAD4 !important;
    color: #fff;   
}
.multidate header {
    background: aliceblue!important;
}

/* Themenseite Nachhaltigkeit */
.thema .icon {
    border-bottom: 1px solid var(--blau);
    padding: 0.5em 0;
    margin-bottom: 0.5em;
    a {
        margin: 0;
        padding: 0;
        text-decoration: none;
        line-height: 100%;
    }
    img {
        width: 100px;
        height: auto;
        margin: 0;
    }
}
.thema .inhalt {
    display: grid;
    grid-template-columns: 150px auto;
    gap: 0.5em;
    align-items: start;
    h3 {
        margin-top: 0;
    }
    .bilder {
        padding-top: 0.5em;
    }
}

/* Beiträge */
.byline {
    display: none!important;
}

/* ---- Navigation ---- */

/* Hauptnavigation */
.main-navigation .current_page_item>a, 
.main-navigation .current-menu-item>a, 
.main-navigation .current_page_ancestor>a, 
.main-navigation .current-menu-ancestor>a, 
.main-navigation ul li a:hover, 
.main-navigation ul li a:focus {
    color: var(--rot);
}



/* Buttons */
a.wp-block-button__link {
    color: #fff;
    text-decoration: none;
    background-color: var(--blau);
    border-radius: 0.5em;
}
a.wp-block-button__link:hover {
    background-color: var(--rot);
    color: #fff;
    text-decoration: none;
}
button, input[type="button"], input[type="reset"], input[type="submit"] {
    border: 2px solid #41aad4;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 100%;
    padding: 8px;
    text-transform: uppercase;
    background: none;
}


/* Servicemenü im Footer */
ul#menu-servicemenue {
    list-style: square;
	li::marker {
		color: var(--blau);
	}
	li:hover::marker {
		color: var(--rot);
	}
}

/* Blogbereich */
ul.category-posts-internal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1em;
}

/* Sidebar */
aside#secondary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1em;
}
/* Lightbox */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    animation: openOverlay 350ms ease-in-out forwards;
}
.lightbox-image {
    border-radius: 0.5em;
    overflow: hidden;
    padding: 0;
    transform: scale(0);
    animation: openImage 350ms ease-in-out 100ms forwards;
}
.lightbox-image.close {
    animation: closeImage 350ms ease-in;
}
.lightbox-overlay.close {
    animation: closeOverlay 350ms ease-in 250ms;
}
@keyframes openImage {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}
@keyframes closeImage {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0);
    }
}
@keyframes openOverlay {
    from {
        opacity: 0;
    } 
    to {
        opacity: 1;
    }
}
@keyframes closeOverlay {
    from {
        opacity: 1;
    } 
    to {
        opacity: 0;
    }
}
.lightbox-image-wrapper {
    position: relative;
}
.lightbox-close-button {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--rot);
    cursor: pointer;
}
.lightbox-close-button:hover {
    color: var(--blau);
}

/* Media Queries */
@media (max-width: 1024px) {
    .mobile-header {
        background: #fff url(images/line.png) repeat-x top;
        .menu-opener {
            background: #fff;
            position: fixed;
            right: 25px;
            top: 25px;
            border: 1px solid var(--blau);
            padding: 0.5em;
            border-radius: 0.25em;
            z-index: 7777;
            height: 40px;
            width: 40px;
        }
    }
    .mobile-menu {
        z-index: 10000;
    }
}
