/*
Theme Name: Kunterbunt
Theme URI: https://example.com/
Author: Christoph Nieberg
Description: Buntes, kinderfreundliches Theme für kostenlose Ausmalbilder & Malvorlagen als PDF – mit Motiv-Kategorien, Altersgruppen, Download-Zähler, Druckfunktion und vorbereiteten Google-AdSense-Werbeplätzen.
Version: 1.0.0
Requires at least: 6.0
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: kunterbunt
Tags: kids, colorful, grid-layout, custom-logo, custom-menu
*/

/* ==========================================================
   1. Farben & Grundwerte
   ========================================================== */
:root {
	--kb-ink: #2B2D42;
	--kb-ink-soft: #5C5F7A;
	--kb-paper: #FFFBF1;
	--kb-white: #fff;

	--kb-red: #FF5A5F;
	--kb-orange: #FF9F1C;
	--kb-yellow: #FFD23F;
	--kb-green: #5BC85B;
	--kb-blue: #3A86FF;
	--kb-purple: #8F5CF7;
	--kb-pink: #FF66C4;

	--kb-red-soft: #FFE1E2;
	--kb-orange-soft: #FFECD1;
	--kb-yellow-soft: #FFF5CC;
	--kb-green-soft: #DDF5DD;
	--kb-blue-soft: #DCEAFF;
	--kb-purple-soft: #ECE3FF;

	--kb-radius: 22px;
	--kb-radius-sm: 14px;
	--kb-line: 3px solid var(--kb-ink);
	--kb-shadow: 5px 5px 0 var(--kb-ink);
	--kb-shadow-hover: 8px 8px 0 var(--kb-ink);

	--kb-font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Quicksand", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--kb-wrap: 1200px;
}

/* ==========================================================
   2. Basis
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--kb-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--kb-ink);
	background-color: var(--kb-paper);
	background-image: radial-gradient(rgba(43, 45, 66, .07) 1.2px, transparent 1.2px);
	background-size: 22px 22px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kb-blue); text-underline-offset: 3px; }
a:hover { color: var(--kb-purple); }

:focus-visible { outline: 4px solid var(--kb-orange); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }

.kb-wrap { width: 100%; max-width: var(--kb-wrap); margin-inline: auto; padding-inline: 20px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.kb-skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--kb-yellow); color: var(--kb-ink); padding: 10px 16px; border: var(--kb-line); border-radius: 12px; font-weight: 800; }
.kb-skip:focus { left: 10px; }

.kb-icon { width: 1.2em; height: 1.2em; flex: none; }

/* Buntstift-Streifen ganz oben */
.kb-stripe {
	height: 10px;
	background: linear-gradient(90deg,
		var(--kb-red) 0 16.66%, var(--kb-orange) 0 33.33%, var(--kb-yellow) 0 50%,
		var(--kb-green) 0 66.66%, var(--kb-blue) 0 83.33%, var(--kb-purple) 0);
}

/* Regenbogen-Buchstaben */
.kb-c0 { color: var(--kb-red); }
.kb-c1 { color: var(--kb-orange); }
.kb-c2 { color: #E8B400; }
.kb-c3 { color: var(--kb-green); }
.kb-c4 { color: var(--kb-blue); }
.kb-c5 { color: var(--kb-purple); }

/* ==========================================================
   3. Buttons, Chips, Boxen
   ========================================================== */
.kb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .7em 1.3em;
	font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2;
	color: var(--kb-ink); text-decoration: none;
	background: var(--kb-yellow);
	border: var(--kb-line); border-radius: 999px;
	box-shadow: 4px 4px 0 var(--kb-ink);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.kb-btn:hover { color: var(--kb-ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--kb-ink); }
.kb-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--kb-ink); }
.kb-btn--big { font-size: 1.15rem; padding: .85em 1.6em; }
.kb-btn--yellow { background: var(--kb-yellow); }
.kb-btn--green { background: var(--kb-green); }
.kb-btn--blue { background: var(--kb-blue); color: #fff; }
.kb-btn--blue:hover { color: #fff; }

.kb-chips, .kb-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kb-chip {
	display: inline-block; padding: .35em .95em;
	font-weight: 700; font-size: .95rem; color: var(--kb-ink); text-decoration: none;
	background: var(--kb-white); border: var(--kb-line); border-radius: 999px;
	transition: transform .15s ease, background .15s ease;
}
a.kb-chip:hover { color: var(--kb-ink); transform: rotate(-2deg) scale(1.04); }
.kb-chip.is-active { background: var(--kb-ink); color: #fff; }
.kb-chip--0 { background: var(--kb-red-soft); }
.kb-chip--1 { background: var(--kb-orange-soft); }
.kb-chip--2 { background: var(--kb-yellow-soft); }
.kb-chip--3 { background: var(--kb-green-soft); }
.kb-chip--4 { background: var(--kb-blue-soft); }
.kb-chip--5 { background: var(--kb-purple-soft); }

.kb-box {
	background: var(--kb-white); border: var(--kb-line); border-radius: var(--kb-radius);
	box-shadow: var(--kb-shadow); padding: clamp(20px, 3vw, 36px);
}

/* ==========================================================
   4. Header & Navigation
   ========================================================== */
.kb-header { background: var(--kb-white); border-bottom: var(--kb-line); position: relative; z-index: 20; }
.kb-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.kb-brand__name {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; text-decoration: none; letter-spacing: -.02em;
	text-shadow: 2px 2px 0 rgba(43, 45, 66, .12);
}
.kb-brand__icon { font-size: 1.2em; display: inline-block; transform: rotate(-20deg); }
.kb-brand .custom-logo { max-height: 64px; width: auto; }

.kb-nav { display: flex; align-items: center; gap: 18px; }
.kb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.kb-nav__list a {
	display: block; white-space: nowrap; padding: .45em .9em; border-radius: 999px;
	color: var(--kb-ink); font-weight: 800; text-decoration: none;
	border: 3px solid transparent;
	transition: background .15s ease, border-color .15s ease;
}
.kb-nav__list > li:nth-child(6n+1) > a:hover, .kb-nav__list > li:nth-child(6n+1).current-menu-item > a { background: var(--kb-red-soft); border-color: var(--kb-ink); }
.kb-nav__list > li:nth-child(6n+2) > a:hover, .kb-nav__list > li:nth-child(6n+2).current-menu-item > a { background: var(--kb-orange-soft); border-color: var(--kb-ink); }
.kb-nav__list > li:nth-child(6n+3) > a:hover, .kb-nav__list > li:nth-child(6n+3).current-menu-item > a { background: var(--kb-yellow-soft); border-color: var(--kb-ink); }
.kb-nav__list > li:nth-child(6n+4) > a:hover, .kb-nav__list > li:nth-child(6n+4).current-menu-item > a { background: var(--kb-green-soft); border-color: var(--kb-ink); }
.kb-nav__list > li:nth-child(6n+5) > a:hover, .kb-nav__list > li:nth-child(6n+5).current-menu-item > a { background: var(--kb-blue-soft); border-color: var(--kb-ink); }
.kb-nav__list > li:nth-child(6n+6) > a:hover, .kb-nav__list > li:nth-child(6n+6).current-menu-item > a { background: var(--kb-purple-soft); border-color: var(--kb-ink); }

/* Untermenüs */
.kb-nav__list li { position: relative; }
.kb-nav__list .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
	list-style: none; margin: 6px 0 0; padding: 8px;
	background: #fff; border: var(--kb-line); border-radius: var(--kb-radius-sm); box-shadow: var(--kb-shadow);
}
.kb-nav__list li:hover > .sub-menu, .kb-nav__list li:focus-within > .sub-menu { display: block; }

.kb-menu-toggle {
	display: none; align-items: center; gap: 6px;
	font: inherit; font-weight: 800; color: var(--kb-ink);
	background: var(--kb-yellow); border: var(--kb-line); border-radius: 999px; padding: .45em .9em; cursor: pointer;
	box-shadow: 3px 3px 0 var(--kb-ink);
}

/* Suche */
.kb-search { display: flex; align-items: stretch; gap: 0; }
.kb-search input[type="search"] {
	flex: 1; min-width: 0;
	font: inherit; color: var(--kb-ink);
	padding: .6em 1em; background: #fff;
	border: var(--kb-line); border-right: 0; border-radius: 999px 0 0 999px;
}
.kb-search input[type="search"]:focus { outline: none; background: var(--kb-yellow-soft); }
.kb-search button {
	display: inline-flex; align-items: center; gap: .4em;
	font: inherit; font-weight: 800; cursor: pointer;
	padding: 0 1em; border: var(--kb-line); border-radius: 0 999px 999px 0;
	background: var(--kb-blue); color: #fff;
}
.kb-search--nav { width: 210px; }
.kb-search--nav input[type="search"] { padding: .45em .9em; font-size: .95rem; }
.kb-search--hero { max-width: 560px; margin: 0 0 22px; box-shadow: var(--kb-shadow); border-radius: 999px; }
.kb-search--hero input[type="search"] { padding: .9em 1.3em; font-size: 1.05rem; }
.kb-search--hero .kb-btn { box-shadow: none; border-radius: 0 999px 999px 0; transform: none; }

@media (max-width: 1100px) {
	.kb-menu-toggle { display: inline-flex; }
	.kb-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 14px;
		padding: 18px 20px 24px; background: #fff; border-bottom: var(--kb-line);
	}
	.kb-nav.is-open { display: flex; }
	.kb-nav__list { flex-direction: column; }
	.kb-nav__list .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 16px; margin: 0; }
	.kb-search--nav { width: 100%; }
}

/* ==========================================================
   5. Startseite
   ========================================================== */
.kb-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(circle at 97% 8%, var(--kb-pink) 0 46px, transparent 47px),
		radial-gradient(circle at 92% 85%, var(--kb-green) 0 60px, transparent 61px),
		radial-gradient(circle at 55% 105%, var(--kb-orange) 0 80px, transparent 81px),
		linear-gradient(160deg, #FFF3B0 0%, #FFE0EC 55%, #DCEAFF 100%);
	border-bottom: var(--kb-line);
}
.kb-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-block: clamp(40px, 7vw, 80px); }
.kb-hero__badge {
	display: inline-block; margin: 0 0 18px; padding: .35em 1em;
	font-weight: 800; font-size: .95rem;
	background: #fff; border: var(--kb-line); border-radius: 999px; transform: rotate(-2deg);
}
.kb-hero__title { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 900; margin-bottom: .35em; }
.kb-hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--kb-ink-soft); max-width: 34em; margin: 0 0 26px; font-weight: 600; }
.kb-hero__art { display: flex; justify-content: center; }
.kb-hero-art { width: 100%; max-width: 460px; height: auto; animation: kb-float 6s ease-in-out infinite; }

@keyframes kb-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(1deg); } }

@media (max-width: 860px) {
	.kb-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.kb-hero__art { order: -1; }
	.kb-hero-art { max-width: 220px; }
	.kb-hero__title { overflow-wrap: anywhere; hyphens: auto; }
}


.kb-section { padding-block: clamp(32px, 5vw, 56px); }
.kb-section--tight { padding-block: 20px 40px; }
.kb-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

.kb-h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 18px;
	text-decoration: underline wavy var(--kb-orange); text-decoration-thickness: 3px; text-underline-offset: 10px;
}
.kb-section__head .kb-h2 { margin-bottom: 0; }
.kb-h2--center { text-align: center; }
.kb-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--kb-ink); text-decoration: none; }
.kb-more:hover { color: var(--kb-purple); }

/* Motiv-Kacheln */
.kb-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 18px; }
.kb-tile {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	padding: 22px 12px 18px; height: 100%;
	color: var(--kb-ink); text-decoration: none;
	border: var(--kb-line); border-radius: var(--kb-radius); box-shadow: var(--kb-shadow);
	transition: transform .18s ease, box-shadow .18s ease;
}
.kb-tile:hover { color: var(--kb-ink); transform: translate(-3px, -3px) rotate(-1.5deg); box-shadow: var(--kb-shadow-hover); }
.kb-tiles li:nth-child(even) .kb-tile:hover { transform: translate(-3px, -3px) rotate(1.5deg); }
.kb-tile__emoji { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; transition: transform .25s ease; }
.kb-tile:hover .kb-tile__emoji { transform: scale(1.18) rotate(-8deg); }
.kb-tile__name { font-weight: 900; font-size: 1.05rem; line-height: 1.2; }
.kb-tile__count { font-size: .85rem; font-weight: 700; color: var(--kb-ink-soft); }
.kb-tile--0 { background: var(--kb-red-soft); }
.kb-tile--1 { background: var(--kb-orange-soft); }
.kb-tile--2 { background: var(--kb-yellow-soft); }
.kb-tile--3 { background: var(--kb-green-soft); }
.kb-tile--4 { background: var(--kb-blue-soft); }
.kb-tile--5 { background: var(--kb-purple-soft); }

/* So geht's */
.kb-steps { padding-block: clamp(40px, 6vw, 70px); background: var(--kb-white); border-block: var(--kb-line); margin-block: 20px; }
.kb-steps__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.kb-step {
	position: relative; display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center;
	padding: 34px 22px 26px; border: var(--kb-line); border-radius: var(--kb-radius); box-shadow: var(--kb-shadow);
}
.kb-step strong { font-size: 1.3rem; font-weight: 900; }
.kb-step span:last-child { color: var(--kb-ink-soft); font-weight: 600; }
.kb-step--1 { background: var(--kb-yellow-soft); transform: rotate(-1deg); }
.kb-step--2 { background: var(--kb-green-soft); transform: rotate(1deg); }
.kb-step--3 { background: var(--kb-blue-soft); transform: rotate(-1deg); }
.kb-step__num {
	position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
	display: grid; place-items: center; width: 52px; height: 52px;
	font-size: 1.6rem; font-weight: 900; color: #fff;
	background: var(--kb-red); border: var(--kb-line); border-radius: 50%;
}
.kb-step--2 .kb-step__num { background: var(--kb-purple); }
.kb-step--3 .kb-step__num { background: var(--kb-orange); }
@media (max-width: 760px) { .kb-steps__list { grid-template-columns: 1fr; gap: 44px; } }

/* ==========================================================
   6. Karten-Raster
   ========================================================== */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.kb-grid--posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.kb-grid__ad { grid-column: 1 / -1; }

.kb-card {
	background: var(--kb-white); border: var(--kb-line); border-radius: var(--kb-radius); box-shadow: var(--kb-shadow);
	overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.kb-card:hover { transform: translate(-3px, -3px); box-shadow: var(--kb-shadow-hover); }
.kb-grid .kb-card:nth-child(6n+1):hover { box-shadow: 8px 8px 0 var(--kb-red); }
.kb-grid .kb-card:nth-child(6n+2):hover { box-shadow: 8px 8px 0 var(--kb-orange); }
.kb-grid .kb-card:nth-child(6n+3):hover { box-shadow: 8px 8px 0 var(--kb-yellow); }
.kb-grid .kb-card:nth-child(6n+4):hover { box-shadow: 8px 8px 0 var(--kb-green); }
.kb-grid .kb-card:nth-child(6n+5):hover { box-shadow: 8px 8px 0 var(--kb-blue); }
.kb-grid .kb-card:nth-child(6n+6):hover { box-shadow: 8px 8px 0 var(--kb-purple); }

.kb-card__link { display: flex; flex-direction: column; height: 100%; color: var(--kb-ink); text-decoration: none; }
.kb-card__link:hover { color: var(--kb-ink); }
.kb-card__paper {
	aspect-ratio: 3 / 4; display: grid; place-items: center; padding: 14px;
	background: #fff; border-bottom: var(--kb-line);
}
.kb-card__paper img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.kb-card:hover .kb-card__paper img { transform: scale(1.04); }
.kb-card__paper--wide { aspect-ratio: 16 / 9; padding: 0; }
.kb-card__paper--wide img { object-fit: cover; }
.kb-card__empty { font-size: 3rem; }
.kb-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.kb-card__tag { font-size: .8rem; font-weight: 800; color: var(--kb-ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.kb-card__title { font-size: 1.08rem; font-weight: 900; margin: 0; }
.kb-card__excerpt { margin: 0; color: var(--kb-ink-soft); font-size: .95rem; }

/* ==========================================================
   7. Übersichtsseiten
   ========================================================== */
.kb-pagehead { padding-block: 26px 30px; }
.kb-pagehead__title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; margin: 6px 0 10px; }
.kb-pagehead__emoji { display: inline-block; transform: rotate(-8deg); }
.kb-pagehead__desc { max-width: 52em; color: var(--kb-ink-soft); font-weight: 600; margin: 0; }
.kb-sortbar {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	margin-top: 22px; padding: 12px 16px;
	background: #fff; border: var(--kb-line); border-radius: var(--kb-radius-sm);
	font-weight: 800;
}
.kb-sortbar__links { display: flex; gap: 8px; }

.kb-crumbs { font-size: .92rem; font-weight: 700; color: var(--kb-ink-soft); padding-top: 18px; }
.kb-crumbs a { color: var(--kb-ink-soft); }
.kb-crumbs__sep { margin: 0 .45em; }

.kb-pagination { margin-top: 34px; }
.kb-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.kb-pagination a, .kb-pagination span {
	display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px;
	font-weight: 800; color: var(--kb-ink); text-decoration: none;
	background: #fff; border: var(--kb-line); border-radius: 999px;
}
.kb-pagination .current { background: var(--kb-yellow); box-shadow: 3px 3px 0 var(--kb-ink); }
.kb-pagination a:hover { background: var(--kb-blue-soft); color: var(--kb-ink); }

.kb-empty { text-align: center; font-weight: 700; font-size: 1.15rem; }
.kb-empty__emoji { font-size: 3.4rem; margin: 0; }

/* ==========================================================
   8. Einzelne Malvorlage
   ========================================================== */
.kb-single { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 54px); align-items: start; padding-block: 18px 30px; }
.kb-single__paper {
	margin: 0; padding: clamp(12px, 2vw, 22px); background: #fff;
	border: var(--kb-line); border-radius: var(--kb-radius); box-shadow: 8px 8px 0 var(--kb-blue);
	transform: rotate(-.6deg);
}
.kb-single__img { width: 100%; height: auto; }
.kb-single__title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; }
.kb-facts { margin-bottom: 26px; }
.kb-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.kb-actions .kb-btn { flex: 1 1 260px; }
.kb-actions__note { margin: 14px 0 0; font-weight: 700; color: var(--kb-ink-soft); }
/* Ruhiger Abstand zwischen Download-Buttons und allem, was folgt (auch Werbung). */
.kb-single__text { margin-top: 34px; }
.kb-tip {
	margin-top: 26px; padding: 16px 20px;
	background: var(--kb-yellow-soft); border: 3px dashed var(--kb-ink); border-radius: var(--kb-radius-sm); font-weight: 600;
}
.kb-tip p { margin: 0; }
@media (max-width: 860px) {
	.kb-single { grid-template-columns: 1fr; }
	.kb-single__paper { transform: none; }
}

/* Artikel & Seiten */
.kb-article { max-width: 860px; padding-block: 10px 40px; }
.kb-article__meta { color: var(--kb-ink-soft); font-weight: 700; }
.kb-article__img { margin: 0 0 24px; border: var(--kb-line); border-radius: var(--kb-radius); overflow: hidden; }
.kb-prose > :first-child { margin-top: 0; }
.kb-prose > :last-child { margin-bottom: 0; }
.kb-prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.kb-prose h3 { font-size: 1.25rem; margin-top: 1.2em; }
.kb-prose img { border-radius: var(--kb-radius-sm); }
.kb-prose ul li::marker { color: var(--kb-orange); }
.kb-comments { margin-top: 30px; }

/* 404 */
.kb-404 { text-align: center; }
.kb-404__big { font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; line-height: 1; margin: 0 0 10px; text-shadow: 6px 6px 0 var(--kb-ink); }

/* ==========================================================
   9. Werbeplätze
   ========================================================== */
.kb-ad { margin: 26px auto; text-align: center; min-height: 100px; }
.kb-ad__label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--kb-ink-soft); margin-bottom: 4px; }
.kb-ad--placeholder {
	display: grid; place-items: center; gap: 2px; padding: 22px;
	background: repeating-linear-gradient(45deg, #fff 0 12px, #F4F1E8 12px 24px);
	border: 3px dashed var(--kb-ink-soft); border-radius: var(--kb-radius-sm);
	color: var(--kb-ink-soft); font-weight: 700;
}
.kb-grid__ad .kb-ad { margin: 0; }
.kb-single__media .kb-ad { margin-top: 0; }

/* ==========================================================
   10. Footer
   ========================================================== */
.kb-footer { position: relative; margin-top: 70px; background: var(--kb-ink); color: #F1F1F6; }
.kb-footer__wave { position: absolute; top: -40px; left: 0; width: 100%; height: 42px; fill: var(--kb-ink); }
.kb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-block: 50px 30px; }
.kb-footer__name { font-size: 1.5rem; font-weight: 900; margin: 0 0 8px; color: var(--kb-yellow); }
.kb-footer__head { font-weight: 900; font-size: 1.1rem; margin: 0 0 10px; color: #fff; }
.kb-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kb-footer a { color: #F1F1F6; text-decoration: none; font-weight: 700; }
.kb-footer a:hover { color: var(--kb-yellow); text-decoration: underline wavy; }
.kb-footer__bottom { border-top: 2px dashed rgba(255, 255, 255, .2); padding-block: 18px 26px; font-size: .9rem; opacity: .8; }
.kb-footer__bottom p { margin: 0; }
@media (max-width: 760px) { .kb-footer__grid { grid-template-columns: 1fr; } }

/* WordPress-Standardklassen */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--kb-ink-soft); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Kleine Bildschirme */
@media (max-width: 600px) {
	.kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.kb-grid--posts { grid-template-columns: minmax(0, 1fr); }
	.kb-card__paper { padding: 8px; }
	.kb-card__body { padding: 10px 12px 12px; }
	.kb-card__title { font-size: .98rem; }
	.kb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.kb-tile { padding: 14px 6px 12px; box-shadow: 3px 3px 0 var(--kb-ink); }
	.kb-tile__emoji { font-size: 2rem; }
	.kb-tile__name { font-size: .85rem; overflow-wrap: anywhere; hyphens: auto; }
	.kb-tile__count { display: none; }
	.kb-search--hero .kb-btn span { display: none; }
	.kb-btn--big { font-size: 1.05rem; }
}

/* ==========================================================
   11. Drucken: nur die Malvorlage
   ========================================================== */
@media print {
	@page { size: A4; margin: 10mm; }
	body { background: #fff; }
	body * { visibility: hidden; }
	.kb-single__paper, .kb-single__paper * { visibility: visible; }
	.kb-single__paper {
		position: absolute; inset: 0; margin: 0; padding: 0;
		border: 0; box-shadow: none; transform: none;
	}
	.kb-single__img { width: 100%; max-height: 270mm; object-fit: contain; }
	.kb-ad { display: none !important; }
}
