/* Spots – mobile-first, warm, wenige Farben. */

:root {
  --bg: #FBF7F1;
  --card: #FFFFFF;
  --text: #241B12;
  --muted: #8C7E6F;
  --accent: #E8735A;
  --accent-deep: #CC5640;
  --line: #ECE4D9;
  --radius: 22px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 18px 40px;
  min-height: 100vh;
}

.screen--center {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 14vh;
}

/* Kopf */
.wordmark {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}
.subtitle { color: var(--muted); margin: 4px 0 20px; }

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.page-title { font-size: 22px; font-weight: 700; margin: 0; }
.hello { margin-left: auto; color: var(--muted); font-size: 14px; }

.back {
  text-decoration: none;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 16px;
}

/* Cards / Forms */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(36, 27, 18, 0.1);
}

.form { display: flex; flex-direction: column; gap: 14px; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 16px; /* verhindert iOS-Auto-Zoom beim Fokussieren */
  color: var(--text);
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FCFAF6;
}
.form textarea { resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; color: var(--muted); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  padding: 15px 18px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(204, 86, 64, 0.3);
}
.btn--primary:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(204, 86, 64, 0.24); }

.muted-link { text-align: center; color: var(--muted); margin-top: 16px; }
.muted-link a { color: var(--accent-deep); font-weight: 600; }

/* Home Hero-Karten */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  padding: 22px;
  border-radius: 26px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 16px;
}
.hero:active { transform: translateY(1px); }
.hero--give { background: linear-gradient(150deg, #F5A83F 0%, #E5722A 100%); }
.hero--discover { background: linear-gradient(150deg, #F08A6B 0%, #B65A86 100%); }
.hero-title { font-size: 26px; font-weight: 800; }
.hero-sub { opacity: 0.9; margin-top: 2px; }

.logout {
  display: block;
  text-align: center;
  margin-top: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

/* Flash */
.flash {
  background: #FCE9DA;
  border: 1px solid #F1C7A6;
  color: #8A4B18;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 14px;
}

/* Standort-Status */
.geo {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}
.geo--loading { background: #FCFAF6; color: var(--muted); border: 1px solid var(--line); }
.geo--ok { background: #E7F3E7; color: #2F6B33; border: 1px solid #BFE0C1; }
.geo--error { background: #FBE3E1; color: #9A3B33; border: 1px solid #EDBFBA; }

/* Sterne (klickbar) */
.stars { display: flex; gap: 4px; }
.star {
  font-size: 30px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #DED3C4;
  padding: 0;
}
.star.on { color: var(--accent); }

/* Filter-Formular */
.filters { margin-bottom: 16px; }

/* Segmentierte Umschalter (Sortierung, max. Entfernung) */
.seg {
  display: flex;
  gap: 6px;
  background: #F3EBE0;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 10px;
}
.seg-item {
  flex: 1;
  text-align: center;
  cursor: pointer;
}
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item span {
  display: block;
  padding: 9px 6px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.seg-item:has(input:checked) span { background: var(--card); color: var(--text); }
.seg-item--off { cursor: default; }
.seg-item--off span { opacity: 0.4; }

/* Chips-Filter (Kategorie) */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.chip {
  flex: 0 0 auto;
  cursor: pointer;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.chip:has(input:checked) span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Kategorie als Chips + Hinzufügen-Dropdown */
.filter-block { display: flex; flex-direction: column; gap: 6px; }
.filter-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.tokens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 6px 6px 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.token-x {
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.token-x:active { background: rgba(255, 255, 255, 0.4); }
.token-add {
  font: inherit;
  font-weight: 600;
  color: var(--accent-deep);
  border: 1px dashed var(--line);
  background: #FCFAF6;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.token-add:focus { outline: none; border-color: var(--accent); }

/* Einladungen */
.admin-link {
  display: block;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 6px;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
}
.invite-stats-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 12px;
}
.invite-stats-title { font-weight: 700; margin-bottom: 4px; }
.invite-stats-numbers { font-size: 14px; }
.invite-stats-numbers strong { color: var(--accent-deep); }
.invite-stats-breakdown { font-size: 12px; color: var(--muted); margin-top: 6px; }

.invite-row { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.invite-top { display: flex; align-items: center; gap: 10px; }
.invite-date { margin-left: auto; color: var(--muted); font-size: 13px; }
.tag.tag--open { background: #E7F3E7; color: #2F6B33; }

.invite-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FCFAF6;
  word-break: break-all;
}
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-actions .btn-small { flex: 1 1 auto; }

.invite-del-form { margin: 0; }
.invite-del {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.invite-del:active { background: #FBE3E1; color: #9A3B33; }

/* Foto-Auswahl als schöner Button (Kamera/Album) */
.file-picker { display: flex; flex-direction: column; gap: 6px; }
.file-picker input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.file-picker-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #FCFAF6;
  color: var(--accent-deep);
  font-weight: 600;
  cursor: pointer;
}
.file-picker-icon { font-size: 20px; }

/* Runder Profilbild-Picker bei der Registrierung */
.form label.avatar-picker {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.avatar-picker input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.avatar-picker-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.avatar-picker-preview.has-img { background-color: transparent; }
.avatar-picker-hint {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}
.avatar-picker-hint small { color: var(--muted); font-weight: 500; }

/* Datenschutz-Zustimmung bei der Registrierung */
.consent-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.consent-check input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.consent-check a { color: var(--accent-deep); font-weight: 600; }

/* Datenschutz-Seite */
.privacy-text { line-height: 1.55; }
.privacy-text h2 { font-size: 16px; margin: 20px 0 8px; }
.privacy-text h2:first-child { margin-top: 0; }
.privacy-text ul { margin: 0 0 12px; padding-left: 20px; }
.privacy-text li { margin-bottom: 6px; }
.privacy-note { color: var(--muted); font-size: 13px; }

/* Volle Breite auf Abstauben (Instagram-artiges Feed-Layout) */
.feed {
  margin: 0 -18px;
}
.feed .scard {
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.feed.spot-list { gap: 0; }

/* ---------- Neue Social-Spot-Card ---------- */
.spot-list { display: flex; flex-direction: column; gap: 20px; }

/* Zusammengefasste Karte: mehrere Besuche am selben Ort */
.merged-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 0;
}
.merged-avatars { display: flex; }
.merged-avatars .stack-av {
  width: 56px;
  height: 56px;
  margin-left: -16px;
}
.merged-avatars .stack-av:first-child { margin-left: 0; }
.merged-headtext { display: flex; flex-direction: column; }
.group-place { font-weight: 800; font-size: 15px; }
.group-count { font-size: 12px; color: var(--muted); }

.scard-avg { font-size: 12px; color: var(--muted); margin-left: 6px; }

/* Swipebares Foto-Karussell */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 10px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  background: #F3EBE0;
}
.carousel-slide.scard-media--empty {
  background: linear-gradient(150deg, #F5A83F 0%, #E5722A 100%);
}

.slide-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.slide-overlay .stack-av { width: 60px; height: 60px; border-width: 3px; margin-left: -16px; }
.slide-overlay .stack-av:first-child { margin-left: 0; }
.slide-stars {
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 0;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.carousel-dot.is-active { background: var(--accent); }

.scard {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(36, 27, 18, 0.1);
}
.scard-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}
.scard-dist { color: var(--muted); font-size: 13px; font-weight: 700; }
.scard-dist::after { content: "·"; margin-left: 8px; color: var(--line); font-weight: 400; }
.scard-cat { color: var(--muted); font-size: 13px; font-weight: 700; }
.scard-stars { margin-left: auto; color: var(--accent); letter-spacing: 1px; }

.scard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #F3EBE0;
}
.scard-media-link { position: absolute; inset: 0; display: block; }
.scard-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.scard-media--empty {
  background: linear-gradient(150deg, #F5A83F 0%, #E5722A 100%);
}
.scard-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 16px;
}
.scard-empty-cat {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}
.scard-empty-place { margin-top: 4px; font-size: 15px; opacity: 0.95; }

.scard-avatars {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: row;
}
.stack-av {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--card);
  overflow: hidden;
  display: block;
  margin-left: -18px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.scard-avatars .stack-av:first-child { margin-left: 0; }
.stack-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stack-ini {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 20px;
}
/* Gönner: links und ganz oben (höchster z-index) */
.scard-avatars .stack-owner { background: var(--accent-deep); z-index: 3; }

.scard-body { padding: 14px; }
.scard-place { font-size: 19px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.2px; }

.scard-actions { display: flex; gap: 16px; align-items: center; margin: 4px 0 8px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--muted);
  font: inherit;
}
.is-liked { color: #E0245E; }
.icon-count { font-weight: 700; font-size: 14px; }
.like-form { margin: 0; }
.delete-form { margin: 0 0 0 auto; }
.icon-btn--delete { color: var(--muted); }

.scard-meta { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.scard-owner, .scard-tagged { color: var(--accent-deep); font-weight: 700; text-decoration: none; }
.scard-text { margin: 0; }

.maps-link-btn {
  display: block;
  text-align: center;
  margin: 14px 0 4px;
  padding: 13px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

/* Profil-Seite: Instagram-artiger Kopfbereich – Avatar links, Statistiken
   daneben in einer Zeile, Name/Bio linksbündig darunter, kein Banner. */
.ig-profile-head { padding: 20px 18px; }
.ig-profile-head--gradient {
  margin: 0 -18px;
  padding: 24px 18px 22px;
  background: linear-gradient(135deg, #F5A83F 0%, #E8735A 55%, #B65A86 100%);
}
.ig-profile-row { display: flex; align-items: center; gap: 18px; }
.avatar.ig-profile-avatar {
  width: 96px;
  height: 96px;
  font-size: 36px;
  flex: 0 0 auto;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
span.avatar.ig-profile-avatar { background: linear-gradient(135deg, #F7B98A, #E8735A); }
.ig-profile-stats { display: flex; gap: 34px; margin-top: 18px; }
.ig-profile-stats .stat { display: flex; flex-direction: column; align-items: flex-start; }
.ig-profile-head--gradient .stat-n, .ig-profile-head--gradient .stat-l { color: #fff; }
.ig-profile-text { text-align: left; }
.ig-profile-name { font-size: 17px; font-weight: 800; margin: 0; color: #fff; }
.ig-profile-username {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin: 1px 0 0;
  font-weight: 600;
}
.ig-profile-bio {
  color: rgba(255,255,255,0.92);
  margin: 4px 0 0;
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
  white-space: pre-line;
}

/* Heimatstadt-Badge oben rechts (schwebend, klein, kollidiert nicht) */
.ig-profile-head--gradient { position: relative; }
.home-city-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.home-city-wappen { width: 16px; height: 16px; display: block; }

/* Eigenschaften-Chips auf dem Profil */
.trait-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.trait-chip {
  background: #FCFAF6;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
/* Eigene volle Zeile zwischen Bio und Statistik-Zeile, im selben
   Positions-Muster wie "Spots / Folgt / Follower" darunter. */
.trait-chips--row {
  justify-content: flex-start;
  gap: 8px;
  margin: 22px 0 0;
}
.trait-chips--row .trait-chip {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  font-size: 11px;
  padding: 5px 11px;
}

.ig-profile-below { padding: 16px 18px 0; }
.profile-cta { width: 100%; margin-top: 0; }
.profile-cta .btn { width: 100%; }

.btn--ghost-full {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}
.btn--ghost-full:active { background: #FAF4EC; }

.comment-form { display: flex; flex-direction: column; gap: 10px; }
.comment-form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 14px; background: #FCFAF6; resize: vertical;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.comment { display: flex; gap: 12px; padding: 14px; }
.comment-av { flex: 0 0 auto; }
.comment-body { flex: 1; }
.comment-head { margin: 0 0 2px; display: flex; align-items: baseline; gap: 8px; }
.comment-name { font-weight: 700; color: var(--text); text-decoration: none; }
.comment-date { color: var(--muted); font-size: 12px; }
.comment-text { margin: 0; }

/* "Du warst schon hier"-Banner beim Gönnen */
.prior-visit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #E7F3E7;
  border: 1px solid #BFE0C1;
  border-radius: 14px;
  text-decoration: none;
  color: #2F6B33;
}
.prior-visit-text { flex: 1; font-size: 14px; font-weight: 600; }
.prior-visit-arrow { font-size: 18px; }

/* Ladeanzeige, während Ort-Kandidaten gesucht werden */
.place-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  background: #FCFAF6;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.place-loading-emoji {
  font-size: 26px;
  animation: place-loading-bounce 0.55s ease-in-out infinite alternate;
}
@keyframes place-loading-bounce {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-3px) scale(1.08); }
}
.place-loading-text { font-size: 14px; font-weight: 600; }

/* Ort-Vorschlag beim Gönnen (ploppt auf) */
.place-pop {
  background: #FCEFE0;
  border: 1px solid #F1C7A6;
  border-radius: 16px;
  padding: 16px;
  animation: place-pop-in 0.22s ease-out;
}
@keyframes place-pop-in {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.place-pop-q { margin: 0; color: #8A4B18; font-size: 14px; font-weight: 600; }
.place-pop-name {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--accent-deep);
}
.place-pop-meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.place-pop-meta:empty { display: none; }
.place-pop-actions { display: flex; gap: 8px; margin-top: 14px; }

/* Bestätigter Ort */
.place-confirmed {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #E7F3E7;
  border: 1px solid #BFE0C1;
  border-radius: 14px;
  padding: 12px 14px;
  animation: place-pop-in 0.18s ease-out;
}
.place-confirmed-name { font-weight: 700; flex: 1; }
.place-edit {
  border: none;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Ort als Titel auf der Spot-Card */
.spot-place {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

/* Entfernungs-Badge auf der Card */
.dist {
  background: #EFE6D9;
  color: var(--accent-deep);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* Spot-Karten */
.spot-list { display: flex; flex-direction: column; gap: 16px; }
.spot { padding: 0; overflow: hidden; }
.spot-photo { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.spot-body { padding: 16px; }
.spot-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tag {
  background: #F5ECE0;
  color: var(--accent-deep);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.stars-static { margin-left: auto; color: var(--accent); letter-spacing: 1px; }
.spot-text { margin: 6px 0; }
.spot-meta { color: var(--muted); font-size: 13px; margin: 8px 0; }
.maps-link { color: var(--accent-deep); font-weight: 600; text-decoration: none; font-size: 14px; }

/* Leerer Zustand */
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty p { margin-bottom: 16px; }

/* Home: schlanke Freunde-Card */
.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 16px;
}
.mini-card:active { transform: translateY(1px); }
.mini-avatars { display: flex; }
.mini-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--card);
  margin-left: -10px;
}
.mini-dot:first-child { margin-left: 0; }
.mini-dot:nth-child(2) { background: #E5722A; }
.mini-dot:nth-child(3) { background: #B65A86; }
.mini-text { display: flex; flex-direction: column; }
.mini-title { font-weight: 700; font-size: 17px; }
.mini-sub { color: var(--muted); font-size: 13px; }
.mini-arrow { margin-left: auto; color: var(--muted); font-size: 22px; }

/* Freunde-Seite */
.friend-search {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0px;
  background: #FCFAF6;
  color: var(--text);
  margin-bottom: 20px;
  -webkit-appearance: none;
}
.friend-search:focus { outline: none; border-color: var(--accent); }

/* Aufklappbare Bereiche (Anfragen, Du folgst, Dir folgen) */
.fold {
  margin-bottom: 14px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(36, 27, 18, 0.1);
  overflow: hidden;
}
.fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  background: var(--card);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.fold-summary::-webkit-details-marker { display: none; }
.fold-arrow {
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.15s ease;
}
.fold[open] > .fold-summary .fold-arrow { transform: rotate(90deg); }
.fold-body {
  background: var(--card);
  padding: 12px;
}
.fold-body .user-list { gap: 8px; }
.fold-body .card { border: none; padding: 10px; background: #FCFAF6; }
.fold-body .note { border: none; padding: 6px; background: transparent; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 24px 0 10px;
}
.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  flex: 0 0 auto;
  overflow: hidden;
}
img.avatar { object-fit: cover; }
.avatar--muted { background: #C9BBA9; }
.avatar--xs { width: 20px; height: 20px; font-size: 11px; vertical-align: middle; margin-right: 2px; }
.avatar--sm { width: 30px; height: 30px; font-size: 13px; }
.avatar--lg { width: 64px; height: 64px; font-size: 26px; }
.avatar--xl { width: 76px; height: 76px; font-size: 30px; }

/* Zentriertes Profil auf Home: Avatar über Name, über den 3 Bereichen */
.wordmark--center { text-align: center; margin-bottom: 4px; }
.home-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  margin: 0 auto 22px;
}
.home-profile-name { font-weight: 700; font-size: 16px; }

/* Benachrichtigungen auf Home */
.notif-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.notif {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #FCEFE0;
  border: 1px solid #F1C7A6;
  border-radius: 14px;
  text-decoration: none;
  color: #8A4B18;
}
.notif-icon { font-size: 18px; }
.notif-text { flex: 1; font-size: 14px; }
.notif-arrow { color: #8A4B18; font-size: 18px; }

/* Allgemeine App-Updates als Overlay (z. B. "Du darfst jetzt einladen") */
.announcement-message {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
  white-space: pre-line;
}
/* Falls die Nachricht echtes HTML enthält (h2, strong, p, ul/li …)
   statt nur Text mit \n-Zeilenumbrüchen – dezent eingepasst, damit es
   zur restlichen Karte passt statt riesig/fremd zu wirken. */
.announcement-message h2,
.announcement-message h3 { font-size: 16px; margin: 0 0 6px; }
.announcement-message p { margin: 0 0 10px; }
.announcement-message ul { margin: 0 0 10px; padding-left: 20px; }
.announcement-message strong { color: var(--accent-deep); }
.announcement-cta {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.app-version {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin-top: 14px;
}

/* Profilkopf + Statistiken */
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-stats { display: flex; gap: 18px; margin-left: auto; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-n { font-size: 20px; font-weight: 800; }
.stat-l { font-size: 12px; color: var(--muted); }

/* Konto-Löschen-Zone */
.danger { border-color: #EDBFBA; }
.danger-text { color: #8A3B33; font-size: 14px; margin: 0; }
.btn--danger {
  background: linear-gradient(150deg, #D65B4E 0%, #A63A30 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(166, 58, 48, 0.3);
}
.btn--danger:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(166, 58, 48, 0.24); }
.user-name { font-weight: 600; }
.user-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex: 1;
}
.user-link .user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row form { margin-left: auto; }

.row-actions { margin-left: auto; display: flex; gap: 6px; }
.row-actions form { margin: 0; }

/* Zurückfolgen-Hinweis */
.followback {
  background: #FCEFE0;
  border: 1px solid #F1C7A6;
  padding: 16px;
  animation: place-pop-in 0.2s ease-out;
}
.followback-text { margin: 0 0 12px; color: #8A4B18; }
.followback-actions { display: flex; gap: 8px; align-items: center; }
.followback-actions form { margin: 0; }

.note { padding: 18px; }
.note-title { font-weight: 700; margin: 0 0 4px; }
.note-text { color: var(--muted); margin: 0; font-size: 14px; }

.btn-small {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}
.btn-small--primary {
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(204, 86, 64, 0.28);
}
.btn-small--primary:active { transform: translateY(1px); }
.btn-small--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Freunde 2.0 – flach wie bei Instagram, keine Karten um Personen */
.friends-screen { padding-left: 16px; padding-right: 16px; }
.friends-topbar { margin-bottom: 16px; }

.friend-search {
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 22px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(36, 27, 18, 0.03);
}

.friend-section {
  padding: 0 0 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.friend-section:last-child { border-bottom: 0; }
.friend-section--suggestions { padding-top: 0; }
.friend-section-head {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 4px;
}
.friend-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.friend-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  background: #F1E9DE;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  vertical-align: 1px;
}

.user-list--flat { gap: 0; }
.user-row--flat {
  min-height: 62px;
  padding: 7px 0;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.user-row--flat + .user-row--flat { border-top: 0; }
.user-row--flat .user-link { gap: 12px; }
.user-row--flat form { margin-left: auto; }

.avatar--friend {
  width: 46px;
  height: 46px;
  font-size: 17px;
  border: 0;
}
.user-row--flat .user-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.follow-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 2px 8px rgba(204, 86, 64, 0.25);
  color: #fff;
  padding: 9px 13px;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.follow-btn:active { transform: translateY(1px); }
.follow-btn--ghost {
  background: #F1E9DE;
  color: var(--text);
}
.follow-btn--ghost:active { background: #E8DED1; }
.follow-btn--icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 500;
}
.following-label {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.friend-empty {
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.followback--flat {
  margin: 0 0 20px;
  padding: 12px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.followback--flat .followback-text { color: var(--text); }
.followback--flat .followback-actions { display: flex; gap: 8px; }
.followback--flat .followback-actions form { margin: 0; }

@media (max-width: 360px) {
  .friends-screen { padding-left: 14px; padding-right: 14px; }
  .avatar--friend { width: 42px; height: 42px; }
  .follow-btn { padding: 8px 10px; font-size: 12px; }
  .user-row--flat { min-height: 58px; gap: 10px; }
}
/* Home-Kopf */

.home-head {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  margin-bottom: 28px;
}

.home-head-logo {
  flex: 1;
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-head-profile {
  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--text);
  text-decoration: none;
}

.home-head-avatar {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;

  border-radius: 50%;
  object-fit: cover;
}

.home-head-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--accent);
  color: #fff;

  font-size: 30px;
  font-weight: 800;
}

.home-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.home-head-name {
  color: var(--text);

  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;

  white-space: nowrap;
}

.home-head-link {
  display: flex;
  align-items: center;
  gap: 4px;

  color: var(--muted);

  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;
}

.home-head-profile:active {
  opacity: 0.7;
}

@media (max-width: 380px) {
  .home-head {
    gap: 12px;
  }

  .home-head-logo {
    font-size: 30px;
  }

  .home-head-avatar {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }

  .home-head-name {
    font-size: 17px;
  }

  .home-head-link {
    font-size: 13px;
  }
}

/* Bewertung + Foto */

.rating-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rating-line .stars {
  flex: 1;
}

.photo-icon-picker {
  position: relative;

  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: #FCFAF6;
  color: var(--accent-deep);

  cursor: pointer;
}

.photo-icon-picker:active {
  background: #F3EBE0;
  transform: translateY(1px);
}

.photo-icon {
  width: 23px;
  height: 23px;
}

.photo-selected-dot {
  position: absolute;
  top: 5px;
  right: 5px;

  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--accent);

  border: 2px solid #FCFAF6;
}

.photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}
.photo-icon-picker.has-photo .photo-icon { display: none; }


/* Freund suchen */

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.tag-chips:empty { margin-bottom: 0; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FCFAF6;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.tag-chip-x {
  border: none;
  background: var(--line);
  color: var(--muted);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.tag-search-wrap {
  position: relative;
}

.tag-user-search {
  width: 100%;

  font: inherit;
  font-size: 16px;
  color: var(--text);

  padding: 13px 14px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: #FCFAF6;
}

.tag-user-search:focus {
  outline: none;
  border-color: var(--accent);
}

.tag-user-results {
  position: absolute;
  z-index: 20;

  top: calc(100% + 6px);
  left: 0;
  right: 0;

  overflow: hidden;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: 14px;

  box-shadow: 0 8px 24px rgba(36, 27, 18, 0.12);
}

.tag-user-option {
  display: block;

  width: 100%;
  padding: 12px 14px;

  border: 0;
  border-bottom: 1px solid var(--line);

  background: var(--card);
  color: var(--text);

  font: inherit;
  font-size: 15px;
  font-weight: 600;

  text-align: left;
  cursor: pointer;
}

.tag-user-option:last-child {
  border-bottom: 0;
}

.tag-user-option:active {
  background: #FCFAF6;
}
/* Level-Anzeige (Punkte-System) */
.level-card {
  width: 100%;
  margin-top: 16px;
  padding: 0;
}
.level-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.level-name-row {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.level-name { font-weight: 800; font-size: 17px; color: var(--text); }
.level-points { font-size: 13px; color: var(--muted); font-weight: 600; }
.level-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.level-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.level-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Punkte-Popup nach dem Gönnen */
.points-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 27, 18, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.points-overlay--out { opacity: 0; }

.points-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.points-confetti-cap {
  position: absolute;
  top: -40px;
  width: 26px;
  height: 26px;
  animation-name: points-cap-fall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}
@keyframes points-cap-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

.points-card {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  padding: 28px 24px;
  max-width: 300px;
  width: 85%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(36, 27, 18, 0.25);
}
.points-total {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.points-events { display: flex; flex-direction: column; gap: 10px; }
.points-event-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.points-event-icon { width: 48px; height: 48px; flex: 0 0 auto; }
.points-event-label { flex: 1; font-size: 13px; color: var(--text); }
.points-event-amount { font-weight: 700; color: var(--accent-deep); font-size: 13px; }

/* Einmaliges Erklär-Overlay auf dem Profil ("Gönnen"/"Abstauben") */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 27, 18, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.tutorial-overlay--visible { display: flex; }
.tutorial-overlay--out { opacity: 0; }

.tutorial-card {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  padding: 28px 24px;
  max-width: 340px;
  width: 88%;
  box-shadow: 0 12px 40px rgba(36, 27, 18, 0.25);
}
.tutorial-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  text-align: center;
}
.tutorial-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.tutorial-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--accent-deep);
}
.tutorial-icon svg { width: 100%; height: 100%; }
.tutorial-row-title { font-weight: 700; margin-bottom: 4px; }
.tutorial-row-text { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* "Was du verpasst hast"-Update beim App-Öffnen */
.digest-card {
  max-height: 80vh;
  overflow-y: auto;
}
.digest-section {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.digest-section:last-of-type { border-bottom: none; }
.digest-section-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.digest-line {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 2px;
}
.digest-more { font-size: 12px; color: var(--muted); margin-top: 2px; }

.scard-retro { color: var(--muted); font-size: 12px; }

/* Karte mit Nadel für "Früher hier" */
.past-map {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  z-index: 0;
}

/* Fixe Nadel in der Kartenmitte (wie Google Maps/Uber) – die Karte
   bewegt sich darunter, die Nadel selbst bleibt stehen. Der Fuß der
   Nadel (nicht ihre Mitte) markiert den tatsächlichen Punkt, daher der
   Versatz nach oben um die halbe Icon-Höhe. */
.past-map-wrap {
  position: relative;
}
.past-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Die Nadel-Spitze im SVG sitzt bei y=21 von 24 (87.5%), nicht am
     exakten unteren Rand – Versatz entsprechend angepasst, damit die
     Spitze wirklich auf dem Mittelpunkt der Karte sitzt. */
  transform: translate(-50%, -87.5%);
  width: 40px;
  height: 40px;
  color: var(--accent-deep);
  pointer-events: none;
  z-index: 500;
  filter: drop-shadow(0 3px 3px rgba(36, 27, 18, 0.35));
}
.past-map-pin .icon-svg { width: 100%; height: 100%; }

/* Große, unbeschnittene Foto-Vorschau (im Gegensatz zum kleinen,
   quadratisch zugeschnittenen Icon-Thumbnail) */
.photo-preview-large-wrap {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: #FCFAF6;
  border: 1px solid var(--line);
}
.photo-preview-large {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}
/* Hinweis, solange noch kein Foto gewählt ist. */
.photo-preview-empty {
  margin: 0;
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
/* display:block oben würde das hidden-Attribut sonst überstimmen. */
.photo-preview-large[hidden],
.photo-preview-empty[hidden] { display: none; }

/* "Gefällt"-Liste (wer hat geliked) */
.like-form .icon-count { cursor: pointer; }
.like-form .icon-count:hover { text-decoration: underline; }
.likers-card { max-height: 70vh; overflow-y: auto; }
.likers-list { display: flex; flex-direction: column; gap: 4px; }
.likers-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
}
.likers-row:hover { background: #FCFAF6; }
.likers-name { font-size: 14px; font-weight: 600; }

/* Ladeanimation beim Speichern eines Spots (Foto-Upload kann dauern) */
.submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 27, 18, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 1000;
}
.submit-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: submit-spin 0.8s linear infinite;
}
@keyframes submit-spin { to { transform: rotate(360deg); } }
.submit-overlay-text { color: #fff; font-size: 14px; font-weight: 600; }

/* ---------- Level-Badges (Kappen-Medaillon-Icon-System) ---------- */
.spots-badge {
  --size: 96px;
  --medallion-size: 73%;
  --icon-size: 46%;
  position: relative;
  display: inline-block;
  width: var(--size);
  height: var(--size);
  flex: 0 0 auto;
}
.spots-badge__cap,
.spots-badge__medallion,
.spots-badge__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.spots-badge__cap {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.spots-badge__medallion {
  width: var(--medallion-size);
  height: var(--medallion-size);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.spots-badge__icon {
  width: var(--icon-size);
  height: var(--icon-size);
  transform: translate(-50%, -50%);
  z-index: 3;
}
.spots-badge--sm { --size: 52px; }
.spots-badge--md { --size: 72px; }
.spots-badge--lg { --size: 104px; }
.spots-badge--xl { --size: 144px; }

.spots-badge--durstig        { --icon-size: 38%; }
.spots-badge--stammgast      { --icon-size: 40%; }
.spots-badge--zapfhahn       { --icon-size: 51%; }
.spots-badge--lokalmatador   { --icon-size: 50%; }
.spots-badge--bierbaron      { --icon-size: 42%; }
.spots-badge--goennerkoenig  { --icon-size: 47%; }
.spots-badge--new-spot       { --icon-size: 44%; }
.spots-badge--follower       { --icon-size: 49%; }
.spots-badge--monthly        { --icon-size: 46%; }

/* "Platz 1 in der Stadt"-Abzeichen */
.city-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
}
.city-title-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFE9B0, #FFD27A);
  color: #6B4A12;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(107, 74, 18, 0.15);
}
.city-title-wappen { height: 22px; width: auto; display: block; }

/* Einheitliche Strich-Icons (ersetzen Emojis) */
.icon-svg { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.icon-svg--sm { width: 18px; height: 18px; }
.icon-svg--lg { width: 26px; height: 26px; }

/* Schwebende Navigation unten */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 80%;
  max-width: 420px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 252, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: 0 8px 24px rgba(36, 27, 18, 0.16);
  z-index: 500;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-decoration: none;
  color: var(--muted);
  flex: 1 1 0;
  padding: 4px 2px;
}
.bottom-nav-item .icon-svg { width: 20px; height: 20px; }
.bottom-nav-item span { font-size: 9px; font-weight: 600; }
.bottom-nav-item.is-active { color: var(--accent-deep); }

/* Platz lassen, damit Inhalte nicht hinter der Nav verschwinden */
.screen--with-nav { padding-bottom: 92px; }

/* Eigenschaften-Auswahl in den Einstellungen */
.field-hint { font-weight: 500; color: var(--muted); font-size: 12px; }

/* Profil-Vollständigkeit-Checkliste */
.profile-checklist { margin-bottom: 12px; }
.checklist-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.checklist-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #FCFAF6;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.checklist-item.is-done {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.trait-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.trait-option {
  display: inline-flex;
  align-items: center;
}
.trait-option input[type="checkbox"] { display: none; }
.trait-option span {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  background: #FCFAF6;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.trait-option input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.trait-option input:disabled + span {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Klickbare Zahlen im Profil (Folgt / Follower) */
a.stat-link { text-decoration: none; color: inherit; cursor: pointer; }
a.stat-link:active { opacity: 0.7; }
