/* ============================================================================
   vissi-web.css — public gallery/exhibition pages. Clean black-on-white, matched
   to the /gallery dashboard (#fff background, #000 text, hairline borders, system
   font, yellow #FFD60A only as a sparing accent). Includes the de/en UI switch.
   ========================================================================== */
:root {
  --paper: #ffffff;
  --ink:   #000000;
  --ink-2: rgba(0,0,0,0.55);   /* secondary text */
  --ink-3: rgba(0,0,0,0.35);   /* tertiary / labels */
  --line:  rgba(0,0,0,0.10);   /* hairline borders */
  --line-2:rgba(0,0,0,0.06);
  --yellow:#FFD60A;
  --green: #34c759;
  --red:   #FF3B30;
  --r-card: 16px;
  --r-img:  14px;
  --r-pill: 999px;
  --maxw:  960px;
  --font:  system-ui, -apple-system, "SF Pro Display", "Segoe UI", "Helvetica Neue", sans-serif;
}

*, *::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(--font);
  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%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── i18n: show one language at a time (toggled by .en on <html>) ───────────── */
.i18n > .en { display: none; }
html.en .i18n > .de { display: none; }
html.en .i18n > .en { display: inline; }

/* ── Language switch (de · en) — active black, other grey ───────────────────── */
.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-switch button { background: none; border: none; font-family: var(--font); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); cursor: pointer; padding: 0; transition: color 0.15s; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--ink); }
.lang-switch .sep { color: rgba(0,0,0,0.2); font-size: 13px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.header-right { display: flex; align-items: center; gap: 22px; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--ink-2); transition: color 0.15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* ── Main / detail layout ──────────────────────────────────────────────── */
.site-main { flex: 1; width: 100%; }
.detail { max-width: 740px; margin: 0 auto; padding: 18px 20px 64px; }
.crumbs { max-width: 740px; margin: 0 auto; padding: 16px 20px 0; font-size: 13px; color: var(--ink-3); }
.crumbs .sep { margin: 0 7px; opacity: 0.5; }
.crumbs a:hover { color: var(--ink); }
.hub-head, .hub-section, .hub-cards { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* ── Hero / carousel ───────────────────────────────────────────────────── */
.hero { position: relative; border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--line); margin-bottom: 24px; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.carousel img { flex: 0 0 100%; width: 100%; height: clamp(240px, 52vw, 460px); object-fit: cover; scroll-snap-align: center; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.7); box-shadow: 0 0 3px rgba(0,0,0,0.3); }
.hero-dots span.on { background: var(--yellow); }
.hero-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: clamp(220px, 44vw, 360px); text-align: center; padding: 24px; }
.hero-bar { width: 28px; height: 3px; background: var(--yellow); border-radius: 2px; }
.hero-emptyname { font-size: 18px; font-weight: 600; color: var(--ink); }

/* ── Detail head ───────────────────────────────────────────────────────── */
.detail-head { margin-bottom: 24px; }
.detail-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.detail-head h1 { font-size: clamp(27px, 5vw, 36px); font-weight: 700; }
.detail-artist { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.detail-sub { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* ── Status pill ───────────────────────────────────────────────────────── */
.status-pill { display: inline-flex; align-items: center; gap: 7px; flex: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 13px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.status-pill.open .dot { background: var(--green); }
.status-pill.event { border-color: transparent; background: #FFF6D6; }
.status-pill.event .dot { background: var(--yellow); }

/* ── Chips (exhibition status) ─────────────────────────────────────────── */
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; padding: 3px 9px; border-radius: var(--r-pill); }
.chip.now  { background: #FFF6D6; color: #6b5800; }
.chip.soon { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.chip.past { background: var(--line-2); color: var(--ink-3); }

/* ── Current show ──────────────────────────────────────────────────────── */
.show { border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; margin-bottom: 24px; }
.show-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.show-title { font-size: 22px; font-weight: 700; margin-top: 6px; }
.show-artist { font-size: 17px; font-weight: 600; margin-top: 2px; }
.show-dates { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.show-vern { color: #6b5800; background: #FFF6D6; display: inline-block; border-radius: 8px; padding: 4px 10px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.more-link { display: inline-block; margin-top: 14px; color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--yellow); padding-bottom: 1px; }

/* ── Prose ─────────────────────────────────────────────────────────────── */
.prose { margin-top: 14px; }
.prose p { margin-bottom: 12px; color: rgba(0,0,0,0.8); }
.prose p:last-child { margin-bottom: 0; }
.prose-section, .exh-list, .related { margin: 28px 0; }
.prose-section h2, .exh-list h2, .related h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }

/* ── Info card ─────────────────────────────────────────────────────────── */
.info-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 24px; }
.info-row { display: flex; gap: 14px; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--line-2); }
.info-row:last-of-type { border-bottom: 0; }
.info-k { flex: 0 0 110px; color: var(--ink-3); }
.info-v { flex: 1; }
.info-v a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.info-v a:hover { border-color: var(--ink); }
.hours { margin-top: 14px; }
.hours .info-k { margin-bottom: 8px; }
.hours table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th { text-align: left; font-weight: 400; color: var(--ink); padding: 5px 0; }
.hours td { text-align: right; color: var(--ink-2); padding: 5px 0; }
.hours tr.closed th, .hours tr.closed td { color: var(--ink-3); }

/* ── Exhibition list ───────────────────────────────────────────────────── */
.exli { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
.exli:last-child { border-bottom: 0; }
a.exli:hover { background: rgba(0,0,0,0.02); border-radius: 10px; padding-left: 12px; padding-right: 12px; }
.exli-title { font-weight: 600; display: block; }
.exli-artist { color: var(--ink-2); font-size: 14px; }
.exli-meta { display: flex; align-items: center; gap: 10px; flex: none; }
.exli-range { color: var(--ink-3); font-size: 13px; white-space: nowrap; }

/* ── Cards grid (hubs + related) ───────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color 0.12s ease, transform 0.12s ease; }
.gcard:hover { transform: translateY(-2px); border-color: rgba(0,0,0,0.25); }
.card-img { aspect-ratio: 4 / 3; background: #fafafa; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; color: var(--ink); font-weight: 600; font-size: 15px; border-bottom: 0; }
.card-body { padding: 14px 16px 16px; }
.card-artist { font-weight: 700; font-size: 16px; }
.card-name { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.card-meta { color: var(--ink-3); font-size: 13px; margin-top: 6px; }

/* ── Gallery reference (exhibition page) ───────────────────────────────── */
.gallery-ref { border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; margin: 28px 0; }
.gallery-ref .info-k { margin-bottom: 4px; }
.gref-name { font-size: 19px; font-weight: 700; border-bottom: 2px solid var(--yellow); padding-bottom: 1px; }
.gref-addr { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.gref-addr a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }

/* ── Hubs ──────────────────────────────────────────────────────────────── */
.hub-head { padding-top: 24px; padding-bottom: 8px; }
.hub-head h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 700; }
.hub-intro { color: var(--ink-2); font-size: 17px; margin-top: 12px; max-width: 640px; }
.hub-section { margin: 30px auto; }
.hub-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.az-list { list-style: none; columns: 2; column-gap: 32px; }
.az-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.az-list a { font-weight: 600; }
.az-list a:hover { border-bottom: 2px solid var(--yellow); }
.az-sub { display: block; color: var(--ink-3); font-size: 13px; font-weight: 400; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.hub-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; transition: border-color 0.12s; }
.hub-card:hover { border-color: rgba(0,0,0,0.3); }
.hub-card-name { font-size: 24px; font-weight: 700; }
.hub-card-count { color: var(--ink-3); font-size: 14px; }

/* ── App CTA + footer ──────────────────────────────────────────────────── */
.app-cta { margin-top: 32px; }
.app-cta a { display: inline-block; border: 1px solid var(--ink); color: var(--ink); font-weight: 700; padding: 12px 22px; border-radius: var(--r-pill); transition: background 0.15s, color 0.15s; }
.app-cta a:hover { background: var(--ink); color: #fff; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 44px; }
.foot-brand { font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.foot-tag { color: var(--ink-2); font-size: 14px; margin-top: 8px; max-width: 460px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; }
.foot-nav a { color: var(--ink-2); }
.foot-nav a:hover { color: var(--ink); }
.foot-copy { color: var(--ink-3); font-size: 13px; margin-top: 18px; }

/* ── Prominent "App laden" in the header ───────────────────────────────── */
.site-nav a.nav-app { background: var(--ink); color: #fff; font-weight: 600; padding: 8px 15px; border-radius: var(--r-pill); }
.site-nav a.nav-app:hover { color: #fff; opacity: 0.82; }

/* ── City picker (/galerien) ───────────────────────────────────────────── */
.city-picker { max-width: 760px; margin: 0 auto; padding: clamp(36px, 8vh, 84px) 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.city-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 180px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; transition: border-color 0.12s, transform 0.12s; }
.city-tile:hover { border-color: rgba(0,0,0,0.35); transform: translateY(-2px); }
.city-tile-name { font-size: clamp(28px, 5vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.city-tile-count { color: var(--ink-3); font-size: 15px; }

/* ── City discover feed (app-style big cards) ──────────────────────────── */
.city-head { max-width: 740px; margin: 0 auto; padding: 24px 20px 12px; }
.city-head h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 700; }
.feed { display: flex; flex-direction: column; gap: 18px; max-width: 740px; margin: 0 auto; padding: 0 20px; }
.feedcard { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #fff; transition: border-color 0.12s, transform 0.12s; }
.feedcard:hover { border-color: rgba(0,0,0,0.28); transform: translateY(-2px); }
.feedcard .media { position: relative; }
.feedcard img { width: 100%; height: clamp(230px, 44vw, 320px); object-fit: cover; display: block; }
.feed-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.feedcard .media .feed-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1) 65%, transparent); }
.feed-artist { display: block; font-weight: 700; font-size: 18px; }
.feed-name { display: block; font-size: 15px; margin-top: 2px; }
.feedcard .media .feed-name { opacity: 0.9; }
.feedcard.noimg { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.feedcard.noimg .hero-bar { margin-bottom: auto; }
.feedcard.noimg .feed-info { color: var(--ink); }
.feedcard.noimg .feed-name { color: var(--ink-2); }
.status-pill.on-photo { background: rgba(255,255,255,0.92); border-color: transparent; color: #000; }
.all-galleries { max-width: 740px; }

@media (max-width: 560px) {
  .az-list { columns: 1; }
  .site-nav { gap: 12px; font-size: 14px; }
  .header-right { gap: 12px; }
  .site-nav a.nav-app { padding: 7px 12px; }
}
