/* ============================================================================
   vissi CD · generierte Seiten (/galerie, /<stadt>, /galerien, /walk).
   Schwarzweiß, Haarlinien, Bilder und Flächen mit scharfen Ecken, Knöpfe als
   Kapsel. Rot (--dot) nur als Punkt: im Zeichen, vor „vissi picks“, unter dem
   aktiven Tab. Kein Glas, keine Schatten, keine Verläufe. Tokens in base.css.
   ========================================================================== */
:root { --maxw: 960px; --pill: 999px; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.mono, .dist { font-family: var(--mono); }
.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; }

/* Roter Punkt (vissi picks, aktiver Tab). */
.rdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex: none; }

/* ── de / en ───────────────────────────────────────────────────────────── */
.i18n > .en { display: none; }
html.en .i18n > .de { display: none; }
html.en .i18n > .en { display: inline; }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch button { background: none; border: none; font-family: var(--mono); font-size: 12px; color: var(--ink-2); cursor: pointer; padding: 10px 2px; }
.lang-switch button:hover, .lang-switch button.active { color: var(--ink); }
.lang-switch .sep { color: var(--line); font-size: 12px; }

/* ── Kopf ──────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-family: var(--mono); font-weight: 700; font-size: 19px; letter-spacing: -0.05em; } /* Wortmarke wie in der App: Martian Mono Bold, Laufweite -5 % */
.brand-mark { width: 24px; height: 24px; flex: none; }
.header-right { display: flex; align-items: center; gap: 16px; justify-self: end; }
.city-select { font-size: 15px; font-weight: 500; white-space: nowrap; }
.city-select:hover { color: var(--ink-2); }
.site-header .nav-app { justify-self: center; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; padding: 8px 16px; border-radius: var(--pill); white-space: nowrap; }
.site-header .nav-app:hover { background: #2a2a2a; }

/* ── Grundlayout ───────────────────────────────────────────────────────── */
.site-main { flex: 1; width: 100%; }
.detail { max-width: 760px; margin: 0 auto; padding: 20px 20px 72px; }
.crumbs { max-width: 760px; margin: 0 auto; padding: 18px 20px 0; font-size: 13px; color: var(--ink-2); }
.crumbs .sep { margin: 0 8px; color: var(--line); }
.crumbs a:hover { color: var(--ink); }

/* ── Bilder ────────────────────────────────────────────────────────────── */
.hero { position: relative; margin-bottom: 28px; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; background: var(--fill); }
.carousel::-webkit-scrollbar { display: none; }
.carousel img { flex: 0 0 100%; width: 100%; height: clamp(260px, 56vw, 520px); object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; }
.hero-dots, .pc-dots { display: flex; align-items: center; gap: 6px; }
.hero-dots { margin-top: 12px; }
.pc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.pc-dot.on { background: var(--ink); }
.hero-empty { height: clamp(200px, 40vw, 320px); background: var(--fill); }

/* ── Kopf einer Detailseite ────────────────────────────────────────────── */
.detail-head { margin-bottom: 28px; }
.detail-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.detail-head h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 600; letter-spacing: -0.025em; }
.detail-artist { font-size: 20px; font-weight: 500; line-height: 1.3; margin-top: 8px; }
.detail-sub { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-top: 12px; }

/* ── Status: gefüllter Punkt = offen / Ereignis, grauer Ring = zu ───────── */
.status-pill { display: inline-flex; align-items: center; gap: 7px; flex: none; font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-2); }
.status-pill.open, .status-pill.event { color: var(--ink); }
.status-pill.open .dot, .status-pill.event .dot { background: var(--ink); border-color: var(--ink); }

.chip { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.chip.now { color: var(--ink); }

/* ── Aktuelle Ausstellung ──────────────────────────────────────────────── */
.show { border-top: 1px solid var(--line); padding: 24px 0 28px; }
.show-label, .info-k, .sc-label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.show-title { font-size: 26px; font-weight: 600; margin-top: 10px; }
.show-artist { font-size: 18px; font-weight: 500; margin-top: 4px; }
.show-dates { font-family: var(--mono); font-size: 13px; margin-top: 12px; }
.show-vern { font-family: var(--mono); font-size: 13px; margin-top: 6px; }
.more-link { display: inline-block; margin-top: 18px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.more-link:hover { color: var(--ink-2); }

/* ── Text ──────────────────────────────────────────────────────────────── */
.prose { margin-top: 18px; max-width: 64ch; }
.prose p { margin-bottom: 14px; line-height: 1.6; }
.prose p:last-child { margin-bottom: 0; }
.prose-section, .exh-list, .related { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; margin-bottom: 36px; }
.prose-section h2, .exh-list h2, .related h2 { font-size: 20px; margin-bottom: 14px; }

/* ── Angaben ───────────────────────────────────────────────────────────── */
.info-card { border-top: 1px solid var(--line); padding: 8px 0 28px; }
.info-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.info-k { flex: 0 0 120px; }
.info-v { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.info-v a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.info-v a:hover { text-decoration-color: var(--ink); }
.hours { padding-top: 18px; }
.hours .info-k { margin-bottom: 8px; }
.hours table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.hours th { text-align: left; font-weight: 400; padding: 5px 0; }
.hours td { text-align: right; padding: 5px 0; }
.hours tr.closed th, .hours tr.closed td { color: var(--ink-2); }
.hours-appt { font-family: var(--mono); font-size: 13px; }

/* ── Ausstellungsliste ─────────────────────────────────────────────────── */
.exli { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
a.exli:hover .exli-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.exli-title { font-weight: 500; display: block; }
.exli-artist { color: var(--ink-2); font-size: 15px; }
.exli-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.exli-range { font-family: var(--mono); color: var(--ink-2); font-size: 12px; white-space: nowrap; }

/* ── Karten (weitere Galerien) ─────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
.gcard { display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 3; background: var(--fill); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.gcard:hover .card-img img { opacity: 0.88; }
.card-body { padding-top: 12px; }
.card-artist { font-weight: 600; font-size: 16px; }
.card-name { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.card-meta { font-family: var(--mono); color: var(--ink-2); font-size: 12px; margin-top: 6px; }

/* ── Galerie auf der Ausstellungsseite ─────────────────────────────────── */
.gallery-ref { border-top: 1px solid var(--line); padding: 24px 0; margin-top: 8px; }
.gallery-ref .info-k { display: block; margin-bottom: 6px; }
.gref-name { font-size: 22px; font-weight: 600; }
.gref-name:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.gref-addr { font-family: var(--mono); font-size: 13px; margin-top: 8px; }
.gref-addr a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Knöpfe ────────────────────────────────────────────────────────────── */
.app-cta { margin-top: 40px; }
.app-cta a, .walk-cta-btn, .app-modal-cta { display: inline-block; background: var(--ink); color: var(--paper); font-weight: 500; font-size: 16px; padding: 13px 24px; border-radius: var(--pill); }
.app-cta a:hover, .walk-cta-btn:hover, .app-modal-cta:hover { background: #2a2a2a; }

/* ── Fuß ───────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 32px; margin-top: 56px; }
.foot-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 12px; font-size: 14px; text-align: center; color: var(--ink-2); }
.foot-brand { font-weight: 700; font-size: 15px; letter-spacing: -0.04em; color: var(--ink); }
.foot-sep { color: var(--line); }
.foot-line a:hover { color: var(--ink); }

/* ── Städte (/galerien/) und vissi picks ───────────────────────────────── */
.picker { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px 0; display: flex; flex-direction: column; gap: 48px; }
.picker-card { display: block; }
.picker-card .pc-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; height: clamp(300px, 56vw, 560px); background: var(--fill); }
.pc-rail::-webkit-scrollbar { display: none; }
.pc-img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; display: block; }
.pc-img-empty { background: var(--fill); }
.pc-bar { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; min-width: 0; }
.pc-city { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.pc-count, .pc-pick, .pc-soon { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.pc-pick { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pc-sep { color: var(--line); }
.pc-bar .pc-dots { margin-left: auto; padding-left: 12px; align-self: center; }
.pc-op { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-op-artist { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.pc-op-sub { font-size: 15px; color: var(--ink-2); }
.picker-card:hover .pc-city, .picker-card:hover .pc-op-artist { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.picker-card-soon { cursor: default; }
.picker-card-soon:hover .pc-city { text-decoration: none; }
.pc-lock { width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; }

/* ── Liste (/<stadt>/entdecken/) ───────────────────────────────────────── */
.city-head { max-width: 760px; margin: 0 auto; padding: 32px 20px 16px; }
.city-head h1 { font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.025em; }
.feed-meta { font-family: var(--mono); color: var(--ink-2); font-size: 12px; margin-top: 10px; }
.feed { display: flex; flex-direction: column; gap: 40px; max-width: 760px; margin: 0 auto; padding: 8px 20px 0; }
.feedcard { display: block; }
.feedcard img { width: 100%; height: clamp(260px, 60vw, 460px); object-fit: cover; display: block; background: var(--fill); }
.feedcard:hover img { opacity: 0.9; }
.feedcard.noimg { border-top: 1px solid var(--line); }
.feed-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 12px; }
.feed-artist { display: block; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.feed-name { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.feed-info .status-pill { margin-top: 5px; }

.feed[hidden], .feed-empty[hidden], .all-view[hidden], .all-empty[hidden], .all-row[hidden] { display: none !important; }
.city-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.city-head-row h1 { min-width: 0; }
.see-all-btn, .all-sort-btn { display: inline-flex; align-items: center; cursor: pointer; border-radius: var(--pill); white-space: nowrap; line-height: 1; }
.see-all-btn { flex: none; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); padding: 10px 18px; }
.see-all-btn:hover, .see-all-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.see-all-btn .sa-back { display: none; }
.see-all-btn[aria-pressed="true"] .sa-all { display: none; }
.see-all-btn[aria-pressed="true"] .sa-back { display: inline; }
.feed-empty { max-width: 760px; margin: 6px auto 0; padding: 0 20px; color: var(--ink-2); }

.all-view { max-width: 760px; margin: 0 auto; padding: 4px 20px 0; }
.all-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.all-head h2 { font-size: 22px; }
.all-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.all-sort-btn { min-height: 40px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: none; border: 1px solid var(--line); padding: 6px 14px; }
.all-sort-btn:hover { color: var(--ink); }
.all-sort-btn.active { color: var(--ink); border-color: var(--ink); }
.all-search { margin-bottom: 8px; }
.all-search input { width: 100%; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 11px 18px; outline: none; }
.all-search input:focus { border-color: var(--ink); }
.all-list { list-style: none; }
.all-row { border-bottom: 1px solid var(--line); }
.all-row a { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; }
.ar-lead { font-weight: 600; font-size: 17px; }
.ar-lead .dist { font-weight: 400; }
.all-row a:hover .ar-lead { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ar-name { color: var(--ink-2); font-size: 15px; }
.all-empty { color: var(--ink-2); padding: 16px 0; }
.dist { font-size: 0.75em; color: var(--ink-2); font-weight: 400; }

/* ── Tab-Leiste: Karte · Heute · Liste, roter Punkt unter dem aktiven Tab ─ */
body.has-tabbar { padding-bottom: 72px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: var(--paper); border-top: 1px solid var(--line); padding: 0 max(20px, calc(50% - 300px)) env(safe-area-inset-bottom); }
.tabbar .tab { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; height: 58px; background: none; border: none; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.tabbar .tab:hover { color: var(--ink); }
.tabbar .tab.on { color: var(--ink); font-weight: 700; }
.tabbar .tab.on::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--dot); }

/* ── „Karte gibt es in der App“ ────────────────────────────────────────── */
body.modal-open { overflow: hidden; }
.app-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0.4); padding: 16px; }
@media (min-width: 560px) { .app-modal { align-items: center; } }
.app-modal[hidden] { display: none; }
.app-modal-card { width: 100%; max-width: 420px; background: var(--paper); padding: 32px 24px 20px; text-align: center; }
.app-modal-card h3 { font-size: 22px; }
.app-modal-card p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.app-modal-cta { display: block; margin-top: 24px; }
.app-modal-no { display: block; width: 100%; margin-top: 8px; background: none; border: none; color: var(--ink-2); font-size: 14px; padding: 12px; cursor: pointer; }
.app-modal-no:hover { color: var(--ink); }

/* ── Heute (/<stadt>/) ─────────────────────────────────────────────────── */
.sc { max-width: 960px; margin: 0 auto; padding: 32px 20px 0; }
.sc-intro { font-size: clamp(28px, 5.4vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; max-width: 20ch; margin-bottom: 36px; }
.sc-sec { margin-bottom: 48px; }
.sc-label { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.sc-empty { color: var(--ink-2); padding: 40px 0; }

.sc-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sc-row:first-of-type { border-top: 1px solid var(--line); }
.sc-thumb { width: 64px; height: 64px; object-fit: cover; flex: none; background: var(--fill); }
.sc-thumb.empty { display: block; }
.sc-row-main { flex: 1; min-width: 0; }
.sc-row-artist { display: block; font-weight: 600; font-size: 16px; }
.sc-row-gal { display: block; color: var(--ink-2); font-size: 14px; margin-top: 1px; }
.sc-row:hover .sc-row-artist { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.days { flex: none; font-family: var(--mono); font-size: 12px; white-space: nowrap; }

.gem-scroll { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 4px; }
.gem-scroll::-webkit-scrollbar { display: none; }
.gem { flex: 0 0 200px; scroll-snap-align: start; }
.gem img, .gem-empty { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--fill); }
.gem-artist { display: block; font-weight: 600; font-size: 15px; padding-top: 10px; }
.gem-name { display: block; color: var(--ink-2); font-size: 14px; }

.column-card { border-top: 1px solid var(--line); padding-top: 16px; }
.column-date { font-family: var(--mono); color: var(--ink-2); font-size: 12px; }
.column-title { font-size: 24px; margin-top: 8px; }
.column-text { margin-top: 12px; max-width: 64ch; }
.column-text p { margin-bottom: 12px; line-height: 1.6; }

/* ── Geteilter Walk (/walk/<id>) ───────────────────────────────────────── */
.walk-cover { margin-bottom: 28px; background: var(--fill); }
.walk-cover img { display: block; width: 100%; height: auto; }
.walk-strip { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 2px; margin-bottom: 28px; }
.walk-strip.s1 { --n: 1; } .walk-strip.s2 { --n: 2; } .walk-strip.s3 { --n: 3; } .walk-strip.s4 { --n: 4; }
.walk-strip img { display: block; width: 100%; height: clamp(120px, 26vw, 200px); object-fit: cover; }
.walk-strip.s1 img { height: clamp(200px, 42vw, 340px); }
.walk-badge { flex: none; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.walk-badge.shared { color: var(--ink-2); }
.walk-summary { display: flex; flex-wrap: wrap; align-items: center; }
.ws-dot { color: var(--line); margin: 0 8px; }
.walk-stops { list-style: none; }
.walk-stop { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.walk-stop:last-child { border-bottom: 1px solid var(--line); }
.ws-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.ws-body { min-width: 0; flex: 1; }
.ws-lead { color: var(--ink-2); font-size: 14px; margin-bottom: 2px; }
.ws-name { display: block; font-size: 19px; font-weight: 600; }
a.ws-name:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ws-meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.ws-route { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ws-leg { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.walk-cta { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 28px; }
.walk-cta h2 { font-size: 22px; }
.walk-cta p { color: var(--ink-2); font-size: 15px; margin: 8px 0 20px; max-width: 48ch; }
.walk-missing { color: var(--ink-2); max-width: 46ch; }

/* ── Schmal ────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .site-header .wrap { gap: 8px; height: 56px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand-mark { width: 21px; height: 21px; }
  .header-right { gap: 10px; }
  .site-header .nav-app { padding: 7px 13px; font-size: 14px; }
  .city-select { font-size: 14px; }
  .see-all-btn { font-size: 14px; padding: 9px 15px; min-height: 40px; }
  .info-k { flex-basis: 96px; }
  .foot-line { gap: 6px 16px; }
  .foot-line .foot-sep { display: none; }
  .walk-stop { gap: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
