/**
 * Eisboot Tracker – Aussehen der Besucher-Karte
 * =============================================
 * Inhalt (in dieser Reihenfolge, spätere Abschnitte ergänzen/überschreiben frühere):
 *   - Rahmen, Farben (Variablen --ebt-…), Statusblase, Infokarte, Knöpfe, Wellen
 *   - Kielwasser-Spur, eingebautes Boot und seine Animationen, „Zzz“, Besucher-Punkt
 *   - Eigene Boot-Grafik (.ebo-… = einzelne Ebenen der Eisboot-SVG)
 *   - Offline-Szene (Sonne, Wolken, Wasser) und Saisonpause (Schnee, Eis, Schneehaube)
 *   - Anklingeln / „Wo seid ihr?“: Knöpfe, Rückfrage, Meldungen, fliegende Glocken
 *   - Handy-Ansicht (@media max-width: 600px) – Panel unten, kleineres Boot
 *   - Reduzierte Bewegung: Wer in System/Browser „Animationen reduzieren“ eingestellt hat,
 *     bekommt keine Animationen (prefers-reduced-motion).
 * Alle Klassen beginnen mit „ebt“ bzw. „ebo“, damit sie nicht mit dem Theme kollidieren.
 */
/* Eisboot Tracker – verspielte Karte */
.ebt {
	--ebt-blue: #43a1ce;
	--ebt-blue-dark: #1f6f99;
	--ebt-red: #e22218;
	--ebt-coral: #ff7b6b;
	--ebt-cream: #fff7e8;
	--ebt-ink: #2b2b2b;
	--ebt-font: "Poetsen One", "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
	position: relative;
	height: var(--ebt-height, 520px);
	border-radius: 28px;
	overflow: hidden;
	overflow: clip;
	background: var(--ebt-blue);
	box-shadow: 0 0 0 6px #fff, 0 0 0 10px var(--ebt-blue), 0 18px 40px rgba(20, 70, 100, .25);
	font-family: var(--ebt-font);
	isolation: isolate;
}

.ebt__map {
	position: absolute;
	inset: 0;
	background: #aad3df;
}

/* Etwas sommerlicher: Karte leicht wärmer und kräftiger */
.ebt .leaflet-tile-pane { filter: saturate(1.25) brightness(1.03) hue-rotate(-4deg); }

/* ---------- Statusbubble ---------- */
.ebt__status {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 500;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: calc(100% - 90px);
	padding: 9px 16px 9px 12px;
	border-radius: 999px;
	background: var(--ebt-cream);
	color: var(--ebt-ink);
	font-size: 15px;
	line-height: 1.25;
	box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
	animation: ebt-pop .5s cubic-bezier(.2, 1.6, .4, 1) both;
}
.ebt__dot {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #b9b9b9;
}
.ebt[data-state="live"] .ebt__dot { background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .7); animation: ebt-live 1.6s infinite; }
.ebt[data-state="offline"] .ebt__dot { background: #f5a623; }
.ebt[data-state="error"] .ebt__dot { background: var(--ebt-red); }

/* ---------- Infokarte ---------- */
.ebt__card {
	position: absolute;
	left: 14px;
	bottom: 46px;
	z-index: 500;
	padding: 12px 16px;
	border-radius: 18px;
	background: #fff;
	color: var(--ebt-ink);
	box-shadow: 0 5px 0 var(--ebt-blue-dark);
	transform: rotate(-1.5deg);
	animation: ebt-pop .5s cubic-bezier(.2, 1.6, .4, 1) both;
	max-width: calc(100% - 28px);
}
.ebt__card[hidden] { display: none; }
.ebt__card-title { font-size: 18px; color: var(--ebt-red); margin-bottom: 2px; }
.ebt__card-row { font-family: system-ui, sans-serif; font-size: 13.5px; line-height: 1.4; }
.ebt__card-row[hidden] { display: none; }
.ebt__card-dist { font-weight: 600; color: var(--ebt-blue-dark); }

/* ---------- Buttons ---------- */
.ebt__actions {
	position: absolute;
	right: 14px;
	bottom: 46px;
	z-index: 500;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
}
.ebt__btn {
	font: inherit;
	font-size: 15px;
	padding: 9px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--ebt-red);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 0 #9e130d;
	transition: transform .12s, box-shadow .12s;
}
.ebt__btn--me { background: #fff; color: var(--ebt-blue-dark); box-shadow: 0 4px 0 var(--ebt-blue-dark); }
.ebt__btn:hover { transform: translateY(-2px) rotate(-2deg); }
.ebt__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #9e130d; }
.ebt__btn:disabled { opacity: .75; cursor: progress; }
.ebt__btn[hidden] { display: none; }

/* Leaflet-Bedienelemente rund & freundlich */
.ebt .leaflet-control-zoom { border: 0 !important; box-shadow: 0 4px 0 rgba(0, 0, 0, .15) !important; border-radius: 16px; overflow: hidden; margin: 14px 14px 0 0 !important; }
.ebt .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; font-family: var(--ebt-font); font-size: 22px; color: var(--ebt-blue-dark); }
.ebt .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .75); border-radius: 8px 0 0 0; margin-bottom: 26px !important; }

/* ---------- Wellen am unteren Rand ---------- */
.ebt__waves {
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 200%;
	height: 34px;
	z-index: 450;
	pointer-events: none;
	animation: ebt-waves 9s linear infinite;
}
.ebt__wave--back { fill: #7cc6e8; opacity: .85; }
.ebt__wave--front { fill: var(--ebt-blue); animation: ebt-waves-front 5s ease-in-out infinite alternate; }

/* ---------- Kielwasser-Spur ---------- */
.ebt-trail { stroke: #fff; stroke-opacity: .85; filter: drop-shadow(0 0 3px rgba(67, 161, 206, .8)); }
.ebt-trail-dash { stroke: var(--ebt-coral); animation: ebt-dash 1.2s linear infinite; }
.ebt-user-line { stroke: var(--ebt-blue-dark); stroke-opacity: .6; }
.ebt-user-accuracy { fill: var(--ebt-blue); fill-opacity: .1; stroke: var(--ebt-blue); stroke-opacity: .4; }

/* ---------- Das Boot ---------- */
.ebt-boat-icon { background: none; border: 0; }
.ebt-boat {
	position: relative;
	width: 150px;
	height: 105px;
	transition: filter .6s;
}
.ebt-boat__body {
	position: absolute;
	inset: 0;
	transform-origin: 50% 80%;
	animation: ebt-bob 2.6s ease-in-out infinite;
	filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .18));
}
.ebt-boat.is-west .ebt-boat__body,
.ebt-boat.is-west .ebt-boat__wake { scale: -1 1; }
.ebt-boat__svg, .ebt-boat__img { display: block; width: 100%; height: 100%; object-fit: contain; }

.ebt-boat__parasol { transform-origin: 60px 52px; animation: ebt-sway 3.2s ease-in-out infinite; }
.ebt-boat__flag { transform-origin: 98px 33px; animation: ebt-flag .6s ease-in-out infinite alternate; }
.ebt-boat__heart { transform-origin: 61px 48px; animation: ebt-heart 1.4s ease-in-out infinite; }
.ebt-boat__cone { transform-origin: 26px 54px; animation: ebt-sway 2.4s ease-in-out infinite reverse; }
.ebt-boat__motor { transform-origin: 6px 50px; }
.ebt-boat.is-moving .ebt-boat__motor { animation: ebt-rattle .12s linear infinite; }

/* Wasserkreise unter dem Boot */
.ebt-boat__ripple {
	position: absolute;
	left: 50%;
	top: 84px;
	width: 124px;
	height: 18px;
	margin-left: -62px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .8);
	animation: ebt-ripple 2.6s ease-out infinite;
}

/* Bugwelle / Blasen hinter dem Heck */
.ebt-boat__wake { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.ebt-boat.is-moving .ebt-boat__wake { opacity: 1; }
.ebt-boat__wake i {
	position: absolute;
	left: 5px;
	top: 80px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #fff;
	animation: ebt-bubble 1.4s ease-out infinite;
}
.ebt-boat__wake i:nth-child(2) { animation-delay: .35s; top: 84px; width: 7px; height: 7px; }
.ebt-boat__wake i:nth-child(3) { animation-delay: .7s; top: 77px; }
.ebt-boat__wake i:nth-child(4) { animation-delay: 1.05s; top: 86px; width: 6px; height: 6px; }

/* Schlafendes Boot */
.ebt-boat__zzz { position: absolute; left: 92px; top: 0; display: none; font-family: var(--ebt-font); color: #fff; text-shadow: 0 2px 0 var(--ebt-blue-dark); }
.ebt-boat__zzz span { position: absolute; opacity: 0; animation: ebt-zzz 3s ease-in infinite; font-size: 16px; }
.ebt-boat__zzz span:nth-child(2) { animation-delay: 1s; left: 10px; font-size: 19px; }
.ebt-boat__zzz span:nth-child(3) { animation-delay: 2s; left: 20px; font-size: 23px; }
.ebt-boat.is-sleeping .ebt-boat__zzz { display: block; }
.ebt-boat.is-sleeping .ebt-boat__body { animation-duration: 5s; filter: grayscale(.35) drop-shadow(0 3px 0 rgba(0, 0, 0, .18)); }
.ebt-boat.is-sleeping .ebt-boat__parasol { animation-duration: 6s; }

/* ---------- Besucher ---------- */
.ebt-user-icon { background: none; border: 0; }
.ebt-user { position: relative; width: 44px; height: 44px; }
.ebt-user__dot {
	position: absolute;
	inset: 8px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--ebt-blue-dark);
	border: 3px solid #fff;
	color: #fff;
	font-family: var(--ebt-font);
	font-size: 12px;
	box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
	animation: ebt-hop 2.2s ease-in-out infinite;
}
.ebt-user__pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--ebt-blue);
	opacity: .5;
	animation: ebt-pulse 2s ease-out infinite;
}

/* ---------- Keyframes ---------- */
@keyframes ebt-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@keyframes ebt-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ebt-flag { from { transform: skewY(-8deg) scaleX(.85); } to { transform: skewY(8deg) scaleX(1.05); } }
@keyframes ebt-heart { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes ebt-rattle { 0% { transform: translate(0, 0); } 50% { transform: translate(-.6px, .5px); } 100% { transform: translate(0, 0); } }
@keyframes ebt-ripple { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes ebt-bubble { 0% { transform: translate(0, 0) scale(1); opacity: .95; } 100% { transform: translate(-34px, 4px) scale(.2); opacity: 0; } }
@keyframes ebt-zzz { 0% { transform: translate(0, 20px) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(14px, -16px) scale(1.1); opacity: 0; } }
@keyframes ebt-pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes ebt-hop { 0%, 80%, 100% { transform: translateY(0); } 88% { transform: translateY(-5px); } }
@keyframes ebt-live { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .7); } 100% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } }
@keyframes ebt-dash { to { stroke-dashoffset: -14; } }
@keyframes ebt-waves { to { transform: translateX(-50%); } }
@keyframes ebt-waves-front { from { transform: translateX(-60px); } to { transform: translateX(0); } }
@keyframes ebt-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }


@media (prefers-reduced-motion: reduce) {
	.ebt *, .ebt *::before, .ebt *::after { animation: none !important; transition: none !important; }
}

/* ---------- Eigene Boot-Grafik (z. B. Eisboot_f_Animation.svg) ---------- */
.ebt-boat.ebt-boat--image { width: 210px; height: 128px; }
.ebt-boat--image .ebt-boat__ripple { left: 50%; width: 190px; margin-left: -95px; top: 108px; height: 20px; }
.ebt-boat--image .ebt-boat__wake i { top: 106px; }
.ebt-boat--image .ebt-boat__wake i:nth-child(2) { top: 110px; }
.ebt-boat--image .ebt-boat__wake i:nth-child(3) { top: 102px; }
.ebt-boat--image .ebt-boat__wake i:nth-child(4) { top: 112px; }
.ebt-boat--image .ebt-boat__zzz { left: 140px; top: -8px; }

/* Grafik schaut nach links: gespiegelt wird, wenn das Boot nach Osten fährt */
.ebt-boat[data-faces="left"] .ebt-boat__body { scale: -1 1; }
.ebt-boat[data-faces="left"].is-west .ebt-boat__body { scale: 1 1; }

.ebt-boat__svg--custom { overflow: visible; }
.ebt-boat__svg--custom .ebo-parasol,
.ebt-boat__svg--custom .ebo-heart,
.ebt-boat__svg--custom .ebo-float,
.ebt-boat__svg--custom .ebo-sign,
.ebt-boat__svg--custom .ebo-motor,
.ebt-boat__svg--custom .ebo-person { transform-box: fill-box; }

.ebo-parasol { transform-origin: 50% 100%; animation: ebo-parasol 3.4s ease-in-out infinite; }
.ebo-heart   { transform-origin: 50% 50%; animation: ebt-heart 1.4s ease-in-out infinite; }
.ebo-sign    { transform-origin: 50% 100%; animation: ebo-sign 2.2s ease-in-out infinite; }
.ebo-person  { transform-origin: 50% 100%; animation: ebo-person 3s ease-in-out infinite; }
.ebo-person--b { animation-delay: -1.3s; animation-duration: 3.6s; }
.ebo-float   { transform-origin: 50% 50%; animation: ebo-float 3.2s ease-out infinite; }
.ebo-float--b { animation-delay: -1.6s; }
.ebo-motor   { transform-origin: 50% 0%; }
.ebt-boat.is-moving .ebo-motor { animation: ebo-motor .14s linear infinite; }

.ebt-boat.is-sleeping .ebo-float,
.ebt-boat.is-sleeping .ebo-person { animation-play-state: paused; }
.ebt-boat.is-sleeping .ebo-float { opacity: 0; }

@keyframes ebo-parasol { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes ebo-sign { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes ebo-person { 0%, 100% { transform: rotate(0deg) translateY(0); } 40% { transform: rotate(-2.5deg) translateY(-2px); } 70% { transform: rotate(1.5deg); } }
@keyframes ebo-float {
	0%   { transform: translateY(30px) scale(.4); opacity: 0; }
	20%  { opacity: 1; }
	60%  { transform: translateY(-20px) scale(1.1) rotate(-6deg); opacity: 1; }
	100% { transform: translateY(-70px) scale(.8) rotate(8deg); opacity: 0; }
}
@keyframes ebo-motor { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(1.5px, 1px) rotate(1deg); } 100% { transform: translate(0, 0) rotate(0); } }

/* =========================================================
   Offline-Szene: Karte ausgeblendet, Boot schaukelt mit Text
   ========================================================= */
.ebt__offline { display: none; }
.ebt.is-card { height: auto; background: #fff; }
.ebt.is-card .ebt__map,
.ebt.is-card .ebt__status,
.ebt.is-card .ebt__card,
.ebt.is-card .ebt__actions,
.ebt.is-card > .ebt__waves { display: none; }
.ebt.is-card .ebt__offline { display: block; animation: ebt-fade .5s ease both; }

.ebt__scene {
	position: relative;
	height: 290px;
	overflow: hidden;
	background: linear-gradient(#8fd3f4 0%, #c9ecfb 70%, #e8f7fd 100%);
	transition: background .8s;
}

/* Sonne mit Strahlen, wie oben auf der Startseite */
.ebt__sun {
	position: absolute;
	right: 9%;
	top: 26px;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: #f6c443;
	box-shadow: 0 0 0 10px rgba(246, 196, 67, .25), 0 0 0 22px rgba(246, 196, 67, .12);
	animation: ebt-sun 4s ease-in-out infinite;
}
.ebt__sun::before {
	content: "";
	position: absolute;
	inset: -70px;
	border-radius: 50%;
	background: repeating-conic-gradient(rgba(255, 255, 255, .35) 0 6deg, transparent 6deg 24deg);
	-webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, transparent 72%);
	mask: radial-gradient(circle, transparent 38%, #000 40%, transparent 72%);
	animation: ebt-spin 40s linear infinite;
}

.ebt__cloud {
	position: absolute;
	width: 110px;
	height: 34px;
	border-radius: 40px;
	background: #fff;
	opacity: .9;
	animation: ebt-cloud 38s linear infinite;
}
.ebt__cloud::before, .ebt__cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.ebt__cloud::before { width: 50px; height: 50px; left: 16px; top: -24px; }
.ebt__cloud::after { width: 38px; height: 38px; left: 54px; top: -16px; }
.ebt__cloud--a { top: 48px; left: -140px; }
.ebt__cloud--b { top: 96px; left: -140px; scale: .7; animation-duration: 52s; animation-delay: -26s; }

.ebt__scene-boat {
	position: absolute;
	left: 50%;
	bottom: 34px;
	translate: -50% 0;
	scale: 1.45;
	transform-origin: 50% 100%;
	z-index: 2;
}
.ebt__scene-boat .ebt-boat__zzz { color: var(--ebt-blue-dark); text-shadow: 0 2px 0 #fff; }

.ebt__scene-water {
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 200%;
	height: 82px;
	z-index: 3;
	animation: ebt-waves 12s linear infinite;
}
.ebt__sw--back { fill: #7cc6e8; opacity: .9; transition: fill .8s; }
.ebt__sw--front { fill: var(--ebt-blue); animation: ebt-waves-front 6s ease-in-out infinite alternate; transition: fill .8s; }

.ebt__offline-text {
	padding: 18px 24px 24px;
	text-align: center;
	background: var(--ebt-blue);
	color: #fff;
}
.ebt__offline-title {
	margin: 0 0 6px;
	font-family: var(--ebt-font);
	font-size: clamp(22px, 4vw, 30px);
	line-height: 1.15;
	color: #fff;
	text-shadow: 0 3px 0 var(--ebt-blue-dark);
}
.ebt__offline-msg {
	margin: 0 auto;
	max-width: 34em;
	font-family: system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
.ebt__offline-msg:empty { display: none; }

/* ---------- Saisonpause: Schnee & Eis ---------- */
.ebt.is-pause .ebt__scene { background: linear-gradient(#9fb6c8 0%, #d3e0ea 65%, #eef4f8 100%); }
.ebt.is-pause .ebt__sun { opacity: 0; }
.ebt.is-pause .ebt__cloud { background: #eef3f7; }
.ebt.is-pause .ebt__cloud::before, .ebt.is-pause .ebt__cloud::after { background: #eef3f7; }
.ebt.is-pause .ebt__scene-water, .ebt.is-pause .ebt__sw--front { animation-play-state: paused; }
.ebt.is-pause .ebt__sw--back { fill: #d6ecf6; }
.ebt.is-pause .ebt__sw--front { fill: #eaf6fb; }
.ebt.is-pause .ebt__offline-text { background: #5d8fb0; }
.ebt.is-pause .ebt__offline-title { text-shadow: 0 3px 0 #3d6b8a; }

.ebt__snow { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: none; }
.ebt.is-pause .ebt__snow { display: block; }
.ebt__snow i {
	position: absolute;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 4px rgba(255, 255, 255, .9);
	animation-name: ebt-snowfall, ebt-snowsway;
	animation-timing-function: linear, ease-in-out;
	animation-iteration-count: infinite, infinite;
	animation-direction: normal, alternate;
}

/* Boot eingefroren: kein Schaukeln, kühler Farbton, Eisscholle und Schneehaube */
.ebt-boat.is-frozen .ebt-boat__body { animation: none; transform: rotate(-2deg); filter: saturate(.55) brightness(1.08) hue-rotate(-8deg) drop-shadow(0 3px 0 rgba(0, 0, 0, .12)); }
.ebt-boat.is-frozen .ebt-boat__body * { animation-play-state: paused !important; }
.ebt-boat.is-frozen .ebo-float { opacity: 0; }
.ebt-boat.is-frozen .ebt-boat__ripple {
	animation: none;
	border: 0;
	background: #fff;
	opacity: .95;
	box-shadow: inset 0 -4px 0 #cfe6f2;
	height: 22px;
	transform: scaleX(1.15);
	z-index: -1;
}
.ebt-boat.is-frozen .ebt-boat__wake, .ebt-boat.is-frozen .ebt-boat__zzz { display: none; }
.ebt-boat.is-frozen::after {
	/* Schneehaube auf dem Schirm */
	content: "";
	position: absolute;
	left: 30%;
	top: 2px;
	width: 40%;
	height: 16px;
	border-radius: 50% 50% 40% 40% / 90% 90% 30% 30%;
	background: #fff;
	box-shadow: 0 2px 3px rgba(80, 120, 150, .25);
	z-index: 2;
}
.ebt-boat--image.is-frozen::after { left: 27%; top: 4px; width: 44%; height: 14px; }

@keyframes ebt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ebt-sun { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ebt-spin { to { transform: rotate(360deg); } }
@keyframes ebt-cloud { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 300px)); } }
@keyframes ebt-snowfall { from { top: -12px; } to { top: 105%; } }
@keyframes ebt-snowsway { from { translate: -14px 0; } to { translate: 14px 0; } }

@media (max-width: 600px) {
	.ebt.is-card { height: auto; }
	.ebt__scene { height: 230px; }
	.ebt__scene-boat { scale: 1.1; bottom: 28px; }
	.ebt__sun { width: 54px; height: 54px; }
}

/* =========================================================
   Anklingeln
   ========================================================= */
.ebt__btn--ring {
	background: #f6c443;
	color: #5a3a00;
	box-shadow: 0 4px 0 #c0921b;
	font-size: 16px;
	padding: 10px 18px;
}
.ebt__btn--ring:not(.is-off) { animation: ebt-ring-wiggle 4s ease-in-out infinite; }
.ebt__btn--ring.is-off {
	background: #eef0f2;
	color: #6b7177;
	box-shadow: 0 4px 0 #c8ccd0;
	cursor: help;
	animation: none;
}
.ebt__btn--ring.is-off:hover { transform: none; }
.ebt__btn--ring.is-ringing { animation: ebt-ring-shake .9s ease both; }

.ebt__consent {
	position: absolute;
	z-index: 600;
	right: 14px;
	bottom: 150px;
	width: min(340px, calc(100% - 28px));
	padding: 16px 18px;
	border-radius: 20px;
	background: #fff;
	color: var(--ebt-ink);
	box-shadow: 0 6px 0 #c0921b, 0 18px 40px rgba(0, 0, 0, .2);
	animation: ebt-pop .35s cubic-bezier(.2, 1.6, .4, 1) both;
}
.ebt__consent[hidden] { display: none; }
.ebt__consent-title { font-size: 19px; margin-bottom: 6px; color: #b07a00; }
.ebt__consent-text { margin: 0 0 12px; font-family: system-ui, sans-serif; font-size: 13.5px; line-height: 1.45; }
.ebt__consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ebt__btn--yes { background: #f6c443; color: #5a3a00; box-shadow: 0 4px 0 #c0921b; }
.ebt__btn--no { background: #fff; color: #6b7177; box-shadow: 0 4px 0 #c8ccd0; }
.ebt__btn--yes:disabled { opacity: .6; }

.ebt__toast {
	position: absolute;
	z-index: 650;
	left: 50%;
	top: 64px;
	translate: -50% 0;
	max-width: calc(100% - 40px);
	padding: 10px 18px;
	border-radius: 999px;
	background: #2b2b2b;
	color: #fff;
	font-family: system-ui, sans-serif;
	font-size: 14px;
	text-align: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	animation: ebt-pop .35s cubic-bezier(.2, 1.6, .4, 1) both;
}
.ebt__toast.is-good { background: #2ecc71; color: #073b1c; font-family: var(--ebt-font); font-size: 16px; }
.ebt__toast[hidden] { display: none; }

.ebt-burst {
	position: absolute;
	z-index: 640;
	font-size: 24px;
	pointer-events: none;
	animation: ebt-burst 1.4s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes ebt-ring-wiggle {
	0%, 86%, 100% { transform: rotate(0); }
	88% { transform: rotate(-8deg); }
	90% { transform: rotate(8deg); }
	92% { transform: rotate(-6deg); }
	94% { transform: rotate(6deg); }
	96% { transform: rotate(0); }
}
@keyframes ebt-ring-shake {
	0% { transform: scale(1) rotate(0); }
	15% { transform: scale(1.15) rotate(-14deg); }
	30% { transform: scale(1.15) rotate(14deg); }
	45% { transform: scale(1.1) rotate(-10deg); }
	60% { transform: scale(1.05) rotate(8deg); }
	100% { transform: scale(1) rotate(0); }
}
@keyframes ebt-burst {
	0% { transform: translate(-50%, 0) scale(.4); opacity: 0; }
	15% { opacity: 1; }
	100% { transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1.2) rotate(20deg); opacity: 0; }
}


/* =========================================================
   Handy-Ansicht
   Am Desktop schwebt alles einzeln über der Karte (Panel ist "unsichtbar").
   Am Handy liegen Infokarte und Knöpfe sauber gestapelt am unteren Rand.
   ========================================================= */
.ebt__panel { display: contents; }

@media (max-width: 600px) {
	.ebt {
		height: min(80vh, 700px);
		min-height: 520px;
		border-radius: 22px;
		box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--ebt-blue), 0 12px 28px rgba(20, 70, 100, .22);
	}

	/* Zoom per Fingergeste – Knöpfe brauchen am Handy nur Platz */
	.ebt .leaflet-control-zoom { display: none; }
	/* Farbfilter erzeugt auf manchen Handys feine Linien zwischen Kartenkacheln */
	.ebt .leaflet-tile-pane { filter: none; }

	.ebt__status {
		top: 10px;
		left: 10px;
		max-width: calc(100% - 20px);
		padding: 7px 14px 7px 10px;
		font-size: 14px;
	}

	.ebt__panel {
		display: flex;
		flex-direction: column;
		gap: 8px;
		position: absolute;
		left: 10px;
		right: 10px;
		bottom: 30px;
		z-index: 500;
		pointer-events: none; /* Karte bleibt zwischen den Elementen bedienbar */
	}
	.ebt__panel > * { pointer-events: auto; }

	.ebt__card {
		position: static;
		transform: none;
		max-width: none;
		padding: 10px 14px;
		border-radius: 16px;
		box-shadow: 0 4px 0 var(--ebt-blue-dark);
	}
	.ebt__card-title { font-size: 16px; }
	.ebt__card-row { font-size: 13px; }

	.ebt__actions {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.ebt__actions .ebt__btn {
		width: 100%;
		padding: 10px 8px;
		font-size: 15px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.ebt__actions .ebt__btn:hover { transform: none; }
	/* Anklingeln ist die Hauptaktion: eigene, volle Zeile */
	.ebt__btn--ring { grid-column: 1 / -1; font-size: 16px !important; }
	/* Steht nur ein Knopf in der unteren Zeile, nimmt er die volle Breite */
	.ebt__btn--boat[hidden] + .ebt__btn--me,
	.ebt__btn--boat:not([hidden]):has(+ .ebt__btn--me[hidden]) { grid-column: 1 / -1; }

	/* Rückfrage als Blatt von unten über dem Panel */
	.ebt__consent {
		left: 10px;
		right: 10px;
		bottom: 30px;
		width: auto;
		border-radius: 18px;
		z-index: 700;
	}
	.ebt__consent-actions .ebt__btn { flex: 1 1 auto; }

	.ebt__toast { top: 54px; font-size: 13.5px; }

	/* Boot und Besucher etwas kleiner */
	.ebt-boat-icon .ebt-boat { scale: .72; transform-origin: 50% 84%; }
	.ebt-boat-icon .ebt-boat.ebt-boat--image { scale: .62; transform-origin: 50% 89%; }
	.ebt-user { scale: .85; }

	.ebt .leaflet-control-attribution { margin-bottom: 0 !important; font-size: 9px; }
	.ebt__waves { height: 26px; }
}

/* =========================================================
   "Eisboot, wo seid ihr?" (Boot nicht unterwegs)
   ========================================================= */
.ebt__btn--wish {
	background: #fff;
	color: var(--ebt-blue-dark);
	box-shadow: 0 4px 0 #1b5878;
	font-size: 16px;
	padding: 10px 20px;
}
.ebt__btn--wish:not(.is-off) { animation: ebt-ring-wiggle 5s ease-in-out infinite; }
.ebt__btn--wish.is-off { background: #eef0f2; color: #6b7177; box-shadow: 0 4px 0 #c8ccd0; cursor: help; animation: none; }
.ebt__btn--wish.is-off:hover { transform: none; }
.ebt__btn--wish.is-ringing { animation: ebt-ring-shake .9s ease both; }
.ebt__btn--wish[hidden] { display: none; }

/* In der Offline-Szene unter dem Text */
.ebt__offline-text .ebt__btn--wish { margin-top: 14px; }

/* Rückfrage & Hinweis in der Offline-Szene mittig über dem Bild */
.ebt.is-card .ebt__consent {
	left: 50%;
	right: auto;
	top: 50%;
	bottom: auto;
	translate: -50% -50%;
	width: min(360px, calc(100% - 24px));
}
.ebt.is-card .ebt__toast { top: 16px; }

@media (max-width: 600px) {
	.ebt__actions .ebt__btn--wish { grid-column: 1 / -1; font-size: 16px; }
	.ebt__offline-text .ebt__btn--wish { width: 100%; }
	.ebt.is-card .ebt__consent { left: 50%; right: auto; bottom: auto; }
}

/* Ehrlicher Hinweis in der Rückfrage: kein Lieferdienst, nur Stimmungsbild */
.ebt__consent-intro {
	margin: 0 0 8px;
	font-family: system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 600;
	color: #3d3d3d;
}
.ebt__consent-intro + .ebt__consent-text { font-size: 12.5px; color: #6b7177; }

/* =========================================================
   Feinschliff Offline-Szene / Saisonpause
   ========================================================= */
/* Schneehaube als Bogen, der der Schirmwölbung folgt (statt flacher Scheibe) */
.ebt-boat.is-frozen::after {
	background: none;
	border-top: 7px solid #fff;
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	box-shadow: none;
	filter: drop-shadow(0 2px 1px rgba(80, 120, 150, .35));
}
.ebt-boat--image.is-frozen::after { left: 21%; top: 4px; width: 58%; height: 34px; }

@media (max-width: 600px) {
	/* Szene nur so hoch wie ihr Inhalt – kein Leerraum darunter */
	.ebt.is-card { height: auto; min-height: 0; }
	.ebt__scene { height: 210px; }
	.ebt__scene-boat { scale: .92; bottom: 24px; }
	.ebt__cloud { scale: .65; }
	.ebt__cloud--b { scale: .45; }
	.ebt__sun { width: 46px; height: 46px; right: 8%; top: 20px; }
	.ebt__offline-text { padding: 14px 18px 20px; }
	.ebt__offline-title { font-size: 24px; }
	.ebt__offline-msg { font-size: 15px; line-height: 1.45; }
}

/* Gezeichnete Schneehaube (aus dem Schirmumriss berechnet) */
.ebt-snowcap { display: none; }
.ebt-boat.is-frozen .ebt-snowcap { display: inline; }
.ebt-boat.has-snowcap.is-frozen::after { display: none; } /* einfache Ersatz-Haube nicht mehr nötig */
.ebt-boat.is-frozen .ebt-snowcap .ebt-sparkle {
	transform-box: fill-box;
	transform-origin: center;
	animation: ebt-sparkle 2.4s ease-in-out infinite !important;
	animation-play-state: running !important;
}
@keyframes ebt-sparkle {
	0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
	45% { opacity: 1; transform: scale(1) rotate(45deg); }
	60% { opacity: .9; transform: scale(.85) rotate(60deg); }
}

/* =========================================================
   Handy/Tablet: Hinweis „zwei Finger“
   ========================================================= */
.ebt__touch-hint {
	/* Kompaktes Schild oben unter der Statusblase – das Boot (meist in der Mitte) bleibt frei */
	position: absolute;
	left: 50%;
	top: 58px;
	z-index: 800;
	width: max-content;
	max-width: calc(100% - 48px);
	padding: 10px 16px;
	border-radius: 16px;
	background: rgba(20, 50, 70, .82);
	color: #fff;
	font-family: var(--ebt-font);
	font-size: 16px;
	line-height: 1.3;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	translate: -50% 0;
	transition: opacity .25s;
}
.ebt__touch-hint.is-visible { opacity: 1; }

/* Während des Hinweises nur die Kartenkacheln abdunkeln (nicht Boot, Spur, Knöpfe, Infokarte) */
.ebt .leaflet-tile-pane { transition: filter .25s; }
.ebt.is-touch-hint .leaflet-tile-pane { filter: brightness(.55) saturate(.6) !important; }

/* =========================================================
   Knöpfe gegen Theme-Stile absichern
   ---------------------------------------------------------
   Viele Themes (z. B. Hello Elementor) färben JEDEN <button> bei :hover/:focus/:active ein
   (bei Hello: lila-pink #c36, mit Rahmen). Diese Regeln haben eine höhere Spezifität
   („.ebt button.ebt__btn…“) und legen Farben, Rahmen und Schrift für alle Zustände fest.
   ========================================================= */
.ebt button.ebt__btn,
.ebt button.ebt__btn:hover,
.ebt button.ebt__btn:focus,
.ebt button.ebt__btn:active {
	border: 0;
	outline: 0;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.25;
	-webkit-tap-highlight-color: transparent;
	font-family: var(--ebt-font);
}
/* Sichtbarer Fokus nur bei Tastaturbedienung (Barrierefreiheit) */
.ebt button.ebt__btn:focus-visible { outline: 3px solid var(--ebt-blue-dark); outline-offset: 2px; }

/* Standard (rot): „Zum Boot“ */
.ebt button.ebt__btn,
.ebt button.ebt__btn:hover,
.ebt button.ebt__btn:focus,
.ebt button.ebt__btn:active { background: var(--ebt-red); color: #fff; }

/* Weiß/blau: „Wo bin ich? / Zu mir“ und „Eisboot, wo seid ihr?“ */
.ebt button.ebt__btn--me,
.ebt button.ebt__btn--me:hover,
.ebt button.ebt__btn--me:focus,
.ebt button.ebt__btn--me:active,
.ebt button.ebt__btn--wish,
.ebt button.ebt__btn--wish:hover,
.ebt button.ebt__btn--wish:focus,
.ebt button.ebt__btn--wish:active { background: #fff; color: var(--ebt-blue-dark); }

/* Gelb: „Anklingeln“ und „Ja …“ in der Rückfrage */
.ebt button.ebt__btn--ring,
.ebt button.ebt__btn--ring:hover,
.ebt button.ebt__btn--ring:focus,
.ebt button.ebt__btn--ring:active,
.ebt button.ebt__btn--yes,
.ebt button.ebt__btn--yes:hover,
.ebt button.ebt__btn--yes:focus,
.ebt button.ebt__btn--yes:active { background: #f6c443; color: #5a3a00; }

/* Weiß/grau: „Abbrechen“ */
.ebt button.ebt__btn--no,
.ebt button.ebt__btn--no:hover,
.ebt button.ebt__btn--no:focus,
.ebt button.ebt__btn--no:active { background: #fff; color: #6b7177; }

/* Ausgegraut (nicht am See, Standort fehlt, schon geklickt …) */
.ebt button.ebt__btn.is-off,
.ebt button.ebt__btn.is-off:hover,
.ebt button.ebt__btn.is-off:focus,
.ebt button.ebt__btn.is-off:active { background: #eef0f2; color: #6b7177; }

/* Leichtes Aufhellen beim Darüberfahren statt Theme-Farbe */
@media (hover: hover) {
	.ebt button.ebt__btn:not(.is-off):hover { filter: brightness(1.06); }
}

/* =========================================================
   Zustimmung über CCM19: Kasten unsichtbar, bis das Skript nach der Zustimmung lädt.
   Solange zeigt CCM19 direkt dahinter seinen Platzhalter (Selektor .ebt).
   ========================================================= */
.ebt.is-consent-pending { display: none !important; }
