/* Kunstspirale – Blockstile für den Editor-Inhalt.
   Auswählbar im Block-Editor rechts unter „Stile“ (inc/bloecke.php).
   Gilt auf der Website und im Editor; dort fehlen die Variablen aus ks.css,
   deshalb stehen hinter jeder Variable die Farben der Farbwelt 2026. */

/* ---------- Absatz: Einleitung (groß) ---------- */
.is-style-ks-einleitung {
	font-size: clamp(1.2rem, 1.04rem + .62vw, 1.45rem);
	line-height: 1.5;
	font-weight: 500;
	color: var(--forest, #263d40);
	max-width: 60ch;
}
.is-style-ks-einleitung a { color: var(--orange-dark, #954603); }

/* ---------- Gemeinsame Breite der Kästen ---------- */
.wp-block-list.is-style-ks-kennzahlen,
.wp-block-list.is-style-ks-stichworte,
.wp-block-list.is-style-ks-linkkarten,
.wp-block-group.is-style-ks-kasten,
.wp-block-quote.is-style-ks-zitat-gross { max-width: 58rem; }

/* ---------- Liste: Kennzahlen (Kacheln) ----------
   Je Listenpunkt eine Kachel; was fett gesetzt ist, steht groß oben. */
.wp-block-list.is-style-ks-kennzahlen {
	list-style: none;
	padding: 0;
	margin-block: 2rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
	gap: 1rem;
}
.wp-block-list.is-style-ks-kennzahlen > li {
	margin: 0;
	max-width: none;
	padding: 1.1rem 1.2rem 1.25rem;
	background: var(--paper, #fff);
	border: 1px solid var(--line, rgba(44,44,40,.14));
	border-top: 4px solid var(--orange, #EC7404);
	border-radius: var(--r-md, 14px);
	box-shadow: var(--shadow-sm, 0 10px 24px -16px rgba(25,39,41,.3));
	font-size: var(--fs-small, .9375rem);
	line-height: 1.4;
	color: var(--ink-2, #55554F);
}
.wp-block-list.is-style-ks-kennzahlen > li:nth-child(3n+2) { border-top-color: var(--himbeer, #D6336C); }
.wp-block-list.is-style-ks-kennzahlen > li:nth-child(3n) { border-top-color: var(--forest, #263d40); }
.wp-block-list.is-style-ks-kennzahlen > li strong {
	display: block;
	margin-bottom: .3rem;
	font-family: var(--font-head, inherit);
	font-weight: 750;
	font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.7rem);
	line-height: 1.05;
	letter-spacing: -.02em;
	color: var(--forest, #263d40);
}

/* ---------- Liste: Stichworte (Chips) ---------- */
.wp-block-list.is-style-ks-stichworte {
	list-style: none;
	padding: 0;
	margin-block: 1.4rem;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.wp-block-list.is-style-ks-stichworte > li {
	margin: 0;
	max-width: none;
	padding: .42rem .95rem;
	border-radius: 999px;
	background: #FDEEE1;
	color: var(--forest, #263d40);
	font-size: var(--fs-small, .9375rem);
	font-weight: 600;
	line-height: 1.3;
}
.wp-block-list.is-style-ks-stichworte > li:nth-child(3n+2) { background: #FCE3EB; }
.wp-block-list.is-style-ks-stichworte > li:nth-child(3n) { background: #E3ECEB; }
.wp-block-list.is-style-ks-stichworte a { color: inherit; }

/* ---------- Liste: Linkkarten ----------
   Je Listenpunkt eine Karte: der Link am Anfang ist die Überschrift und
   macht die ganze Karte anklickbar, der Text danach die Beschreibung. */
.wp-block-list.is-style-ks-linkkarten {
	list-style: none;
	padding: 0;
	margin-block: 1.4rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	gap: 1rem;
}
.wp-block-list.is-style-ks-linkkarten > li {
	position: relative;
	margin: 0;
	max-width: none;
	padding: 1.15rem 3.4rem 1.25rem 1.25rem;
	background: var(--paper, #fff);
	border: 1px solid var(--line, rgba(44,44,40,.14));
	border-radius: var(--r-md, 14px);
	box-shadow: var(--shadow-sm, 0 10px 24px -16px rgba(25,39,41,.3));
	font-size: var(--fs-small, .9375rem);
	line-height: 1.45;
	color: var(--ink-2, #55554F);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wp-block-list.is-style-ks-linkkarten > li::after {
	content: "";
	position: absolute;
	right: 1.1rem;
	top: 1.15rem;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	background: var(--orange, #EC7404) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='%23192729' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
	transition: transform .2s ease;
}
.wp-block-list.is-style-ks-linkkarten > li > a:first-child {
	display: block;
	margin-bottom: .3rem;
	font-family: var(--font-head, inherit);
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1.25;
	color: var(--forest, #263d40);
	text-decoration: none;
}
.wp-block-list.is-style-ks-linkkarten > li > a:first-child::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.wp-block-list.is-style-ks-linkkarten > li:hover {
	transform: translateY(-2px);
	border-color: var(--orange, #EC7404);
	box-shadow: var(--shadow-md, 0 28px 50px -28px rgba(25,39,41,.4));
}
.wp-block-list.is-style-ks-linkkarten > li:hover::after { transform: translateX(3px); }
.wp-block-list.is-style-ks-linkkarten > li:focus-within { outline: 3px solid var(--orange, #EC7404); outline-offset: 2px; }
.wp-block-list.is-style-ks-linkkarten > li > a:first-child:focus { outline: none; }

/* ---------- Gruppe: Kasten (hell) ---------- */
.wp-block-group.is-style-ks-kasten {
	margin-block: 2.6rem;
	padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
	background: #FDEEE1;
	border-radius: var(--r-lg, 24px);
}
.wp-block-group.is-style-ks-kasten > * + * { margin-top: 1rem; }
.wp-block-group.is-style-ks-kasten > :first-child { margin-top: 0; }
.wp-block-group.is-style-ks-kasten > :last-child { margin-bottom: 0; }

/* ---------- Zitat: Großes Zitat (Petrol) ---------- */
.wp-block-quote.is-style-ks-zitat-gross {
	position: relative;
	overflow: hidden;
	margin-block: 2.8rem;
	padding: clamp(2rem, 1.3rem + 2.6vw, 3.4rem) clamp(1.5rem, 1rem + 2.6vw, 3.4rem) clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
	border: 0;
	border-radius: var(--r-lg, 24px);
	background: var(--forest, #263d40);
	color: var(--cream, #fcfcfc);
	font-style: normal;
}
.wp-block-quote.is-style-ks-zitat-gross::before {
	content: "\201C";
	position: absolute;
	right: clamp(1rem, .5rem + 2vw, 2.4rem);
	top: -.12em;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: clamp(9rem, 6rem + 9vw, 15rem);
	line-height: 1;
	color: var(--olive, #F07AA1);
	opacity: .9;
	pointer-events: none;
}
.wp-block-quote.is-style-ks-zitat-gross::after {
	content: "";
	position: absolute;
	right: clamp(1.4rem, 1rem + 2vw, 3rem);
	bottom: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
	width: .9rem;
	height: .9rem;
	border-radius: 50%;
	background: var(--orange, #EC7404);
}
.wp-block-quote.is-style-ks-zitat-gross p {
	position: relative;
	max-width: 28ch;
	margin: 0;
	text-wrap: balance;
	font-family: var(--font-head, inherit);
	font-weight: 700;
	font-style: italic;
	font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.9rem);
	line-height: 1.15;
	letter-spacing: -.015em;
	color: var(--cream, #fcfcfc);
}
.wp-block-quote.is-style-ks-zitat-gross p + p { margin-top: .8rem; }
.wp-block-quote.is-style-ks-zitat-gross cite {
	display: block;
	margin-top: 1.2rem;
	font: 600 var(--fs-meta, .8125rem)/1.4 var(--font-mono, monospace);
	letter-spacing: .16em;
	text-transform: uppercase;
	font-style: normal;
	color: var(--olive, #F07AA1);
}

/* ---------- Knöpfe wie auf der übrigen Website ---------- */
.wp-block-buttons { gap: .8rem; }
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .7rem;
	min-height: 56px;
	padding: .9rem 1.75rem;
	background: var(--orange, #EC7404);
	color: var(--forest-deep, #192729);
	border: 2px solid var(--orange, #EC7404);
	border-radius: var(--r-sm, 6px);
	box-shadow: 0 3px 0 rgba(0,0,0,.16);
	font-family: var(--font-body, inherit);
	font-size: .875rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: .11em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
}
.wp-block-button .wp-block-button__link::after {
	content: "";
	flex: none;
	border-left: 7px solid currentColor;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}
.wp-block-button .wp-block-button__link:hover {
	transform: translateY(2px);
	box-shadow: 0 1px 0 rgba(0,0,0,.16);
	color: var(--forest-deep, #192729);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--forest, #263d40);
	border-color: var(--forest, #263d40);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--forest, #263d40);
	color: var(--cream, #fcfcfc);
}
.entry .wp-block-buttons { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
	.wp-block-list.is-style-ks-linkkarten > li,
	.wp-block-list.is-style-ks-linkkarten > li::after,
	.wp-block-button .wp-block-button__link { transition: none; }
}
