/* ---------------------------------------------------------------------------
   WannaMeet — Trefft euch genau in der Mitte
   Design tokens ported verbatim from the Claude Design prototype.
--------------------------------------------------------------------------- */

:root {
  --ink: #16181d;
  --ink-2: #2b2e35;
  --green: #1f6f5c;
  --green-d: #1a5e4e;
  --muted: #9aa0a7;
  --muted-2: #8a9098;
  --label: #6b7280;
  --line: #eef0f1;
  --line-2: #e4e7e9;
  --chip: #f1f2f4;
  --map-bg: #e8ecef;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--ink);
}
a { color: var(--green); text-decoration: none; }
a:hover { color: #164f42; }
[hidden] { display: none !important; }

.mg-root {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.mg-map { position: absolute; inset: 0; z-index: 1; }

/* ---------- Leaflet overrides ---------- */
.mg-divicon { background: transparent !important; border: none !important; }
.leaflet-container { font-family: 'Instrument Sans', system-ui, sans-serif; background: var(--map-bg); }
.leaflet-control-zoom { border: none !important; box-shadow: 0 4px 14px rgba(0,0,0,.12) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { border: none !important; color: var(--ink) !important; background: #fff !important; width: 34px; height: 34px; line-height: 34px; }
.leaflet-control-zoom a:hover { background: #f4f5f6 !important; }
.leaflet-control-attribution { font: 400 10px 'Instrument Sans', sans-serif; background: rgba(255,255,255,.7) !important; }

/* ---------- distance / route labels ---------- */
.mg-dist-label {
  transform: translate(-50%, -50%);
  display: inline-block;
  background: #fff;
  color: var(--c, #16181d);
  border: 1.5px solid var(--c, #e4e7e9);
  font: 700 10.5px 'Instrument Sans', sans-serif;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 7px rgba(0,0,0,.16);
}
/* arrival-station callout (🚉 …) – sits just above the station dot */
.mg-station-label { transform: translate(-50%, calc(-100% - 9px)); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- scrollbars ---------- */
.mg-scroll::-webkit-scrollbar { width: 8px; }
.mg-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 8px; }

/* ---------- animations ---------- */
@keyframes mgpulse { 0% { transform: scale(.55); opacity: .75; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes mgspin  { to { transform: rotate(360deg); } }
@keyframes mgfade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes mgpop   { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes mgslide { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes mgdrop  { 0% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }

.mg-spin { animation: mgspin .8s linear infinite; }
.mg-spin-lg { animation: mgspin .9s linear infinite; margin-bottom: 16px; }

/* ---------- shared card ---------- */
.mg-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(20,22,26,.14), 0 1px 0 rgba(0,0,0,.03);
  overflow: hidden;
}

/* ---------- logo ---------- */
.mg-logo {
  position: fixed; left: 20px; top: 18px; z-index: 600;
  display: flex; flex-direction: column; gap: 1px; pointer-events: none;
}
.mg-logo-row { display: flex; align-items: center; gap: 9px; }
.mg-logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.mg-logo-img {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); display: block;
}
.mg-logo-word {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px;
  letter-spacing: -.02em; line-height: 1; color: var(--ink);
}
.mg-logo-word span { color: var(--green); }
.mg-logo-tag { padding-left: 39px; font-size: 11.5px; color: var(--muted-2); font-weight: 500; letter-spacing: .01em; }

/* ---------- top bar (language + auth) ---------- */
.mg-top-bar {
  position: fixed; left: 18px; bottom: 24px; z-index: 600;
  display: flex; align-items: center; gap: 8px;
}
.mg-lang {
  display: flex; background: #fff; border-radius: 11px; padding: 3px;
  box-shadow: 0 6px 20px rgba(20,22,26,.14);
}
.mg-lang-btn {
  border: none; background: transparent; border-radius: 8px; cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 12px;
  color: var(--muted-2); padding: 6px 11px; transition: all .15s;
}
.mg-lang-btn.is-active { background: var(--ink); color: #fff; }

.mg-auth-btn {
  display: flex; align-items: center; gap: 6px; border: none;
  background: #fff; color: var(--ink); font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 12.5px; padding: 7px 12px; border-radius: 11px;
  cursor: pointer; transition: all .15s; box-shadow: 0 6px 20px rgba(20,22,26,.14);
  position: relative;
}
.h-auth-btn:hover { background: #f6f7f8; }

.mg-profile-menu {
  position: absolute; bottom: 0; right: 0; background: #fff; border-radius: 11px;
  box-shadow: 0 6px 20px rgba(20,22,26,.14); overflow: hidden; min-width: 160px;
  animation: mgdrop .2s ease;
}
.mg-profile-item {
  display: flex; align-items: center; gap: 8px; width: 100%; border: none;
  background: transparent; padding: 10px 12px; cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; font-size: 12.5px; color: var(--ink);
  text-align: left; transition: background .15s;
}
.mg-profile-item:hover { background: #f1f2f4; }
.mg-profile-item svg { flex: none; }

/* ---------- historie: meine WannaMeets ---------- */
.mg-history-body { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.mg-history-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 1px solid var(--line-2); background: #fff; border-radius: 13px;
  padding: 12px 13px; cursor: pointer; text-align: left;
  font-family: 'Instrument Sans', sans-serif; transition: background .15s, border-color .15s;
}
.mg-history-item:hover { background: #f6f7f8; border-color: #d7dadd; }
.mg-history-item.is-current { border-color: var(--green); }
.mg-history-info { flex: 1; min-width: 0; }
.mg-history-name {
  font-weight: 600; font-size: 13.5px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mg-history-meta { margin-top: 2px; font-size: 11.5px; color: var(--muted-2); }
.mg-history-status {
  flex: none; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: #e9f0ed; color: var(--green);
}
.mg-history-status.is-closed { background: var(--chip); color: var(--muted-2); }
.mg-history-role {
  display: inline-block; margin-left: 7px; vertical-align: 1px;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  background: #ecebf5; color: #5a5f9e;
}
.mg-history-status.is-paused { background: #f5efe3; color: #946B2D; }
.mg-history-empty, .mg-history-loading { padding: 18px 4px; font-size: 12.5px; color: var(--muted-2); }

/* ---------- personen panel ---------- */
.mg-people-panel {
  position: fixed; right: 18px; top: 18px; z-index: 600;
  width: 340px; max-width: calc(100vw - 36px);
}
.mg-people-head { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 14px 14px 12px 16px; }
.mg-people-title { display: flex; align-items: baseline; gap: 8px; flex: 0 1 auto; min-width: 0; }
.mg-people-title-main { font-weight: 600; font-size: 14.5px; }
.mg-people-count { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Actions stay right-aligned; when the row can't hold title + actions they wrap
   onto a second line instead of overflowing the card edge (clipped button). */
.mg-people-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; margin-left: auto; }

/* compact icon-only button (e.g. Admin) */
.mg-btn-icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border: 1.5px solid var(--line-2); background: #fff;
  color: var(--label); border-radius: 10px; cursor: pointer; transition: all .15s;
}
.h-btn-icon:hover { border-color: var(--green); color: var(--green); }
.mg-btn-share {
  display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line-2);
  background: #fff; color: var(--label); font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 12.5px; padding: 7px 11px; border-radius: 10px;
  cursor: pointer; transition: all .15s;
}
.h-btn-share:hover { border-color: var(--green); color: var(--green); }
.mg-btn-share.is-shared { background: #e8f2ee; border-color: transparent; color: var(--green-d); }

.mg-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 12px);
  z-index: 1200; background: var(--ink); color: #fff; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 12.5px; padding: 10px 16px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28); opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s; max-width: min(90vw, 420px); text-align: center;
}
.mg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.mg-btn-dark {
  display: flex; align-items: center; gap: 6px; border: none;
  background: var(--ink); color: #fff; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 12.5px; padding: 8px 12px; border-radius: 10px;
  cursor: pointer; transition: transform .15s, background .15s;
}
.h-btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.mg-people-empty { padding: 6px 16px 18px; }
.mg-people-empty-box {
  border: 1.5px dashed #e2e5e8; border-radius: 12px; padding: 18px 14px;
  text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.5;
}
.mg-people-empty-box span { color: var(--ink); font-weight: 600; }

.mg-people-list { max-height: 44vh; overflow-y: auto; padding: 2px 12px 12px; }
.mg-person-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 8px;
  border-radius: 11px; animation: mgdrop .28s ease both;
}
.mg-person-row:hover { background: #f6f7f8; }
.mg-person-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.mg-person-info { flex: 1; min-width: 0; }
.mg-person-name { font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-person-addr { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* per-person ÖPNV arrival chip (transit mode): where this person gets off */
.mg-person-transit {
  display: flex; align-items: center; gap: 5px; margin-top: 3px;
  font-size: 11px; color: var(--green-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mg-person-transit-icon { flex: none; font-size: 11px; }
.mg-person-transit-txt { overflow: hidden; text-overflow: ellipsis; }
.mg-person-transit-txt b { font-weight: 700; }
.mg-person-transit-load { color: var(--muted-2); }
.mg-person-remove {
  flex: none; width: 26px; height: 26px; border: none; background: transparent;
  color: #b9bdc3; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mg-person-remove:hover { background: #f0e3e0; color: #c2603d; }

/* Verkehrsmittel pro Person: Emoji-Toggle in der Zeile */
.mg-person-travel {
  flex: none; width: 28px; height: 28px; border: 1px solid var(--line-2); background: #fff;
  border-radius: 9px; cursor: pointer; font-size: 13px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center; opacity: .55; transition: all .15s;
}
.mg-person-travel.is-set { opacity: 1; border-color: #cfe4dc; background: #f3faf7; }
.mg-person-travel:not(:disabled):hover { opacity: 1; border-color: var(--green); }
.mg-person-travel:disabled { cursor: default; }

/* Verkehrsmittel-Auswahl im Personen-Dialog */
.mg-travel-seg { display: flex; gap: 8px; }
.mg-travel-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 9px 8px; border: 1.5px solid var(--line-2); background: #fff;
  border-radius: 11px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 12.5px; color: var(--label); transition: all .15s;
}
.mg-travel-btn:hover { border-color: #d0d4d7; }
.mg-travel-btn.is-active { border-color: var(--green); background: #eef6f2; color: var(--green-d); }

/* ---------- action bar ---------- */
.mg-actionbar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 600;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.mg-actionbar-inner {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border-radius: 16px; box-shadow: 0 12px 34px rgba(20,22,26,.16); padding: 8px;
}
.mg-seg { display: flex; background: #f1f2f4; border-radius: 11px; padding: 3px; }
.mg-seg-btn {
  display: flex; align-items: center; gap: 6px; flex: none; padding: 7px 13px;
  border: none; background: transparent; border-radius: 9px;
  font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 12.5px;
  color: var(--muted-2); cursor: pointer; transition: all .18s;
}
.mg-seg-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.14); }

.mg-weight {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; background: #fff;
  border-radius: 20px; box-shadow: 0 6px 20px rgba(20,22,26,.12); padding: 5px 6px 5px 14px;
}
.mg-weight-label { font-size: 11.5px; font-weight: 600; color: var(--label); }
.mg-seg-sm { padding: 2px; }
.mg-seg-sm .mg-seg-btn { padding: 5px 12px; font-size: 12px; }

.mg-calc {
  display: flex; align-items: center; gap: 8px; flex: none; padding: 10px 18px;
  border: none; border-radius: 11px; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .18s;
  background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(31,111,92,.30);
}
.h-calc:not(:disabled):hover { transform: translateY(-1px); }
.mg-calc:disabled { background: #eceef0; color: #b4b9be; cursor: not-allowed; box-shadow: none; }

.mg-hint {
  font-size: 11.5px; color: var(--muted-2); background: rgba(255,255,255,.85);
  padding: 4px 12px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ---------- results panel ---------- */
.mg-results {
  position: fixed; left: 18px; top: 96px; bottom: 96px; z-index: 590;
  width: 340px; max-width: calc(100vw - 36px);
  display: flex; flex-direction: column; background: #fff; border-radius: 18px;
  box-shadow: 0 14px 40px rgba(20,22,26,.18);
  animation: mgslide .3s cubic-bezier(.2,.8,.2,1) both; overflow: hidden;
}
.mg-results-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.mg-results-head-row { display: flex; align-items: center; justify-content: space-between; }
.mg-results-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 16px; }
.mg-results-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mg-neu {
  border: none; background: #f1f2f4; color: var(--label); font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 11.5px; padding: 6px 10px; border-radius: 9px; cursor: pointer;
}
.h-neu:hover { background: #e8eaec; }

/* category switcher + filters inside results head */
.mg-catswitch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mg-catchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  border: 1px solid var(--line-2); background: #fff; border-radius: 20px; cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 12px; color: var(--label);
  transition: border-color .15s, background .15s;
}
.mg-catchip:hover { border-color: #d0d4d7; }
.mg-catchip.is-active { border-color: transparent; }
.mg-catchip-dot { width: 9px; height: 9px; border-radius: 50%; }

.mg-filterbar { display: flex; gap: 6px; margin-top: 10px; padding-bottom: 2px; overflow-x: auto; }
.mg-scroll-x::-webkit-scrollbar { height: 5px; }
.mg-scroll-x::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 8px; }
.mg-filterchip {
  flex: none; padding: 5px 11px; border: 1px solid var(--line-2); background: #fff;
  border-radius: 20px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 11.5px; color: var(--label); white-space: nowrap; transition: all .15s;
}
.mg-filterchip:hover { border-color: #d0d4d7; }
.mg-filterchip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.mg-shops { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 12px 12px; }
.mg-shop {
  display: flex; flex-wrap: wrap; width: 100%; text-align: left; align-items: center; gap: 12px;
  padding: 11px 12px; margin-bottom: 6px; border: 1px solid var(--line); background: #fff;
  border-radius: 13px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  animation: mgdrop .3s ease both; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.mg-shop:hover { border-color: #d6dadd; box-shadow: 0 6px 16px rgba(0,0,0,.07); transform: translateY(-1px); }
.mg-shop-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mg-shop-dot { width: 11px; height: 11px; border-radius: 50%; }
.mg-shop-info { flex: 1; min-width: 0; }
.mg-shop-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-shop-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-shop-dist { flex: none; font-size: 11px; color: var(--muted-2); font-weight: 600; background: #f5f6f7; padding: 4px 8px; border-radius: 20px; }
.mg-search-error { margin: 8px 4px 2px; font-size: 11px; color: #b08a3e; background: #fbf6ec; padding: 9px 12px; border-radius: 10px; line-height: 1.4; }

/* ---------- overlays / modals ---------- */
.mg-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(20,22,26,.36);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  animation: mgfade .2s ease;
}
.mg-modal {
  background: #fff; border-radius: 20px; box-shadow: 0 26px 70px rgba(0,0,0,.3);
  animation: mgpop .3s cubic-bezier(.2,.8,.2,1) both;
}
.mg-modal-add       { padding: 26px 26px 24px; width: min(430px, 92vw); }
.mg-modal-auth      { padding: 26px; width: min(420px, 92vw); }
.mg-modal-settings  { padding: 26px; width: min(450px, 92vw); max-height: 86vh; overflow-y: auto; }
.mg-modal-forgot    { padding: 26px; width: min(420px, 92vw); }
.mg-modal-history   { padding: 26px; width: min(460px, 92vw); max-height: 86vh; overflow-y: auto; }
.mg-modal-reset     { padding: 26px; width: min(420px, 92vw); }
.mg-modal-admin     { padding: 26px; width: min(450px, 92vw); }
.mg-modal-access    { padding: 26px; width: min(400px, 92vw); }
.mg-modal-cat       { padding: 26px; width: min(480px, 93vw); }
.mg-modal-radius    { padding: 26px; width: min(440px, 92vw); }
.mg-modal-searching { padding: 38px 40px; width: min(360px, 90vw); text-align: center; }
.mg-modal-booking   { padding: 26px; width: min(440px, 92vw); }
.mg-modal-confirmed { padding: 28px 26px 24px; width: min(430px, 92vw); }

.mg-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mg-modal-head-tight { margin-bottom: 5px; }
.mg-modal-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.mg-modal-close {
  border: none; background: #f1f2f4; width: 30px; height: 30px; border-radius: 9px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--label);
}
.h-close:hover { background: #e8eaec; }
.mg-modal-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.mg-modal-sub-lg { margin-bottom: 24px; }
.mg-modal-sub b { color: var(--ink); font-weight: 600; }
.mg-modal-foot { margin-top: 11px; font-size: 11px; color: #a3a8ae; text-align: center; }

/* form fields */
.mg-label { display: block; font-size: 12px; font-weight: 600; color: var(--label); margin-bottom: 6px; }
.mg-input {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: 11px; padding: 11px 13px;
  font-family: 'Instrument Sans', sans-serif; font-size: 14px; outline: none; transition: border-color .15s;
}
.h-input:focus { border-color: var(--green); }
.mg-geo-error { margin-top: 10px; font-size: 12px; color: #c2603d; background: #f7ebe7; padding: 9px 12px; border-radius: 10px; }
.mg-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 18px; padding: 13px; border: none; background: var(--ink); color: #fff;
  border-radius: 13px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 14px; box-shadow: 0 8px 20px rgba(20,22,26,.20); transition: background .15s;
}
.mg-submit:not(.is-busy):hover { background: var(--ink-2); }
.mg-submit.is-busy { background: #5b8a7d; cursor: default; }

/* category grid */
.mg-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-cat {
  display: flex; align-items: center; gap: 12px; padding: 15px 14px;
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px; cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; text-align: left; transition: all .15s;
}
.mg-cat-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.mg-cat-name { display: block; font-weight: 600; font-size: 14px; }
.mg-cat-desc { display: block; font-size: 11.5px; color: var(--muted); }
.h-cat-food:hover   { border-color: #c2603d; background: #fcf7f5; transform: translateY(-1px); }
.h-cat-sport:hover  { border-color: #3e6b8b; background: #f4f7f9; transform: translateY(-1px); }
.h-cat-coffee:hover { border-color: #7a5c3e; background: #f8f5f1; transform: translateY(-1px); }
.h-cat-shop:hover   { border-color: #7e5a78; background: #f7f4f7; transform: translateY(-1px); }
.mg-cat-none {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; padding: 13px; border: 1.5px solid var(--line); background: #fafbfb;
  border-radius: 14px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13.5px; color: var(--label); transition: all .15s;
}
.h-cat-none:hover { border-color: #d6dadd; background: #f2f3f4; }

/* radius */
.mg-radius-value { text-align: center; margin-bottom: 18px; }
.mg-radius-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.mg-radius-unit { font-size: 16px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.mg-range { width: 100%; accent-color: var(--green); height: 6px; cursor: pointer; }
.mg-range-labels { display: flex; justify-content: space-between; font-size: 11px; color: #b0b5ba; margin-top: 6px; }
.mg-radius-actions { display: flex; gap: 10px; margin-top: 22px; }
.mg-back {
  flex: none; padding: 13px 18px; border: 1.5px solid var(--line-2); background: #fff;
  border-radius: 13px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13.5px; color: var(--label);
}
.h-back:hover { background: #f6f7f8; }
.mg-confirm {
  flex: 1; padding: 13px; border: none; background: var(--green); color: #fff;
  border-radius: 13px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13.5px; box-shadow: 0 8px 20px rgba(31,111,92,.28); transition: background .15s;
}
.h-confirm:hover { background: var(--green-d); }

/* searching */
.mg-searching-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 17px; margin-bottom: 5px; }
.mg-searching-sub { font-size: 12.5px; color: var(--muted); }

/* booking */
.mg-sel-card {
  display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 18px; background: #fafbfb;
}
.mg-sel-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.mg-sel-dot { width: 12px; height: 12px; border-radius: 50%; }
.mg-sel-name { font-weight: 600; font-size: 14.5px; }
.mg-sel-sub { font-size: 11.5px; color: var(--muted); }
.mg-datetime { display: flex; gap: 12px; }
.mg-field { flex: 1; }
.mg-field .mg-input { padding: 10px 12px; }
.mg-confirm-dark {
  width: 100%; margin-top: 20px; padding: 14px; border: none; background: var(--ink); color: #fff;
  border-radius: 13px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 14px; box-shadow: 0 8px 20px rgba(20,22,26,.22); transition: background .15s;
}
.h-confirm-dark:hover { background: var(--ink-2); }

/* confirmed */
.mg-conf-check {
  width: 52px; height: 52px; border-radius: 16px; background: #e8f2ee;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.mg-conf-title { text-align: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.01em; margin-bottom: 4px; }
.mg-conf-sub { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.mg-conf-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.mg-conf-card-head { padding: 16px 18px; background: #fafbfb; border-bottom: 1px solid var(--line); }
.mg-conf-shop { font-weight: 700; font-size: 16px; font-family: 'Bricolage Grotesque', sans-serif; }
.mg-conf-shop-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mg-conf-card-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.mg-conf-line { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mg-conf-line span { font-weight: 600; }
.mg-conf-people { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.mg-conf-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.mg-conf-chip {
  display: inline-flex; align-items: center; gap: 5px; background: #f4f5f6;
  padding: 3px 9px 3px 6px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
}
.mg-conf-chip-avatar {
  width: 14px; height: 14px; border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 8px;
}
.mg-conf-actions { display: flex; gap: 10px; }
.mg-cal-green {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px;
  background: var(--green); color: #fff; border-radius: 13px; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13px; box-shadow: 0 8px 20px rgba(31,111,92,.26); transition: background .15s;
}
.h-cal-green:hover { background: var(--green-d); color: #fff; }
.mg-cal-grey {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px;
  background: #f1f2f4; color: var(--ink); border-radius: 13px; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13px; transition: background .15s;
}
.h-cal-grey:hover { background: #e8eaec; color: var(--ink); }
.mg-reset {
  width: 100%; margin-top: 12px; padding: 11px; border: none; background: transparent;
  color: var(--muted); font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 12.5px; cursor: pointer;
}
.h-reset:hover { color: var(--ink); }

/* ---------- Terminfindung (scheduling) ---------- */
.mg-poll-alt {
  width: 100%; margin-top: 10px; padding: 12px; border: 1.5px solid var(--line-2);
  background: #fff; border-radius: 13px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13px; color: var(--label); transition: all .15s;
}
.h-poll-alt:hover { border-color: var(--green); color: var(--green); }

.mg-poll-fab {
  position: fixed; left: 18px; bottom: 74px; z-index: 595;
  display: flex; align-items: center; gap: 7px; border: none; cursor: pointer;
  background: var(--ink); color: #fff; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 12.5px; padding: 9px 14px; border-radius: 22px;
  box-shadow: 0 8px 22px rgba(20,22,26,.22); transition: transform .15s;
}
.mg-poll-fab:hover { transform: translateY(-1px); }
.mg-poll-fab.is-closed { background: var(--green); box-shadow: 0 8px 22px rgba(31,111,92,.28); }

.mg-modal-poll { padding: 24px; width: min(460px, 93vw); max-height: 88vh; overflow-y: auto; }

.mg-slot-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mg-slot-row .mg-input { padding: 9px 11px; }
.mg-slot-date { flex: 1.4; }
.mg-slot-time { flex: 1; }
.mg-slot-del {
  flex: none; width: 32px; height: 32px; border: none; background: #f1f2f4; color: var(--muted-2);
  border-radius: 9px; cursor: pointer; font-size: 18px; line-height: 1;
}
.mg-slot-del:hover { background: #f0e3e0; color: #c2603d; }
.mg-add-slot {
  width: 100%; margin: 4px 0 6px; padding: 10px; border: 1.5px dashed var(--line-2); background: #fafbfb;
  border-radius: 11px; cursor: pointer; font-family: 'Instrument Sans', sans-serif; font-weight: 600;
  font-size: 12.5px; color: var(--label);
}
.mg-add-slot:hover { border-color: #d0d4d7; }

.mg-vote-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mg-vote-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 13px; flex-wrap: wrap;
}
.mg-vote-row.is-best { border-color: #bfe0d4; background: #f3faf7; }
.mg-vote-row.is-chosen { border-color: var(--green); background: #eef6f2; }
.mg-vote-when { flex: 1; min-width: 96px; }
.mg-vote-date { font-weight: 700; font-size: 13.5px; }
.mg-vote-time { font-size: 11.5px; color: var(--muted); }
.mg-vote-opts { display: flex; gap: 4px; }
.mg-vopt {
  border: 1px solid var(--line-2); background: #fff; border-radius: 9px; cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 11.5px; padding: 6px 9px;
  color: var(--label); transition: all .12s;
}
.mg-vopt-yes.is-on { background: #1f6f5c; border-color: #1f6f5c; color: #fff; }
.mg-vopt-maybe.is-on { background: #B08A3E; border-color: #B08A3E; color: #fff; }
.mg-vopt-no.is-on { background: #C2603D; border-color: #C2603D; color: #fff; }
.mg-tally { font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.mg-tally b { color: var(--green); }
.mg-slot-final {
  border: none; background: #f1f2f4; color: var(--ink); border-radius: 9px; cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 11.5px; padding: 6px 10px;
}
.mg-slot-final:hover { background: var(--green); color: #fff; }
.mg-voters { margin-top: 12px; font-size: 12px; color: var(--muted-2); }

/* ---------- auth modal ---------- */
.mg-auth-tabs {
  display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.mg-auth-tab {
  flex: 1; padding: 11px 0; border: none; background: transparent; color: var(--muted-2);
  font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: color .15s; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.mg-auth-tab.is-active { color: var(--ink); border-bottom-color: var(--green); }

.mg-auth-form { animation: mgfade .2s ease; }
.mg-auth-form .mg-label { margin-top: 14px; }
.mg-auth-form .mg-label:first-of-type { margin-top: 0; }

.mg-auth-error {
  margin-top: 12px; font-size: 12px; color: #c2603d; background: #f7ebe7;
  padding: 10px 12px; border-radius: 10px; line-height: 1.4;
}

.mg-auth-link { text-align: center; margin-top: 14px; }
.mg-link {
  border: none; background: transparent; color: var(--green); cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; font-size: 12px; text-decoration: underline;
  transition: color .15s;
}
.mg-link:hover { color: var(--green-d); }

/* ---------- settings modal ---------- */
.mg-settings-section { margin-bottom: 22px; }
.mg-settings-section-title {
  font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 12px; text-transform: uppercase;
  letter-spacing: .02em; color: var(--label);
}
.mg-settings-actions {
  display: flex; gap: 10px; margin-top: 24px;
}
.mg-submit { flex: 1; }
.mg-delete {
  flex: none; padding: 13px 18px; border: 1.5px solid #e8ccc0; background: #fff;
  border-radius: 13px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13.5px; color: #c2603d; transition: all .15s;
}
.mg-delete:hover { border-color: #d4b0a0; background: #faf7f5; }

/* ---------- lock / result overlay (pause frost, end result) ---------- */
.mg-lock {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: mgfade .25s ease;
}
/* frosted glass: paused input or "no result reached" */
.mg-lock.is-frost {
  background: rgba(232, 236, 239, .55);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
/* result: dim, readable backdrop */
.mg-lock.is-result {
  background: rgba(20, 22, 26, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mg-lock-card {
  background: #fff; border-radius: 20px; box-shadow: 0 26px 70px rgba(0,0,0,.3);
  padding: 30px 30px 26px; width: min(440px, 92vw); text-align: center;
  animation: mgpop .3s cubic-bezier(.2,.8,.2,1) both;
}
.mg-lock-ico {
  width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.mg-lock-ico.is-pause { background: #eef1f4; color: #6b7280; }
.mg-lock-ico.is-none  { background: #f7ebe7; color: #c2603d; }
.mg-lock-ico.is-ok    { background: #e8f2ee; color: var(--green); }
.mg-lock-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -.01em; margin-bottom: 8px; }
.mg-lock-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mg-lock-result { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: left; }
.mg-lock-result-head { padding: 15px 18px; background: #fafbfb; border-bottom: 1px solid var(--line); }
.mg-lock-result-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 17px; }
.mg-lock-result-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mg-lock-result-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.mg-lock-line { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.mg-lock-line svg { flex: none; color: var(--muted-2); }
.mg-lock-reopen {
  margin-top: 18px; padding: 11px 18px; border: 1.5px solid var(--line-2); background: #fff;
  border-radius: 12px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13px; color: var(--label); transition: all .15s;
}
.mg-lock-reopen:hover { border-color: var(--green); color: var(--green); }

/* disabled compact/dark buttons */
.mg-btn-dark.is-disabled, .mg-btn-dark:disabled { opacity: .5; cursor: not-allowed; }
.mg-person-you { font-size: 10px; font-weight: 700; color: var(--green); background: #e8f2ee; padding: 1px 6px; border-radius: 10px; margin-left: 4px; vertical-align: middle; }

/* ---------- admin modal ---------- */
.mg-admin-controls { display: flex; gap: 10px; }
.mg-admin-toggle {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border: 1.5px solid var(--line-2); background: #fff;
  border-radius: 13px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13px; color: var(--label); transition: all .15s;
}
.mg-admin-toggle:hover { border-color: #d0d4d7; background: #f6f7f8; }
.mg-admin-toggle.is-on { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- result cards: rating / open-state / address / votes ---------- */
.mg-results-hint {
  margin-top: 10px; font-size: 11.5px; line-height: 1.45; color: var(--green-d);
  background: #eef6f2; border-radius: 10px; padding: 8px 11px;
}
.mg-shop-meta {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 11px; color: var(--muted-2); margin-top: 3px; min-width: 0;
}
.mg-dotsep { color: #cfd3d7; }
.mg-shop-rating { color: #b08a3e; font-weight: 700; white-space: nowrap; }
.mg-shop-rcount { color: var(--muted); font-weight: 500; }
.mg-shop-open { color: var(--green); font-weight: 600; white-space: nowrap; }
.mg-shop-closed { color: #c2603d; font-weight: 600; white-space: nowrap; }
.mg-shop-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mg-shop-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mg-shop-heart { color: #c2603d; font-size: 14px; line-height: 1; }
.mg-shop.is-voted { border-color: #e5b9a8; background: #fdf8f6; }
.mg-vote-chips { display: flex; gap: 3px; margin-top: 5px; flex-wrap: wrap; }
.mg-vote-ava {
  width: 18px; height: 18px; border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
}

/* ---------- docked stage panel (Terminwahl / finales Treffen) ----------
   The map stays fully visible – no blurred backdrop. Desktop: docked right.
   Mobile: bottom sheet. */
.mg-stage {
  position: fixed; right: 18px; bottom: 24px; z-index: 640;
  width: min(410px, calc(100vw - 36px));
  max-height: min(80vh, 700px);
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border-radius: 18px; padding: 20px 20px 16px;
  box-shadow: 0 14px 44px rgba(20,22,26,.20);
  animation: mgpop .3s cubic-bezier(.2,.8,.2,1) both;
  overflow-y: auto;
}
.mg-stage.is-final { width: min(660px, calc(100vw - 36px)); }

/* Vergrößertes Terminvoting: ein Klick holt die Tabelle groß in die Mitte.
   animation:none, damit translateX nicht vom mgpop-Endzustand überschrieben wird. */
.mg-stage.is-expanded {
  animation: none;
  left: 50%; right: auto; transform: translateX(-50%);
  top: 24px; bottom: 24px;
  width: min(760px, calc(100vw - 36px));
  max-height: none;
  padding: 26px 26px 20px;
}
.mg-stage.is-expanded .mg-stage-title { font-size: 24px; }
.mg-stage.is-expanded .mg-date-row { padding: 14px 16px; }
.mg-stage.is-expanded .mg-vote-date { font-size: 16.5px; }
.mg-stage.is-expanded .mg-vote-time { font-size: 13px; }
.mg-stage.is-expanded .mg-tally { font-size: 12.5px; }
.mg-stage.is-expanded .mg-date-opts { gap: 9px; }
.mg-stage.is-expanded .mg-date-opts .mg-vopt { min-height: 52px; font-size: 14.5px; }

/* people panel, action bar + poll fab step aside while a stage is docked */
body.mg-stage-open .mg-people-panel,
body.mg-stage-open .mg-actionbar,
body.mg-stage-open .mg-poll-fab { display: none; }

.mg-stage-head { display: flex; align-items: flex-start; gap: 12px; }
.mg-stage-head > div:first-of-type { flex: 1; min-width: 0; }
.mg-stage-head.is-center { align-items: center; }
.mg-stage-kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); margin-bottom: 3px;
}
.mg-stage-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.mg-stage-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: -4px; }
.mg-stage-sub b { color: var(--ink); }
.mg-stage-host { font-size: 13px; color: var(--muted-2); margin-top: 2px; }
.mg-stage-host b { color: var(--ink); }
.mg-stage-check {
  flex: none; width: 42px; height: 42px; border-radius: 13px; background: #e8f2ee;
  display: flex; align-items: center; justify-content: center;
}
.mg-stage-share {
  flex: none; width: 34px; height: 34px; border: 1.5px solid var(--line-2); background: #fff;
  color: var(--label); border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.mg-stage-share:hover { border-color: var(--green); color: var(--green); }

.mg-stage-venue {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 13px; background: #fafbfb;
}
.mg-stage-venue-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mg-stage-venue-info { min-width: 0; }
.mg-stage-venue-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-stage-venue-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* date voting rows – big touch targets, taps save immediately */
.mg-date-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; min-height: 0; padding-bottom: 2px; }
.mg-date-row { border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; }
.mg-date-row.is-best { border-color: #bfe0d4; background: #f6fbf9; }
.mg-date-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.mg-date-when { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.mg-date-opts { display: flex; gap: 7px; }
.mg-date-opts .mg-vopt {
  flex: 1; min-height: 42px; font-size: 13px; border-radius: 11px;
}
.mg-answer-as { font-size: 12px; color: var(--muted-2); }
.mg-answer-as b { color: var(--ink); }
.mg-answer-as.is-missing { color: #b08a3e; font-weight: 600; }

.mg-stage-adminrow { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); }
.mg-stage-adminbtn {
  flex: 1; min-height: 40px; padding: 8px 10px; border: 1.5px solid var(--line-2); background: #fff;
  border-radius: 11px; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 12px; color: var(--label); transition: all .15s; white-space: nowrap;
}
.mg-stage-adminbtn:hover { border-color: var(--green); color: var(--green); }
.mg-stage-adminbtn.is-danger:hover { border-color: #c2603d; color: #c2603d; }

/* final stage: venue details left, date + calendar right */
.mg-final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-final-card { border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; background: #fafbfb; min-width: 0; }
.mg-final-k {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 7px;
}
.mg-final-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.25; }
.mg-final-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mg-final-addr { font-size: 12px; color: var(--muted-2); margin-top: 7px; line-height: 1.45; }
.mg-final-rating { font-size: 12px; color: #b08a3e; font-weight: 700; margin-top: 7px; }
.mg-final-links { display: flex; flex-direction: column; gap: 6px; margin-top: 11px; }
.mg-final-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--green); min-height: 28px;
}
.mg-final-link:hover { color: var(--green-d); }
.mg-final-cal { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mg-final-cal .mg-cal-green, .mg-final-cal .mg-cal-grey { padding: 11px; font-size: 12.5px; }
.mg-final-people { display: flex; gap: 5px; flex-wrap: wrap; }

/* ---------- Native app: reminder + live-location toggles ---------- */
.mg-final-prefs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mg-pref-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid rgba(31, 111, 92, .22); background: #fff;
  color: #16181d; font: 600 13px 'Instrument Sans', sans-serif;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.mg-pref-toggle:hover { border-color: rgba(31, 111, 92, .45); }
.mg-pref-toggle.is-on {
  background: #1f6f5c; border-color: #1f6f5c; color: #fff;
  box-shadow: 0 3px 10px rgba(31, 111, 92, .28);
}
.mg-pref-ico { font-size: 15px; line-height: 1; }
.mg-pref-lbl { white-space: nowrap; }
.mg-pref-state {
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 20px; background: rgba(0, 0, 0, .07);
}
.mg-pref-toggle.is-on .mg-pref-state { background: rgba(255, 255, 255, .22); }
.mg-pref-hint {
  margin-top: 7px; font: 500 11.5px 'Instrument Sans', sans-serif;
  color: #5b6470; line-height: 1.45;
}

/* ---------- Startseite + "Neuen WannaMeet erstellen" ---------- */
/* Titel der Veranstaltung unter dem Logo */
.mg-event-title {
  margin: 5px 0 0 39px; padding: 4px 11px; border-radius: 20px; width: fit-content;
  background: #fff; box-shadow: 0 4px 14px rgba(20,22,26,.12);
  font-weight: 700; font-size: 12.5px; color: var(--green-d);
  max-width: min(60vw, 320px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Button rechts oben – auf der Startseite anstelle des Personen-Panels */
.mg-create-corner { position: fixed; right: 18px; top: 18px; z-index: 610; }
.mg-create-btn {
  display: flex; align-items: center; gap: 7px; border: none; cursor: pointer;
  background: var(--green); color: #fff; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 13px; padding: 10px 15px; border-radius: 12px;
  box-shadow: 0 8px 22px rgba(31,111,92,.30); transition: background .15s, transform .15s;
}
.h-create-btn:hover { background: var(--green-d); transform: translateY(-1px); }

/* Willkommenskarte in der Mitte der Karte */
.mg-home {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 590;
  width: min(430px, calc(100vw - 32px));
}
.mg-home-card {
  background: #fff; border-radius: 20px; box-shadow: 0 22px 60px rgba(20,22,26,.22);
  padding: 28px 28px 24px; text-align: center; animation: mgpop .35s cubic-bezier(.2,.8,.2,1) both;
}
.mg-home-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 23px;
  letter-spacing: -.015em; line-height: 1.2; margin-bottom: 8px;
}
.mg-home-sub { font-size: 13px; color: var(--muted-2); line-height: 1.55; margin-bottom: 8px; }
.mg-home-note {
  display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 16px; padding: 7px 12px;
  background: #eef6f2; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--green-d);
}
.mg-home-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px; border: none; background: var(--green); color: #fff; border-radius: 13px;
  cursor: pointer; font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 8px 20px rgba(31,111,92,.28); transition: background .15s;
}
.mg-home-cta:hover { background: var(--green-d); }
.mg-home-alt {
  margin-top: 12px; border: none; background: transparent; color: var(--muted-2); cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; font-size: 12.5px; font-weight: 600;
}
.mg-home-alt:hover { color: var(--ink); }
.mg-home-alt b { color: var(--green); }

/* freundlicher Hinweis im Auth-Modal ("erst registrieren") */
.mg-auth-intro {
  margin: -6px 0 16px; padding: 12px 14px; background: #eef6f2; border-radius: 12px;
  font-size: 12.5px; color: var(--green-d); line-height: 1.5; font-weight: 500;
}

/* Erstellen-Modal */
.mg-modal-create { padding: 26px; width: min(440px, 92vw); max-height: 88vh; overflow-y: auto; }
.mg-create-name-row { display: flex; gap: 8px; }
.mg-create-name-row .mg-input { flex: 1; min-width: 0; }
.mg-dice {
  flex: none; width: 44px; border: 1.5px solid var(--line-2); background: #fff;
  border-radius: 11px; cursor: pointer; font-size: 18px; transition: all .15s;
}
.h-dice:hover { border-color: var(--green); transform: rotate(-12deg); }
.mg-field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.mg-create-self {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 11px 13px;
  background: #eef6f2; border-radius: 12px; font-size: 12.5px; color: var(--green-d); line-height: 1.5;
}
.mg-linkrow { display: flex; gap: 8px; }
.mg-linkrow .mg-input { flex: 1; min-width: 0; font-size: 12.5px; color: var(--label); background: #fafbfb; }
.mg-linkrow .mg-btn-dark { flex: none; }

/* ---------- place details (photos, hours, reviews, contact, emoji) ---------- */
.mg-shop-main { display: flex; width: 100%; align-items: center; gap: 12px; }
.mg-shop.is-open { border-color: #d6dadd; box-shadow: 0 6px 16px rgba(0,0,0,.07); }
.mg-shop-more {
  border: none; background: #f1f2f4; color: var(--muted-2); width: 26px; height: 26px;
  border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mg-shop-more:hover { background: #e8eaec; color: var(--ink); }
.mg-shop-price { color: var(--muted-2); font-weight: 700; white-space: nowrap; }
.mg-shop-feat { color: var(--green-d); font-weight: 600; white-space: nowrap; }
.mg-det-feats { display: flex; gap: 6px; flex-wrap: wrap; }
.mg-det-feat {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600;
  color: var(--green-d); background: #eef6f2; border-radius: 16px; padding: 4px 10px;
}
.mg-shop-details {
  width: 100%; margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--line-2);
  cursor: default; animation: mgdrop .25s ease both;
}
.mg-det-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.mg-det-photos img {
  height: 96px; border-radius: 10px; flex: none; object-fit: cover; max-width: 160px;
  background: #eef0f1;
}
.mg-det-contact { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.mg-det-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; min-height: 36px;
  border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff;
  font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .15s;
}
.mg-det-btn:hover { border-color: var(--green); color: var(--green); }
.mg-det-btn.is-call { border-color: #cfe4dc; background: #eef6f2; color: var(--green-d); }
.mg-det-sec {
  margin: 11px 0 5px; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2);
}
.mg-det-hours { font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }
.mg-det-review { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin-bottom: 7px; }
.mg-det-review-author { color: var(--muted); }
.mg-det-react { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-react-btn {
  border: 1.5px solid var(--line-2); background: #fff; border-radius: 10px; cursor: pointer;
  font-size: 16px; width: 38px; height: 36px; transition: all .12s; line-height: 1;
}
.mg-react-btn:hover { transform: translateY(-1px); border-color: #d0d4d7; }
.mg-react-btn.is-on { border-color: var(--green); background: #eef6f2; }
.mg-react-agg {
  display: inline-flex; align-items: center; font-size: 12px; background: #f4f5f6;
  border-radius: 12px; padding: 1px 7px; margin-left: 2px;
}

/* Auswahl-/Vote-Button unter den Details (Ergebnisliste + Karten-Popup) */
.mg-det-select {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  margin-top: 12px; padding: 11px 12px; border: 1.5px solid transparent; border-radius: 11px;
  cursor: pointer; background: var(--green); color: #fff;
  font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 13px;
  transition: background .15s, color .15s, border-color .15s;
}
.mg-det-select:hover { background: var(--green-d); }
.mg-det-select.is-voted { background: #fff; color: var(--green-d); border-color: var(--green); }
.mg-det-select.is-voted:hover { background: #eef6f2; }

/* ---------- Karten-Popup am Orts-Punkt ---------- */
.mg-shop-popup .leaflet-popup-content-wrapper {
  border-radius: 14px; box-shadow: 0 14px 40px rgba(20,22,26,.24); padding: 0;
}
.mg-shop-popup .leaflet-popup-content {
  margin: 0; padding: 13px 14px 12px; font-family: 'Instrument Sans', sans-serif;
  font-size: 12.5px; line-height: 1.45; color: var(--ink);
}
.mg-shop-popup a.leaflet-popup-close-button { top: 7px; right: 9px; color: var(--muted-2); }
.mg-popup-name { font-weight: 700; font-size: 14px; line-height: 1.3; padding-right: 16px; }
.mg-popup-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.mg-popup-body { max-height: 250px; overflow-y: auto; overflow-x: hidden; margin-top: 2px; }
.mg-popup-body .mg-det-photos img { height: 76px; max-width: 130px; }

/* ---------- poll builder extras (templates, deadline, quorum) ---------- */
.mg-tpl-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mg-tpl-label { font-size: 11px; font-weight: 700; color: var(--muted-2); }
.mg-tpl-chip {
  border: 1.5px dashed var(--line-2); background: #fafbfb; border-radius: 18px; cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 11.5px;
  color: var(--label); padding: 6px 11px; transition: all .15s;
}
.mg-tpl-chip:hover { border-color: var(--green); color: var(--green); background: #f3faf7; }
.mg-poll-opts { display: flex; gap: 12px; margin-top: 14px; }
.mg-poll-opts .mg-field { flex: 1; min-width: 0; }
.mg-opt-hint { display: block; margin-top: 5px; font-size: 10.5px; color: var(--muted); line-height: 1.4; }

/* dates stage meta + warnings + ics */
.mg-poll-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11.5px; font-weight: 600; color: var(--green-d);
  background: #eef6f2; border-radius: 10px; padding: 8px 11px;
}
.mg-slot-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.mg-slot-warn {
  font-size: 10.5px; font-weight: 600; color: #b08a3e; background: #fbf6ec;
  border-radius: 8px; padding: 3px 8px;
}
.mg-slot-warn.is-ics { color: #c2603d; background: #f7ebe7; }
.mg-ics-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mg-ics-row .mg-opt-hint { margin-top: 0; flex: 1; min-width: 120px; }

/* final extras */
.mg-final-note {
  font-size: 12px; color: var(--green-d); background: #eef6f2;
  border-radius: 10px; padding: 8px 12px;
}
.mg-final-warn {
  font-size: 12px; color: #b08a3e; background: #fbf6ec;
  border-radius: 10px; padding: 8px 12px;
}
.mg-today-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--green); color: #fff; border-radius: 12px; padding: 10px 14px;
  font-weight: 700; font-size: 13.5px; box-shadow: 0 6px 18px rgba(31,111,92,.3);
}
.mg-today-late {
  border: none; background: rgba(255,255,255,.18); color: #fff; border-radius: 9px;
  font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 12px;
  padding: 7px 11px; cursor: pointer; white-space: nowrap;
}
.mg-today-late:hover { background: rgba(255,255,255,.3); }
.mg-final-photo {
  width: 100%; height: 120px; object-fit: cover; border-radius: 12px;
  margin-bottom: 11px; background: #eef0f1; display: block;
}
.mg-final-link.is-call { color: var(--green-d); font-weight: 700; }

/* ---------- Essenswünsche ---------- */
.mg-wish-panel { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.mg-wish-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mg-wish-title { font-weight: 600; font-size: 12.5px; }
.mg-wish-btn {
  border: 1.5px solid var(--line-2); background: #fff; color: var(--label);
  font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 11.5px;
  padding: 6px 11px; border-radius: 9px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.mg-wish-btn:hover { border-color: var(--green); color: var(--green); }
.mg-wish-list { margin-top: 7px; font-size: 12px; color: var(--green-d); line-height: 1.5; }
.mg-wish-none { margin-top: 7px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.mg-modal-wish { padding: 26px; width: min(460px, 92vw); max-height: 88vh; overflow-y: auto; }
.mg-wish-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.mg-wish-grid .mg-filterchip { min-height: 36px; font-size: 12px; }
.mg-results-hint.is-wish { color: #7a5c3e; background: #f8f5f1; }

/* presence ("2 online") */
.mg-presence {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  color: var(--green-d);
}
.mg-presence::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2fa87c;
  box-shadow: 0 0 0 3px rgba(47,168,124,.18);
}

/* ---------- chat ---------- */
.mg-chat-fab {
  position: fixed; right: 18px; bottom: 24px; z-index: 650;
  width: 52px; height: 52px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(20,22,26,.3); transition: transform .15s;
}
.mg-chat-fab:hover { transform: translateY(-2px); }
body.mg-stage-open .mg-chat-fab { display: flex; }   /* Chat bleibt in allen Stages erreichbar */
.mg-chat-badge {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px;
  border-radius: 10px; background: #C2603D; color: #fff; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  border: 2px solid #fff;
}
.mg-chat-panel {
  position: fixed; right: 18px; bottom: 86px; z-index: 660;
  width: min(360px, calc(100vw - 36px)); height: min(480px, 70vh);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(20,22,26,.28);
  animation: mgpop .25s cubic-bezier(.2,.8,.2,1) both;
}
.mg-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px 11px 16px; border-bottom: 1px solid var(--line);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 15px;
}
.mg-chat-messages { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.mg-chat-empty { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 24px; }
.mg-chat-msg { display: flex; align-items: flex-end; gap: 7px; }
.mg-chat-msg.is-own { justify-content: flex-end; }
.mg-chat-ava {
  flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.mg-chat-bubble {
  max-width: 78%; background: #f1f2f4; border-radius: 13px 13px 13px 4px; padding: 7px 11px;
}
.mg-chat-msg.is-own .mg-chat-bubble { background: #e2efe9; border-radius: 13px 13px 4px 13px; }
.mg-chat-name { font-size: 10.5px; font-weight: 700; margin-bottom: 1px; }
.mg-chat-text { font-size: 13px; line-height: 1.4; word-break: break-word; white-space: pre-wrap; }
.mg-chat-time { font-size: 9.5px; color: var(--muted); text-align: right; margin-top: 2px; }
.mg-chat-inputrow {
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.mg-chat-inputrow .mg-input { flex: 1; min-height: 40px; padding: 9px 12px; }
.mg-chat-send {
  flex: none; width: 42px; height: 42px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.mg-chat-send:hover { background: var(--green-d); }

/* Kategorie-Modal kann mit 8 Kacheln hoch werden */
.mg-modal-cat { max-height: 88vh; overflow-y: auto; }

/* =====================================================================
   Mobile first – über die Hälfte der Nutzer kommt vom Handy. Panels
   werden zu Bottom-Sheets, alles bleibt lesbar und tippbar (≥42px).
   ===================================================================== */
@media (max-width: 700px) {
  .mg-logo { left: 12px; top: 12px; }
  .mg-logo-tag { display: none; }
  .mg-logo-word { font-size: 19px; }
  .mg-logo-img { width: 30px; height: 30px; }

  /* Sprache + Login wandern nach oben rechts (unten liegen die Sheets) */
  .mg-top-bar { left: auto; right: 12px; top: 12px; bottom: auto; }
  .mg-profile-menu { bottom: auto; top: calc(100% + 6px); }

  .mg-people-panel { left: 12px; right: 12px; top: 58px; width: auto; max-width: none; }
  .mg-people-list { max-height: 26vh; }

  /* Create-Button rutscht unter die (oben rechts liegende) Top-Bar */
  .mg-create-corner { right: 12px; top: 58px; }
  .mg-create-btn { min-height: 42px; }
  .mg-event-title { margin-left: 0; margin-top: 6px; }
  .mg-home { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); }
  .mg-home-card { padding: 22px 20px 18px; }
  .mg-home-cta { min-height: 48px; }

  .mg-actionbar {
    left: 10px; right: 10px; transform: none; width: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .mg-actionbar-inner { width: 100%; flex-wrap: wrap; justify-content: center; padding: 8px; gap: 8px; }
  .mg-calc { width: 100%; justify-content: center; min-height: 46px; }
  .mg-seg-btn { min-height: 38px; }
  .mg-hint { text-align: center; }

  /* Ergebnisliste als Bottom-Sheet – Karte bleibt oben sichtbar */
  .mg-results {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none;
    height: min(54vh, 480px);
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: mgpop .3s cubic-bezier(.2,.8,.2,1) both;
  }
  .mg-results::before {
    content: ''; display: block; width: 40px; height: 4px; border-radius: 4px;
    background: #dfe2e5; margin: 8px auto 0;
  }
  .mg-results-head { padding: 8px 16px 10px; }
  body.mg-results-open .mg-actionbar { display: none; }
  body.mg-results-open .mg-people-panel { display: none; }
  .mg-shop { min-height: 56px; }

  /* Stage-Panels als Bottom-Sheet */
  .mg-stage, .mg-stage.is-final {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none;
    max-height: min(62vh, 560px);
    border-radius: 18px 18px 0 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  /* Vergrößertes Terminvoting: fast Vollbild-Sheet */
  .mg-stage.is-expanded {
    transform: none;
    max-height: calc(100vh - 52px);
  }
  .mg-final-grid { grid-template-columns: 1fr; }
  .mg-poll-fab { left: 12px; bottom: calc(140px + env(safe-area-inset-bottom)); }

  /* Chat als Vollbild-Sheet, FAB über den Bottom-Sheets */
  .mg-chat-fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 700; }
  body.mg-results-open .mg-chat-fab,
  body.mg-stage-open .mg-chat-fab { bottom: auto; top: 58px; width: 44px; height: 44px; }
  .mg-chat-panel {
    right: 0; left: 0; bottom: 0; width: auto;
    height: min(78vh, 560px); border-radius: 18px 18px 0 0; z-index: 710;
  }
  .mg-poll-opts { flex-direction: column; gap: 10px; }
  .mg-det-photos img { height: 84px; }

  /* Modals: nie höher als der Screen, immer scrollbar */
  .mg-overlay { padding: 10px; }
  .mg-modal { max-height: calc(100vh - 40px); overflow-y: auto; }
  .mg-modal-add, .mg-modal-auth, .mg-modal-settings, .mg-modal-forgot, .mg-modal-reset,
  .mg-modal-admin, .mg-modal-access, .mg-modal-cat, .mg-modal-radius, .mg-modal-booking,
  .mg-modal-confirmed, .mg-modal-poll, .mg-modal-create, .mg-modal-history,
  .mg-modal-wish { width: min(440px, 100%); padding: 20px 18px 18px; }
  .mg-cat-grid { grid-template-columns: 1fr; }
  .mg-cat { min-height: 56px; }
  .mg-input { min-height: 44px; font-size: 16px; }   /* 16px verhindert iOS-Zoom */
  .mg-submit { min-height: 48px; }
  .mg-vopt { min-height: 40px; }
  .mg-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .leaflet-control-zoom { display: none; }           /* Pinch-Zoom reicht auf Touch */
}

/* schmale Phones (≤ 380px): noch etwas kompakter */
@media (max-width: 380px) {
  .mg-people-head { padding: 12px 10px 10px 12px; }
  .mg-btn-share span { display: none; }
  .mg-stage-adminbtn { font-size: 11px; }
}
