/**
 * Wunschfolgen (/wunschfolgen/). Vorlage: archive-wunsch.php, Skript: wunschfolgen.js.
 * Alles unter .b2p-wf, Farben und Schriften aus den Variablen in style.css.
 */

@font-face {
	font-family: "B2P Lato";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/wp-content/uploads/et-fonts/Lato-Regular.ttf") format("truetype");
}
@font-face {
	font-family: "B2P Lato";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/wp-content/uploads/et-fonts/Lato-Bold.ttf") format("truetype");
}

.b2p-wf {
	--wf-sans: "B2P Lato", var(--b2p-font-body);
	background: var(--b2p-creme);
	color: var(--b2p-dunkel);
	font-family: var(--wf-sans);
	font-size: 16px;
	line-height: 1.6;
}
.b2p-wf *,
.b2p-wf *::before,
.b2p-wf *::after {
	box-sizing: border-box;
}
.b2p-wf p,
.b2p-wf h1,
.b2p-wf h2,
.b2p-wf h3 {
	margin: 0;
	padding: 0;
}
.b2p-wf a {
	color: var(--b2p-rot);
	text-decoration: underline;
}
.b2p-wf a:hover {
	color: var(--b2p-dunkel);
}
.b2p-wf [hidden] {
	display: none !important;
}

.b2p-wf-vorschau {
	padding: 8px 16px !important;
	background: var(--b2p-gelb);
	border-bottom: 1px solid var(--b2p-dunkel);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.b2p-wf-innen {
	max-width: 880px;
	margin: 0 auto;
	padding: 48px 16px 80px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* ---------- Kopf ---------- */

.b2p-wf-kopf {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.b2p-wf-dach {
	font-family: var(--b2p-font-display-regular);
	font-size: 18px;
	color: var(--b2p-grau);
}
.b2p-wf h1.b2p-wf-titel {
	font-family: var(--b2p-font-display);
	font-weight: 400;
	font-size: clamp(44px, 8vw, 76px);
	line-height: 0.95;
	color: var(--b2p-dunkel);
}
.b2p-wf-lead {
	max-width: 620px;
	font-size: 18px;
}
.b2p-wf-kopf__zeile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}
.b2p-wf-zahlen {
	font-size: 14px;
	color: var(--b2p-grau);
}

/* ---------- Knoepfe ---------- */

.b2p-wf .b2p-wf-knopf,
.b2p-wf .b2p-wf-knopf-hell,
.b2p-wf .b2p-wf-link,
.b2p-wf .b2p-wf-chip,
.b2p-wf .b2p-wf-tab,
.b2p-wf .b2p-wf-stimme {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	color: var(--b2p-dunkel);
	cursor: pointer;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
}
.b2p-wf .b2p-wf-knopf {
	font-family: var(--b2p-font-display-regular);
	font-size: 20px;
	min-height: 48px;
	padding: 0 24px;
	border: 2px solid var(--b2p-dunkel);
	border-radius: 3px;
	background: var(--b2p-gelb);
}
.b2p-wf .b2p-wf-knopf:hover {
	background: var(--b2p-dunkel);
	color: var(--b2p-gelb);
}
.b2p-wf .b2p-wf-knopf:disabled {
	opacity: 0.5;
	cursor: default;
	background: var(--b2p-gelb);
	color: var(--b2p-dunkel);
}
.b2p-wf .b2p-wf-knopf-hell {
	font-family: var(--wf-sans);
	font-weight: 700;
	font-size: 14px;
	min-height: 44px;
	padding: 0 14px;
	border: 2px solid var(--b2p-dunkel);
	border-radius: 3px;
	background: transparent;
}
.b2p-wf .b2p-wf-knopf-hell:hover {
	background: var(--b2p-dunkel);
	color: var(--b2p-creme);
}
.b2p-wf .b2p-wf-link {
	font-family: var(--wf-sans);
	font-size: 13px;
	font-weight: 700;
	min-height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	text-decoration: underline;
}
.b2p-wf .b2p-wf-link:hover {
	color: var(--b2p-rot);
}
.b2p-wf .b2p-wf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wf-sans);
	font-size: 14px;
	font-weight: 700;
	min-height: 44px;
	padding: 0 16px;
	border: 2px solid var(--b2p-dunkel);
	border-radius: 3px;
	background: transparent;
}
.b2p-wf .b2p-wf-chip.is-an,
.b2p-wf .b2p-wf-chip:has( input:checked ) {
	background: var(--b2p-dunkel);
	color: var(--b2p-creme);
}
.b2p-wf .b2p-wf-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.b2p-wf .b2p-wf-chip:has( input:focus-visible ) {
	outline: 3px solid var(--b2p-gelb);
	outline-offset: 2px;
}
.b2p-wf button:focus-visible {
	outline: 3px solid var(--b2p-dunkel);
	outline-offset: 2px;
}

/* ---------- Danke und Formular ---------- */

.b2p-wf-danke {
	padding: 20px;
	background: var(--b2p-creme-warm);
	border: 2px solid var(--b2p-dunkel);
	border-radius: 3px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15px;
	scroll-margin-top: 100px;
}
.b2p-wf-danke:focus {
	outline: none;
}
.b2p-wf-danke__titel {
	font-family: var(--b2p-font-display);
	font-size: 26px;
	line-height: 1.1;
}
.b2p-wf-danke__knoepfe {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.b2p-wf-form {
	padding: 24px 20px;
	background: #fff;
	border: 2px solid var(--b2p-dunkel);
	border-radius: 3px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	scroll-margin-top: 100px;
}
.b2p-wf-form__kopf {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.b2p-wf h2 {
	font-family: var(--b2p-font-display);
	font-weight: 400;
	font-size: 30px;
	line-height: 1.1;
	color: var(--b2p-dunkel);
}
.b2p-wf-arten {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.b2p-wf-arten legend {
	width: 100%;
	margin-bottom: 8px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
}
.b2p-wf-feld {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
}
.b2p-wf-feld small {
	font-weight: 400;
	color: var(--b2p-grau);
}
.b2p-wf .b2p-wf-feld input,
.b2p-wf .b2p-wf-feld textarea {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--b2p-linie);
	border-radius: 3px;
	background: #fff;
	font: 400 16px/1.5 var(--wf-sans);
	color: var(--b2p-dunkel);
}
.b2p-wf .b2p-wf-feld input:focus,
.b2p-wf .b2p-wf-feld textarea:focus {
	outline: none;
	border-color: var(--b2p-dunkel);
	box-shadow: 0 0 0 2px var(--b2p-gelb);
}
.b2p-wf .b2p-wf-feld [aria-invalid="true"] {
	border-color: var(--b2p-rot);
}
.b2p-wf-form__reihe {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: 16px;
}
.b2p-wf-haken {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	cursor: pointer;
}
.b2p-wf-haken input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	flex: none;
	accent-color: var(--b2p-dunkel);
}
.b2p-wf-topf {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.b2p-wf-klein {
	font-size: 13px;
	color: var(--b2p-grau);
}
.b2p-wf-form__fuss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}
.b2p-wf-meldung {
	font-size: 14px;
	font-weight: 700;
}
.b2p-wf-aehnlich {
	padding: 14px 16px;
	background: var(--b2p-creme-warm);
	border: 1px solid var(--b2p-linie);
	border-radius: 3px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
}
.b2p-wf-aehnlich > p {
	font-weight: 700;
}
.b2p-wf-aehnlich__zeile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 15px;
}
.b2p-wf-aehnlich__zeile + .b2p-wf-aehnlich__zeile {
	padding-top: 10px;
	border-top: 1px solid var(--b2p-linie);
}
.b2p-wf-aehnlich__zeile small {
	color: var(--b2p-grau);
}

/* ---------- Ansichten und Filter ---------- */

.b2p-wf-steuerung {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: -24px;
}
.b2p-wf-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	border-bottom: 1px solid var(--b2p-linie);
}
.b2p-wf .b2p-wf-tab {
	font-family: var(--b2p-font-display-regular);
	font-size: 22px;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	border-bottom: 4px solid transparent;
	margin-bottom: -1px;
	background: transparent;
	color: var(--b2p-grau);
}
.b2p-wf .b2p-wf-tab.is-an {
	color: var(--b2p-dunkel);
	border-bottom-color: var(--b2p-dunkel);
}
.b2p-wf-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.b2p-wf-hinweis {
	font-size: 14px;
	color: var(--b2p-grau);
}

/* ---------- Liste ---------- */

.b2p-wf-liste {
	display: flex;
	flex-direction: column;
}
.b2p-wf-idee {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px 0;
	border-bottom: 1px solid var(--b2p-linie);
	scroll-margin-top: 120px;
}
.b2p-wf-idee.is-neu {
	margin: 0 -12px;
	padding: 20px 12px;
	background: #fff8d6;
	animation: b2p-wf-auf 2.4s ease-out 1;
}
@keyframes b2p-wf-auf {
	0% { background: var(--b2p-gelb); }
	100% { background: #fff8d6; }
}
.b2p-wf .b2p-wf-stimme {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 64px;
	min-height: 64px;
	flex: none;
	padding: 0;
	border: 2px solid var(--b2p-dunkel);
	border-radius: 3px;
	background: transparent;
	font-family: var(--b2p-font-display-regular);
}
.b2p-wf .b2p-wf-stimme.is-an {
	background: var(--b2p-dunkel);
	color: var(--b2p-creme);
}
.b2p-wf .b2p-wf-stimme span {
	font-size: 22px;
	line-height: 1;
}
.b2p-wf .b2p-wf-stimme small {
	font-family: var(--wf-sans);
	font-size: 11px;
	font-weight: 700;
}
.b2p-wf .b2p-wf-stimme--zahl {
	cursor: default;
}
@media (hover: hover) {
	.b2p-wf button.b2p-wf-stimme:not(.is-an):hover {
		background: var(--b2p-gelb);
	}
}
.b2p-wf-idee__inhalt {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.b2p-wf-idee__kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.b2p-wf-art {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--b2p-grau);
}
.b2p-wf h3.b2p-wf-idee__titel {
	font-family: var(--b2p-font-display-regular);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.15;
	color: var(--b2p-dunkel);
	overflow-wrap: anywhere;
}
.b2p-wf-idee__text {
	font-size: 15px;
	overflow-wrap: anywhere;
}
.b2p-wf-idee__folge {
	font-size: 15px;
	font-weight: 700;
}
.b2p-wf-idee__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	font-size: 13px;
	color: var(--b2p-grau);
}
.b2p-wf-leer {
	padding: 24px 0 !important;
	color: var(--b2p-grau);
}

.b2p-wf-status {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
	line-height: 1.2;
	white-space: nowrap;
}
.b2p-wf-status.s-neu {
	background: var(--b2p-creme-warm);
	border: 1px solid var(--b2p-linie);
}
.b2p-wf-status.s-pruefen {
	border: 1px dashed var(--b2p-dunkel);
}
.b2p-wf-status.s-geplant {
	background: var(--b2p-dunkel);
	color: var(--b2p-creme);
	border: 1px solid var(--b2p-dunkel);
}
.b2p-wf-status.s-erschienen {
	background: var(--b2p-gelb);
	border: 1px solid var(--b2p-dunkel);
}

/* ---------- So laeuft es ---------- */

.b2p-wf-regeln {
	padding: 24px 20px;
	background: var(--b2p-creme-warm);
	border-radius: 3px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 15px;
	scroll-margin-top: 100px;
}
.b2p-wf .b2p-wf-regeln h2 {
	font-size: 28px;
}
.b2p-wf-regeln__stufen {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 180px, 1fr ) );
	gap: 12px;
}
.b2p-wf-regeln__stufen > div {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	font-size: 14px;
}

@media ( max-width: 600px ) {
	.b2p-wf-innen {
		padding-top: 32px;
		gap: 32px;
	}
	.b2p-wf-lead {
		font-size: 17px;
	}
	.b2p-wf-idee {
		gap: 12px;
	}
	.b2p-wf .b2p-wf-stimme {
		width: 56px;
		min-height: 56px;
	}
	.b2p-wf h3.b2p-wf-idee__titel {
		font-size: 21px;
	}
	.b2p-wf-tabs {
		gap: 14px;
	}
	.b2p-wf .b2p-wf-tab {
		font-size: 20px;
	}
}

/* ---------- Aby: Stellen aus dem Archiv (Design „Aby warm“, abgestimmt mit der Aby-Entwicklung) ---------- */

.b2p-wunsch-aby {
	padding: 14px 16px;
	background: #fbf6e8;
	border: 3px solid var(--b2p-dunkel);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
}
.b2p-wunsch-aby__kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	font-weight: 700;
}
.b2p-wunsch-aby__logo {
	font-family: 'Londrina Solid Black', var(--b2p-font-display);
	font-size: 24px;
	line-height: 1;
	color: #cc4e52;
	transform: rotate(-4deg);
	display: inline-block;
}
.b2p-wf ul.b2p-wunsch-aby__liste {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.b2p-wf ul.b2p-wunsch-aby__liste li {
	margin: 0;
	padding: 10px 12px;
	background: #fff;
	border-radius: 8px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.b2p-wf ul.b2p-wunsch-aby__liste li::before {
	content: none;
}
.b2p-wf .b2p-wunsch-aby__liste a {
	color: var(--b2p-dunkel);
	text-decoration: none;
}
.b2p-wf .b2p-wunsch-aby__liste a:hover strong {
	text-decoration: underline;
}
.b2p-wunsch-aby__liste small {
	color: var(--b2p-grau);
	font-size: 13px;
}
.b2p-wunsch-aby__fuss {
	font-size: 12px;
	color: var(--b2p-grau);
}
.b2p-wunsch-aby__zeit {
	display: inline-block;
	padding: 1px 8px;
	background: #fee26b;
	color: #1a1a1a;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}
.b2p-wunsch-aby-zeile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 13px;
	color: var(--b2p-grau);
}
.b2p-wunsch-aby__etikett {
	padding: 1px 6px;
	background: #cc4e52;
	color: #fff;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.b2p-wf a.b2p-wunsch-aby__link {
	color: var(--b2p-dunkel);
	text-decoration: none;
}
.b2p-wf a.b2p-wunsch-aby__link:hover {
	text-decoration: underline;
}
