/* Tag der offenen Tür - Führung (ergänzt popup.css) */

/* ---------- Einladung: Führung als Hauptaktion ---------- */
dialog.ass-tdot button.ass-tdot__btn--main { color: #fff; border-color: transparent; }
dialog.ass-tdot .ass-tdot__more {
	align-self: center;
	margin-top: 14px;
	color: var(--blau);
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}
dialog.ass-tdot .ass-tdot__more:hover { color: var(--rot); }
dialog.ass-tdot .ass-tdot__more:focus-visible,
dialog.ass-tdot .ass-tour a:focus-visible,
dialog.ass-tdot .ass-tour button:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; box-shadow: 0 0 0 2px var(--blau); }

/* Durch die Tür hindurch */
dialog.ass-tdot.is-entering { overflow: hidden; }
dialog.ass-tdot.is-entering .ass-tdot__stage { animation: ass-tour-zoom .72s cubic-bezier(.6, 0, .9, .4) forwards; z-index: 6; }
dialog.ass-tdot .ass-tour-flash { position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: 0; background: radial-gradient(circle at 22% 50%, #fff, #fff3b0 45%, var(--gelb)); }
dialog.ass-tdot.is-entering .ass-tour-flash { animation: ass-tour-flash .72s ease-in forwards; }
dialog.ass-tdot.is-tour .ass-tour-flash { animation: ass-tour-flash-aus .55s ease-out both; }

/* ---------- Rahmen der Führung ---------- */
dialog.ass-tdot.is-tour {
	width: min(1160px, calc(100vw - 32px));
	height: min(760px, calc(100dvh - 32px));
	overflow: hidden;
}
dialog.ass-tdot.is-tour .ass-tdot__card { display: none; }
dialog.ass-tdot .ass-tour[hidden] { display: none; }
dialog.ass-tdot .ass-tour {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
	background: #fff;
}

/* Kopf */
dialog.ass-tdot .ass-tour__top {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px 10px 20px;
	background: linear-gradient(100deg, var(--blau-tief), var(--blau) 60%, #0a46bd);
	color: #fff;
}
dialog.ass-tdot .ass-tour__logo { width: 92px; height: auto; margin: 0; border: 0; box-shadow: none; }
dialog.ass-tdot .ass-tour__name { min-width: 0; margin-right: auto; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .35); line-height: 1.2; }
dialog.ass-tdot .ass-tour__name span { display: block; font-size: 13px; opacity: .9; }
dialog.ass-tdot .ass-tour__name strong { display: block; color: #fff; font-size: 17px; font-weight: 800; }
dialog.ass-tdot .ass-tour__modus[hidden] { display: none; }
dialog.ass-tdot .ass-tour__modus { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
dialog.ass-tdot .ass-tour__modus button {
	min-height: 38px;
	margin: 0;
	padding: 6px 15px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
dialog.ass-tdot .ass-tour__modus button.is-an { background: var(--gelb); color: var(--blau-tief); }
dialog.ass-tdot .ass-tour__x {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	cursor: pointer;
	transition: transform .25s ease, background-color .2s ease;
}
dialog.ass-tdot .ass-tour__x:hover { background: var(--rot); transform: rotate(90deg); }
dialog.ass-tdot .ass-tour__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

dialog.ass-tdot .ass-tour__main { min-height: 0; position: relative; overflow: hidden; }

/* ---------- Startfrage ---------- */
dialog.ass-tdot .ass-tour__wahl {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 28px 24px;
	overflow-y: auto;
	text-align: center;
	background: radial-gradient(circle at 50% 0, #fff6cf, #fff 60%);
}
dialog.ass-tdot .ass-tour__wahl .ass-tdot__kicker { margin: 0 0 6px; }
dialog.ass-tdot .ass-tour__wahl-titel { margin: 0 0 8px; padding: 0; color: var(--blau); font-family: inherit; font-size: clamp(26px, 4vw, 40px); font-weight: 900; line-height: 1.12; text-align: center; outline: none; }
dialog.ass-tdot .ass-tour__wahl-text { margin: 0 0 26px; color: var(--text-leise); font-size: 17px; }
dialog.ass-tdot .ass-tour__karten { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 16px; width: 100%; justify-content: center; }
dialog.ass-tdot .ass-tour__karte {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 24px 20px;
	border: 2px solid var(--linie);
	border-radius: 20px;
	background: #fff;
	color: var(--text);
	font: inherit;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 14px 30px -18px rgba(0, 26, 92, .5);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
dialog.ass-tdot .ass-tour__karte:hover { transform: translateY(-4px); border-color: var(--blau); box-shadow: 0 20px 36px -18px rgba(0, 26, 92, .6); }
dialog.ass-tdot .ass-tour__karte svg { width: 46px; height: 46px; margin-bottom: 4px; fill: none; stroke: var(--rot); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
dialog.ass-tdot .ass-tour__karte strong { color: var(--blau); font-size: 18px; font-weight: 800; line-height: 1.25; }
dialog.ass-tdot .ass-tour__karte span { color: var(--text-leise); font-size: 15px; }

/* ---------- Station ---------- */
dialog.ass-tdot .ass-tour__station { display: grid; grid-template-columns: 50% 50%; height: 100%; }
dialog.ass-tdot .ass-tour__foto { position: relative; min-height: 0; margin: 0; overflow: hidden; background: var(--blau-tief); }
dialog.ass-tdot .ass-tour__foto img[hidden] { display: none; }
dialog.ass-tdot .ass-tour__foto img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; border: 0; box-shadow: none; }
dialog.ass-tdot .ass-tour__foto img.is-neu { animation: ass-tour-kenburns 14s ease-out both; }
dialog.ass-tdot .ass-tour__foto::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, rgba(0, 13, 46, .72)); pointer-events: none; }
dialog.ass-tdot .ass-tour__ort {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
dialog.ass-tdot .ass-tour__ort b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gelb); color: var(--blau-tief); font-size: 17px; font-weight: 900; text-shadow: none; }

/* Türflügel beim Stationswechsel */
dialog.ass-tdot .ass-tour__fluegel {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 3;
	width: 50.5%;
	background: linear-gradient(180deg, #d4003a, var(--rot) 55%, var(--rot-tief));
	box-shadow: inset 0 0 0 10px rgba(70, 0, 20, .18);
	transition: transform .45s cubic-bezier(.3, .9, .3, 1);
}
dialog.ass-tdot .ass-tour__fluegel--l { left: 0; transform: translateX(-101%); }
dialog.ass-tdot .ass-tour__fluegel--r { right: 0; transform: translateX(101%); }
dialog.ass-tdot .ass-tour__foto.is-zu .ass-tour__fluegel { transform: none; transition: transform .28s cubic-bezier(.6, 0, .8, .4); }

/* Text */
dialog.ass-tdot .ass-tour__text { min-height: 0; padding: 26px 34px 22px; overflow-y: auto; overscroll-behavior: contain; transition: opacity .2s ease, transform .2s ease; }
dialog.ass-tdot .ass-tour__text.is-weg { opacity: 0; transform: translateY(8px); }
dialog.ass-tdot .ass-tour__text > * { animation: ass-tdot-rise .5s ease both; }
dialog.ass-tdot .ass-tour__text > :nth-child(2) { animation-delay: .05s; }
dialog.ass-tdot .ass-tour__text > :nth-child(3) { animation-delay: .1s; }
dialog.ass-tdot .ass-tour__text > :nth-child(4) { animation-delay: .15s; }
dialog.ass-tdot .ass-tour__text > :nth-child(n+5) { animation-delay: .2s; }
dialog.ass-tdot .ass-tour__zahl { margin: 0 0 4px; color: var(--rot); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
dialog.ass-tdot .ass-tour__titel { margin: 0 0 10px; padding: 0; color: var(--blau); font-family: inherit; font-size: clamp(25px, 3.1vw, 34px); font-weight: 900; line-height: 1.12; text-align: left; outline: none; }
dialog.ass-tdot .ass-tour__absatz { margin: 0 0 14px; color: var(--text); font-size: 16.5px; line-height: 1.5; }
dialog.ass-tdot .ass-tour__punkte { margin: 0 0 16px; font-size: 15.5px; }
dialog.ass-tdot .ass-tour__punkte li { margin-bottom: 7px; color: var(--text); }
dialog.ass-tdot .ass-tour__mehr { display: inline-block; color: var(--blau); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
dialog.ass-tdot .ass-tour__mehr:hover { color: var(--rot); }

/* Rätsel */
dialog.ass-tdot .ass-tour__raetsel { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: #fff7d6; }
dialog.ass-tdot .ass-tour__raetsel-kopf { margin: 0 0 2px; color: var(--rot); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
dialog.ass-tdot .ass-tour__raetsel-frage { margin: 0 0 10px; color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.35; }
dialog.ass-tdot .ass-tour__antworten { display: flex; flex-wrap: wrap; gap: 8px; }
dialog.ass-tdot .ass-tour__antworten button {
	flex: 1 1 auto;
	min-height: 44px;
	margin: 0;
	padding: 8px 14px;
	border: 2px solid var(--blau);
	border-radius: 12px;
	background: #fff;
	color: var(--blau);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
dialog.ass-tdot .ass-tour__antworten button:hover:not(:disabled) { transform: translateY(-2px); background: var(--blau); color: #fff; }
dialog.ass-tdot .ass-tour__antworten button.is-richtig { border-color: #0b7a3b; background: #0b7a3b; color: #fff; animation: ass-tour-pop .4s ease; }
dialog.ass-tdot .ass-tour__antworten button.is-falsch { border-color: #b9c0cf; background: #eef0f5; color: #5b6478; text-decoration: line-through; animation: ass-tour-wackeln .35s ease; }
dialog.ass-tdot .ass-tour__antworten button:disabled { cursor: default; }
dialog.ass-tdot .ass-tour__raetsel-info { min-height: 1.4em; margin: 8px 0 0; color: var(--text); font-size: 14.5px; font-weight: 700; }

/* ---------- Sternen-Route ---------- */
dialog.ass-tdot .ass-tour__nav[hidden] { display: none; }
dialog.ass-tdot .ass-tour__nav { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--linie); background: #f7f8fc; }
dialog.ass-tdot .ass-tour__pfeil {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 46px;
	height: 46px;
	margin: 0;
	padding: 0 12px;
	border: 2px solid var(--blau);
	border-radius: 999px;
	background: #fff;
	color: var(--blau);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, color .15s ease, opacity .15s ease;
}
dialog.ass-tdot .ass-tour__pfeil svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
dialog.ass-tdot .ass-tour__pfeil--vor { min-width: 122px; padding: 0 18px; border-color: var(--rot); background: var(--rot); color: #fff; }
dialog.ass-tdot .ass-tour__pfeil:hover:not(:disabled) { transform: translateY(-2px); }
dialog.ass-tdot .ass-tour__pfeil:disabled { opacity: .4; cursor: default; }

dialog.ass-tdot .ass-tour__sterne {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-width: 0;
	background: repeating-linear-gradient(90deg, #c4cce0 0 6px, transparent 6px 12px) no-repeat center / calc(100% - 28px) 2px;
}
dialog.ass-tdot .ass-tour__stern {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 36px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #b6bed2;
	cursor: pointer;
}
dialog.ass-tdot .ass-tour__stern svg { width: 26px; height: 26px; fill: #f7f8fc; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: transform .2s ease; }
dialog.ass-tdot .ass-tour__stern:hover svg { transform: scale(1.2); }
dialog.ass-tdot .ass-tour__stern.is-gesammelt { color: #d9a400; }
dialog.ass-tdot .ass-tour__stern.is-gesammelt svg { fill: var(--gelb); }
dialog.ass-tdot .ass-tour__stern.is-neu svg { animation: ass-tour-stern .7s cubic-bezier(.2, 1.6, .4, 1); }
dialog.ass-tdot .ass-tour__stern[aria-current="step"] svg { transform: scale(1.28); }
dialog.ass-tdot .ass-tour__laeufer {
	position: absolute;
	z-index: 0;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 50%;
	background: rgba(0, 51, 153, .13);
	box-shadow: 0 0 0 2px var(--blau);
	transition: left .6s cubic-bezier(.3, .9, .3, 1), top .6s ease;
}

/* ---------- Ziel ---------- */
dialog.ass-tdot .ass-tour__ziel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 28px;
	height: 100%;
	padding: 24px 40px;
	overflow-y: auto;
	background: radial-gradient(circle at 25% 50%, #fff6cf, #fff 62%);
}
dialog.ass-tdot .ass-tour__kreis { position: relative; justify-self: center; width: min(320px, 100%); aspect-ratio: 1; container-type: inline-size; }
dialog.ass-tdot .ass-tour__kreis-stern {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 15cqw;
	height: 15cqw;
	margin: -7.5cqw 0 0 -7.5cqw;
	color: #c4cce0;
	transform: rotate(calc(var(--i) * var(--w))) translateY(-41cqw) rotate(calc(var(--i) * var(--w) * -1));
}
dialog.ass-tdot .ass-tour__kreis-stern svg { display: block; width: 100%; height: 100%; fill: #fff; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
dialog.ass-tdot .ass-tour__kreis-stern.is-gesammelt { color: #d9a400; }
dialog.ass-tdot .ass-tour__kreis-stern.is-gesammelt svg { fill: var(--gelb); animation: ass-tdot-star .6s cubic-bezier(.2, 1.6, .4, 1) calc(var(--i) * .07s) both; }
dialog.ass-tdot .ass-tour__kreis-zahl { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blau); font-size: 15cqw; font-weight: 900; }
dialog.ass-tdot .ass-tour__wann { margin: 0 0 18px; padding: 14px 16px; border-left: 4px solid var(--rot); border-radius: 0 12px 12px 0; background: #fff; box-shadow: 0 10px 24px -18px rgba(0, 26, 92, .6); }
dialog.ass-tdot .ass-tour__wann strong { display: block; color: var(--text); font-size: 18px; font-weight: 800; }
dialog.ass-tdot .ass-tour__wann span { display: block; margin-top: 3px; color: var(--text-leise); font-size: 15px; }
dialog.ass-tdot .ass-tour__neu { display: block; margin: 14px auto 0; padding: 8px 10px; border: 0; background: none; color: var(--blau); font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
dialog.ass-tdot .ass-tour__neu:hover { color: var(--rot); }
dialog.ass-tdot .ass-tour__confetti { z-index: 9; }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 860px) {
	dialog.ass-tdot.is-tour { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
	dialog.ass-tdot .ass-tour__top { flex-wrap: wrap; gap: 8px 10px; padding: 8px 10px 8px 12px; }
	dialog.ass-tdot .ass-tour__logo { width: 68px; }
	dialog.ass-tdot .ass-tour__name { padding-left: 10px; flex: 1; margin: 0; }
	dialog.ass-tdot .ass-tour__name span { font-size: 12px; }
	dialog.ass-tdot .ass-tour__name strong { font-size: 14px; }
	dialog.ass-tdot .ass-tour__modus { order: 3; flex: 1 0 100%; }
	dialog.ass-tdot .ass-tour__modus button { flex: 1; min-height: 34px; padding: 4px 8px; }
	dialog.ass-tdot .ass-tour__station { grid-template-columns: 1fr; grid-template-rows: 26% minmax(0, 1fr); }
	dialog.ass-tdot .ass-tour__ort { left: 12px; right: 12px; bottom: 8px; font-size: 14px; }
	dialog.ass-tdot .ass-tour__ort b { width: 32px; height: 32px; font-size: 15px; }
	dialog.ass-tdot .ass-tour__text { padding: 14px 16px 16px; }
	dialog.ass-tdot .ass-tour__titel { font-size: 24px; margin-bottom: 8px; }
	dialog.ass-tdot .ass-tour__absatz { font-size: 15.5px; margin-bottom: 10px; }
	dialog.ass-tdot .ass-tour__punkte { font-size: 14.5px; margin-bottom: 12px; }
	dialog.ass-tdot .ass-tour__karten { grid-template-columns: 1fr; max-width: 360px; }
	dialog.ass-tdot .ass-tour__karte { padding: 16px; }
	dialog.ass-tdot .ass-tour__wahl-text { margin-bottom: 16px; font-size: 15px; }
	dialog.ass-tdot .ass-tour__nav { flex-wrap: wrap; gap: 6px 8px; padding: 6px 10px 8px; }
	dialog.ass-tdot .ass-tour__sterne { order: -1; flex: 1 0 100%; }
	dialog.ass-tdot .ass-tour__stern { width: 24px; height: 30px; }
	dialog.ass-tdot .ass-tour__stern svg { width: 19px; height: 19px; }
	dialog.ass-tdot .ass-tour__laeufer { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
	dialog.ass-tdot .ass-tour__pfeil { height: 44px; }
	dialog.ass-tdot .ass-tour__pfeil--vor { flex: 1; }
	dialog.ass-tdot .ass-tour__ziel { grid-template-columns: 1fr; align-content: start; gap: 12px; padding: 16px; }
	dialog.ass-tdot .ass-tour__kreis { width: 170px; }
}

/* ---------- Animationen ---------- */
@keyframes ass-tour-zoom { to { transform: scale(9); } }
@keyframes ass-tour-flash { 0%, 35% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ass-tour-flash-aus { from { opacity: 1; } to { opacity: 0; } }
@keyframes ass-tour-kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes ass-tour-stern { 0% { transform: scale(0) rotate(-140deg); } 100% { transform: scale(1.28) rotate(0); } }
@keyframes ass-tour-pop { 40% { transform: scale(1.08); } }
@keyframes ass-tour-wackeln { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
	dialog.ass-tdot .ass-tour-flash { display: none; }
	dialog.ass-tdot .ass-tour__foto img.is-neu { animation: none; }
	dialog.ass-tdot .ass-tour__laeufer { transition: none; }
}
