/* Weihnachtsmarkt-Seiten (/<stadt>/weihnachtsmarkt, /weihnachtsmaerkte) — Markup aus lib/xmas-page.js.
   Baut auf css/quarter.css (.qv-*) und css/tipps-route.css (.tr-*) auf und ergänzt nur, was die
   Märkte brauchen. Stil „Tinte & Elfenbein“ (DESIGN.md v2): keine Weihnachtsfarben, keine Kästen,
   Gliederung über Haarlinien; das Segment wie .seg-ink (gewählt = Papier auf Elfenbein, Tinte-Schrift). */

.xm-glance { margin-top: 22px; }
.xm-glance dd { font-variant-numeric: tabular-nums; }
.xm-jump { margin: 12px 0 0; font-size: 14px; }
.xm-jump a { color: var(--qv-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--qv-hair-2); text-underline-offset: 3px; }
.xm-jump a::after { content: '\00a0↓'; color: var(--qv-ink-3); }

/* ── Märkte ──────────────────────────────────────────────────────────── */
.xm-markets { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--qv-hair); }
.xm-market { padding: 18px 0 16px; border-bottom: 1px solid var(--qv-hair); scroll-margin-top: 80px; }
.xm-market h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--qv-ink); margin: 0 0 6px; line-height: 1.3; }
.xm-market > p { font-size: 14.5px; line-height: 1.65; margin: 0 0 10px; }
.xm-no {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 0 0 1.5px var(--qv-ink); color: var(--qv-ink);
  font: 700 11.5px/1 'Inter', sans-serif; font-variant-numeric: tabular-nums;
}
.xm-facts { margin: 0; }
.xm-facts > div { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: 14px; padding: 6px 0; }
.xm-facts dt { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--qv-ink-3); padding-top: 3px; }
.xm-facts dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--qv-ink); }
.xm-last { color: var(--qv-ink-3); }

/* ── Runde: Auswahl ─────────────────────────────────────────────────── */
.xm-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 18px 0 4px; border-radius: 18px; background: var(--qv-ivory-3); }
.xm-seg button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 56px; padding: 10px 8px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  color: var(--qv-ink-2); font: 500 14.5px/1.2 'Inter', sans-serif; text-align: center; -webkit-tap-highlight-color: transparent;
}
.xm-seg button small { font-size: 11.5px; font-weight: 500; color: var(--qv-ink-3); font-variant-numeric: tabular-nums; }
.xm-seg button[aria-selected="true"] {
  background: #fff; color: var(--qv-ink); font-weight: 600;
  box-shadow: 0 1px 2px rgba(27, 28, 26, .08), 0 4px 14px rgba(27, 28, 26, .06);
}
.xm-seg button:focus-visible { outline: 2px solid var(--qv-ink); outline-offset: 2px; }
.xm-panel[hidden] { display: none; }

.xm-stop__place { font-size: 12.5px; color: var(--qv-ink-3); margin: -2px 0 4px; }
.xm-stop__when { font-size: 13px; line-height: 1.5; color: var(--qv-ink); font-weight: 500; margin: 0 0 4px; font-variant-numeric: tabular-nums; }

/* ── So hilft die App ───────────────────────────────────────────────── */
.xm-app { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--qv-hair); }
.xm-app ul { margin: 0; padding-left: 18px; }
.xm-app li { font-size: 14px; line-height: 1.6; margin: 0 0 8px; color: var(--qv-ink-2); }

.xm-tips li p { margin: 0; }

@media (max-width: 400px) {
  .xm-facts > div { grid-template-columns: 1fr; gap: 0; }
  .xm-seg button { font-size: 13.5px; }
}

/* Winterfoto im Steckbrief eines Markts (nur Märkte; Plätze und Sehenswürdigkeiten zeigen ihr Symbol) */
.xm-market__photo { margin: 2px 0 12px; }
.xm-market__photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--qv-ivory-2); }
.xm-market__photo figcaption { margin-top: 6px; font-size: 11.5px; line-height: 1.5; color: var(--qv-ink-3); }
.xm-market__photo figcaption a, .qv-hero figcaption a, .qv-stop__meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--qv-hair-2); text-underline-offset: 2px; }
.xm-market__photo:has(img[hidden]) { display: none; }

/* ── Karte der Runde (Leaflet, CARTO-Kacheln) ──────────────────────────
   Steht sie (.has-lmap), weichen die gezeichnete Linie (SVG) und deren Nennung; die Karte trägt
   ihre eigene: „© OpenStreetMap contributors, © CARTO“ sichtbar (CARTO verlangt es), „Powered by
   Geoapify“ im „i“ (js/config.js). Pins wie in der App (.pin-sym, css/kit.css). */
.xm-lmap { height: 340px; border-radius: 16px; overflow: hidden; background: var(--qv-ivory-2); box-shadow: inset 0 0 0 1px var(--qv-hair); }
@media (min-width: 640px) { .xm-lmap { height: 440px; } }
.xm-lmap[hidden] { display: none; }
.tr-map.has-lmap .tr-map__svg, .tr-map.has-lmap [data-qv-mapcredit] { display: none; }
.xm-lmap .leaflet-control-attribution { font-size: 10px; line-height: 1.45; color: var(--qv-ink-2); background: rgba(250, 249, 245, .88); text-align: right; }
.xm-lmap .leaflet-control-attribution a { color: inherit; }
/* Abstand zur 16-px-Rundung, offen bricht die Zeile rechtsbündig um */
.xm-lmap .leaflet-bottom.leaflet-right { right: 8px; bottom: 4px; left: 18px; display: flex; justify-content: flex-end; }
.xm-lmap .leaflet-control-attribution .mcred__i { width: 16px; height: 16px; margin: -2px 0 0 2px; }
.xm-lmap .leaflet-control-attribution .mcred__i svg { width: 11px; height: 11px; }
.xm-lmap .leaflet-control-attribution .mcred__more { margin-left: 4px; }
.xm-lmap .leaflet-bar a { color: var(--qv-ink); }
.xm-lmap .pin-sym {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--qv-ink); display: grid; place-items: center;
  box-shadow: 0 0 0 1.5px var(--qv-ink), 0 3px 10px rgba(27, 28, 26, .24);
}
.xm-lmap .pin-sym > svg { width: 16px; height: 16px; stroke-width: 1.9; }
.xm-lmap .pin-sym__no {
  position: absolute; top: -6px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--qv-ink); color: #fff; font: 700 9.5px/16px 'Inter', sans-serif; text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #fff;
}
.xm-lmap .pin-sym.is-pause { background: var(--qv-pause-soft); color: var(--qv-pause); box-shadow: 0 0 0 1.5px var(--qv-pause), 0 3px 10px rgba(27, 28, 26, .22); }
.xm-lmap .pin-sym.is-pause .pin-sym__no { background: var(--qv-pause); }
.xm-start { display: block; width: 15px; height: 15px; border-radius: 4px; background: var(--qv-ink); box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(27, 28, 26, .3); }

/* ── Übersicht /weihnachtsmaerkte als Landingpage (templates/xmas-hub.template.html) ───────────
   Oben ein Winterfoto mit Titel und einer Aktion („Stadt wählen“), darunter die Städte als
   Bildkarten (die ganze Karte ist der Link), dann „So funktioniert’s“, Text und Quellen.
   Handy: Titel über dem Foto (Nachtverlauf); ab 900 px Text links, Foto rechts. */
.xmh { flex: 1; width: 100%; padding-bottom: 40px; }
.xmh-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.xmh h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1; letter-spacing: .01em; color: var(--qv-ink); margin: 0; }

.xmh-hero { position: relative; display: grid; background: #15201b; color: #faf9f5; }
.xmh-hero__photo { grid-area: 1 / 1; margin: 0; position: relative; height: min(58svh, 460px); }
.xmh-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; display: block; }
.xmh-hero__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 32, 27, .3) 0%, rgba(21, 32, 27, 0) 22%, rgba(21, 32, 27, 0) 55%, #15201b 100%);
}
.xmh-hero__credit {
  position: absolute; z-index: 2; top: 10px; right: 12px; max-width: 70%;
  font-size: 10.5px; line-height: 1.4; color: rgba(250, 249, 245, .85); text-align: right; text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.xmh-hero__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.xmh-hero__text { grid-area: 2 / 1; position: relative; z-index: 1; margin-top: -72px; padding: 0 20px 30px; max-width: 640px; }
.xmh-hero__crumbs { margin-bottom: 14px; }
.xmh-hero__crumbs, .xmh-hero__crumbs a { color: rgba(250, 249, 245, .72); }
.xmh-hero__crumbs a:hover { color: #faf9f5; }
.xmh-hero__eyebrow { font: 600 11px/1.4 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: rgba(250, 249, 245, .78); margin: 0 0 8px; }
.xmh-hero__title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2.5rem, 10vw, 4.4rem); line-height: .95; letter-spacing: .005em; margin: 0 0 14px; color: #faf9f5; }
.xmh-hero__sub { font-size: 16px; line-height: 1.55; color: rgba(250, 249, 245, .88); margin: 0 0 22px; max-width: 34em; }
.xmh-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: #faf9f5; color: #1b1c1a; font: 600 16px/1 'Inter', sans-serif; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .15s ease;
}
.xmh-btn:hover { transform: translateY(-1px); }
.xmh-btn:focus-visible { outline: 2px solid #faf9f5; outline-offset: 3px; }

@media (min-width: 900px) {
  .xmh-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; background: transparent; color: var(--qv-ink);
    max-width: 1160px; margin: 0 auto; padding: 48px 20px 24px; gap: 48px; }
  .xmh-hero__photo { grid-area: 1 / 2; height: auto; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden;
    box-shadow: 0 18px 50px rgba(27, 28, 26, .18); }
  .xmh-hero__photo::after { background: linear-gradient(180deg, rgba(21, 32, 27, .35) 0%, rgba(21, 32, 27, 0) 28%); }
  .xmh-hero__text { grid-area: 1 / 1; align-self: center; margin-top: 0; padding: 0; }
  .xmh-hero__photo img { object-position: 50% 50%; }
  .xmh-hero__crumbs, .xmh-hero__crumbs a { color: var(--qv-ink-3); }
  .xmh-hero__crumbs a:hover { color: var(--qv-ink); }
  .xmh-hero__eyebrow { color: var(--qv-ink-3); }
  .xmh-hero__title { color: var(--qv-ink); font-size: clamp(3rem, 5vw, 4.6rem); }
  .xmh-hero__sub { color: var(--qv-ink-2); font-size: 17px; }
  .xmh-btn { background: #1b1c1a; color: #fff; box-shadow: none; }
  .xmh-btn:focus-visible { outline-color: #1b1c1a; }
}

/* Städte */
.xmh-cities { padding-top: 36px; scroll-margin-top: 60px; }
.xmh-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.xmh-head p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--qv-ink-3); }
.xmh-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
@media (min-width: 640px) { .xmh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; } }
@media (min-width: 1000px) { .xmh-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.xmh-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 28, 26, .06), 0 8px 24px rgba(27, 28, 26, .08); transition: transform .18s ease, box-shadow .18s ease;
}
.xmh-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(27, 28, 26, .06), 0 14px 34px rgba(27, 28, 26, .14); }
.xmh-card:has(.xmh-card__link:focus-visible) { outline: 2px solid var(--qv-ink); outline-offset: 3px; }
.xmh-card__photo { position: relative; aspect-ratio: 4 / 3; background: #15201b; overflow: hidden; }
.xmh-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.xmh-card:hover .xmh-card__photo img { transform: scale(1.05); }
.xmh-card__photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(21, 32, 27, 0) 45%, rgba(21, 32, 27, .82) 100%); }
.xmh-card__city {
  position: absolute; z-index: 1; left: 12px; right: 10px; bottom: 8px;
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.55rem, 6vw, 1.9rem); line-height: 1; color: #faf9f5; letter-spacing: .01em;
}
.xmh-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.xmh-card__link { font: 600 13px/1.35 'Inter', sans-serif; color: var(--qv-ink); text-decoration: none; font-variant-numeric: tabular-nums; }
/* Ganze Karte klickbar; die Quellenverweise der Termine liegen darüber */
.xmh-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.xmh-card__link:focus-visible { outline: none; }
.xmh-card__dates { margin: 0; font-size: 12px; line-height: 1.45; color: var(--qv-ink-3); font-variant-numeric: tabular-nums; }
.xmh-card__dates .qv-ref { position: relative; z-index: 2; }

/* So funktioniert's */
.xmh-how { padding-top: 48px; }
.xmh-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; border-top: 1px solid var(--qv-hair); }
.xmh-steps li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; align-items: start; column-gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--qv-hair); }
.xmh-steps__no { grid-row: span 2; font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; line-height: .9; color: var(--qv-ink); }
.xmh-steps h3 { font-size: 16px; font-weight: 600; color: var(--qv-ink); margin: 2px 0 4px; }
.xmh-steps p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--qv-ink-2); }
@media (min-width: 900px) {
  .xmh-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 0; }
  .xmh-steps li { border-bottom: 0; border-top: 1px solid var(--qv-ink); padding-top: 18px; }
}

/* Text und Quellen */
.xmh-about { padding-top: 48px; }
.xmh-about .qv-lead { margin-top: 14px; max-width: 680px; }
.xmh .qv-sources { margin-top: 48px; }
.xmh .qv-sources__list, .xmh-photos { max-width: 680px; }
.xmh-photos__title { font: 600 11px/1.4 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--qv-ink-3); margin: 22px 0 8px; }
.xmh-photos { list-style: none; padding: 0; margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--qv-ink-3); }
.xmh-photos a { color: var(--qv-ink-2); text-decoration: underline; text-decoration-color: var(--qv-hair-2); text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .xmh-card, .xmh-card__photo img, .xmh-btn { transition: none; }
  .xmh-card:hover, .xmh-btn:hover { transform: none; }
  .xmh-card:hover .xmh-card__photo img { transform: none; }
}

/* Vorteile, Stubbs im Gespräch, FAQ, eingeklappte Quellen (Übersicht) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.xmh-benefits { padding-top: 52px; }
.xmh-benefits__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; border-top: 1px solid var(--qv-hair); }
.xmh-benefits__list li { padding: 16px 0; border-bottom: 1px solid var(--qv-hair); }
.xmh-benefits__list h3 { font-size: 16px; font-weight: 600; color: var(--qv-ink); margin: 0 0 4px; }
.xmh-benefits__list p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--qv-ink-2); }
@media (min-width: 900px) {
  .xmh-benefits__list { grid-template-columns: repeat(3, 1fr); column-gap: 32px; border-top: 0; }
  .xmh-benefits__list li { border-bottom: 0; border-top: 1px solid var(--qv-ink); padding: 18px 0 22px; }
}

.xmh-chat { padding-top: 48px; }
.xmh-chat__text { max-width: 680px; margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--qv-ink-2); }
.xmh-chat__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .xmh-chat__list { grid-template-columns: repeat(2, 1fr); gap: 18px 32px; } }
.xmh-chat__list li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.xmh-chat__you {
  margin: 0; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #1b1c1a; color: #fff;
  font-size: 15px; line-height: 1.4; max-width: 90%;
}
.xmh-chat__does { margin: 0 0 0 4px; padding-left: 26px; position: relative; font-size: 14px; line-height: 1.55; color: var(--qv-ink-2); }
.xmh-chat__does::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  background: url('/assets/stubbs-hat-256.webp') center / contain no-repeat;
}

.xmh-faq { padding-top: 48px; }
.xmh-faq__list { margin-top: 16px; max-width: 760px; }

.xmh .qv-sources { margin-top: 48px; }
.xmh-src { border-top: 1px solid var(--qv-hair); border-bottom: 1px solid var(--qv-hair); }
.xmh-src > summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 14px 0;
  font: 600 11px/1.4 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--qv-ink-3);
}
.xmh-src > summary::-webkit-details-marker { display: none; }
.xmh-src > summary::after { content: '+'; margin-left: auto; font-size: 16px; letter-spacing: 0; }
.xmh-src[open] > summary::after { content: '–'; }
.xmh-src > summary:focus-visible { outline: 2px solid var(--qv-ink); outline-offset: 2px; }
.xmh-src__n { font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: 12px; }
.xmh-src[open] { padding-bottom: 16px; }

/* 3D-Knopf im ersten Bildschirm (unter der Überschrift); unten in der Runde steht er ein zweites Mal */
.xm-top-cta { margin: 6px 0 24px; }
.xm-top-cta p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--qv-ink-3); text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .xm-top-cta { display: flex; align-items: center; gap: 16px; } .xm-top-cta .qv-btn { flex: none; } .xm-top-cta p { margin: 0; text-align: left; } }
