/* Messeleader – Hochzeits-Look: Lavendel-Weiss, Salbeigrün, leichte Schrift, viel Luft.
 * Ein Stylesheet, kein Build-Schritt nötig. */
:root {
  --brand: #7c8a7e;          /* Salbei: Knöpfe, Akzente */
  --brand-dark: #66735f;
  --brand-2: #a3ae9f;        /* heller Salbei: Diagramme */
  --brand-soft: #eef1ec;
  --blush: #e9d3d6;          /* Rosé für Herzmomente */
  --blush-soft: #f8eef0;
  --ink: #3b3740;
  --ink-2: #5a5560;
  --muted: #8d8893;
  --line: #e7e1ea;
  --bg: #f9f6fb;             /* Lavendel-Weiss wie die Messeseite */
  --card: #ffffff;
  --ok: #7c8a7e;
  --ok-soft: #eef1ec;
  --hot: #c97b84;
  --hot-soft: #f8e9eb;
  --warm: #c9a063;
  --warm-soft: #f7efe0;
  --cold: #8aa7b8;
  --cold-soft: #eaf1f5;
  --danger: #b4545f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(59,55,64,.04), 0 6px 24px rgba(59,55,64,.05);
  --shadow-lg: 0 14px 44px rgba(59,55,64,.14);
  --btn-shadow: 0 5px 12px rgba(59,55,64,.18);
  --tabbar-h: 72px;
  --font: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); font-weight: 400; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 300; letter-spacing: .01em; color: #2f2b33; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; font-weight: 500; }
b, strong { font-weight: 600; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem } .mt-4 { margin-top: 2.5rem }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ── Container & Seitenrahmen ─────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 580px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 28px; padding-bottom: calc(var(--tabbar-h) + 32px); }
@media (min-width: 900px) { .page { padding-bottom: 56px; } }

/* ── Topbar ───────────────────────────────────────────── */
.topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 1.05rem; letter-spacing: .06em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid #dfe4dc; }
.logo-mark svg { width: 18px; height: 18px; }
.logo small { display: block; font-size: .74rem; letter-spacing: .02em; color: var(--muted); line-height: 1.1; }
.nav { display: none; gap: 2px; margin-left: 12px; }
.nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a.active { color: var(--brand-dark); background: var(--brand-soft); }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--blush-soft); color: #9a6a71; font-weight: 500; font-size: .85rem; letter-spacing: .03em;
}
.avatar.lg { width: 56px; height: 56px; font-size: 1.15rem; }
.avatar.xl { width: 76px; height: 76px; font-size: 1.5rem; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ── Mobile Tabbar ────────────────────────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .72rem; }
.tabbar a:hover { text-decoration: none; }
.tabbar a svg { width: 22px; height: 22px; stroke-width: 1.6; }
.tabbar a.active { color: var(--brand-dark); }
.tabbar a.scan-tab span.bubble {
  width: 58px; height: 58px; border-radius: 50%; margin-top: -26px; display: grid; place-items: center; color: #fff;
  background: var(--brand); box-shadow: var(--btn-shadow); border: 4px solid #fff;
}
.tabbar a.scan-tab svg { width: 26px; height: 26px; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ── Karten ───────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card.pad-lg { padding: 30px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.frame-box { border: 1px solid #cfc9d3; padding: 26px 20px; text-align: center; background: #fff; }
.frame-box .l1 { font-size: 1.35rem; letter-spacing: .08em; font-weight: 300; }
.frame-box .l2 { font-size: 1.15rem; font-weight: 300; margin-top: 10px; }
.frame-box .l3 { font-size: 1.15rem; font-weight: 300; margin-top: 10px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; user-select: none;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 500; letter-spacing: .01em;
  padding: 10px 18px; border-radius: 8px; min-height: 44px; transition: transform .06s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; background: #fbf9fc; }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; stroke-width: 1.7; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ok { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-ok:hover { background: var(--brand-dark); }
.btn-danger { color: var(--danger); border-color: #ecd0d4; }
.btn-danger:hover { background: var(--hot-soft); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-lg { padding: 15px 24px; font-size: 1.05rem; min-height: 54px; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ── Formulare ────────────────────────────────────────── */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; color: var(--ink-2); }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; min-height: 48px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124,138,126,.15); }
input[type=color] { width: 64px; height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--brand); }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.error { color: var(--danger); font-size: .88rem; margin-top: 6px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

/* ── Hinweise ─────────────────────────────────────────── */
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: var(--ok-soft); color: #4f5c51; }
.alert-error { background: var(--hot-soft); color: #7e3c45; }
.alert-info { background: #f3eff6; color: #54495c; }
.alert-warn { background: var(--warm-soft); color: #6f5627; }

/* ── Badges & Bewertung ───────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: #f3f0f5; color: var(--ink-2); white-space: nowrap; }
.badge-hot { background: var(--hot-soft); color: #94525b; }
.badge-warm { background: var(--warm-soft); color: #86652c; }
.badge-cold { background: var(--cold-soft); color: #4f6d7e; }
.badge-ok { background: var(--ok-soft); color: #56645a; }
.badge-brand { background: #f1edf4; color: #6b5e74; }
.badge-pending { background: var(--warm-soft); color: #86652c; }

.rating { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rating label { cursor: pointer; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating .pill {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-size: .95rem; transition: all .12s;
}
.rating .pill b { font-size: 1.5rem; line-height: 1.15; font-weight: 400; }
.rating input:checked + .pill.hot { border-color: var(--hot); background: var(--hot-soft); box-shadow: 0 0 0 1px var(--hot); }
.rating input:checked + .pill.warm { border-color: var(--warm); background: var(--warm-soft); box-shadow: 0 0 0 1px var(--warm); }
.rating input:checked + .pill.cold { border-color: var(--cold); background: var(--cold-soft); box-shadow: 0 0 0 1px var(--cold); }

/* ── Kennzahlen ───────────────────────────────────────── */
.stat { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat .label { font-size: .85rem; color: var(--muted); }
.stat .value { font-size: 2.1rem; font-weight: 300; letter-spacing: -.01em; line-height: 1.15; margin-top: 4px; color: #2f2b33; }
.stat .sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.progress { height: 8px; background: #eeeaf0; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s; }

/* Balken-Diagramm (reines CSS) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 18px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bars .bar i { display: block; width: 100%; max-width: 44px; background: var(--brand-2); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.bars .bar i[data-v]::before { content: attr(data-v); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--ink-2); font-style: normal; }
.bars .bar span { font-size: .72rem; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.hbar { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: .9rem; }
.hbar .track { height: 10px; background: #f0ecf2; border-radius: 999px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 999px; background: var(--brand-2); }
.hbar b { text-align: right; font-weight: 500; }

/* ── Tabellen & Listen ────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { text-decoration: none; background: #fcfbfd; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .name { font-weight: 500; }
.list-item .meta { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 10px; padding: 14px; box-shadow: var(--shadow); color: var(--ink); }
.lead-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.lead-cards { display: grid; gap: 10px; }
.filters { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; } }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 2.6rem; }

/* ── Schritte (Erklärungen) ───────────────────────────── */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { position: relative; padding-left: 50px; min-height: 36px; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 400; color: var(--brand-dark); border: 1px solid #cfd6cc; background: #fff;
}
.steps li b { display: block; font-weight: 500; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--blush-soft); font-size: 1.3rem; }

/* ── Kopfbereich (öffentliche Seiten) ─────────────────── */
.hero { color: var(--ink); background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 36px 0 84px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 2rem; margin-bottom: .35em; }
.hero p { color: var(--ink-2); font-size: 1.06rem; max-width: 640px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero .meta span { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .9rem; color: var(--ink-2); }
.hero-card { margin-top: -54px; position: relative; }
@media (min-width: 720px) { .hero h1 { font-size: 2.6rem; } .hero { padding: 56px 0 100px; } }
.hero-photo { height: 180px; background: var(--hero-img, linear-gradient(135deg, #e9e2ee, #dfe6dc)) center / cover no-repeat; }
@media (min-width: 720px) { .hero-photo { height: 240px; } }
.public-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.public-top .wrap { display: flex; align-items: center; height: 64px; gap: 12px; }
.public-top .spacer { flex: 1; }
.public-top a.btn { background: rgba(255,255,255,.85); }
.btn-soft { background: #fff; color: var(--brand-dark); border-color: #d9dfd6; }

/* ── Ticket ───────────────────────────────────────────── */
.ticket { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ticket-head { background: #fff; color: var(--ink); padding: 22px 24px; text-align: center; border-bottom: 1px solid var(--line); }
.ticket-head .ev { font-weight: 300; font-size: 1.35rem; letter-spacing: .06em; }
.ticket-head .dt { color: var(--muted); font-size: .92rem; }
.ticket-body { padding: 24px; text-align: center; }
.ticket-qr { display: inline-block; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.ticket-qr svg { display: block; width: 260px; height: 260px; }
.ticket-code { font-size: 1.8rem; font-weight: 300; letter-spacing: .35em; margin: 10px 0 0; padding-left: .35em; }
.ticket-name { font-size: 1.35rem; font-weight: 400; margin-top: 14px; }
.ticket-perf { height: 0; border-top: 1px dashed #d8d1dc; margin: 0 18px; position: relative; }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket-perf::before { left: -30px; } .ticket-perf::after { right: -30px; }

/* ── Scanner (hell und ruhig; nur das Kamerabild ist dunkel) ── */
.scan-shell { color: var(--ink); padding: 18px 16px calc(var(--tabbar-h) + 24px); }
.scan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.scan-head h1 { font-size: 1.45rem; margin: 0; }
.scan-head .sub { color: var(--muted); font-size: .9rem; }
.goal-pill { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; min-width: 120px; }
.goal-pill .tiny { color: var(--muted) !important; }
.goal-pill b { font-size: 1.25rem; font-weight: 400; }
.goal-pill .progress { height: 6px; margin-top: 4px; }
.viewfinder {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #f1ecf4, #e6ebe3); box-shadow: var(--shadow);
}
.viewfinder video, .viewfinder canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder .frame { position: absolute; inset: 14%; pointer-events: none; }
.viewfinder .frame i { position: absolute; width: 40px; height: 40px; border: 3px solid #fff; border-radius: 4px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.viewfinder .frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.viewfinder .frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.viewfinder .frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.viewfinder .frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.viewfinder .laser { position: absolute; left: 16%; right: 16%; height: 2px; top: 20%; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 14px rgba(255,255,255,.9); animation: laser 2.4s ease-in-out infinite alternate; }
@keyframes laser { from { top: 18%; } to { top: 80%; } }
.viewfinder.flash { animation: flash .6s; }
@keyframes flash { 0% { box-shadow: inset 0 0 0 0 #fff; } 30% { box-shadow: inset 0 0 0 12px rgba(255,255,255,.95); } 100% { box-shadow: inset 0 0 0 0 #fff; } }
.viewfinder .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; gap: 14px; }
.viewfinder .overlay .big-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-dark); box-shadow: var(--shadow); }
.viewfinder .overlay .big-ico svg { width: 38px; height: 38px; stroke-width: 1.5; }
.viewfinder .overlay h2 { color: #2f2b33; }
.viewfinder .overlay p { color: var(--ink-2); margin: 0; max-width: 320px; }
.scan-hint { text-align: center; color: var(--ink-2); margin: 14px auto 0; max-width: 460px; font-size: .95rem; }
.scan-hint b { color: var(--ink); font-weight: 500; }
.scan-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; max-width: 520px; margin: 16px auto 0; }
.scan-actions .btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; font-size: .95rem; }
.recent { max-width: 520px; margin: 24px auto 0; }
.recent h3 { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 400; }
.recent .lead-card { margin-bottom: 8px; }
.recent .lead-card .meta { color: var(--muted); }
.net { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; padding: 4px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--brand-dark); }
.net::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.net.off { background: var(--warm-soft); color: #86652c; }

/* ── Bottom Sheet (nach dem Scan) ─────────────────────── */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(59,55,64,.35); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; color: var(--ink); border-radius: 20px 20px 0 0;
  max-height: 92vh; overflow-y: auto; transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg);
}
.sheet.open { transform: none; }
.sheet .grip { width: 44px; height: 4px; border-radius: 3px; background: #ddd6e0; margin: 0 auto 14px; }
@media (min-width: 700px) { .sheet { left: 50%; right: auto; width: 560px; margin-left: -280px; bottom: 24px; border-radius: 18px; } }
.success-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.success-head .check-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; animation: pop .35s; }
.success-head .check-circle.repeat { background: #b3a6bb; }
.success-head .check-circle svg { width: 28px; height: 28px; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.contact-box { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.contact-box .n { font-weight: 500; font-size: 1.15rem; }

/* ── Toast (Popup „Neuer Kontakt") ────────────────────── */
.toasts { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
@media (min-width: 700px) { .toasts { left: auto; right: 20px; top: 76px; align-items: flex-end; } }
.toast {
  pointer-events: auto; width: 100%; max-width: 400px; background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; border-left: 4px solid var(--brand);
  animation: toast-in .35s cubic-bezier(.2,.8,.2,1);
}
.toast:hover { text-decoration: none; }
.toast.hot { border-left-color: var(--hot); }
.toast .t-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-dark); }
.toast.hot .t-label { color: var(--hot); }
.toast .t-name { font-weight: 500; }
.toast .t-meta { font-size: .85rem; color: var(--muted); }
.toast.out { animation: toast-out .3s forwards; }
@keyframes toast-in { from { transform: translateY(-20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(-12px); opacity: 0; } }

/* ── Einführung / Modal ───────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(59,55,64,.45); display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; color: var(--ink); border-radius: 16px; max-width: 440px; width: 100%; padding: 30px 24px 22px; box-shadow: var(--shadow-lg); text-align: center; }
.modal .illu { width: 104px; height: 104px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 3rem; background: var(--blush-soft); }
.modal h2 { font-size: 1.45rem; }
.modal p { color: var(--ink-2); }
.dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #ddd6e0; }
.dots i.on { background: var(--brand); width: 20px; border-radius: 4px; }

/* ── Hilfe ────────────────────────────────────────────── */
details.faq { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 4px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 500; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); font-weight: 300; }
details.faq[open] summary::after { content: "–"; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq > div { padding: 0 0 16px; color: var(--ink-2); }

.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 28px 0 44px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; }
.kbd { font-family: ui-monospace, monospace; background: #f5f2f7; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .86em; }
@media print { .topbar, .tabbar, .no-print { display: none !important; } body { background: #fff; } }

/* ── Aussteller-Logos ─────────────────────────────────── */
.logo-img { display: inline-block; flex: none; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; }

/* ── Banner „Als App installieren" ────────────────────── */
.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 16px 10px; border: 1px solid var(--line);
  animation: toast-in .35s cubic-bezier(.2,.8,.2,1); max-width: 460px; margin: 0 auto;
}
.tabbar ~ .install-banner, body.has-tabbar .install-banner { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); }
.install-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: 6px; }
.install-steps { margin: 0; padding-left: 20px; font-size: .95rem; line-height: 1.9; }
.ios-share { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #eef4ff; color: #0a84ff; vertical-align: middle; }
.ios-arrow { text-align: center; font-size: 1.6rem; color: #0a84ff; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
body.has-install-banner { padding-bottom: 210px; }

/* ── Push-Leiste fürs Standteam ───────────────────────── */
.push-bar { background: var(--blush-soft); border-bottom: 1px solid #efd9dd; padding: 10px 0; color: #6d4a50; }
.push-bar .wrap { align-items: center; }

/* Startseite: Messe wählen */
.event-choice { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: #fff; }
.event-choice:hover { text-decoration: none; border-color: var(--brand); }
.event-choice .name { font-size: 1.15rem; }
.event-choice .meta { color: var(--muted); font-size: .9rem; }
.event-logo { width: 64px; height: 64px; object-fit: contain; flex: none; background: #fff; border-radius: 10px; }

/* Fussleiste „Jetzt registrieren · Anmelden" für Unbekannte */
.guest-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(59,55,64,.08); backdrop-filter: blur(6px); }
.guest-bar .btn { justify-content: center; }
body:has(.guest-bar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
body:has(.guest-bar) .install-banner { bottom: calc(76px + 12px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .guest-bar { left: 50%; right: auto; width: 520px; margin-left: -260px; bottom: 16px; border-radius: 16px; border: 1px solid var(--line); } }
@media print { .guest-bar { display: none; } }

/* Passwortfeld mit „anzeigen" */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 90px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand-dark); font-size: .85rem; padding: 8px; cursor: pointer; }
/* Hinweis: E-Mail noch nicht bestätigt */
.verify-banner { background: #fff4e0; border-bottom: 1px solid #f0d9a8; color: #6b4e16; padding: 10px 16px; font-size: .92rem; }
.verify-banner .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.verify-banner button { border: 1px solid #d9b56a; background: #fff; color: #6b4e16; border-radius: 8px; padding: 6px 10px; font-size: .85rem; cursor: pointer; }

/* Infoseite: Upload-Kasten fürs Geschenk */
.upload-box { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.upload-box.has { border-style: solid; border-color: var(--brand); }
/* Infoseite des Ausstellers, wie der Gast sie sieht */
.info-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; display: block; }
.info-text { white-space: pre-line; line-height: 1.6; }
.contact-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
