/* BarberNow: dunkel, modern. Schwarz, Saphirblau, weiche Rundungen, große Bilder. */
:root {
  --bg: #000000;
  --surface: #141414;
  --raised: #1D1D1D;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --hover: rgba(255, 255, 255, 0.06);
  --glass: rgba(24, 24, 24, 0.85);
  --glass-strong: rgba(0, 0, 0, 0.9);
  --text-soft: rgba(245, 243, 238, 0.85);
  --map-bg: #0d0d0d;
  --map-filter: invert(1) hue-rotate(180deg) grayscale(0.85) brightness(0.78) contrast(1.05);
  --text: #F5F3EE;
  --muted: rgba(245, 243, 238, 0.58);
  --accent: #4A76F7;
  --accent-light: #A3BDFF;
  --accent-grad: linear-gradient(135deg, #86A6FF 0%, #4A76F7 48%, #2142C2 100%);
  --danger: #E5737B;
  --ok: #7FC79A;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --nav-h: 76px;
  --display: "Sora", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15.5px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.display, h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }

/* ---------- Shell & Navigation ---------- */
.shell { min-height: 100dvh; }
#view { outline: none; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 28px); }

/* Schwebende Leiste unten */
.nav {
  position: fixed; z-index: 900;
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: 64px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  max-width: 520px; margin: 0 auto;
}
.wordmark { display: none; }
.nav-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.01em;
  transition: color .2s;
}
.nav-link svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.nav-link[aria-current="page"] { color: var(--accent-light); }
.nav-link[aria-current="page"] svg { stroke-width: 2.1; }

.topbar {
  position: sticky; top: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: linear-gradient(to bottom, var(--glass-strong) 60%, transparent);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-size: 1.65rem; text-decoration: none; }
.pole { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.loc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--glass); border-radius: 999px;
  padding: 8px 14px; font-size: 0.82rem; font-weight: 600; cursor: pointer; max-width: 55%;
  backdrop-filter: blur(10px);
}
.loc-chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.loc-chip svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 2; flex: none; }

.page { max-width: 640px; margin: 0 auto; padding: 0 18px; }
.page.feed { max-width: 560px; padding: 0 12px; }
.page.narrow { max-width: 520px; }
.page-title { padding: 8px 0 16px; }
.section-title { font-size: 1.35rem; margin: 32px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- Avatar mit Goldring ---------- */
.avatar {
  --size: 56px;
  width: var(--size); height: var(--size); flex: none;
  border-radius: 50%; padding: 2px; background: var(--accent-grad);
}
.avatar > span {
  width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--bg);
  display: grid; place-items: center; color: #fff;
  font-family: var(--display); font-weight: 600; font-size: calc(var(--size) * 0.38);
}

/* ---------- Sterne ---------- */
.rating { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; font-size: 0.88rem; }
.rating b { font-weight: 700; }
.rating .star { color: var(--accent); }
.stars { color: var(--accent); letter-spacing: 2px; }
.stars .off { color: var(--line-strong); }

/* ---------- Entdecken ---------- */
.nearby { display: flex; gap: 16px; overflow-x: auto; padding: 6px 18px 22px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.nearby::-webkit-scrollbar { display: none; }
.nearby a { flex: none; width: 74px; text-align: center; text-decoration: none; font-size: 0.74rem; scroll-snap-align: start; }
.nearby a .avatar { --size: 70px; margin: 0 auto 8px; }
.nearby a div:not(.avatar) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nearby a .muted { font-size: 0.7rem; }

/* Beitrag: großes Bild, Kopfzeile liegt auf dem Bild */
.post { position: relative; margin: 0 0 26px; }
.post-head {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px; padding: 14px 16px 28px; text-decoration: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.post-head .avatar { --size: 40px; }
.post-head .who { flex: 1; min-width: 0; line-height: 1.25; }
.post-head .who b { display: block; font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.post-head .rating { background: rgba(0,0,0,.45); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(8px); }
.post-media {
  display: block; width: 100%; aspect-ratio: 4/5; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface);
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
}
.post-media svg, .post-media img { width: 100%; height: 100%; transition: transform .6s ease; }
.post-media:hover svg, .post-media:hover img { transform: scale(1.025); }
.post-actions { display: flex; align-items: center; gap: 2px; padding: 10px 4px 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer;
}
.icon-btn:hover { background: var(--hover); }
.icon-btn svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; transition: transform .15s; }
.icon-btn[aria-pressed="true"].like svg { fill: var(--accent); stroke: var(--accent); }
.icon-btn:active svg { transform: scale(0.85); }
.post-body { padding: 0 10px; }
.post-body p { margin: 3px 0; }
.spacer { flex: 1; }
.book-link {
  font-weight: 700; font-size: 0.85rem; text-decoration: none; padding: 10px 16px; border-radius: 999px;
  background: var(--accent-grad); color: #fff;
}

/* ---------- Suchen ---------- */
.searchbox {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 20px;
  transition: border-color .2s, box-shadow .2s;
}
.searchbox svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; flex: none; }
.searchbox input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; padding: 16px 0; min-width: 0; color: var(--text); }
.searchbox input::placeholder { color: var(--muted); }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text); transition: background .15s, color .15s;
}
.chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.chip[aria-pressed="true"] { background: var(--accent-grad); color: #fff; border-color: transparent; }
.result-meta { display: flex; justify-content: space-between; align-items: center; padding: 2px 0 12px; font-size: 0.85rem; }
.result-meta select { font: inherit; border: 0; background: none; font-weight: 700; color: var(--accent-light); cursor: pointer; }
.result-meta select option { background: var(--raised); color: var(--text); }

/* Suchergebnis: Bilder oben, Info darunter */
.salon-row {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center;
  padding: 14px; margin-bottom: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .2s;
}
.salon-row:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.salon-row .avatar { --size: 56px; }
.salon-row h3 { margin: 0 0 2px; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.salon-row .line { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.85rem; }
.thumbs { grid-column: 1 / -1; order: -1; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/10; }
.thumbs > :first-child { grid-row: 1 / 3; }
.thumbs > :only-child { grid-column: 1 / -1; }
.thumbs svg, .thumbs img { width: 100%; height: 100%; }
.thumbs:empty { display: none; }
.empty { text-align: center; padding: 56px 16px; }
.empty h2 { margin-bottom: 10px; }
.empty .btn { margin-top: 14px; }

/* ---------- Karte ---------- */
.map-wrap { position: relative; height: 100dvh; }
#map { position: absolute; inset: 0; z-index: 1; background: var(--map-bg); }
.map-top { position: absolute; z-index: 500; top: calc(14px + env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-top .loc-chip { max-width: none; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.map-cards {
  position: absolute; z-index: 500; left: 0; right: 0; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; overflow-x: auto; padding: 0 14px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.map-cards::-webkit-scrollbar { display: none; }
.map-card {
  flex: none; width: min(300px, 82vw); scroll-snap-align: center;
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  background: var(--glass); backdrop-filter: blur(14px);
  border-radius: var(--r-lg); padding: 14px; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.6); border: 1px solid var(--line);
}
.map-card.active { border-color: var(--accent); }
.map-card .avatar { --size: 50px; }
.map-card b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.pin {
  width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--raised); border: 2px solid var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,.6);
  display: grid; place-items: center;
}
.pin span { transform: rotate(45deg); color: var(--accent-light); font-size: 11px; font-weight: 800; }
.pin.active { background: var(--accent-grad); }
.pin.active span { color: #fff; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #000; box-shadow: 0 0 0 7px rgba(255, 255, 255, .18); }
.leaflet-container { font-family: var(--sans); background: var(--map-bg); }
.leaflet-tile-pane { filter: var(--map-filter); }
.leaflet-control-attribution { font-size: 10px; background: var(--glass) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--accent-light) !important; }
.leaflet-bar a { background: var(--raised) !important; color: var(--text) !important; border-color: var(--line) !important; }

/* ---------- Profil ---------- */
.profile-cover { position: relative; height: 240px; margin: 0 -18px; overflow: hidden; }
.profile-cover svg, .profile-cover img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.55); transform: scale(1.06); }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.15), var(--bg) 96%); }
.profile-head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: end; margin-top: -78px; padding-bottom: 14px; z-index: 2; }
.profile-head .avatar { --size: 104px; padding: 3px; box-shadow: 0 10px 30px rgba(0,0,0,.7); }
.profile-head .avatar > span { border-width: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-bottom: 6px; }
.stats b { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.stats span { font-size: 0.72rem; color: var(--muted); }
.profile-name { grid-column: 1 / -1; }
.profile-name h1 { font-size: 2.1rem; }
.profile-name p { margin: 8px 0 0; max-width: 60ch; color: var(--text-soft); }
.meta-list { display: grid; gap: 6px; margin-top: 12px; font-size: 0.88rem; }
.meta-list div { display: flex; gap: 8px; color: var(--muted); }
.meta-list a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); text-underline-offset: 3px; }
.meta-list svg { width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2; flex: none; }
.profile-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin: 6px 0 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--raised); padding: 0 20px;
  font-weight: 700; cursor: pointer; text-decoration: none; color: var(--text);
  transition: transform .12s, border-color .2s, filter .2s;
}
.btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn[aria-pressed="true"] { color: var(--accent-light); }
.btn[aria-pressed="true"] svg { fill: currentColor; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0 0; position: sticky; top: 60px; z-index: 5; background: var(--glass-strong); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tabs button, .tabs a { border: 0; background: none; padding: 14px 0; font-weight: 700; font-size: 0.88rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; text-align: center; text-decoration: none; }
.tabs button[aria-selected="true"], .tabs a[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs.four { grid-template-columns: repeat(4, 1fr); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.grid button { border: 0; padding: 0; cursor: pointer; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--surface); }
.grid svg, .grid img { width: 100%; height: 100%; transition: transform .4s; }
.grid button:hover svg, .grid button:hover img { transform: scale(1.05); }

.services { list-style: none; margin: 8px 0 0; padding: 0; }
.services li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.services .price { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--accent-light); }
.services small { color: var(--muted); }

.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-summary .big { font-family: var(--display); font-size: 3.4rem; font-weight: 600; line-height: 1; color: var(--accent-light); }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review header { display: flex; justify-content: space-between; gap: 8px; font-size: 0.9rem; }
.review p { margin: 6px 0 0; color: var(--text-soft); }

.back {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; border: 0; cursor: pointer;
  padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px);
}
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ---------- Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); z-index: 1000; }
.sheet {
  position: fixed; z-index: 1001; left: 0; right: 0; bottom: 0; max-height: 90dvh; overflow-y: auto;
  background: var(--surface); border-top: 1px solid var(--line); border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  animation: sheet-in .28s cubic-bezier(.2,.8,.2,1);
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 14px; }
@keyframes sheet-in { from { transform: translateY(60px); opacity: 0; } }
@media (min-width: 700px) {
  .sheet { left: 50%; bottom: auto; top: 50%; width: 520px; transform: translate(-50%, -50%); border-radius: 28px; border: 1px solid var(--line); animation: none; }
  .sheet::before { display: none; }
}
.sheet h2 { margin-bottom: 6px; }
.sheet .post-head { position: static; background: none; padding: 0 0 8px; }
.sheet .post-media { margin: 8px 0; max-height: 60dvh; aspect-ratio: auto; box-shadow: none; }
.sheet .post-media svg, .sheet .post-media img { max-height: 60dvh; aspect-ratio: 4/5; margin: 0 auto; width: auto; }
.option-list { display: grid; gap: 8px; margin: 14px 0; }
.option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--line); background: var(--raised); border-radius: var(--r-md); padding: 14px; cursor: pointer;
  transition: border-color .15s;
}
.option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.option input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.field { display: grid; gap: 7px; margin: 14px 0; font-weight: 700; font-size: 0.86rem; }
.field textarea, .field input {
  font: inherit; font-weight: 500; color: var(--text); background: var(--raised);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .svc-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.field small { font-weight: 400; }
.star-input { display: flex; gap: 6px; }
.star-input button { border: 0; background: none; font-size: 2.2rem; line-height: 1; color: var(--line-strong); cursor: pointer; padding: 4px; transition: color .15s, transform .15s; }
.star-input button.on { color: var(--accent); }
.star-input button:active { transform: scale(.88); }
.note { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 0.84rem; color: var(--muted); }

.toast {
  position: fixed; z-index: 1100; left: 50%; bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: .25s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Konto & Dashboard ---------- */
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 8px 0 18px; }
.segmented a { text-align: center; padding: 11px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--muted); }
.segmented a[aria-selected="true"] { background: var(--accent-grad); color: #fff; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 0.86rem; padding: 0; margin-bottom: 8px; }
.role-pick { display: grid; gap: 8px; margin: 8px 0; }
.role-pick .option { grid-template-columns: auto 1fr; }
.form-error { background: rgba(229, 115, 123, 0.12); border: 1px solid rgba(229,115,123,.35); color: var(--danger); border-radius: var(--r-sm); padding: 12px 14px; font-size: 0.88rem; }
.link-btn { border: 0; background: none; color: var(--accent-light); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.btn.danger { color: var(--danger); border-color: rgba(229, 115, 123, 0.35); }
.btn:disabled { opacity: .5; cursor: progress; }
.small-btn { min-height: 38px; padding: 0 14px; font-size: 0.84rem; }

.booking {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; margin-bottom: 10px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.booking b { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.booking a { color: var(--accent-light); }
.booking-actions { display: flex; gap: 6px; flex: none; }
.status { flex: none; font-size: 0.76rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); }
.status.bestaetigt { background: rgba(127,199,154,.12); border-color: rgba(127,199,154,.35); color: var(--ok); }
.status.abgelehnt { background: rgba(229,115,123,.12); border-color: rgba(229,115,123,.35); color: var(--danger); }
@media (max-width: 420px) { .booking { flex-wrap: wrap; } }

.dash-head { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 8px 0 6px; }
.dash-head b { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.dash-body { padding-top: 16px; }

.pick-map { height: 230px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); z-index: 1; position: relative; }
.row-btns { display: flex; gap: 8px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 0; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-strong); }
.swatches input:checked + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.swatches input:focus-visible + span { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.svc-row { display: grid; grid-template-columns: 1fr auto auto 44px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.svc-row input { font: inherit; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 11px; min-width: 0; width: 100%; }
.svc-row label { display: flex; align-items: center; gap: 4px; font-size: 0.84rem; color: var(--muted); }
.svc-row input[type="number"] { width: 68px; }
@media (max-width: 420px) {
  .svc-row { grid-template-columns: 1fr 1fr 44px; }
  .svc-row > input[name="name"] { grid-column: 1 / -1; }
}

.upload { position: relative; display: grid; place-items: center; min-height: 180px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; overflow: hidden; font-weight: 700; color: var(--accent-light); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload:focus-within { border-color: var(--accent); }
.upload img { width: 100%; max-height: 380px; object-fit: cover; }
.upload span { padding: 12px; }
.upload span:has(~ img:not([hidden])) { position: absolute; bottom: 10px; background: rgba(0,0,0,.75); border-radius: 999px; padding: 8px 14px; }

img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Desktop: Seitenleiste ---------- */
@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  .nav {
    inset: 16px auto 16px 16px; width: 230px; height: auto; max-width: none; margin: 0; padding: 26px 14px;
    display: flex; flex-direction: column; gap: 4px; border-radius: 28px;
  }
  .wordmark {
    display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 0 14px 30px;
    font-family: var(--display); font-size: 1.75rem; font-weight: 600;
  }
  .nav-link { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 13px 14px; border-radius: 14px; font-size: 0.95rem; }
  .nav-link:hover { background: var(--hover); color: var(--text); }
  .nav-link[aria-current="page"] { background: color-mix(in srgb, var(--accent) 12%, transparent); }
  #view { margin-left: 262px; padding-bottom: 56px; }
  .topbar .brand { visibility: hidden; }
  .map-cards { bottom: 20px; }
  .toast { bottom: 28px; margin-left: 131px; }
  .profile-cover { height: 300px; margin: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Damen: Pink statt Blau ---------- */
:root[data-accent="pink"] {
  --accent: #E8579E;
  --accent-light: #FFB3D6;
  --accent-grad: linear-gradient(135deg, #FFA9D0 0%, #E8579E 48%, #A82468 100%);
}

/* ---------- Heller Modus ---------- */
:root[data-theme="light"] {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --raised: #EEEEF2;
  --line: rgba(10, 10, 20, 0.09);
  --line-strong: rgba(10, 10, 20, 0.18);
  --hover: rgba(10, 10, 20, 0.05);
  --glass: rgba(255, 255, 255, 0.86);
  --glass-strong: rgba(245, 245, 247, 0.92);
  --text: #0E0E12;
  --text-soft: rgba(14, 14, 18, 0.8);
  --muted: rgba(14, 14, 18, 0.55);
  --danger: #C8323E;
  --ok: #1F8A4C;
  --map-bg: #E8E8EC;
  --map-filter: grayscale(0.6) brightness(1.02);
  color-scheme: light;
}
:root[data-theme="light"] .nav { box-shadow: 0 10px 30px rgba(10, 10, 20, 0.12); }
:root[data-theme="light"] .salon-row, :root[data-theme="light"] .booking, :root[data-theme="light"] .map-card { box-shadow: 0 6px 20px rgba(10, 10, 20, 0.06); }
:root[data-theme="light"] .post-media { box-shadow: 0 14px 34px rgba(10, 10, 20, 0.16); }
:root[data-theme="light"] .me-dot { background: #0E0E12; border-color: #fff; box-shadow: 0 0 0 7px rgba(10, 10, 20, .15); }

/* ---------- Kopfzeile: Zielgruppe & Hell/Dunkel ---------- */
.top-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.theme-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--glass); cursor: pointer; color: var(--text);
}
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.audience { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 2px; padding: 3px; margin: 0 18px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.audience button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 0.82rem; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.audience button[aria-pressed="true"] { background: var(--accent-grad); color: #fff; }
.page .audience { margin: 0 0 4px; }
.map-top .audience { margin: 0; background: var(--glass); backdrop-filter: blur(10px); }
.aud-tag { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-light); }
:root[data-theme="light"] .aud-tag { color: var(--accent); }

/* Kopfzeile eines Beitrags liegt auf dem Bild: immer helle Schrift */
.post > .post-head { color: #F5F3EE; }
.post > .post-head .muted { color: rgba(245, 243, 238, 0.7); }
/* Zielgruppe im Salon-Formular */
.chip:has(input:checked) { background: var(--accent-grad); color: #fff; border-color: transparent; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.top-actions .loc-chip { max-width: 170px; }
@media (max-width: 400px) {
  .topbar { padding-left: 14px; padding-right: 14px; }
  .topbar .brand { font-size: 1.35rem; }
  .top-actions .loc-chip { max-width: 140px; padding: 8px 12px; }
}

/* Filter-Chips: am Handy bis zum Bildschirmrand wischbar mit weichem Auslauf, ab Tablet umbrechen statt abschneiden */
.page > .chips {
  margin: 0 -18px; padding: 14px 18px; scroll-padding: 0 18px;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
  mask-image: linear-gradient(to right, #000 88%, transparent);
}
@media (min-width: 600px) {
  .page > .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 14px 0; -webkit-mask-image: none; mask-image: none; }
}

/* Aus OpenStreetMap importierte Salons */
.osm-tag { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); }
.osm-note { font-size: 0.85rem; color: var(--muted) !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.osm-note a { color: var(--accent-light); }
.pin.osm { width: 22px; height: 22px; border-width: 2px; background: var(--raised); border-color: var(--muted); }

/* ---------- Folgen ---------- */
.profile-actions.with-follow { grid-template-columns: 1fr 1fr auto auto; }
.profile-actions .btn { padding: 0 14px; }
.feed-switch { display: flex; gap: 22px; margin: -4px 18px 16px; border-bottom: 1px solid var(--line); max-width: 560px; }
@media (min-width: 600px) { .feed-switch { margin-left: auto; margin-right: auto; } }
.feed-switch button { border: 0; background: none; padding: 10px 0; font-weight: 700; font-size: 0.92rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.feed-switch button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }
.nearby.flush { padding-left: 0; padding-right: 0; }

/* ---------- Dashboard: fünf Reiter wischbar ---------- */
.tabs.five { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs.five::-webkit-scrollbar { display: none; }
.tabs.five a { flex: 1 0 auto; padding: 14px 12px; }

/* ---------- Statistik ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-tiles.three { grid-template-columns: repeat(3, 1fr); }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; min-width: 0; }
.stat-tile b { font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.stat-label { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.stat-label svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.stat-sub { font-size: 0.76rem; color: var(--muted); }
.stat-tile.ok .stat-label { color: var(--ok); }
.stat-tile.bad .stat-label { color: var(--danger); }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .base-line { stroke: var(--line-strong); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 10px; font-family: var(--sans); }
.chart .bar { fill: var(--accent); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .bar-col.on .bar { fill: var(--accent-light); }
.chart .bar-col.on .hit { fill: var(--hover); }
.chart-tip { position: absolute; top: -6px; transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 0.78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.chart-table { margin-top: 10px; font-size: 0.85rem; }
.chart-table summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; }
.sub-title { font-size: 0.95rem; margin: 18px 0 6px; font-family: var(--display); }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); counter-increment: r; }
.rank li span::before { content: counter(r) ". "; color: var(--muted); }
.top-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.top-posts button { position: relative; border: 0; padding: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface); }
.top-posts svg, .top-posts img { width: 100%; height: 100%; }
.top-posts span { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.top-posts span svg { width: 12px; height: 12px; fill: #fff; stroke: none; }
@media (min-width: 700px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
.profile-actions .btn { white-space: nowrap; }

/* Kontakt im Profil */
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%;
  padding: 9px 14px 9px 12px; border-radius: var(--r-md); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s;
}
.contact-pill:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.contact-pill svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-pill span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 0.88rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-pill small { font-weight: 600; font-size: 0.7rem; color: var(--muted); }

/* Passwort anzeigen */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 52px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { background: var(--hover); color: var(--text); }
.pw-toggle[aria-pressed="true"] { color: var(--accent); }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.osm-note p { margin: 0; }
.osm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.osm-actions .link-btn { padding: 4px 6px; font-size: 0.85rem; }

/* Impressum & Datenschutz */
.legal-links { display: flex; justify-content: center; gap: 18px; margin: 28px 0 8px; font-size: 0.82rem; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--text); text-decoration: underline; }
.nav-legal { display: none; }
@media (min-width: 900px) {
  .nav-legal { display: flex; gap: 14px; margin-top: auto; padding: 0 14px; font-size: 0.78rem; }
  .nav-legal a { color: var(--muted); text-decoration: none; }
  .nav-legal a:hover { color: var(--text); }
}
.legal { padding-bottom: 40px; }
.legal h1 { margin: 6px 0 10px; }
.legal h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal h3 { font-size: 0.98rem; margin: 18px 0 6px; font-family: var(--display); }
.legal p, .legal li { color: var(--text-soft); max-width: 68ch; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-light); }
.legal-draft { background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--r-sm); padding: 10px 12px; font-size: 0.86rem; font-weight: 600; }
mark.ph { background: color-mix(in srgb, #F5C542 30%, transparent); color: inherit; border-radius: 4px; padding: 0 3px; }
.toast { width: max-content; max-width: min(92vw, 440px); text-align: center; }

/* Salon übernehmen / Doppelte vermeiden */
.claim-find { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.claim-find .searchbox { margin-top: 10px; background: var(--raised); }
#claimResults { margin-top: 8px; }
.claim-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.claim-row:last-child { border-bottom: 0; }
.claim-row b { font-family: var(--display); }
.claim-status { background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: var(--r-lg); padding: 16px 18px; }
.claim-status .page-title { padding-top: 0; }

/* ================= Bewegung ================= */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Seitenwechsel (View Transitions) */
::view-transition-old(root) { animation: vt-out .18s ease-in both; }
::view-transition-new(root) { animation: vt-in .28s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.nav { view-transition-name: nav; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease-out) var(--d, 0ms), transform .45s var(--ease-out) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Fotos weich einblenden, darunter schimmernder Platzhalter */
img.photo { opacity: 0; transition: opacity .4s ease; }
img.photo.loaded { opacity: 1; }
.post-media, .grid button, .thumbs, .top-posts button { background: linear-gradient(100deg, var(--surface) 30%, var(--raised) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.post-media:has(img.loaded, svg), .grid button:has(img.loaded, svg), .thumbs:has(svg), .top-posts button:has(img.loaded, svg) { animation: none; background: var(--surface); }
@keyframes shimmer { to { background-position: -300% 0; } }

/* Lade-Skelett beim Start */
.skeleton { max-width: 560px; margin: 0 auto; padding: 72px 14px 0; }
.sk { display: block; background: linear-gradient(100deg, var(--surface) 30%, var(--raised) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.sk-row { display: flex; gap: 16px; overflow: hidden; margin-bottom: 26px; }
.sk-circle { width: 70px; height: 70px; border-radius: 50%; flex: none; }
.sk-card { aspect-ratio: 4/5; border-radius: var(--r-lg); margin-bottom: 26px; }

/* Herz: kurzes Aufploppen, großes Herz bei Doppeltipp */
.icon-btn.like.pop svg { animation: pop .45s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.post-media { position: relative; }
.heart-burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.heart-burst svg { width: 96px; height: 96px; fill: #fff; stroke: none; filter: drop-shadow(0 6px 20px rgba(0,0,0,.45)); animation: burst .85s var(--ease-out) forwards; }
@keyframes burst { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.12); } 45% { transform: scale(.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05) translateY(-14px); } }

/* Fenster (Sheet) schließt weich */
.sheet.closing { animation: sheet-out .2s ease-in forwards; }
.sheet-backdrop { animation: fade-in .2s ease-out; }
.sheet-backdrop.closing { animation: fade-out .2s ease-in forwards; }
@keyframes sheet-out { to { transform: translateY(60px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (min-width: 700px) {
  .sheet:not(.closing) { animation: sheet-pop .22s var(--ease-out); }
  .sheet.closing { animation: sheet-pop-out .18s ease-in forwards; }
  @keyframes sheet-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
  @keyframes sheet-pop-out { to { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
}

/* Antippen fühlbar machen */
.chip, .nav-link, .contact-pill, .salon-row, .map-card, .theme-btn, .audience button, .feed-switch button { transition: transform .15s var(--ease-out), background .2s, color .2s, border-color .2s; }
.chip:active, .contact-pill:active, .theme-btn:active, .audience button:active { transform: scale(.94); }
.salon-row:active, .map-card:active { transform: scale(.985); }
.nav-link[aria-current="page"] svg { animation: nav-bounce .35s var(--ease-spring); }
@keyframes nav-bounce { 40% { transform: translateY(-3px) scale(1.08); } }
.btn[data-action="follow"] { transition: background .25s, color .25s, transform .15s var(--ease-out); }

/* Statistik: Säulen wachsen von unten */
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: grow .6s var(--ease-out) both; }
.chart .bar-col:nth-child(n) .bar { animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes grow { from { transform: scaleY(0); } }

/* Toast springt leicht */
.toast { transition: opacity .25s, transform .35s var(--ease-spring); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  img.photo { opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ===== Feed kompakter: kleinere, leichtere Beiträge ===== */
.page.feed { max-width: 470px; }
.post { margin-bottom: 22px; }
.post-media { aspect-ratio: 1 / 1; border-radius: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
:root[data-theme="light"] .post-media { box-shadow: 0 6px 18px rgba(10,10,20,.1); }
.post-media svg, .post-media img { transition: transform .4s ease; }
.post-head { padding: 10px 12px 22px; border-radius: 18px 18px 0 0; }
.post-head .avatar { --size: 32px; }
.post-head .who b { font-size: 0.95rem; }
.post-head .who .muted { font-size: 0.75rem; }
.post-head .rating { font-size: 0.78rem; padding: 3px 8px; }
.post-actions { padding: 6px 2px 0; }
.icon-btn { width: 40px; height: 40px; }
.icon-btn svg { width: 23px; height: 23px; }
.book-link { padding: 7px 13px; font-size: 0.8rem; }
.post-body { padding: 0 8px; font-size: 0.92rem; }

/* ===== Kommentare ===== */
.comments { margin: 4px 0 2px; }
.comment { margin: 2px 0; font-size: 0.9rem; line-height: 1.4; overflow-wrap: anywhere; }
.comment b { margin-right: 4px; }
.more-comments { padding: 2px 0; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.86rem; }
.comment-del { padding: 0 4px; font-size: 0.75rem; color: var(--muted); text-decoration: none; }
.comment-form { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; border-top: 1px solid var(--line); padding-top: 6px; }
.comment-form input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 0.9rem; padding: 8px 0; outline: none; }
.comment-form input::placeholder { color: var(--muted); }
.comment-form button { text-decoration: none; padding: 6px 2px; color: var(--accent-light); }
:root[data-theme="light"] .comment-form button { color: var(--accent); }
.comment-form button:disabled { opacity: .4; }
.comment-list { max-height: 50dvh; overflow-y: auto; margin: 10px 0; }
.comment-list .comment { padding: 8px 0; border-bottom: 1px solid var(--line); }
.comment-form.sticky { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); margin: 0 -20px; padding: 8px 20px; }

/* ===== Fenster: Schließen-Knopf ===== */
.sheet { position: fixed; }
.sheet-close {
  position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--raised); color: var(--text); cursor: pointer;
}
.sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sheet h2 { padding-right: 46px; }
.sheet { transition: transform .2s ease; }

/* ===== Profil ploppt auf ===== */
:root[data-vt="pop"]::view-transition-new(root) { animation: vt-pop .32s var(--ease-out) both; }
:root[data-vt="pop"]::view-transition-old(root) { animation: vt-out .16s ease-in both; }
@keyframes vt-pop { from { opacity: 0; transform: scale(.94) translateY(16px); } }
/* Beiträge noch kompakter: Querformat und seitlicher Rand */
.page.feed { max-width: 440px; padding: 0 16px !important; }
.post-media { aspect-ratio: 4 / 3; }
.post { margin-bottom: 18px; }

/* ================= Karte (MapLibre) ================= */
#map .maplibregl-canvas { outline: none; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; }
.map-loading .sk { width: 100%; height: 100%; }
.map-top { right: 70px; }
.map-controls {
  position: absolute; z-index: 500; right: 14px; top: calc(14px + env(safe-area-inset-top));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.map-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--text); cursor: pointer; transition: background .15s; }
.map-controls button + button { border-top: 1px solid var(--line); }
.map-controls button:hover { background: var(--hover); }
.map-controls button:active { transform: scale(.92); }
.map-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.map-controls button[data-action="map-locate"] svg { stroke: var(--accent); }

.pin-wrap { border: 0; padding: 0; background: none; cursor: pointer; transition: transform .25s var(--ease-spring); transform-origin: bottom center; }
.pin-wrap .pin { transition: background .2s, transform .25s var(--ease-spring); }
.pin-wrap.active { z-index: 2; }
.pin-wrap.active .pin { background: var(--accent-grad); transform: rotate(-45deg) scale(1.18); }
.pin-wrap.active .pin span { color: #fff; }
.pin-wrap:hover .pin { transform: rotate(-45deg) scale(1.1); }

.me-dot.pulse { position: relative; }
.me-dot.pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent);
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
.me-dot { background: var(--accent); border-color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

.maplibregl-ctrl-attrib { background: var(--glass) !important; color: var(--muted) !important; font-size: 10px; border-radius: 10px !important; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(var(--attrib-invert, 1)); }
:root[data-theme="light"] { --attrib-invert: 0; }
.maplibregl-ctrl-bottom-right { bottom: calc(var(--nav-h) + 140px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .maplibregl-ctrl-bottom-right { bottom: 130px; } }

.map-card { transition: transform .25s var(--ease-out), border-color .2s, box-shadow .2s; }
.map-card.active { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.5); }

/* Namen auf der Karte */
.pin-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.pin-label {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 4px);
  white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
  font: 700 12px/1.2 var(--sans); color: var(--text);
  padding: 3px 8px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
#map.show-labels .pin-label, .pin-wrap.active .pin-label { opacity: 1; }
.pin-wrap.active .pin-label { border-color: var(--accent); }

/* ===== Info-Card auf der Karte ===== */
.bn-popup .maplibregl-popup-content {
  padding: 0; border-radius: 18px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.45); color: var(--text); font-family: var(--sans);
  animation: pop-in .28s var(--ease-spring);
}
.bn-popup .maplibregl-popup-tip { border-top-color: var(--glass) !important; border-bottom-color: var(--glass) !important; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.pop-card { position: relative; padding: 14px 14px 12px; width: 260px; }
.pop-close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--hover); color: var(--text); cursor: pointer; }
.pop-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pop-head { display: flex; align-items: center; gap: 10px; padding-right: 28px; margin-bottom: 8px; }
.pop-head b { display: block; font-family: var(--display); font-size: 1rem; line-height: 1.2; }
.pop-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.8rem; margin-top: 2px; }
.pop-line { display: flex; gap: 8px; margin: 4px 0; font-size: 0.8rem; color: var(--text-soft); line-height: 1.35; }
.pop-line svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.pop-review { margin: 8px 0 10px; padding: 8px 10px; border-radius: 12px; background: var(--hover); font-size: 0.78rem; line-height: 1.4; }
.pop-review .stars { font-size: 0.75rem; letter-spacing: 1px; }
.pop-quote { color: var(--text-soft); }
.pop-sk { display: block; height: 30px; border-radius: 8px; }
.pop-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pop-actions .btn { min-height: 36px; font-size: 0.82rem; }

.pop-actions .pop-gmaps { grid-column: 1 / -1; gap: 6px; }
.pop-actions .pop-gmaps svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ===== Kleine Namens-Cards (mehrere Salons nebeneinander) ===== */
.bn-mini .maplibregl-popup-content { padding: 0; background: none; box-shadow: none; }
.bn-mini .maplibregl-popup-tip { display: none; }
.bn-mini { z-index: 2; }
.bn-popup { z-index: 3; }
.mini-pop {
  display: flex; align-items: center; gap: 8px; width: 184px; height: 48px; padding: 6px 12px 6px 7px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(0,0,0,.4); color: var(--text); font-family: var(--sans); text-align: left; cursor: pointer;
  animation: pop-in .25s var(--ease-spring);
  transition: border-color .2s, transform .15s var(--ease-out);
}
.mini-pop:hover { border-color: var(--accent); }
.mini-pop:active { transform: scale(.96); }
.mini-pop .avatar { --size: 30px; flex: none; }
.mini-pop > span { min-width: 0; display: flex; flex-direction: column; }
.mini-pop b { font: 600 .8rem/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-pop small { font-size: .7rem; color: var(--text-soft); white-space: nowrap; }
.pin-wrap.has-pop .pin-label { opacity: 0 !important; }
.map-empty { grid-template-columns: 1fr; }
.more-results { width: 100%; margin: 14px 0 6px; }

/* ===== Leiste unten: gestaffelter Auftritt, aktive Karte mit Lichtkante ===== */
/* Erster Auftritt: von unten. Danach (Karte verschoben): schneller Wisch von rechts nach links. */
.map-cards.first .map-card { animation: card-rise .55s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes card-rise {
  from { opacity: 0; transform: translateY(36px) scale(.92); filter: blur(4px); }
  60% { filter: blur(0); }
}
.map-cards.enter:not(.first) .map-card { animation: card-swipe-in .42s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes card-swipe-in {
  from { opacity: 0; transform: translateX(120px) scale(.94); filter: blur(6px); }
  55% { filter: blur(0); }
}
.map-cards.leave .map-card { animation: card-swipe-out .17s cubic-bezier(.7, 0, .84, 0) both; }
@keyframes card-swipe-out { to { opacity: 0; transform: translateX(-90px) scale(.96); filter: blur(4px); } }
.map-card { position: relative; overflow: hidden; }
.map-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, var(--accent) 85%, #fff 90%, var(--accent) 95%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.map-card.active::before { opacity: 1; animation: card-spin 3.2s linear infinite; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes card-spin { to { --spin: 360deg; } }
.map-card .avatar { transition: transform .35s var(--ease-spring); }
.map-card.active .avatar { transform: scale(1.08); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 50%; }
@media (hover: hover) { .map-card:hover { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .map-cards .map-card, .map-card.active::before { animation: none !important; }
}
