/*
Theme Name: Wichtelland
Template: kadence
Description: Child-Theme der Kita Wichtelland auf Basis von Kadence (seit 27.11.2026).
Version: 1.0.0
Text Domain: wichtelland
*/

:root {
	--kita-blau: #26b4d7;
	--kita-blau-dunkel: #1b6f86;
	--kita-gelb: #fec20b;
	--kita-orange: #fd8e00;
	--kita-gruen: #7cb342;
	--kita-rosa: #e8577e;
	--kita-creme: #f8f2dc;
	--kita-text: #33404a;
	--kita-grau: #6b7780;
	--kita-r: 18px;
}

/* ---------- Grundlagen ---------- */
body { font-family: 'Dosis', sans-serif; font-size: 19px; line-height: 1.6; color: var(--kita-text); }
h1, h2, h3, h4, .site-title, .wp-block-heading { font-family: 'Patrick Hand', cursive; font-weight: 400; letter-spacing: 0; }
.entry-content a:not(.wp-block-button__link) { color: var(--kita-blau-dunkel); }
.wp-block-button__link { border-radius: 999px; font-weight: 600; padding: 13px 28px; }

/* Unterzeile ueber Ueberschriften (Absatz mit Klasse "unterzeile") */
.unterzeile { font-weight: 700; color: var(--kita-orange); letter-spacing: .12em; text-transform: uppercase; font-size: 15px !important; margin-bottom: 4px !important; }

.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }
.entry-content > .wp-block-group, .entry-content > .wp-block-columns { margin-top: 0; }

/* ---------- Kopf ---------- */
.site-top-header-wrap .header-html { font-size: 15px; color: #e6f5fa; }
.site-top-header-wrap .header-html a, .site-top-header-wrap .header-html span { color: #e6f5fa; text-decoration: none; margin-left: 22px; }
.site-top-header-wrap .header-html a:hover { color: #fff; text-decoration: underline; }
.site-branding .site-title { font-family: 'Patrick Hand', cursive; }
.site-branding a.brand img { border-radius: 50%; }
.main-navigation .primary-menu-container > ul > li.menu-item > a { padding-left: .7em; padding-right: .7em; }
.header-button-wrap .header-button, .mobile-header-button-wrap .mobile-header-button {
	background: var(--kita-gelb); color: #3a2c00; border-radius: 999px; font-weight: 700; padding: .65em 1.5em; border: 0; }
.header-button-wrap .header-button:hover, .mobile-header-button-wrap .mobile-header-button:hover { background: #f2b400; color: #3a2c00; }

/* Seitentitel-Bereich */
.entry-hero-container-inner { background: var(--kita-creme); }
.entry-hero .entry-title { font-size: clamp(38px, 5vw, 54px); color: var(--kita-blau-dunkel); }

/* ---------- Bausteine ---------- */
.kita-text { max-width: 860px; margin-left: auto; margin-right: auto; }
.kita-abschnitt { padding-top: 80px; padding-bottom: 40px; }
.kita-abschnitt-klein { padding-top: 40px; padding-bottom: 20px; }
.kita-klein { font-size: 15px; color: var(--kita-grau); }
.kita-karte { background: #fff; border-radius: var(--kita-r); padding: 28px 26px !important; box-shadow: 0 6px 24px rgba(120, 100, 40, .10); }
.kita-karten-reihe { gap: 24px; margin-top: 30px; margin-bottom: 30px; }
.kita-karte h3, .kita-karte h4 { margin-top: 0; }
.kita-bank { background: var(--kita-creme); border-radius: 12px; padding: 16px 18px; }
.kita-banner img { width: 100%; height: auto; border-radius: var(--kita-r); }
.kita-teamfoto img { border-radius: var(--kita-r); }
.kita-zwei { gap: 48px; }
.kita-kopfzeile { align-items: flex-end; margin-bottom: 10px; }
.kita-kopfzeile h2 { margin-bottom: 0; }

/* Titelbild mit Bildwechsel (Aussengelaende -> Gruppenraum) */
.kita-titel { position: relative; min-height: 600px; display: flex; flex-direction: column; justify-content: center;
	padding-top: 60px !important; padding-bottom: 130px !important; color: #fff; overflow: hidden; background: #1b4d5c; isolation: isolate; }
.kita-titel::before, .kita-titel::after { content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.kita-titel::before { background-image: linear-gradient(90deg, rgba(18,60,75,.72) 0%, rgba(18,60,75,.35) 55%, rgba(18,60,75,.08) 100%), url(/wp-content/uploads/2022/06/1656356156568.jpg); }
.kita-titel::after { background-image: linear-gradient(90deg, rgba(18,60,75,.72) 0%, rgba(18,60,75,.35) 55%, rgba(18,60,75,.08) 100%), url(/wp-content/uploads/2026/11/kita-wichtelland-gruppenraum-fenster.jpg); animation: kita-wechsel 14s infinite; opacity: 0; }
@keyframes kita-wechsel { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.kita-titel > * { position: relative; }
.kita-titel .wp-block-heading, .kita-titel p { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.kita-titel > .wp-block-group__inner-container { box-sizing: border-box; width: 100%; max-width: 1180px; margin: 0 auto !important; }
.kita-titel .wp-block-group__inner-container > * { max-width: 720px; }
.kita-titel h1 { font-size: clamp(42px, 6vw, 66px); line-height: 1.08; margin-bottom: 18px; }
.kita-titel p { font-size: clamp(18px, 2vw, 23px); margin-bottom: 28px; }
/* Welle unten */
:root { --welle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C240,95 480,95 720,60 C960,25 1200,20 1440,55 L1440,90 L0,90 Z' fill='%23f8f2dc'/%3E%3C/svg%3E"); }
.kita-fakten { background: var(--kita-creme); padding-top: 0 !important; padding-bottom: 70px !important; position: relative; }
.kita-fakten::before { content: ""; position: absolute; left: 0; right: 0; top: -89px; height: 90px; background: var(--welle) center / 100% 100% no-repeat; pointer-events: none; }

/* Knoepfe im Titelbild */
.kita-knopf-gelb .wp-block-button__link { background: var(--kita-gelb); color: #3a2c00; }
.kita-knopf-gelb .wp-block-button__link:hover { background: #f2b400; color: #3a2c00; }
.kita-knopf-hell .wp-block-button__link { color: #fff; border-color: #fff; background: transparent; }
.kita-knopf-hell .wp-block-button__link:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.kita-knopf-weiss .wp-block-button__link { background: #fff; color: var(--kita-blau-dunkel); }

/* Vier Kurz-Infos */
.kita-fakten-reihe { gap: 22px; }
.kita-fakt { background: #fff; border-radius: var(--kita-r); padding: 26px 20px !important; text-align: center; box-shadow: 0 6px 22px rgba(120, 100, 40, .08); }
.kita-fakt h3 { font-size: 27px; margin: 0 0 6px; color: var(--kita-blau-dunkel); }
.kita-fakt h3::before { content: ""; display: block; width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 50%; background: var(--ic-bg) var(--ic) center / 34px no-repeat; }
.kita-fakt p { font-size: 16px; color: var(--kita-grau); line-height: 1.45; margin: 0; }
.kita-fakt-1 { --ic-bg: #fff3cf; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fd8e00' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 21c0-4 3-7 7-7s7 3 7 7'/%3E%3C/svg%3E"); }
.kita-fakt-2 { --ic-bg: #dff4fa; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326b4d7' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='9' r='3'/%3E%3Ccircle cx='17' cy='9' r='3'/%3E%3Cpath d='M2 20c0-3 2-5 5-5s5 2 5 5M12 20c0-3 2-5 5-5s5 2 5 5'/%3E%3C/svg%3E"); }
.kita-fakt-3 { --ic-bg: #e6f3d9; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cb342' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 3h6M10 3v6l-5 9a2 2 0 0 0 2 3h10a2 2 0 0 0 2-3l-5-9V3'/%3E%3Cpath d='M7 15h10'/%3E%3C/svg%3E"); }
.kita-fakt-4 { --ic-bg: #fbe1e8; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8577e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 21s-8-5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 6-8 11-8 11z'/%3E%3C/svg%3E"); }

/* Willkommen mit Foto */
.kita-foto-deko { position: relative; isolation: isolate; }
.kita-foto-deko img { border-radius: 28px; box-shadow: 0 18px 40px rgba(0, 0, 0, .12); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.kita-foto-deko::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: var(--kita-gelb); left: -34px; bottom: -34px; z-index: -1; }
.kita-foto-deko::after { content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%; background: var(--kita-blau); right: -24px; top: -24px; z-index: -1; opacity: .85; }
.kita-zwei { align-items: center; }

/* Kacheln fuer Eltern */
.kita-kacheln { background: var(--kita-creme); padding-top: 80px !important; padding-bottom: 80px !important; }
.kita-kacheln-reihe { gap: 22px; margin-top: 26px; }
.kita-kachel { position: relative; border-radius: var(--kita-r); padding: 28px 24px 22px !important; color: #fff; min-height: 230px; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.kita-kachel:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .12); }
.kita-kachel h3 { color: #fff; font-size: 31px; margin: 0 0 6px; }
.kita-kachel h3 a { color: #fff; text-decoration: none; }
.kita-kachel h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kita-kachel p { margin: 0; font-size: 17px; line-height: 1.5; }
.kita-kachel p.mehr { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: 16px; }
.kita-kachel .kita-marke { align-self: flex-start; font-size: 13px; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.kita-kachel-1 { background: var(--kita-orange); }
.kita-kachel-2 { background: var(--kita-blau); }
.kita-kachel-3 { background: var(--kita-gruen); }
.kita-kachel-4 { background: var(--kita-rosa); }

/* Leitspruch */
.kita-spruch { background: var(--kita-blau); color: #fff; padding-top: 80px !important; padding-bottom: 80px !important; text-align: center; position: relative; overflow: hidden; }
.kita-spruch::before, .kita-spruch::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.kita-spruch::before { width: 320px; height: 320px; left: -90px; top: -120px; }
.kita-spruch::after { width: 220px; height: 220px; right: -60px; bottom: -80px; }
.kita-spruch .kita-zitat { font-family: 'Patrick Hand', cursive; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; max-width: 920px; margin: 0 auto 14px; color: #fff; }
.kita-spruch .kita-quelle { opacity: .9; margin: 0; color: #fff; }

/* Fotowand (Startseite) */
.kita-mosaik.wp-block-gallery.has-nested-images { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 16px; }
.kita-mosaik.wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; border-radius: var(--kita-r); overflow: hidden; }
.kita-mosaik.wp-block-gallery.has-nested-images figure.wp-block-image:first-child { grid-row: span 2; }
.kita-mosaik.wp-block-gallery.has-nested-images figure.wp-block-image img { height: 100%; object-fit: cover; }

/* Raum-Galerie (Die Kita) */
.kita-raumgalerie.wp-block-gallery.has-nested-images figure.wp-block-image { border-radius: 14px; overflow: hidden; }
.kita-raumgalerie.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Instagram */
.kita-insta #sb_instagram .sbi_photo { border-radius: 14px; overflow: hidden; }
.kita-insta #sb_instagram .sb_instagram_header, .kita-insta #sb_instagram #sbi_load { display: none; }

/* Kontakt-Band */
.kita-kontakt-band { background: var(--kita-creme); padding-top: 80px !important; padding-bottom: 80px !important; }
.kita-kontakt-karte { background: #fff; border-radius: 28px; padding: 44px !important; box-shadow: 0 10px 30px rgba(120, 100, 40, .08); }
.kita-kontakt-karte .wp-block-columns { gap: 40px; margin: 0; }
.kita-spenden-box { background: var(--kita-gelb); border-radius: 22px; padding: 28px !important; color: #3a2c00; }
.kita-spenden-box h3 { color: #3a2c00; margin-top: 0; }

/* Termine-Tabelle */
.kita-termine .wp-block-table table { border-collapse: separate; border-spacing: 0; border: 2px solid var(--kita-blau); border-radius: 12px; overflow: hidden; }
.kita-termine .wp-block-table thead { border: 0; }
.kita-termine .wp-block-table th { background: var(--kita-blau); color: #fff; text-align: left; }
.kita-termine .wp-block-table td, .kita-termine .wp-block-table th { border: 0; border-bottom: 1px solid #d7eef5; padding: 10px 14px; }
.kita-termine .wp-block-table tr:nth-child(even) td { background: #fbf8ee; }

/* Fuss */
.site-middle-footer-wrap .site-footer-row-container-inner { padding-top: 56px; padding-bottom: 26px; }
.site-footer .footer-html { color: #d9eef4; font-size: 16px; width: 100%; }
.kita-fuss { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; text-align: left; }
.kita-fuss h4 { font-family: 'Patrick Hand', cursive; font-weight: 400; font-size: 24px; color: #fff; margin: 0 0 10px; }
.kita-fuss a { color: #d9eef4 !important; text-decoration: none; display: block; line-height: 1.9; }
.kita-fuss a:hover { color: #fff !important; text-decoration: underline; }
.kita-fuss-marke p { margin: 12px 0 0; line-height: 1.6; }
.kita-fuss-marke a { display: inline; }
.kita-fuss-marke img { border-radius: 50%; }
.kita-fuss-unten { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 36px; padding-top: 18px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kita-fuss-unten a { color: #d9eef4 !important; }

/* Volle Breite: Inhalt auf Seitenbreite begrenzen, Abstaende zwischen Baendern weg */
.entry-content .wp-block-group.alignfull { --wp--style--global--content-size: 1180px; padding-left: 24px; padding-right: 24px; }
.entry-content > .alignfull { margin-top: 0 !important; margin-bottom: 0 !important; }
.entry-content .wp-block-group.alignfull:not(.kita-titel) > * { max-width: 1180px; margin-left: auto !important; margin-right: auto !important; }
.entry-content > .alignfull + .wp-block-group:not(.alignfull) { margin-top: 0; }
.unterzeile + .wp-block-heading { margin-top: 0 !important; }
.wp-block-button.kita-knopf-hell .wp-block-button__link { color: #fff !important; border-color: #fff !important; background: transparent !important; }
.kita-kachel h3 a, .kita-kachel h3 a:hover { color: #fff !important; text-decoration: none !important; }
.site-footer .kita-fuss a, .site-footer .kita-fuss-unten a { text-decoration: none !important; }
.site-footer .kita-fuss a:hover, .site-footer .kita-fuss-unten a:hover { text-decoration: underline !important; }

/* ---------- Handy ---------- */
@media (max-width: 767px) {
	body { font-size: 17px; }
	.kita-titel { min-height: 540px; justify-content: flex-end; padding-top: 40px !important; padding-bottom: 120px !important; }
	.kita-fakten-reihe, .kita-kacheln-reihe { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; }
	.kita-fakt { padding: 18px 12px !important; }
	.kita-fakt h3 { font-size: 21px; }
	.kita-fakt h3::before { width: 52px; height: 52px; background-size: 28px; }
	.kita-fakt p { font-size: 14px; }
	.kita-abschnitt { padding-top: 56px; }
	.kita-kachel { min-height: 190px; padding: 20px 16px !important; }
	.kita-kachel h3 { font-size: 24px; }
	.kita-kachel p { font-size: 15px; }
	.kita-mosaik.wp-block-gallery.has-nested-images { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 130px 130px; }
	.kita-mosaik.wp-block-gallery.has-nested-images figure.wp-block-image:first-child { grid-column: span 2; grid-row: auto; }
	.kita-kontakt-karte { padding: 26px !important; }
	.kita-fuss { grid-template-columns: 1fr 1fr; }
	.kita-fuss-marke { grid-column: span 2; }
	.kita-kopfzeile .wp-block-buttons { justify-content: flex-start !important; }
	.kita-insta #sb_instagram #sbi_images { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; padding: 0 !important; }
	.kita-insta #sb_instagram #sbi_images .sbi_item { width: auto !important; max-width: none !important; padding: 0 !important; }
	.kita-insta #sb_instagram #sbi_images .sbi_item:nth-child(n+5) { display: none !important; }
}

/* ---------- Speiseplan-Tabelle (aus der Word-Datei erzeugt) ---------- */
.kita-speiseplan .woche { margin: 0 0 40px; }
.kita-speiseplan h2 { margin: 0 0 6px; }
.kita-speiseplan .zeitraum { margin: 0 0 18px; font-size: 1.1em; color: var(--kita-orange); font-weight: 600; }
.kita-speiseplan table { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--kita-blau); border-radius: 12px; overflow: hidden; }
.kita-speiseplan th, .kita-speiseplan td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #d7eef5; }
.kita-speiseplan thead th { background: var(--kita-blau); color: #fff; font-size: 1.05em; font-family: 'Dosis', sans-serif; }
.kita-speiseplan tbody th { background: var(--kita-creme); width: 120px; white-space: nowrap; }
.kita-speiseplan tbody th .datum { display: block; font-weight: 400; color: #6b7b83; }
.kita-speiseplan tbody tr:last-child th, .kita-speiseplan tbody tr:last-child td { border-bottom: 0; }
.kita-speiseplan .gericht { font-weight: 600; }
.kita-speiseplan .info { display: block; margin-top: 4px; font-size: .85em; color: #6b7b83; }
.kita-speiseplan .hinweis { margin-top: 14px; }
.kita-speiseplan details { margin-top: 14px; font-size: .9em; }
.kita-speiseplan summary { cursor: pointer; color: var(--kita-blau-dunkel); font-weight: 600; }
@media (max-width: 600px) {
	.kita-speiseplan thead { display: none; }
	.kita-speiseplan table, .kita-speiseplan tbody, .kita-speiseplan tr, .kita-speiseplan th, .kita-speiseplan td { display: block; width: auto; }
	.kita-speiseplan tbody th { white-space: normal; border-bottom: 0; width: auto; }
	.kita-speiseplan tbody th .datum { display: inline; margin-left: 6px; }
	.kita-speiseplan td.nachtisch::before { content: "Nachtisch: "; font-weight: 600; }
	.kita-speiseplan tbody tr { border-bottom: 2px solid #d7eef5; }
}

/* Formulare (Contact Form 7, Passwortfeld) */
.wpcf7 input[type="submit"], .post-password-form input[type="submit"] { background: var(--kita-blau); color: #fff; border: 0; border-radius: 999px; padding: 12px 30px; font-weight: 700; font-size: 17px; cursor: pointer; }
.wpcf7 input[type="submit"]:hover, .post-password-form input[type="submit"]:hover { background: var(--kita-blau-dunkel); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea, .post-password-form input[type="password"] { border: 2px solid #e3ddc8; border-radius: 12px; padding: 10px 14px; width: 100%; background: #fff; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--kita-blau); outline: none; }
.post-password-form { max-width: 560px; background: var(--kita-creme); border-radius: var(--kita-r); padding: 28px; }
