/*
 * VARIO Seasonal Themes – Logo-Schmuck
 *
 * Eigene Datei, weil der Logo-Schmuck auch außerhalb der Startseite gelten
 * kann ('logo_sitewide' in config.php, z. B. Nikolausmütze auf jeder Seite).
 * Die Hero-Deko (base.css + Theme-CSS) bleibt immer nur auf der Startseite.
 * Wird nur geladen, wenn auf der aktuellen Seite ein Logo-Schmuck gilt.
 */

/* -------------------------------------------------------------------------
 * Logo-Schmuck (nur mit Body-Klasse vario-season-logo)
 *
 * Das grüne Logo-Bild bleibt im DOM (Alt-Text, Link, Maße), wird nur
 * unsichtbar. Darüber liegt das saisonale SVG als Pseudo-Element in exakt
 * derselben Position. Die SVG-Fläche ist größer als das Logo (10 px oben,
 * 20 px rechts bei 30 px Logohöhe), deshalb die Prozentwerte:
 *   top    = -14.9 / 45.3   der Logohöhe
 *   height =  60.2 / 45.3
 *   width  = 214.7 / 184.9  der Logobreite
 * Prozentwerte skalieren mit, wenn das Theme das Logo mobil auf 25 px setzt.
 * Das Pseudo-Element nimmt keinen Platz ein und fängt keine Klicks ab.
 * Das Bild (Daten-URI) setzt das Plugin inline.
 *
 * Über Berry-Sections zeigt das Theme das weiße Logo. Dort bleibt es ohne
 * Schmuck: Das saisonale Logo blendet sich mit aus.
 * ------------------------------------------------------------------------- */

.vario-season-logo .nav-logo .logo-default {
	opacity: 0;
}

.vario-season-logo .nav-logo::after {
	content: "";
	position: absolute;
	left: 0;
	top: -32.89%;
	width: 116.12%;
	height: 132.89%;
	background-repeat: no-repeat;
	background-position: 0 0;
	background-size: 100% 100%;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.vario-season-logo .vario-nav.over-berry .nav-logo::after {
	opacity: 0;
}

/* Hoher Kontrast (Windows): Hintergrundbilder können fehlen, deshalb dort
 * das Original-Logo. */
@media (forced-colors: active) {
	.vario-season-logo .nav-logo .logo-default {
		opacity: 1;
	}

	.vario-season-logo .vario-nav.over-berry .nav-logo .logo-default {
		opacity: 0;
	}

	.vario-season-logo .nav-logo::after {
		content: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vario-season-logo .nav-logo::after {
		transition: none;
	}
}

/* Druck: Original-Logo. */
@media print {
	.vario-season-logo .nav-logo .logo-default {
		opacity: 1;
	}

	.vario-season-logo .nav-logo::after {
		content: none;
	}
}

/* -------------------------------------------------------------------------
 * Schneehaube auf dem Button „Kostenlos testen“ in der Navigation
 * (Weihnachten inkl. Nikolaus, überall wo das Logo geschmückt ist).
 * Reine Deko: liegt auf dem Button, fängt keine Klicks ab, kein Layout-Shift.
 * Über Berry-Sections wird der Button weiß, dort blendet die Haube aus.
 * ------------------------------------------------------------------------- */

.vario-nav-christmas .nav-cta-trial {
	position: relative;
}

.vario-nav-christmas .nav-cta-trial::before {
	content: "";
	position: absolute;
	top: -11px;
	left: 8px;
	right: 8px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 24' preserveAspectRatio='none'%3E%3Cpath d='M2 14C0 8 6 5 12 6.4 15 1 27 0 32 4.4 38 0 50 0 55 4 61 0 73 0 78 4 84 0 96 0 101 4.4 107 0.4 119 1.4 120 6 127 5 131 9 128 14C126 16 121 15.6 117 15.6 113.6 15.6 113.2 21 109.6 21 106 21 105.6 15.6 102 15.6H73C69 15.6 69 24 64.6 24 60.2 24 60.2 15.6 56 15.6H33C30 15.6 30 19.6 27 19.6 24 19.6 24 15.6 21 15.6 13 15.6 3 17 2 14Z' fill='%23ffffff' stroke='%232e2e2e' stroke-opacity='.14' stroke-width='.9' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M8 14C30 15.4 100 15.4 122 14' fill='none' stroke='%23e9edf2' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

/* Handy: Der Button steht ganz oben, die Haube bleibt flacher. */
@media (max-width: 767.98px) {
	.vario-nav-christmas .nav-cta-trial::before {
		top: -7px;
		height: 15px;
	}
}

.vario-nav-christmas .vario-nav.over-berry .nav-cta-trial::before {
	opacity: 0;
}

@media print {
	.vario-nav-christmas .nav-cta-trial::before {
		content: none;
	}
}
