/* Look angelehnt an BeReal: schwarz, weiß, grau. Keine Farben außer den Fotos. */

/* Schrift liegt auf unserem eigenen Server statt bei Google Fonts (DSGVO, LG München I) */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/geist-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/geist-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000;
  --surface: #151515;
  --surface-2: #1f1f1f;
  --line: #1c1c1c;
  --text: #fff;
  --muted: #8a8a8a;
  --danger: #ff4d4d;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, Inter, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'tnum';
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.screen {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top)) 16px calc(150px + env(safe-area-inset-bottom));
}

.center { min-height: 80vh; display: grid; place-items: center; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }

h1, h2, p { margin: 0; }
h2 { font-size: 1rem; font-weight: 700; }
code { background: var(--surface); padding: 2px 6px; border-radius: 6px; }

.rise { animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Marke ---------- */
.wordmark { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.05em; line-height: 1; }
.wordmark.xl { font-size: 2.2rem; }
.display { font-size: clamp(2.6rem, 12vw, 3.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }

/* ---------- Formulare ---------- */
.form, .stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 10px; font-size: 0.82rem; color: var(--muted); }
input, select {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 15px 16px;
  width: 100%;
}
input::placeholder { color: #5c5c5c; }
input:focus, select:focus { outline: none; border-color: #444; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 16px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s var(--ease), opacity 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.full { width: 100%; }
.btn.primary { background: var(--text); color: #000; }
.btn.ghost { background: transparent; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.icon-btn:active { opacity: 0.6; }

.link {
  font: inherit;
  font-weight: 600;
  background: none;
  border: 0;
  color: var(--text);
  padding: 10px 0;
  cursor: pointer;
}
.link.danger { color: var(--danger); }
.center-link { display: block; margin: 6px auto 0; color: var(--muted); text-align: center; }

.message { color: var(--text); font-size: 0.9rem; }
.notice { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }

/* ---------- Segment-Schalter (Login) ---------- */
.segmented {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--surface);
  border-radius: 14px;
  padding: 4px;
}
.segmented::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: var(--surface-2);
  transform: translateX(calc(var(--idx, 0) * 100%));
  transition: transform 0.3s var(--ease);
}
.segmented button {
  position: relative;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  cursor: pointer;
}
.segmented button.active { color: var(--text); }

/* ---------- Kopfzeile wie BeReal: Icon links, Logo Mitte, Profil rechts ---------- */
.appbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  justify-items: center;
  min-height: 48px;
}
.appbar > :first-child { justify-self: start; }
.appbar > :last-child { justify-self: end; }

.toptabs { display: flex; justify-content: center; gap: 22px; margin: 6px 0 18px; }
.toptabs button {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.toptabs button.active { color: var(--text); }

/* ---------- Avatare ---------- */
.avatar {
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--text);
  background: hsl(var(--h) 18% 24%);
  object-fit: cover;
}
.avatar-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; color: inherit; }

/* ---------- Login / Start ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; padding-top: calc(20px + env(safe-area-inset-top)); }
.auth > .wordmark { align-self: center; }
.auth-hero { padding: 12vh 0 40px; }
.auth-sub { color: var(--muted); font-size: 1rem; line-height: 1.5; margin-top: 16px; max-width: 32ch; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 20px 0 12px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #2a2a2a; }

.invite-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  border-radius: 16px;
  background: var(--surface);
}
.invite-code { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.14em; }
.code-input { text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; }

/* ---------- Feed ---------- */
.feed { display: flex; flex-direction: column; gap: 26px; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-head b { font-size: 0.95rem; }
.post-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface); }
.post-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* BeReal-Ansicht: großes Bild, kleines Bild oben links zum Tauschen */
.dual-main { width: 100%; height: 100%; object-fit: cover; display: block; }
.mirrored { transform: scaleX(-1); }
.dual-inset {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 2px solid #000;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  z-index: 2;
}
.post-photo .dual-inset img, .dual-inset img, .dual-inset video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dual-inset.live { cursor: default; }
/* Kleines Bild in jede Ecke ziehbar. touch-action: none, damit beim Ziehen nicht die Seite scrollt */
.post-photo .dual-inset, .camera-frame .dual-inset:not(.live) { touch-action: none; }
.dual-inset img, .dual-main { -webkit-user-drag: none; -webkit-touch-callout: none; }
.dual-inset.at-tr { left: auto; right: 12px; }
.dual-inset.at-bl { top: auto; bottom: 12px; }
.dual-inset.at-br { top: auto; left: auto; right: 12px; bottom: 12px; }
.dual-inset.dragging { cursor: grabbing; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); }
.camera-tip { color: var(--muted); font-size: 0.82rem; margin: 0; }
.post-missing { display: grid; place-items: center; height: 100%; }

/* Auslöser unten wie bei BeReal */
.post-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 16px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85) 45%);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 15;
  /* Nur der Knopf fängt Tipps ab, der Verlauf daneben lässt sie zum Feed durch */
  pointer-events: none;
}
.post-cta .shutter-btn { pointer-events: auto; }
.shutter-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s var(--ease);
}
.shutter-btn:active { transform: scale(0.9); }

/* ---------- Ranking ---------- */
.group-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
.group-chips::-webkit-scrollbar { display: none; }
.chip {
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.chip.active { background: var(--text); color: #000; }

.rank-head { text-align: center; margin: 4px 0 18px; }
.rank-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.rank-head p { margin-top: 6px; font-size: 0.9rem; }
.rank-head b { color: var(--text); font-weight: 600; }

.list { list-style: none; padding: 0; margin: 0; }
.list-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
}
button.list-row { cursor: pointer; }
button.list-row:active { opacity: 0.6; }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank { width: 18px; text-align: center; color: var(--muted); font-weight: 700; }
.rank-name { font-weight: 700; overflow-wrap: anywhere; }
.list-row.me .rank-name::after { content: ' (you)'; color: var(--muted); font-weight: 500; }
.count { font-weight: 700; color: var(--muted); white-space: nowrap; font-size: 1.05rem; }
.count.done { color: var(--text); }
.footnote { text-align: center; margin-top: 22px; line-height: 1.5; }

.joker { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 8px; border-radius: 14px; background: var(--surface); }

/* ---------- Profil ---------- */
.appbar h2 { font-size: 1.05rem; }
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 18px 0 30px; }
.profile-head h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.avatar-edit { position: relative; }
.avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--text);
  color: #000;
  border: 3px solid var(--bg);
}

.memories { background: var(--surface); border-radius: 18px; padding: 16px; }
.memories-head { display: flex; justify-content: space-between; align-items: center; margin: -6px -6px 12px; }
.memories-head .icon-btn:disabled { opacity: 0.25; cursor: default; }
.memories-title { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.cal-day.done { background: var(--text); color: #000; }
button.cal-day { font: inherit; font-weight: 700; border: 0; padding: 0; cursor: pointer; transition: transform 0.15s var(--ease); }
button.cal-day:active { transform: scale(0.9); }
.memory-photo { margin-top: 4px; }
.cal-day.today:not(.done) { box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); }
.cal-day.future { opacity: 0.35; }

.section-title { margin: 32px 0 4px; color: var(--muted); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.logout { margin-top: 32px; }
.delete-account { margin: 18px auto 8px; font-size: 0.85rem; font-weight: 500; }

/* Altersbestätigung auf dem Login-Screen */
.age-check { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; color: var(--text); cursor: pointer; }
.age-check input { width: 20px; height: 20px; padding: 0; margin: 0; accent-color: var(--brand); flex: none; }
.age-check + .message { margin: -4px 0 14px; }
.age-check a { color: inherit; text-decoration: underline; }
.legal-links { display: flex; justify-content: center; gap: 18px; margin: 28px 0 8px; font-size: 0.8rem; }
.legal-links a { color: var(--muted); text-decoration: none; }

.sheet-text { font-size: 0.95rem; line-height: 1.5; margin-bottom: 14px; }

/* ---------- Bottom-Sheet ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  animation: fade 0.2s ease both;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #111;
  border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  animation: sheet-up 0.35s var(--ease) both;
}
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-handle { width: 36px; height: 4px; border-radius: 999px; background: #333; margin: 0 auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sheet-head h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.sheet input, .sheet .invite-box { background: var(--surface-2); }
.sheet-section + .sheet-section { margin-top: 22px; }

.member-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.member { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 52px; }
.member .small { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.goal-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.goal-picker button {
  font: inherit;
  font-weight: 700;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 0;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.goal-picker button.active { background: var(--text); color: #000; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: calc(12px + env(safe-area-inset-top));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 18px;
  border-radius: 999px;
  z-index: 60;
  animation: toast-in 0.35s var(--ease) both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -20px); } }

/* ---------- Kamera ---------- */
.camera {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
}
.camera-top { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; justify-items: center; padding: 6px 12px; }
.camera-frame { position: relative; flex: 1; min-height: 0; margin: 8px 12px 0; border-radius: 22px; overflow: hidden; background: #111; }
.camera-view { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera-view.mirrored { transform: scaleX(-1); }
.camera-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.camera-error { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: var(--muted); }
.camera-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 150px;
  padding: 16px 20px calc(12px + env(safe-area-inset-bottom));
}
.review-actions { display: flex; gap: 12px; width: 100%; justify-content: center; }
.review-actions .btn { flex: 1; max-width: 200px; }

/* Modus-Auswahl wie bei Snapchat */
.modes { display: flex; gap: 22px; }
.modes button {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 6px 2px;
  cursor: pointer;
}
.modes button.active { color: var(--text); }
.modes button:disabled { cursor: default; }


.shutter {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s var(--ease);
}
.shutter:active { transform: scale(0.9); }
.shutter:disabled { opacity: 0.4; }


/* ---------- Likes und Kommentare ---------- */
.post-photo { position: relative; user-select: none; -webkit-user-select: none; }
.heart-burst {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  animation: burst 0.8s var(--ease) both;
  pointer-events: none;
}
@keyframes burst {
  0% { opacity: 0; transform: scale(0.4); }
  20% { opacity: 1; transform: scale(1.1); }
  60% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.post-actions { display: flex; gap: 18px; margin-top: 10px; }
.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  background: none;
  border: 0;
  color: var(--text);
  padding: 4px 0;
  cursor: pointer;
}
.action svg { transition: transform 0.2s var(--ease); }
.action:active svg { transform: scale(0.85); }
.action.liked { color: #ff3b5c; }
.action.liked span { color: var(--text); }
.add-comment { display: block; font: inherit; font-size: 0.9rem; background: none; border: 0; color: var(--muted); padding: 4px 0; cursor: pointer; text-align: left; }

.sheet { max-height: 88vh; display: flex; flex-direction: column; }
.comments { flex: 1; min-height: 120px; max-height: 55vh; overflow-y: auto; margin: 0 -18px; padding: 0 18px; }
.comment { display: flex; gap: 12px; padding: 10px 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 8px; }
.comment-meta b { font-size: 0.9rem; }
.comment-delete { margin-left: auto; padding: 0; color: var(--muted); font-weight: 500; }
.comment-body { margin-top: 3px; line-height: 1.4; overflow-wrap: anywhere; }
.comment-gif { display: block; margin-top: 6px; max-width: 200px; max-height: 200px; border-radius: 12px; }

.comment-bar { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #222; margin: 8px -18px 0; padding-left: 18px; padding-right: 10px; }
.comment-bar input { flex: 1; border-radius: 999px; padding: 12px 16px; }
.gif-btn {
  font: inherit;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--text);
  border-radius: 8px;
  padding: 4px 7px;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.send:disabled { opacity: 0.35; cursor: default; }

.gif-picker { display: flex; flex-direction: column; min-height: 0; }
.gif-search { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.gif-search input { flex: 1; border-radius: 999px; padding: 12px 16px; }
.gif-scroll { max-height: 58vh; overflow-y: auto; }
.gif-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 8px; }
.gif-label:not(:first-child) { margin-top: 18px; }
.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gif-add { display: grid; place-items: center; color: var(--text); border: 1.5px dashed #444; background: transparent; }
.gif-cell { padding: 0; border: 0; background: var(--surface-2); border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.gif-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.giphy-credit { text-align: center; font-size: 0.7rem; color: var(--muted); margin-top: 10px; letter-spacing: 0.04em; }

/* Drei-Punkte-Menü am eigenen Post */
.post-menu { margin-left: auto; color: var(--muted); }
.btn.danger-btn { color: var(--danger); }
.camera-step {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 3;
}

/* Antworten und Likes auf Kommentare */
.comment { align-items: flex-start; }
.comment.reply { padding-left: 44px; padding-top: 4px; }
.comment-actions { display: flex; gap: 14px; margin-top: 2px; }
.comment-actions .link { padding: 4px 0; color: var(--muted); font-weight: 600; }
.comment-like {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 28px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.comment-like.liked { color: #ff3b5c; }
.replying {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px -18px 0;
  padding: 6px 10px 6px 18px;
  background: var(--surface-2);
  font-size: 0.82rem;
  color: var(--muted);
}
.replying b { color: var(--text); }
.replying .link { color: var(--muted); display: grid; }
.replying svg { width: 18px; height: 18px; }
.replying + .comment-bar { margin-top: 0; border-top: 0; }

/* Kalender: Tage mit Post zeigen das Foto mit weißem Rahmen (wie BeReal Memories) */
.calendar { gap: 5px; }
.cal-day.photo {
  aspect-ratio: 3 / 4;
  position: relative;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
}
.cal-day.photo span {
  position: absolute;
  inset: auto 0 2px;
  font-size: 0.72rem;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.calendar .cal-day { aspect-ratio: 3 / 4; }
.cal-selfie {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 42%;
  aspect-ratio: 3 / 4;
  border: 1px solid #000;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

/* ---------- Markenfarbe ---------- */
:root { --brand: #d7ff3a; }

/* Squad-Leiste oben im Feed */
.squad-bar {
  display: block;
  width: 100%;
  margin: 0 0 22px;
  padding: 14px 0 4px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.squad-bar-space { height: 150px; }
.squad-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.85rem; }
.squad-head b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad-head span { color: var(--muted); white-space: nowrap; }
.squad-row { display: flex; gap: 14px; overflow-x: auto; padding: 12px 0 10px; scrollbar-width: none; }
.squad-row::-webkit-scrollbar { display: none; }
.squad-member { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 66px; }
.squad-name { font-size: 0.78rem; font-weight: 600; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad-count { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: -2px; }

.progress-avatar { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; }
.progress-avatar svg { position: absolute; inset: 0; }
.pa-track { stroke: #262626; }
.pa-fill { stroke: var(--brand); transition: stroke-dashoffset 0.8s var(--ease); }
.pa-today {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
}

/* Wochenstand am Post */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
.goal-badge {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Belohnung nach dem Posten */
.celebrate {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  text-align: center;
  animation: fade 0.25s ease both;
}
.celebrate-ring { position: relative; display: grid; place-items: center; margin-bottom: 18px; }
.celebrate-ring svg { position: absolute; inset: 0; }
.celebrate-ring .pa-fill {
  stroke-dashoffset: var(--to);
  animation: ring-fill 1.1s 0.2s var(--ease) both;
}
@keyframes ring-fill { from { stroke-dashoffset: var(--from); } to { stroke-dashoffset: var(--to); } }
.celebrate-count { font-size: 4rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.celebrate-count small { font-size: 1.6rem; color: var(--muted); }
.celebrate-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; animation: rise 0.5s 0.5s var(--ease) both; }
.celebrate-sub { color: var(--text); font-size: 1rem; animation: rise 0.5s 0.6s var(--ease) both; }
.celebrate-squad { color: var(--muted); font-size: 0.88rem; animation: rise 0.5s 0.7s var(--ease) both; }
.btn.celebrate-btn { margin-top: 22px; min-width: 200px; background: var(--brand); color: #000; animation: rise 0.5s 0.8s var(--ease) both; }
