/* ============================================================
   F-INSEL — Design Tokens & Global Styles
   ============================================================ */

:root {
  /* Brand palette */
  --ink:       #0A1733;   /* navy from logo (sampled from PNG) */
  --ink-deep:  #050D22;
  --ink-soft:  #18254A;
  --moss:      #8FA01F;   /* olive green from logo "F" */
  --moss-dark: #6F7E16;
  --moss-soft: #B5C455;
  --paper:     #F6F4ED;   /* warm off-white */
  --paper-soft:#EFEBDF;
  --line:      rgba(13, 27, 61, 0.12);

  /* Semantic — light mode defaults */
  --bg:          var(--paper);
  --bg-elev:     #FFFFFF;
  --bg-tint:     var(--paper-soft);
  --fg:          var(--ink);
  --fg-soft:     #4A5878;
  --fg-faint:    #8892AA;
  --accent:      var(--moss);
  --border:      var(--line);
  --shadow-1:    0 1px 2px rgba(13, 27, 61, 0.05), 0 2px 6px rgba(13, 27, 61, 0.04);
  --shadow-2:    0 4px 10px rgba(13, 27, 61, 0.06), 0 12px 28px rgba(13, 27, 61, 0.08);
  --shadow-3:    0 10px 24px rgba(13, 27, 61, 0.08), 0 28px 64px rgba(13, 27, 61, 0.14);

  /* Typography */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --maxw: 1180px;
}

html[data-theme="dark"] {
  --bg:        var(--ink);
  --bg-elev:   #142354;
  --bg-tint:   var(--ink-soft);
  --fg:        var(--paper);
  --fg-soft:   #B7C0D6;
  --fg-faint:  #7B86A4;
  --accent:    var(--moss-soft);
  --border:    rgba(246, 244, 237, 0.12);
  --shadow-1:  0 1px 2px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-2:  0 4px 12px rgba(0,0,0,0.45), 0 16px 36px rgba(0,0,0,0.5);
  --shadow-3:  0 10px 24px rgba(0,0,0,0.5), 0 32px 72px rgba(0,0,0,0.6);
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin: 0; text-wrap: pretty; }

/* Eyebrow / overline label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}

/* Theme-aware logo swap */
.logo-dark { display: none; }
.logo-light { display: block; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__name { display: flex; align-items: baseline; gap: 4px; }
.brand__name b { color: var(--accent); font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
  transition: color .2s, background-color .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--fg); background: var(--bg-tint); }
.nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--bg-tint);
}

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: grid; place-items: center;
  color: var(--fg);
  transition: transform .2s, box-shadow .2s;
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
}

/* Tablet: compress nav padding so all 5 nav items fit */
@media (max-width: 1024px) and (min-width: 821px) {
  .nav a { padding: 7px 11px; font-size: 13px; }
  .brand { font-size: 18px; }
  .brand__mark { width: 32px; height: 32px; }
}
/* Mobile: collapse nav into hamburger drawer */
@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elev);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    transform: translateY(-110%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 16px; font-size: 16px; border-radius: var(--radius-sm); }
  .nav-toggle { display: grid; place-items: center; }
  .site-header__inner { padding: 12px 18px; }
}

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
@media (max-width: 1024px) { .wrap { padding: 0 28px; } .section { padding: 64px 0; } }
@media (max-width: 640px)  { .wrap { padding: 0 18px; } .section { padding: 44px 0; } }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 22ch; }
.section-head p { color: var(--fg-soft); max-width: 38ch; }
@media (max-width: 640px) {
  .section-head { margin-bottom: 24px; gap: 12px; }
  .section-head p { font-size: 14px; }
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.card--flat { box-shadow: var(--shadow-1); }
.card--flat:hover { box-shadow: var(--shadow-2); }

/* Info card (telephone, address, vcard, etc) */
.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
}
.info-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 2px;
}
.info-card__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  word-break: break-word;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-1);
}
html[data-theme="dark"] .btn--primary { background: var(--moss); color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-tint); }

/* ============================================================
   World Map (Reisen section)
   ============================================================ */
.world-map {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 28px;
  overflow: hidden;
}
@media (max-width: 640px) { .world-map { padding: 14px; border-radius: var(--radius); } }
#world-map { position: relative; width: 100%; }
#world-map svg { width: 100%; height: auto; display: block; }

.world-map__loading,
.world-map__error {
  padding: 80px 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.world-map__graticule {
  fill: none;
  stroke: var(--border);
  stroke-width: 0.4;
  stroke-dasharray: 2 3;
  opacity: 0.6;
}
.world-map__country {
  fill: var(--bg-tint);
  stroke: var(--bg-elev);
  stroke-width: 0.5;
  transition: fill 0.2s ease;
}
.world-map__country.is-visited {
  fill: var(--accent);
  cursor: pointer;
  filter: drop-shadow(0 1px 0 color-mix(in oklab, var(--accent) 60%, black));
}
.world-map__country.is-visited:hover {
  fill: color-mix(in oklab, var(--accent) 75%, white);
}
html[data-theme="dark"] .world-map__country.is-visited:hover {
  fill: color-mix(in oklab, var(--accent) 80%, white);
}

/* Planned countries — outlined with diagonal stripes */
.world-map__country.is-planned {
  fill: url(#planned-stripes);
  cursor: pointer;
  stroke: var(--accent);
  stroke-width: 0.8;
}
.world-map__country.is-planned:hover {
  fill: var(--accent);
  fill-opacity: 0.55;
}
.world-map__pin-dot {
  fill: var(--ink);
  pointer-events: none;
}
html[data-theme="dark"] .world-map__pin-dot { fill: var(--paper); }
.world-map__pin-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.7;
  transform-origin: center;
  transform-box: fill-box;
  animation: mapPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes mapPulse {
  0%   { r: 4; opacity: 0.8; }
  100% { r: 14; opacity: 0; }
}

#world-map-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
  max-width: 220px;
}
#world-map-tooltip strong { font-family: var(--serif); font-size: 14px; font-weight: 600; }
#world-map-tooltip span { color: rgba(246,244,237,0.7); font-size: 11px; }

.world-map__legend {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.world-map__legend .key {
  display: inline-flex; align-items: center; gap: 8px;
}
.world-map__legend .swatch {
  width: 14px; height: 14px; border-radius: 3px;
  background: var(--accent);
}
.world-map__legend .swatch--planned {
  background: repeating-linear-gradient(135deg,
    var(--accent) 0 2px,
    transparent 2px 5px);
  border: 1px solid var(--accent);
}
.world-map__legend .swatch--idle { background: var(--bg-tint); border: 1px solid var(--border); }
.world-map__legend .count {
  margin-left: auto;
  color: var(--fg);
  font-size: 12px;
}
/* ============================================================
   Gallery Tabs (used on familie + urlaub)
   ============================================================ */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding: 6px;
  background: var(--bg-tint);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.gallery-tab {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-soft);
  background: transparent;
  border: none;
  transition: background-color .2s, color .2s;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.gallery-tab:hover { color: var(--fg); }
.gallery-tab.active {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: var(--shadow-1);
}
.gallery-tab .count {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
}
.gallery-tab.active .count {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
}
@media (max-width: 480px) {
  .gallery-tabs { width: 100%; border-radius: 14px; }
  .gallery-tab { flex: 1 1 auto; padding: 9px 12px; font-size: 12px; }
}

.gallery-panel { display: none; }
.gallery-panel.active { display: block; animation: galPanel .35s ease-out both; }
@keyframes galPanel {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Country pills (under world map + on country detail nav)
   ============================================================ */
.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  box-shadow: var(--shadow-1);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.country-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in oklab, var(--accent) 50%, var(--border));
}
.country-pill .flag { font-size: 18px; line-height: 1; }
.country-pill .count {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   Lightbox (click any gallery photo to open big)
   ============================================================ */
.finsel-lightbox {
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.finsel-lightbox.is-open { display: flex; }

.fl__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 13, 34, 0.94);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  animation: lbFade .25s ease-out;
  cursor: zoom-out;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.fl__stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: min(96vw, 1280px);
  max-height: 92vh;
  gap: 24px;
  z-index: 1;
}
.fl__figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
  animation: lbZoom .35s cubic-bezier(.2,.7,.3,1);
}
@keyframes lbZoom {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
.fl__img {
  max-width: 100%;
  max-height: calc(92vh - 130px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  background: rgba(255,255,255,.03);
}
.fl__cap {
  margin-top: 18px;
  text-align: center;
  color: #F6F4ED;
  max-width: 70ch;
}
.fl__caption-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.fl__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246,244,237,.6);
  margin-top: 8px;
  display: flex; gap: 14px; align-items: center; justify-content: center;
  flex-wrap: wrap;
}
.fl__meta .pin {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(246,244,237,.75);
}
.fl__meta .pin svg { width: 11px; height: 11px; color: #8FA01F; }

.fl__nav {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #F6F4ED;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .2s, transform .2s;
  z-index: 2;
}
.fl__nav:hover { background: rgba(143, 160, 31, .35); transform: scale(1.06); }
.fl__nav svg { width: 18px; height: 18px; }

.fl__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #F6F4ED;
  cursor: pointer;
  z-index: 2;
  display: grid; place-items: center;
  transition: background-color .2s, transform .2s;
}
.fl__close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }
.fl__close svg { width: 18px; height: 18px; }

.fl__counter {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(246,244,237,.5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 2;
}

@media (max-width: 720px) {
  .fl__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
  .fl__prev { left: 12px; }
  .fl__next { right: 12px; }
  .fl__stage { gap: 0; }
  .fl__img { max-height: calc(92vh - 140px); }
  .fl__caption-text { font-size: 1.15rem; }
  .fl__close { top: 14px; right: 14px; width: 38px; height: 38px; }
  .fl__counter { top: 14px; left: 14px; padding: 6px 10px; }
}

/* Hover hint on gallery cells — show a small zoom-in icon */
.gallery__cell,
.topic-gallery .gcell,
.trip-gallery .cell {
  cursor: zoom-in;
}
.gallery__cell::after,
.topic-gallery .gcell::after,
.trip-gallery .cell::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background-color: rgba(10, 23, 51, 0.78);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F4ED' stroke-width='2.2'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/><path d='M11 8v6M8 11h6'/></svg>");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px) scale(.9);
  transition: opacity .2s, transform .25s;
  pointer-events: none;
  z-index: 3;
}
.gallery__cell:hover::after,
.topic-gallery .gcell:hover::after,
.trip-gallery .cell:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================================
   VCard QR Card (on person pages + family contact)
   ============================================================ */
.vcard-qr {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 28px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.vcard-qr::before {
  content: "";
  position: absolute;
  right: -100px; bottom: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 16%, transparent), transparent 65%);
  pointer-events: none;
}
.vcard-qr__qr {
  position: relative;
  z-index: 1;
  width: 260px;
  aspect-ratio: 1;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(10, 23, 51, 0.16);
}
.vcard-qr__qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vcard-qr__body { position: relative; z-index: 1; }
.vcard-qr__body .eyebrow { margin-bottom: 10px; }
.vcard-qr__body h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.015em;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.1;
}
.vcard-qr__body p {
  color: var(--fg-soft);
  font-size: 0.95rem;
  margin-bottom: 18px;
  max-width: 36ch;
  line-height: 1.55;
}
.vcard-qr__lines {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 14px;
}
.vcard-qr__lines > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}
.vcard-qr__lines svg {
  width: 14px; height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.vcard-qr__cta {
  display: flex; gap: 10px; flex-wrap: wrap;
}

@media (max-width: 760px) {
  .vcard-qr {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
    gap: 22px;
  }
  .vcard-qr__qr {
    width: min(72vw, 320px);
    margin: 0 auto;
    padding: 14px;
  }
  .vcard-qr__body p { margin-left: auto; margin-right: auto; }
  .vcard-qr__lines { justify-items: center; }
  .vcard-qr__cta { justify-content: center; }
}

/* ============================================================
   Token-mode (Visitenkarten-Ansicht via QR scan)
   When body has .token-mode class: hide all navigation/chrome.
   ============================================================ */
/* .hobbies fehlt hier bewusst (Ticket 25): das Token-Template rendert
   nur, was die API liefert — Besucher-sichtbare Hobbies SOLLEN bleiben. */
body.token-mode .site-header,
body.token-mode .site-footer,
body.token-mode .person-nav,
body.token-mode .topic-tabs,
body.token-mode .gallery-tabs,
body.token-mode .gallery-panel,
body.token-mode .topic-panel,
body.token-mode .members,
body.token-mode .hero__crest,
body.token-mode .cta-stripe { display: none !important; }

body.token-mode .section { padding: 32px 0; }
body.token-mode .wrap { max-width: 720px; }

.token-banner {
  display: none;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 14px 20px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 100;
}
.token-banner__inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.token-banner svg { width: 14px; height: 14px; color: var(--moss); }
.token-banner a {
  color: var(--moss);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 16px;
  text-decoration: underline;
}
body.token-mode .token-banner { display: block; }
.user-menu {
  position: relative;
}
.user-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  font: inherit;
  font-size: 13px;
}
.user-menu__trigger:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.user-menu__avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  display: grid; place-items: center;
  overflow: hidden;
}
.user-menu__avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu__name { font-weight: 500; color: var(--fg-soft); }
.user-menu__caret { color: var(--fg-faint); transition: transform .2s; }
.user-menu.is-open .user-menu__caret { transform: rotate(180deg); }
@media (max-width: 560px) { .user-menu__name { display: none; } }

.user-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-3);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 60;
}
.user-menu.is-open .user-menu__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-menu__panel a,
.user-menu__panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background-color .15s;
  font: inherit;
}
.user-menu__panel a:hover,
.user-menu__panel button:hover { background: var(--bg-tint); }
.user-menu__panel svg { width: 16px; height: 16px; color: var(--fg-faint); }
.user-menu__panel hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 4px;
}
.user-menu__head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.user-menu__head .nm { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.1; }
.user-menu__head .em { font-size: 12px; color: var(--fg-faint); margin-top: 2px; font-family: var(--mono); letter-spacing: 0.06em; }
.user-menu__role {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 40px 0 32px;
  color: var(--fg-soft);
  font-size: 13px;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .coords {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}
