/*
Theme Name: Kinderbasar
Theme URI: https://kinderbasar-hemeringen.de
Author: Kinderbasar Hemeringen
Description: Leichtgewichtiges Block-Theme für den Kinderbasar Hemeringen. Zettel-Look mit Washi-Tape, Handschrift-Akzenten und Wellen – alles aus nativen Blöcken, Blockstilen und Mustern (Patterns) aufgebaut und im Website-Editor anpassbar.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kinderbasar
*/

/* =========================================================
   Variablen
   ========================================================= */
:root {
	--kb-zettel-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
	--kb-btn-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
	--kb-zettel-schatten: 0 6px 18px rgba(74,64,54,.10), 2px 3px 0 rgba(74,64,54,.06);
	--kb-hand: 'Caveat', cursive;
	--kb-tape-rosa: repeating-linear-gradient(45deg, rgba(224,161,150,.75) 0 8px, rgba(224,161,150,.55) 8px 16px);
	--kb-tape-olive: repeating-linear-gradient(45deg, rgba(148,162,107,.7) 0 8px, rgba(148,162,107,.5) 8px 16px);
	--kb-tape-honig: repeating-linear-gradient(45deg, rgba(229,181,79,.7) 0 8px, rgba(229,181,79,.5) 8px 16px);
}

/* =========================================================
   Grundgerüst
   ========================================================= */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { overflow-x: clip; }

/* Formularfelder (wie bisher) */
input, select, optgroup, textarea { font-style: normal; font-weight: normal; font-size: 17px; line-height: 1.6; font-family: var(--wp--preset--font-family--karla); color: var(--wp--preset--color--text); }
:where(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea) {
	-webkit-appearance: none; appearance: none; color: var(--wp--preset--color--text-grau);
	border: 1px solid #CBD5E0; border-radius: 3px; padding: .4em .5em; max-width: 100%; background: #fff;
}
:where(select) { -webkit-appearance: auto; appearance: auto; }
:where(input, select, textarea):focus { border-color: #A0AEC0; color: var(--wp--preset--color--text); outline: 0; box-shadow: 0 5px 15px -7px rgba(0,0,0,.1); }

/* Kopfbereich */
.kb-header { position: relative; z-index: 30; }
.kb-header .kb-header-zeile { min-height: 80px; gap: 24px; }
.kb-header .wp-block-site-logo { line-height: 0; }
.kb-header .wp-block-site-logo img { display: block; max-width: 200px; height: auto; }
.kb-hauptmenue .wp-block-navigation-item__content { position: relative; padding: 10px; }
.kb-hauptmenue .wp-block-navigation-item__content:hover,
.kb-hauptmenue .wp-block-navigation-item__content:focus-visible { color: var(--wp--preset--color--salbei); }
.kb-hauptmenue .current-menu-item > .wp-block-navigation-item__content,
.kb-hauptmenue .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--ueberschrift); }
.kb-hauptmenue .wp-block-navigation-item__content:hover::after,
.kb-hauptmenue .wp-block-navigation-item__content:focus-visible::after,
.kb-hauptmenue .current-menu-item > .wp-block-navigation-item__content::after,
.kb-hauptmenue .wp-block-navigation-item__content[aria-current="page"]::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 7px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='7' viewBox='0 0 100 7'%3E%3Cpath d='M2 5 C 12 2, 22 6, 32 3.5 C 42 1, 52 6, 62 3.5 C 72 1, 82 6, 92 3.5 S 98 4, 100 3' fill='none' stroke='%23E0A196' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-size: 100% 100%;
}
.kb-hauptmenue .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--text-grau); padding: .4em .6em; }
.kb-hauptmenue .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.kb-hauptmenue .wp-block-navigation__responsive-container.is-menu-open { padding: 32px 28px; }
.kb-hauptmenue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 48px; align-items: flex-start; gap: .4em; }
.kb-hauptmenue .is-menu-open .wp-block-navigation__container,
.kb-hauptmenue .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; justify-content: flex-start !important; }
.kb-hauptmenue .is-menu-open .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; font-size: 1.6rem; padding: .25em 0; }
@media (max-width: 781px) {
	.kb-header .wp-block-site-logo img { max-width: 130px; }
}
/* Menü: unter 1150 px Breite Burger-Menü statt Umbruch (6 Menüpunkte) */
@media (max-width: 1149px) {
	.kb-hauptmenue .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.kb-hauptmenue .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* Titelband (Seitentitel) */
.kb-titelband { min-height: 200px; display: flex; flex-direction: column; justify-content: center; padding-top: 0; padding-bottom: 0; }
.kb-titelband .wp-block-post-title { margin: 0; font-size: 32px; }

/* Inhaltsbox */
.kb-inhalt .kb-inhalt-box {
	background: var(--wp--preset--color--weiss);
	padding: 2rem;
	margin-top: 5rem; margin-bottom: 0;
	box-shadow: 0px 15px 15px -10px rgba(0,0,0,0.05);
}
.kb-inhalt .kb-inhalt-box > .wp-block-post-title { margin-top: 0; margin-bottom: 2rem; }
/* Seiten, die mit eigenem Kopf (Hero/Seitenkopf) beginnen: kein zusätzlicher Abstand oben */
.kb-inhalt .kb-inhalt-box:has(> .wp-block-post-content > .kb-sektion:first-child) { margin-top: 0; padding-top: 0; }
.kb-inhalt { padding-bottom: 5rem; }
@media (max-width: 1024px) { .kb-inhalt .kb-inhalt-box { margin-top: 3rem; } .kb-inhalt { padding-bottom: 3rem; } }
@media (max-width: 767px) { .kb-inhalt .kb-inhalt-box { margin-top: 2rem; padding: 1.5rem; } .kb-inhalt { padding-bottom: 2rem; } }

/* Abschnitte im Inhalt liegen ohne Abstand untereinander */
.wp-block-post-content > .kb-sektion,
.wp-block-post-content > .wp-block-separator.is-style-kb-welle { margin-block-start: 0; margin-block-end: 0; }
.kb-sektion { position: relative; }
.wp-block-post-content > .kb-sektion + :not(.kb-sektion) { margin-block-start: 0; }
.wp-block-post-content > :is(.fluentform, .frm-fluent-form) { margin-block-end: 2rem; }
.kb-sektion :where(h1,h2,h3,h4,p,ul,figure) { margin-block-end: 0; }

/* =========================================================
   Texte & Akzente
   ========================================================= */
.is-style-kb-handschrift { font-family: var(--kb-hand); font-size: 1.5rem; line-height: 1.6; color: var(--wp--preset--color--olive-dunkel); }
.kb-eyebrow, p.kb-eyebrow { display: inline-block; transform: rotate(-1.5deg); }
.kb-lead { font-size: 1.1rem; color: var(--wp--preset--color--tinte-weich); max-width: 44ch; }
.kb-unterstrichen { position: relative; white-space: nowrap; }
.kb-unterstrichen::after {
	content: ""; position: absolute; left: -2%; bottom: -10px; width: 104%; height: 16px; pointer-events: none;
	background: url("assets/unterstrich.svg") no-repeat; background-size: 100% 100%;
}
.kb-hand { font-family: var(--kb-hand); font-size: 1.35rem; color: var(--wp--preset--color--tinte-weich); }

/* Buttons im Stift-Look */
.wp-block-button .wp-block-button__link {
	display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem;
	padding: 13px 26px; border-radius: var(--kb-btn-radius);
	border: 2px solid var(--wp--preset--color--tinte);
	box-shadow: 3px 3px 0 rgba(74,64,54,.18);
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.wp-block-button .wp-block-button__link:hover { transform: translate(-1px,-2px) rotate(-.5deg); box-shadow: 5px 5px 0 rgba(74,64,54,.18); }
.wp-block-button.is-style-kb-leise .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--tinte); box-shadow: none; border-style: dashed; font-weight: 400; padding: 12px 20px;
}
.wp-block-button.is-style-kb-leise .wp-block-button__link:hover { background: var(--wp--preset--color--salbei-hell); box-shadow: none; }

/* Welle als Trenner */
.wp-block-separator.is-style-kb-welle {
	width: 100%; max-width: none; height: 54px; border: 0; margin: 0; opacity: 1;
	background: url("assets/welle.svg") no-repeat center / 100% 100%;
}

/* =========================================================
   Zettel mit Washi-Tape (Blockstile der Gruppe)
   ========================================================= */
.is-style-kb-zettel, .is-style-kb-zettel-rosa, .is-style-kb-zettel-olive, .is-style-kb-zettel-honig, .kb-zettel {
	position: relative;
	background-color: var(--wp--preset--color--papier-hell);
	border: 1.5px solid var(--wp--preset--color--linie);
	border-radius: var(--kb-zettel-radius);
	box-shadow: var(--kb-zettel-schatten);
	padding: 28px 28px 24px;
}
.is-style-kb-zettel-rosa::before, .is-style-kb-zettel-olive::before, .is-style-kb-zettel-honig::before {
	content: ""; position: absolute; width: 96px; height: 30px; top: -15px; left: 50%;
	transform: translateX(-50%) rotate(-3deg); opacity: .85; pointer-events: none;
	border-left: 1px dashed rgba(255,255,255,.6); border-right: 1px dashed rgba(255,255,255,.6);
	background: var(--kb-tape-rosa);
}
.is-style-kb-zettel-olive::before { background: var(--kb-tape-olive); }
.is-style-kb-zettel-honig::before { background: var(--kb-tape-honig); }

/* Reihe aus schrägen Zetteln (Raster) */
.wp-block-group.is-style-kb-zettelreihe { gap: 30px; align-items: start; }
.is-style-kb-zettelreihe > :nth-child(3n+1) { transform: rotate(-1.4deg); }
.is-style-kb-zettelreihe > :nth-child(3n+2) { transform: rotate(.9deg); margin-top: 22px; }
.is-style-kb-zettelreihe > :nth-child(3n+3) { transform: rotate(-.6deg); }
@media (max-width: 860px) {
	.wp-block-group.is-style-kb-zettelreihe { grid-template-columns: 1fr; }
	.is-style-kb-zettelreihe > :nth-child(3n+2) { margin-top: 0; }
}

/* Karte (Zettel mit Symbol, Überschrift, Text) */
.kb-karte { padding: 26px 24px 22px; color: inherit; transition: transform .15s ease; }
.kb-karte > * { margin-top: 0; margin-bottom: 0; }
.kb-karte .kb-doodle { margin: 0; line-height: 0; }
.kb-karte .kb-doodle img { width: 46px; height: 46px; }
.kb-karte > h3 { font-size: 1.35rem; margin-top: 19px; margin-bottom: 6px; }
.kb-karte > p, .kb-karte > ul, .kb-karte > ol { color: var(--wp--preset--color--tinte-weich); font-size: .95rem; line-height: 1.6; margin-top: 12px; }
.kb-karte > h3 + p, .kb-karte > h3 + ul, .kb-karte > h3 + ol { margin-top: 6px; }
.kb-karte > ul, .kb-karte > ol { padding-left: 1.3em; }
.kb-karte li { font-size: inherit; color: inherit; margin: 0 0 4px; }
.kb-karte li::marker { color: var(--wp--preset--color--tinte-weich); }
.kb-karte > p:last-child, .kb-karte > ul:last-child, .kb-karte > ol:last-child { margin-bottom: 0; }
.kb-karte > p.kb-weiter { margin-top: 12px; margin-bottom: 0; font-family: var(--kb-hand); font-size: 1.25rem; color: var(--wp--preset--color--olive-dunkel); }
.kb-weiter { font-family: var(--kb-hand); font-size: 1.25rem; color: var(--wp--preset--color--olive-dunkel); }
.kb-weiter a { color: inherit; text-decoration: none; }
.kb-weiter a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.is-style-kb-zettelreihe > .kb-karte:has(.kb-weiter a):hover { transform: translateY(-4px) rotate(0deg); }

/* =========================================================
   Abschnitte
   ========================================================= */
/* Hero */
.kb-hero { padding: 44px 0 70px; }
.kb-hero::before {
	content: ""; position: absolute; top: 8px; right: 2%; width: min(420px, 42vw); aspect-ratio: 420 / 180;
	background: url("assets/flugbahn.svg") no-repeat center / contain; pointer-events: none; opacity: .9;
}
.kb-hero .kb-hero-spalten { gap: 48px; margin: 0; position: relative; }
.kb-hero .kb-hero-titel { font-size: clamp(2.4rem, 5.5vw, 3.7rem); line-height: 1.5; margin-top: 1.5em; margin-bottom: .5em; }
.kb-hero .is-style-kb-handschrift + .kb-hero-titel { margin-top: calc(1.5em + 6px); }
.kb-hero .kb-lead { margin-top: 0; }
.kb-hero .wp-block-buttons { margin-top: 2rem; gap: 18px; }
@media (max-width: 860px) { .kb-hero::before { display: none; } }
@media (max-width: 781px) { .kb-hero .kb-hero-spalten { gap: 30px; } }

/* Termin-Zettel */
.kb-termin { transform: rotate(1.2deg); }
.kb-termin > * { margin-top: 0; margin-bottom: 0; }
.kb-termin .kb-notiz { font-family: var(--kb-hand); font-size: 1.35rem; color: var(--wp--preset--color--rosa); margin-bottom: 2px; }
.kb-termin > h2 { font-size: 1.9rem; margin-top: 1.5em; margin-bottom: 10px; }
.kb-termin > .kb-notiz + h2 { margin-top: calc(1.5em - 0px); }
.kb-termin-zeile { display: flex; gap: 10px; align-items: baseline; color: var(--wp--preset--color--tinte-weich); }
.kb-termin > .kb-termin-zeile { margin-top: 4px; margin-bottom: 4px; }
.kb-termin > h2 + .kb-termin-zeile { margin-top: 0; }
.kb-termin-zeile strong { color: var(--wp--preset--color--tinte); font-weight: 700; min-width: 82px; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.kb-termin > .kb-frist, .kb-frist { margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--wp--preset--color--linie); font-family: var(--kb-hand); font-size: 1.25rem; color: var(--wp--preset--color--olive-dunkel); }

/* Kopf eines Abschnitts (Überschrift + Einleitung) */
.kb-kopf > * { margin-top: 0; margin-bottom: 0; }
.kb-kopf > h2 { margin-bottom: 6px; }
.kb-kopf > p { color: var(--wp--preset--color--tinte-weich); }

/* "Was möchtest du wissen?" */
.kb-dreier { padding: 30px 0 10px; }
.kb-dreier .kb-kopf { margin-bottom: 34px; }
.kb-dreier .kb-kopf > h2 { font-size: 2rem; }
.kb-dreier .kb-kopf + * { margin-top: 0; }

/* Partner */
.kb-partner-sektion { padding: 66px 0 26px; }
.kb-partner-sektion .kb-kopf { text-align: center; margin-bottom: 34px; }
.kb-partner-sektion .kb-kopf > h2 { font-size: 1.9rem; }
.kb-partner-sektion .kb-kopf + * { margin-top: 0; }
.wp-block-group.kb-partner-raster { gap: 22px; }
@media (max-width: 860px) { .wp-block-group.kb-partner-raster { grid-template-columns: 1fr 1fr; } }
.is-style-kb-partner {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
	background: var(--wp--preset--color--papier-hell); border: 1.5px solid var(--wp--preset--color--linie); border-radius: 14px;
	padding: 26px 20px 20px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.is-style-kb-partner:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(74,64,54,.10); border-color: var(--wp--preset--color--olive); }
.is-style-kb-partner > * { margin: 0; }
.is-style-kb-partner .kb-partner-logo {
	width: 100%; height: 88px; display: grid; place-items: center; margin: 0 0 16px;
	background: #fff; border: 1.5px dashed var(--wp--preset--color--linie); border-radius: 10px;
}
.is-style-kb-partner .kb-partner-logo img { max-height: 64px; max-width: 85%; width: auto; height: auto; object-fit: contain; }
.is-style-kb-partner > h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.5em; margin-bottom: .5em; line-height: 1.5; }
.is-style-kb-partner > .kb-ort { color: var(--wp--preset--color--tinte-weich); font-size: .82rem; }
.is-style-kb-partner > .kb-weblink { margin-top: 10px; font-size: .85rem; font-weight: 700; color: var(--wp--preset--color--olive-dunkel); }
.is-style-kb-partner .kb-weblink a { color: inherit; text-decoration: none; }
.is-style-kb-partner .kb-weblink a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.is-style-kb-partner:hover .kb-weblink a { text-decoration: underline; }
.kb-partner-sektion .kb-hinweis { margin-top: 26px; text-align: center; font-family: var(--kb-hand); font-size: 1.35rem; color: var(--wp--preset--color--tinte-weich); }
.kb-hinweis a { color: var(--wp--preset--color--olive-dunkel); }

/* Seitenkopf der Unterseiten */
.kb-seiten-kopf { padding: 36px 0 20px; }
.kb-seiten-kopf > * , .kb-seiten-kopf .wp-block-column > *, .kb-seiten-kopf .kb-kopf-text > * { margin-top: 0; margin-bottom: 0; }
.kb-seiten-kopf .kb-kopf-spalten { gap: 48px; margin: 0; align-items: flex-end; }
.kb-seiten-kopf .kb-seitentitel { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; font-size: clamp(2.1rem, 4.5vw, 3rem); margin-top: calc(1.5em + 6px); margin-bottom: 10px; }
.kb-seiten-kopf .kb-lead { font-size: 1.08rem; max-width: 52ch; }
.kb-seiten-kopf .kb-biene { margin: 0 0 0 auto; width: min(180px, 30vw); }
.kb-seiten-kopf .kb-biene img { width: 100%; height: auto; }
@media (max-width: 860px) { .kb-seiten-kopf .kb-biene-spalte { display: none; } }

/* Symbol-Reihe ("Warum zum Kinderbasar?") */
.kb-werte { padding: 44px 0 30px; text-align: center; }
.kb-werte > h2 { font-size: 1.9rem; margin-top: 0; margin-bottom: 30px; }
.kb-werte > h2 + * { margin-top: 0; }
.wp-block-group.is-style-kb-symbolreihe { gap: 26px; }
@media (max-width: 860px) { .wp-block-group.is-style-kb-symbolreihe { grid-template-columns: 1fr 1fr; } }
.is-style-kb-symbolreihe > :nth-child(odd) { transform: rotate(-.6deg); }
.is-style-kb-symbolreihe > :nth-child(even) { transform: rotate(.5deg); }
.kb-wert > * { margin-top: 0; margin-bottom: 0; }
.kb-wert .kb-symbol { margin: 0 auto; line-height: 0; }
.kb-wert .kb-symbol img { width: 56px; height: 56px; }
.kb-wert > h3 { font-size: 1.1rem; margin-top: 43px; margin-bottom: 4px; }
.kb-wert > h3 + p { margin-top: 4px; }
.kb-wert > p { color: var(--wp--preset--color--tinte-weich); font-size: .9rem; max-width: 24ch; margin-left: auto; margin-right: auto; }

/* Info-Raster */
.kb-info-grid { padding: 0; }

/* Aufruf-Banner */
.kb-cta-banner { margin-top: 56px !important; margin-bottom: 20px !important; }
.wp-block-group.kb-cta-zettel { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 32px 38px; transform: rotate(-.4deg); }
.kb-cta-zettel .kb-cta-text > * { margin-top: 0; margin-bottom: 0; }
.kb-cta-zettel .kb-cta-text > h2 { font-size: 1.7rem; margin-bottom: 6px; }
.kb-cta-zettel .kb-cta-text > p { color: var(--wp--preset--color--tinte-weich); max-width: 46ch; }
.kb-cta-zettel .wp-block-buttons { margin: 0; flex-shrink: 0; }
@media (max-width: 700px) { .wp-block-group.kb-cta-zettel { flex-direction: column; align-items: flex-start; text-align: left; } }

/* Häufige Fragen */
.kb-faq { padding: 30px 0 60px; }
.kb-faq > * { margin-top: 0; margin-bottom: 0; }
.kb-faq > h2 { font-size: 1.9rem; margin-bottom: 6px; }
.kb-faq > .kb-hand { margin-bottom: 20px; }
.kb-faq > .wp-block-details { margin-top: 12px; margin-bottom: 12px; }
.wp-block-details { background: var(--wp--preset--color--papier-hell); border: 1.5px solid var(--wp--preset--color--linie); border-radius: 14px; overflow: hidden; }
.wp-block-details > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after { content: "+"; font-family: var(--kb-hand); font-size: 1.7rem; color: var(--wp--preset--color--rosa); line-height: 1; transition: transform .15s ease; }
.wp-block-details[open] > summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin: 0; padding: 0 20px 18px; color: var(--wp--preset--color--tinte-weich); }

/* =========================================================
   Fußbereich
   ========================================================= */
.kb-footer { position: relative; margin-top: 70px; overflow: visible; }
.kb-footer::before {
	content: ""; position: absolute; top: -59px; left: 0; width: 100%; height: 60px; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C 180,60 360,0 540,25 C 720,50 900,5 1080,28 C 1260,50 1350,15 1440,30 L1440,60 L0,60 Z' fill='%2394A26B'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-size: 100% 100%;
}
.kb-footer .wp-block-columns { gap: 30px; margin: 0; }
.kb-footer .kb-footer-oben { margin-bottom: 0; }
.kb-footer .kb-footer-zeile { gap: 30px; align-items: flex-start; }
.kb-footer :where(h1,h2,h3,h4,p,ul) { margin-top: 0; margin-bottom: 0; }
.kb-footer h3 { font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-weight: 700; font-size: 1.15rem; line-height: 1.5; color: var(--wp--preset--color--creme); margin: 0 0 14px; }
.kb-footer-marke { gap: 10px; margin-bottom: 12px; align-items: center; }
.kb-footer-marke .kb-footer-logo { margin: 0; line-height: 0; flex-shrink: 0; }
.kb-footer-marke .kb-footer-logo img { width: 34px; height: 34px; border-radius: 50%; background: var(--wp--preset--color--papier-hell); object-fit: cover; }
.kb-footer-name { font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.kb-footer-marke + .kb-footer-tagline, .kb-footer-tagline { font-size: .9rem; opacity: .85; max-width: 30ch; line-height: 1.5; margin-top: 6px; }
.kb-footer ul { list-style: none; margin: 0; padding: 0; }
.kb-footer li { margin-bottom: 9px; font-size: .92rem; opacity: .92; }
.kb-footer a { color: var(--wp--preset--color--creme); text-decoration: none; }
.kb-footer a:hover { text-decoration: underline wavy var(--wp--preset--color--creme) 1.5px; color: var(--wp--preset--color--creme); }
.kb-footer .kb-footer-unten { margin-top: 0; }
.kb-footer .kb-footer-copy { border-top: 1px dashed rgba(252,250,243,.4); padding: 18px 0; font-size: .85rem; opacity: .9; }
.kb-footer .kb-footer-gruss { font-family: var(--kb-hand); font-size: 1.2rem; }
@media (max-width: 781px) { .kb-footer .kb-footer-zeile { flex-wrap: wrap; } }

/* =========================================================
   Events Manager
   ========================================================= */
.em-item.em-item-single.em-event { font-family: var(--wp--preset--font-family--karla); color: var(--wp--preset--color--tinte-weich); }
.em-item-header { background: var(--wp--preset--color--papier-hell); border: 1.5px solid var(--wp--preset--color--linie); border-radius: var(--kb-zettel-radius); box-shadow: var(--kb-zettel-schatten); padding: 28px !important; margin-bottom: 30px !important; }
.em-item-header h1, .em-item-header h2, .em-item-header h3 { font-family: var(--wp--preset--font-family--fraunces); color: var(--wp--preset--color--tinte); }
.em-event-when, .em-event-location, .em-event-bookings-meta { background: var(--wp--preset--color--salbei-hell); border-radius: 14px; padding: 16px 20px !important; margin-bottom: 16px !important; }
.em-event-when strong, .em-event-location strong, .em-event-bookings-meta strong { color: var(--wp--preset--color--tinte); font-family: var(--wp--preset--font-family--fraunces); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.em-item .em-button, .em-item button[type="submit"], .em-item input[type="submit"], .em-booking-form button[type="submit"], .em-booking-form input[type="submit"] {
	display: inline-block; font-weight: 700; font-size: 1rem; padding: 13px 26px; border-radius: var(--kb-btn-radius);
	border: 2px solid var(--wp--preset--color--tinte) !important; background: var(--wp--preset--color--rosa) !important; color: var(--wp--preset--color--tinte) !important;
	box-shadow: 3px 3px 0 rgba(74,64,54,.18); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.em-item .em-button:hover, .em-item button[type="submit"]:hover, .em-booking-form button[type="submit"]:hover { transform: translate(-1px,-2px) rotate(-.5deg); box-shadow: 5px 5px 0 rgba(74,64,54,.18); }
.em-event-bookings-meta { font-style: italic; color: var(--wp--preset--color--olive-dunkel); }
.em-item table { width: 100%; border-collapse: collapse; background: var(--wp--preset--color--papier-hell); border: 1.5px solid var(--wp--preset--color--linie); border-radius: 14px; overflow: hidden; margin: 16px 0; }
.em-item table th { background: var(--wp--preset--color--salbei-hell); color: var(--wp--preset--color--tinte); font-weight: 700; text-align: left; padding: 12px 16px; font-size: .85rem; text-transform: uppercase; }
.em-item table td { padding: 14px 16px; border-top: 1px solid var(--wp--preset--color--linie); }

/* Einzelne Veranstaltung: Kacheln Wann / Wo / Infos */
.em.em-item.em-item-single .em-item-header .em-item-meta.kb-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.em.em-item.em-item-single .em-item-header .kb-tiles > .kb-tile { background: #eaeddd; border-radius: 14px; padding: 16px 20px !important; margin: 0 !important; min-width: 0; }
.em.em-item.em-item-single .em-item-header .kb-tiles > .kb-tile-full,
.em.em-item.em-item-single .em-item-header .kb-tiles:not(:has(.em-event-where)) > .em-event-when { grid-column: 1 / -1; }
.em.em-item.em-item-single .em-item-header .kb-tiles h3 { margin: 0 0 10px !important; }
.em.em-item.em-item-single .kb-tiles .em-item-meta-line.em-event-location { background: none; border-radius: 0; padding: 0 !important; margin: 0 !important; }
.em.em-item.em-item-single .kb-tiles .em-item-meta-line:last-child { margin-bottom: 0; }
.kb-when-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.em.em-item.em-item-single .em-item-header .kb-a2c .em-event-add-to-calendar { margin: 0 !important; padding: 0 32px 0 14px !important; }
.em.em-item.em-item-single .kb-notes p { margin: 0 0 12px !important; }
.em.em-item.em-item-single .kb-notes > :last-child { margin-bottom: 0 !important; }
.kb-tiles .kb-notes-tile:has(.kb-notes:empty) { display: none; }
.kb-a2c, .em.em-item.em-item-single .kb-a2c .em-event-add-to-calendar { max-width: 100%; }
@media (max-width: 640px) {
	.em.em-item.em-item-single .em-item-header.kb-postit { padding: 16px !important; }
	.em.em-item.em-item-single .em-item-header .em-item-meta.kb-tiles { grid-template-columns: 1fr; gap: 12px; }
	.em.em-item.em-item-single .em-item-header .kb-tiles > .kb-tile { padding: 14px 16px !important; }
	.kb-a2c, .em.em-item.em-item-single .em-item-header .kb-a2c .em-event-add-to-calendar { width: 100%; white-space: normal !important; height: auto !important; line-height: 1.4 !important; padding: 8px 32px 8px 12px !important; }
}
.em.em-item.em-item-single .em-item-header .kb-tiles > .kb-donate { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; background: #fbf4ec; border: 1.5px dashed #c97d63; border-radius: 14px; padding: 16px 20px !important; margin: 0 !important; }
.em.em-item.em-item-single .em-item-header .kb-donate h3 { margin: 0 0 4px !important; color: #c97d63; }
.em.em-item.em-item-single .kb-donate p { margin: 0 !important; }
.em.em-item.em-item-single .kb-donate .kb-donate-button, .em.em-item.em-item-single .kb-donate .kb-donate-button:visited { display: inline-block; background: #c97d63 !important; color: #fff !important; font-style: normal !important; font-weight: 700; letter-spacing: .03em; text-decoration: none !important; white-space: nowrap; padding: 10px 24px; border-radius: 999px; transition: background-color .2s; }
.em.em-item.em-item-single .kb-donate .kb-donate-button:hover, .em.em-item.em-item-single .kb-donate .kb-donate-button:focus { background: #6a564b !important; }
@media (max-width: 640px) { .em.em-item.em-item-single .kb-donate .kb-donate-button { width: 100%; text-align: center; } }

/* Absenden-Button der Anmeldung im Stift-Look */
.em.pixelbones .em-booking-form .em-booking-submit.em-form-submit:not([data-nostyle]) {
	background: var(--wp--preset--color--rosa) !important; color: var(--wp--preset--color--tinte) !important;
	border: 2px solid var(--wp--preset--color--tinte) !important; border-radius: var(--kb-btn-radius) !important;
	box-shadow: 3px 3px 0 rgba(74,64,54,.18) !important; text-transform: none !important; letter-spacing: 0 !important;
	font-family: var(--wp--preset--font-family--karla) !important; font-weight: 700 !important; font-size: 1rem !important;
	height: auto !important; line-height: 1.6 !important; padding: 13px 26px !important; width: auto !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
.em.pixelbones .em-booking-form .em-booking-submit.em-form-submit:not([data-nostyle]):hover { transform: translate(-1px,-2px) rotate(-.5deg); box-shadow: 5px 5px 0 rgba(74,64,54,.18) !important; }

/* =========================================================
   Erweiterungen (Etikett, Zeitplan, Hinweise)
   ========================================================= */
/* Bild in einer Karte (z. B. Beispiel-Etikett) */
.kb-karte > .kb-etikett { margin: 14px 0 0; text-align: center; }
.kb-karte > .kb-etikett img { width: 100%; max-width: 130px; height: auto; display: inline-block; filter: drop-shadow(2px 3px 0 rgba(74,64,54,.08)); }

/* Aufruf-Banner mit zwei Buttons */
.kb-cta-zettel .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 700px) { .kb-cta-zettel .wp-block-buttons { justify-content: flex-start; } }

/* Zeitplan-Tabelle */
.kb-tag > h2 { font-size: 1.7rem; margin: 0 0 4px; }
.kb-tag > .kb-tag-hinweis { margin: 0 0 14px; font-family: var(--kb-hand); font-size: 1.2rem; color: var(--wp--preset--color--olive-dunkel); }
.kb-tag > .wp-block-table { margin: 0; }
.wp-block-table.is-style-kb-zeitplan { margin: 0; overflow-x: visible; }
.wp-block-table.is-style-kb-zeitplan table { width: 100%; border-collapse: collapse; font-size: 1rem; background: transparent; }
.wp-block-table.is-style-kb-zeitplan th,
.wp-block-table.is-style-kb-zeitplan td { border: 0; border-bottom: 1.5px dashed var(--wp--preset--color--linie); padding: 12px 10px; text-align: left; vertical-align: top; }
.wp-block-table.is-style-kb-zeitplan thead { border: 0; }
.wp-block-table.is-style-kb-zeitplan thead th { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--tinte); border-bottom: 1.5px solid var(--wp--preset--color--linie); padding-top: 4px; }
.wp-block-table.is-style-kb-zeitplan tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-kb-zeitplan td:first-child { width: 24%; white-space: nowrap; font-weight: 700; color: var(--wp--preset--color--olive-dunkel); }
.wp-block-table.is-style-kb-zeitplan td:nth-child(2) { color: var(--wp--preset--color--tinte); }
.wp-block-table.is-style-kb-zeitplan td:last-child { width: 30%; color: var(--wp--preset--color--tinte-weich); font-size: .92rem; }
.wp-block-table.is-style-kb-zeitplan mark { padding: 2px 8px; border-radius: 8px; color: inherit; }
.wp-block-table.is-style-kb-zeitplan mark[style*="rgba(0, 0, 0, 0)"] { padding: 0; }
@media (max-width: 640px) {
	.wp-block-table.is-style-kb-zeitplan thead { display: none; }
	.wp-block-table.is-style-kb-zeitplan tr { display: grid; grid-template-columns: 1fr; padding: 10px 0; border-bottom: 1.5px dashed var(--wp--preset--color--linie); }
	.wp-block-table.is-style-kb-zeitplan tbody tr:last-child { border-bottom: 0; }
	.wp-block-table.is-style-kb-zeitplan td { border: 0; padding: 1px 0; width: auto !important; white-space: normal; }
}
.kb-zeitplan-sektion { padding: 10px 0 20px; }
.kb-zeitplan-sektion > * { margin-top: 0; margin-bottom: 0; }
.kb-zeitplan-sektion > .kb-hand { margin-bottom: 24px; }
.kb-zeitplan-sektion > .kb-tag + .kb-tag { margin-top: 44px; }
.kb-zeitplan-sektion > .kb-legende { margin-top: 26px; font-size: .9rem; color: var(--wp--preset--color--tinte-weich); }
.kb-zeitplan-sektion > .kb-legende mark { padding: 2px 8px; border-radius: 8px; }

/* Hinweis-Zettel mit Liste */
.kb-hinweise-sektion { padding: 10px 0 20px; }
.kb-hinweise-sektion > * { margin-top: 0; margin-bottom: 0; }
.kb-hinweise-zettel > * { margin-top: 0; margin-bottom: 0; }
.kb-hinweise-zettel > h2 { font-size: 1.7rem; margin-bottom: 12px; }
.kb-hinweise-zettel ul { padding-left: 1.3em; color: var(--wp--preset--color--tinte-weich); }
.kb-hinweise-zettel li { margin: 0 0 10px; }
.kb-hinweise-zettel li::marker { color: var(--wp--preset--color--rosa); }
.kb-hinweise-zettel strong { color: var(--wp--preset--color--rosa-dunkel); }
.kb-hinweise-zettel li a { color: var(--wp--preset--color--olive-dunkel); }
.kb-hinweise-zettel > .wp-block-buttons { margin-top: 18px; }

/* Veranstaltungsseite: Kachel "Ablauf & Zeiten" */
.em.em-item.em-item-single .em-item-header .kb-tiles > .kb-zeiten { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; background: #f6f8ef; border: 1.5px dashed #94A26B; border-radius: 14px; padding: 16px 20px !important; margin: 0 !important; }
.em.em-item.em-item-single .em-item-header .kb-zeiten h3 { margin: 0 0 4px !important; color: #71804C; }
.em.em-item.em-item-single .kb-zeiten p { margin: 0 !important; }
.em.em-item.em-item-single .kb-zeiten .kb-zeiten-button, .em.em-item.em-item-single .kb-zeiten .kb-zeiten-button:visited { display: inline-block; background: #71804C !important; color: #fff !important; font-style: normal !important; font-weight: 700; letter-spacing: .03em; text-decoration: none !important; white-space: nowrap; padding: 10px 24px; border-radius: 999px; transition: background-color .2s; }
.em.em-item.em-item-single .kb-zeiten .kb-zeiten-button:hover, .em.em-item.em-item-single .kb-zeiten .kb-zeiten-button:focus { background: #4A4036 !important; }
@media (max-width: 640px) { .em.em-item.em-item-single .kb-zeiten .kb-zeiten-button { width: 100%; text-align: center; } }

/* Zwei Listen nebeneinander: verkaufen ja / nein */
.kb-verkaufen-sektion { padding: 44px 0 10px; }
.kb-verkaufen-sektion .kb-ja-nein { gap: 30px; margin: 0; }
.kb-ja-nein > .wp-block-column > .wp-block-group { height: 100%; box-sizing: border-box; }
.kb-liste-ja { transform: rotate(-.8deg); }
.kb-liste-nein { transform: rotate(.6deg); }
.kb-liste-ja > *, .kb-liste-nein > * { margin-top: 0; margin-bottom: 0; }
.kb-liste-ja > h2, .kb-liste-nein > h2 { font-size: 1.5rem; margin-bottom: 14px; line-height: 1.3; }
.kb-liste-ja > h2 { color: var(--wp--preset--color--olive-dunkel); }
.kb-liste-nein > h2 { color: var(--wp--preset--color--rosa-dunkel); }
.kb-liste-ja ul, .kb-liste-nein ul { list-style: none; padding-left: 0; font-size: .95rem; color: var(--wp--preset--color--tinte); }
.kb-liste-ja li, .kb-liste-nein li { position: relative; padding-left: 1.6em; margin: 0 0 8px; line-height: 1.5; }
.kb-liste-ja li:last-child, .kb-liste-nein li:last-child { margin-bottom: 0; }
.kb-liste-ja li::before, .kb-liste-nein li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.kb-liste-ja li::before { content: "✓"; color: var(--wp--preset--color--olive-dunkel); }
.kb-liste-nein li::before { content: "✕"; color: var(--wp--preset--color--rosa-dunkel); }
.kb-liste-ja li em, .kb-liste-nein li em { display: inline-block; margin-top: 3px; font-size: .9em; color: var(--wp--preset--color--tinte-weich); }
.kb-liste-ja a, .kb-liste-nein a { color: var(--wp--preset--color--olive-dunkel); }
@media (max-width: 781px) { .kb-verkaufen-sektion .kb-ja-nein { gap: 40px; } }

/* Hinweis-Zettel mit Bild (Autositze) */
.kb-autositze-sektion { padding: 54px 0 10px; }
.kb-autositze > * { margin-top: 0; margin-bottom: 0; }
.kb-autositze > h2 { font-size: 1.6rem; margin-bottom: 16px; scroll-margin-top: 40px; }
.kb-autositze .kb-autositze-spalten { gap: 28px; margin: 0; }
.kb-autositze .wp-block-column > p { margin: 0 0 12px; color: var(--wp--preset--color--tinte-weich); }
.kb-autositze .wp-block-column > p:last-child { margin-bottom: 0; }
.kb-autositze .kb-autositz-bild { margin: 0; }
.kb-autositze .kb-autositz-bild img { width: 100%; height: auto; border-radius: 10px; border: 1.5px solid var(--wp--preset--color--linie); background: #fff; }
html { scroll-behavior: smooth; }

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Mobil-Feinschliff: keine zerrissenen Wörter, mehr Platz
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

/* Buttons nie mitten im Wort umbrechen */
.wp-block-button__link { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* Lange Links im Fließtext (z. B. Datenschutz) dürfen umbrechen statt überzustehen */
.wp-block-post-content :is(p, li) a:not(.wp-block-button__link) { overflow-wrap: anywhere; word-break: normal; }

/* Seitentitel: Größe richtet sich nach der Spaltenbreite, damit lange Wörter passen */
.kb-seiten-kopf :is(.wp-block-column, .kb-kopf-text) { container-type: inline-size; }
.kb-seiten-kopf .kb-seitentitel { font-size: clamp(1.75rem, 8cqi, 3rem); hyphens: manual; -webkit-hyphens: manual; } /* Lange Titel trennen nur an einem weichen Trennstrich (&shy; – im Editor über „Als HTML bearbeiten“ einfügen) */

/* Termin-Zettel: passt sich seiner eigenen Breite an */
.kb-termin { container-type: inline-size; container-name: termin; }
.kb-termin > h2 { font-size: clamp(1.3rem, 12cqi, 1.9rem); hyphens: auto; -webkit-hyphens: auto; }
.kb-termin > .kb-frist, .kb-termin .kb-frist { font-size: clamp(1.05rem, 6.2cqi, 1.25rem); }
@container termin (max-width: 340px) {
	.kb-termin-zeile { flex-direction: column; gap: 0; }
	.kb-termin > .kb-termin-zeile + .kb-termin-zeile { margin-top: 10px; }
	.kb-termin-zeile strong { min-width: 0; }
}

/* Fußbereich: Navigation behält ihre Breite, der Text daneben wird schmaler – reicht der Platz nicht, rutscht sie darunter */
.kb-footer .wp-block-group.kb-footer-zeile { flex-wrap: wrap; }
@media (min-width: 782px) {
	.kb-footer .kb-footer-zeile > :first-child { flex: 1 1 160px; min-width: 0; }
	.kb-footer .kb-footer-zeile > :last-child { flex: 0 0 auto; }
}

/* Veranstaltung: Kacheln dürfen schmaler werden */
.em .em-item-header .em-item-meta.kb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Handys: weniger Rand, damit mehr Platz für den Inhalt bleibt */
@media (max-width: 600px) {
	html body { --wp--style--root--padding-left: 14px; --wp--style--root--padding-right: 14px; }
	.kb-inhalt .kb-inhalt-box { padding-left: 16px; padding-right: 16px; }
	.wp-block-group:is(.is-style-kb-zettel, .is-style-kb-zettel-rosa, .is-style-kb-zettel-olive, .is-style-kb-zettel-honig) { padding-left: 22px !important; padding-right: 22px !important; }
	.wp-block-group.kb-cta-zettel { padding: 28px 22px; }
	.em .em-item-header .em-item-meta.kb-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* Sehr kleine Handys (≤ 340px): lange Wörter in den Ja/Nein-Listen sauber trennen */
@media (max-width: 340px) {
	:is(.kb-liste-ja, .kb-liste-nein) li { hyphens: auto; -webkit-hyphens: auto; }
}

/* Anmeldung: Überschrift „Tickets“ ausblenden – es gibt nur das Verkäuferticket */
.em-booking-form .em-booking-form-tickets-title { display: none; }
