/*
 * Unsere Pudel: Kachelleiste (Startseite, Seite „Unsere Pudel“), Karte,
 * Merkmale, Größe × Farbe, Stand der Liste.
 * Vorlage: design/pudel/mockups/ (Kacheln, Main, UnserePudel).
 *
 * Diagramme neutral in Tinte und Lavendelgrau, keine Säulenfarbe. Einzige
 * Ausnahme: die Fellfarben-Balken in der echten Fellfarbe, immer mit Namen.
 */

:root {
	--dpk-pudel-rahmen: #DCD6E2;
	--dpk-pudel-lavendel: #C9C0D3;
	--dpk-pudel-balken: #B7AAC4;
	--dpk-pudel-flaeche: #EDE9F1;
}

.dpk-pudel-hinweis {
	border: 1px dashed var(--dpk-pudel-lavendel);
	padding: 14px 16px;
	color: var(--wp--preset--color--grau);
	margin: 0;
}

/* ---------- Stand der Liste ---------- */

.dpk-pudelstand > * {
	margin: 0;
}

.dpk-pudelstand__etikett {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #FFFFFF;
	color: var(--wp--preset--color--tinte);
	padding: 4px 12px;
	font-size: 0.875rem;
	font-weight: 600;
}

.dpk-pudelstand__veraltet {
	margin-top: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--tinte);
}

.dpk-pudelstand__etikett + .dpk-pudelstand__veraltet {
	background: #FFFFFF;
	padding: 4px 12px;
	display: inline-block;
}

/* ---------- Startseite: Abschnitt „Unsere Pudel in Zahlen“ ---------- */

.dpk-pudelzahlen {
	max-width: var(--wp--custom--breite);
	margin-inline: auto;
	padding: 44px var(--wp--custom--innen) 48px;
	border-top: 1px solid var(--wp--preset--color--linie);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 24px;
	align-items: end;
}

.dpk-pudelzahlen > * {
	margin: 0;
	grid-column: 1;
}

.dpk-pudelzahlen__titel {
	font-size: clamp(26px, 3.2vw, 34px);
	letter-spacing: -0.01em;
	margin-top: 4px;
}

/* Der Kachel-Block steuert Knopf und Raster selbst bei: Knopf rechts neben
   der Überschrift, Kacheln über die ganze Breite. */
.dpk-pudelzahlen > .dpk-pudelkacheln {
	display: contents;
}

.dpk-pudelzahlen .dpk-pudelkacheln__satz {
	grid-column: 1;
	margin: 4px 0 0;
	color: var(--wp--preset--color--grau);
}

.dpk-pudelzahlen .dpk-pudelkacheln__knopf {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: end;
	margin: 0;
}

.dpk-pudelzahlen .dpk-pudelkacheln__liste {
	grid-column: 1 / -1;
	margin-top: 20px;
}

@media (max-width: 640px) {
	.dpk-pudelzahlen {
		grid-template-columns: minmax(0, 1fr);
	}

	.dpk-pudelzahlen .dpk-pudelkacheln__knopf {
		grid-column: 1;
		grid-row: auto;
		order: 3;
		margin-top: 14px;
	}

	.dpk-pudelzahlen .dpk-pudelkacheln__liste {
		order: 4;
	}
}

/* ---------- Kacheln ---------- */

.dpk-pudelkacheln__knopf {
	margin: 0 0 16px;
}

.dpk-pudelkacheln__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
	gap: 16px;
}

/* Kein Wert läuft über den Kachelrand (Ergänzung Klaas 05.10.2026): die
   Kachel ist ein Container, der große Wert skaliert mit ihrer Breite und
   bricht notfalls um. */
.dpk-pudelkachel {
	border: 1px solid var(--dpk-pudel-rahmen);
	background: #FFFFFF;
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	margin: 0;
	container-type: inline-size;
	overflow: hidden;
}

.dpk-pudelkachel > * {
	margin: 0;
}

.dpk-pudelkachel__titel {
	font-family: var(--wp--preset--font-family--fliesstext);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--wp--preset--color--grau);
	min-height: calc(2 * 1.35em);
	hyphens: manual;
}

.dpk-pudelkachel__grafik {
	height: 44px;
	min-width: 0;
}

/* Feste Höhen: Wert 2 Zeilen, Unterzeile 3 Zeilen - alle Kacheln einer
   Reihe gleich hoch, beim Filterwechsel verschiebt sich nichts. Werte ohne
   Silbentrennung (Ortsnamen sind in der Kachel kurz, voller Name im title). */
.dpk-pudelkachel__wert {
	font-size: clamp(18px, 16cqi, 30px);
	font-weight: 600;
	line-height: 1.1;
	height: calc(2 * 1.1em);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
	hyphens: manual;
}

.dpk-pudelkachel__einheit {
	font-size: 1.125rem;
	font-weight: 500;
}

.dpk-pudelkachel__zeile {
	font-size: 0.8125rem;
	line-height: 1.4;
	min-height: calc(3 * 1.4em);
	color: var(--wp--preset--color--grau-leise);
	font-variant-numeric: tabular-nums;
}

/* Kachel 1: Legende immer zwei Zeilen */
.dpk-pudelkachel__zeile--legende {
	display: flex;
	flex-direction: column;
}

/* 1. Punkte: dunkel, hell, umrandet = ohne Angabe */
.dpk-pudelkachel__grafik--punkte {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 4px;
	overflow: hidden;
}

.dpk-pudelkachel__p,
.dpk-pudelkachel__punkt::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: none;
	background: var(--wp--preset--color--tinte);
}

.dpk-pudelkachel__p--hell,
.dpk-pudelkachel__punkt--hell::before {
	background: var(--dpk-pudel-lavendel);
}

.dpk-pudelkachel__p--ohne,
.dpk-pudelkachel__punkt--ohne::before {
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px #8E8299;
}

.dpk-pudelkachel__punkt {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.dpk-pudelkachel__punkt::before {
	content: "";
	width: 8px;
	height: 8px;
}

/* 2. Alter: Säulen je Lebensjahr, gestrichelt der Durchschnitt */
.dpk-pudelkachel__grafik--alter {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 2px;
	border-bottom: 1px solid var(--dpk-pudel-lavendel);
}

.dpk-pudelkachel__saeule {
	flex: 1 1 0;
	border-radius: 2px 2px 0 0;
	background: var(--dpk-pudel-balken);
}

.dpk-pudelkachel__saeule--alt {
	background: var(--wp--preset--color--tinte);
}

.dpk-pudelkachel__saeule--leer {
	opacity: 0.3;
}

.dpk-pudelkachel__schnitt {
	position: absolute;
	top: 0;
	bottom: 0;
	border-left: 1px dashed var(--wp--preset--color--tinte);
}

/* 3. Fellfarben-Streifen */
.dpk-pudelkachel__grafik--farben {
	display: flex;
	align-items: center;
	gap: 2px;
}

.dpk-pudelkachel__streifen {
	flex: 1 1 0;
	height: 22px;
	min-width: 2px;
}

/* 4. Größen */
.dpk-pudelkachel__grafik--groessen {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	align-items: end;
}

.dpk-pudelkachel__groesse {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
	height: 44px;
	font-size: 9px;
	line-height: 1;
	color: var(--wp--preset--color--grau-leise);
}

.dpk-pudelkachel__groesse > span {
	width: 100%;
	border-radius: 2px 2px 0 0;
	background: var(--dpk-pudel-lavendel);
}

.dpk-pudelkachel__groesse--top {
	color: var(--wp--preset--color--tinte);
	font-weight: 600;
}

.dpk-pudelkachel__groesse--top > span {
	background: var(--wp--preset--color--tinte);
}

/* 5. Wohnort-Balken */
.dpk-pudelkachel__grafik--orte {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.dpk-pudelkachel__ort {
	display: block;
	height: 6px;
	border-radius: 0 2px 2px 0;
	background: var(--dpk-pudel-lavendel);
}

.dpk-pudelkachel__ort--top {
	background: var(--wp--preset--color--tinte);
}

/* 6. Pudel-Anteil: Pudel dunkel, andere Rassen weiß mit Rand */
.dpk-pudelkachel__grafik--anteil {
	display: flex;
	align-items: center;
	gap: 2px;
}

.dpk-pudelkachel__anteil {
	flex: 1 1 0;
	height: 22px;
	min-width: 3px;
	background: var(--wp--preset--color--tinte);
}

.dpk-pudelkachel__anteil--fremd {
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1.5px #8E8299;
}

/* ---------- Filter Alle · Turnier · Freizeit ---------- */

.dpk-pudelfilter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	padding: 0 0 16px;
	margin: 0 0 32px !important;
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

/* In der Seite: volle Inhaltsbreite, linksbündig (die Kernregel setzt
   margin-inline: auto !important). */
.dpk-pudelseite .dpk-inhalt .wp-block-post-content > .dpk-pudelfilter {
	max-width: none;
	margin: 0 0 32px !important;
}

.dpk-pudelfilter[hidden] {
	display: none;
}

.dpk-pudelfilter__titel {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--grau);
}

.dpk-pudelfilter__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dpk-pudelfilter__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1.5px solid var(--wp--preset--color--tinte);
	background: #FFFFFF;
	color: var(--wp--preset--color--tinte);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.dpk-pudelfilter__pill[aria-pressed="true"] {
	background: var(--wp--preset--color--tinte);
	color: #FFFFFF;
}

.dpk-pudelfilter__pill:focus-visible {
	outline: 3px solid var(--wp--preset--color--tinte);
	outline-offset: 2px;
}

.dpk-pudelfilter__zahl {
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

/* Grundbreite für den längsten Satz („… nur Pudel im Turniersport“): Der Satz
   steht in jedem Filter neben den Pills oder in jedem Filter darunter, die
   Leiste ändert ihre Höhe beim Wechsel nicht. */
.dpk-pudelfilter__hinweis {
	flex: 1 1 28em;
	font-size: 0.875rem;
	color: var(--wp--preset--color--grau-leise);
}

/* ---------- Seite: Abschnitte ---------- */

.dpk-pudel-abschnitt {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-block: 0 40px !important;
}

.dpk-pudel-abschnitt > * {
	margin: 0 !important;
}

.dpk-pudel-abschnitt > h2 {
	font-size: clamp(22px, 2.6vw, 26px);
	font-weight: 600;
}

.dpk-pudel-kasten {
	border: 1px solid var(--dpk-pudel-rahmen);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.dpk-pudel-kasten > * {
	margin: 0;
}

.dpk-pudel-kasten__titel {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
}

.dpk-pudel-kasten__kopf {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dpk-pudel-kasten__kopf > * {
	margin: 0;
}

.dpk-pudel-kasten__unter {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--grau-leise);
}

.dpk-pudel-fuss {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--grau-leise);
}

/* ---------- Karte ---------- */

.dpk-pudelkarte {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: stretch;
}

.dpk-pudelkarte__karte {
	flex: 999 1 560px;
}

.dpk-pudelkarte__seite {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.dpk-pudelkarte__zeile {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--wp--preset--color--grau-leise);
}

/* Schmal bricht die Zeile je nach Filter ein- oder zweizeilig: zwei Zeilen
   reservieren, damit die Karte beim Filterwechsel nicht springt. */
@media (max-width: 700px) {
	.dpk-pudelkarte__zeile {
		min-height: calc(2 * 1.5em);
	}
}

.dpk-pudelkarte__svg {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 760 / 523; /* fällt vor dem Laden nicht zusammen */
	max-width: 760px;
	margin-inline: auto;
	font-family: var(--wp--preset--font-family--fliesstext);
}

/* Filterwechsel: nur fill und <title> ändern sich, weich überblendet. */
.dpk-pudelkarte__svg path[data-plz] {
	transition: fill 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
	.dpk-pudelkarte__svg path[data-plz] {
		transition: none;
	}
}

.dpk-pudelkarte__svg path:hover {
	stroke: var(--wp--preset--color--tinte);
	stroke-width: 1.4;
}

.dpk-pudelkarte__legende {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--grau);
	align-items: center;
}

.dpk-pudelkarte__legende li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.dpk-pudelkarte__feld {
	width: 14px;
	height: 14px;
	flex: none;
}

.dpk-pudelkarte__feld--leer {
	border: 1px solid var(--dpk-pudel-lavendel);
}

.dpk-pudelkarte__grenze {
	width: 14px;
	border-top: 2px solid var(--wp--preset--color--tinte);
}

.dpk-pudel-liste {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

.dpk-pudel-liste li {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 10px;
	padding: 7px 0;
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

.dpk-pudel-liste li:last-child {
	border-bottom: 0;
}

.dpk-pudel-liste__zahl {
	font-weight: 600;
}

.dpk-pudel-liste__vorbei {
	color: var(--wp--preset--color--grau-leise);
}

.dpk-pudel-liste__naechster {
	font-weight: 600;
}

/* ---------- Größe, Farbe, Alter ---------- */

.dpk-pudelmerkmale {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
	gap: 24px;
}

.dpk-pudel-balken {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.dpk-pudel-balken li {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) 28px;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.dpk-pudel-balken--farben {
	gap: 10px;
}

.dpk-pudel-balken--farben li {
	grid-template-columns: 104px minmax(0, 1fr) 28px;
}

.dpk-pudel-balken--bezirke {
	gap: 9px;
}

.dpk-pudel-balken--bezirke li {
	grid-template-columns: 128px minmax(0, 1fr) 24px;
}

.dpk-pudel-balken--bezirke .dpk-pudel-balken__spur {
	height: 10px;
}

.dpk-pudel-balken__name--normal {
	font-weight: 400;
}

/* Bezirksliste: Kurzformen bleiben einzeilig */
.dpk-pudel-balken--bezirke .dpk-pudel-balken__name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Platzhalterzeilen gleicher Höhe (Listen haben immer gleich viele Zeilen) */
.dpk-pudel-leer {
	border-bottom-color: transparent !important;
}

.dpk-pudel-balken__wert--hell {
	background: var(--dpk-pudel-lavendel);
}

.dpk-pudel-balken__name {
	font-weight: 600;
	line-height: 1.2;
}

.dpk-pudel-balken__name small {
	display: block;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--wp--preset--color--grau-leise);
}

.dpk-pudel-balken__spur {
	height: 12px;
	background: var(--wp--preset--color--papier-tief);
}

.dpk-pudel-balken--farben .dpk-pudel-balken__spur {
	height: 16px;
}

.dpk-pudel-balken__wert {
	display: block;
	height: 100%;
	background: var(--dpk-pudel-balken);
	border-radius: 0 3px 3px 0;
	box-sizing: border-box;
}

.dpk-pudel-balken__wert--top {
	background: var(--wp--preset--color--tinte);
}

.dpk-pudel-balken__zahl {
	text-align: right;
}

.dpk-pudel-balken__zahl--top {
	font-weight: 600;
}

/* Echte Fellfarben (immer mit Namen daneben) */
.dpk-fell--falb { background: #D9A86A; }
.dpk-fell--schwarz { background: #1F1C21; }
.dpk-fell--markenfarben { background: linear-gradient(90deg, #1F1C21 0 62%, #B9773E 62% 100%); }
.dpk-fell--weiss { background: #FFFFFF; box-shadow: inset 0 0 0 1px #BDB6C4; }
.dpk-fell--braun { background: #6E4630; }
.dpk-fell--silber { background: #A9A7B0; }
.dpk-fell--harlekin { background: linear-gradient(90deg, #FFFFFF 0 30%, #1F1C21 30% 48%, #FFFFFF 48% 74%, #1F1C21 74% 100%); box-shadow: inset 0 0 0 1px #BDB6C4; }

.dpk-pudelalter {
	position: relative;
	padding-top: 20px;
}

.dpk-pudelalter__schnitt {
	position: absolute;
	top: 0;
	bottom: 18px;
	border-left: 1px dashed var(--wp--preset--color--tinte);
}

.dpk-pudelalter__schnitt span {
	position: absolute;
	top: 0;
	left: 5px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.dpk-pudelalter__schnitt--rechts span {
	left: auto;
	right: 5px;
}

.dpk-pudelalter__saeulen {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 120px;
}

.dpk-pudelalter__saeulen span {
	flex: 1;
	background: var(--dpk-pudel-balken);
	border-radius: 3px 3px 0 0;
}

.dpk-pudelalter__saeulen .dpk-pudelalter__alt {
	background: var(--wp--preset--color--tinte);
}

.dpk-pudelalter__saeulen .dpk-pudelalter__leer {
	opacity: 0.3;
}

.dpk-pudelalter__achse {
	display: flex;
	gap: 3px;
	font-size: 0.6875rem;
	color: var(--wp--preset--color--grau-leise);
	text-align: center;
	padding-top: 4px;
	border-top: 1px solid var(--dpk-pudel-lavendel);
}

.dpk-pudelalter__achse span {
	flex: 1;
}

.dpk-pudelalter__fuss {
	font-size: 0.875rem;
	color: var(--wp--preset--color--grau);
}

.dpk-pudelalter__fuss::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	background: var(--wp--preset--color--tinte);
	margin-right: 6px;
}

/* ---------- Größe × Farbe ---------- */

.dpk-pudel-abschnitt--kombination {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	grid-template-rows: auto 1fr;
	gap: 8px 24px;
	align-items: start;
}

.dpk-pudel-abschnitt--kombination > h2 {
	grid-column: 1;
	grid-row: 1;
}

.dpk-pudel-abschnitt--kombination > .dpk-pudelkombination,
.dpk-pudel-abschnitt--kombination .dpk-pudelkombination__innen {
	display: contents; /* Satz links unter der Überschrift, Tabelle rechts */
}

.dpk-pudelkombination__text {
	grid-column: 1;
	grid-row: 2;
	margin: 0;
	font-size: 1rem;
	color: var(--wp--preset--color--grau);
	max-width: 40ch;
}

.dpk-pudelkombination__tabelle:focus-visible {
	outline: 3px solid var(--wp--preset--color--tinte);
	outline-offset: 2px;
}

.dpk-pudelkombination__tabelle {
	grid-column: 2;
	grid-row: 1 / span 2;
	overflow-x: auto;
	min-width: 0;
}

@media (max-width: 800px) {
	.dpk-pudel-abschnitt--kombination {
		grid-template-columns: minmax(0, 1fr);
	}

	.dpk-pudelkombination__tabelle {
		grid-column: 1;
		grid-row: 3;
	}

	/* Satz über der Tabelle: Platz für 4 Zeilen, damit die Tabelle beim
	   Filterwechsel nicht springt. */
	.dpk-pudelkombination__text {
		min-height: calc(4 * 1.5em);
		line-height: 1.5;
	}
}

.dpk-pudelkombination table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 3px;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
	margin: 0;
}

.dpk-pudelkombination th,
.dpk-pudelkombination td {
	padding: 10px 6px;
	border: 0;
}

.dpk-pudelkombination thead th {
	font-weight: 600;
	padding: 6px;
}

.dpk-pudelkombination tbody th {
	text-align: left;
	font-weight: 600;
	white-space: nowrap; /* „Zwerg“ nie mitten im Wort trennen; die Tabelle rollt notfalls seitlich */
}

/* Handy: Spaltenköpfe nie mitten im Wort trennen; reicht der Platz nicht,
   rollt nur die Tabelle seitlich, nie die Seite. */
.dpk-pudelkombination thead th {
	white-space: nowrap;
}

@media (max-width: 480px) {
	.dpk-pudelkombination table {
		font-size: 0.8125rem;
		border-spacing: 2px;
	}

	.dpk-pudelkombination th,
	.dpk-pudelkombination td,
	.dpk-pudelkombination thead th {
		padding: 8px 3px;
	}
}

.dpk-stufe-0 { background: #FFFFFF; color: #8E8299; }
.dpk-stufe-1 { background: var(--dpk-pudel-flaeche); }
.dpk-stufe-2 { background: #D9D2E1; }
.dpk-stufe-3 { background: #A797B8; }
.dpk-stufe-4 { background: #6E5D82; color: #FFFFFF; font-weight: 600; }
.dpk-stufe-5 { background: #4A3B5C; color: #FFFFFF; font-weight: 600; }

/* ---------- Geburtstags-Box oben (nicht vom Filter betroffen) ---------- */

.dpk-pudelgeburtstage {
	background: #FEFCDD;
	border: 1px solid #E8E07A;
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dpk-pudelseite .dpk-inhalt .wp-block-post-content > .dpk-pudelgeburtstage {
	max-width: none;
	margin: 0 0 24px !important;
}

.dpk-pudelgeburtstage > * {
	margin: 0;
}

.dpk-pudelgeburtstage__titel {
	font-size: clamp(20px, 2.4vw, 24px);
	font-weight: 600;
}

.dpk-pudelgeburtstage__satz {
	font-size: 1.0625rem;
	font-weight: 500;
}

.dpk-pudelgeburtstage__karten {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dpk-pudelgeburtstage__karte {
	margin: 0;
	background: #FFFFFF;
	border: 1px solid #E8E07A;
	box-shadow: 0 1px 0 #E8E07A;
	padding: 8px 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	font-variant-numeric: tabular-nums;
}

.dpk-pudelgeburtstage__karte time {
	font-weight: 600;
}

.dpk-pudelgeburtstage__name {
	font-weight: 600;
}

.dpk-pudelgeburtstage__wird {
	font-size: 0.875rem;
	color: var(--wp--preset--color--grau);
}

.dpk-pudelgeburtstage__fuss {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--grau);
}

.dpk-pudelgeburtstage__karte--vorbei {
	color: var(--wp--preset--color--grau-leise);
	box-shadow: none;
}

.dpk-pudelgeburtstage__karte--vorbei .dpk-pudelgeburtstage__wird {
	color: var(--wp--preset--color--grau-leise);
}

/* Lange Namen ganz ausschreiben; das Kärtchen bricht notfalls um */
.dpk-pudelgeburtstage__karte {
	max-width: 100%;
}

.dpk-pudelgeburtstage__name {
	overflow-wrap: anywhere;
}

.dpk-pudelgeburtstage__weitere {
	margin: 0;
	align-self: center;
	font-size: 0.875rem;
	color: var(--wp--preset--color--grau);
}

/* Monatsstreifen über zwei Monate: ein Balken je Tag, zwischen den Monaten
   eine Linie, darüber der Monatsname. Keine Namen über den Balken. */
.dpk-monatsstreifen {
	display: flex;
	gap: 0;
}

.dpk-monatsstreifen__monat {
	flex: 1 1 0;
	min-width: 0;
	padding: 0 4px;
}

.dpk-monatsstreifen__monat + .dpk-monatsstreifen__monat {
	border-left: 1px solid var(--wp--preset--color--tinte);
}

.dpk-monatsstreifen__monatsname {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--grau);
	margin-bottom: 2px;
}

.dpk-monatsstreifen__balken {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 44px; /* 36 px Balken + Platz für das Heute-Dreieck */
}

.dpk-monatsstreifen__tag {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	height: 8px;
	border-radius: 1px;
	background: #DCD6E2;
}

.dpk-monatsstreifen__tag--feier {
	height: 36px;
	background: var(--wp--preset--color--tinte);
}

.dpk-monatsstreifen__tag--vorbei {
	height: 36px;
	background: #8E8299;
}

.dpk-monatsstreifen__tag--heute {
	box-shadow: 0 0 0 1px var(--wp--preset--color--tinte);
}

/* Dreieck über dem heutigen Tag */
.dpk-monatsstreifen__tag--heute::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(100% + 2px);
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top: 5px solid var(--wp--preset--color--tinte);
	border-bottom: 0;
}

.dpk-monatsstreifen__achse {
	position: relative;
	height: 16px;
	margin-top: 3px;
	font-size: 0.6875rem;
	color: var(--wp--preset--color--grau-leise);
}

.dpk-monatsstreifen__achse span {
	position: absolute;
	transform: translateX(-50%);
}

/* ---------- Tooltip (assets/js/pudel-tooltip.js) ---------- */

.dpk-tooltip {
	position: fixed;
	z-index: 1000;
	max-width: 240px;
	padding: 6px 10px;
	border-radius: 4px;
	background: #2B2333;
	color: #FFFFFF;
	font-family: var(--wp--preset--font-family--fliesstext);
	font-size: 13px;
	line-height: 1.35;
	pointer-events: none;
	animation: dpk-tooltip-ein 80ms ease-out;
}

.dpk-tooltip[hidden] {
	display: none;
}

@keyframes dpk-tooltip-ein {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.dpk-tooltip {
		animation: none;
	}
}

[data-tip] {
	cursor: default;
}

.dpk-pudelquelle > * > p {
	margin: 0;
}

/* ---------- Schluss: Woher die Zahlen kommen ---------- */

.dpk-pudel-schluss {
	border-top: 1px solid var(--wp--preset--color--linie);
	padding-top: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}

.dpk-pudel-schluss > * {
	margin: 0 !important;
}

.dpk-pudel-quelle {
	background: var(--wp--preset--color--papier-tief);
	padding: 18px 20px;
	flex: 1 1 420px;
	min-width: 0;
}

.dpk-pudel-quelle > * {
	margin: 0 0 6px !important;
}

.dpk-pudel-quelle > :last-child {
	margin-bottom: 0 !important;
}

.dpk-pudel-quelle h3 {
	font-size: 1rem;
	font-weight: 600;
}

.dpk-pudel-quelle p {
	font-size: 0.875rem;
	color: var(--wp--preset--color--grau);
}

.dpk-pudel-mitmachen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.dpk-pudel-mitmachen > * {
	margin: 0 !important;
}

.dpk-pudel-mitmachen p {
	font-size: 1.125rem;
}

/* ---------- Kopfband der Seite „Unsere Pudel“ ---------- */

/* Band in der Breite des Inhalts (Seite mit breiten Abschnitten), nicht
   in der Textspalte von 720 px wie sonst auf Unterseiten. */
.dpk-kopfband.dpk-kopfband--breit .dpk-kopfband__huelle {
	max-width: var(--wp--custom--breite);
}

.dpk-kopfband__stand {
	grid-column: 1 / -1;
}

/* Seite mit Pudel-Statistik (Body-Klasse aus dem mu-plugin): Inhalt in
   der Breite des Kopfbands, linke Kante bündig mit dem Band. */
.dpk-pudelseite .dpk-inhalt > .dpk-mit-randspalte {
	max-width: calc(var(--wp--custom--breite) - 2 * var(--wp--custom--innen));
}

.dpk-pudelseite .dpk-inhalt .wp-block-post-content > .alignwide {
	max-width: none;
}

/* Erster Absatz: linksbündig mit den Abschnitten, nicht mittig in der
   Textspalte (die Kernregel setzt margin-inline: auto !important). */
.dpk-pudelseite .dpk-inhalt .wp-block-post-content > .dpk-pudel-einleitung {
	margin: 0 0 36px !important;
	max-width: 60ch;
	font-size: 1.125rem;
}

/* ---------- Doppelbox auf Klubleben (dpk/pudel-kurz) ----------
   Vorlage design/pudel/mockups/Klubleben.dc.html. Steht als Karte im
   Raster von dpk/unterseiten und reicht über beide Spalten. */

.dpk-unterseiten > .dpk-pudelkurz {
	grid-column: 1 / -1;
	padding: 22px;
	gap: 0;
	container-type: inline-size;
	/* Heller Gelbton aus dem Mockup (Klubleben.dc.html, 05.10.2026), Text in Tinte. */
	background: #FEFCDD;
	border-color: #E8E07A;
}

.dpk-pudelkurz__kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
}

.dpk-pudelkurz__kopf > * {
	margin: 0;
}

.dpk-pudelkurz__stand {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--grau);
}

.dpk-pudelkurz .dpk-pudelstand__veraltet {
	margin: 6px 0 0;
}

.dpk-pudelkurz > .dpk-unterseite__text {
	margin-top: 6px;
}

.dpk-pudelkurz__zahlen {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 10px;
}

/* Jede Kennzahl ist eine kleine weiße Kachel; kein Wert läuft über ihren
   Rand (Ergänzung Klaas 05.10.2026). */
.dpk-pudelkurz__zahlen li {
	margin: 0;
	padding: 14px 16px;
	background: #FFFFFF;
	border: 1px solid #E8E07A;
	box-shadow: 0 1px 0 #E8E07A;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	container-type: inline-size;
	overflow: hidden;
}

.dpk-pudelkurz__wert {
	font-size: clamp(18px, 17cqi, 30px);
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.dpk-pudelkurz__einheit {
	font-size: 17px;
	font-weight: 500;
}

.dpk-pudelkurz__einheit abbr {
	text-decoration: none;
}

.dpk-pudelkurz__name {
	font-size: 0.875rem;
	color: var(--wp--preset--color--grau);
	hyphens: auto;
	overflow-wrap: anywhere;
}

.dpk-pudelkurz > .dpk-unterseite__text {
	color: #3A3142;
}

.dpk-pudelkurz__zusatz {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--grau-leise);
	font-variant-numeric: tabular-nums;
}

.dpk-pudelkurz__zusatz--stark {
	font-weight: 600;
	color: var(--wp--preset--color--tinte);
}

.dpk-pudelkurz__saetze {
	margin: 14px 0 0;
	padding: 0 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--tinte);
	font-variant-numeric: tabular-nums;
}

.dpk-pudelkurz__saetze li {
	margin: 0;
}

.dpk-pudelkurz > .dpk-unterseite__link {
	margin-top: 16px;
	justify-self: start;
}

/* Schmale Box (Kartenspalte im Theme unter 600 px, Handy): Kennzahlen 2 × 2,
   damit die Werte groß bleiben und Wörter nicht mitten im Wort brechen. */
@container (max-width: 600px) {
	.dpk-pudelkurz__zahlen {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
