@font-face {
  font-family: 'Chewy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/chewy.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --kg-green: hsl(80, 100%, 25%);
    --kg-green-light: hsl(80, 40%, 70%);
    --kg-orange: hsl(31, 90%, 56%);
    --kg-orange-light: hsl(31, 100%, 76%);
    --kg-yellow-light: hsl(41, 100%, 76%);
    --kg-blue: hsl(211, 55%, 35%);
    --kg-blue-light: hsl(211, 67%, 73%);
    --kg-red: hsl(4, 47%, 53%);
    --kg-red-light: hsl(4, 77%, 83%);
    --kg-font: "Chewy", sans-serif;
}

body, html {
    overflow-x: hidden;
    overflow-x: clip;
}

a, a:visited {
    position: relative;
    color: var(--kg-blue);
}

#main-header {
    background-color: white;
    margin: 0 auto;
    border: none;
    color: var(--kg-blue);
    width: 100%;
}
@media screen and (min-width: 1250px) {
    main .entry-header.has-thumbnail .entry-title {
        margin-left: -2rem !important;
    } 
}
@media screen and (min-width: 700px) {

    #main-header {
        margin: 3rem auto;
        box-shadow: none;
    }
    .site-branding a {
        font-size: 2rem;
    }
    main .entry-header.has-thumbnail .entry-title {
        font-size: 7rem !important;
    }
}
#main-header *, #main-header a:not(:hover, :active, .current-page-ancestor) {
    color: var(--kg-blue) !important;
}
.navbar-container {
    display: flex;
    margin: 0 auto;
    width: 1200px;
}
.navbar .mobile-menu-container {
    background-color: white;
}
.site-branding {
    font-family: var(--kg-font);
}
.clicky-menu .current-menu-item > a, .clicky-menu .current-menu-item > button, .clicky-menu .current-menu-parent > a, .clicky-menu .current-menu-parent > button,
.clicky-menu a:hover, .clicky-menu button:hover, .clicky-menu button[aria-expanded="true"] {
    background-color: var(--kg-blue-light) !important;
}

.clicky-menu > li:last-child a, button.menu-toggle {
    border-color: var(--kg-blue-light);
}

.clicky-menu ul {
    background-color: white;
    box-shadow: 0 0 3rem hsla(221, 67%, 73%, 0.2);
}


article.hentry {
    background-color: transparent;
    width: 1200px !important; 
}
article.hentry::before {
    display: none;
}

article.hentry a, article.hentry a * {
    transition: all .3s;
}
article.hentry > * {
    z-index: 10;
}

.entry-header, .page-header, .page-content, .entry-content > p,
.entry-content > h1, .entry-content > h2, .entry-content > h3, .entry-content > ul, .entry-content > ol, .entry-content > h4, .entry-content > div:not(.wp-block-image), .entry-content > blockquote, .entry-summary > p, .entry-summary > h1, .entry-summary > h2, .entry-summary > h3, .entry-summary > ul, .entry-summary > ol, .entry-summary > h4,
.entry-summary > div:not(.wp-block-image), .entry-summary > blockquote {
    width: 920px;
}

article.hentry .entry-content > p::before,
article.hentry .entry-content > p::after {
    width: 0; 
    height: 0; 
    border-top: 10rem solid transparent;
    border-bottom: 10rem solid transparent;
    border-left: 12rem solid var(--kg-orange-light);
    position: absolute;
    left: -14rem;
    transform: rotate(24deg);
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    filter: drop-shadow(2rem .5rem 0 hsla(0, 0%, 0%, 0.05));
}
article.hentry .entry-content > p::after {
    left: auto;
    right: -14rem;
}

article.hentry p:nth-of-type(2)::after {
    content: "";
}
article.hentry p:nth-of-type(4)::before {
    content: "";
    border: 8rem solid var(--kg-yellow-light);
    border-radius: 100%;
}
article.hentry p:nth-of-type(8)::before {
    content: "";
    border-left-color: var(--kg-green-light);
    transform: rotate(144deg);
}

:is(article, footer) :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6), .page-title {
    color: var(--kg-blue-light);
    font-family: var(--kg-font);
    font-weight: 500;
}

h2, .h2 {
    font-size: 1.8rem;
}
h3, .h3 {
    font-size: 1.6rem;
}
h4, .h4 {
    font-size: 1.4rem;
}
h5, .h5 {
    font-size: 1.2rem;
}
article blockquote {
    font-family: var(--kg-font);
    color: var(--kg-orange);
    font-size: 1.5rem;
    line-height: 1.1;
}
article blockquote::before {
    content: "„";
    position: absolute;
    pointer-events: none;
    left: -2rem;
    top: -10rem;
    bottom: 0;
    font-size: 43rem;
    line-height: 0;
    opacity: .2;
}

article.hentry p:last-child::after {
    content: "";
    border-color: var(--kg-red-light);
    transform: rotate(14deg);
    z-index: 10;
    filter: drop-shadow(2rem .5rem 0 hsla(0, 0%, 0%, 0.05));
}

main {
    padding-top: 1rem !important;
}

main .entry-header {
    text-align: center;
    text-wrap: balance;
    margin-bottom: 4rem;
}
main .entry-header.has-thumbnail {
    position: relative;
    
    display: flex;
    align-items: flex-end;
    
    width: 1200px;
    background-color: var(--kg-blue-light);
    min-height: min(50vh, 300px);
    min-height: min(50vh, 500px);
    

    filter: drop-shadow(.5rem .5rem 0 hsla(0, 0%, 0%, 0.05));
    text-align: left;
}
main .entry-header:not(.split-header).has-thumbnail::after {
    content: "";
    height: 15rem;
    width: 15rem;
    background-color: var(--kg-red-light);
    position: absolute;
    right: -3rem;
    bottom: -3rem;
    transform: rotate(-10deg);
    z-index: -1;
} 
main .entry-header.has-thumbnail .post-thumbnail {
    margin: 0 !important;
    object-fit: cover;
    position: absolute;
    height: auto !important;
    width: 100% !important;
    padding: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

main .entry-header .entry-title {
    font-family: var(--kg-font);
    font-size: 2rem;
    font-weight: 1000;
    color: var(--kg-blue-light);
    margin: 0;
    line-height: .9;
}
main .entry-header.has-thumbnail .entry-title {
    margin-bottom: -2rem;
    text-shadow: 0 0 3rem white;
    color: var(--kg-blue);
}
main .entry-header .entry-title::after {
    display: none;
}

footer.site-footer {
    background-color: var(--kg-blue) !important;
    z-index: 1;
}
footer.site-footer a {
    color: white !important;
    text-decoration: underline !important;
}
footer.site-footer a:not(:active, :hover) {
    opacity: .8;
}
footer.site-footer > * {
    max-width: 100% !important;
}

button, .button, div.button-wrapper > a, a:has(div.button-wrapper), button:hover, button:active, .button:hover, .wp-block-button .wp-block-button__link:active, .wp-block-button .wp-block-button__link:hover, .wp-block-file__button:active, .wp-block-file__button:hover {
    background: var(--kg-orange);
    color: white !important;
    border-radius: 5rem;
    padding: 1rem 1.5rem;
    font-weight: bolder;
}
.button-wrapper {
    text-align: center;
    margin: 1rem auto;
    position: relative;
}
.button.secondary {
    background-color: transparent;
    color: black !important;
    border: 2px solid var(--kg-orange);
    padding: 5px 20px;
}
h4 {
    position: relative;
}
.button-wrapper, a:has(.button-wrapper) {
    display: inline-block;
}
:is(h4.button-wrapper, .button-wrapper h4, h4 .button-wrapper)::before,
:is(h4.button-wrapper, .button-wrapper h4, h4 .button-wrapper)::after {
    content: "";
    display: block;
    background-image: url(../img/footprint.png);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    bottom: -1.5em;
    left: -0em;
    height: 1.5em;
    width: 1.5em;
    filter: contrast(0.5) sepia() brightness(2.4) saturate(2) hue-rotate(44deg);
    transform: rotate(34deg);
}
:is(h4.button-wrapper, .button-wrapper h4, h4 .button-wrapper)::after {
    bottom: -1.5em;
    left: -2em;
    filter: contrast(0.5) sepia() brightness(2.4) saturate(2) hue-rotate(152deg);
    transform: scaleX(-1) rotate(-19deg);
}
#main-header button.menu-toggle {
    color: white !important;
    padding: 10px 15px;
    align-self: center;
}
a > .button-wrapper {
    margin: 0;
}
:is(button, a.button, .button a, div.button-wrapper > a, a:has(div.button-wrapper)):is(:hover, :active) {
    background-color: var(--kg-blue) !important;
    border-color: var(--kg-blue) !important;
    color: white !important;
    filter: drop-shadow(.5rem .5rem 0 hsla(0, 0%, 0%, 0.05));
}
.clicky-menu > li a, .menu-toggle {
    border-radius: 5rem;
}

#platzanfrage-floating {
    position: sticky;
    display: block;
    width: min-content;
    bottom: 10px;
    right: 10px;
    margin-left: auto;
    margin-bottom: 1rem;
    z-index: 20;
    background-color: var(--kg-orange);
    box-shadow: 0 0 2rem var(--kg-orange-light);
}
#platzanfrage-floating::after {
    content: " ➜";
}
#platzanfrage-floating:is(:active, :hover) {
    background-color: var(--kg-orange) !important;
    box-shadow: 0 0 2rem var(--kg-orange);
}

.kindergarten-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 5rem auto;
    width: 1200px !important;
    max-width: 100%;
}
.kindergarten-links.aktuelles {
    flex-direction: column;
    width: 920px !important;
    margin-top: 2rem;
}
.kindergarten-links img,
.kindergarten-links .img-placeholder {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 2 / 1;
    filter: drop-shadow(.5rem .5rem 0 hsla(0, 0%, 0%, 0.05));
    transition: all .3s;
}
.kindergarten-links.aktuelles img,
.kindergarten-links.aktuelles .img-placeholder {
    aspect-ratio: 1 / 1;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    transition: all .3s;
}
.kindergarten-links > *:nth-of-type(1) :is(img, .img-placeholder) {
    background-color: var(--kg-green-light);
}
.kindergarten-links > *:nth-of-type(2) :is(img, .img-placeholder) {
    background-color: var(--kg-orange-light);
}
.kindergarten-links > *:nth-of-type(3) :is(img, .img-placeholder) {
    background-color: var(--kg-yellow-light);
}
.kindergarten-links > *:nth-of-type(4) :is(img, .img-placeholder) {
    background-color: var(--kg-blue-light);
}
.kindergarten-links h3 {
    font-family: var(--kg-font);
    color: var(--kg-blue)
    font-weight: 400;
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: .75rem;
    line-height: 1.2;
}
.kindergarten-links p {
    color: var(--color-black);
    margin: 0;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.5;
}
.kindergarten-links:not(.aktuelles) > * {
    max-width: 470px;
}

.kindergarten-links > * {
    position: relative;
    flex-basis: 340px;
    flex-grow: 1;
    text-decoration: none;
    padding: .5rem;
    transition: all .3s;
}
.kindergarten-links.aktuelles > * {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    flex-basis: 0;
}
.kindergarten-links.aktuelles > a {
    width: max-content;
    max-width: 100%;
}
.kindergarten-links.aktuelles > a > div {
    min-width: 0;
    max-width: min(100%, 500px);
}
.kindergarten-links a:is(:active, :hover) h3 {
    color: var(--kg-orange);
}
.kindergarten-links a:is(:active, :hover) :is(img, .img-placeholder) {
    filter: drop-shadow(.75rem .75rem 0 hsla(0, 0%, 0%, 0.05));
    transform: scale(1.02);
}
a:is(:active, :hover) {
    color: var(--kg-orange);
}

table {
    width: 700px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
table tr {
    border-color: var(--kg-blue-light);
}

table tr td:first-of-type {
    width: 200px;
}

hr {
    height: 3rem;
    width: 3rem;
    background-color: var(--kg-orange-light);
    margin: 5rem auto;
    border-radius: 50%;
    position: relative;
    clear: both;
    
}
hr::before {
    display: block;
    content: "";
    height: 2.8rem;
    width: 2.8rem;
    background-color: var(--kg-blue-light);
    transform: rotate(22deg);
    margin-left: -5rem;
}
hr::after {
    display: block;
    content: "";

    border-top: 1.8rem solid transparent;
    border-bottom: 1.8rem solid transparent;
    border-left: 2rem solid var(--kg-green-light);
    border-right: 0 solid transparent;
    transform: rotate(-7deg);
    margin-left: 4rem;
    width: 0;
    height: 0;
}

article form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 100%;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--kg-green-light);
    filter: drop-shadow(1rem 1rem 0 hsla(0, 0%, 0%, 0.05));
}

@media screen and (min-width: 700px) {
    article form {
        grid-template-columns: minmax(250px, 1fr) minmax(400px, 2fr);
        width: min-content;
    }
    main .entry-header .entry-title {
        font-size: 5rem;
    }
    article blockquote {
        font-size: 4rem;
    }
    #platzanfrage-floating {
        bottom: 2rem;
        right: 2rem;
    }
    h2, .h2 {
        font-size: 4rem;
    }
    h3, .h3 {
        font-size: 3rem;
    }
    h4, .h4 {
        font-size: 2rem;
    }
    h5, .h5 {
        font-size: 1.5rem;
    }
    .entry-content ul li {
        font-size: 1.2em;
    }
}

article form fieldset {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border: 0;
    padding: 0;
    margin: 0;
    grid-column: 1 / -1;
}
article form fieldset legend {
    margin-bottom: .75rem;
}
article form fieldset label {
    display: flex;
    gap: .5rem;
}
article form > label {
    display: contents;
}
article form > p {
    grid-column-end: -1;
    grid-column-start: 1;
}

article form > label span {
}
article form label:has(input[required]) span::after {
    content: " *";
    padding-left: .1em;
    color: var(--kg-green);
}
article form > label, article form fieldset > legend {
    font-weight: bolder;
    hyphens: manual;
    line-height: 1.2;
}
article form :is(textarea, input[type=text], input[type=email], input[type=phone]) {
    align-self: center;
    padding: .3rem .6rem;
    border-radius: 4px;
}
article form textarea {
    height: 10rem;
}
article form button {
    grid-column: 1 / -1;
    margin-left: auto;
    font-size: 1rem;
    font-weight: bolder;
    background-color: var(--kg-green);
}

.entry-content ul {
    margin: 4rem auto;
}
.entry-content ul li {
    max-width: 700px;
    margin: 1.7rem auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style-type: none;
    line-height: 1.3;
}
.entry-content ul li::before {
    background-color: var(--kg-blue-light);
    content: "";
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
}
.entry-content ul li:nth-of-type(3n)::before {
    transform: scale(.9) rotate(45deg);
}
.entry-content ul li:nth-of-type(3n+1)::before {
    border-radius: 1em;
    transform: scale(1.1);
}
.entry-content ul li:nth-of-type(5n+4)::before {
    background-color: var(--kg-red-light);
}
.entry-content ul li:nth-of-type(5n+3)::before {
    background-color: var(--kg-orange-light);
}
.entry-content ul li:nth-of-type(5n+2)::before {
    background-color: var(--kg-green-light);
}
.entry-content ul li:nth-of-type(5n+1)::before {
    background-color: var(--kg-yellow-light);
}

.entry-content > div.osmMap {
    width: 50% !important;
    height: 300px;
    float: left;
    margin-bottom: 5rem;
    margin-right: 1rem !important;
}
.ol-control button {
    color: black !important;
}

header.entry-header.split-header {
    position: relative;
    margin: 0 auto;
    margin-bottom: 3rem;
    width: calc(100% - 2rem);
    transform: translate3d(0,0,0);
}

.split-header a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 40%;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    background-color: var(--kg-orange-light);
    background-size: cover;
    background-position: center;
    transform: translate(-5%, -5%);
    transform-origin: top left;
    filter: saturate(1);

    color: white;
    text-shadow: 0 0 10px black;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 1rem 0;
    padding-left: 1rem;
    padding-right: 5%;
    text-decoration: none;
    font-family: var(--kg-font);
    font-size: 2.5rem;
    line-height: 1.1;

    overflow: visible;

    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
}
@media screen and (min-width: 700px) {
    header.entry-header.split-header {
        margin: 3rem auto;
        width: calc(100% - 4rem);
    }
    header.entry-header.split-header a {
        font-size: 3.5rem;
    }
}
.split-header a:last-of-type {
    left: 40%;
    right: 0;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    background-color: var(--kg-green-light);
    transform: translate(5%, 5%);
    transform-origin: bottom right;

    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    padding-right: 1rem;
    padding-left: 5%;

    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 2rem;
    border-bottom-right-radius: 2rem;
}
.split-header a:hover {
    transform: translate(-7%, -7%) scale(1.1);
}
.split-header:has(a:hover) a:not(:hover) {
    filter: saturate(0.6);
}
.split-header a:last-of-type:hover {
    transform: translate(7%, 7%) scale(1.1);
}


/* Lightbox */

/* Basic reset & layout */

/* When using <dialog> the element is the backdrop + modal; when fallback, the same class will be used */
.wp-lightbox-dialog::backdrop { background: rgba(0,0,0,0.6); }

.wp-lightbox-dialog .wp-lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

/* dialog size and centering */
.wp-lightbox-dialog { padding: 0; border: none; background: transparent; }
.wp-lightbox-dialog .lb-img-wrap { display:flex; align-items:center; justify-content:center; max-width: 90vw; max-height: 80vh; }
.wp-lightbox-dialog .lb-image { display:block; max-width: 90vw; max-height: 80vh; width: auto; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-radius: 6px; }

/* Controls */
.wp-lightbox-dialog .lb-prev, .wp-lightbox-dialog .lb-next, .wp-lightbox-dialog .lb-close {
  position: absolute;
  z-index: 30;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 1.6rem;
  padding: 0.5rem 0.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.wp-lightbox-dialog .lb-close { top: 1rem; right: 1rem; font-size: 1.4rem; }
.wp-lightbox-dialog .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.wp-lightbox-dialog .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.wp-lightbox-dialog .lb-caption { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.95rem; max-width: 90vw; text-align: center; opacity: 0.95; }

/* Fallback overlay style when <dialog> not supported */
.wp-lightbox-dialog.dialog-fallback {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); z-index: 9999;
}
.wp-lightbox-dialog.dialog-fallback.open { display:flex; }

/* small screens adjustments */
@media (max-width: 600px) {
  .wp-lightbox-dialog .lb-close { right: 0.5rem; top: 0.5rem; }
}