/*
 * Weihnachtsdeko für den Adventskalender (Kalenderseite assets/css/advent.css, Girlande der Startseite im Theme
 * studio-advent.css): Zipfelmütze in StuFu-Blau (Nikolaus), goldener Stern (Heiligabend), Kerzen-Aufkleber
 * (Adventssonntage), Christbaumkugeln (Gold, Tannengrün, Blau, eine mit StuFu-Logo) und Tannenzweig. Kein Rot: Rot
 * heißt bei uns „live“ (docs/DESIGN.md im Theme). Alles steht still, nur Bilder und Verläufe.
 */

.advent-deko-hat,
.advent-deko-star,
.advent-deko-sprig {
	position: absolute;
	display: block;
	background: center / contain no-repeat;
	pointer-events: none;
}

.advent-deko-hat { aspect-ratio: 64 / 52; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Cpath d='M8 38C12 18 28 6 50 8C44 14 42 24 48 38Z' fill='%232b9fd8'/%3E%3Cpath d='M50 8C45 13 43 22 46 36L40 37C38 24 42 14 50 8Z' fill='%231b6f9e' opacity='.55'/%3E%3Ccircle cx='53' cy='9' r='6.5' fill='%23f5f2ea'/%3E%3Ccircle cx='51' cy='7' r='2.2' fill='%23fff'/%3E%3Crect x='3' y='34' width='50' height='13' rx='6.5' fill='%23f5f2ea'/%3E%3Cpath d='M7 44h42' stroke='%23d9d3c4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 2px 2px oklch(0% 0 0 / 0.35)); }
.advent-deko-star { aspect-ratio: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M25.0 2.0 L30.9 17.9 L47.8 18.6 L34.5 29.1 L39.1 45.4 L25.0 36.0 L10.9 45.4 L15.5 29.1 L2.2 18.6 L19.1 17.9Z' fill='%23e9bd4c' stroke='%23a8781f' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M25 6 L28 20' stroke='%23fff6d5' stroke-width='2' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E"); filter: drop-shadow(0 1px 2px oklch(0% 0 0 / 0.3)); }
.advent-deko-sprig { aspect-ratio: 3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cg stroke-linecap='round' fill='none'%3E%3Cpath d='M4 30 Q60 14 116 10' stroke='%235b4026' stroke-width='2.4'/%3E%3Cpath d='M4 30.0 l6.1 -11.0 M4 30.0 l7.7 8.8' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M9 28.5 l6.0 -10.8 M9 28.5 l7.6 8.7' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M14 27.1 l5.9 -10.6 M14 27.1 l7.4 8.5' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M19 25.7 l5.8 -10.5 M19 25.7 l7.3 8.4' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M24 24.3 l5.7 -10.3 M24 24.3 l7.2 8.2' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M29 23.0 l5.6 -10.1 M29 23.0 l7.1 8.1' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M34 21.7 l5.5 -9.9 M34 21.7 l7.0 7.9' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M39 20.4 l5.4 -9.8 M39 20.4 l6.8 7.8' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M44 19.3 l5.3 -9.6 M44 19.3 l6.7 7.7' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M49 18.2 l5.2 -9.4 M49 18.2 l6.6 7.5' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M54 17.1 l5.1 -9.2 M54 17.1 l6.4 7.4' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M59 16.2 l5.0 -9.0 M59 16.2 l6.3 7.2' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M64 15.3 l4.9 -8.9 M64 15.3 l6.2 7.1' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M69 14.5 l4.8 -8.7 M69 14.5 l6.1 6.9' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M74 13.8 l4.7 -8.5 M74 13.8 l5.9 6.8' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M79 13.2 l4.6 -8.3 M79 13.2 l5.8 6.7' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M84 12.6 l4.5 -8.1 M84 12.6 l5.7 6.5' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M89 12.1 l4.4 -8.0 M89 12.1 l5.6 6.4' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M94 11.6 l4.3 -7.8 M94 11.6 l5.4 6.2' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M99 11.2 l4.2 -7.6 M99 11.2 l5.3 6.1' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M104 10.8 l4.1 -7.4 M104 10.8 l5.2 5.9' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M109 10.5 l4.0 -7.2 M109 10.5 l5.1 5.8' stroke='%232f6e44' stroke-width='2.2'/%3E%3Cpath d='M114 10.1 l3.9 -7.1 M114 10.1 l4.9 5.7' stroke='%232f6e44' stroke-width='2.2'/%3E%3C/g%3E%3C/svg%3E"); filter: drop-shadow(0 2px 2px oklch(0% 0 0 / 0.45)); }

/* Kerzen-Aufkleber: so viele Kerzen wie Adventssonntag (Klasse is-2 … is-4), jede Anzahl als eigenes Bild */
.advent-deko-candles {
	position: absolute;
	display: block;
	height: 1.6em;
	padding: 0.18em 0.28em;
	box-sizing: content-box;
	border-radius: 3px;
	background: var(--advent-candles-img) center / contain no-repeat content-box, oklch(97% 0.01 90);
	box-shadow: 0 0 0 1px oklch(75% 0.08 85), 0 1px 2px oklch(0% 0 0 / 0.3);
	pointer-events: none;
}

.advent-deko-candles.is-1 { --advent-candles-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 26'%3E%3Cpath d='M7 1C9.2 4 9.6 6.2 7 8.8C4.4 6.2 4.8 4 7 1Z' fill='%23ffc94a'/%3E%3Cpath d='M7 4.2C8 5.6 8 6.6 7 7.6C6 6.6 6 5.6 7 4.2Z' fill='%23fff3c4'/%3E%3Crect x='4.2' y='9.5' width='5.6' height='15' rx='1' fill='%23fbf8f1' stroke='%23b9a98a' stroke-width='.8'/%3E%3C/svg%3E"); width: calc(1.6em * 14 / 26); }
.advent-deko-candles.is-2 { --advent-candles-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'%3E%3Cpath d='M7 1C9.2 4 9.6 6.2 7 8.8C4.4 6.2 4.8 4 7 1Z' fill='%23ffc94a'/%3E%3Cpath d='M7 4.2C8 5.6 8 6.6 7 7.6C6 6.6 6 5.6 7 4.2Z' fill='%23fff3c4'/%3E%3Crect x='4.2' y='9.5' width='5.6' height='15' rx='1' fill='%23fbf8f1' stroke='%23b9a98a' stroke-width='.8'/%3E%3Cpath d='M17 1C19.2 4 19.6 6.2 17 8.8C14.4 6.2 14.8 4 17 1Z' fill='%23ffc94a'/%3E%3Cpath d='M17 4.2C18 5.6 18 6.6 17 7.6C16 6.6 16 5.6 17 4.2Z' fill='%23fff3c4'/%3E%3Crect x='14.2' y='9.5' width='5.6' height='15' rx='1' fill='%23fbf8f1' stroke='%23b9a98a' stroke-width='.8'/%3E%3C/svg%3E"); width: calc(1.6em * 24 / 26); }
.advent-deko-candles.is-3 { --advent-candles-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M7 1C9.2 4 9.6 6.2 7 8.8C4.4 6.2 4.8 4 7 1Z' fill='%23ffc94a'/%3E%3Cpath d='M7 4.2C8 5.6 8 6.6 7 7.6C6 6.6 6 5.6 7 4.2Z' fill='%23fff3c4'/%3E%3Crect x='4.2' y='9.5' width='5.6' height='15' rx='1' fill='%23fbf8f1' stroke='%23b9a98a' stroke-width='.8'/%3E%3Cpath d='M17 1C19.2 4 19.6 6.2 17 8.8C14.4 6.2 14.8 4 17 1Z' fill='%23ffc94a'/%3E%3Cpath d='M17 4.2C18 5.6 18 6.6 17 7.6C16 6.6 16 5.6 17 4.2Z' fill='%23fff3c4'/%3E%3Crect x='14.2' y='9.5' width='5.6' height='15' rx='1' fill='%23fbf8f1' stroke='%23b9a98a' stroke-width='.8'/%3E%3Cpath d='M27 1C29.2 4 29.6 6.2 27 8.8C24.4 6.2 24.8 4 27 1Z' fill='%23ffc94a'/%3E%3Cpath d='M27 4.2C28 5.6 28 6.6 27 7.6C26 6.6 26 5.6 27 4.2Z' fill='%23fff3c4'/%3E%3Crect x='24.2' y='9.5' width='5.6' height='15' rx='1' fill='%23fbf8f1' stroke='%23b9a98a' stroke-width='.8'/%3E%3C/svg%3E"); width: calc(1.6em * 34 / 26); }
.advent-deko-candles.is-4 { --advent-candles-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26'%3E%3Cpath d='M7 1C9.2 4 9.6 6.2 7 8.8C4.4 6.2 4.8 4 7 1Z' fill='%23ffc94a'/%3E%3Cpath d='M7 4.2C8 5.6 8 6.6 7 7.6C6 6.6 6 5.6 7 4.2Z' fill='%23fff3c4'/%3E%3Crect x='4.2' y='9.5' width='5.6' height='15' rx='1' fill='%23fbf8f1' stroke='%23b9a98a' stroke-width='.8'/%3E%3Cpath d='M17 1C19.2 4 19.6 6.2 17 8.8C14.4 6.2 14.8 4 17 1Z' fill='%23ffc94a'/%3E%3Cpath d='M17 4.2C18 5.6 18 6.6 17 7.6C16 6.6 16 5.6 17 4.2Z' fill='%23fff3c4'/%3E%3Crect x='14.2' y='9.5' width='5.6' height='15' rx='1' fill='%23fbf8f1' stroke='%23b9a98a' stroke-width='.8'/%3E%3Cpath d='M27 1C29.2 4 29.6 6.2 27 8.8C24.4 6.2 24.8 4 27 1Z' fill='%23ffc94a'/%3E%3Cpath d='M27 4.2C28 5.6 28 6.6 27 7.6C26 6.6 26 5.6 27 4.2Z' fill='%23fff3c4'/%3E%3Crect x='24.2' y='9.5' width='5.6' height='15' rx='1' fill='%23fbf8f1' stroke='%23b9a98a' stroke-width='.8'/%3E%3Cpath d='M37 1C39.2 4 39.6 6.2 37 8.8C34.4 6.2 34.8 4 37 1Z' fill='%23ffc94a'/%3E%3Cpath d='M37 4.2C38 5.6 38 6.6 37 7.6C36 6.6 36 5.6 37 4.2Z' fill='%23fff3c4'/%3E%3Crect x='34.2' y='9.5' width='5.6' height='15' rx='1' fill='%23fbf8f1' stroke='%23b9a98a' stroke-width='.8'/%3E%3C/svg%3E"); width: calc(1.6em * 44 / 26); }

/* Christbaumkugel mit Kappe und Faden; --advent-bauble = Farbe */
.advent-deko-bauble {
	--advent-bauble: oklch(78% 0.13 85);
	position: absolute;
	display: block;
	width: var(--advent-bauble-size, 22px);
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient(circle at 32% 30%, oklch(100% 0 0 / 0.85) 0 8%, transparent 26%),
		radial-gradient(circle at 60% 65%, transparent 45%, oklch(0% 0 0 / 0.35)),
		var(--advent-bauble);
	box-shadow: 0 4px 6px oklch(0% 0 0 / 0.45);
	pointer-events: none;
}

.advent-deko-bauble::before {
	content: "";
	position: absolute;
	bottom: 92%;
	left: 50%;
	width: 30%;
	height: 16%;
	translate: -50% 0;
	border-radius: 1px;
	background: linear-gradient(90deg, oklch(55% 0.01 250), oklch(85% 0.01 250), oklch(55% 0.01 250));
}

.advent-deko-bauble::after {
	content: "";
	position: absolute;
	bottom: 106%;
	left: 50%;
	width: 1px;
	height: var(--advent-bauble-thread, 10px);
	background: oklch(80% 0.03 85 / 0.8);
}

.advent-deko-bauble.is-green { --advent-bauble: oklch(52% 0.11 150); }
.advent-deko-bauble.is-blue { --advent-bauble: oklch(68% 0.13 235); }
.advent-deko-bauble.is-logo {
	--advent-bauble: oklch(62% 0.13 240);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Crect x='4' y='10.5' width='2' height='3' rx='1' fill='%23fff'/%3E%3Crect x='7' y='9.0' width='2' height='6' rx='1' fill='%23fff'/%3E%3Crect x='10' y='7.0' width='2' height='10' rx='1' fill='%23fff'/%3E%3Crect x='13' y='5.0' width='2' height='14' rx='1' fill='%23fff'/%3E%3Crect x='16' y='7.0' width='2' height='10' rx='1' fill='%23fff'/%3E%3Crect x='19' y='4.0' width='2' height='16' rx='1' fill='%23fff'/%3E%3Crect x='22' y='7.0' width='2' height='10' rx='1' fill='%23fff'/%3E%3Crect x='25' y='5.0' width='2' height='14' rx='1' fill='%23fff'/%3E%3Crect x='28' y='7.0' width='2' height='10' rx='1' fill='%23fff'/%3E%3Crect x='31' y='9.0' width='2' height='6' rx='1' fill='%23fff'/%3E%3Crect x='34' y='10.5' width='2' height='3' rx='1' fill='%23fff'/%3E%3C/svg%3E") center / 70% no-repeat,
		radial-gradient(circle at 32% 30%, oklch(100% 0 0 / 0.7) 0 6%, transparent 22%),
		radial-gradient(circle at 60% 65%, transparent 45%, oklch(0% 0 0 / 0.35)),
		var(--advent-bauble);
}
