/* =====================================================================
 * raster.css — Adventkalender, Ansicht „Raster" (Variante C)
 *
 * Gehoert zu mu-plugins/tierpark-adventkalender/ (eingebunden NUR auf der
 * Seite /adventkalender/, solange der Kalender laeuft).
 *
 * Verbindliche Grundlage: design-mocks/DESIGN-RAHMEN.md
 *   Regel 1/2  nur CI-Gruens; #557000 als ruhige Flaeche (Raster der
 *              geschlossenen Tuerchen = EINE zusammenhaengende Flaeche)
 *   Regel 4    Headline-Signatur: .tpw-eyebrow (Strich + Versal-Label)
 *   Regel 5    Radius NUR --r-btn (6px) und --r-card (11px)
 *   Regel 7    Knoepfe = die Block-Buttons des Themes (gefuellt / Outline),
 *              auf Medienflaechen umgekehrt (weiss, Text #557000)
 *   Regel 10   Icons aus der SVG-Familie, KEINE Emojis
 *   Regel 12   Fokus = Rahmen #719130 + 3px Halo
 *   Regel 14   Play-Marke weiss .94, Dreieck #557000 (wie consent.css)
 *
 * Alle Farben kommen aus den :root-Tokens in tpw-theme/style.css.
 * Hier wird KEIN neuer Farbwert eingefuehrt.
 *
 * Inhalt
 *   1. Rahmen; Tuerchen-Inhalt (im Dialog)
 *   2. Medium: Video, Standbild, Leerflaeche, YouTube-Fassade
 *   3. Text, Knoepfe, Folgen
 *   4. Raster der 24 Tuerchen
 *   5. Hinweis „oeffnet sich am …"
 *   6. Dialog
 *   7. Schmal (<= 760px)
 *   8. Bewegungsreduktion
 * ===================================================================== */


/* =====================================================================
 * 1. RAHMEN (seit 2026-11-25 ohne Buehne — jedes Tuerchen oeffnet im Dialog)
 * ===================================================================== */
.tpw-ak {
	margin-block: 0 clamp(32px, 5vw, 64px);
}
.tpw-ak *,
.tpw-ak *::before,
.tpw-ak *::after {
	box-sizing: border-box;
}


/* Medium links (hochkant fest begrenzt), Text rechts. */
.tpw-ak-tuer {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: clamp(20px, 4vw, 56px);
	align-items: center;
}
.tpw-ak-tuer--quer {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.tpw-ak-meldung {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--tpw-linie-stark);
	border-radius: var(--r-card);
	background: var(--tpw-surface-2);
	color: var(--tpw-ink);
	font-weight: 600;
}


/* =====================================================================
 * 2. MEDIUM
 * ===================================================================== */
.tpw-ak-medium {
	position: relative;
	width: 100%;
	margin: 0;
}

.tpw-ak-medium > video,
.tpw-ak-medium > img,
.tpw-ak-medium > .tpw-ak-leer,
.tpw-ak-medium > .tpw-ak-yt {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: var(--r-card);
	background: var(--tpw-gruen-tief);
	object-fit: cover;
	overflow: hidden;
	box-shadow: var(--tpw-shadow-soft);
}
.tpw-ak-medium--quer > video,
.tpw-ak-medium--quer > img,
.tpw-ak-medium--quer > .tpw-ak-leer,
.tpw-ak-medium--quer > .tpw-ak-yt {
	aspect-ratio: 16 / 9;
}
.tpw-ak-medium > video {
	/* Schwarzbalken vermeiden: das Poster fuellt die Flaeche wie das Bild. */
	object-fit: cover;
	height: auto;
}

/* Leerflaeche ohne Bild und Video: ruhige Tuer mit Zahl. */
.tpw-ak-leer {
	position: relative;
	display: grid !important;
	place-items: center;
	background: var(--tpw-gruen-dunkel) !important;
	color: #fff;
}
.tpw-ak-leer::before {
	content: '';
	position: absolute;
	inset: 12px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: var(--r-btn);
}
.tpw-ak-leer span {
	font-size: clamp(3rem, 8vw, 5.5rem);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1;
}

.tpw-ak-platzhalter-hinweis {
	margin: 10px 0 0;
	font-size: .82rem;
	font-weight: 600;
	color: var(--tpw-ink-soft);
}

/* YouTube-Fassade (Zwei-Klick), Optik wie .tpw-consent-fassade. */
.tpw-ak-yt {
	position: relative;
}
.tpw-ak-yt .tpw-ak-yt-bild {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	max-width: none;
}
.tpw-ak-yt-start {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	grid-template-rows: 1fr auto;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: inherit;
	background: none;
	color: #fff;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}
.tpw-ak-play {
	align-self: center;
	justify-self: center;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: var(--r-btn);
	background: rgba(255, 255, 255, .94);
	color: var(--tpw-gruen-dunkel);
	transition: background .25s ease;
}
.tpw-ak-play .tpw-ic {
	width: 24px;
	height: 24px;
}
.tpw-ak .tpw-ak-dreieck {
	fill: currentColor;
	stroke: none;
}
.tpw-ak-yt-scrim {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 28px 14px 14px;
	background: linear-gradient(to top, rgba(43, 49, 32, .94) 0%, rgba(43, 49, 32, .78) 55%, rgba(43, 49, 32, 0) 100%);
}
.tpw-ak-yt-typ {
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--tpw-gruen-flaeche);
}
.tpw-ak-yt-hinweis {
	font-size: .78rem;
	line-height: 1.4;
	font-weight: 500;
	color: #fff;
}
.tpw-ak-yt-cta {
	margin-top: 4px;
	padding: 8px 13px;
	border: 1px solid #fff;
	border-radius: var(--r-btn);
	background: #fff;
	color: var(--tpw-gruen-dunkel);
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.2;
	transition: background .25s ease, color .25s ease;
}
.tpw-ak-yt-start:hover .tpw-ak-play,
.tpw-ak-yt-start:focus-visible .tpw-ak-play,
.tpw-ak-yt-start:hover .tpw-ak-yt-cta,
.tpw-ak-yt-start:focus-visible .tpw-ak-yt-cta {
	background: var(--tpw-gruen-flaeche);
	color: var(--tpw-gruen-tief);
}
.tpw-ak-yt-start:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
	box-shadow: inset 0 0 0 5px var(--tpw-gruen);
}
.tpw-ak-yt.is-geladen > iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}


/* =====================================================================
 * 3. TEXT, KNOEPFE, FOLGEN
 * ===================================================================== */
.tpw-ak-text {
	min-width: 0;
	max-width: 62ch;
}
.tpw-ak .tpw-ak-titel {
	margin: 0 0 16px;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
	color: var(--tpw-ink);
}
.tpw-ak .tpw-ak-titel:focus {
	outline: none;
}
/* Der Titel bekommt beim Oeffnen nur programmatisch den Fokus (tabindex -1,
   nicht in der Tab-Reihenfolge) — damit Vorleseprogramme dort beginnen. Ein
   Fokusring um eine Ueberschrift waere nur Unruhe. */
.tpw-ak .tpw-ak-titel:focus-visible {
	outline: none;
	box-shadow: none;
}
.tpw-ak .tpw-ak-text p {
	margin: 0 0 1em;
	line-height: 1.65;
	color: var(--tpw-ink);
}
.tpw-ak .tpw-ak-text .tpw-eyebrow {
	margin-bottom: 14px;
	line-height: 1.2;
	color: var(--tpw-gruen-dunkel);
}
.tpw-ak .tpw-ak-knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 22px 0 0;
}
.tpw-ak .tpw-ak-knoepfe .wp-block-button {
	margin: 0;
}

/* Vorfreude: Hinweis und Folgen unter dem Teaser-Text. */
.tpw-ak-bald {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--tpw-linie-mittel);
}
.tpw-ak .tpw-ak-bald-satz {
	margin-bottom: 16px;
}

.tpw-ak-folgen {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
/* Volle Folgen-Knoepfe = Outline-Buttons des Themes (Rahmen 7). */
.tpw-ak-folgen--voll .tpw-ak-folgen-link,
.tpw-ak-folgen--voll .tpw-ak-folgen-link:link,
.tpw-ak-folgen--voll .tpw-ak-folgen-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 20px;
	border: 1.5px solid var(--tpw-gruen);
	border-radius: var(--r-btn);
	background: #fff;
	color: var(--tpw-gruen-dunkel);
	font-size: .98rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .25s ease;
}
.tpw-ak-folgen--voll .tpw-ak-folgen-link:hover,
.tpw-ak-folgen--voll .tpw-ak-folgen-link:focus {
	background: var(--tpw-gruen-flaeche);
	color: var(--tpw-gruen-dunkel);
}
/* Dezente Folgen-Links: Icon + Text in Hauptgruen. */
.tpw-ak-folgen--dezent .tpw-ak-folgen-link,
.tpw-ak-folgen--dezent .tpw-ak-folgen-link:link,
.tpw-ak-folgen--dezent .tpw-ak-folgen-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 2px;
	color: var(--tpw-gruen-dunkel);
	font-weight: 700;
	font-size: .94rem;
	text-decoration: none;
}
.tpw-ak-folgen--dezent .tpw-ak-folgen-link:hover span:first-of-type {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.tpw-ak-folgen-link .tpw-ic {
	width: 20px;
	height: 20px;
	flex: none;
	color: var(--tpw-gruen);
}
.tpw-ak-folgen-link:focus-visible {
	outline: none;
	box-shadow: var(--tpw-fokus-halo);
	border-radius: var(--r-btn);
}

.tpw-ak .tpw-ak-folgen-bereich {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	margin-top: clamp(32px, 4vw, 48px);
	padding-top: 18px;
	border-top: 1px solid var(--tpw-linie-mittel);
}
.tpw-ak .tpw-ak-folgen-bereich p {
	margin: 0;
	color: var(--tpw-ink-soft);
	font-size: .94rem;
}


/* =====================================================================
 * 4. RASTER DER 24 TUERCHEN
 * ===================================================================== */
.tpw-ak .tpw-ak-raster-titel {
	margin: 0 0 20px;
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	font-weight: 700;
}
.tpw-ak .tpw-ak-raster {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(8px, 1.2vw, 14px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.tpw-ak .tpw-ak-feld {
	/* Runde 8: feste Mischung — sichtbarer Platz aus dem Inline-Stil
	   (--ak-platz/order), DOM- und Tab-Reihenfolge bleiben 1–24. */
	order: var(--ak-platz, 0);
	margin: 0;
	padding: 0;
	list-style: none;
}
.tpw-ak .tpw-ak-feld::before,
.tpw-ak .tpw-ak-feld::marker {
	content: none;
}

.tpw-ak .tpw-ak-kachel {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 4 / 5;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--r-card);
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s ease, box-shadow .25s ease;
}

/* Geschlossen: Zahl auf Vereinsgruen, feine Tuerfuge. */
.tpw-ak .tpw-ak-kachel.is-zu {
	background: var(--tpw-gruen-dunkel);
	color: #fff;
}
.tpw-ak .tpw-ak-kachel.is-zu::before {
	content: '';
	position: absolute;
	inset: 7px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: var(--r-btn);
	pointer-events: none;
}
.tpw-ak .tpw-ak-kachel.is-zu:hover {
	background: var(--tpw-gruen-tief);
}
.tpw-ak .tpw-ak-kachel.is-zu .tpw-ak-zahl {
	font-size: clamp(1.5rem, 3.2vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1;
	color: #fff;
}

/* Offen: Standbild, Zahl als weisse Marke unten links. */
.tpw-ak .tpw-ak-kachel.is-offen {
	background: var(--tpw-gruen-tief);
	color: var(--tpw-gruen-dunkel);
	box-shadow: var(--tpw-shadow-soft);
}
.tpw-ak .tpw-ak-kachel-bild {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transition: transform .4s ease;
}
.tpw-ak .tpw-ak-kachel.is-offen .tpw-ak-zahl {
	position: absolute;
	left: 8px;
	bottom: 8px;
	min-width: 34px;
	padding: 5px 8px;
	border-radius: var(--r-btn);
	background: rgba(255, 255, 255, .94);
	color: var(--tpw-gruen-dunkel);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
}
.tpw-ak .tpw-ak-kachel.is-offen.ohne-bild {
	background: var(--tpw-surface);
	box-shadow: inset 0 0 0 1px var(--tpw-linie-stark);
}
.tpw-ak .tpw-ak-kachel.is-offen.ohne-bild .tpw-ak-zahl {
	position: static;
	background: none;
	font-size: clamp(1.5rem, 3.2vw, 2.5rem);
}
.tpw-ak .tpw-ak-kachel.is-offen:hover .tpw-ak-kachel-bild {
	transform: scale(1.04);
}
.tpw-ak .tpw-ak-kachel-play {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: var(--r-btn);
	background: rgba(255, 255, 255, .94);
	color: var(--tpw-gruen-dunkel);
}
.tpw-ak .tpw-ak-kachel-play .tpw-ic {
	width: 16px;
	height: 16px;
}

/* Heute: Ring in Hauptgruen + Versal-Label. */
.tpw-ak .tpw-ak-kachel.is-heute {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--tpw-gruen);
}
/* Runde 8 (Obmann): kein farbiges Kästchen mit weissen Versalien mehr
   (erinnerte an das Logo der Zeitung „Heute") — ruhiges Papier-Etikett,
   dunkelgrüne Schrift, gemischte Schreibweise. #3f5300 auf #fffaf0 = 8,2:1. */
.tpw-ak .tpw-ak-heute-marke {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 4;
	padding: 2px 7px 3px;
	border-radius: 2px;
	background: #fffaf0;
	color: var(--tpw-gruen-tief);
	box-shadow: 0 0 0 1px rgba(58, 47, 31, .22), 0 2px 4px -1px rgba(58, 47, 31, .35);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.2;
	pointer-events: none;
}

.tpw-ak .tpw-ak-kachel:focus {
	outline: none;
}
.tpw-ak .tpw-ak-kachel:focus-visible {
	outline: 2px solid var(--tpw-gruen);
	outline-offset: 3px;
	box-shadow: var(--tpw-fokus-halo);
}


/* =====================================================================
 * 5. HINWEIS „OEFFNET SICH AM …" (aria-live, als ruhige Meldung unten)
 *
 * adventkalender.js hängt den Hinweis an <body> (ausserhalb des isolierten
 * .tpw-ak, sonst malt die Fusszeile darüber) — darum Selektoren ohne
 * .tpw-ak und box-sizing hier selbst.
 * ===================================================================== */
.tpw-ak-hinweis {
	box-sizing: border-box;
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 1000;
	width: max-content;
	max-width: min(420px, calc(100vw - 32px));
	margin: 0;
	padding: 12px 18px;
	border-radius: var(--r-btn);
	background: var(--tpw-gruen-tief);
	color: #fff;
	font-size: .97rem;   /* wie zuvor geerbt aus .entry-content */
	font-weight: 700;
	line-height: 1.4;
	box-shadow: var(--tpw-shadow);
	transform: translate(-50%, 12px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.tpw-ak-hinweis.is-sichtbar {
	transform: translate(-50%, 0);
	opacity: 1;
	visibility: visible;
	transition: opacity .2s ease, transform .2s ease;
}
.tpw-ak-hinweis:empty {
	display: none;
}


/* =====================================================================
 * 6. DIALOG
 * ===================================================================== */
.tpw-ak-dialog {
	width: min(980px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: var(--r-card);
	background: #fff;
	color: var(--tpw-ink);
	box-shadow: var(--tpw-shadow);
}
.tpw-ak-dialog::backdrop {
	background: rgba(43, 49, 32, .62);
}
.tpw-ak-dialog-rahmen {
	position: relative;
	padding: clamp(18px, 3.4vw, 40px);
}
.tpw-ak-dialog .tpw-ak-tuer {
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	padding-right: 36px;
}
.tpw-ak-dialog .tpw-ak-tuer--quer {
	grid-template-columns: minmax(0, 1fr);
}
.tpw-ak-dialog-zu {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--tpw-linie-rand);
	border-radius: var(--r-btn);
	background: #fff;
	color: var(--tpw-gruen-dunkel);
	cursor: pointer;
}
.tpw-ak-dialog-zu .tpw-ic {
	width: 22px;
	height: 22px;
}
.tpw-ak-dialog-zu:hover {
	background: var(--tpw-gruen-flaeche);
}
.tpw-ak-dialog-zu:focus-visible {
	outline: none;
	border-color: var(--tpw-gruen);
	box-shadow: var(--tpw-fokus-halo);
}


/* =====================================================================
 * 7. MITTEL UND SCHMAL
 * ===================================================================== */
@media (max-width: 1000px) {
	.tpw-ak .tpw-ak-raster {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (max-width: 760px) {
	.tpw-ak-tuer,
	.tpw-ak-tuer--quer,
	.tpw-ak-dialog .tpw-ak-tuer {
		grid-template-columns: minmax(0, 1fr);
		padding-right: 0;
	}
	.tpw-ak-tuer--hochkant .tpw-ak-medium {
		max-width: 300px;
		justify-self: center;
	}
	.tpw-ak-dialog .tpw-ak-tuer--hochkant .tpw-ak-medium {
		max-width: 260px;
		margin-top: 30px;
	}
	.tpw-ak .tpw-ak-raster {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.tpw-ak-hinweis {
		/* ueber der mobilen Bottom-Navigation (70px, rahmen.css Abschnitt 2) */
		bottom: calc(84px + env(safe-area-inset-bottom, 0px));
	}
	.tpw-ak-dialog {
		width: calc(100vw - 20px);
		max-height: calc(100dvh - 20px);
	}
	/* R10 (Auftraggeber: „mobil bitte noch die buttons zentrieren"):
	   Angebots-Knöpfe im Dialog untereinander, alle gleich breit über die
	   volle Textbreite, Beschriftung zentriert (auch zweizeilig). Die
	   Fussnavigation (.tpw-ak-dialog-nav) bleibt unberührt. */
	.tpw-ak .tpw-ak-dialog .tpw-ak-knoepfe {
		flex-direction: column;
		align-items: stretch;
	}
	.tpw-ak .tpw-ak-dialog .tpw-ak-knoepfe .wp-block-button {
		width: 100%;
	}
	.tpw-ak .tpw-ak-dialog .tpw-ak-knoepfe .wp-block-button > a.wp-block-button__link {
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		width: 100%;
		text-align: center;
	}
	/* R16: dasselbe für die vollen Folgen-Knöpfe im Teaser-Dialog
	   (Vorfreude) — untereinander, volle Breite, Inhalt zentriert. */
	.tpw-ak .tpw-ak-dialog .tpw-ak-folgen--voll {
		flex-direction: column;
		align-items: stretch;
	}
	.tpw-ak .tpw-ak-dialog .tpw-ak-folgen--voll .tpw-ak-folgen-link {
		justify-content: center;
		box-sizing: border-box;
		width: 100%;
		text-align: center;
	}
}


/* =====================================================================
 * 8. BEWEGUNGSREDUKTION
 * ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	.tpw-ak *,
	.tpw-ak *::before,
	.tpw-ak *::after,
	.tpw-ak-dialog * {
		transition: none !important;
		animation: none !important;
	}
	.tpw-ak .tpw-ak-kachel.is-offen:hover .tpw-ak-kachel-bild {
		transform: none;
	}
}


/* =====================================================================
 * 9. NACHSCHAERFUNG
 * Raleway setzt Ziffern als Mediaevalziffern („13" springt) — fuer
 * Tuerchen-Nummern und Datumszeilen Versalziffern in fester Breite.
 * Der Outline-Knopf neben dem gefuellten bekommt dieselbe Hoehe.
 * ===================================================================== */
.tpw-ak .tpw-ak-zahl,
.tpw-ak .tpw-eyebrow,
.tpw-ak .tpw-ak-heute-marke,
.tpw-ak-leer span {
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}
.tpw-ak .tpw-ak-knoepfe .is-style-outline > a.wp-block-button__link {
	padding: 12px 22px;
	border-width: 1.5px;
	font-size: .98rem;
	line-height: 1.2;
}


/* =====================================================================
 * 10. KOPFZEILE (2026-11-25: nur noch Raster + Dialog)
 * Kalenderphase: nur Folgen-Links. Vorfreude: Abschnitt 13 (Runde 8).
 * ===================================================================== */
.tpw-ak .tpw-ak-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 28px;
	margin: 0 0 clamp(18px, 2.4vw, 28px);
}
.tpw-ak .tpw-ak-kopf-satz {
	margin: 0;
	max-width: 60ch;
	font-size: 1.02rem;
	line-height: 1.55;
	color: var(--tpw-ink);
}
/* Vorfreude: die geschlossenen Tuerchen sind dieselben wie im Dezember. */
.tpw-ak--vorfreude .tpw-ak-raster-bereich {
	position: relative;
}
.tpw-ak .tpw-ak-kopf-satz {
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
}


/* =====================================================================
 * 11. HAUBE (G1) UND SCHNEE-SCHICHT
 *
 * Steht bewusst HIER und nicht in einer Extra-Datei, die nur mit Schnee
 * oder Gag geladen wird: so ist das Layout dasselbe, egal was an ist.
 *
 * SCHNEE (Fix 2026-11-25, Runde 3): Die Leinwand liegt absolut im
 * Kalender mit z-index -1; .tpw-ak bildet mit `isolation: isolate` einen
 * eigenen Stapelkontext. Damit malt der Schnee ÜBER dem Hintergrund des
 * Kalenders und UNTER allem Inhalt — ohne dass irgendein anderes Element
 * eine Position oder einen z-index bekommt. Der frühere Weg (Geschwister
 * per `~ *` auf position:relative setzen) hatte den absolut gesetzten
 * Zweig-/Sternschmuck von K2 in den Fluss gezogen: Verschiebung 40/52 px.
 * ===================================================================== */
.tpw-ak {
	position: relative;
	isolation: isolate;
}
.tpw-ak .tpw-ak-raster-bereich {
	position: relative;
}
.tpw-ak-schnee {
	/* Canvas (Runde 5: 25 Bilder/s, DPR 1, vorgezeichnete Flocken), absolut
	   im Kalender, hinter allem Inhalt, ohne Layout-Wirkung. */
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	display: block;
	pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
	.tpw-ak-schnee { display: none !important; }
}

/* G1 „Die rote Haube wandert": schief auf der Ecke des heutigen Türchens;
   in der Vorfreude liegt sie verlassen neben dem Raster. */
.tpw-ak .tpw-ak-kachel.is-heute { overflow: visible; }
.tpw-ak .tpw-ak-haube {
	position: absolute;
	top: -22px;
	right: -12px;
	z-index: 3;
	width: 52px;
	height: 46px;
	transform: rotate(18deg);
	pointer-events: none;
	filter: drop-shadow(0 3px 3px rgba(43, 49, 32, .3));
}
.tpw-ak .tpw-ak-haube svg { width: 100%; height: 100%; display: block; }
.tpw-ak .tpw-ak-haube--liegt {
	top: auto;
	right: 4px;
	bottom: -30px;
	transform: rotate(-12deg);
}
.tpw-ak--gag-g1.tpw-ak--vorfreude .tpw-ak-raster-bereich { padding-bottom: 26px; }
@media (max-width: 760px) {
	.tpw-ak .tpw-ak-haube { width: 40px; height: 35px; top: -17px; right: -8px; }
	/* Runde 8: die liegende Haube bleibt auch am Handy UNTER dem Raster
	   (sonst sass sie oben rechts auf einem Türchen). */
	.tpw-ak .tpw-ak-haube--liegt { top: auto; bottom: -26px; right: 4px; }
}


/* =====================================================================
 * 12. DIALOG: KOPFZEILE UND FUSSNAVIGATION (Obmann 2026-11-25)
 * „Adventkalender 2026 · Türchen 12 · 12. Dezember" oben über der ganzen
 * Breite; unten zurück / alle Türchen / weiter (nur offene Türchen).
 * ===================================================================== */
.tpw-ak .tpw-ak-dialog-kopf {
	/* Runde 6: ruhig, ohne Zierstrich, nur „Adventkalender 2026" — steht
	   immer oben neben dem Schliessen-Knopf, auch mobil. */
	margin: 0 52px 18px 0;
	padding: 4px 0 12px;
	border-bottom: 1px solid var(--tpw-linie-mittel);
	color: var(--tpw-gruen-tief);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1.4;
	text-transform: uppercase;
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
}
.tpw-ak .tpw-ak-dialog-nav {
	/* Runde 4: richtige Knöpfe, am unteren Rand des Dialogs angeheftet —
	   auch bei langem Inhalt immer mit dem Daumen erreichbar. */
	--nav-pad: clamp(18px, 3.4vw, 40px);
	position: sticky;
	bottom: 0;
	z-index: 3;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	margin: 22px calc(-1 * var(--nav-pad)) calc(-1 * var(--nav-pad));
	padding: 12px var(--nav-pad) calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--tpw-linie-mittel);
	background: inherit;
	background-color: #fff;
	box-shadow: 0 -10px 18px -14px rgba(43, 49, 32, .35);
	font-variant-numeric: lining-nums;
}
.tpw-ak .tpw-ak-nav-knopf,
.tpw-ak .tpw-ak-nav-knopf:link,
.tpw-ak .tpw-ak-nav-knopf:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 16px;
	border: 1.5px solid var(--tpw-gruen-dunkel);
	border-radius: var(--r-btn);
	background: #fff;
	color: var(--tpw-gruen-dunkel);
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
.tpw-ak .tpw-ak-nav-zurueck { justify-self: start; }
.tpw-ak .tpw-ak-nav-weiter { justify-self: end; }
.tpw-ak .tpw-ak-nav-knopf .tpw-ic { width: 20px; height: 20px; flex: none; }
.tpw-ak .tpw-ak-nav-knopf:hover,
.tpw-ak .tpw-ak-nav-knopf:focus {
	background: var(--tpw-gruen-dunkel);
	color: #fff;
}
.tpw-ak .tpw-ak-nav-knopf:focus-visible,
.tpw-ak .tpw-ak-nav-alle:focus-visible {
	outline: 3px solid var(--tpw-gruen-dunkel);
	outline-offset: 2px;
}
.tpw-ak .tpw-ak-nav-alle,
.tpw-ak .tpw-ak-nav-alle:link,
.tpw-ak .tpw-ak-nav-alle:visited {
	padding: 10px 6px;
	color: var(--tpw-gruen-dunkel);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-align: center;
}
.tpw-ak .tpw-ak-nav-leer { display: block; }
@media (max-width: 760px) {
	.tpw-ak .tpw-ak-dialog-kopf { font-size: .74rem; }
	.tpw-ak .tpw-ak-dialog-nav { gap: 6px; }
	.tpw-ak .tpw-ak-nav-knopf,
	.tpw-ak .tpw-ak-nav-knopf:link,
	.tpw-ak .tpw-ak-nav-knopf:visited { gap: 5px; padding: 10px 10px; font-size: .86rem; white-space: nowrap; }
	.tpw-ak .tpw-ak-nav-knopf .tpw-ic { width: 17px; height: 17px; }
	.tpw-ak .tpw-ak-nav-alle { font-size: .84rem; }
}


/* =====================================================================
 * 13. OFFENES TÜRCHEN IM SCHLICHTEN RASTER (Rückfall, Runde 7)
 * Bild in einem hellen Rahmen statt randlos — sonst wirkt die Übersicht
 * wie eine Fotowand. Die Klappe ist hier nur die Zahlmarke.
 * ===================================================================== */
.tpw-ak .tpw-ak-kachel.is-offen { background: #fff; box-shadow: inset 0 0 0 1px var(--tpw-linie-stark), var(--tpw-shadow-soft); }
.tpw-ak .tpw-ak-oeffnung {
	position: absolute;
	inset: 6px;
	overflow: hidden;
	border-radius: 7px;
	background: var(--tpw-gruen-tief);
	box-shadow: inset 0 0 0 1px rgba(43, 49, 32, .25);
}
.tpw-ak .tpw-ak-klappe { display: contents; }
.tpw-ak .tpw-ak-kachel.is-offen .tpw-ak-zahl { z-index: 2; }


/* =====================================================================
 * 14. VIDEO IM DIALOG: EIGENE BEDIENUNG (Obmann 2026-11-25)
 * =====================================================================
 * Ursache des „schwarzen, abgeschnittenen Overlays": Chromes NATIVE
 * Bedienelemente dunkeln beim Abspielen mit Maus über dem Video das ganze
 * Bild ab (und bleiben stehen, solange die Maus ruht — nach dem Öffnen per
 * Klick liegt sie genau dort). War der Dialog niedriger als das Video,
 * schnitt seine Scrollkante diese Abdunklung sichtbar ab. Abhilfe:
 * spieler.js schaltet die nativen controls ab; hier eine schlanke Leiste
 * OHNE Verlauf über dem Bild, und das Video passt immer in den Dialog.
 */
.tpw-ak-medium.tpw-ak-spieler {
	overflow: hidden;
	border-radius: var(--r-card);
	box-shadow: var(--tpw-shadow-soft);
	isolation: isolate;
}
.tpw-ak-spieler > video {
	box-shadow: none;
	cursor: pointer;
}
.tpw-ak-spieler > video:focus { outline: none; }
@media (min-width: 761px) {
	/* Kopf (~95px) + Fussleiste (~70px) + Rand: das Video liegt nie unter der klebenden Fussleiste und ist nie höher als der Dialog. */
	.tpw-ak-dialog .tpw-ak-medium--hochkant.tpw-ak-spieler {
		max-width: min(100%, calc((100vh - 250px) * 9 / 16));
		max-width: min(100%, calc((100dvh - 250px) * 9 / 16));
		justify-self: center;
	}
}
@media (max-width: 760px) {
	/* Handy: Poster höchstens ~57 % der Bildschirmhöhe (9:16), damit Titel
	   und Textanfang ohne Scrollen sichtbar sind; gespielt wird im Vollbild. */
	.tpw-ak-dialog .tpw-ak-medium--hochkant.tpw-ak-spieler {
		max-width: min(240px, calc(57vh * 9 / 16), calc((100vh - 300px) * 9 / 16));
		max-width: min(240px, calc(57dvh * 9 / 16), calc((100dvh - 300px) * 9 / 16));
		margin-top: 12px;
	}
}

/* Vollbild (Handy): ganzes Video sichtbar, schwarzer Grund, keine Drehung. */
.tpw-ak-spieler > video:fullscreen { object-fit: contain; background: #000; border-radius: 0; }
.tpw-ak-spieler > video:-webkit-full-screen { object-fit: contain; background: #000; border-radius: 0; }

/* Grosser Knopf: vor dem Start, pausiert, am Ende. */
.tpw-ak-v-gross {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--tpw-gruen-tief);
	cursor: pointer;
	font: inherit;
}
.tpw-ak-spieler.ist-bereit .tpw-ak-v-gross,
.tpw-ak-spieler.ist-pause .tpw-ak-v-gross,
.tpw-ak-spieler.ist-ende .tpw-ak-v-gross { display: flex; }
.tpw-ak-v-kreis {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(255, 253, 247, .94);
	box-shadow: 0 6px 22px rgba(20, 26, 12, .35);
	transition: transform .18s ease, background-color .18s ease;
}
.tpw-ak-v-kreis svg { width: 38px; height: 38px; fill: currentColor; margin-left: 4px; }
.tpw-ak-spieler.ist-ende .tpw-ak-v-kreis svg { margin-left: 0; }
.tpw-ak-v-gross:hover .tpw-ak-v-kreis { transform: scale(1.06); background: #fff; }
.tpw-ak-v-gross:focus-visible { outline: none; }
.tpw-ak-v-gross:focus-visible .tpw-ak-v-kreis { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px var(--tpw-gruen-tief); }
.tpw-ak-v-text:empty { display: none; }
.tpw-ak-v-text {
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 253, 247, .94);
	color: var(--tpw-gruen-tief);
	font-weight: 700;
	font-size: .95rem;
	box-shadow: 0 4px 14px rgba(20, 26, 12, .3);
}

/* Schlanke Leiste unten: eigene Pille, kein Verlauf über dem Bild. */
.tpw-ak-v-leiste {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px 4px 4px;
	border-radius: 999px;
	background: rgba(24, 30, 18, .62);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	opacity: 1;
	transition: opacity .35s ease;
}
.tpw-ak-spieler.ist-bereit .tpw-ak-v-leiste { opacity: 0; visibility: hidden; }
.tpw-ak-spieler.ist-ruhig .tpw-ak-v-leiste { opacity: 0; pointer-events: none; }
.tpw-ak-spieler.ist-ruhig > video { cursor: none; }
.tpw-ak-v-leiste button {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.tpw-ak-v-leiste button:hover { background: rgba(255, 255, 255, .16); }
.tpw-ak-v-leiste button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.tpw-ak-v-leiste svg { width: 22px; height: 22px; fill: currentColor; }
.tpw-ak-v-zeit {
	flex: none;
	min-width: 2.6em;
	font-size: .8rem;
	font-variant-numeric: tabular-nums;
	text-align: right;
}
.tpw-ak-v-lauf {
	flex: 1 1 auto;
	min-width: 0;
	height: 24px;
	margin: 0;
	background: transparent;
	accent-color: #fff;
	cursor: pointer;
}
.tpw-ak-v-lauf:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* Das Theme färbt button:hover/:focus grün mit weisser Schrift — über dem
   Video ergäbe das eine grüne Fläche. Hier bewusst neutralisiert. */
.tpw-ak-spieler button.tpw-ak-v-gross,
.tpw-ak-spieler button.tpw-ak-v-gross:hover,
.tpw-ak-spieler button.tpw-ak-v-gross:focus {
	background: transparent;
	color: var(--tpw-gruen-tief);
	box-shadow: none;
}
.tpw-ak-spieler .tpw-ak-v-leiste button,
.tpw-ak-spieler .tpw-ak-v-leiste button:focus {
	background: transparent;
	color: #fff;
	box-shadow: none;
}
.tpw-ak-spieler .tpw-ak-v-leiste button:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* Handy (wie mobil() in spieler.js): Leiste mit Vollbild-Knopf als Rückfall
   bei Inline-Wiedergabe (iOS-In-App-Browser). Der Spieler ist nur 150–240 px
   breit: Knöpfe 40 px Tippfläche, engere Abstände, Zeitangabe weg — so passen
   Abspielen, Laufleiste, Ton und Vollbild auch bei 320 px Bildschirmbreite. */
@media (pointer: coarse) and (max-width: 760px) {
	.tpw-ak-v-leiste { left: 6px; right: 6px; bottom: 6px; gap: 2px; padding: 2px; }
	.tpw-ak-v-leiste button { width: 40px; height: 40px; }
	.tpw-ak-v-zeit { display: none; }
}
/* Sehr niedrige Handyfenster (Spieler unter ~180 px breit): die Laufleiste
   wäre nur ein Stummel — weg, die drei Knöpfe verteilen sich. */
@media (pointer: coarse) and (max-width: 760px) and (max-height: 620px) {
	.tpw-ak-v-leiste { justify-content: space-between; }
	.tpw-ak-v-lauf { display: none; }
}

/* Vollbild der Hülle (Runde 8, Desktop/Tablet): Video mittig auf Schwarz,
   Hochformat unverzerrt (contain); die eigene Leiste kommt mit. */
.tpw-ak-spieler:fullscreen { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; max-width: none; margin: 0; background: #000; border-radius: 0; }
.tpw-ak-spieler:-webkit-full-screen { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; max-width: none; margin: 0; background: #000; border-radius: 0; }
.tpw-ak-spieler:fullscreen > video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; background: #000; border-radius: 0; }
.tpw-ak-spieler:-webkit-full-screen > video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; background: #000; border-radius: 0; }
.tpw-ak-spieler:fullscreen .tpw-ak-v-leiste { left: 50%; right: auto; bottom: 20px; width: min(560px, calc(100% - 32px)); transform: translateX(-50%); }
.tpw-ak-spieler:-webkit-full-screen .tpw-ak-v-leiste { left: 50%; right: auto; bottom: 20px; width: min(560px, calc(100% - 32px)); transform: translateX(-50%); }


/* Laden: feiner Ring statt Abdunklung. */
.tpw-ak-spieler.ist-laedt::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 3px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tpw-ak-dreh 0.9s linear infinite;
	pointer-events: none;
}
@keyframes tpw-ak-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.tpw-ak-v-leiste, .tpw-ak-v-kreis { transition: none; }
	.tpw-ak-spieler.ist-laedt::after { animation-duration: 2.4s; }
}

/* Kopfzone: Vorfreude-Satz ohne hässliche Umbrüche (balance + geschütztes
   Leerzeichen). Die Folgen-Links stehen seit R14 unter dem Raster (14.). */
.tpw-ak .tpw-ak-kopf-satz { text-wrap: balance; }
/* Erster Satz eine eigene Zeile: kein „Hier" am Zeilenende. */
.tpw-ak .tpw-ak-kopf-satz strong { display: block; }


/* =====================================================================
 * 13. KOPF DER VORFREUDE (Runde 8, Obmann: „noch nicht ganz elegant")
 * Eine ruhige Komposition: links der Teaser als grosser Papier-Anhänger
 * an senkrechter Schnur (Stil der Türchen: Papier, Loch, leichte Drehung,
 * Foto im Papierrand, kein Abspielzeichen), rechts „Bald ist Advent",
 * Titel, ein Satz, EIN Knopf, darunter klein die Folgen-Links in einer
 * Zeile. Kein Kasten. Handy: Anhänger oben mittig, Text darunter.
 * Kontraste: Titel #2b3120 auf #fbf6ea > 12:1 · Versalzeile #3f5300 auf
 * #fbf6ea = 8,0:1 · Folgen #557000 auf #fbf6ea = 5,3:1.
 * ===================================================================== */
.tpw-ak .tpw-ak-kopf--vorfreude {
	--vf-breite: clamp(196px, 17vw, 236px);
	--vf-schnur: 26px;
	display: grid;
	grid-template-columns: var(--vf-breite) minmax(0, 32rem);
	justify-content: start;
	align-items: center;
	gap: clamp(32px, 4.6vw, 64px);
	margin: 0 0 clamp(30px, 3.6vw, 48px);
	padding-left: clamp(0px, 1.6vw, 20px);
}
.tpw-ak-vf-anhaenger,
.tpw-ak button.tpw-ak-vf-anhaenger,
.tpw-ak button.tpw-ak-vf-anhaenger:hover,
.tpw-ak button.tpw-ak-vf-anhaenger:focus {
	position: relative;
	display: block;
	align-self: start;
	width: var(--vf-breite);
	margin: 0;
	padding: var(--vf-schnur) 0 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-align: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
span.tpw-ak-vf-anhaenger { cursor: default; }
/* Schnur: senkrecht bis ins Loch (12 px unter der Papierkante). */
.tpw-ak-vf-schnur {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	width: 1.5px;
	height: calc(var(--vf-schnur) + 12px);
	margin-left: -.75px;
	background: #3a2f1f;
}
.tpw-ak-vf-papier {
	position: relative;
	display: block;
	padding: 22px 12px 24px;
	border-radius: 4px;
	background: linear-gradient(180deg, #f7eedb, #efe2c8);
	box-shadow: 0 1px 0 rgba(58, 47, 31, .1), 0 14px 26px -14px rgba(58, 47, 31, .6);
	transform-origin: 50% 12px;
	transform: rotate(-2deg);
	transition: transform .35s ease, box-shadow .35s ease;
}
/* Loch */
.tpw-ak-vf-papier::before {
	content: '';
	position: absolute;
	top: 7px;
	left: 50%;
	width: 10px;
	height: 10px;
	margin-left: -5px;
	border-radius: 50%;
	background: #fbf6ea;
	box-shadow: inset 0 0 0 1px rgba(58, 47, 31, .5);
}
/* Foto im Papierrand — wie die offenen Türchen (Runde 7). */
.tpw-ak-vf-foto {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 3px;
	background: #5a4a32;
	box-shadow: 0 0 0 1px rgba(58, 47, 31, .28), 0 1px 2px rgba(58, 47, 31, .25);
}
.tpw-ak-vf-foto::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 5px rgba(0, 0, 0, .22);
	pointer-events: none;
}
.tpw-ak-vf-foto img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: 50% 45%;
	transition: transform .5s ease;
}
/* Rückfall ohne Bild: helles Papier mit „Bald". */
.tpw-ak-vf-foto.ohne-bild {
	display: grid;
	place-items: center;
	background: #fbf3e0;
	box-shadow: inset 0 0 0 1px rgba(58, 47, 31, .2);
}
.tpw-ak-vf-foto.ohne-bild::after { content: none; }
.tpw-ak-vf-bald {
	color: #3a2f1f;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 800;
	letter-spacing: .02em;
}
.tpw-ak button.tpw-ak-vf-anhaenger:hover .tpw-ak-vf-papier {
	transform: rotate(-.8deg) translateY(-2px);
	box-shadow: 0 1px 0 rgba(58, 47, 31, .1), 0 20px 30px -14px rgba(58, 47, 31, .65);
}
.tpw-ak button.tpw-ak-vf-anhaenger:hover .tpw-ak-vf-foto img { transform: scale(1.03); }

.tpw-ak-vf-text { min-width: 0; }
.tpw-ak .tpw-ak-vf-eyebrow {
	margin: 0 0 8px;
	color: var(--tpw-gruen-tief);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .16em;
	line-height: 1.3;
	text-transform: uppercase;
}
.tpw-ak .tpw-ak-vf-titel {
	margin: 0 0 12px;
	color: var(--tpw-ink);
	font-size: clamp(1.6rem, 2.9vw, 2.35rem);
	font-weight: 800;
	line-height: 1.14;
	text-wrap: balance;
}
.tpw-ak .tpw-ak-vf-satz {
	margin: 0 0 22px;
	color: var(--tpw-ink);
	font-size: 1.06rem;
	line-height: 1.5;
	text-wrap: balance;
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
}
.tpw-ak .tpw-ak-vf-knoepfe { margin: 0; }
.tpw-ak .tpw-ak-vf-knopf { cursor: pointer; font-family: inherit; }

@media (max-width: 760px) {
	.tpw-ak .tpw-ak-kopf--vorfreude {
		--vf-breite: clamp(124px, 36vw, 148px);
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		gap: 18px;
		padding-left: 0;
		text-align: center;
	}
	.tpw-ak-vf-anhaenger,
	.tpw-ak button.tpw-ak-vf-anhaenger { justify-self: center; }
	.tpw-ak-vf-papier { padding: 18px 9px 18px; }
	.tpw-ak-vf-papier::before { top: 5px; width: 8px; height: 8px; margin-left: -4px; }
	.tpw-ak .tpw-ak-vf-eyebrow { margin-bottom: 6px; font-size: .7rem; }
	.tpw-ak .tpw-ak-vf-titel { margin-bottom: 8px; font-size: clamp(1.45rem, 6.4vw, 1.7rem); }
	.tpw-ak .tpw-ak-vf-satz { margin-bottom: 16px; font-size: 1rem; }
	.tpw-ak .tpw-ak-vf-knoepfe { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.tpw-ak-vf-papier,
	.tpw-ak-vf-foto img { transition: none; }
	.tpw-ak button.tpw-ak-vf-anhaenger:hover .tpw-ak-vf-papier { transform: rotate(-2deg); }
	.tpw-ak button.tpw-ak-vf-anhaenger:hover .tpw-ak-vf-foto img { transform: none; }
}


/* =====================================================================
 * 14. FOLGEN LEISE UNTER DEM RASTER (R14, 26.11.2026)
 * Obmann: „insta und fb buttons noch ein bisschen prominent … insbesondere
 * mobil … auf der adventkalender seite (in den modals isses ok)".
 * EINE Zeile „Folgen Sie uns: Instagram  Facebook", ohne Rahmen und
 * Fläche, gedeckte Tinte statt Grün, normal/halbfett. Tippfläche je Link
 * mindestens 40 px hoch. Gilt NUR für den Stil 'leise' auf der Seite;
 * die vollen Knöpfe im Teaser-Dialog (bald()) bleiben unverändert.
 * Kontrast: --tpw-ink-soft #5c6350 auf Creme ≈ 6:1 (AA).
 * ===================================================================== */
.tpw-ak .tpw-ak-kopf--leer { margin: 0; min-height: clamp(10px, 2vw, 20px); }
.tpw-ak .tpw-ak-fuss {
	display: flex;
	justify-content: center;
	margin-top: clamp(16px, 2.4vw, 28px);
}
.tpw-ak .tpw-ak-folgen--leise {
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0 18px;
	color: var(--tpw-ink-soft);
	font-size: .9rem;
	line-height: 1.2;
	white-space: nowrap;
}
.tpw-ak .tpw-ak-folgen-vorsatz { font-weight: 400; }
.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link,
.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link:link,
.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 2px;
	color: var(--tpw-ink-soft);
	font-weight: 600;
	text-decoration: none;
}
.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link:hover,
.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link:focus {
	color: var(--tpw-gruen-dunkel);
}
.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link:hover span {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link .tpw-ic {
	width: 16px;
	height: 16px;
	color: currentColor;
}
@media (max-width: 760px) {
	/* Handy: noch zurückhaltender, auch bei 320 px EINE Zeile. */
	.tpw-ak .tpw-ak-folgen--leise { gap: 0 12px; font-size: .8rem; }
	.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link,
	.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link:link,
	.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link:visited { gap: 4px; font-weight: 500; }
	.tpw-ak .tpw-ak-folgen--leise .tpw-ak-folgen-link .tpw-ic { width: 14px; height: 14px; }
}
@media (max-width: 359px) {
	.tpw-ak .tpw-ak-folgen--leise { gap: 0 9px; font-size: .76rem; }
}
/* Vorfreude mit Haube: die Mütze hängt 26 px unter dem Raster — nicht an „Facebook" drängen. */
@media (max-width: 760px) {
	.tpw-ak--gag-g1.tpw-ak--vorfreude .tpw-ak-fuss { margin-top: 30px; }
}


/* =====================================================================
 * 15. NEWSLETTER-HINWEIS NEBEN/UNTER DEN FOLGEN (R15, 26.11.2026)
 * Obmann: „dort könnte man auch noch den newsletter anmeldung bewerben
 * (das brauchen wir auch am desktop)".
 * Eigener kurzer Satz „Neuigkeiten per E-Mail: Newsletter abonnieren" in
 * derselben leisen Tonlage wie 14. — kein Formular, nur ein Link auf die
 * Anmeldeseite. Desktop (ab 900 px): EINE Zeile, durch einen feinen
 * senkrechten Strich von den Social-Links getrennt. Darunter (Handy,
 * Tablet hochkant): zweite Zeile, zentriert. Tippfläche 40 px,
 * Kontrast wie 14. (--tpw-ink-soft ≈ 6:1), Fokus = Halo wie Folgen-Links.
 * ===================================================================== */
.tpw-ak .tpw-ak-fuss { flex-direction: column; align-items: center; }
.tpw-ak .tpw-ak-fuss-zeile {
	display: flex;
	justify-content: center;
	max-width: 100%;
}
.tpw-ak .tpw-ak-fuss-zeile--mit-newsletter {
	flex-direction: column;
	align-items: center;
}
.tpw-ak .tpw-ak-newsletter {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0 8px;
	margin: 0;
	color: var(--tpw-ink-soft);
	font-size: .9rem;
	line-height: 1.2;
	white-space: nowrap;
}
.tpw-ak .tpw-ak-newsletter-vorsatz { font-weight: 400; }
.tpw-ak .tpw-ak-newsletter-link,
.tpw-ak .tpw-ak-newsletter-link:link,
.tpw-ak .tpw-ak-newsletter-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 2px;
	color: var(--tpw-ink-soft);
	font-weight: 600;
	text-decoration: none;
}
.tpw-ak .tpw-ak-newsletter-link:hover,
.tpw-ak .tpw-ak-newsletter-link:focus {
	color: var(--tpw-gruen-dunkel);
}
.tpw-ak .tpw-ak-newsletter-link:hover span {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.tpw-ak .tpw-ak-newsletter-link:focus-visible {
	outline: none;
	box-shadow: var(--tpw-fokus-halo);
	border-radius: var(--r-btn);
}
.tpw-ak .tpw-ak-newsletter-link .tpw-ic {
	flex: none;
	width: 16px;
	height: 16px;
	color: currentColor;
}
@media (min-width: 900px) {
	.tpw-ak .tpw-ak-fuss-zeile--mit-newsletter {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
	/* Feiner Trennstrich: zwei Dinge, eine Zeile. Rein dekorativ. */
	.tpw-ak .tpw-ak-newsletter::before {
		content: "";
		align-self: center;
		width: 1px;
		height: 1.15em;
		margin: 0 14px 0 20px;
		background: currentColor;
		opacity: .35;
	}
}
@media (max-width: 760px) {
	/* Handy: dieselbe Grösse wie die Folgen-Zeile darüber. */
	.tpw-ak .tpw-ak-newsletter { gap: 0 6px; font-size: .8rem; }
	.tpw-ak .tpw-ak-newsletter-link,
	.tpw-ak .tpw-ak-newsletter-link:link,
	.tpw-ak .tpw-ak-newsletter-link:visited { gap: 4px; font-weight: 500; }
	.tpw-ak .tpw-ak-newsletter-link .tpw-ic { width: 14px; height: 14px; }
}
@media (max-width: 359px) {
	/* 320 px: die volle Zeile wäre breiter als die Karte. „ per E-Mail" nur
	   optisch weg (Brief-Symbol sagt es), Vorleser hören den ganzen Satz. */
	.tpw-ak .tpw-ak-newsletter { font-size: .76rem; }
	.tpw-ak .tpw-ak-newsletter-mail {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}


/* =====================================================================
 * 16. SPENDENHINWEIS ÜBER DER FOLGEN-/NEWSLETTER-ZEILE (R15, 26.11.2026)
 * Obmann: nur auf der Kalenderseite, nicht in Dialogen, nicht in Türchen.
 * Kalenderphase bis 24.12. ('hinweis'): EIN Satz in normaler Textfarbe,
 * „Jetzt spenden" als Textlink in Grün — präsenter als die Folgen-Zeile,
 * aber kein Knopf. Ab 25.12. ('dank'): kleiner ruhiger Kasten mit
 * Outline-Knopf. In der Vorfreude gibt es keinen Spendenhinweis.
 * Kontrast: --tpw-ink #2b3120 und --tpw-gruen-dunkel #557000 auf
 * Creme/Weiss je deutlich über 4,5:1 (das hellere Hauptgrün #719130
 * erreicht bei kleiner Schrift kein AA, daher die dunkle Stufe).
 * ===================================================================== */
.tpw-ak .tpw-ak-spenden {
	box-sizing: border-box;
	max-width: 100%;
	margin: 0 0 10px;
	color: var(--tpw-ink);
	font-size: .98rem;
	line-height: 1.45;
	text-align: center;
	text-wrap: balance;
}
.tpw-ak .tpw-ak-spenden-link,
.tpw-ak .tpw-ak-spenden-link:link,
.tpw-ak .tpw-ak-spenden-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 2px;
	color: var(--tpw-gruen-dunkel);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	white-space: nowrap;
	vertical-align: middle;
}
.tpw-ak .tpw-ak-spenden-link:hover,
.tpw-ak .tpw-ak-spenden-link:focus {
	color: var(--tpw-gruen-tief);
}
.tpw-ak .tpw-ak-spenden-link:focus-visible {
	outline: none;
	box-shadow: var(--tpw-fokus-halo);
	border-radius: var(--r-btn);
}
.tpw-ak .tpw-ak-spenden-link .tpw-ic {
	flex: none;
	width: 18px;
	height: 18px;
	color: currentColor;
}
/* Dank-Fassung: kleiner Kasten, Knopf in Outline (Muster Folgen „voll"). */
.tpw-ak .tpw-ak-spenden--dank {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: min(100%, 560px);
	margin-bottom: 14px;
	padding: 16px 20px 18px;
	border: 1px solid rgba(113, 145, 48, .28);
	border-radius: 14px;
	background: rgba(255, 255, 255, .6);
}
.tpw-ak .tpw-ak-spenden-satz { margin: 0; }
.tpw-ak .tpw-ak-spenden--dank .tpw-ak-spenden-link,
.tpw-ak .tpw-ak-spenden--dank .tpw-ak-spenden-link:link,
.tpw-ak .tpw-ak-spenden--dank .tpw-ak-spenden-link:visited {
	padding: 9px 20px;
	border: 1.5px solid var(--tpw-gruen);
	border-radius: var(--r-btn);
	background: #fff;
	text-decoration: none;
	transition: background-color .25s ease;
}
.tpw-ak .tpw-ak-spenden--dank .tpw-ak-spenden-link:hover,
.tpw-ak .tpw-ak-spenden--dank .tpw-ak-spenden-link:focus {
	background: var(--tpw-gruen-flaeche);
	color: var(--tpw-gruen-dunkel);
}
@media (max-width: 760px) {
	.tpw-ak .tpw-ak-spenden { font-size: .9rem; line-height: 1.4; padding: 0 4px; }
	/* Handy: „Jetzt spenden" in eigener Zeile unter dem Satz — sonst reisst
	   die 40-px-Tippfläche eine ungleiche Lücke in den Zeilenfall. */
	.tpw-ak .tpw-ak-spenden--hinweis .tpw-ak-spenden-link,
	.tpw-ak .tpw-ak-spenden--hinweis .tpw-ak-spenden-link:link,
	.tpw-ak .tpw-ak-spenden--hinweis .tpw-ak-spenden-link:visited {
		display: flex;
		justify-content: center;
		width: max-content;
		margin: 0 auto;
	}
	.tpw-ak .tpw-ak-spenden--dank { padding: 14px 14px 16px; }
}
