/* Weihnachtszeit (Josua 29.11.2026). Alles unter html.weihnacht, außer den Farben der Kategorie und den Ständen.
   Rot #b3202c, Tannengrün #1f5e3b, Gold #d4a53a. */
:root { --xmas-red: #b3202c; --xmas-red-deep: #7d1220; --xmas-green: #1f5e3b; --xmas-gold: #d4a53a; }

/* Kategorie Weihnachtsmarkt: Kachel, Chip, Pin */
.c-Weihnachtsmarkt { background: var(--xmas-red); --c: var(--xmas-red); } /* wie die anderen Kategorien (style.css, Palette B) */
.intro-chip.c-Weihnachtsmarkt { --c: var(--xmas-red); background: rgba(255, 255, 255, 0.55); }

/* Schneefall über der Karte, unter Oberleiste und Fenstern */
.xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

/* Marke oben: kleiner goldener Stern */
html.weihnacht .brand h1 span { color: var(--xmas-red); }
html.weihnacht .brand h1::after { content: "✦"; color: var(--xmas-gold); font-size: 0.7em; margin-left: 3px; vertical-align: super; }

/* Einstieg: rote erste Kachel */

html.weihnacht .intro .tile.big.c-Weihnachtsmarkt { background: linear-gradient(135deg, #fff 0%, #fff6ef 100%); border-color: color-mix(in srgb, var(--xmas-red) 35%, transparent); }
html.weihnacht .intro .tile.big.c-Weihnachtsmarkt .tile-ico { background: var(--xmas-red); color: #fff; }
html.weihnacht .intro .tile.big.c-Weihnachtsmarkt b { color: var(--xmas-red-deep); }

/* ===== Richtig weihnachtlich (Josua 29.11.2026: "muss richtig süß werden") ===== */
/* Lichterkette am oberen Rand */
.xmas-lights { position: fixed; z-index: 1150; left: 0; right: 0; top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); height: 26px; display: flex; justify-content: space-around; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='12' viewBox='0 0 68 12'%3E%3Cpath d='M0 2 Q17 11 34 5 T68 2' fill='none' stroke='%232b3a2f' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x 0 0; }
.xmas-lights i { display: block; width: 9px; height: 13px; margin-top: var(--y, 4px); border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; background: var(--c); box-shadow: 0 0 8px 2px color-mix(in srgb, var(--c) 70%, transparent); animation: xmas-twinkle 1.9s ease-in-out var(--d, 0s) infinite alternate; position: relative; }
.xmas-lights i::before { content: ""; position: absolute; left: 2.5px; top: -3px; width: 4px; height: 4px; border-radius: 1px; background: #2b3a2f; }
@keyframes xmas-twinkle { from { opacity: 1; filter: brightness(1.15); } to { opacity: 0.45; filter: brightness(0.8); } }
@media (prefers-reduced-motion: reduce) { .xmas-lights i { animation: none; } }
html.markt-offen .xmas-snow { z-index: 1351; }
/* Lichterkette: über der Oberleiste, unter allen Fenstern; nur über Einstieg und Marktplan liegt sie obenauf */
html.weihnacht:has(#intro:not([hidden])) .xmas-lights { z-index: 1650; }
html.markt-offen .xmas-lights { z-index: 1352; }
html.weihnacht .topbar { padding-top: 22px; } /* Platz für die Lichterkette über dem Suchfeld */

/* Schneehaube: weiße Bögen, die über die obere Kante hängen */
html.weihnacht .intro .tile.big { overflow: visible; }
html.weihnacht .intro .tile.big::before, html.weihnacht .place-staende::before, html.weihnacht .markt-panel::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -5px; height: 13px; pointer-events: none; border-radius: 8px 8px 0 0;
  background: radial-gradient(circle at 50% 0, #fff 0 68%, transparent 70%) 0 4px / 26px 11px repeat-x, linear-gradient(#fff, #fff) 0 0 / 100% 6px no-repeat; filter: drop-shadow(0 1px 1px rgba(60, 80, 110, 0.18)); }
@media (max-width: 760px) {
  html.weihnacht .tabbar::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 9px; pointer-events: none;
    background: radial-gradient(circle at 50% 100%, #fff 0 68%, transparent 70%) 0 0 / 30px 9px repeat-x; filter: drop-shadow(0 -1px 1px rgba(60, 80, 110, 0.12)); }
}

/* Einstieg: warmer Winterhimmel, Zuckerstangen-Rand an der Weihnachtskachel, Hütte im Banner */
html.weihnacht .intro { background: linear-gradient(180deg, #fdf3ee 0%, #f7f5f1 42%, #f1f6f4 100%); }
html.weihnacht .intro .tile.big.c-Weihnachtsmarkt { border: 3px solid transparent; background: linear-gradient(135deg, #fff 0%, #fff4ea 100%) padding-box, repeating-linear-gradient(-45deg, var(--xmas-red) 0 9px, #fff 9px 18px) border-box; box-shadow: 0 10px 26px rgba(179, 32, 44, 0.18); }
html.weihnacht .intro .tile.big.c-Weihnachtsmarkt .tile-ico { border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14), 0 0 0 4px #fff, 0 0 0 6px var(--xmas-gold); animation: xmas-bob 3.2s ease-in-out infinite; }
@keyframes xmas-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-3px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { html.weihnacht .intro .tile.big.c-Weihnachtsmarkt .tile-ico { animation: none; } }

/* Pins der Weihnachtsmärkte: goldener Ring, kleiner Stern */
html.weihnacht .pin.c-Weihnachtsmarkt, html.weihnacht .pin-poi.c-Weihnachtsmarkt { box-shadow: 0 0 0 2px var(--xmas-gold), 0 3px 10px rgba(125, 18, 32, 0.45); }
html.weihnacht .pin-btn.ranked .pin.c-Weihnachtsmarkt::after { content: "✦"; position: absolute; right: -7px; top: -9px; color: var(--xmas-gold); font-size: 13px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }

/* Ortsseite eines Weihnachtsmarkts: die drei besten Stände, Knopf zum Marktplan */
.place-staende { position: relative; display: grid; gap: 10px; padding: 16px 14px 14px; margin: 10px 0 4px; border-radius: 20px; background: linear-gradient(180deg, #fff3ec 0%, #fff 75%); border: 2px solid #f3d3c6; }
.staende-hut { position: absolute; right: 12px; top: -22px; width: 54px; }
.staende-hut svg { width: 54px; height: 60px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.22)); }
.staende-head { display: flex; align-items: center; gap: 8px; padding-right: 64px; }
.staende-head h3 { margin: 0; font-family: var(--display); font-size: 20px; color: var(--xmas-red-deep); }
.staende-flake { color: var(--xmas-gold); font-size: 18px; }
.place-staende > .hint { margin: 0; padding-right: 8px; }
.place-staende > * { min-width: 0; }
.markt-pin { width: 46px; height: 52px; }
.markt-pin:has(.hl) { z-index: 5; }
.staende-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.staende-top li { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.staende-top li b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staende-open.btn.primary { background: var(--xmas-red); border-radius: 999px; padding: 13px 20px; font-size: 16px; box-shadow: 0 6px 16px rgba(179, 32, 44, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.16); }

/* Gemeinsam: Chips, Liste, Rang */
.staende-filter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.staende-filter .chip, .staende-arten .chip { box-shadow: none; background: #fff; border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.staende-filter .chip.on, .staende-arten .chip.on { background: var(--xmas-red); border-color: var(--xmas-red); color: #fff; }
.staende-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.staende-list .stand { display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s; }
.staende-list .stand.erster { background: linear-gradient(90deg, #fff7e0, #fff); border-color: #f0d68a; }
.staende-list .stand.hl { border-color: var(--xmas-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--xmas-gold) 35%, transparent); transform: scale(1.01); }
.staende-list .stand.own { background: #fffaf0; }
.stand-nr { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--xmas-red)); color: #fff; font-size: 12.5px; font-weight: 800; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16); }
.stand.erster .stand-nr { background: var(--xmas-gold); font-size: 15px; }
.stand-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.stand-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stand-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12.5px; }
.stand-meta .link-btn { font-size: 12.5px; padding: 0; min-height: 0; }
.stand-preis { font-weight: 800; color: var(--xmas-red-deep); white-space: nowrap; }
.stand-del { display: none; }
.stand.hl .stand-del { display: inline; }
.markt-form input.markt-preis { font-size: 15px; }
.stand-votes { padding: 0 10px; font-weight: 800; color: var(--muted); }
.staende-list .stand .vote { display: flex; align-items: center; gap: 0; flex: none; min-width: 0; }
.staende-list .stand .vbtn { width: 36px; height: 40px; min-height: 40px; }
.staende-list .stand .vbtn svg { width: 17px; height: 17px; }
.staende-list .stand .vbtn.up.on { color: var(--xmas-red); }
.staende-list .stand .vnum { min-width: 16px; min-height: 0; font-size: 15px; }
.staende-empty { padding: 16px 14px; border-radius: 16px; background: #fff; border: 2px dashed #ecc9bb; color: var(--xmas-red-deep); text-align: center; font-size: 15px; font-weight: 700; }
.staende-arten { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== Marktplan: eigene Karte im Vollbild ===== */
.markt { position: fixed; inset: 0; z-index: 1350; background: #e9e4dc; overflow: hidden; }
.markt .markt-map { position: absolute; inset: 0; } /* stärker als .mapboxgl-map { position: relative } aus dem Karten-CSS, sonst hätte die Karte keine Höhe */
.markt.ohne-karte .markt-map { background: linear-gradient(180deg, #b9d3e6 0%, #e9f1f5 55%, #fff 100%); }
.markt-top { position: absolute; z-index: 3; left: 10px; right: 10px; top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 30px); display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 6px 20px rgba(60, 30, 30, 0.18); border: 2px solid #fff; }
.markt-zu { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--xmas-red); color: #fff; font-size: 26px; line-height: 1; padding: 0 2px 4px 0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.markt-titel { flex: 1 1 auto; min-width: 0; display: grid; text-align: left; border: 0; background: none; padding: 0; color: inherit; }
.markt-titel h2 { margin: 0; font-family: var(--display); font-size: 18px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.markt-titel small { color: var(--muted); font-weight: 700; font-size: 12.5px; line-height: 1.25; }
.markt-titel small.offen { color: var(--xmas-green); }
.markt-titel small.zu { color: var(--xmas-red-deep); }
button.markt-titel h2::after { content: " ›"; color: var(--muted); font-family: var(--body); font-weight: 700; }
.markt-stimme { flex: none; }
.markt-stimme .vote { display: flex; align-items: center; gap: 0; min-width: 0; }
.markt-stimme .vbtn { width: 34px; height: 40px; min-height: 40px; }
.markt-stimme .vbtn svg { width: 18px; height: 18px; }
.markt-stimme .vbtn.up.on { color: var(--xmas-red); }
.markt-stimme .vnum { min-width: 14px; min-height: 0; font-size: 15px; }
.markt-hinweis { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 146px); padding: 6px 12px; border-radius: 999px; background: rgba(17, 17, 17, 0.78); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.markt .mapboxgl-ctrl-top-right, .markt .maplibregl-ctrl-top-right { top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 100px); }

/* Stände als kleine Hütten */
.markt-hut { position: relative; width: 46px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; animation: hut-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) calc(var(--i, 0) * 70ms + 300ms) both; }
.markt-hut svg { display: block; width: 46px; height: 52px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28)); transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1); transform-origin: 50% 100%; }
.markt-hut.erster svg { transform: scale(1.18); }
.markt-hut.hl svg { transform: scale(1.38); }
.markt-hut.hl { z-index: 5; }
.markt-hut-nr { position: absolute; right: -3px; top: -2px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--xmas-red-deep); font-size: 11.5px; font-weight: 900; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.markt-hut.erster .markt-hut-nr { background: var(--xmas-gold); color: #3a2a00; }
.markt-hut.neu svg { animation: hut-wackel 0.9s ease-in-out 2; }
@keyframes hut-pop { from { transform: scale(0) translateY(10px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes hut-wackel { 0%, 100% { rotate: 0deg; } 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
@media (prefers-reduced-motion: reduce) { .markt-hut, .markt-hut.neu svg { animation: none; } }

/* Rangliste unten */
.markt-panel { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 46dvh; display: grid; grid-template-rows: auto auto auto auto 1fr; gap: 8px; padding: 6px 14px calc(14px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  border-radius: 24px 24px 0 0; background: linear-gradient(180deg, #fff6f0 0%, #fff 30%); box-shadow: 0 -8px 30px rgba(60, 30, 30, 0.2); }
.markt-panel .staende-list { overflow-x: hidden; overflow-y: auto; min-height: 0; padding: 2px 2px 4px; overscroll-behavior: contain; }
.markt-panel.klein { max-height: none; }
.markt-panel.klein .staende-list, .markt-panel.klein .staende-filter, .markt-panel.klein .markt-suche { display: none; }
.markt-griff { justify-self: center; width: 64px; height: 22px; border: 0; background: none; padding: 0; position: relative; z-index: 1; }
.markt-griff::after { content: ""; display: block; width: 44px; height: 5px; margin: 8px auto 0; border-radius: 999px; background: #e3cdc2; }
.markt-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.markt-panel-head h3 { margin: 0; font-family: var(--display); font-size: 19px; color: var(--xmas-red-deep); white-space: nowrap; }
.markt-add.btn.primary { flex: none; background: var(--xmas-red); border-radius: 999px; padding: 10px 16px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16); }

/* Stand eintragen: Hütte in der Mitte, Karte darunter schieben */
.markt-mitte { position: absolute; z-index: 2; left: 50%; top: calc(96px + (100% - 246px) / 2); width: 60px; transform: translate(-50%, -100%); pointer-events: none; }
.markt-mitte svg { display: block; width: 60px; height: 68px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.3)); transform-origin: 50% 100%; animation: hut-huepf 1.4s ease-in-out infinite; }
@keyframes hut-huepf { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .markt-mitte svg { animation: none; } }
.markt-setzen, .markt-form { position: absolute; z-index: 4; left: 10px; right: 10px; bottom: calc(10px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); max-width: 540px; margin: 0 auto; display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: #fff; border: 2px solid #f3d3c6; box-shadow: 0 10px 30px rgba(60, 30, 30, 0.25); }
.markt-setzen b { font-size: 15px; }
.markt-form h3 { margin: 0; font-family: var(--display); font-size: 20px; color: var(--xmas-red-deep); }
.markt-form input[type="text"] { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); }
.markt-form input[type="text"]:focus { border-color: var(--xmas-red); outline: none; }
.markt .row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.markt .row-btns .btn { border-radius: 999px; }
.markt .row-btns .btn.primary { background: var(--xmas-red); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16); }
html.markt-offen .tabbar { display: none; }

/* Fehlenden Markt eintragen */
.markt-fehlt { list-style: none; padding: 14px 8px 6px; text-align: center; }
.markt-fehlt .link-btn { color: var(--xmas-red-deep); font-weight: 800; }
.markt-neu .markt-mitte { top: calc(96px + (100% - 246px) / 2); }

/* Tastatur offen (body.kb, app.js): Formulare nach oben, sonst liegen sie auf dem iPhone hinter der Tastatur */
body.kb .markt-form { bottom: auto; top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 112px); }
body.kb .markt-panel:not(:focus-within) { display: none; } /* beim Tippen in "Im Markt suchen" bleibt das Panel stehen */

/* Eine Zeile unter dem Kopf nach einer Stimme (teilen oder Top 10 Restaurants) */
.markt-anstoss { position: absolute; z-index: 3; left: 10px; right: 10px; top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 112px); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; background: #fff; border: 2px solid #f3d3c6; box-shadow: 0 6px 18px rgba(60, 30, 30, 0.18); font-size: 13.5px; font-weight: 700; animation: anstoss-rein 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); }
.markt-anstoss span { flex: 1 1 auto; min-width: 0; }
.markt-anstoss-btn { flex: none; max-width: 58%; border: 0; border-radius: 999px; padding: 9px 14px; background: var(--xmas-red); color: #fff; font-weight: 800; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.markt-anstoss-zu { flex: none; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 15px; }
@keyframes anstoss-rein { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .markt-anstoss { animation: none; } }
body.kb .markt-anstoss { display: none; }

/* ===== Die ganze App weihnachtlich (Josua 29.11.2026: "es soll einfach alles weihnachtlich erscheinen ... alles stimmig ...
   vollumfänglich"). Nur in der Saison (html.weihnacht), danach wieder das normale Design. Lädt nach design.css. ===== */
html.weihnacht {
  --brand: #1f5e3b; --brand-soft: #e6f0e8;           /* Tannengrün statt Petrol */
  --hot: #b3202c; --hot-soft: #fbe7e4; --hot-ink: #8c1622;
  --bg: #f8f3ec; --fill: #f4ece2; --line: #ecdfd0;   /* warmes Winterweiß */
  --so-hoch: #1f5e3b; --so-runter: #b3202c;          /* Pfeile: hoch grün, runter rot */
  --xmas-snow-cap: radial-gradient(circle at 50% 0, #fff 0 68%, transparent 70%);
  --xmas-flakes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120' viewBox='0 0 220 120'%3E%3Cg fill='none' stroke='%23b3202c' stroke-width='1.3' stroke-linecap='round' opacity='.13'%3E%3Cpath d='M30 14v20M21 19l18 10M21 29l18-10'/%3E%3Cpath d='M120 40v14M114 43l12 8M114 51l12-8'/%3E%3Cpath d='M190 12v24M180 18l20 12M180 30l20-12'/%3E%3Cpath d='M70 78v12M65 81l10 6M65 87l10-6'/%3E%3Cpath d='M160 86v18M152 91l16 8M152 99l16-8'/%3E%3C/g%3E%3Cg fill='%23d4a53a' opacity='.35'%3E%3Ccircle cx='88' cy='22' r='1.6'/%3E%3Ccircle cx='205' cy='70' r='1.4'/%3E%3Ccircle cx='14' cy='96' r='1.4'/%3E%3Ccircle cx='132' cy='104' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}
html.weihnacht body { background: var(--bg); }

/* Suche und Filterzeile */
html.weihnacht .search input { border-color: #ead7c4; }
html.weihnacht .search input:focus-visible, html.weihnacht .topbar.suche-vorschlag #search { box-shadow: 0 0 0 2px var(--xmas-red), var(--float); }
html.weihnacht .chip { border-color: #ecdccb; }
html.weihnacht .chip[aria-pressed="true"], html.weihnacht .chip.chip-gewaehlt { background: var(--xmas-red); border-color: var(--xmas-red); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 2px 5px rgba(125, 18, 32, 0.25); }
/* Die Filterzeile schneidet ab, was über ihren Rand ragt (overflow-x): Schatten bleiben innen bzw. knapp nach unten, etwas mehr Luft (29.11.2026, Josua: "oben abgeschnitten") */
html.weihnacht #cats { padding-block: 4px 7px; }
html.weihnacht .chip[aria-pressed="true"] .dot { background: #fff; box-shadow: none; }

/* Leiste unten: rot für den aktiven Reiter, Geheimtipp-Knopf tannengrün mit Goldring */
html.weihnacht .tabbar { background: #fffdf9; border-top-color: #ecdfd0; }
html.weihnacht .tabbar button[aria-current="page"], html.weihnacht .tabbar .tab-add[aria-current="page"] span { color: var(--xmas-red); }
html.weihnacht .tabbar .tab-add i { background: var(--xmas-green); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--xmas-gold), 0 5px 14px rgba(31, 94, 59, 0.35); }
html.weihnacht .tabbar .tab-add[aria-current="page"] i { background: var(--xmas-red); }

/* Karten-Leiste unten: Schneehaube auf jeder Karte, die aktive mit Goldrand */
html.weihnacht .strip-card { position: relative; }
html.weihnacht .strip-card::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 8px; pointer-events: none; background: var(--xmas-snow-cap) 0 0 / 16px 8px repeat-x; filter: drop-shadow(0 1px 1px rgba(60, 80, 110, 0.18)); }
html.weihnacht body:not(.secret-mode) .strip-card.active { box-shadow: 0 0 0 2.5px var(--xmas-gold), 0 12px 26px -8px rgba(125, 18, 32, 0.5); }
html.weihnacht body:not(.secret-mode) .strip-card.active .strip-num { background: var(--xmas-red); }
html.weihnacht body:not(.secret-mode) .strip-pos { color: var(--xmas-red-deep); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--xmas-gold) 60%, transparent), 0 2px 10px rgba(0, 0, 0, 0.14); }

/* Alle Fenster (Top 10, Ortsseite, Profil ...): Zuckerstangen-Kante oben, Schneeflocken im Kopf, warmes Weiß */
html.weihnacht body:not(.secret-mode) .sheet { background: var(--xmas-flakes) 0 12px / 220px 120px repeat-x, #fdf6ef; }
html.weihnacht body:not(.secret-mode) .sheet-head h2 { color: #2a0d10; }
html.weihnacht body:not(.secret-mode) .wo-ober { color: var(--xmas-red); }
html.weihnacht body:not(.secret-mode) .wo-ober::before { content: "✦ "; color: var(--xmas-gold); }
html.weihnacht .sheet .chip[aria-pressed="true"] { box-shadow: none; }

/* Top-10-Liste: Platz 1 in Weinrot mit Goldrand, Plätze 2 und 3 mit roter Zahl, Linien warm */
html.weihnacht body:not(.secret-mode) #list.treppe .item.stufe-held { background: linear-gradient(140deg, #7d1220 0%, #b3202c 62%, #8c1622 100%); box-shadow: 0 0 0 2.5px var(--xmas-gold), 0 10px 26px rgba(125, 18, 32, 0.32); }
html.weihnacht body:not(.secret-mode) #list.treppe .stufe-held:not(.ohne)::after { background: linear-gradient(to top, rgba(90, 10, 22, 0.88) 0%, rgba(90, 10, 22, 0.32) 46%, rgba(90, 10, 22, 0) 72%); }
html.weihnacht body:not(.secret-mode) #list.treppe .item.stufe-held::before { content: ""; position: absolute; z-index: 4; left: 16px; right: 16px; top: 0; height: 9px; pointer-events: none; background: var(--xmas-snow-cap) 0 0 / 20px 9px repeat-x; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)); }
html.weihnacht body:not(.secret-mode) #list.treppe .stufe-2 .stufe-platz, html.weihnacht body:not(.secret-mode) #list.treppe .stufe-3 .stufe-platz { color: var(--xmas-red); }
html.weihnacht body:not(.secret-mode) #list.treppe .item.stufe-2, html.weihnacht body:not(.secret-mode) #list.treppe .item.stufe-3, html.weihnacht body:not(.secret-mode) #list .item { border-color: #efe2d4; }
html.weihnacht #list .item.tap:active:not(:has(.vbtn:active)) { background: #fbefe6; }

/* Ortsseite: Schnee am unteren Rand des Fotos, Überschriften mit goldenem Stern, Score-Kasten warm */
html.weihnacht .detail-hero { position: relative; }
html.weihnacht .detail-hero::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; height: 11px; pointer-events: none; background: radial-gradient(circle at 50% 100%, #fdf6ef 0 68%, transparent 70%) 0 0 / 22px 11px repeat-x; }
html.weihnacht #detail-body section > h3::after, html.weihnacht .place-tips .tips-kopf h3::after { content: " ✦"; color: var(--xmas-gold); font-size: 0.7em; vertical-align: super; }
html.weihnacht .place-score, html.weihnacht .place-score-big { background: linear-gradient(90deg, #fff7ec, #fff); box-shadow: inset 0 0 0 1.5px #efd9b8; }
html.weihnacht .place-tips .comments li, html.weihnacht .place-tips .comments .tip-item { border-color: #efe2d4; }

/* Knöpfe und Hinweise */
html.weihnacht .btn.primary { background: var(--xmas-red); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16); }
html.weihnacht .btn.primary:disabled { background: #c9a7a9; }
html.weihnacht .toast { background: var(--xmas-green); box-shadow: 0 0 0 2px var(--xmas-gold), 0 8px 22px rgba(0, 0, 0, 0.25); }
html.weihnacht .link-btn { color: var(--xmas-red-deep); }
html.weihnacht .locate-btn, html.weihnacht .ideas-btn { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px color-mix(in srgb, var(--xmas-gold) 70%, transparent), var(--float); }

/* Fensterkopf: beim Scrollen festes warmes Weiß mit Flocken, ohne zweite Zuckerstangen-Kante (die gehört nur an den oberen Rand) */
html.weihnacht body:not(.secret-mode) .sheet .sheet-head { background: repeating-linear-gradient(-45deg, var(--xmas-red) 0 8px, #fff 8px 16px) 0 0 / 100% 5px no-repeat, var(--xmas-flakes) 0 12px / 220px 120px repeat-x, #fdf6ef; }
html.weihnacht body:not(.secret-mode) .detail-hero:not([hidden]) + .sheet-head { background: #fdf6ef; } /* unter dem Foto: ruhig, der Schnee am Foto reicht */

/* Dunkle Knöpfe werden tannengrün (rot bleibt Abstimmen, Kategorie und Hauptknopf), damit nichts mehr schwarz heraussticht */
html.weihnacht body:not(.secret-mode) :is(.fehlt-knopf.voll, .tb-go, .qa.qa-main, .lust-ok, .ein-next, .ob-next, .more-btn, .empty-new .btn, .popup button, .segmented button[aria-pressed="true"], .rate-btn[aria-expanded="true"]) { background: var(--xmas-green); border-color: var(--xmas-green); color: #fff; }
html.weihnacht body:not(.secret-mode) :is(.ein-bar i.done, .ein-bar i.on::after, .ob-filter span.ob-f-on) { background: var(--xmas-red); }
html.weihnacht body:not(.secret-mode) .pic-rank { background: var(--xmas-red); }
html.weihnacht body:not(.secret-mode) .item:nth-child(1) .pic-rank { background: var(--xmas-gold); color: #3a2604; }
html.weihnacht body:not(.secret-mode) #list.treppe .item.stufe-held:active:not(:has(.vbtn:active)) { background: linear-gradient(140deg, #7d1220 0%, #b3202c 62%, #8c1622 100%); }
html.weihnacht body:not(.secret-mode) .suche-hinweis, html.weihnacht body:not(.secret-mode) .liste-hinweis { background: var(--xmas-green); }
html.weihnacht .trip-num { background: var(--xmas-red); }
html.weihnacht body:not(.secret-mode) #sheet .chip[aria-pressed="true"], html.weihnacht body:not(.secret-mode) #sheet .filter-zeile .chip[aria-pressed="true"] { background: var(--xmas-red); border-color: var(--xmas-red); color: #fff; }
html.weihnacht body:not(.secret-mode) #sheet .chip { border-color: #ecdccb; }

/* Weihnachtsgruß beim ersten Start der Saison */
.xmas-gruss { position: fixed; inset: 0; z-index: 1900; display: grid; place-items: center; padding: 24px; background: rgba(40, 8, 14, 0.45); opacity: 0; transition: opacity 0.25s; }
.xmas-gruss.an { opacity: 1; }
.xmas-gruss-karte { position: relative; width: min(100%, 360px); padding: 34px 24px 22px; border-radius: 26px; text-align: center; color: #2a0d10;
  background: var(--xmas-flakes, none) 0 40px / 220px 120px repeat-x, linear-gradient(180deg, #fff 0%, #fdf1ea 100%);
  box-shadow: 0 0 0 3px var(--xmas-gold), 0 24px 60px rgba(60, 8, 16, 0.45); transform: translateY(16px) scale(0.96); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.xmas-gruss.an .xmas-gruss-karte { transform: none; }
.xmas-gruss-karte::before { content: ""; position: absolute; left: 18px; right: 18px; top: -6px; height: 14px; pointer-events: none; border-radius: 10px 10px 0 0;
  background: radial-gradient(circle at 50% 0, #fff 0 68%, transparent 70%) 0 4px / 26px 11px repeat-x, linear-gradient(#fff, #fff) 0 0 / 100% 6px no-repeat; filter: drop-shadow(0 1px 1px rgba(60, 80, 110, 0.2)); }
.xmas-gruss-karte::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; border-radius: 0 0 26px 26px; background: repeating-linear-gradient(-45deg, var(--xmas-red) 0 9px, #fff 9px 18px); }
.xmas-gruss-baum { width: 84px; height: 84px; margin: -76px auto 10px; display: grid; place-items: center; font-size: 48px; border-radius: 50%; background: var(--xmas-red); box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--xmas-gold), 0 10px 24px rgba(125, 18, 32, 0.4); animation: xmas-bob 3.2s ease-in-out infinite; }
.xmas-gruss h2 { margin: 0 0 8px; font-family: var(--display); font-size: 27px; line-height: 1.1; color: var(--xmas-red-deep); }
.xmas-gruss p { margin: 0 0 20px; font-size: 16px; line-height: 1.45; color: #4a2a2d; }
.xmas-gruss-los { width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: var(--xmas-red); color: #fff; font-size: 17px; font-weight: 800; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 8px 18px rgba(179, 32, 44, 0.35); margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .xmas-gruss-baum { animation: none; } .xmas-gruss, .xmas-gruss-karte { transition: none; } }

/* Startbild in der Weihnachtszeit (Josua 29.11.2026: "am Anfang ... dieses Fernia ... so eine Weihnachtsmütze"): weinroter Himmel,
   Schnee, Mütze auf dem Fernia-Pin, "Frohe Weihnachten" unter dem Namen. Klasse xmas-zeit setzt i18n.js nach Gerätedatum. */
html.xmas-zeit #splash { background: radial-gradient(circle at 50% 38%, #c8323d 0%, #9b1726 45%, #6a0e1b 100%); overflow: hidden; }
html.xmas-zeit #splash::before { content: ""; position: absolute; inset: -60px 0 0; pointer-events: none; opacity: 0.85;
  background: radial-gradient(circle, #fff 0 1.6px, transparent 2.2px) 0 0 / 46px 46px, radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1.1px, transparent 1.7px) 23px 17px / 37px 37px, radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 2.4px, transparent 3px) 9px 30px / 71px 71px;
  animation: xmas-splash-schnee 6s linear infinite; }
@keyframes xmas-splash-schnee { to { transform: translateY(60px); } }
html.xmas-zeit .splash-pin path:last-child { stroke: #9b1726; }
html.xmas-zeit .splash-mark::after { content: ""; position: absolute; z-index: 2; left: 17px; top: -31px; width: 58px; height: 48px; transform-origin: 30% 90%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 48'%3E%3Cpath d='M6 36 C10 20 20 8 34 6 C42 5 49 9 52 17 C47 14 42 14 39 18 C36 24 40 30 44 36 Z' fill='%23d8222f'/%3E%3Cpath d='M6 36 C10 20 20 8 34 6 C36 6 38 6 40 7 C27 11 18 22 15 36 Z' fill='%23a3121f' opacity='.55'/%3E%3Crect x='1' y='33' width='47' height='12' rx='6' fill='%23fff'/%3E%3Ccircle cx='51' cy='20' r='6.5' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25)); animation: xmas-muetze 1s cubic-bezier(0.22, 1.3, 0.36, 1) 0.75s both; }
@keyframes xmas-muetze { 0% { transform: translateY(-46px) rotate(-30deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: rotate(14deg); opacity: 1; } }
html.xmas-zeit .splash-inner::after { content: "✦ Frohe Weihnachten ✦"; margin-top: 14px; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; color: #f6d58a; animation: splash-fade 0.8s ease-out 1.6s both; }
html.xmas-zeit[lang="en"] .splash-inner::after { content: "✦ Merry Christmas ✦"; }
@media (prefers-reduced-motion: reduce) { html.xmas-zeit #splash::before, html.xmas-zeit .splash-mark::after { animation: none; } }

/* Start-Stände aus offiziellen Budenplänen (29.11.2026): Lage aus dem Plan, Hinweis Fernia-Team wie bei den Start-Tipps */
.stand-lage { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.stand-team { color: var(--xmas-green); font-weight: 700; }

/* Marktplan wie die Google-Maps-App (30.11.2026): Suche im Markt, roter Pin für den gewählten Stand, blauer Punkt "Du bist hier" */
.markt-suche { display: block; width: 100%; margin: 0; padding: 11px 16px 11px 40px; border: 0; border-radius: 999px; background: #f1ece4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5a4a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center / 18px no-repeat; font: inherit; font-size: 15px; color: var(--ink, #2a1a12); box-sizing: border-box; }
.markt-suche::placeholder { color: #8a7a6a; }
.markt-wahl { position: relative; width: 36px; height: 48px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); pointer-events: none; }
.markt-wahl svg { width: 36px; height: 48px; display: block; }
.markt-wahl span { position: absolute; left: 0; right: 0; top: 7px; text-align: center; font-size: 15px; line-height: 20px; }
.markt-ich { width: 16px; height: 16px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 10px rgba(26, 115, 232, 0.18), 0 1px 4px rgba(0,0,0,.35); }

/* ---------- Marktplan in Fernia-Aufmachung (30.11.2026): Wisch-Karten, grüner Knopf zur Liste, Pins mit Krone, Stand-Seite ---------- */
.markt .markt-strip { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(14px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); }
.markt-strip, .markt-liste-knopf { transition: opacity 0.2s; }
.markt.liste-offen .markt-strip, .markt.liste-offen .markt-liste-knopf, .markt.seite-offen .markt-strip, .markt.seite-offen .markt-liste-knopf,
.markt.setzt .markt-strip, .markt.setzt .markt-liste-knopf { opacity: 0; pointer-events: none; }
.markt-ph { background: var(--c, #b3202c); color: #fff; font-size: 30px; }
.markt-cam { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.88); color: #6b5a4a; font-size: 11px; font-weight: 700; }
.markt .strip-card.markt-neu { flex-basis: 110px; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 10px; background: #fffaf2; color: var(--xmas-red-deep, #8a1424); font-weight: 800; font-size: 13px; }
.markt .strip-card.markt-neu b { font-size: 24px; line-height: 1; }
.markt-liste-knopf { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: calc(var(--markt-strip-h, 150px) + 22px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px; background: #1f6b3e; color: #fff; font: 800 14.5px var(--display); white-space: nowrap;
  box-shadow: 0 0 0 1.5px #d4a53b, 0 4px 14px rgba(0, 0, 0, 0.25); cursor: pointer; }
.markt-liste-knopf .pfeil { font-size: 18px; line-height: 1; }
/* Liste als Fenster, das hochfährt und sich wieder wegwischen lässt */
.markt .markt-panel { max-height: 74dvh; transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1); }
.markt .markt-panel.zu { transform: translateY(calc(100% + 40px)); pointer-events: none; }
.markt-panel .stand.erster { background: linear-gradient(160deg, #a3192a, #7d1220); color: #fff; box-shadow: 0 0 0 2px #d4a53b; }
.markt-panel .stand.erster .stand-name, .markt-panel .stand.erster .stand-meta, .markt-panel .stand.erster .stand-meta span { color: #fff; }
.markt-panel .stand.erster .stand-name { font-size: 17px; }
/* Pins wie auf der Fernia-Karte: roter Kreis mit Platz, Top 3 mit Goldrand und Krone, gewählter größer */
.markt-nr { position: relative; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 2.5px solid #fff; border-radius: 50%; background: #b3202c; color: #fff;
  font: 800 13px var(--display); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); cursor: pointer; transition: transform 0.15s ease-out, background-color 0.15s; }
.markt-nr.top { width: 34px; height: 34px; font-size: 15px; box-shadow: 0 0 0 2px #d4a53b, 0 3px 8px rgba(0, 0, 0, 0.35); }
.markt-krone { position: absolute; top: -14px; left: 50%; width: 22px; transform: translateX(-50%); fill: #e2b23d; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)); }
.markt-nr.hl { transform: scale(1.32); background: #7d1220; }
.mapboxgl-marker:has(.markt-nr.hl) { z-index: 10; }
.markt-weit .markt-nr.rest { display: none; } /* von weiter weg nur die Top 10 */
/* Eigene Seite je Stand */
.markt-seite { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #fffaf2; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.25); padding: 6px 16px calc(18px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  animation: markt-seite-auf 0.34s cubic-bezier(0.2, 0.8, 0.2, 1); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.markt-seite[hidden] { display: none; }
@keyframes markt-seite-auf { from { transform: translateY(100%); } to { transform: none; } }
.markt-seite .markt-griff { display: block; margin: 2px auto 0; }
.seite-zu { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1ece4; color: #4a3a2a; font-size: 15px; cursor: pointer; }
.seite-bilder { display: flex; gap: 8px; margin: 12px -16px 14px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.seite-bilder::-webkit-scrollbar { display: none; }
.seite-bild { position: relative; flex: 0 0 80%; height: 210px; margin: 0; overflow: hidden; border-radius: 16px; background: #eee6da; scroll-snap-align: center; }
.seite-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.seite-bild-knopf { position: absolute; right: 8px; bottom: 8px; padding: 5px 11px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 12px system-ui, sans-serif; }
.seite-neu { flex-basis: 46%; display: grid; place-content: center; justify-items: center; gap: 6px; border: 2px dashed color-mix(in srgb, var(--c, #b3202c) 55%, #fff);
  background: color-mix(in srgb, var(--c, #b3202c) 12%, #fffaf2); color: var(--c, #b3202c); font: 700 14px var(--body, system-ui); cursor: pointer; }
.seite-neu.allein { flex-basis: 100%; height: 170px; }
.seite-neu-sym { font-size: 42px; line-height: 1; }
.seite-kopf { display: flex; align-items: center; gap: 10px; padding-right: 40px; }
.seite-kopf h3 { margin: 0; font: 800 21px/1.2 var(--display); color: var(--ink, #2a1a12); }
.seite-rang { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #b3202c; color: #fff; font: 800 15px var(--display); }
.seite-rang.top-1 { background: #e5a800; } .seite-rang.top-2 { background: #8a949e; } .seite-rang.top-3 { background: #b87333; }
.seite-zeile { margin: 6px 0 0; color: #6b5a4a; font-weight: 600; }
.seite-lage, .seite-quelle { margin: 4px 0 0; color: #8a7a6a; font-size: 13.5px; }
.seite-stimme { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #f6efe4; font-weight: 700; color: #3a2a1a; }
.seite-aktionen { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .markt-seite { animation: none; } .markt .markt-panel { transition: none; } }

/* Feinschliff nach dem Durchklicken (30.11.2026) */
.markt .strip-card .markt-cam { left: auto; right: 6px; width: auto; max-width: none; background: rgba(255, 255, 255, 0.9); color: #6b5a4a; font-size: 10.5px; padding: 2px 7px; }
.markt .strip-card .markt-ph { font-size: 32px; }
.markt-panel .stand { min-width: 0; }
.markt-panel .stand-main { min-width: 0; flex: 1 1 auto; }
.markt-panel .stand-meta { min-width: 0; }
.markt-panel .stand-lage { flex: 1 1 100%; }
.markt-panel .stand > .vote { flex: none; }
.seite-stimme .vote { display: grid; grid-auto-flow: row; gap: 2px; min-width: 46px; padding: 4px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.seite-stimme .vote .vbtn { width: 36px; height: 36px; min-height: 36px; }
.seite-stimme { padding: 10px 12px 10px 16px; }
