/* WordPress-Anpassungen: bildet die Block-Auszeichnung auf das Design der statischen Seite ab */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }

body { --c: var(--accent); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
:where(figure) { margin: 0; }
.wp-block-image, .wp-block-image img { margin: 0; }
.wp-block-group, .wp-block-query { box-sizing: border-box; }
.wp-block-post-template { list-style: none; margin: 0; padding: 0; }

/* Kopf */
.wp-block-template-part.nav { position: sticky; top: 0; z-index: 30; }
.admin-bar .wp-block-template-part.nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-block-template-part.nav { top: 46px; } }
.nav .brand { flex: none; }
.nav .draft { margin: 0; }
.nav .hauptmenue { margin-left: auto; }
.nav .hauptmenue .wp-block-navigation__container { gap: 4px; }
.nav .hauptmenue .wp-block-navigation-item__content { display: block; padding: 10px 14px; border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background 150ms; }
.nav .hauptmenue .wp-block-navigation-item__content:hover { background: var(--tint); }
.nav .hauptmenue .current-menu-item > .wp-block-navigation-item__content { background: var(--tint); color: var(--accent); }
.nav .wp-block-navigation__responsive-container-open { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); }
/* Ab 981 px Menü in der Zeile (wie das Original), darunter Burger mit Vollbild-Menü */
@media (min-width: 981px) {
  .nav .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) { display: block; position: relative; width: 100%; z-index: auto; background-color: inherit; }
  .nav .wp-block-navigation__responsive-container-open.always-shown { display: none; }
  .nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close { display: none; }
}
/* Der Weichzeichner des Kopfs würde das Vollbild-Menü auf die Kopfhöhe begrenzen */
.wp-block-template-part.nav:has(.is-menu-open) { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 6px; }
@media (max-width: 1280px) { .nav .draft { display: none; } }
.nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.1rem; padding: 14px 16px; }

/* Knöpfe */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button { margin: 0; }
.wp-block-button__link, .wpcf7-submit {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 .98rem/1 var(--font); padding: 15px 26px; border-radius: 99px;
  background: var(--accent); color: #fff;
  transition: transform 120ms ease-out, background 160ms ease;
}
.wp-block-button__link:hover, .wpcf7-submit:hover { background: var(--accent-dark); color: #fff; }
.wp-block-button__link:active, .wpcf7-submit:active { transform: scale(0.96); transition-duration: 60ms; }
.is-style-light .wp-block-button__link { background: #fff; color: var(--ink); }
.is-style-light .wp-block-button__link:hover { background: #f2f5f4; color: var(--ink); }
.is-style-ghost .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.is-style-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: #fff; color: var(--ink); border: 0; padding: 15px 26px; box-shadow: inset 0 0 0 2px var(--line); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--tint); }
.hero-actions { margin-top: 34px; gap: 14px; }
.hero-actions .is-style-ghost + .is-style-ghost .wp-block-button__link { box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.row .wp-block-buttons { margin-top: 28px; }
.box .wp-block-buttons { margin-top: auto; justify-content: center; }
.kontakt-karte .wp-block-button__link { background: #fff; color: var(--ink); }
.kontakt-karte .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.kontakt-karte .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.1); }

/* Farbstrich (Trenner-Stil) */
hr.wp-block-separator.is-style-farbstrich { display: block; border: 0; height: 7px; width: 104px; margin: 12px 0 0; opacity: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 106 7'%3E%3Crect x='0' y='0' width='16' height='7' rx='3.5' fill='%23f5b83d'/%3E%3Crect x='18' y='0' width='8' height='7' rx='2' fill='%23f5b83d'/%3E%3Crect x='28' y='0' width='8' height='7' rx='2' fill='%235aaee0'/%3E%3Crect x='38' y='0' width='8' height='7' rx='2' fill='%236fbf73'/%3E%3Crect x='48' y='0' width='8' height='7' rx='2' fill='%235aaee0'/%3E%3Crect x='58' y='0' width='8' height='7' rx='2' fill='%23a98ae8'/%3E%3Crect x='68' y='0' width='8' height='7' rx='2' fill='%236fbf73'/%3E%3Crect x='78' y='0' width='8' height='7' rx='2' fill='%235aaee0'/%3E%3Crect x='88' y='0' width='8' height='7' rx='2' fill='%23e8777c'/%3E%3Crect x='98' y='0' width='8' height='7' rx='2' fill='%23e8777c'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.center hr.is-style-farbstrich { margin-inline: auto; }
.hero hr.is-style-farbstrich { width: 130px; height: 9px; margin-top: 22px; }

/* Bildkopf (Cover-Block) */
.wp-block-cover.hero { padding: 0; min-height: min(680px, 86vh) !important; justify-content: flex-start; align-items: center; color: #fff; background: var(--dark); }
.wp-block-cover.kita-hero { min-height: min(620px, 82vh) !important; }
.wp-block-cover.hero .wp-block-cover__image-background { z-index: 0; }
.wp-block-cover.hero .wp-block-cover__background { display: none; }
.wp-block-cover.hero::before { z-index: 1; }
.wp-block-cover.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 2; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 0, 480 0, 720 30 S 1200 70, 1440 20 L1440 90 L0 90 Z' fill='%23eef5f2'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.wp-block-cover.hero .wp-block-cover__inner-container { position: relative; z-index: 3; width: min(1200px, 100% - 48px); margin-inline: auto; padding: 80px 0 150px; color: #fff; }
.wp-block-cover.kita-hero .wp-block-cover__inner-container { padding: 56px 0 170px; }
.hero h1 { color: #fff; }
.hero p.zurueck { display: flex; margin: 0 0 26px; font-size: .92rem; max-width: none; }
.zurueck a { color: inherit; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.zurueck a::before { content: "←"; }
.zurueck a:hover { text-decoration: underline; color: #fff; }
.ort-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.hero p.claim { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; color: #fff; margin-top: 14px; }
.hero p.claim + p { margin-top: 10px; }

/* Abschnitte */
.row > .wp-block-group:not(.row-img) > :first-child { margin-top: 0; }
.row blockquote p { margin: 0 !important; }
.wp-block-quote { margin: 22px 0 0; }
.row-img figure, .row-img .wp-block-image { margin: 0; }
.tile p.raum-nr, .tile p.eyebrow-klein { margin: 0; }
.title > :first-child { margin-top: 0; }
.title p:last-child { margin-bottom: 0; }

/* Kita-Kacheln (Abfrage-Schleife) */
.kita-karten .cards { display: grid; }
.wp-block-post .card { --c: inherit; height: 100%; position: relative; }
.card .card-img { margin: 0; }
.card .card-img a { display: block; height: 100%; }
.card .card-img img { aspect-ratio: auto !important; }
.card .tags { margin: 0; }
.card h3.wp-block-post-title a { color: var(--ink); text-decoration: none; }
.card h3.wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .wp-block-post-excerpt { margin: 0; }
.card .wp-block-post-excerpt__excerpt { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.6; }
.card .wp-block-read-more.link { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--accent); font-size: .95rem; text-decoration: none; }
.card .wp-block-read-more::after { content: " →"; }

/* Termine / Neuigkeiten (Datumsbadge aus zwei Datumsblöcken) */
.date .wp-block-post-date { line-height: 1; }
.date .tag-zahl { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.date .monat { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.events .wp-block-post-template { display: grid; gap: 10px; }
.event .event-text { min-width: 0; }
.event .wp-block-post-title { margin: 0; font-size: .95rem; line-height: 1.35; font-weight: 700; }
.event .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.event .wp-block-post-title a:hover { text-decoration: underline; }
.event .wp-block-post-excerpt, .event .wp-block-post-excerpt__excerpt { margin: 0; color: var(--muted); font-size: .84rem; }
.box .events { margin: 6px 0 10px; }
.kita-news .wp-block-post-template { display: grid; gap: 24px; }
.news-kopf .news-titel h3 { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.news-kopf .unterzeile, .news-kopf .unterzeile p { margin: 2px 0 0; color: var(--text); font-weight: 600; font-size: .875rem; }
.news-text > :first-child { margin-top: 16px; }

/* Galerie */
.wp-block-gallery.has-nested-images.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 40px; }
.wp-block-gallery.has-nested-images.galerie figure.wp-block-image:not(#individual-image) { width: auto; margin: 0; }
.wp-block-gallery.has-nested-images.galerie figure.wp-block-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; display: block; }
.wp-block-gallery.has-nested-images.galerie figure.wp-block-image:first-child { grid-column: span 2; grid-row: span 2; }
.wp-block-gallery.has-nested-images.galerie figure.wp-block-image:first-child img { height: 100%; aspect-ratio: auto; }
@media (max-width: 520px) { .wp-block-gallery.has-nested-images.galerie { grid-template-columns: 1fr 1fr; } .wp-block-gallery.has-nested-images.galerie figure.wp-block-image:first-child { grid-row: span 1; } .wp-block-gallery.has-nested-images.galerie figure.wp-block-image:first-child img { aspect-ratio: 3 / 2; } }

/* FAQ (Details-Block) */
.faq details.wp-block-details > :last-child { margin-bottom: 20px; }
.faq details.wp-block-details p { margin: 0 0 12px; }

/* Öffnungszeiten, Anmeldung */
.zeiten-text .wp-block-buttons { margin: 0; }
.anmeldung .wp-block-buttons { margin: 0; }
.kontakt-links > :first-child { margin-top: 0; }

/* Sprungleiste */
.sprung .wrap { list-style: none; }
.sprung p.sprung-titel { margin: 0; }
.admin-bar .sprung { top: 108px; }

/* Kontaktformular (Contact Form 7) */
.wp-block-cover.contact { padding: 96px 0; display: block; min-height: 0; }
.wp-block-cover.contact .wp-block-cover__background { display: none; }
.wp-block-cover.contact .wp-block-cover__image-background { z-index: 0; }
.wp-block-cover.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(10,40,35,.82); }
.wp-block-cover.contact .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; color: inherit; }
.contact .wpcf7 { max-width: 760px; margin: 0 auto; }
.contact form.form { max-width: none; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { font-size: .85rem; color: #b3261e; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 12px 16px; border-radius: 14px; border-width: 2px; font-size: .92rem; }
.wpcf7-spinner { margin: 0; }

/* Fuß */
.fuss .stripe { margin: 0; }
.foot > div > :first-child { margin-top: 0; }
.foot p { margin: 0; }
.foot .wp-block-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot h4 { margin: 0 0 12px; }
.bottom p { margin: 0; }

/* Einfache Seiten und Beiträge */
.seite-kopf { padding: 72px 0 8px; background: var(--tint); }
.seite-kopf h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.seite-kopf .wp-block-post-date { color: var(--muted); font-weight: 600; margin-top: 8px; }
.seite-inhalt { padding: 48px 0 88px; }
.seite-inhalt .wp-block-post-content > :first-child { margin-top: 0; }
.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; }
.title h1 { margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }

/* Stellenbörse */
body.kita-farbe-1 { --c: var(--k1); } body.kita-farbe-2 { --c: var(--k2); } body.kita-farbe-3 { --c: var(--k3); }
body.kita-farbe-4 { --c: var(--k4); } body.kita-farbe-5 { --c: var(--k5); }
.stellen { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.stelle { --c: var(--accent); position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 24px; box-shadow: var(--shadow); overflow: hidden; transition: transform 160ms ease-out, box-shadow 200ms ease; }
.stelle::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c); }
.stelle:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(18,48,43,.06), 0 20px 44px rgba(18,48,43,.13); }
.stelle h3 { margin: 4px 0 0; font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: var(--ink); }
.stelle p { margin: 0; color: var(--muted); font-size: .95rem; }
.stelle .stelle-info { color: var(--ink); font-weight: 700; }
.stelle .link { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--accent); }
.stelle .link::after { content: " →"; }
.stellen-leer { text-align: center; color: var(--muted); }
a.event { text-decoration: none; color: inherit; }
a.event:hover strong { text-decoration: underline; }
.box .events > .event + .event { margin-top: 0; }
.stelle-kopf .zurueck-dunkel a { color: var(--accent); font-weight: 700; text-decoration: none; }
.stelle-kopf .zurueck-dunkel a::before { content: "← "; }
.stelle-kopf .tags { margin-top: 14px; }
.stelle-inhalt .fakten { margin-bottom: 28px; }
.stelle-inhalt .stelle-pdf { margin: 0 0 32px; }
.btn.outline { display: inline-flex; }
.bewerbung .form { margin-top: 8px; }
.field.check { display: block; font-size: .92rem; }
.field.check input { width: auto; margin-right: 8px; }
.field input[type="file"] { padding: 10px; background: var(--tint); }
.wpcf7-list-item { margin: 0; }

/* Hinweis-Leiste (Plugin: Hinweise) */
.kita-hinweis { position: relative; z-index: 31; background: var(--accent); color: #fff; font-weight: 600; font-size: .95rem; }
.kita-hinweis.wichtig { background: #fdf0d3; color: #6b4a00; }
.kita-hinweis .wrap { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 8px 0; }
.kita-hinweis p { margin: 0; flex: 1; }
.kita-hinweis a { color: inherit; font-weight: 800; }
.kita-hinweis button { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.18); color: inherit; font-size: 1.3rem; line-height: 1; }
.kita-hinweis.wichtig button { background: rgba(107,74,0,.1); }
/* Blöcke des Plugins in Abschnitten */
.box .events { width: 100%; }
.stelle-tiles { grid-template-columns: 1fr 1fr; margin: 32px 0 28px; }
@media (max-width: 760px) { .stelle-tiles { grid-template-columns: 1fr; } }
.stelle-tiles .punkte li { font-size: .96rem; }
.stelle-tiles .punkte { padding-left: 0; }
.stelle-bewerbung { background: var(--tint); border-radius: 18px; padding: 18px 22px; }
.stelle-hinweis { font-size: .9rem; color: var(--muted); }
.stelle-pdf .btn svg { width: 18px; height: 18px; }
