:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f2f5;
  --text: #1f2329;
  --muted: #6b7380;
  --border: #e4e6ea;
  --accent: #ff4f6d;
  --accent-2: #d63a8a;
  --like: #18c98f;
  --nope: #ff4f6d;
  --super: #2a9df4;
  --rewind: #f2b200;
  --boost: #a259ff;
  --shadow: 0 10px 30px rgba(20, 24, 32, .14);
  --shadow-sm: 0 3px 12px rgba(20, 24, 32, .12);
  --radius: 16px;
  --grad: linear-gradient(135deg, #ff7a59, #d63a8a);
  --topbar-h: 56px;
  --tabbar-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --surface: #1a1e23;
    --surface-2: #252a31;
    --text: #eef1f4;
    --muted: #9aa3ad;
    --border: #2c3239;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5);
    --shadow-sm: 0 3px 12px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.ic { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -.22em; flex-shrink: 0; }

.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Kopfzeile */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0 14px;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
}
.brand { display: flex; gap: 6px; align-items: center; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; text-decoration: none; color: inherit; }
.brand img { border-radius: 9px; }
.wordmark {
  font-size: 1.6rem; font-weight: 900; letter-spacing: -.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar-right { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: transparent; color: var(--muted); display: grid; place-items: center; text-decoration: none; flex-shrink: 0;
}
.icon-btn .ic { width: 24px; height: 24px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.view { flex: 1; padding: 6px 12px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px); display: flex; flex-direction: column; }
.center { margin: auto; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
h1 { font-size: 1.6rem; margin: .2em 0 .4em; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; margin: .2em 0 .6em; }

/* Leiste unten: nur Symbole */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
  z-index: 10;
}
.tabbar a { flex: 1; display: grid; place-items: center; position: relative; color: #b9bfc8; text-decoration: none; }
.tabbar a .ic { width: 29px; height: 29px; transition: transform .15s; }
.tabbar a:active .ic { transform: scale(.88); }
.tabbar a.active { color: var(--accent); }
.tabbar a.active .f { fill: url(#funkeGrad); }
.tabbar a.active .s { stroke: url(#funkeGrad); }
@media (prefers-color-scheme: dark) { .tabbar a { color: #59616c; } }
.badge {
  position: absolute; top: 9px; left: calc(50% + 7px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: .7rem; line-height: 18px; text-align: center;
  border: 2px solid var(--surface); box-sizing: content-box;
}

/* Buttons & Formulare */
.btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--grad); color: #fff;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none;
  padding: 13px 18px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(214, 58, 138, .25);
  transition: transform .1s, opacity .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-block { width: 100%; }
.btn-small { padding: 8px 14px; font-size: .88rem; }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: none; }
.btn-outline { background: transparent; border: 2px solid rgba(255, 255, 255, .85); color: #fff; box-shadow: none; }
.btn-danger { background: var(--nope); box-shadow: none; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 6px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-weight: 600; font-size: .9rem; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
input, select, textarea {
  font: inherit; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }
.error { color: var(--nope); font-size: .9rem; }

/* Bestätigungs-Code für Team-Konten */
.code-card { max-width: 440px; margin: 32px auto 0; }
.code-input { font-size: 1.7rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

.tabs { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: none; font: inherit; font-weight: 600; padding: 9px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Runde Profilbilder */
.avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: var(--surface-2); flex-shrink: 0; display: grid; place-items: center;
  font-size: 2rem; color: var(--muted); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 56px; height: 56px; font-size: 1.4rem; }
.avatar.xs { width: 38px; height: 38px; font-size: 1rem; }
.avatar.xl { width: 116px; height: 116px; font-size: 2.8rem; }

/* ---------- Entdecken: Kartenstapel ---------- */
.discover { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.deck { position: relative; flex: 1; min-height: 400px; max-height: 760px; }
.swipe-card {
  position: absolute; inset: 0;
  border-radius: 14px; overflow: hidden; background: #22262c;
  box-shadow: var(--shadow);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  will-change: transform; transform-origin: 50% 85%;
}
.swipe-card.behind { transform: scale(.95); }
.swipe-card.dragging { cursor: grabbing; }
.swipe-card.rewind-in { animation: rewind-in .38s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes rewind-in { from { transform: translate(-110%, -20px) rotate(-18deg); opacity: 0; } }
.card-photo { position: absolute; inset: 0; background: #2b2f36 center / cover no-repeat; }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; color: rgba(255, 255, 255, .45); }
.photo-bars { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 5px; z-index: 2; }
.photo-bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .38); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.photo-bars i.on { background: #fff; }
.super-banner {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 6px; align-items: center; white-space: nowrap;
  background: var(--super); color: #fff; font-weight: 700; font-size: .78rem;
  padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: flex-end; gap: 10px;
  padding: 110px 16px 18px; color: #fff;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .3) 35%, rgba(0, 0, 0, .88));
}
.card-text { flex: 1; min-width: 0; }
.card-info h2, .pf-body h1 { font-size: 2rem; font-weight: 800; margin: 0; line-height: 1.1; letter-spacing: -.02em; }
.card-info h2 { text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.age { font-weight: 400; }
.card-page { min-height: 1.4em; }
.card-lines { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: .95rem; }
.card-lines span { display: flex; align-items: center; gap: 6px; }
.card-lines .ic { width: 16px; height: 16px; opacity: .9; }
.card-bio { margin: 6px 0 0; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid rgba(255,255,255,.25); }
.info-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; flex-shrink: 0; cursor: pointer;
  background: #fff; color: #1f2329; display: grid; place-items: center; box-shadow: var(--shadow-sm); margin-bottom: 2px;
}
.info-btn .ic { width: 20px; height: 20px; }
.stamp {
  position: absolute; top: 48px; z-index: 3; pointer-events: none; opacity: 0;
  padding: 2px 12px; border: 5px solid; border-radius: 10px; line-height: 1.1;
  font-weight: 900; font-size: 2.6rem; letter-spacing: .04em; text-align: center;
}
.stamp.like { left: 22px; color: var(--like); transform: rotate(-18deg); }
.stamp.nope { right: 22px; color: var(--nope); transform: rotate(18deg); }
.stamp.super { top: auto; bottom: 150px; left: 50%; color: var(--super); font-size: 2.1rem; transform: translateX(-50%) rotate(-8deg); }

/* Runde Aktionsknöpfe */
.actions { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 14px 0 4px; flex: none; }
.act {
  width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--surface);
  box-shadow: 0 4px 16px rgba(20, 24, 32, .14); transition: transform .12s, background .15s, color .15s, opacity .2s;
}
.act .ic { width: 30px; height: 30px; }
.act.small { width: 48px; height: 48px; }
.act.small .ic { width: 22px; height: 22px; }
.act.nope { color: var(--nope); }
.act.like { color: var(--like); }
.act.super { color: var(--super); }
.act.rewind { color: var(--rewind); }
.act.boost { color: var(--boost); }
.act:active { transform: scale(.9); }
.act.nope.hl, .act.like.hl, .act.super.hl { color: #fff; transform: scale(1.1); }
.act.nope.hl { background: var(--nope); }
.act.like.hl { background: var(--like); }
.act.super.hl { background: var(--super); }
@media (hover: hover) {
  .act.nope:hover { background: var(--nope); color: #fff; }
  .act.like:hover { background: var(--like); color: #fff; }
  .act.super:hover { background: var(--super); color: #fff; }
  .act.rewind:hover { background: var(--rewind); color: #fff; }
  .act.boost:hover { background: var(--boost); color: #fff; }
}
@media (prefers-color-scheme: dark) { .act { background: var(--surface-2); box-shadow: 0 4px 16px rgba(0, 0, 0, .5); } }
.act.used { opacity: .45; }
.act.boost.active { background: var(--boost); color: #fff; animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--boost) 25%, transparent); } }
.actions.no-cards .nope, .actions.no-cards .like, .actions.no-cards .super { visibility: hidden; }
.loc-hint {
  align-self: center; margin: 0 0 8px; border: 0; cursor: pointer;
  display: flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: .84rem; font-weight: 700;
}
.loc-hint .ic { color: var(--accent); }

/* Suche läuft: pulsierende Kreise um das eigene Foto */
.pulse-wrap { margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px; max-width: 380px; }
.deck .pulse-wrap { position: absolute; inset: 0; justify-content: center; }
.pulse { position: relative; width: 250px; height: 250px; display: grid; place-items: center; flex-shrink: 0; }
.pulse i {
  position: absolute; inset: 0; margin: auto; width: 116px; height: 116px; border-radius: 50%;
  background: var(--grad); opacity: 0; animation: pulse 2.6s ease-out infinite;
}
.pulse i:nth-child(2) { animation-delay: .87s; }
.pulse i:nth-child(3) { animation-delay: 1.73s; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .42; } 100% { transform: scale(2.15); opacity: 0; } }
.pulse .avatar { position: relative; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.pulse-text { font-weight: 700; color: var(--muted); margin: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; width: min(320px, 100%); margin: 6px auto 0; }

/* ---------- Fenster von unten (Profil, Suchfilter, Menü) ---------- */
.bsheet-backdrop {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(8, 10, 14, .55); animation: fade .2s ease;
}
.bsheet-backdrop.closing { opacity: 0; transition: opacity .2s; }
.bsheet {
  width: 100%; max-width: 520px; max-height: 92%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); animation: sheet-up .26s cubic-bezier(.2, .9, .3, 1);
}
@keyframes sheet-up { from { transform: translateY(60px); opacity: .4; } }
.bsheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bsheet-head h2 { margin: 0; }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--border); }
.filter-group:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.filter-group p { margin: 0 0 10px; }
.range-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; }
.range-row span, .range-row b + span { color: var(--muted); font-weight: 600; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.segmented button { flex: 1; border: 0; background: none; font: inherit; font-weight: 700; padding: 9px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.segmented button.on { background: var(--surface); color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.1); }

/* Schieberegler (einfach und doppelt fürs Alter) */
input.range, .dual input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; }
input.range:focus, .dual input:focus { outline: none; }
input.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--border) var(--fill, 50%));
}
input.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--border); }
input.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input.range::-webkit-slider-thumb, .dual input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; cursor: pointer;
  background: #fff; border: 1px solid #d5d8dd; box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
}
input.range::-moz-range-thumb, .dual input::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  background: #fff; border: 1px solid #d5d8dd; box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
}
.dual { position: relative; height: 28px; }
.dual-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--border); }
.dual-track i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.dual input { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.dual input::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.dual input::-moz-range-track { background: transparent; }
.dual input::-webkit-slider-thumb { pointer-events: auto; }
.dual input::-moz-range-thumb { pointer-events: auto; }

/* Ausführliches Profil */
.bsheet.pf-sheet { padding: 0; max-height: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
@media (min-width: 600px) { .bsheet.pf-sheet { height: auto; max-height: 94%; border-radius: 22px 22px 0 0; } }
.pf-photo { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 66vh; flex-shrink: 0; cursor: pointer; }
.pf-photo .card-photo { background-color: #22262c; }
.pf-close {
  position: absolute; right: 16px; bottom: -26px; z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.pf-close .ic { width: 26px; height: 26px; }
.pf-body { padding: 18px 18px 24px; }
.pf-body h1 { margin-right: 60px; }
.pf-body .card-lines { color: var(--muted); }
.pf-body h3 { font-size: .95rem; margin: 18px 0 6px; }
.pf-bio { margin: 0; white-space: pre-wrap; }
.pf-body .chip { background: var(--surface-2); border-color: var(--border); color: var(--text); backdrop-filter: none; }
.pf-super { color: var(--super); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.insta-link, .insta-locked {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700;
}
.insta-link { color: #fff; background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #833ab4); }
.insta-locked { color: var(--muted); background: var(--surface-2); }
.insta-link .ic, .insta-locked .ic { width: 18px; height: 18px; }
.ig-input { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); padding-left: 12px; }
.ig-input span { color: var(--muted); font-weight: 700; }
.ig-input input { border: 0; background: transparent; padding-left: 4px; }
.ig-input:focus-within { border-color: var(--accent); }
.ig-input.off { opacity: .6; }
.premium-tag { font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #fff3c4; color: #7a5600; vertical-align: middle; }
.field > label .ic { color: var(--accent); }
.pf-report { margin-top: 18px; color: var(--muted); padding-left: 0; }
.pf-actions {
  position: sticky; bottom: 0; margin-top: auto; display: flex; justify-content: center; gap: 22px;
  padding: 14px 0 calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--surface) 35%);
}

/* Menü (z. B. im Chat) */
.menu { display: flex; flex-direction: column; }
.menu button { border: 0; background: none; font: inherit; font-weight: 600; padding: 15px 6px; text-align: center; cursor: pointer; color: var(--text); border-bottom: 1px solid var(--border); }
.menu button:last-child { border-bottom: 0; }
.menu button.danger { color: var(--nope); }
.menu button.muted { color: var(--muted); }

/* ---------- Es hat gefunkt! ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(14, 8, 18, .86); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px; color: #fff; text-align: center;
  animation: fade .25s ease; overflow: hidden;
}
.match-overlay { background: radial-gradient(circle at 50% 32%, rgba(214, 58, 138, .6), rgba(12, 8, 16, .94) 68%); }
.match-box { position: relative; z-index: 1; }
.match-title {
  font-size: clamp(2.7rem, 12vw, 3.8rem); font-weight: 900; font-style: italic; letter-spacing: -.03em; margin: 0 0 8px;
  background: linear-gradient(135deg, #ffe08a, #ff9a5a 45%, #ff5a95); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pop-title .6s cubic-bezier(.2, 1.5, .4, 1) both;
}
@keyframes pop-title { from { transform: scale(.4); opacity: 0; } }
.overlay .pair { display: flex; justify-content: center; margin: 24px 0 30px; }
.overlay .pair .avatar { width: 128px; height: 128px; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.tilt-l { transform: rotate(-8deg) translateX(12px); animation: in-l .5s .15s ease-out both; }
.tilt-r { transform: rotate(8deg) translateX(-12px); animation: in-r .5s .15s ease-out both; }
@keyframes in-l { from { transform: translateX(-60px) rotate(-20deg); opacity: 0; } }
@keyframes in-r { from { transform: translateX(60px) rotate(20deg); opacity: 0; } }
.overlay .stack { width: min(320px, 100%); }
.sparks i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffd36e; opacity: 0;
  animation: spark 2.8s ease-out infinite;
}
.sparks i:nth-child(even) { background: #ff7a9c; width: 6px; height: 6px; }
.sparks i:nth-child(1) { left: 12%; top: 22%; animation-delay: .1s; }
.sparks i:nth-child(2) { left: 82%; top: 18%; animation-delay: .5s; }
.sparks i:nth-child(3) { left: 24%; top: 70%; animation-delay: .9s; }
.sparks i:nth-child(4) { left: 70%; top: 76%; animation-delay: .3s; }
.sparks i:nth-child(5) { left: 48%; top: 10%; animation-delay: 1.2s; }
.sparks i:nth-child(6) { left: 8%; top: 52%; animation-delay: 1.6s; }
.sparks i:nth-child(7) { left: 90%; top: 48%; animation-delay: .7s; }
.sparks i:nth-child(8) { left: 36%; top: 34%; animation-delay: 2s; }
.sparks i:nth-child(9) { left: 62%; top: 30%; animation-delay: 1.4s; }
.sparks i:nth-child(10) { left: 16%; top: 86%; animation-delay: 2.3s; }
.sparks i:nth-child(11) { left: 86%; top: 88%; animation-delay: 1.9s; }
.sparks i:nth-child(12) { left: 54%; top: 90%; animation-delay: .4s; }
.sparks i:nth-child(13) { left: 30%; top: 6%; animation-delay: 2.5s; }
.sparks i:nth-child(14) { left: 74%; top: 60%; animation-delay: 1.1s; }
@keyframes spark { 0% { transform: scale(0); opacity: 0; } 20% { opacity: 1; transform: scale(1.4); } 100% { transform: translateY(-50px) scale(.2); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Radar ---------- */
.radar-page { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.radar-head { align-self: stretch; }
.radar-head h1 { margin-bottom: 0; }
.radar-head p { margin: 2px 0 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.radar-head .ic { color: var(--accent); }
.radar { position: relative; width: min(100%, 440px); aspect-ratio: 1; flex-shrink: 0; touch-action: manipulation; }
.radar-bg {
  position: absolute; inset: 3%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent) 0%, color-mix(in srgb, var(--accent) 4%, transparent) 70%, transparent 71%);
}
.radar.scan .radar-bg { animation: scan-flash .9s ease-out; }
@keyframes scan-flash { 30% { background-color: color-mix(in srgb, var(--accent) 18%, transparent); } }
.radar-ring {
  position: absolute; left: 50%; top: 50%; width: var(--r); height: var(--r); transform: translate(-50%, -50%);
  border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 26%, transparent); pointer-events: none;
}
.radar-labels span {
  position: absolute; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
  font-size: .66rem; font-weight: 800; color: var(--muted); background: var(--bg); padding: 0 4px; border-radius: 6px; white-space: nowrap;
}
.radar-sweep {
  position: absolute; inset: 3%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, color-mix(in srgb, var(--accent) 6%, transparent) 300deg, color-mix(in srgb, var(--accent) 40%, transparent) 360deg);
  animation: sweep 4s linear infinite;
}
.radar-sweep::after {
  content: ''; position: absolute; left: calc(50% - 1px); top: 0; width: 2px; height: 50%;
  background: linear-gradient(to top, transparent, var(--accent));
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-wave {
  position: absolute; left: 39%; top: 39%; width: 22%; height: 22%; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--accent); opacity: 0; animation: wave 3.2s ease-out infinite;
}
.radar-wave.w2 { animation-delay: 1.6s; }
@keyframes wave { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(4.3); opacity: 0; } }
.radar-me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }
.radar-me .avatar { width: 66px; height: 66px; font-size: 1.6rem; border: 3px solid var(--surface); box-shadow: var(--shadow); }
.radar-dots { position: absolute; inset: 0; z-index: 4; }
.radar-dot {
  position: absolute; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, -50%); animation: dot-pop .45s cubic-bezier(.2, 1.5, .4, 1) var(--d) both;
}
.radar-dot::before {
  content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0;
  animation: dot-ping 4s linear var(--d) infinite; pointer-events: none;
}
@keyframes dot-pop { from { transform: translate(-50%, -50%) scale(0); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes dot-ping { 0% { opacity: .9; transform: scale(.85); } 22% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; } }
.radar-dot.gone { animation: dot-out .3s ease-in forwards; }
@keyframes dot-out { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(-50%, -50%) scale(0); opacity: 0; } }
.dot-img {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  border: 3px solid var(--surface); background: var(--surface-2); box-shadow: 0 3px 10px rgba(0, 0, 0, .25); font-size: 1.2rem;
}
.dot-img img { width: 100%; height: 100%; object-fit: cover; }
.dot-img .ic { width: 60%; height: 60%; color: var(--muted); }
.radar-dot.liked .dot-img { border-color: var(--like); }
.radar-dot.match .dot-img { border-color: var(--accent); }
.radar-dot.super .dot-img { border-color: var(--super); }
.dot-badge {
  position: absolute; right: -4px; bottom: -2px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow-sm); color: var(--super);
}
.dot-badge .ic { width: 12px; height: 12px; }
.radar-dot.liked .dot-badge { color: var(--like); }
.radar-dot.match .dot-badge { color: var(--accent); }
.dot-name {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 3px; white-space: nowrap;
  font-size: .68rem; font-weight: 800; color: var(--text); background: color-mix(in srgb, var(--bg) 82%, transparent);
  padding: 0 5px; border-radius: 6px;
}
.radar-msg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: min(86%, 320px);
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; text-align: center;
}
.radar-msg h2 { margin: 0 0 4px; }
.radar-msg p { margin: 6px 0; }
.radar-panel { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.radar-panel p { margin: 0; }
.radar-count { font-size: .95rem; }
.radar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.radar-panel .ic { color: var(--muted); }
.radar-actions .ic { color: var(--accent); }

/* ---------- Chats ---------- */
.section-title { font-size: .95rem; font-weight: 800; color: var(--accent); margin: 12px 0 10px; }
.new-matches { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 8px; scrollbar-width: thin; }
.nm-tile { flex: 0 0 auto; width: 92px; text-decoration: none; color: inherit; text-align: center; font-size: .82rem; font-weight: 700; }
.nm-photo {
  position: relative; display: grid; place-items: center; width: 92px; height: 122px; border-radius: 10px; margin-bottom: 5px;
  background: var(--surface-2) center / cover no-repeat; font-size: 2rem; color: var(--muted); box-shadow: var(--shadow-sm);
}
.nm-ki { position: absolute; left: 6px; bottom: 6px; font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: #ece6ff; color: #4b2fc4; }
.list { display: flex; flex-direction: column; gap: 2px; }
.list a {
  display: flex; align-items: center; gap: 12px; padding: 10px 6px;
  border-radius: 14px; text-decoration: none; color: inherit;
}
.list a:hover, .list a:active { background: var(--surface-2); }
.list .meta { min-width: 0; flex: 1; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.list .meta strong { display: block; }
.list .meta > span { display: block; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Chat */
.chat { display: flex; flex-direction: column; flex: 1; margin: -6px -12px calc(-1 * (var(--tabbar-h) + env(safe-area-inset-bottom) + 14px)); }
.chat-head {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.chat-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-align: left; padding: 4px; }
.chat-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 18px; word-wrap: break-word; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg time { display: block; font-size: .7rem; opacity: .7; margin-top: 2px; }
.composer { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.composer input { border-radius: 999px; background: var(--surface-2); border-color: transparent; }
.send-btn { padding: 0; width: 46px; height: 46px; flex-shrink: 0; }
.send-btn .ic { width: 20px; height: 20px; }

/* ---------- Eigenes Profil ---------- */
.profile-view { display: flex; flex-direction: column; gap: 14px; }
.me-card { text-align: center; padding: 14px 8px 4px; }
.me-card h1 { margin: 6px 0 2px; }
.me-loc { margin: 0; display: flex; justify-content: center; gap: 4px; align-items: center; flex-wrap: wrap; }
.me-avatar { position: relative; width: 136px; margin: 0 auto; }
.me-avatar .avatar { width: 136px; height: 136px; font-size: 3rem; box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--accent); }
.me-edit {
  position: absolute; right: 0; bottom: 4px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--muted);
}
.me-edit .ic { width: 20px; height: 20px; }
.me-actions { display: flex; justify-content: center; gap: 26px; margin: 18px 0 4px; }
.me-act { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none; cursor: pointer; }
.me-act > span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); }
.me-act .ic { width: 24px; height: 24px; }
.me-act .gold { color: #f2b200; }
.premium-banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; text-decoration: none;
  background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(214, 58, 138, .3);
}
.pb-ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; flex-shrink: 0; }
.pb-ic .ic { width: 24px; height: 24px; color: #ffe08a; }
.sheet { white-space: pre-wrap; }

/* Fotos im Profil (bis zu 6) */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pslot { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; background: var(--surface-2); border: 2px dashed var(--border); overflow: hidden; }
.pslot.filled { border: 0; }
.pslot img { width: 100%; height: 100%; object-fit: cover; }
.pslot.add { display: grid; place-items: center; cursor: pointer; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.pslot.add .ic { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--grad); color: #fff; }
.pslot.busy { display: grid; place-items: center; border-style: solid; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pbtn {
  position: absolute; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm);
}
.pbtn .ic { width: 15px; height: 15px; }
.pdel { right: 6px; color: var(--nope); }
.pstar { left: 6px; color: var(--super); }
.pmain { position: absolute; left: 6px; top: 6px; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }

/* Coins, Zähler, KI-Kennzeichnung */
.coin-chip {
  display: inline-flex; gap: 4px; align-items: center; text-decoration: none;
  background: var(--surface-2); color: var(--text); padding: 6px 12px; border-radius: 999px;
  font-weight: 700; font-size: .9rem;
}
.ki-tag {
  display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #ece6ff; color: #4b2fc4; vertical-align: middle; white-space: nowrap;
}
.avatar.is-bot { box-shadow: 0 0 0 3px #8b6cff; }
.ki-banner {
  background: #efe9ff; color: #3a2a8a; padding: 10px 14px; font-size: .85rem; line-height: 1.4;
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .ki-tag, .nm-ki { background: #35295e; color: #d9ceff; }
  .ki-banner { background: #2a2147; color: #e2d9ff; }
}
.typing { padding: 2px 16px 8px; font-size: .85rem; color: var(--muted); font-style: italic; }
.composer-wrap { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); }
.composer-hint { padding: 8px 14px 0; font-size: .78rem; color: var(--muted); }
.composer-hint.low { color: var(--nope); }
.list a.has-unread strong { color: var(--accent); }
.list .count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .75rem; display: grid; place-items: center;
}
.coins-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.coins-big { font-size: 1.45rem; font-weight: 800; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; }
input.switch {
  appearance: none; -webkit-appearance: none; width: 50px; height: 30px; padding: 0; border: 0; flex-shrink: 0;
  border-radius: 999px; background: var(--border); position: relative; cursor: pointer; transition: background .2s;
}
input.switch::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s;
}
input.switch:checked { background: var(--accent); }
input.switch:checked::before { transform: translateX(20px); }
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.package { text-align: center; display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.package .price { font-weight: 800; font-size: 1.15rem; margin: 4px 0; }
/* Premium */
.plan { position: relative; }
.package .btn { margin-top: auto; }
.plan-title { font-weight: 800; font-size: 1.1rem; }
.plan .price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.plan.best { box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm); }
.best-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.premium-card { background: linear-gradient(135deg, rgba(255,122,89,.14), rgba(214,58,138,.14)), var(--surface); }
.field .check { font-weight: 400; }
@media print {
  .topbar, .tabbar, .site-footer, #print { display: none !important; }
  body { background: #fff; color: #000; }
}

.check.card { padding: 14px; }
.check.attention { box-shadow: 0 0 0 2px var(--nope); }
.history { padding: 6px 16px; }
.history-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.history-row:last-child { border-bottom: 0; }
.history-row .plus { color: var(--like); }
.history-row .minus { color: var(--muted); }

/* Startseite (breiter auf dem PC) */
.app.wide { max-width: 1040px; }
.landing {
  display: grid; gap: 20px; padding-top: 8px;
  grid-template-areas: "hero" "card" "features";
}
.hero { grid-area: hero; text-align: center; }
.auth-card { grid-area: card; }
.features { grid-area: features; }
.hero-icon { border-radius: 22px; box-shadow: var(--shadow); margin: 0 auto 14px; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .3em; font-weight: 900; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; margin: 0 auto; }
.features { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 10px; max-width: 30em; }
.features li { display: flex; gap: 12px; align-items: center; }
.features span {
  width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface-2); border-radius: 12px; font-size: 1.1rem;
}
@media (min-width: 860px) {
  .landing {
    grid-template-columns: 1.1fr 1fr; grid-template-areas: "hero card" "features card";
    column-gap: 56px; row-gap: 24px; padding-top: 56px; align-items: start;
  }
  .hero { text-align: left; align-self: end; }
  .hero-icon { margin: 0 0 18px; }
  .lead { margin: 0; }
  .features { margin: 0; }
  .auth-card { align-self: center; }
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.4; }
.check input { width: auto; margin-top: 2px; flex-shrink: 0; }
.site-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; padding: 28px 0 8px; font-size: .85rem; }
.site-footer a { color: var(--muted); }

/* Moderation */
.reports { display: flex; flex-direction: column; gap: 12px; }
.report-head { display: flex; gap: 12px; align-items: center; }

/* Die drei Wächter */
.guards { display: grid; gap: 12px; }
.guard { padding: 16px; }
.guard.warn { box-shadow: 0 0 0 2px #f2b200, var(--shadow-sm); }
.guard.alarm { box-shadow: 0 0 0 2px var(--nope), var(--shadow-sm); }
.guard-head { display: flex; gap: 12px; align-items: center; }
.guard-head .grow { flex: 1; min-width: 0; }
.guard-emoji { font-size: 1.9rem; }
.guard-facts { margin: 10px 0 8px; padding-left: 20px; font-size: .92rem; }
.guard-facts li { margin: 2px 0; }
.pill { font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--like) 18%, transparent); color: var(--like); }
.pill.warn { background: #fff3c4; color: #7a5600; }
.pill.alarm { background: color-mix(in srgb, var(--nope) 16%, transparent); color: var(--nope); }
.list-card { padding: 4px 16px; }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.row-item:last-child, .event:last-child { border-bottom: 0; }
.row-item > div { min-width: 0; overflow-wrap: anywhere; }
.event { display: flex; gap: 10px; padding: 10px 0 10px 8px; border-bottom: 1px solid var(--border); font-size: .9rem; border-left: 3px solid transparent; overflow-wrap: anywhere; }
.event.warnung, .event.ampel-gelb { border-left-color: #f2b200; }
.event.alarm, .event.ampel-rot { border-left-color: var(--nope); }
.event.ampel-rot { background: color-mix(in srgb, var(--nope) 6%, transparent); }
.ev-emoji { font-size: 1.1rem; line-height: 1.35; }
/* Meldungen einfach erklärt (Ampel, was passiert ist, was zu tun ist) */
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-was, .ev-tun { margin: 0; line-height: 1.45; }
.ev-tun b { color: var(--accent); }
.ev-tech summary { cursor: pointer; color: var(--muted); font-size: .8rem; font-weight: 700; width: fit-content; }
.ev-tech[open] > summary { margin-bottom: 4px; }
.ev-tech .ev-tech summary { margin-top: 4px; }
.ev-tech .small { color: var(--muted); }
.ampel-legend { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ampel-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.alert-banner.warn { background: color-mix(in srgb, #f2b200 14%, var(--surface)); box-shadow: inset 0 0 0 2px #f2b200; }
.alert-banner.warn .go { color: #b88600; }
.st-hilfe { color: var(--muted); display: inline-block; margin-top: 2px; }
/* Herkunft jeder Meldung (seit 17.11.2026): von uns oder nicht */
.quelle { align-self: flex-start; font-size: .75rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); }
.quelle.q-claude, .quelle.q-vermutlich { background: color-mix(in srgb, #4f8cff 20%, transparent); color: #1d4ed8; }
.quelle.q-pc, .quelle.q-du { background: color-mix(in srgb, #4f8cff 12%, transparent); }
.quelle.q-aussen { background: color-mix(in srgb, #f2b200 16%, transparent); }
.quelle.q-unklar { background: var(--nope); color: #fff; }
.only-foreign-toggle { font-size: .9rem; }
.event-list.only-foreign-on .event.eigen { display: none; }
.only-foreign-empty { display: none; margin: 10px 0; }
.event-list.only-foreign-on:not(:has(.event:not(.eigen))) .only-foreign-empty { display: block; }
@media (prefers-color-scheme: dark) { .quelle.q-claude, .quelle.q-vermutlich { color: #9fc1ff; } }
.woerter { padding: 14px 16px; }
.woerter summary { cursor: pointer; }
.woerter dl { margin: 10px 0 0; display: grid; gap: 8px; font-size: .92rem; }
.woerter dt { font-weight: 800; }
.woerter dd { margin: 0 0 4px; color: var(--muted); line-height: 1.45; }

/* Team-Bereich (nur für Admins) */
.team-view { display: flex; flex-direction: column; gap: 12px; }
.team-head { display: flex; align-items: center; gap: 12px; }
.team-head h1 { margin: 0; line-height: 1.15; }
.team-head p { margin: 2px 0 0; }
.team-head .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.team-nav { display: flex; gap: 8px; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 4px; scrollbar-width: none; }
.team-nav::-webkit-scrollbar { display: none; }
.team-nav a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-weight: 700; font-size: .9rem; text-decoration: none;
}
.team-nav a.on { background: var(--grad); color: #fff; }
.nav-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--nope); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; }
.team-nav a.on .nav-badge { background: #fff; color: var(--accent-2); }
.team-body { display: flex; flex-direction: column; gap: 12px; }
.team-body .section-title { margin: 8px 0 -4px; }
.alert-banner, .ok-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: inherit; }
.alert-banner { background: color-mix(in srgb, var(--nope) 12%, var(--surface)); box-shadow: inset 0 0 0 2px var(--nope); }
.ok-banner { background: color-mix(in srgb, var(--like) 14%, var(--surface)); }
.bn-ic { font-size: 1.6rem; }
.alert-banner .grow, .ok-banner .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.alert-banner .go { font-size: 1.8rem; line-height: 1; color: var(--nope); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat {
  display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 12px 14px; border-radius: 14px; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none;
}
.stat b { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stat span { font-size: .85rem; font-weight: 700; }
.stat small { color: var(--muted); font-size: .78rem; }
a.stat:hover { border-color: var(--accent); }
.link-row { color: inherit; text-decoration: none; }
.link-row:hover b { color: var(--accent); }
.row-item > span:last-child { text-align: right; overflow-wrap: anywhere; }
.row-item .bad { color: var(--nope); font-weight: 700; }
.selftest { padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.selftest .guard-head, .st-result { width: 100%; }
.st-summary { font-weight: 800; padding: 10px 12px; border-radius: 12px; }
.st-summary.ok { background: color-mix(in srgb, var(--like) 16%, transparent); }
.st-summary.warn { background: #fff3c4; color: #5c4400; }
.st-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.st-list li { display: flex; gap: 10px; align-items: flex-start; }
.st-mark {
  width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-weight: 900; font-size: .78rem; color: #fff; background: var(--like);
}
.st-list li.bad .st-mark { background: var(--nope); }
.st-list li.bad b { color: var(--nope); }
.neu-tag { font-size: .65rem; font-weight: 900; padding: 1px 6px; border-radius: 6px; background: var(--nope); color: #fff; vertical-align: 1px; }
.updates-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.updates-card > .btn { align-self: flex-start; }
.upd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; overflow-wrap: anywhere; }
.upd-list li { padding-left: 10px; border-left: 3px solid var(--nope); }
.upd-list li.low { border-left-color: var(--border); }
.upd-list a { color: var(--accent); font-weight: 700; }
.member-search { display: flex; gap: 8px; }
.member-search input { flex: 1; min-width: 0; border-radius: 999px; }
.member { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.member:last-child { border-bottom: 0; }
.member-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.row-item .member-acts { flex-wrap: nowrap; flex-shrink: 0; }

/* Beweise (Team-Bereich) */
.beweis-info { margin-top: 14px; }
.beweis-info ul, .beweis-info ol { margin: 8px 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.beweis-aktionen { display: grid; gap: 10px; margin-top: 14px; }
.beweis-aktionen .btn { text-decoration: none; text-align: center; }
.beweis-log .row-item { padding: 9px 0; }
.copy-area { width: 100%; font: .85rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 10px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2); color: inherit; resize: vertical; }
.pill.team, .team-tag { background: var(--grad); color: #fff; }
.team-tag { font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; vertical-align: middle; letter-spacing: 0; }
.team-link {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: inherit;
  background: var(--surface); box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm);
}
.team-link .pb-ic { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.team-link .pb-ic .ic { color: var(--accent); }
.team-link .pb-ic .f { fill: url(#funkeGrad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.legal h1 { margin-top: 8px; }
.legal h2 { margin-top: 1.6em; }
.legal .todo { background: #fff3c4; color: #5c4400; padding: 0 4px; border-radius: 4px; }

.toast {
  position: fixed; left: 50%; top: calc(var(--topbar-h) + env(safe-area-inset-top) + 8px); transform: translateX(-50%); pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-align: center;
  font-weight: 600; font-size: .9rem; z-index: 60; width: max-content; max-width: calc(100% - 32px);
  box-shadow: var(--shadow); animation: fade .2s ease;
}
.empty { margin: auto; text-align: center; padding: 30px 10px; }
.empty .big { font-size: 3.5rem; margin-bottom: 6px; }
.notice { background: var(--surface-2); border-radius: 14px; padding: 14px; font-size: .92rem; }
.push-banner { margin-bottom: 14px; }
.push-note { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.push-note.ok { background: color-mix(in srgb, var(--like) 14%, var(--surface)); }
.push-note.err { background: color-mix(in srgb, var(--nope) 12%, var(--surface)); box-shadow: inset 0 0 0 2px var(--nope); }
.push-banner .push-note { margin-top: 10px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* Kleine Handys: Karten etwas kompakter */
@media (max-height: 680px) {
  .deck { min-height: 330px; }
  .act { width: 56px; height: 56px; }
  .act.small { width: 44px; height: 44px; }
  .card-info { padding-top: 80px; }
  .card-info h2 { font-size: 1.7rem; }
}

/* ===== Funktionen nach dem Vorbild von Tinder und Lovoo (16.11.2026) ===== */
/* Abzeichen: verifiziert, online */
.vbadge { display: inline-flex; vertical-align: middle; margin-left: 6px; color: var(--super); }
.vbadge .ic { width: .82em; height: .82em; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.online-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2bd47d; box-shadow: 0 0 0 2px rgba(255,255,255,.85);
  vertical-align: middle; margin-left: 6px; }
.online-dot.soft { background: #9be7bd; }
.card-lines .on-line { font-weight: 700; }
.card-lines .on-line .online-dot { margin: 0 2px 0 3px; box-shadow: none; }
/* Karte: Ziel, Gemeinsamkeiten, Eisbrecher-Knopf */
.card-goal { margin-top: 7px; font-weight: 700; font-size: .95rem; }
.card-shared, .pf-shared { margin-top: 7px; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800;
  background: linear-gradient(135deg, rgba(255,122,89,.92), rgba(214,58,138,.92)); color: #fff; }
.pf-shared { margin: 10px 0 0; }
.chip.same { background: linear-gradient(135deg, #ff7a59, #d63a8a); border-color: transparent; color: #fff; }
.pf-body .chip.same { color: #fff; }
.card-btns { display: flex; flex-direction: column; gap: 8px; align-self: flex-end; }
.ice-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--super); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ice-btn .ic { width: 20px; height: 20px; }
.act.ice { color: var(--super); }
/* Profil: Profil-Fragen, Steckbrief, Links */
.prompt-card { display: block; width: 100%; text-align: left; margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--surface-2);
  border: 0; font: inherit; color: inherit; }
.prompt-card span { display: block; font-size: .8rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.prompt-card p { margin: 0; font-size: 1.05rem; font-weight: 600; white-space: pre-wrap; }
.prompt-pick { cursor: pointer; margin: 0 0 10px; }
.chips.details .chip { font-weight: 600; }
.pf-verified { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.pf-verified .ic { width: 18px; height: 18px; color: var(--super); flex-shrink: 0; }
.pf-links { display: flex; gap: 14px; margin-top: 18px; }
.pf-links .linkbtn { color: var(--muted); padding-left: 0; }
/* Formular: Steckbrief und Fragen */
.form-section { border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px 4px; margin: 4px 0; display: grid; gap: 10px; }
.form-section legend { font-weight: 800; padding: 0 6px; }
.prompt-edit { display: grid; gap: 6px; padding-bottom: 10px; }
.ice-text { width: 100%; resize: vertical; }
/* Eigenes Profil: Vollständigkeit, Verifizierung, Privatsphäre */
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff7a59, #d63a8a); transition: width .4s; }
.complete-tip { padding: 8px 0 0; text-align: left; }
.verify-card { display: flex; align-items: center; gap: 12px; }
.verify-card .grow { flex: 1; min-width: 0; }
.vc-ic .ic { width: 34px; height: 34px; color: var(--super); }
.vc-ic.off .ic { color: var(--muted); opacity: .6; }
.privacy-card { display: grid; gap: 14px; }
.privacy-card h3 { margin: 0; }
.pose { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface-2); margin: 10px 0; }
.pose-emoji { font-size: 2.6rem; line-height: 1; }
#vShoot { display: block; text-align: center; cursor: pointer; }
#vShoot.busy { opacity: .6; pointer-events: none; }
.tips { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.tips li { line-height: 1.45; }
.tips .ic { width: 16px; height: 16px; color: var(--super); vertical-align: -2px; }
.travel-row { display: flex; gap: 8px; }
.travel-row input { flex: 1; min-width: 0; }
/* Wer mag dich / Besucher */
.likes-view { display: grid; gap: 14px; }
.likes-tabs a { flex: 1; text-align: center; text-decoration: none; font-weight: 700; padding: 9px; border-radius: 999px; color: var(--muted); }
.likes-tabs a.on { background: var(--surface); color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.like-grid, .locked-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.like-tile { border: 0; padding: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; display: grid; gap: 4px; }
.lt-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; background: var(--surface-2) center / cover no-repeat;
  display: grid; place-items: center; font-size: 2rem; box-shadow: var(--shadow-sm); }
.like-tile.is-new .lt-photo { box-shadow: 0 0 0 3px var(--accent); }
.lt-star { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--super); color: #fff; }
.lt-star .ic { width: 17px; height: 17px; }
.lt-new { position: absolute; top: 8px; left: 8px; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
.lt-name { font-weight: 800; }
.lt-note { font-size: .82rem; background: var(--surface-2); padding: 6px 10px; border-radius: 12px; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.lt-when { font-size: .78rem; }
.ghost-tile { aspect-ratio: 3 / 4; border-radius: 18px; filter: blur(2px);
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.55) 0 18%, transparent 19%), linear-gradient(160deg, #ffb199, #d63a8a); }
.ghost-tile.g1 { background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.55) 0 18%, transparent 19%), linear-gradient(160deg, #a1c4fd, #6a5af9); }
.ghost-tile.g2 { background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.55) 0 18%, transparent 19%), linear-gradient(160deg, #84fab0, #2a9df4); }
.locked-card { text-align: center; display: grid; gap: 4px; justify-items: center; }
.locked-card p { margin: 4px 0 8px; }
/* Chat: online, gelesen */
.chat-presence { display: block; font-size: .72rem; font-weight: 700; color: #1fae67; }
.chat-presence.soft { color: var(--muted); font-weight: 600; }
.read-mark { align-self: flex-end; font-size: .72rem; color: var(--super); font-weight: 700; margin: -4px 4px 6px; }
/* Team: Verifizierungen prüfen */
.verify-review .vr-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 8px 0; }
.verify-review figure { margin: 0; }
.verify-review img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.verify-review figcaption { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 2px; }
.verify-review figure:first-child img { box-shadow: 0 0 0 3px var(--super); }
/* Premium-Liste */
.premium-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ice-banner { background: linear-gradient(135deg, #ff7a59, #d63a8a); left: 12px; right: 12px; transform: none; white-space: normal;
  align-items: flex-start; border-radius: 16px; line-height: 1.35; }
.ice-banner .ic { flex-shrink: 0; margin-top: 1px; }
.ice-banner span { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ice-note span { color: var(--super); }
