/* Reisepass-App
   Layout: Karte bildschirmfüllend, Pass und Koffer als scrollende Seiten,
   unten eine schwebende Leiste mit dem roten ＋ für die Bordkarte. */

:root {
  /* Look „Sticker-Club“ */
  --tanne: #124A2C;
  --espresso: #3A2216;
  --creme: #FBF4DE;
  --butter: #F7EBA6;
  --tomate: #E5643E;
  --himmel: #BCD2EE;
  --rose: #F2CFDC;
  --limette: #D6E04B;
  --pistazie: #DCE3A2;
  --flieder: #B9C0F2;
  --weiss: #FFFDF6;

  --bg: var(--creme);
  --surface: var(--creme);
  --surface-2: #F2E8CC;
  --fg: var(--tanne);
  --muted: #586A5D;
  --line: #D8CBA8;
  --accent: var(--tanne);
  --accent-fg: var(--creme);
  --bad: #B3261E;
  --cover: var(--tanne);
  --cover-fg: var(--butter);
  --cover-edge: #0B2E1B;
  --paper: var(--creme);
  --paper-ink: #5E7A62;
  --case: var(--tomate);
  --case-edge: #A13E1E;
  --sticker-bg: var(--weiss);
  --ocean: var(--himmel);
  --land: var(--creme);
  --land-line: var(--tanne);
  --visited: var(--tomate);
  --grid: rgba(18, 74, 44, .12);

  --f-display: "Gasoek One", "Arial Black", sans-serif;
  --f-body: "Hanken Grotesk", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --f-hand: "Momo Signature", "Snell Roundhand", cursive;
  --f-stamp: Oswald, "Arial Narrow", sans-serif;
  --tex: url("../img/papier.jpg");
  /* Schatten nur für Dinge, die auf etwas liegen */
  --shadow: 0 1px 2px rgba(40, 24, 14, .16), 0 8px 16px -10px rgba(40, 24, 14, .55);
  --sh-obj: 0 1px 1px rgba(40, 24, 14, .18), 0 10px 18px -8px rgba(40, 24, 14, .5);
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --side-l: max(16px, env(safe-area-inset-left, 0px));
  --side-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.on-map { overflow: hidden; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }
.pad { padding: 12px 4px; margin: 0; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.error { color: var(--bad); font-size: 14px; margin: 0; min-height: 0; }
.error:empty { display: none; }
.eyebrow {
  margin: 0 0 4px;
  font: 500 11px/1.2 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Laden ---------- */
.boot { min-height: 60vh; display: grid; place-items: center; }
.boot.small { min-height: 120px; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Seiten ---------- */
.screen {
  max-width: 960px;
  margin: 0 auto;
  padding-top: calc(var(--top) + 20px);
  padding-bottom: calc(var(--bottom) + 120px);
  padding-left: var(--side-l);
  padding-right: var(--side-r);
  display: grid;
  gap: 20px;
}
.screen-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.screen-head h1 {
  font: 800 clamp(40px, 9vw, 64px)/.9 var(--f-display);
  text-transform: uppercase;
}
.message { text-align: center; padding-top: calc(var(--top) + 80px); max-width: 480px; }
.message h2 { font: 800 34px/1 var(--f-display); text-transform: uppercase; margin-bottom: 8px; }
.hint { margin: 0; font: 400 13px/1.5 var(--f-mono); color: var(--muted); }

/* ---------- Knöpfe & Formulare ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: 600 15px/1.1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible, .icon-btn:focus-visible, .fab:focus-visible, .tabbar a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.btn-cover { background: var(--cover); color: var(--cover-fg); border-color: transparent; letter-spacing: .02em; }
.btn-big { width: 100%; min-height: 54px; font-size: 17px; border-radius: 14px; }
.btn-quiet { background: transparent; }
.btn-danger { background: transparent; color: var(--bad); border-color: transparent; }
.btn-danger.armed { background: var(--bad); color: #fff; }
.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.on-cover { background: transparent; border-color: rgba(240, 220, 174, .35); color: var(--cover-fg); width: 36px; height: 36px; }

.form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, fieldset > legend, .tk-label {
  font: 500 11px/1.2 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset > legend { padding: 0; margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select {
  width: 100%;
  font: 400 16px/1.2 var(--f-body);
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 44px;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); width: max-content; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.seg input:checked + label { background: var(--fg); color: var(--bg); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.swatches, .icons { display: flex; flex-wrap: wrap; gap: 8px; }
.sw, .ic { position: relative; cursor: pointer; }
.sw input, .ic input { position: absolute; opacity: 0; pointer-events: none; }
.sw span:first-of-type { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
.sw input:checked + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.sw input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.ic span:first-of-type { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--muted); }
.ic svg { width: 30px; height: 30px; }
.ic input:checked + span { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Leiste unten ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom) + 14px);
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tabbar-pill {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.tabbar a {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 70px;
  padding: 7px 10px 6px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font: 500 11px/1.1 var(--f-body);
}
.tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--fg); background: var(--surface-2); }
.fab {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 0;
  display: grid; place-items: center;
  background: var(--cover);
  color: var(--cover-fg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cover) 25%, transparent), var(--shadow);
  cursor: pointer;
}
.fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fab:active { transform: scale(.95); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom) + 96px);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 1200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Unteres Blatt ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(8, 12, 18, .5);
  animation: fade .18s ease-out;
}
.sheet-backdrop.closing { animation: fade .18s ease-in reverse forwards; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: min(560px, 100%);
  max-height: calc(100dvh - var(--top) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 18px var(--side-r) calc(var(--bottom) + 22px) var(--side-l);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: up .24s cubic-bezier(.2, .8, .3, 1);
}
.sheet > * { flex-shrink: 0; }
@keyframes up { from { transform: translateY(40px); } }
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 22px; padding: 22px 24px 26px; }
}
.sheet-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font: 800 32px/1 var(--f-display); text-transform: uppercase; }
.sheet-head .muted { margin: 4px 0 0; }
.actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.pv-paper {
  display: grid; place-items: center;
  aspect-ratio: 5 / 3.6;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper) var(--paper-img, none) center / cover;
}
.pv-stamp { width: 72%; max-width: 330px; mix-blend-mode: multiply; opacity: .93; }
.pv-stamp svg, .pstamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.pv-tools { display: flex; justify-content: center; margin-top: -8px; }

/* ---------- Bordkarte ---------- */
.sheet-ticket { padding: 0 0 calc(var(--bottom) + 18px); gap: 0; }
.ticket-top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 12px var(--side-r) 12px var(--side-l);
  background: var(--cover);
  color: var(--cover-fg);
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ticket-top > span:nth-child(2) { flex: 1; }
.tt-plane svg { width: 22px; height: 22px; fill: currentColor; transform: rotate(90deg); display: block; }
.ticket-body { display: grid; gap: 16px; padding: 18px var(--side-r) 0 var(--side-l); }
.ticket-body > div { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .sheet-ticket { padding-bottom: 22px; }
  .ticket-top { border-radius: 22px 22px 0 0; padding: 14px 24px; }
  .ticket-body { padding: 20px 24px 0; }
}
.tk-search { font-size: 18px; min-height: 52px; }
.results { display: grid; gap: 2px; }
.result {
  display: grid; gap: 2px;
  text-align: left;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
}
.result:hover, .result:focus-visible { background: var(--surface-2); outline: none; }
.result strong { font-weight: 600; font-size: 17px; }
.result span { color: var(--muted); font-size: 14px; }
.tk-route { display: flex !important; align-items: start; justify-content: space-between; gap: 12px; }
.tk-route > div { display: grid; gap: 2px; min-width: 0; }
.tk-dest { font: 800 clamp(30px, 8vw, 42px)/.95 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.tk-fields { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px !important; }
.tk-fields > .field:nth-child(3) { grid-column: 1 / -1; }
.perforation { height: 0; border-top: 2px dashed var(--line); margin: 4px -4px; }
.tk-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--cover);
  color: var(--fg);
  background: color-mix(in srgb, var(--cover) 8%, transparent);
}
.more summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.more .form { margin-top: 12px; }

/* ---------- Anmeldung: Pass-Einband ---------- */
.cover-screen {
  min-height: 100dvh;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0;
  padding: calc(var(--top) + 28px) var(--side-r) calc(var(--bottom) + 32px) var(--side-l);
}
.cover {
  width: min(420px, 100%);
  aspect-ratio: 125 / 120;
  background: var(--cover);
  color: var(--cover-fg);
  border-radius: 18px 18px 6px 6px;
  box-shadow: inset 0 0 0 1px var(--cover-edge), inset 14px 0 18px -14px rgba(0, 0, 0, .5), var(--shadow);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.cover-top, .cover-sub { margin: 0; font: 500 11px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.emblem { width: 34%; fill: none; stroke: currentColor; stroke-width: 2.4; }
.cover-title { font: 800 clamp(44px, 13vw, 64px)/.9 var(--f-display); letter-spacing: .14em; text-transform: uppercase; margin-right: -.14em; }
.cover-card {
  width: min(420px, 100%);
  margin-top: -6px;
  background: var(--surface);
  border-radius: 6px 6px 18px 18px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.cover-card h2 { font: 800 30px/1 var(--f-display); text-transform: uppercase; }
.cover-card .btn { width: 100%; }

/* ---------- Karte ---------- */
.map-screen { position: fixed; inset: 0; }
.map, .leaflet-container { position: absolute; inset: 0; background: var(--ocean); font: inherit; }
.map-error { position: absolute; top: 45%; width: 100%; text-align: center; color: var(--muted); }
.map-top {
  position: absolute;
  z-index: 800;
  top: calc(var(--top) + 12px);
  left: var(--side-l);
  right: var(--side-r);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.map-card {
  pointer-events: auto;
  width: min(520px, 100%);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px 14px 12px;
  display: grid;
  gap: 10px;
}
.map-card.empty p:last-child { margin: 0; }
.mc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mc-cell { display: grid; justify-items: center; gap: 2px; border-left: 1px dashed var(--line); }
.mc-cell:first-child { border-left: 0; }
.mc-num { font: 800 34px/.95 var(--f-display); font-variant-numeric: tabular-nums; }
.mc-label { font: 500 10px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mc-world { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.mc-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.mc-bar span { display: block; height: 100%; background: var(--visited); border-radius: 99px; }
.pin-wrap { background: none !important; border: 0 !important; }
.pin {
  display: block;
  width: 18px; height: 18px;
  margin: 3px;
  border-radius: 50%;
  background: var(--c);
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
}
.pin-island { border-radius: 4px; transform: rotate(45deg) scale(.9); }
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 12px 14px; font: 400 14px/1.4 var(--f-body); }
.pop strong { display: block; font-size: 16px; }
.pop ul { margin: 4px 0 8px; padding: 0; list-style: none; color: var(--muted); }
.pop a { font-weight: 600; }

/* ---------- Pass ---------- */
.pass-nav { display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--f-mono); color: var(--muted); }
.pass-nav span { min-width: 88px; text-align: center; }
.passport {
  width: 100%;
  max-width: 500px;
  justify-self: center;
  background: var(--cover);
  padding: 10px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--cover-edge), var(--shadow);
}
.pages {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 9px;
}
.pages::-webkit-scrollbar { display: none; }
.page {
  position: relative;
  aspect-ratio: 704 / 1000;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  background: var(--paper) var(--paper-img, none) center / cover;
}
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: multiply;
}
.page:nth-child(odd)::after { background: linear-gradient(to left, rgba(40, 60, 55, .22), rgba(40, 60, 55, 0) 9%); }
.page:nth-child(even)::after { background: linear-gradient(to right, rgba(40, 60, 55, .22), rgba(40, 60, 55, 0) 9%); }
@media (min-width: 760px) {
  .passport { max-width: 900px; }
  .pages { grid-auto-columns: 50%; }
  .page:nth-child(even) { scroll-snap-align: none; }
}
.page-head, .page-num {
  position: absolute; left: 0; right: 0;
  text-align: center;
  font: 500 clamp(7px, 1.3vw, 10px)/1 var(--f-mono);
  letter-spacing: .32em;
  color: var(--paper-ink);
  pointer-events: none;
}
.page-head { top: 3.2%; }
.page-num { bottom: 2.6%; letter-spacing: .1em; font-size: clamp(9px, 1.6vw, 12px); }
.page-empty { position: absolute; top: 40%; left: 10%; right: 10%; margin: 0; text-align: center; color: var(--paper-ink); font-weight: 500; }
.pstamp {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  mix-blend-mode: multiply;
  opacity: .93;
  z-index: 1;
}
.pstamp:focus-visible { outline: 2px dashed #1f4fa8; outline-offset: 5px; border-radius: 10px; }
.pstamp.thump { animation: thump .44s cubic-bezier(.25, .7, .35, 1) both; }
@keyframes thump {
  0%   { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.5); opacity: 0; }
  55%  { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.95); opacity: .97; }
  78%  { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.015); }
  100% { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); opacity: .93; }
}

/* ---------- Koffer ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: grid; align-content: start; gap: 2px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.tile-num { font: 800 44px/.9 var(--f-display); font-variant-numeric: tabular-nums; }
.tile-label { font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile-sub { font-size: 12px; color: var(--muted); }
.case { position: relative; padding-top: 22px; }
.case-handle {
  position: absolute; top: 0; left: 50%;
  width: 120px; height: 34px;
  transform: translateX(-50%);
  border: 8px solid var(--case-edge);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}
.case-body {
  position: relative;
  background: var(--case);
  border-radius: 20px;
  padding: 22px 18px 24px;
  box-shadow: inset 0 0 0 2px var(--case-edge), inset 0 -10px 0 -4px var(--case-edge), var(--shadow);
  display: grid;
  gap: 18px;
}
.case-group h3 {
  margin: 0 0 10px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f3e6d6;
}
.case-group h3 span { opacity: .7; margin-left: 6px; }
.case-empty { margin: 0; color: #f3e6d6; text-align: center; padding: 18px 8px; }
.stickers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 8px; }
.sticker {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 8px 14px 9px;
  background: var(--sticker-bg);
  color: var(--c);
  border: 3px double var(--c);
  transform: rotate(var(--rot));
  box-shadow: 0 3px 6px -2px rgba(0, 0, 0, .45);
  font-family: var(--f-stamp);
  text-transform: uppercase;
  line-height: 1.05;
}
.s-round { border-radius: 16px; }
.s-pill { border-radius: 999px; padding-inline: 18px; }
.s-tag { border-radius: 4px 18px 4px 18px; }
.st-cc { font-weight: 600; font-size: 22px; letter-spacing: .04em; }
.st-name { font-weight: 500; font-size: 12px; letter-spacing: .06em; }
.st-n { font: 500 10px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: none; opacity: .8; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.card h2 { font: 800 28px/1 var(--f-display); text-transform: uppercase; }
.card p { margin: 0; }
.card > .btn { justify-self: start; }
.invite { display: grid; gap: 8px; }
.invite input { font: 400 14px/1.3 var(--f-mono); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.credits { text-align: center; }

@media (max-width: 420px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabbar a { min-width: 62px; padding-inline: 6px; }
  .mc-num { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .pstamp.thump, .sheet, .sheet-backdrop { animation: none; }
}

/* =========================================================
   Version 2: Fotos, Album, Einmalkamera
   ========================================================= */
:root {
  --album: #24272c;
  --album-ink: #d9d4c8;
  --polaroid: #fbfaf6;
  --f-hand: "Momo Signature", "Snell Roundhand", cursive;
}

/* Leiste mit vier Reitern */
.tabbar a { min-width: 62px; padding-inline: 8px; }
@media (max-width: 420px) {
  .tabbar { gap: 8px; }
  .tabbar a { min-width: 0; width: 60px; padding-inline: 2px; }
  .fab { width: 54px; height: 54px; }
}

/* Knopf mit Kamera */
.btn-camera svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-camera .cam { width: 34px; height: 24px; stroke-width: 6; }
.btn-wide { width: 100%; justify-content: flex-start; text-align: left; }

/* Fotos am Stempel */
.photo-box { display: grid; gap: 10px; padding-top: 4px; border-top: 1px dashed var(--line); }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; }
.strip-head h3 { font: 800 24px/1 var(--f-display); text-transform: uppercase; }
.strip-head h3 .muted { font: 400 14px/1 var(--f-body); text-transform: none; margin-left: 4px; }
.private-note { font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.private-note::before { content: "🔒 "; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.strip-photo { flex: none; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.strip-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.strip-status { margin: 0; font-size: 14px; }
.strip-status:empty { display: none; }
.photo-box > .btn { justify-self: start; }

/* Album */
.album {
  background: var(--album);
  color: var(--album-ink);
  border-radius: 18px;
  padding: 22px 16px 28px;
  display: grid;
  gap: 34px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), var(--shadow);
}
.album-entry { display: grid; gap: 16px; }
.ae-head { display: flex; align-items: center; gap: 12px; }
.ae-head h2 { font: 800 28px/1 var(--f-display); text-transform: uppercase; color: #f4f1ea; }
.ae-head .muted { color: #a9a49a; margin: 4px 0 0; font-size: 14px; }
.ae-stamp {
  flex: none;
  width: 74px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--paper) var(--paper-img, none) center / cover;
  isolation: isolate;
  cursor: pointer;
  transform: rotate(-4deg);
}
.ae-stamp svg { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.polaroids {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 24px 14px;
}
.polaroid {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 8px 8px 6px;
  border: 0;
  background: var(--polaroid);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .7);
  transform: rotate(var(--rot));
  cursor: pointer;
  transition: transform .2s;
}
.polaroid:hover { transform: rotate(0deg) scale(1.03); }
.polaroid:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.polaroid::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 56px;
  height: 20px;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape);
  opacity: .55;
  mix-blend-mode: normal;
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #ddd; }
.pol-cap { font: 600 20px/1.1 var(--f-hand); color: #3b3a36; text-align: center; min-height: 22px; }
.polaroid.developing img { animation: develop 3.2s ease-out both; }
@keyframes develop {
  0% { filter: brightness(2.4) sepia(1) contrast(.4); }
  60% { filter: brightness(1.2) sepia(.4) contrast(.85); }
  100% { filter: none; }
}
.album-empty { justify-items: center; text-align: center; gap: 12px; padding: 40px 20px; }
.album-empty .cam { width: 140px; fill: none; stroke: var(--album-ink); stroke-width: 3; stroke-linejoin: round; transform: rotate(-6deg); }
.album-empty h2 { font: 800 30px/1 var(--f-display); text-transform: uppercase; color: #f4f1ea; }
.album-empty p { margin: 0; max-width: 46ch; color: #b9b4aa; }
.album-screen .btn-camera .cam { stroke: currentColor; }

/* Vollbild-Fotos */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #0b0d10;
  color: #f2f2f2;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.vw-top, .vw-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--side-r) 10px var(--side-l);
}
.vw-top { padding-top: calc(var(--top) + 10px); }
.vw-bottom { padding-bottom: calc(var(--bottom) + 14px); }
.vw-bottom > div { display: grid; gap: 2px; min-width: 0; }
.vw-bottom strong { font-weight: 600; }
.vw-bottom span { color: #a8adb5; font-size: 14px; }
.vw-count { font: 500 13px/1 var(--f-mono); color: #a8adb5; }
.vw-btn, .vw-nav { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.vw-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  min-height: 0;
}
.vw-track::-webkit-scrollbar { display: none; }
.vw-slide { margin: 0; scroll-snap-align: center; display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.vw-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.vw-prev { left: calc(var(--side-l) - 4px); }
.vw-next { right: calc(var(--side-r) - 4px); }
.vw-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .vw-nav { display: none; } }
.vw-del { color: #ff9a92; }

/* Einmalkamera */
.film-top { background: #1f2227; color: #f3d36b; }
.film-top .icon-btn.on-cover { color: #f3d36b; border-color: rgba(243, 211, 107, .35); }
.develop-msg { margin: 8px 0 0; font-weight: 500; }
.film {
  display: flex !important;
  gap: 6px;
  overflow-x: auto;
  padding: 10px;
  border-radius: 6px;
  background: #1f2227;
  background-image: radial-gradient(circle, var(--surface) 3px, transparent 3.5px), radial-gradient(circle, var(--surface) 3px, transparent 3.5px);
  background-size: 16px 10px, 16px 10px;
  background-position: 0 3px, 0 calc(100% - 3px);
  background-repeat: repeat-x;
  padding-block: 18px;
}
.film img { flex: none; width: 74px; height: 74px; object-fit: cover; border-radius: 3px; }
.film-more { flex: none; display: grid; place-items: center; width: 74px; color: #f3d36b; font: 600 18px/1 var(--f-mono); }
.dv-when { margin: 2px 0 0; font: 800 26px/1 var(--f-display); text-transform: uppercase; }
.dv-place { margin: 2px 0 10px; font: 800 30px/1 var(--f-display); text-transform: uppercase; }
.dv-place .muted { font-weight: 800; }
.dv-choices { display: grid; gap: 8px; margin-top: 10px; }
.dv-other { display: grid !important; grid-template-columns: 1fr auto; gap: 8px !important; align-items: end; margin-top: 14px; }
.tk-photos { border-style: solid; border-color: var(--line); background: var(--surface-2); }

/* Karten-Popup mit Fotos */
.pop-photos { display: flex; gap: 4px; margin-bottom: 8px; }
.pop-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.pop-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   Version 3: Freunde
   ========================================================= */
.book { display: grid; }
@media (max-width: 420px) {
  .tabbar { gap: 6px; }
  .tabbar-pill { padding: 4px; }
  .tabbar a { width: 54px; font-size: 10px; }
  .fab { width: 52px; height: 52px; }
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px double var(--c);
  color: var(--c);
  background: var(--sticker-bg);
  font: 600 22px/1 var(--f-stamp);
  transform: rotate(-6deg);
}
.avatar.big { width: 64px; height: 64px; font-size: 30px; border-width: 4px; }
.notice { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); background: var(--surface); }
.friend-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
}
.friend-card:hover { border-color: var(--muted); }
.fc-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.fc-text strong { font-size: 17px; }
.fc-text span { color: var(--muted); font-size: 14px; }
.fc-text .fc-common { color: var(--accent); font-weight: 500; }
.chev { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Gepäckband */
.belt { display: grid; gap: 6px; }
.belt h2 { font: 800 34px/1 var(--f-display); text-transform: uppercase; }
.belt > .muted { margin: 0 0 8px; }
.tags {
  list-style: none;
  margin: 0;
  padding: 16px 12px;
  display: grid;
  gap: 10px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 56px),
    #3a3f47;
}
.tag {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 28px;
  border-radius: 6px 14px 14px 6px;
  background: #efe6d2;
  color: #2b2620;
  text-decoration: none;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .7);
}
.tag::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #3a3f47;
  box-shadow: inset 0 0 0 2px #c9b98f;
}
.tag-stamp {
  flex: none;
  width: 70px;
  padding: 4px;
  border-radius: 6px;
  background: var(--paper) var(--paper-img, none) center / cover;
  isolation: isolate;
}
.tag-stamp svg { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.tag-text { display: grid; gap: 2px; min-width: 0; font-size: 15px; line-height: 1.35; }
.tag-text .muted { color: #6f6656; font-size: 13px; }
.new { font-style: normal; font-weight: 600; color: #b3261e; }

/* Profil */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 500; width: max-content; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fh { display: flex; align-items: center; gap: 14px; }
.subtabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: max-content; max-width: 100%; }
.subtabs a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.subtabs a.on { background: var(--fg); color: var(--bg); }
#fr-body { display: grid; gap: 14px; }
.friend-stats .map-card { width: 100%; max-width: none; box-shadow: none; }
.map-box-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.map-box.leaflet-container, .map-box { position: relative; inset: auto; height: min(62vh, 560px); background: var(--ocean); }

/* Vergleich */
.duel { gap: 14px; }
.duel-head { display: flex; justify-content: space-between; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.duel-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; }
.duel-n { font: 800 32px/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--muted); }
.duel-n:last-child { text-align: right; }
.duel-n.lead { color: var(--fg); }
.duel-bars { display: grid; gap: 4px; }
.duel-label { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.duel-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.duel-track span { display: block; height: 100%; border-radius: 99px; }
.duel-track .me { background: var(--visited); }
.duel-track .them { background: var(--cover); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }

/* Bordkarte: Tipps von Freunden */
.tk-friends { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Schalter */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { flex: none; position: relative; width: 50px; height: 30px; border-radius: 99px; background: var(--line); transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =========================================================
   Abzeichen: Kino-Abreißtickets
   ========================================================= */
.badges { display: grid; gap: 12px; }
.badges-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.badges-head h2 { font: 800 34px/1 var(--f-display); text-transform: uppercase; }
.badge-grid { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; align-items: start; }
.badge-grid.compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.badge-btn {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.badge-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.badge-ticket svg, .badge-big svg { display: block; width: 100%; height: auto; overflow: visible; }
.badge-btn:not(.locked) .badge-ticket { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .22)); transition: transform .2s; }
.badge-grid li:nth-child(odd) .badge-btn:not(.locked) .badge-ticket { transform: rotate(-1.6deg); }
.badge-grid li:nth-child(even) .badge-btn:not(.locked) .badge-ticket { transform: rotate(1.2deg); }
.badge-btn:not(.locked):hover .badge-ticket { transform: rotate(0) translateY(-3px); }
.badge-sub { font-size: 12px; line-height: 1.3; }
.badge-bar { width: 100%; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.badge-bar span { display: block; height: 100%; background: var(--accent); }
.badge-stage { display: grid; place-items: center; padding: 26px 12px; border-radius: 12px; background: var(--surface-2); }
.badge-big { width: min(92%, 420px); color: var(--muted); }
.badge-big:not(.locked) { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); transform: rotate(-2deg); }
.badge-row { display: grid; gap: 18px; width: 100%; justify-items: center; }
.badge-status { margin: 0; font: 500 14px/1.4 var(--f-mono); color: var(--muted); }
.badge-big.pop.thump { animation: tearoff .6s cubic-bezier(.25, .7, .35, 1) both; }
@keyframes tearoff {
  0% { transform: translateY(-40px) rotate(-10deg) scale(1.08); opacity: 0; }
  55% { transform: translateY(4px) rotate(1deg); opacity: 1; }
  80% { transform: translateY(-2px) rotate(-3deg); }
  100% { transform: rotate(-2deg); opacity: 1; }
}
.sheet-badge > .btn { align-self: center; }
@media (prefers-reduced-motion: reduce) { .badge-big.pop.thump { animation: none; } }

/* =========================================================
   Neue Aufteilung: Pass als Start, ＋ in der Mitte
   ========================================================= */
.tabbar { gap: 0; }
.tabbar-pill { align-items: center; }
.tabbar-pill .fab {
  width: 58px;
  height: 58px;
  margin: -18px 4px 0;
  box-shadow: 0 0 0 5px var(--bg), var(--shadow);
}
@media (max-width: 420px) {
  .tabbar-pill { padding: 4px; }
  .tabbar a { width: 58px; min-width: 0; }
  .tabbar-pill .fab { width: 54px; height: 54px; margin-inline: 2px; }
}
.small { font-size: 13px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* Pass: Kopf, Reiter */
.gear svg { width: 22px; height: 22px; }
.pass-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#pass-body { display: grid; gap: 14px; }

/* Personalseite */
.dp-wrap { max-width: 520px; }
.datapage {
  container-type: inline-size;
  position: relative;
  display: grid;
  gap: 18px;
  padding: 9% 7% 6%;
  border-radius: 9px;
  background: var(--paper) var(--paper-img, none) center / cover;
  color: #22302c;
}
.dp-head { text-align: center; font: 500 clamp(7px, 2cqw, 10px)/1 var(--f-mono); letter-spacing: .32em; color: var(--paper-ink); }
.dp-top { display: grid; grid-template-columns: 34% 1fr; gap: 6%; align-items: start; }
.dp-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 35 / 45;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #dfe7e3;
  box-shadow: inset 0 0 0 1px rgba(40, 70, 60, .25);
  cursor: pointer;
}
.dp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85) contrast(1.05); }
.dp-initials { font: 600 clamp(28px, 13cqw, 64px)/1 var(--f-stamp); color: var(--cover); letter-spacing: .04em; }
.dp-photo-hint { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font: 500 clamp(8px, 2.2cqw, 11px)/1.1 var(--f-mono); color: var(--paper-ink); }
.dp-photo:focus-visible { outline: 2px solid var(--select, #1f4fa8); outline-offset: 3px; }
.dp-fields, .dp-stats { margin: 0; display: grid; gap: 10px; }
.dp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; padding-top: 14px; border-top: 1px dashed rgba(60, 110, 95, .4); }
.dp-field { min-width: 0; }
.dp-field dt { font: 500 clamp(7px, 2.1cqw, 10px)/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-ink); }
.dp-field dt span { opacity: .7; }
.dp-field dd { margin: 2px 0 0; font: 600 clamp(14px, 4.4cqw, 21px)/1.1 var(--f-stamp); text-transform: uppercase; overflow-wrap: anywhere; }
.dp-stats .dp-field dd { font: 800 clamp(24px, 8cqw, 40px)/1 var(--f-display); }
.dp-field dd small { font: 500 clamp(9px, 2.4cqw, 12px)/1 var(--f-mono); text-transform: none; color: var(--paper-ink); }
.dp-sign { display: grid; gap: 2px; }
.dp-sign span { font: 500 clamp(7px, 2.1cqw, 10px)/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-ink); }
.dp-sign em { font: 600 clamp(26px, 9cqw, 42px)/1 var(--f-hand); font-style: normal; color: #1d3d8a; border-bottom: 1px solid rgba(60, 110, 95, .4); padding-bottom: 4px; }
.dp-mrz {
  font: 500 calc(100cqw / 27.5)/1.5 var(--f-mono);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #2a3a36;
  padding-top: 8px;
}

/* Einstecktasche hinten im Pass */
.pocket-cover { width: 100%; max-width: 900px; justify-self: center; background: var(--cover); border-radius: 18px; padding: 14px; box-shadow: inset 0 0 0 1px var(--cover-edge), var(--shadow); }
.pocket {
  position: relative;
  padding: 18px 14px 20px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cover) 70%, #000);
  box-shadow: inset 0 0 0 2px rgba(240, 220, 174, .25), inset 0 0 0 5px color-mix(in srgb, var(--cover) 70%, #000), inset 0 0 0 6px rgba(240, 220, 174, .35);
}
.pocket-title { margin: 0 0 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 500 12px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cover-fg); }
.pocket-title span { opacity: .75; letter-spacing: .06em; }
.pocket .badge-btn { color: rgba(240, 220, 174, .75); }
.pocket .badge-bar { background: rgba(255, 255, 255, .15); }
.pocket .badge-bar span { background: var(--cover-fg); }

/* Karte: kompakte Zahlen und Umschalter */
.viewtoggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.viewtoggle a { padding: 6px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; }
.viewtoggle a.on { background: var(--fg); color: var(--bg); }
.map-card.compact { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; }
.map-card.compact .mc-world { flex: 1; min-width: 0; }
.mcc-num { display: grid; justify-items: center; }
.map-card.compact.empty p { margin: 0; flex: 1; font-size: 14px; }
@media (max-width: 420px) { .map-card.compact .mc-world > span { display: none; } }

/* ＋ Auswahl */
.add-choices { display: grid; gap: 10px; }
.add-choice {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
}
.add-choice svg { grid-row: 1 / 3; width: 56px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.add-choice strong { font: 800 24px/1 var(--f-display); text-transform: uppercase; }
.add-choice span { color: var(--muted); font-size: 14px; }
.ac-ticket svg { color: var(--cover); }
.ac-camera svg { color: #b8901f; }
.add-choice:hover { border-color: var(--muted); }
.add-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Einstellungen */
.set-block { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.set-block h3 { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.set-block p { margin: 0; }
.set-photo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.set-photo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.set-name { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.set-block .btn { justify-self: start; }

/* Profilbild */
.avatar.photo { padding: 0; overflow: hidden; border: 0; transform: none; background: var(--surface-2); }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 84px; height: 84px; font-size: 34px; border-width: 4px; }

/* Freunde einladen */
.invite-card { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--cover); }
.invite-card h2 { font: 800 26px/1 var(--f-display); text-transform: uppercase; }
.invite-card p { margin: 4px 0 0; }
.invite-card > .btn { justify-self: start; }

/* Umschalter Karte | Koffer: immer an derselben Stelle */
.view-switch {
  position: fixed;
  z-index: 850;
  top: calc(var(--top) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.view-switch a { padding: 8px 20px; font-size: 15px; }
.map-top { top: calc(var(--top) + 66px); }
.koffer-screen { padding-top: calc(var(--top) + 72px); }

/* Freunde: Gepäckanhänger mit Briefmarken-Passbild */
.friend-list { gap: 12px; }
.friend-card {
  position: relative;
  min-height: 118px;
  gap: 16px;
  padding: 14px 18px 14px 36px;
  border: 0;
  border-radius: 8px 18px 18px 8px;
  background: #efe6d2;
  color: #2b2620;
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .6);
}
.friend-card:hover { transform: translateY(-2px); }
.friend-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px #c9b98f;
}
.friend-card .fc-text strong { font: 800 26px/1 var(--f-display); text-transform: uppercase; }
.friend-card .fc-text span { color: #6f6656; }
.friend-card .fc-text .fc-common { color: var(--cover); }
.friend-card .chev { stroke: #6f6656; }
.friend-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stamp-photo {
  --r: 3px;
  flex: none;
  width: 68px;
  padding: calc(2 * var(--r));
  background:
    radial-gradient(var(--r), #0000 97%, #fffdf8) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#fffdf8 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
  transform: rotate(-3deg);
}
.sp-inner { display: grid; place-items: center; aspect-ratio: 35 / 45; overflow: hidden; background: #dfe7e3; }
.sp-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-initials { font: 600 26px/1 var(--f-stamp); color: var(--c); letter-spacing: .03em; }


/* =========================================================
   Look „Sticker-Club“ (November 2026)
   Vier Schriften, echtes Papier, Sticker mit weißem Rand.
   Schatten nur für Dinge, die auf etwas liegen; Bedienung bleibt flach.
   ========================================================= */
body { font-synthesis: none; background: var(--creme); color: var(--tanne); }
.paper, .datapage, .label, .belt-label, .card, .invite-card, .friend-card, .tag, .cover-card, .notice {
  background-image: var(--tex);
  background-size: 900px auto;
  background-blend-mode: multiply;
}

/* ---------- Hintergründe pro Bereich ---------- */
body[data-view="pass"] {
  background-color: var(--tanne);
  background-image: repeating-linear-gradient(90deg, transparent 0 21px, rgba(220, 227, 162, .11) 21px 22.5px);
  color: var(--creme);
}
body[data-view="stempel"] { background-color: var(--himmel); }
body[data-view="stempel"]::before {
  content: "";
  position: fixed;
  left: -50vmax; top: -50vmax;
  width: 200vmax; height: 200vmax;
  transform: rotate(45deg);
  background-image: conic-gradient(var(--himmel) 25%, #CDDCF2 0 50%, var(--himmel) 0 75%, #CDDCF2 0);
  background-size: 56px 56px;
  z-index: -1;
  pointer-events: none;
}
body[data-view="karte"] { background: var(--pistazie); }
body[data-view="album"] { background: var(--butter); }
body[data-view="album"]::before {
  content: "";
  position: fixed;
  left: 50%; top: 50%;
  width: min(108vw, 560px); aspect-ratio: 1;
  transform: translate(-50%, -46%) rotate(8deg);
  background-color: var(--creme);
  background-image: var(--tex);
  background-size: 900px auto;
  background-blend-mode: multiply;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50.0 0.0 L58.8 17.2 L75.0 6.7 L74.0 26.0 L93.3 25.0 L82.8 41.2 L100.0 50.0 L82.8 58.8 L93.3 75.0 L74.0 74.0 L75.0 93.3 L58.8 82.8 L50.0 100.0 L41.2 82.8 L25.0 93.3 L26.0 74.0 L6.7 75.0 L17.2 58.8 L0.0 50.0 L17.2 41.2 L6.7 25.0 L26.0 26.0 L25.0 6.7 L41.2 17.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50.0 0.0 L58.8 17.2 L75.0 6.7 L74.0 26.0 L93.3 25.0 L82.8 41.2 L100.0 50.0 L82.8 58.8 L93.3 75.0 L74.0 74.0 L75.0 93.3 L58.8 82.8 L50.0 100.0 L41.2 82.8 L25.0 93.3 L26.0 74.0 L6.7 75.0 L17.2 58.8 L0.0 50.0 L17.2 41.2 L6.7 25.0 L26.0 26.0 L25.0 6.7 L41.2 17.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  z-index: -1;
  pointer-events: none;
}
body[data-view="freunde"], body[data-view="freund"] { background: var(--espresso); color: var(--creme); }
body[data-view="freunde"]::before {
  content: "FERNWEH FERNWEH\A FERNWEH FERNWEH\A FERNWEH FERNWEH\A FERNWEH FERNWEH\A FERNWEH FERNWEH\A FERNWEH FERNWEH\A FERNWEH FERNWEH";
  white-space: pre;
  position: fixed;
  left: -24px;
  top: calc(var(--top) + 96px);
  font: 400 64px/.95 var(--f-display);
  color: var(--rose);
  opacity: .9;
  z-index: -1;
  pointer-events: none;
}
body[data-view="login"] { background: var(--creme); }

/* ---------- Schrift ---------- */
.eyebrow { font: 800 11px/1.2 var(--f-body); letter-spacing: .14em; color: var(--muted); }
body[data-view="pass"] .eyebrow, body[data-view="freunde"] .eyebrow, body[data-view="freund"] .eyebrow { color: var(--pistazie); }
.screen-head h1 { font: 400 clamp(28px, 8vw, 40px)/1 var(--f-display); text-transform: uppercase; }
.message h2 { font: 400 26px/1.05 var(--f-display); text-transform: none; }
.hint { font: 500 13px/1.5 var(--f-body); color: var(--muted); }
body[data-view="pass"] .hint, body[data-view="freunde"] .hint, body[data-view="freund"] .hint { color: rgba(251, 244, 222, .8); }
.hand { margin: 0; font: 400 19px/1.25 var(--f-hand); color: var(--espresso); }
.field > span, fieldset > legend, .tk-label { font: 800 11px/1.2 var(--f-body); letter-spacing: .12em; }

/* ---------- Bedienung: flach, ohne Schatten ---------- */
.btn {
  border-radius: 999px;
  border: 2px solid var(--tanne);
  background: transparent;
  color: var(--tanne);
  font: 800 15px/1.1 var(--f-body);
  padding: 10px 18px;
}
.btn:hover { border-color: var(--tanne); background: rgba(18, 74, 44, .06); }
.btn-primary, .btn-cover { background: var(--tanne); color: var(--creme); border-color: var(--tanne); }
.btn-primary:hover, .btn-cover:hover { background: #0F3F25; }
.btn-lime { background: var(--limette); color: var(--tanne); border-color: var(--limette); }
.btn-lime:hover { background: #CCD63F; }
.btn-lime svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.btn-quiet { background: transparent; }
.btn-danger { border-color: transparent; color: var(--bad); }
.btn-big { border-radius: 999px; }
.btn-small { min-height: 34px; padding: 6px 14px; font-size: 12px; }
.icon-btn { border: 0; background: var(--creme); color: var(--tanne); width: 44px; height: 44px; }
.gear { background: var(--butter); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select {
  background: var(--weiss);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--tanne);
}
.seg { border: 0; background: var(--surface-2); }
.seg input:checked + label { background: var(--tanne); color: var(--creme); }
.ic span:first-of-type { background: var(--weiss); border-color: var(--line); }
.toast { background: var(--tanne); color: var(--creme); font-weight: 700; }
.chip-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--butter); color: var(--tanne); font: 800 13px/1 var(--f-body); }
.chip-butter { background: var(--butter); }
.chip-flieder { background: var(--flieder); }
.chip-himmel { background: var(--himmel); }
.chip-rose { background: var(--rose); }

/* ---------- Leiste unten ---------- */
.tabbar-pill {
  padding: 8px;
  gap: 0;
  background: var(--creme);
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.tabbar a {
  width: 68px;
  min-width: 0;
  height: 52px;
  padding: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  border-radius: 26px;
  color: var(--tanne);
  font: 700 11px/1.1 var(--f-body);
}
.tabbar a.active { background: var(--tanne); color: var(--creme); font-weight: 800; }
body[data-view="stempel"] .tabbar-pill, body[data-view="karte"] .tabbar-pill, body[data-view="album"] .tabbar-pill { background: var(--tanne); }
body[data-view="stempel"] .tabbar a, body[data-view="karte"] .tabbar a, body[data-view="album"] .tabbar a { color: var(--creme); }
body[data-view="stempel"] .tabbar a.active, body[data-view="karte"] .tabbar a.active, body[data-view="album"] .tabbar a.active { background: var(--butter); color: var(--tanne); }
.tabbar-pill .fab {
  width: 56px;
  height: 56px;
  margin: 0 4px;
  padding: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
}
.fab svg { width: 54px; height: 54px; }
.fab .fab-shape { fill: var(--rose); stroke: none; }
.fab .fab-plus { fill: none; stroke: var(--tanne); stroke-width: 7; stroke-linecap: round; }
@media (max-width: 420px) {
  .tabbar-pill { padding: 6px; }
  .tabbar a { width: 62px; }
  .tabbar-pill .fab { width: 54px; height: 54px; margin-inline: 2px; }
}
@media (max-width: 360px) { .tabbar a { width: 56px; font-size: 10px; } }

/* ---------- Blätter ---------- */
.sheet { background: var(--creme); color: var(--tanne); }
.sheet-head h2 { font: 400 24px/1.05 var(--f-display); text-transform: none; }
.sheet-backdrop { background: rgba(18, 30, 22, .5); }
.add-choice { background: var(--weiss); border: 0; border-radius: 18px; }
.add-choice:hover { background: #FFF9E8; }
.add-choice strong { font: 400 20px/1.05 var(--f-display); text-transform: none; }
.ac-ticket svg { color: var(--tomate); }
.ac-camera svg { color: #C99A2E; }

/* ---------- Sticker, Etiketten, Klebeband ---------- */
.sticker-shape {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--s);
  height: var(--s);
  transform: rotate(var(--rot, 0deg));
  filter: drop-shadow(0 1px 1px rgba(40, 24, 14, .3));
}
.sticker-pill { width: var(--w); height: var(--h); }
.sticker-shape > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ss-text { position: relative; display: grid; justify-items: center; text-align: center; line-height: 1; }
.ss-text b { font: 400 28px/1 var(--f-display); }
.ss-text span { margin-top: 3px; font: 800 12px/1.1 var(--f-body); }
.seal { display: block; width: var(--s); height: var(--s); filter: drop-shadow(0 1px 1px rgba(40, 24, 14, .3)); }
.seal svg { display: block; width: 100%; height: 100%; }
.tape { position: absolute; width: 64px; height: auto; pointer-events: none; z-index: 2; }
.tape-tl { left: -18px; top: -8px; transform: rotate(-30deg); }
.tape-tr { right: -20px; top: -8px; transform: rotate(32deg); }
.tape-top { left: 50%; top: -13px; width: 72px; margin-left: -36px; transform: rotate(3deg); }
.clip { position: absolute; width: 17px; height: auto; z-index: 3; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(40, 24, 14, .35)); }
.label {
  position: relative;
  display: inline-block;
  padding: 16px 20px 12px;
  background-color: var(--himmel);
  box-shadow: var(--shadow);
  color: var(--tanne);
  transform: rotate(-3.5deg);
}
.label h1 { margin: 0; font: 400 36px/1 var(--f-display); text-transform: uppercase; }
.label-himmel { background-color: var(--himmel); width: min(262px, 68vw); }
.label-butter { background-color: var(--butter); transform: rotate(-4deg); margin: 6px 0 0 4px; }
.label-butter h1 { color: var(--tomate); font-size: 42px; }
.label-rose { background-color: var(--rose); transform: rotate(-3deg); margin: 6px 0 0 4px; }
.label-rule { height: 1.5px; margin: 10px 0 8px; background: var(--tanne); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.label-row span { font: 800 10px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.label-row em { font: 400 17px/1.2 var(--f-hand); font-style: normal; color: var(--espresso); white-space: nowrap; }
.label-hand { margin: 6px 0 0; font: 400 15px/1.3 var(--f-hand); color: var(--espresso); }

/* ---------- Pass ---------- */
.pass-screen { gap: 12px; }
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass-top .eyebrow { margin: 0; }
body[data-view="stempel"] .pass-top .eyebrow { color: var(--tanne); }
.pass-head { position: relative; }
.pass-label-wrap { position: relative; height: 132px; max-width: 420px; }
.pass-label-wrap .label { position: absolute; left: 6px; top: 8px; min-height: 116px; }
.pl-burst { position: absolute; right: -4px; top: -10px; }
.pl-seal { position: absolute; right: 22px; bottom: -14px; transform: rotate(-10deg); }
.subtabs {
  width: 100%;
  max-width: 520px;
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 26px;
  background: rgba(251, 244, 222, .14);
}
.subtabs a { flex: 1; display: grid; place-items: center; height: 40px; padding: 0 10px; border-radius: 22px; color: var(--creme); font: 700 14px/1 var(--f-body); }
.subtabs a.on { background: var(--butter); color: var(--tanne); font-weight: 800; }
body[data-view="stempel"] .subtabs { background: var(--tanne); }

.dp-wrap { display: grid; gap: 14px; width: 100%; max-width: 520px; }
.datapage {
  gap: 0;
  padding: 14px 16px;
  border-radius: 24px;
  background-color: var(--creme);
  color: var(--tanne);
  box-shadow: var(--shadow);
}
.dp-head { margin: 0 0 12px; font: 500 11px/1 var(--f-stamp); letter-spacing: .28em; color: var(--espresso); }
.dp-top { display: flex; gap: 18px; align-items: flex-start; }
.dp-photo {
  position: relative;
  display: block;
  flex: none;
  width: 118px;
  aspect-ratio: auto;
  padding: 7px 7px 28px;
  border-radius: 0;
  overflow: visible;
  background: var(--weiss);
  box-shadow: var(--sh-obj);
  transform: rotate(-4deg);
}
.dp-photo > img:not(.clip), .dp-photo-empty { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #C9C5BD; filter: none; }
.dp-photo .clip { width: 17px; height: auto; }
.dp-photo-hint { position: absolute; left: 0; right: 0; bottom: 7px; font: 400 13px/1 var(--f-hand); color: var(--espresso); text-align: center; }
.dp-clip { left: 14px; top: -17px; }
.dp-fields { flex: 1; min-width: 0; gap: 9px; }
.dp-field dt { font: 800 10px/1.2 var(--f-body); letter-spacing: .1em; color: #6B5A4C; }
.dp-field dd { margin-top: 1px; font: 700 17px/1.15 var(--f-body); letter-spacing: -.01em; text-transform: none; }
.dp-mrz {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1.5px dashed #C9B99A;
  font: 600 calc(100cqw / 30)/1.5 var(--f-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--espresso);
}
.stat-stickers { display: flex; justify-content: space-between; align-items: center; min-height: 118px; padding: 0 2px; }

.book { position: relative; }
.passport { position: relative; max-width: 500px; padding: 0; border-radius: 22px; background: none; box-shadow: var(--shadow); }
.passport .pages { border-radius: 22px; }
.book-clip { right: 34px; top: -20px; width: 20px; }
.page {
  background-color: var(--creme);
  background-image: var(--tex), var(--paper-img, none);
  background-size: 900px auto, cover;
  background-position: 0 0, center;
  background-blend-mode: multiply;
}
.page:nth-child(odd)::after { background: linear-gradient(to left, rgba(18, 74, 44, .12), rgba(18, 74, 44, 0) 8%); }
.page:nth-child(even)::after { background: linear-gradient(to right, rgba(18, 74, 44, .12), rgba(18, 74, 44, 0) 8%); }
.page-head, .page-num { font-family: var(--f-stamp); color: var(--espresso); }
.page-num { font-weight: 600; }
.page-empty { color: var(--tanne); }
.pass-nav { justify-content: center; gap: 10px; font: 800 14px/1 var(--f-body); color: var(--tanne); }
.pass-nav .page-info { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 0; padding: 0 18px; border-radius: 22px; background: var(--tanne); color: var(--creme); }
body[data-view="stempel"] .hint { color: var(--tanne); text-align: center; }

.pocket-cover { padding: 12px; border-radius: 22px; background-color: var(--creme); background-image: var(--tex); background-size: 900px auto; background-blend-mode: multiply; box-shadow: var(--shadow); }
.pocket { background: var(--tanne); box-shadow: inset 0 0 0 5px var(--tanne), inset 0 0 0 6.5px rgba(247, 235, 166, .5); }
.pocket-title { color: var(--butter); font: 800 12px/1.2 var(--f-body); }
.pocket .badge-btn { color: rgba(247, 235, 166, .8); }
.pocket .badge-bar span { background: var(--butter); }
.badge-status { font: 600 14px/1.4 var(--f-body); }

/* ---------- Karte & Koffer ---------- */
.map-page, .koffer-screen { gap: 12px; padding-top: calc(var(--top) + 20px); }
.map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 44px; }
.map-head h1 { margin: 0; font: 400 clamp(24px, 8.4vw, 34px)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.map-head .hand { margin-bottom: 4px; white-space: nowrap; }
.viewtoggle { display: flex; width: 100%; max-width: 520px; gap: 4px; padding: 4px; border: 0; border-radius: 26px; background: var(--tanne); }
.viewtoggle a { flex: 1; display: grid; place-items: center; height: 40px; padding: 0; border-radius: 22px; color: var(--creme); font: 700 14px/1 var(--f-body); }
.viewtoggle a.on { background: var(--butter); color: var(--tanne); font-weight: 800; }
.map-frame { position: relative; height: max(320px, calc(100dvh - var(--top) - var(--bottom) - 300px)); }
.map-frame .map { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; }
.world-card {
  position: absolute;
  z-index: 500;
  left: 14px;
  top: 14px;
  width: 168px;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--creme);
  color: var(--tanne);
  box-shadow: var(--sh-obj);
}
.world-card p { margin: 0; font: 800 12px/1.2 var(--f-body); }
.world-card.empty { width: auto; right: 70px; }
.world-card.empty p { font-weight: 600; font-size: 14px; }
.world-card .mc-bar { margin-top: 6px; height: 10px; border-radius: 5px; background: var(--pistazie); box-shadow: none; }
.world-card .mc-bar span { background: var(--tomate); border-radius: 5px; }
.map-sticker { position: absolute; right: -12px; top: -28px; z-index: 600; }
.pin-wrap { background: none !important; border: 0 !important; }
.pin-art svg { display: block; overflow: visible; filter: drop-shadow(1px 1.5px .6px rgba(40, 24, 14, .35)); }
.leaflet-popup-content-wrapper { border-radius: 4px; background: var(--weiss); color: var(--tanne); box-shadow: var(--sh-obj); }
.leaflet-popup-tip { background: var(--weiss); }
.leaflet-popup-content { margin: 10px 12px 12px; font: 500 14px/1.4 var(--f-body); }
.pop strong { font: 400 18px/1.1 var(--f-display); }
.pop-photos img { border-radius: 2px; }
.pop-links { gap: 8px; }
.leaflet-container .pop a.btn { color: var(--tanne); text-decoration: none; }
.leaflet-container .pop a.btn-primary { color: var(--creme); }
.map-card { background: var(--creme); border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--tanne); border-radius: 22px; }
.mc-num { font: 400 26px/1 var(--f-display); }
.mc-label { font: 800 10px/1.2 var(--f-body); }
.mc-cell { border-left-color: var(--line); }
.map-box-wrap { border: 0; border-radius: 22px; }
.case-group h3 { font: 800 11px/1 var(--f-body); color: var(--creme); }
.case-empty { color: var(--creme); }
.sticker { background-color: var(--weiss); background-image: var(--tex); background-size: 900px auto; background-blend-mode: multiply; box-shadow: 0 1px 1px rgba(40, 24, 14, .3); }
.st-n { font: 700 10px/1.2 var(--f-body); }

/* ---------- Album ---------- */
.album-top { display: flex; justify-content: flex-end; }
.album-head { display: grid; justify-items: center; gap: 6px; text-align: center; margin: 4px 0 8px; }
.album-head h1 { margin: 0; font: 400 34px/1 var(--f-display); }
.album-head .hand { font-size: 16px; }
.lock-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin: 4px 0 0; padding: 0 12px; border-radius: 15px; background: var(--tanne); color: var(--creme); font: 700 12px/1 var(--f-body); }
.lock-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.album { padding: 0; background: none; box-shadow: none; color: var(--tanne); }
.ae-head h2 { font: 400 24px/1.05 var(--f-display); text-transform: none; color: var(--tanne); }
.ae-head .muted { color: #5B5530; }
.ae-stamp { border-radius: 6px; background-color: var(--creme); background-image: var(--tex), var(--paper-img, none); background-size: 900px auto, cover; background-blend-mode: multiply; box-shadow: var(--sh-obj); }
.polaroid { padding: 8px 8px 10px; background: var(--weiss); box-shadow: var(--sh-obj); }
.polaroid::before { content: none; }
.polaroid img { background: #C9C5BD; }
.polaroid .pol-tape { position: absolute; top: -12px; left: 50%; width: 64px; height: auto; aspect-ratio: auto; object-fit: fill; background: none; transform: translateX(-50%) rotate(-4deg); }
.pol-cap { font: 400 15px/1.15 var(--f-hand); color: var(--espresso); min-height: 18px; }
.album.album-empty { padding: 34px 20px; border-radius: 24px; background-color: var(--creme); background-image: var(--tex); background-size: 900px auto; background-blend-mode: multiply; box-shadow: var(--shadow); }
.album-empty .cam { stroke: var(--tanne); }
.album-empty h2 { font: 400 22px/1.1 var(--f-display); text-transform: none; color: var(--tanne); }
.album-empty p { color: var(--muted); }

/* ---------- Freunde ---------- */
.friends-screen, .friend-screen { gap: 16px; }
.friends-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.friends-head h1 { margin: 0; font: 400 30px/1 var(--f-display); text-transform: uppercase; color: var(--creme); }
.invite-card { border: 0; border-radius: 22px; background-color: var(--creme); color: var(--tanne); }
.invite-card h2 { font: 400 20px/1.1 var(--f-display); text-transform: none; }
.notice { border: 0; border-radius: 16px; background-color: var(--creme); color: var(--tanne); }
.belt-label {
  position: relative;
  justify-self: center;
  width: min(304px, 88%);
  margin: 22px 0 6px;
  padding: 16px 18px;
  background-color: var(--butter);
  color: var(--tanne);
  text-align: center;
  transform: rotate(-4deg);
  box-shadow: var(--sh-obj);
}
.bl-top { margin: 0; font: 800 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.bl-hand { margin: 4px 0 0; font: 400 30px/1.2 var(--f-hand); color: var(--espresso); }
.bl-faces { display: flex; justify-content: center; margin-top: 10px; }
.bl-faces .avatar { width: 40px; height: 40px; margin-left: -8px; border: 2.5px solid var(--butter); font-size: 13px; box-sizing: content-box; }
.bl-faces .avatar:first-child { margin-left: 0; }
.avatar.more { background: var(--tanne); color: var(--creme); }
.bl-sum { margin: 8px 0 0; font: 700 13px/1.3 var(--f-body); }
.belt { gap: 0; }
.tags { padding: 0; gap: 10px; background: none; }
.tag { padding: 12px 12px 12px 14px; border-radius: 22px; background-color: var(--creme); color: var(--tanne); box-shadow: none; }
.tag::before { content: none; }
.tag-stamp { background-color: transparent; background-image: none; }
.tag-text .muted { color: #4D5E52; }
.new { color: #B5441E; }
.friends-all h2 { margin: 6px 0 12px; font: 400 22px/1 var(--f-display); text-transform: uppercase; color: var(--creme); }
.friend-card { background-color: var(--creme); color: var(--tanne); box-shadow: var(--sh-obj); }
.friend-card::before { background: var(--espresso); box-shadow: none; }
.friend-card .fc-text strong { font: 400 20px/1.05 var(--f-display); text-transform: none; }
.friend-card .fc-text span { color: #5B6B5F; }
.friend-card .fc-text .fc-common { color: #B5441E; font-weight: 700; }
.friend-card .chev { stroke: var(--tanne); }
.avatar { border: 0; background: var(--c, var(--rose)); color: var(--tanne); font: 800 15px/1 var(--f-body); transform: none; }
.avatar.big { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.friend-screen .back { color: var(--creme); }
.friend-screen .screen-head h1 { color: var(--creme); text-transform: none; font-size: clamp(26px, 7vw, 34px); }
.card { border: 0; border-radius: 22px; background-color: var(--creme); color: var(--tanne); }
.card h2 { font: 400 20px/1.1 var(--f-display); text-transform: none; }
.chips li { border: 0; background: var(--butter); color: var(--tanne); font: 700 13px/1.2 var(--f-body); }
.duel-head, .duel-label { font: 800 11px/1 var(--f-body); }
.duel-n { font: 400 26px/1 var(--f-display); }
.duel-track .them { background: var(--tanne); }

/* ---------- Bordkarte / Neuer Stempel ---------- */
.ticket-top { background: var(--rose); color: var(--tanne); font: 800 12px/1 var(--f-body); letter-spacing: .16em; }
.icon-btn.on-cover { background: transparent; border: 1.5px solid rgba(18, 74, 44, .3); color: var(--tanne); }
.film-top { background: var(--espresso); color: var(--butter); }
.film-top .icon-btn.on-cover { color: var(--butter); border-color: rgba(247, 235, 166, .4); }
.tk-dest { font: 400 clamp(24px, 7vw, 32px)/1.05 var(--f-display); text-transform: none; }
.pv-paper {
  border-radius: 14px;
  background-color: var(--creme);
  background-image: var(--tex), var(--paper-img, none);
  background-size: 900px auto, cover;
  background-blend-mode: multiply;
}
.tk-note { border: 0; border-radius: 14px; background: var(--surface-2); color: var(--tanne); }
.tk-friends { background: rgba(185, 192, 242, .4); }
.tk-photos { background: var(--butter); }
.tk-newland { display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 14px; align-items: center; }
.tk-newland p { margin: 0; font-size: 14px; }
.tk-badge { transform: rotate(-4deg); filter: drop-shadow(0 6px 6px rgba(40, 24, 14, .25)); }
.tk-badge svg { display: block; width: 100%; height: auto; overflow: visible; }
.dv-when { font: 400 22px/1.05 var(--f-display); text-transform: none; }
.dv-place { font: 400 26px/1.05 var(--f-display); text-transform: none; }
.strip-head h3 { font: 400 20px/1 var(--f-display); text-transform: none; }
.set-block h3 { font: 800 11px/1 var(--f-body); }

/* ---------- Anmeldung ---------- */
.cover { background: var(--tanne); color: var(--butter); box-shadow: var(--shadow); }
.cover-top, .cover-sub { font: 800 11px/1 var(--f-body); }
.cover-title { font: 400 clamp(32px, 10vw, 46px)/1 var(--f-display); letter-spacing: .06em; margin-right: -.06em; }
.cover-card { background-color: var(--creme); color: var(--tanne); }
.cover-card h2 { font: 400 22px/1.1 var(--f-display); text-transform: none; }
.sheet .eyebrow, body[data-view="pass"] .sheet .eyebrow, body[data-view="freunde"] .sheet .eyebrow, body[data-view="freund"] .sheet .eyebrow { color: var(--muted); }
.sheet .hint, body[data-view="pass"] .sheet .hint, body[data-view="freunde"] .sheet .hint, body[data-view="freund"] .sheet .hint { color: var(--muted); }
