/* Adventszauber Karte + Teilnehmerkarten — adventszauber-baden.ch */
.azk, .az-karte {
	--az-gruen: #006030;
	--az-pin: #10694d;
	--az-pink: #ec4298;
	--az-papier: #f4f3f1;
	--az-text: #3d4a44;
}

/* ---------- Karte ---------- */
.azk { position: relative; font-family: Poppins, "Open Sans", Helvetica, Arial, sans-serif; }

.azk-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; }
.azk-chip {
	font: 600 14px/1 Poppins, sans-serif; letter-spacing: .02em;
	padding: 10px 16px; border-radius: 999px; cursor: pointer;
	color: var(--az-gruen); background: #fff; border: 2px solid var(--az-gruen);
	transition: background .2s, color .2s;
}
.azk-chip:hover { background: #eef5f1; }
.azk-chip.is-active:hover { background: var(--az-gruen); }
.azk-chip.is-active { background: var(--az-gruen); color: #fff; }
.azk-chip:focus-visible { outline: 3px solid var(--az-pink); outline-offset: 2px; }

.azk-stage { position: relative; overflow: hidden; background: var(--az-papier); }
.azk-svg { display: block; width: 100%; height: auto; }
.azk-hint { text-align: center; margin: 12px 0 0; color: var(--az-gruen); font-size: 15px; }
.azk-hint--mobil { display: none; }

/* Lichterkette */
.azk-draw { fill: none; stroke: #fff; stroke-width: 70; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.azk-glow { fill: none; stroke: var(--az-pink); stroke-opacity: .16; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.azk-lights { fill: none; stroke: var(--az-pink); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0 26; }
.azk-lights--b { stroke: #ffd36b; stroke-width: 7; stroke-dashoffset: 13; }

/* Nummern */
.azk-pin { cursor: pointer; outline: none; }
.azk-socket { fill: #fbfaf7; stroke: var(--az-pin); stroke-width: 2.5; stroke-dasharray: 5 5; }
/* Drehpunkt = Punktmitte (lokaler Nullpunkt); fill-box wäre das ganze, beschnittene Bild */
.azk-bulb { transform-box: view-box; transform-origin: 0 0; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.azk-halo { fill: var(--az-pink); opacity: 0; transform-box: fill-box; transform-origin: center; }
.azk-ring { fill: none; stroke: var(--az-pink); stroke-width: 0; transition: stroke-width .2s; }
.azk-hit { fill: transparent; }
.azk-pin:hover .azk-bulb, .azk-pin:focus-visible .azk-bulb { transform: scale(1.18); }
.azk-pin:focus-visible .azk-ring, .azk-pin.is-open .azk-ring { stroke-width: 5; }
.azk-pin.is-open .azk-bulb { transform: scale(1.22); }
.azk-pin.is-open .azk-halo { animation: azk-puls 1.6s ease-out infinite; }

/* Gassen-Filter */
.azk[data-filter]:not([data-filter=""]) .azk-pin:not(.is-match) .azk-bulb { opacity: .28; transform: scale(.85); }
.azk[data-filter]:not([data-filter=""]) .azk-pin.is-match .azk-bulb { transform: scale(1.12); }
.azk[data-filter]:not([data-filter=""]) .azk-pin.is-match .azk-halo { animation: azk-puls 2s ease-out infinite; }

/* Auftritt (nur mit JS und ohne «weniger Bewegung») */
.azk--anim .azk-draw { stroke-dashoffset: 1; }
.azk--anim .azk-bulb { transform: scale(0); }
.azk--anim .azk-svg > image { opacity: 0; transform: scale(1.04); transform-origin: 50% 50%; }
.azk--anim.is-play .azk-svg > image { animation: azk-bild 1.1s ease-out forwards; }
.azk--anim.is-play .azk-draw-0 { animation: azk-zeichnen .3s .5s ease-in forwards; }
.azk--anim.is-play .azk-draw-1 { animation: azk-zeichnen .7s .85s linear forwards; }
.azk--anim.is-play .azk-draw-2 { animation: azk-zeichnen .9s 1.6s linear forwards; }
.azk--anim.is-play .azk-draw-3 { animation: azk-zeichnen .4s 2.55s linear forwards; }
.azk--anim.is-play .azk-draw-4 { animation: azk-zeichnen .9s 2.55s ease-in-out forwards; }
.azk--anim.is-play .azk-draw-5 { animation: azk-zeichnen .3s 3s linear forwards; }
.azk--anim.is-play .azk-draw-6 { animation: azk-zeichnen .25s 3.35s ease-out forwards; }
.azk--anim.is-play .azk-bulb { animation: azk-an .6s calc(.7s + var(--i) * 95ms) cubic-bezier(.3, 1.6, .5, 1) forwards; }
.azk--anim.is-play .azk-halo { animation: azk-blitz .9s calc(.7s + var(--i) * 95ms) ease-out; }
.azk.is-done .azk-lights { animation: azk-lauf 3.5s linear infinite; }
.azk.is-done .azk-lights--b { animation: azk-lauf-b 3.5s linear infinite; }

@keyframes azk-bild { to { opacity: 1; transform: none; } }
@keyframes azk-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes azk-an { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes azk-blitz { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes azk-puls { 0% { opacity: .45; transform: scale(1); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes azk-lauf { to { stroke-dashoffset: -52; } }
@keyframes azk-lauf-b { from { stroke-dashoffset: 13; } to { stroke-dashoffset: -39; } }

/* Schnee */
.azk-snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.azk-snow i { position: absolute; top: -12px; border-radius: 50%; background: var(--az-pink); opacity: .75; animation-name: azk-schnee; animation-timing-function: linear; animation-iteration-count: infinite; }
.azk-snow i:nth-child(3n) { background: #f6a3cb; }
@keyframes azk-schnee {
	0% { top: -12px; transform: translateX(0); }
	50% { transform: translateX(18px); }
	100% { top: 102%; transform: translateX(-8px); }
}

/* Popup */
.azk-pop {
	position: absolute; z-index: 5; width: min(340px, calc(100% - 24px));
	background: #fff; border-radius: 10px; padding: 18px 18px 16px;
	box-shadow: 0 14px 40px rgba(0, 50, 25, .25); border-top: 5px solid var(--az-pink);
	color: var(--az-text); font-size: 15px; line-height: 1.5;
	animation: azk-auf .22s ease-out;
}
.azk-pop[hidden] { display: none; }
@keyframes azk-auf { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.azk-close { position: absolute; top: 6px; right: 8px; width: 34px; height: 34px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--az-gruen); cursor: pointer; }
.azk-pop-nr { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--az-pin); color: #fff; font-weight: 600; font-size: 14px; margin-right: 8px; }
.azk-pop-eintrag + .azk-pop-eintrag { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #cfd8d2; }
.azk-pop h4 { margin: 0 34px 2px 0; padding: 0; font: 600 18px/1.3 Poppins, sans-serif; color: var(--az-gruen); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.azk-pop .azk-pop-adr { margin: 0 0 8px; color: var(--az-pin); font-size: 14px; }
.azk-pop .azk-pop-txt { margin: 0 0 10px; }
.azk-pop-link { display: inline-block; font: 600 13px/1 Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fff !important; background: var(--az-pink); padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.azk-pop-link:hover { background: #d7337f; }

/* Äste aus Reanas Hintergrund hinter den Gassen; die Karten liegen darüber */
.et_pb_section.az-gasse-sec { position: relative; overflow: hidden; }
.az-gasse-sec > .et_pb_row { position: relative; z-index: 1; }
.az-gasse-sec::before, .az-gasse-sec::after { content: ""; position: absolute; z-index: 0; pointer-events: none; width: clamp(150px, 24vw, 400px); aspect-ratio: 9 / 10; background: no-repeat center / contain; }
#rathausgasse::before { background-image: url(ast-links.png); left: -5vw; top: 130px; }
#obere-halde::after { background-image: url(ast-rechts.png); right: -5vw; top: 30%; }
#untere-halde::before { background-image: url(ast-links.png); left: -5vw; bottom: 8%; }
#untere-halde::after { background-image: url(ast-rechts.png); right: -5vw; top: 6%; }
#kronengasse::before { background-image: url(ast-links.png); left: -5vw; top: 35%; }
#wettingerstrasse::after { background-image: url(ast-rechts.png); right: 4vw; bottom: 0; width: clamp(150px, 28vw, 460px); }

/* Vogel fliegt innerhalb seiner Gasse über die Karten und scrollt mit dem Inhalt */
.az-vogel { position: absolute; left: 0; top: 0; z-index: 2; width: 72px; height: auto; pointer-events: none; will-change: transform; }

/* Willkommens-Banner pink */
.et_pb_section.az-willkommen { background-color: #ec4298 !important; }

/* ---------- Teilnehmerkarten (Divi-Spalten mit Klasse az-karte), Aufbau wie 2025 ---------- */
.et_pb_row.az-reihe { width: 90%; max-width: 1280px; }
/* Polster, Knöpfe und Titel stehen hier statt in den Divi-Einstellungen: Divi erzeugt sie für diese Spalten nicht */
.et_pb_row .az-karte.et_pb_column { background: #fff; padding: 22px 22px 22px; transition: box-shadow .3s; scroll-margin-top: 110px; }
.az-karte .et_pb_text, .az-karte .et_pb_gallery { margin-bottom: 0 !important; }
.az-karte .az-text { margin-top: 16px !important; }
.az-karte .et_pb_gallery { margin-top: 16px !important; }
/* Slider: Pfeile pink, Punkte pink im Bild, damit sichtbar ist, dass es mehrere Bilder hat */
.az-karte .et_pb_gallery .et-pb-arrow-prev, .az-karte .et_pb_gallery .et-pb-arrow-next { color: #ec4298 !important; text-shadow: 0 0 6px rgba(255, 255, 255, .9); }
.az-karte .et_pb_gallery .et-pb-controllers { bottom: 12px; }
.az-karte .et_pb_gallery .et-pb-controllers a { width: 11px; height: 11px; margin: 0 4px; border-radius: 50%; background: #fff !important; box-shadow: inset 0 0 0 2px #ec4298, 0 1px 4px rgba(0, 0, 0, .35); opacity: 1; }
.az-karte .et_pb_gallery .et-pb-controllers a.et-pb-active-control { background: #ec4298 !important; }
/* Karten-Knöpfe und «Download Flyer» oben (Klasse az-flyer, Jan 04.11.) gleich */
body #page-container .az-karte .et_pb_button, body #page-container .az-karte .et_pb_button:hover,
body #page-container .et_pb_button.az-flyer, body #page-container .et_pb_button.az-flyer:hover {
	display: inline-block; min-width: 200px; text-align: center; padding: 11px 18px !important; border: 0 !important; border-radius: 0;
	background: #ec4298 !important; color: #fff !important;
	font: 600 14px/1.2 Poppins, sans-serif !important; letter-spacing: 2px; text-transform: uppercase;
}
body #page-container .az-karte .et_pb_button:hover, body #page-container .et_pb_button.az-flyer:hover { background: #d7337f !important; }
body #page-container .az-karte .et_pb_button::after, body #page-container .et_pb_button.az-flyer::after { display: none; }
.az-gasse h3 { font: 600 36px/1.2 Poppins, sans-serif; padding: 0; }
.az-karte-titel h2 { font: 600 36px/1.2 Poppins, sans-serif; text-align: center; }
.az-karte.is-hl { box-shadow: 0 0 0 4px var(--az-pink); }
/* Titel: Nummer links, Name und Strasse bündig rechts davon */
.az-karte h3.az-titel { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; font: 600 22px/1.3 Poppins, sans-serif; color: var(--az-gruen); padding: 0; margin: 0; }
.az-nr {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; margin: -3px 0 -6px; /* streckt die Titelzeile nicht */
	background: var(--az-pin); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
	transition: box-shadow .2s;
}
.az-nr:hover { box-shadow: 0 0 0 4px rgba(236, 66, 152, .3); }
.az-neu { color: var(--az-pink); white-space: nowrap; }
.az-karte .az-adresse { margin: 0 0 0 46px; color: var(--az-pin); font-size: 15px; line-height: 1.35; }
.az-karte .az-text p { color: var(--az-text); font-size: 16px; line-height: 1.7; padding-bottom: .8em; }
/* Lange Texte: zugeklappt rund sechs Zeilen, Knopf «Weiterlesen» */
.az-karte .az-text.is-zu { max-height: 10.2em; overflow: hidden; position: relative; }
.az-karte .az-text.is-zu::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.4em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.az-mehr { display: block; margin: 2px 0 10px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 15px/1.4 Poppins, sans-serif; color: var(--az-pink); text-decoration: underline; text-underline-offset: 3px; }
.az-mehr:hover { color: #d7337f; }
.az-mehr:focus-visible { outline: 3px solid var(--az-pink); outline-offset: 2px; }
/* Bilder quadratisch wie 2025; Slider mit Pfeilen und Punkten, ohne Autoplay */
.az-karte .et_pb_gallery_image img, .az-karte .et_pb_image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
/* Banner-Slider Rückblick 2025: quadratisch, Pfeile und Punkte wie in den Karten */
.az-rueckblick .et_pb_gallery_image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
/* Desktop: Slider kleiner und in seiner Spalte mittig (Jan 03.11.) */
@media (min-width: 981px) {
	.az-willkommen .et_pb_column:has(.az-rueckblick) { display: flex; flex-direction: column; justify-content: center; }
	.et_pb_gallery.az-rueckblick { width: 100%; max-width: 616px; margin: 0 auto !important; }
}
.az-rueckblick .et-pb-arrow-prev, .az-rueckblick .et-pb-arrow-next { color: #ec4298 !important; text-shadow: 0 0 6px rgba(255, 255, 255, .9); }
.az-rueckblick .et-pb-controllers { bottom: 12px; }
.az-rueckblick .et-pb-controllers a { width: 11px; height: 11px; margin: 0 4px; border-radius: 50%; background: #fff !important; box-shadow: inset 0 0 0 2px #ec4298, 0 1px 4px rgba(0, 0, 0, .35); opacity: 1; }
.az-rueckblick .et-pb-controllers a.et-pb-active-control { background: #ec4298 !important; }
/* Knöpfe zentriert, einer pro Zeile */
.az-karte .et_pb_button_module_wrapper { display: block; text-align: center; margin: 10px 0 0 !important; }
.az-karte .et_pb_button_module_wrapper .et_pb_button { margin: 0 !important; }
.az-leer { background: transparent !important; box-shadow: none !important; }

@media (max-width: 980px) {
	.az-leer { display: none !important; }
}

/* Hero-Titel auf dem Handy: kleiner und mit der Bildschirmbreite skaliert, damit «Adventszauber» ganz auf
   eine Zeile passt (vorher «Adventszaube-r», Jan 04.11.); Zeilen ausgeglichen. Divi setzt sonst 34px.
   Keine Silbentrennung: hyphens:auto trennte auch ohne Not («Willkom-men»). */
@media (max-width: 767px) {
	body #page-container .et_pb_section_0 .et_pb_text_0 h1 {
		font-size: clamp(22px, 7.2vw, 30px) !important;
		line-height: 1.2em !important;
		text-wrap: balance;
	}
}

@media (max-width: 640px) {
	.az-vogel { width: 52px; }
	.az-gasse h3, .az-karte-titel h2 { font-size: 28px; }
	/* Handy: Karte als ruhiges Bild in voller Breite, nur der Schnee bewegt sich.
	   Ein Tipp führt zur ersten Position (Jan 04.11.: «scroller innerhalb der Karte selten eine gute Lösung») */
	.azk-filter, .azk-pop, .azk-hint { display: none !important; }
	.azk-hint--mobil { display: block !important; font-size: 14px; }
	.azk-stage { cursor: pointer; }
	.azk-pin { pointer-events: none; }
	.azk .azk-lights, .azk .azk-lights--b, .azk .azk-bulb, .azk .azk-halo { animation: none !important; transition: none !important; }
	.az-karte h3.az-titel { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.azk-snow { display: none; }
	.azk *, .az-karte { animation: none !important; transition: none !important; }
}
