/* Ergänzung für PHP-App */
.index-inline-link {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--index-accent, #6366f1);
  text-decoration: none;
  cursor: pointer;
}

.index-inline-link:hover {
  opacity: 0.9;
}

#step1-login-teaser {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(138 138 138 / 38%);
  border-radius: 0.7rem;
  color: #2f2a3a;
  font-size: 0.95rem;
  font-weight: 500;
}

#step1-login-teaser .index-inline-link {
  font-weight: 700;
}

.index-intro-stack {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
  margin: 2.75rem auto 0;
  width: 100%;
  max-width: 34rem;
  box-sizing: border-box;
}

.index-intro-box {
  margin: 0;
  padding: clamp(1.4rem, 3.6vw, 2.85rem) clamp(1.15rem, 4.2vw, 3.25rem);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  backdrop-filter: blur(14px) saturate(1.12);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius, 1rem);
  box-shadow:
    0 1px 2px rgba(64, 58, 86, 0.05),
    0 12px 32px rgba(64, 58, 86, 0.08);
  text-align: center;
  color: rgba(44, 40, 56, 0.9);
  line-height: 1.58;
  font-size: 1rem;
  letter-spacing: 0.003em;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .index-intro-stack {
    position: relative;
    width: min(60rem, calc(100vw - 4rem));
    max-width: min(60rem, calc(100vw - 4rem));
    left: 50%;
    transform: translateX(-50%);
  }

  .index-intro-box {
    padding: 2.5rem 3rem 2.75rem;
  }
}

.index-intro-box .index-intro-heading {
  margin: 0 0 0.65rem;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #2a2636;
  text-transform: none;
}

.index-intro-box p + p {
  margin-top: 0.8rem;
}

.index-intro-box strong {
  color: #2f2b3e;
  font-weight: 700;
}

.index-intro-box.index-panel {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: none;
}

.index-intro-box.index-panel--hero {
  background: #1d1d1f;
  color: #a1a1a6;
  text-align: left;
  box-shadow: none;
  padding: clamp(1.7rem, 4.5vw, 3.35rem) clamp(1.25rem, 4vw, 3.1rem);
}

.index-intro-box.index-panel--hero .index-intro-heading {
  color: #f5f5f7;
  font-size: clamp(1.55rem, 3.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 1.12;
  margin: 0 0 1.15rem;
}

.index-intro-box.index-panel--hero p {
  font-size: 1.06rem;
  line-height: 1.55;
  color: #a1a1a6;
}

.index-intro-box.index-panel--hero strong {
  color: #f5f5f7;
  font-weight: 600;
}

.index-intro-box.index-panel--hero.index-city-copy,
.index-intro-box.index-panel--hero.index-city-copy p,
.index-intro-box.index-panel--hero.index-city-copy h3,
.index-intro-box.index-panel--hero.index-city-copy li {
  text-align: left;
}

.index-intro-box.index-panel--hero .index-city-tips-heading {
  color: #f5f5f7;
  margin-top: 1.6rem;
}

.index-intro-box.index-panel--hero .index-city-tips li {
  color: #a1a1a6;
}

.index-intro-box.index-panel--hero .index-city-tips li strong {
  color: #f5f5f7;
}

.index-intro-box.index-panel--letter {
  background: #f5f5f7;
  color: #1d1d1f;
  text-align: left;
  box-shadow: none;
  padding: clamp(1.7rem, 4.5vw, 3.1rem) clamp(1.25rem, 4vw, 3.1rem);
}

.index-intro-box.index-panel--letter .index-intro-heading {
  font-size: clamp(1.4rem, 3.2vw, 2.05rem);
  letter-spacing: -0.042em;
  line-height: 1.16;
  color: #1d1d1f;
  margin: 0 0 1.15rem;
}

.index-intro-box.index-panel--letter p {
  color: #424245;
  font-size: 1.04rem;
  line-height: 1.58;
}

.index-intro-box.index-panel--letter p:last-child {
  margin-top: 1.15rem;
  color: #1d1d1f;
  font-weight: 600;
}

.index-intro-box.index-panel--letter strong {
  color: #1d1d1f;
  font-weight: 650;
}

.index-letter-points {
  margin: 1.2rem 0 0.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.index-letter-points li {
  margin: 0;
  padding: 0.72rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 0.75rem;
  color: #1d1d1f;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.4;
}

.index-intro-box.index-panel--letter .index-letter-points + p {
  margin-top: 1.15rem;
}

.index-panel-photo {
  margin: 1.45rem auto 1.6rem;
  width: min(100%, 36rem);
}

.index-panel-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.15rem;
}

.index-intro-box.index-panel--faq {
  background: rgba(255, 255, 255, 0.94);
  color: #1d1d1f;
  text-align: left;
  box-shadow: none;
  padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.2rem, 4vw, 2.8rem) clamp(0.7rem, 2vw, 1.1rem);
}

.index-intro-box.index-panel--faq .index-intro-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.042em;
  line-height: 1.16;
  color: #1d1d1f;
  text-align: center;
  margin: 0 0 0.35rem;
}

.index-intro-box.index-panel--topics {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.index-city-tips-heading {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2a2636;
}

.index-city-tips {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.index-city-tips li {
  margin: 0 0 0.85rem;
  padding-left: 0;
  line-height: 1.55;
}

.index-city-tips li strong {
  display: block;
  margin-bottom: 0.15rem;
}

.index-intro-box.index-city-copy,
.index-intro-box.index-city-copy p,
.index-intro-box.index-city-copy h3,
.index-intro-box.index-city-copy li {
  text-align: center;
}

.index-faq-item {
  margin: 0;
  text-align: left;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.index-faq-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.index-faq-item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.022em;
  color: #1d1d1f;
  list-style: none;
}

.index-faq-item summary::-webkit-details-marker {
  display: none;
}

.index-faq-item summary::after {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  flex-shrink: 0;
  border-right: 1.7px solid #86868b;
  border-bottom: 1.7px solid #86868b;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.index-faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.index-faq-item p {
  margin: 0;
  padding: 0 1.6rem 1.15rem 0;
  text-align: left;
  color: #6e6e73;
  font-size: 0.98rem;
  line-height: 1.55;
}

.index-page .index-footer {
  padding-top: 2rem;
}

.index-page .index-footer::before {
  content: "";
  display: block;
  width: min(64rem, calc(100vw - 2.5rem));
  height: 1px;
  margin: 0 auto 1rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 16%,
    rgba(255, 255, 255, 0.95) 84%,
    rgba(255, 255, 255, 0) 100%
  );
}

#step1-benefits {
  margin-top: max(100px, 1.45rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.35rem 1.5rem;
  width: min(52rem, calc(100vw - 2rem));
  max-width: min(52rem, calc(100vw - 2rem));
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  box-sizing: border-box;
  padding: 0;
}

.index-city-ticker {
  position: relative;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.55rem;
  width: max-content;
  max-width: min(52rem, calc(100vw - 2rem));
  margin: 3.55rem 0 0;
  padding: 0.38rem 0.42rem 0.38rem 1.1rem;
  box-sizing: border-box;
  font-size: clamp(1.18rem, 4vw, 1.82rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  color: #2a2636;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.62) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.index-city-ticker.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.index-city-ticker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2.05rem;
  width: min(52rem, calc(100vw - 2rem));
  height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 16%,
    rgba(255, 255, 255, 0.95) 84%,
    rgba(255, 255, 255, 0) 100%
  );
}

.index-city-ticker-brand {
  white-space: nowrap;
  font-size: 0.84em;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: rgba(42, 38, 54, 0.78);
}

.index-city-ticker-sep {
  flex: 0 0 auto;
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(42, 38, 54, 0.32);
  transform: translateY(-0.04em);
}

.index-city-ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  max-width: 100%;
  padding: 0.22em 0.92em 0.24em 0.7em;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.16);
}

.index-city-ticker-pin {
  flex: 0 0 auto;
  width: 0.62em;
  height: 0.62em;
  color: #6d28d9;
  opacity: 0.78;
}

.index-city-ticker-slot {
  position: relative;
  display: block;
  height: 1.22em;
  overflow: hidden;
  vertical-align: middle;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.index-city-ticker-city {
  display: inline-block;
  width: max-content;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.22;
  white-space: nowrap;
  background: linear-gradient(105deg, #4338ca 0%, #7c3aed 48%, #c026d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform, opacity, filter;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s ease,
    filter 0.42s ease;
}

.index-city-ticker-city.is-current {
  position: relative;
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.index-city-ticker-city.is-wait,
.index-city-ticker-city.is-leave {
  position: absolute;
  top: 0;
  left: 0;
}

.index-city-ticker-city.is-wait {
  transform: translateY(118%);
  opacity: 0;
  filter: blur(8px);
}

.index-city-ticker-city.is-leave {
  transform: translateY(-118%);
  opacity: 0;
  filter: blur(8px);
}

#step-1:has(.index-city-ticker) #step1-benefits {
  margin-top: 3.2rem;
}

#step-1:has(.index-city-ticker) #step1-benefits::before {
  top: -1.7rem;
}

@media (max-width: 640px) {
  .index-city-ticker {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: max-content;
    max-width: calc(100vw - 1.5rem);
    margin-top: 2.85rem;
    padding: 0.32rem 0.36rem 0.32rem 0.85rem;
    font-size: clamp(1.05rem, 5.6vw, 1.32rem);
    gap: 0.28rem 0.4rem;
  }

  .index-city-ticker.visible {
    transform: translateX(-50%) translateY(0);
  }

  .index-city-ticker-chip {
    padding: 0.2em 0.78em 0.22em 0.58em;
  }

  #step-1:has(.index-city-ticker) #step1-benefits {
    margin-top: 2.55rem;
  }

  .index-city-ticker::before {
    top: -1.65rem;
  }

  #step-1:has(.index-city-ticker) #step1-benefits::before {
    top: -1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-city-ticker-slot {
    transition: none;
  }

  .index-city-ticker-city {
    transition: none;
    filter: none;
  }
}

#step1-benefits::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2.4rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 16%,
    rgba(255, 255, 255, 0.95) 84%,
    rgba(255, 255, 255, 0) 100%
  );
}

.index-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
  max-width: 22rem;
  margin: 0.5rem auto 0.75rem;
}

#step-3 .input-wrap {
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  min-width: 0;
}

#step-3 label[for="input-birthdate"] {
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  line-height: 1.4;
  text-align: left;
  padding-inline: 0.1rem;
}

#step-3 input[type="date"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

#step-3 input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.index-role-card {
  aspect-ratio: 1;
  min-height: 7.5rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.42);
  color: rgba(43, 38, 57, 0.92);
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.18s ease, box-shadow 0.2s;
}

.index-role-card:hover {
  border-color: rgba(89, 72, 155, 0.45);
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-2px);
}

.index-role-card.is-selected {
  border-color: rgba(89, 72, 155, 0.85);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 20px rgba(64, 58, 86, 0.18);
}

.index-role-card-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.index-progress-standalone {
  max-width: 22rem;
  margin: 0.35rem auto 0.65rem;
}

#step-3 .btn {
  margin-top: 0.25rem;
}

.index-benefit-card {
  position: relative;
  flex: 0 1 13.5rem;
  min-height: 12.5rem;
  min-width: 0;
  padding: 0.4rem 0.4rem 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.index-benefit-icon {
  width: auto;
  height: auto;
  margin: 0 auto 0.48rem;
  display: block;
  font-size: 2rem;
  line-height: 1;
  border: none;
  background: transparent;
}

.index-benefit-icon-image {
  display: block;
  width: clamp(7.25rem, 13vw, 10.5rem);
  height: auto;
  max-width: 10.5rem;
  max-height: 10.5rem;
  object-fit: contain;
  margin: 0 auto;
  filter:
    drop-shadow(0 0 9px rgba(255, 255, 255, 0.98))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.78))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.5));
}

.index-benefit-title {
  display: inline-block;
  max-width: 100%;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(43, 38, 57, 0.9);
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  margin-top: -2rem;
  padding: 0.4rem 0.65rem;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 1);
  border-radius: 999px;
}

@media (max-width: 640px) {
  #step1-login-teaser {
    flex-wrap: wrap;
    justify-content: center;
  }

  #step1-benefits {
    flex-direction: column;
    align-items: stretch;
    gap: 0.42rem;
    width: 100%;
    max-width: 100%;
    left: auto;
    transform: none;
    padding-left: 0;
    padding-right: 0;
  }

  .index-intro-stack,
  .index-intro-box {
    width: 100%;
    max-width: 100%;
    left: auto;
    transform: none;
  }

  .index-intro-box {
    padding: 1.35rem 1.1rem 1.55rem;
  }

  #step-3 input[type="date"] {
    padding: 0.95rem 0.75rem;
    font-size: 1.05rem;
  }

  .index-benefit-card {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: center;
    text-align: left;
    column-gap: 0.55rem;
    padding: 0.62rem 0.72rem;
    min-height: 0;
  }

  .index-benefit-icon {
    margin: 0;
  }

  .index-benefit-icon-image {
    width: 3.25rem;
    max-width: 3.25rem;
    max-height: 3.25rem;
  }

  .index-benefit-title {
    letter-spacing: 0.01em;
    font-size: 0.88rem;
    white-space: normal;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    text-align: left;
  }

}

#step-1 .btn:not(.visible) {
  display: none;
}

.index-step4-code {
  margin-top: 1.35rem;
}

.suggestion-pending-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted, #5c5868);
  text-align: right;
}

.suggestion-friends-since {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted, #5c5868);
  text-align: right;
  line-height: 1.35;
}

.btn-add-friend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-add-friend .btn-add-friend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

.btn-puschel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  height: 2.2rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  border: 0;
  background: linear-gradient(135deg, rgb(255 57 0), rgb(219 0 0 / 45%));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.suggestion-card .suggestion-actions .btn-puschel,
.dashboard-page .suggestion-actions button.btn-puschel:not(.primary) {
  border: 0;
  box-shadow: none;
  transform: none;
  color: #fff;
  background: linear-gradient(135deg, rgb(255 57 0), rgb(219 0 0 / 45%));
}

.suggestion-card .suggestion-actions .btn-puschel:hover,
.dashboard-page .suggestion-actions button.btn-puschel:not(.primary):hover {
  transform: none;
  box-shadow: none;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgb(255 57 0), rgb(219 0 0 / 45%));
  filter: brightness(1.04);
}

html[data-theme="light"] .btn-puschel,
html[data-theme="light"] .suggestion-card .suggestion-actions .btn-puschel,
html[data-theme="light"] .dashboard-page .suggestion-actions button.btn-puschel:not(.primary),
html[data-theme="light"] .dashboard-page .suggestion-actions button.btn-puschel:not(.primary):hover,
html[data-theme="light"] .suggestion-card .friends-fab-stack .profil-foreign-fab.profil-foreign-fab--puschel.btn-puschel,
html[data-theme="light"] .suggestion-card .friends-fab-stack .profil-foreign-fab.profil-foreign-fab--puschel.btn-puschel:hover {
  border: 0;
  box-shadow: none;
  color: #fff;
  background: linear-gradient(135deg, rgb(255 57 0), rgb(185 18 18));
}

.btn-puschel:hover {
  filter: brightness(1.05);
}

.btn-puschel:disabled {
  opacity: 0.85;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.sf-user-highlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* border-color: rgba(250, 204, 21, 0.55) !important;
  box-shadow:
    inset 0 0 0 1px rgba(111, 79, 20, 0.68),
    inset 0 0 0 2px rgba(245, 158, 11, 0.42),
    inset 0 0 0 3px rgba(250, 204, 21, 0.32);
  background-image:
    linear-gradient(145deg, rgba(250, 204, 21, 0.14) 0%, rgba(120, 82, 21, 0.16) 55%, rgba(250, 204, 21, 0.09) 100%); */
  background-clip: padding-box;
}

.sf-user-highlight::after {
  content: "";
  position: absolute;
  inset: -30% -65%;
  z-index: -1;
  background: linear-gradient(
    110deg,
    rgba(0, 0, 0, 0) 22%,
    rgba(0, 0, 0, 0.22) 36%,
    rgba(250, 204, 21, 0.18) 48%,
    rgba(255, 238, 166, 0.45) 52%,
    rgba(250, 204, 21, 0.16) 56%,
    rgba(0, 0, 0, 0.24) 70%,
    rgba(0, 0, 0, 0) 82%
  );
  transform: translate3d(-42%, -2%, 0) rotate(1.5deg);
  will-change: transform, opacity;
  animation: sf-highlight-reflect 5.8s linear infinite;
  pointer-events: none;
}

.sf-user-highlight--ring {
  border-radius: 999px;
}

/* Listings + Profil: overflow hidden clippt Gold-::after; Krone-Popup liegt per fixed + JS außerhalb */
.suggestion-card.sf-user-highlight::after,
.dashboard-page .app-list-panel .inbox-row-card.sf-user-highlight::after,
.profil-page .profil-box.sf-user-highlight::after {
  z-index: 0;
}

@keyframes sf-highlight-reflect {
  0% {
    transform: translate3d(-46%, -2%, 0) rotate(1.5deg);
    opacity: 0.72;
  }
  45% {
    transform: translate3d(-6%, -1%, 0) rotate(1.5deg);
    opacity: 0.88;
  }
  55% {
    transform: translate3d(6%, -1%, 0) rotate(1.5deg);
    opacity: 0.88;
  }
  100% {
    transform: translate3d(46%, -2%, 0) rotate(1.5deg);
    opacity: 0.72;
  }
}

/* Light: heller Hintergrund frisst den Gold-Kontrast → stärkeres Bernstein/Gold, keine dunklen Kanten */
html[data-theme="light"] .sf-user-highlight::after {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 16%,
    rgba(251, 191, 36, 0.12) 30%,
    rgba(217, 119, 6, 0.55) 44%,
    rgba(253, 224, 71, 0.82) 50%,
    rgba(245, 158, 11, 0.58) 56%,
    rgba(180, 83, 9, 0.28) 72%,
    rgba(255, 255, 255, 0) 86%
  );
  animation-name: sf-highlight-reflect-light;
}

@keyframes sf-highlight-reflect-light {
  0% {
    transform: translate3d(-46%, -2%, 0) rotate(1.5deg);
    opacity: 0.9;
  }
  45% {
    transform: translate3d(-6%, -1%, 0) rotate(1.5deg);
    opacity: 1;
  }
  55% {
    transform: translate3d(6%, -1%, 0) rotate(1.5deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(46%, -2%, 0) rotate(1.5deg);
    opacity: 0.9;
  }
}

/* Highlight-Listings: Effekt auf dem Eltern-Element; Innenfläche maskiert alles außer ~5px Rand */
.suggestion-card.sf-user-highlight {
  padding: 5px;
  gap: 0;
  align-items: stretch;
  background: transparent;
  border: 1px solid transparent;
  overflow: hidden;
}

/* --surface/--accent-soft sind halbtransparent → ohne opake Basis scheint der Highlight-::after durch die ganze Fläche */
.suggestion-card.sf-user-highlight > .sf-user-highlight-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 1rem;
  background-color: #1c1d28;
  background-image: none;
  border-radius: calc(var(--radius) - 5px);
  border: none;
  position: relative;
  z-index: 1;
}

.suggestion-card.sf-user-highlight:hover {
  background: transparent;
  border-color: transparent;
}

.suggestion-card.sf-user-highlight:hover > .sf-user-highlight-inner {
  background-color: #1c1d28;
  background-image: none;
}

html[data-theme="light"] .dashboard-page .suggestion-card.sf-user-highlight > .sf-user-highlight-inner,
html[data-theme="light"] .dashboard-page .suggestion-card.sf-user-highlight:hover > .sf-user-highlight-inner {
  background-color: #fff;
  background-image: none;
}

html[data-theme="light"] .dashboard-page .suggestion-card.sf-user-highlight:hover {
  background: transparent;
  border-color: transparent;
}

.dashboard-page .app-list-panel .inbox-row-card.sf-user-highlight {
  padding: 5px;
  gap: 0;
  align-items: stretch;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  overflow: hidden;
}

.dashboard-page .app-list-panel .inbox-row-card.sf-user-highlight > .sf-user-highlight-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex: 1;
  min-width: 0;
  padding: 1rem 2.15rem 1rem 1.1rem;
  background-color: #1c1d28;
  background-image: none;
  border: none;
  border-radius: calc(var(--radius) - 5px);
  position: relative;
  z-index: 1;
}

.dashboard-page .app-list-panel .inbox-row-card.sf-user-highlight:hover > .sf-user-highlight-inner {
  background-color: #1c1d28;
  background-image: none;
}

.profile-highlight-menu-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.profile-highlight-menu-btn:hover {
  background: rgba(250, 204, 21, 0.14);
}

body.sf-modal-open {
  overflow: hidden;
}

.sf-highlight-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sf-highlight-modal[hidden] {
  display: none;
}

.sf-highlight-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 20, 0.58);
  backdrop-filter: blur(1.5px);
}

.sf-highlight-modal-card {
  position: relative;
  width: min(31rem, calc(100vw - 1.5rem));
  border-radius: 1rem;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: linear-gradient(155deg, #18182a 0%, #111220 100%);
  padding: 1.2rem 1.2rem 1.15rem;
  box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.4);
}

.sf-highlight-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.sf-highlight-kicker {
  margin: 0 0 0.35rem;
  color: #fcd34d;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sf-highlight-title {
  margin: 0.1rem 0 0.9rem;
  font-size: 1.24rem;
  line-height: 1.35;
}

.sf-highlight-preview {
  border-radius: 0.8rem;
  border: 1px solid rgba(250, 204, 21, 0.36);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.sf-highlight-preview-name {
  font-weight: 700;
}

.sf-highlight-preview-sub {
  margin-top: 0.3rem;
  color: var(--text-muted, #b7b0cb);
  font-size: 0.92rem;
  line-height: 1.45;
}

.sf-highlight-benefits {
  margin: 0 0 1rem;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.46rem;
  line-height: 1.45;
}

.sf-highlight-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.sf-highlight-plan {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: grid;
  justify-items: start;
  gap: 0.18rem;
  padding: 0.68rem 0.7rem;
  cursor: pointer;
  text-align: left;
}

.sf-highlight-plan.is-active {
  border-color: rgba(250, 204, 21, 0.7);
  background: rgba(250, 204, 21, 0.12);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.22);
}

.sf-highlight-plan-title {
  font-weight: 700;
}

.sf-highlight-plan-price {
  font-size: 0.96rem;
}

.sf-highlight-plan-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fde68a;
}

.sf-highlight-buy-btn {
  width: 100%;
  min-height: 2.85rem;
  border-radius: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.28);
}

.sf-highlight-footnote {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted, #b7b0cb);
  line-height: 1.5;
}

.sf-highlight-footnote a {
  color: inherit;
  text-decoration: underline;
}

html[data-theme="light"] .profile-highlight-menu-btn:hover {
  background: rgba(245, 158, 11, 0.14);
}

html[data-theme="light"] .sf-highlight-modal-card {
  background: linear-gradient(155deg, #fffdf6 0%, #fff8e7 100%);
  border-color: rgba(245, 158, 11, 0.4);
  color: #2d2a36;
}

html[data-theme="light"] .sf-highlight-plan {
  color: #2d2a36;
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .sf-highlight-plan.is-active {
  border-color: rgba(217, 119, 6, 0.6);
  background: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.2);
}

html[data-theme="light"] .sf-highlight-plan-badge {
  color: #92400e;
}

html[data-theme="light"] .sf-highlight-modal-close {
  color: #2d2a36;
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.84);
}

html[data-theme="light"] .sf-highlight-preview {
  background: rgba(255, 255, 255, 0.74);
}

.sf-highlight-success-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sf-highlight-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 20, 0.66);
  backdrop-filter: blur(2px);
}

.sf-highlight-success-card {
  position: relative;
  z-index: 2;
  width: min(30rem, calc(100vw - 1.25rem));
  border-radius: 1.2rem;
  border: 1px solid rgba(250, 204, 21, 0.65);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), rgba(250, 204, 21, 0) 40%),
    linear-gradient(160deg, #1a1733 0%, #111327 100%);
  padding: 1.05rem 1rem 1rem;
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.24),
    0 0 1.2rem rgba(250, 204, 21, 0.42),
    0 1rem 2.2rem rgba(0, 0, 0, 0.45);
  animation: sf-highlight-win-pop 420ms cubic-bezier(0.2, 1.2, 0.3, 1) both;
}

.sf-highlight-success-badge {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin: 0 auto 0.55rem;
  background: rgba(250, 204, 21, 0.17);
  border: 1px solid rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 1.2rem rgba(250, 204, 21, 0.45);
}

.sf-highlight-success-kicker {
  margin: 0 0 0.22rem;
  text-align: center;
  color: #facc15;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sf-highlight-success-title {
  margin: 0 0 0.62rem;
  text-align: center;
  font-size: 1.28rem;
  line-height: 1.3;
}

.sf-highlight-success-text {
  margin: 0.38rem 0;
  text-align: center;
  line-height: 1.45;
}

.sf-highlight-success-close {
  width: 100%;
  margin-top: 0.68rem;
  border-radius: 0.85rem;
  min-height: 2.9rem;
  font-weight: 700;
}

.sf-highlight-confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.sf-highlight-confetti {
  position: absolute;
  top: -8vh;
  width: 0.46rem;
  height: 1rem;
  border-radius: 0.2rem;
  opacity: 0.95;
  animation: sf-highlight-confetti-fall linear forwards;
}

@keyframes sf-highlight-win-pop {
  0% { transform: translateY(0.8rem) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes sf-highlight-confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.95;
  }
  85% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(110vh) rotate(680deg);
    opacity: 0;
  }
}

html[data-theme="light"] .sf-highlight-success-card {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), rgba(245, 158, 11, 0) 42%),
    linear-gradient(160deg, #fffdf5 0%, #fff7e2 100%);
  color: #2d2a36;
  border-color: rgba(217, 119, 6, 0.5);
}

/* Aktionsblock rechts; Nachricht + Puscheln nebeneinander, Karte flacher */
.suggestion-card .suggestion-actions {
  margin-left: auto;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  width: auto;
  max-width: 100%;
}

.suggestion-card .suggestion-actions .btn-puschel,
.suggestion-card .suggestion-actions .btn-chat-link,
.suggestion-card .suggestion-actions .btn-add-friend,
.suggestion-card .suggestion-actions .btn-cancel-request,
.suggestion-card .suggestion-actions .btn-remove-friend {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  height: 2.2rem;
  min-height: 2.2rem;
  padding: 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  border-radius: var(--radius);
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
}

.dashboard-page .suggestion-card .suggestion-actions .btn-remove-friend {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.38);
}

.dashboard-page .suggestion-card .suggestion-actions .btn-remove-friend:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.55);
}

html[data-theme="light"] .dashboard-page .suggestion-card .suggestion-actions .btn-remove-friend {
  background: rgba(254, 226, 226, 0.7);
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.32);
}

html[data-theme="light"] .dashboard-page .suggestion-card .suggestion-actions .btn-remove-friend:hover {
  background: rgba(254, 202, 202, 0.9);
  color: #991b1b;
  border-color: rgba(185, 28, 28, 0.45);
}

.suggestion-card .suggestion-actions .suggestion-pending-label,
.suggestion-card .suggestion-actions .suggestion-friends-since {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.suggestion-pending-sent {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  width: 7.6rem;
  max-width: 100%;
}

.suggestion-card .suggestion-actions .suggestion-pending-sent .suggestion-pending-label {
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  font-size: 0.72rem;
}

.suggestion-card .suggestion-actions .suggestion-pending-sent .btn-cancel-request {
  width: 100%;
}

.suggestion-card .suggestion-actions.suggestion-actions--req-icons {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  gap: 0.4rem;
}

.suggestion-card .suggestion-actions .friend-req-icon-btn {
  width: 2.2rem;
  max-width: 2.2rem;
  height: 2.2rem;
  min-height: 2.2rem;
  padding: 0;
  border: 0;
  font-size: 0;
}

.friend-req-icon-btn {
  box-sizing: border-box;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  line-height: 0;
  flex-shrink: 0;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.friend-req-icon-btn svg {
  display: block;
}

.suggestion-card .suggestion-actions .friend-req-icon-btn--accept,
.dashboard-page .suggestion-actions button.friend-req-icon-btn--accept {
  background: #16a34a;
  border: 0;
  color: #fff;
  box-shadow: none;
}

.suggestion-card .suggestion-actions .friend-req-icon-btn--decline,
.dashboard-page .suggestion-actions button.friend-req-icon-btn--decline:not(.primary) {
  background: #dc2626;
  border: 0;
  color: #fff;
  box-shadow: none;
}

.friend-req-icon-btn:hover,
.friend-req-icon-btn:focus-visible {
  filter: brightness(1.08);
  transform: none;
}

.dashboard-page .suggestion-actions button.friend-req-icon-btn--accept:not(.primary):hover,
.dashboard-page .suggestion-actions button.friend-req-icon-btn--accept:not(.primary):focus-visible {
  background: #15803d;
  color: #fff;
  border-color: transparent;
}

.dashboard-page .suggestion-actions button.friend-req-icon-btn--decline:not(.primary):hover,
.dashboard-page .suggestion-actions button.friend-req-icon-btn--decline:not(.primary):focus-visible {
  background: #b91c1c;
  color: #fff;
  border-color: transparent;
}

.friend-req-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

html[data-theme="light"] .dashboard-page .suggestion-actions button.friend-req-icon-btn--accept:not(.primary),
html[data-theme="light"] .dashboard-page .suggestion-actions button.friend-req-icon-btn--accept:not(.primary):hover {
  background: #16a34a;
  color: #fff;
  border-color: transparent;
}

html[data-theme="light"] .dashboard-page .suggestion-actions button.friend-req-icon-btn--decline:not(.primary),
html[data-theme="light"] .dashboard-page .suggestion-actions button.friend-req-icon-btn--decline:not(.primary):hover {
  background: #dc2626;
  color: #fff;
  border-color: transparent;
}

.friends-page-main .suggestion-card {
  position: relative;
  overflow: hidden;
}

.dashboard-page .suggestion-card.suggestion-card--friend:not(.sf-user-highlight),
.dashboard-page .suggestion-card.suggestion-card--friend:not(.sf-user-highlight):hover {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .dashboard-page .suggestion-card.suggestion-card--friend:not(.sf-user-highlight),
html[data-theme="light"] .dashboard-page .suggestion-card.suggestion-card--friend:not(.sf-user-highlight):hover {
  background: #e6e3f0;
}

.dashboard-page .suggestion-card.suggestion-card--friend.sf-user-highlight > .sf-user-highlight-inner,
.dashboard-page .suggestion-card.suggestion-card--friend.sf-user-highlight:hover > .sf-user-highlight-inner {
  background-color: #16161f;
}

html[data-theme="light"] .dashboard-page .suggestion-card.suggestion-card--friend.sf-user-highlight > .sf-user-highlight-inner,
html[data-theme="light"] .dashboard-page .suggestion-card.suggestion-card--friend.sf-user-highlight:hover > .sf-user-highlight-inner {
  background-color: #e6e3f0;
}

.friends-page-main .suggestion-card .btn-remove-friend.btn-remove-friend--icon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  width: 1.55rem;
  height: 1.55rem;
  min-height: 0;
  padding: 0.12rem;
  border: 1px solid rgba(185, 28, 28, 0.32);
  border-radius: 0 var(--radius) 0 0.55rem;
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.friends-page-main .suggestion-card.sf-user-highlight .btn-remove-friend.btn-remove-friend--icon {
  border-radius: 0 calc(var(--radius) - 5px) 0 0.55rem;
}

.friends-page-main .suggestion-card .btn-remove-friend.btn-remove-friend--icon .btn-remove-friend-svg {
  width: 13px;
  height: 13px;
}

.friends-page-main .suggestion-card .btn-remove-friend.btn-remove-friend--icon:hover {
  background: rgba(185, 28, 28, 0.14);
  color: #991b1b;
}

html[data-theme="light"] .friends-page-main .suggestion-card .btn-remove-friend.btn-remove-friend--icon {
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.28);
}

.friends-page-main .suggestion-card:has(.btn-remove-friend--icon) .suggestion-actions {
  padding-top: 0.7rem;
  padding-right: 1.15rem;
}

.suggestion-friend-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 0.4rem;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

html[data-theme="light"] .dashboard-page .suggestion-friend-badge {
  color: #166534;
  background: rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.3);
}

.suggestion-actions {
  flex-wrap: wrap;
  align-items: center;
}

.suggestion-looking-icons {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem;
  margin-top: 0;
  max-width: 100%;
}

.suggestion-looking-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  background: transparent;
  border: 1px solid #2f3033;
  color: #475569;
}

.suggestion-looking-icon--friends {
  color: #2563eb;
}

.suggestion-looking-icon--flirt {
  color: #ec4899;
}

.suggestion-looking-icon--love {
  color: #ef4444;
}

.suggestion-looking-icon--generic {
  color: #64748b;
}

.suggestion-looking-icon-svg {
  width: 0.82rem;
  height: 0.82rem;
  fill: currentColor;
  stroke: none;
}

html[data-theme="light"] .dashboard-page .suggestion-looking-icon {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #475569;
}

html[data-theme="light"] .dashboard-page .suggestion-looking-icon--friends {
  color: #1d4ed8;
}

html[data-theme="light"] .dashboard-page .suggestion-looking-icon--flirt {
  color: #be185d;
}

html[data-theme="light"] .dashboard-page .suggestion-looking-icon--love {
  color: #b91c1c;
}

html[data-theme="light"] .dashboard-page .suggestion-looking-icon--generic {
  color: #475569;
}

.index-logo-head {
  position: relative;
  z-index: 8;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 3.5rem;
  text-align: center;
  pointer-events: auto;
}

.index-logo-head a {
  display: inline-block;
  line-height: 0;
  color: inherit;
}

.index-logo-head:has(.index-landing-city) {
  margin-bottom: 2.4rem;
}

.index-landing-city {
  display: flex;
  justify-content: center;
  margin: 0.85rem 0 0;
  font-size: clamp(1.05rem, 3.4vw, 1.38rem);
  line-height: 1;
  pointer-events: none;
}

.index-landing-city-name {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.22;
  white-space: nowrap;
  background: linear-gradient(105deg, #4338ca 0%, #7c3aed 48%, #c026d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.index-logo-img {
  display: block;
  margin: 0 auto;
  max-width: min(380px, 58vw);
  height: auto;
  /* Weiße Bildfläche wirkt auf pastelligem Verlauf „transparent“ (dunkles Logo). Sauber: PNG mit Alphakanal exportieren. */
  mix-blend-mode: multiply;
}

.index-page {
  justify-content: flex-start;
  padding-top: clamp(2rem, 5vh, 3rem);
}

.index-page .step-container {
  margin-top: 0;
}

@media (max-width: 640px) {
  .index-page {
    padding-top: clamp(1.5rem, 4vh, 2.25rem);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .index-page .step-container {
    margin-top: 0;
  }
}

/* Dashboard-Header: gleiche logo.png wie Index */
.dashboard-page .dashboard-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.dashboard-page .dashboard-logo-img {
  display: block;
  width: 148px;
  height: auto;
  max-width: min(148px, 42vw);
  object-fit: contain;
}

html[data-theme="light"] .dashboard-page .dashboard-logo-img {
  mix-blend-mode: multiply;
}

.register-error-msg {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #7f1d1d;
  text-align: left;
  background: rgba(254, 226, 226, 0.82);
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 0.6rem;
}

.suggestion-actions .btn-chat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 650;
  border: 0;
  background: linear-gradient(135deg, #8b5cf6, #f592a4);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: none;
  transition: filter 0.16s ease;
}

.suggestion-actions .btn-chat-link:hover {
  filter: brightness(1.04);
  box-shadow: none;
}

html[data-theme="light"] .dashboard-page .suggestion-actions .btn-chat-link {
  border: 0;
  background: linear-gradient(135deg, #8b5cf6, #f592a4);
  color: #fff;
}

html[data-theme="light"] .dashboard-page .suggestion-actions .btn-chat-link:hover {
  background: linear-gradient(135deg, #8b5cf6, #f592a4);
  color: #fff;
  filter: brightness(1.04);
}

.places-ac-hint {
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  color: #422006;
  background: #fde68a;
  border: 1px solid #f59e0b;
  border-radius: 0.6rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.index-page .places-ac-hint {
  color: #1c1917;
  background: #fef08a;
  border-color: #eab308;
}

html[data-theme="light"] .dashboard-page .places-ac-hint {
  color: #78350f;
  background: #fef3c7;
  border-color: rgba(245, 158, 11, 0.65);
}

/* Nachfolgender Step-Button / Dashboard-Listen liegen sonst im Stapel darüber */
.step .input-wrap.visible {
  position: relative;
  z-index: 40;
}

.search-wrap {
  position: relative;
  z-index: 40;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.search-form .places-ac-wrap {
  flex: 1 1 auto;
}

.search-submit-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, transform 0.18s ease;
}

.search-submit-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.search-submit-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

html[data-theme="light"] .dashboard-page .search-submit-btn {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #2d2a36;
}

html[data-theme="light"] .dashboard-page .search-submit-btn:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.15);
}

.places-ac-wrap {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* Registrierung: Autocomplete-Liste darf nie unter Footer-Links liegen */
.index-page .step-container {
  z-index: 4;
}

.index-page #step-2 .input-wrap {
  position: relative;
  z-index: 5;
}

.index-page #step-2 .places-ac-wrap {
  z-index: 6;
  text-align: left;
}

.places-ac-wrap input {
  position: relative;
  z-index: 2;
}

.places-ac-inline {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
}

.places-ac-inline-prefix {
  color: transparent;
  user-select: none;
}

.places-ac-inline-suffix {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .dashboard-page .places-ac-inline-suffix {
  color: rgba(45, 42, 54, 0.45);
}

.places-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0.25rem 0 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
  background: #fff;
  color: #1a1a1e;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  text-align: left;
}

#step-2 .places-ac-list {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.places-ac-item {
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #1a1a1e;
  text-align: left;
}

.places-ac-item:hover,
.places-ac-item:focus {
  background: rgba(99, 102, 241, 0.14);
  color: #111;
}


.search-pagination {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.search-page-btn {
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0.55rem;
}

.search-page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.search-page-btn.is-active {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.22);
}

.search-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Header: Badges (Benachrichtigungen, Freunde, Nachrichten) */
.dashboard-page .header-icon-slot {
  position: relative;
}

.dashboard-page .header-badge {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(22, 22, 30, 0.96);
  pointer-events: none;
}

html[data-theme="light"] .dashboard-page .header-badge {
  box-shadow: 0 0 0 2px rgba(248, 249, 252, 0.96);
}

.dashboard-page .notif-item-unread {
  border-left: 3px solid var(--accent, #6366f1);
  padding-left: calc(0.75rem - 3px);
}

.dashboard-page .header-panel-item.notif-item {
  cursor: default;
}

.dashboard-page a.header-panel-item.notif-item {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.dashboard-page .notif-item-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.dashboard-page .notif-item-avatar {
  flex-shrink: 0;
  width: 2.5rem;
}

.dashboard-page .notif-avatar-link {
  display: block;
  text-decoration: none;
  border-radius: 0.75rem;
  overflow: hidden;
  line-height: 0;
}

.dashboard-page .notif-avatar-link:hover .notif-avatar-img,
.dashboard-page .notif-avatar-link:hover .notif-avatar-placeholder {
  opacity: 0.92;
}

.dashboard-page .notif-avatar-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
}

.dashboard-page .notif-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

html[data-theme="light"] .dashboard-page .notif-avatar-placeholder {
  background: rgba(0, 0, 0, 0.06);
}

.dashboard-page .notif-avatar-placeholder.avatar-placeholder--female,
.dashboard-page.chat-page .chat-msg-avatar-placeholder.avatar-placeholder--female,
.dashboard-page .app-list-panel .inbox-row-avatar.avatar-placeholder--female,
.dashboard-timeline-avatar-box.avatar-placeholder--female,
.sf-event-attendee-av--ph.avatar-placeholder--female,
.settings-block-avatar-ph.avatar-placeholder--female {
  background: #f472b6;
  color: #fff;
  border-color: transparent;
}

.dashboard-page .notif-avatar-placeholder.avatar-placeholder--male,
.dashboard-page.chat-page .chat-msg-avatar-placeholder.avatar-placeholder--male,
.dashboard-page .app-list-panel .inbox-row-avatar.avatar-placeholder--male,
.dashboard-timeline-avatar-box.avatar-placeholder--male,
.sf-event-attendee-av--ph.avatar-placeholder--male,
.settings-block-avatar-ph.avatar-placeholder--male {
  background: #60a5fa;
  color: #fff;
  border-color: transparent;
}

.dashboard-page .notif-avatar-placeholder.avatar-placeholder--neutral,
.dashboard-page.chat-page .chat-msg-avatar-placeholder.avatar-placeholder--neutral,
.dashboard-page .app-list-panel .inbox-row-avatar.avatar-placeholder--neutral,
.dashboard-timeline-avatar-box.avatar-placeholder--neutral,
.sf-event-attendee-av--ph.avatar-placeholder--neutral,
.settings-block-avatar-ph.avatar-placeholder--neutral {
  background: #94a3b8;
  color: #fff;
  border-color: transparent;
}

html[data-theme="light"] .dashboard-page .notif-avatar-placeholder.avatar-placeholder--female,
html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-avatar.avatar-placeholder--female,
html[data-theme="light"] .dashboard-page.chat-page .chat-msg-avatar-placeholder.avatar-placeholder--female {
  background: #f472b6;
  color: #fff;
}

html[data-theme="light"] .dashboard-page .notif-avatar-placeholder.avatar-placeholder--male,
html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-avatar.avatar-placeholder--male,
html[data-theme="light"] .dashboard-page.chat-page .chat-msg-avatar-placeholder.avatar-placeholder--male {
  background: #60a5fa;
  color: #fff;
}

html[data-theme="light"] .dashboard-page .notif-avatar-placeholder.avatar-placeholder--neutral,
html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-avatar.avatar-placeholder--neutral,
html[data-theme="light"] .dashboard-page.chat-page .chat-msg-avatar-placeholder.avatar-placeholder--neutral {
  background: #94a3b8;
  color: #fff;
}

.dashboard-timeline-avatar-box.avatar-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius);
}

.dashboard-page.chat-page .chat-msg-avatar-placeholder.avatar-placeholder {
  width: 100%;
  height: 100%;
}

.dashboard-page .app-list-panel .inbox-row-avatar.avatar-placeholder {
  width: 2.5rem;
  height: 2.5rem;
}

.sf-event-attendee-av--ph.avatar-placeholder {
  width: 2.4rem;
  height: 2.4rem;
}

.dashboard-page .avatar-placeholder {
  border-radius: var(--radius);
}

.dashboard-page .notif-avatar-letter {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.dashboard-page .notif-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.dashboard-page .notif-avatar-fallback-svg {
  display: block;
  flex-shrink: 0;
}

.dashboard-page .notif-avatar-fallback--xp {
  color: #facc15;
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.42);
}

.dashboard-page .notif-item .notif-item-text {
  flex: 1 1 8rem;
  min-width: 0;
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}

.dashboard-page .notif-item .notif-item-time {
  display: block;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

html[data-theme="light"] .dashboard-page .notif-item .notif-item-time {
  border-top-color: rgba(0, 0, 0, 0.09);
}

.dashboard-page .notif-friend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.dashboard-page .notif-friend-actions .primary {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  background: var(--accent, #6366f1);
  border: 1px solid var(--accent, #6366f1);
  color: #fff;
  flex-shrink: 0;
}

.dashboard-page .notif-friend-actions .primary:hover {
  opacity: 0.95;
}

.dashboard-page .notif-friend-decline {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.dashboard-page .notif-friend-decline:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.dashboard-page .header-panel-subtitle {
  padding: 0.35rem 0.85rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dashboard-page .header-panel-footer-link {
  display: block;
  margin: 0.35rem 0.85rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent, #6366f1);
  text-decoration: none;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}

.dashboard-page .header-panel-footer-link:hover {
  text-decoration: underline;
}

.friends-page-back {
  margin: 0 0 0.5rem;
}

.freunde-back-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent, #6366f1);
  text-decoration: none;
}

.freunde-back-link:hover {
  text-decoration: underline;
}

/* Freunde-Seite: Nachricht + Puschel kompakt wie die übrigen Listen-Buttons */
.suggestion-card .friends-fab-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  gap: 0.35rem;
  box-sizing: border-box;
}

.suggestion-card .friends-fab-stack > .profil-foreign-fab {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
}

.suggestion-card .friends-fab-stack > .profil-foreign-fab:not(.profil-friend-sent-wrap) {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.2rem;
  min-height: 2.2rem;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  padding: 0 0.75rem;
  margin: 0;
  font: inherit;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
  line-height: 1;
  transition: box-shadow 0.18s ease, filter 0.18s ease;
}

.suggestion-card .friends-fab-stack .profil-foreign-fab-circle {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  max-width: 1rem;
  min-height: 1rem;
  max-height: 1rem;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  box-sizing: border-box;
  background: transparent;
}

.suggestion-card .friends-fab-stack .profil-foreign-fab-sep {
  display: none;
}

.suggestion-card .friends-fab-stack .profil-foreign-fab-circle svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.suggestion-card .friends-fab-stack .profil-foreign-fab-label {
  flex: 0 1 auto;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  color: inherit;
  pointer-events: none;
}

.suggestion-card .friends-fab-stack > .profil-foreign-fab.profil-foreign-fab--message,
.suggestion-card .friends-fab-stack > .profil-foreign-fab.profil-foreign-fab--puschel.btn-puschel {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.suggestion-card .friends-fab-stack .profil-foreign-fab--message {
  background: linear-gradient(135deg, #8b5cf6, #f592a4);
  box-shadow: none;
}

.suggestion-card .friends-fab-stack .profil-foreign-fab--message:hover,
.suggestion-card .friends-fab-stack .profil-foreign-fab--message:focus-visible {
  box-shadow: none;
  filter: brightness(1.04);
}

.suggestion-card .friends-fab-stack .profil-foreign-fab.profil-foreign-fab--puschel.btn-puschel {
  min-height: 2.2rem;
  border: 0;
  padding: 0 0.75rem;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 650;
  background: linear-gradient(135deg, rgb(255 57 0), rgb(219 0 0 / 45%));
  box-shadow: none;
  color: #fff;
}

.suggestion-card .friends-fab-stack .profil-foreign-fab.profil-foreign-fab--puschel.btn-puschel:hover,
.suggestion-card .friends-fab-stack .profil-foreign-fab.profil-foreign-fab--puschel.btn-puschel:focus-visible,
html[data-theme="light"] .suggestion-card .friends-fab-stack .profil-foreign-fab.profil-foreign-fab--puschel.btn-puschel:hover,
html[data-theme="light"] .suggestion-card .friends-fab-stack .profil-foreign-fab.profil-foreign-fab--puschel.btn-puschel:focus-visible {
  box-shadow: none;
  filter: brightness(1.04);
  transform: none;
}

.suggestion-card .friends-fab-stack .profil-foreign-fab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

html[data-theme="light"] .suggestion-card .friends-fab-stack .profil-foreign-fab:focus-visible {
  outline-color: rgba(99, 102, 241, 0.65);
}

html[data-theme="light"] .suggestion-card .friends-fab-stack .profil-foreign-fab--message .profil-foreign-fab-label,
html[data-theme="light"] .suggestion-card .friends-fab-stack .profil-foreign-fab.profil-foreign-fab--puschel.btn-puschel .profil-foreign-fab-label {
  color: #fff;
}

@keyframes profil-puschel-check-pop {
  0% { transform: scale(0.35) rotate(-50deg); opacity: 0.2; }
  70% { transform: scale(1.1) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.suggestion-card .profil-foreign-fab--puschel .profil-foreign-fab-circle.profil-puschel-fab-circle--icon-in svg {
  display: block;
  animation: profil-puschel-check-pop 0.42s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

.suggestion-card .suggestion-actions .friends-fab-stack .btn-puschel.profil-foreign-fab--puschel,
.suggestion-card .suggestion-actions .friends-fab-stack .profil-foreign-fab--message {
  width: auto;
  max-width: none;
  justify-content: center;
  text-align: center;
  padding: 0 0.65rem;
}

/* Freunde + Nachrichten: Liste in gemeinsamem Panel */
.dashboard-page .app-list-panel {
  border-radius: var(--radius);
  margin-top: 0.25rem;
}

html[data-theme="light"] .dashboard-page .app-list-panel {
  border-color: rgba(0, 0, 0, 0.1);
}

.dashboard-page .app-list-panel > .section-label:first-child {
  margin-top: 0;
}

.dashboard-page .app-list-panel .suggestions-list:last-child li:last-child .suggestion-card {
  margin-bottom: 0;
}

/* messages.php – Zeilen in app-list-panel */
.dashboard-page .app-list-panel .inbox-list {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.4rem 0 0;
}

.dashboard-page .app-list-panel .inbox-list li:last-child .inbox-row-card {
  margin-bottom: 0;
}

.dashboard-page .app-list-panel .inbox-row-card {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 2.15rem 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.dashboard-page .app-list-panel .inbox-row-body {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-page .app-list-panel .inbox-avatar-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex-shrink: 0;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}

.dashboard-page .app-list-panel .inbox-avatar-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.dashboard-page .app-list-panel .inbox-row-text-col {
  flex: 1 1 8rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
  overflow-wrap: anywhere;
}

.dashboard-page .app-list-panel .inbox-row-meta {
  flex: 1 1 7rem;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
  overflow-wrap: anywhere;
}

html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

.dashboard-page .app-list-panel .inbox-row-card:not(.inbox-row-card--unread):not(.sf-user-highlight) {
  background: rgba(255, 255, 255, 0.07);
}

.dashboard-page .app-list-panel .inbox-row-card.inbox-row-card--unread:not(.sf-user-highlight) {
  background: rgba(255, 255, 255, 0.11);
}

html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-card:not(.inbox-row-card--unread):not(.sf-user-highlight) {
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-card.inbox-row-card--unread:not(.sf-user-highlight) {
  background: #fff;
}

.dashboard-page .app-list-panel .inbox-row-card.sf-user-highlight:not(.inbox-row-card--unread) > .sf-user-highlight-inner {
  background-color: #1c1d28;
  background-image: none;
}

html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-card.sf-user-highlight > .sf-user-highlight-inner,
html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-card.sf-user-highlight:hover > .sf-user-highlight-inner,
html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-card.sf-user-highlight:not(.inbox-row-card--unread) > .sf-user-highlight-inner {
  background-color: #fff;
  background-image: none;
}

.dashboard-page .app-list-panel .inbox-unread-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  transform: translate(42%, -42%);
  box-sizing: border-box;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  border-radius: 999px;
  background: #6366f1;
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  pointer-events: none;
}

.dashboard-page .app-list-panel .inbox-row-card.sf-user-highlight .inbox-unread-badge {
  transform: none;
}

.dashboard-page .app-list-panel .inbox-row-time {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-time {
  color: #5c5868;
}

.dashboard-page .app-list-panel .inbox-row-profile {
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-profile {
  color: #2d2a36;
}

.dashboard-page .app-list-panel .inbox-row-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
}

html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-avatar {
  background: rgba(99, 102, 241, 0.2);
  color: #3730a3;
}

.dashboard-page .app-list-panel .inbox-row-avatar.inbox-row-avatar--img {
  padding: 0;
  object-fit: cover;
  background: transparent;
  color: transparent;
}

html[data-theme="light"] .dashboard-page .app-list-panel .inbox-row-avatar.inbox-row-avatar--img {
  background: transparent;
  color: transparent;
}

.dashboard-page .app-list-panel .inbox-empty-hint {
  color: var(--text-muted);
}

html[data-theme="light"] .dashboard-page .app-list-panel .inbox-empty-hint {
  color: #4a4656;
}

/* chat.php – Dark/Light wie dashboard-page; Höhe = sichtbarer Screen, kein Seiten-Scroll */
html:has(.dashboard-page.chat-page),
html:has(.dashboard-page.chat-page) body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.dashboard-page.chat-page {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--sf-chat-vt, 0px);
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: var(--sf-chat-vh, 100dvh);
  max-height: 100vh;
  max-height: 100dvh;
  max-height: var(--sf-chat-vh, 100dvh);
  min-height: 0;
  overflow: hidden;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.dashboard-page.chat-page .dashboard-header,
.dashboard-page.chat-page .chat-head,
.dashboard-page.chat-page .chat-compose {
  flex-shrink: 0;
}

.dashboard-page.chat-page .dashboard-footer {
  display: none;
}

.dashboard-page.chat-page .chat-head {
  width: min(36rem, calc(100vw - 2rem));
  margin: 0.5rem auto 0;
  padding: 0.4rem 0.2rem 0.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
}

.dashboard-page.chat-page .chat-head a,
.dashboard-page.chat-page .chat-head .chat-head-title {
  color: var(--text);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-head a,
html[data-theme="light"] .dashboard-page.chat-page .chat-head .chat-head-title {
  color: #2d2a36;
}

.dashboard-page.chat-page .chat-head .chat-head-spacer {
  justify-self: start;
  width: 2.2rem;
  height: 2.2rem;
}

.dashboard-page.chat-page .chat-head .chat-head-title {
  margin: 0;
  justify-self: center;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-page.chat-page .chat-head-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.dashboard-page.chat-page .chat-head-title-link:hover {
  border-bottom-color: currentColor;
}

.dashboard-page.chat-page .chat-head .chat-head-close {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.dashboard-page.chat-page .chat-head .chat-head-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-head .chat-head-close {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 520px) {
  .dashboard-page.chat-page .chat-head .chat-head-title {
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.25;
  }
}

.dashboard-page.chat-page .chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.5rem 1rem;
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  backdrop-filter: blur(6px);
}

.dashboard-page.chat-page .chat-messages::-webkit-scrollbar {
  width: 10px;
}

.dashboard-page.chat-page .chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.dashboard-page.chat-page .chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.65), rgba(124, 58, 237, 0.65));
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

.dashboard-page.chat-page .chat-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.65) rgba(255, 255, 255, 0.05);
}

.dashboard-page.chat-page .chat-msg {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  max-width: 100%;
}

/* Eigene: Bubble links im Paar, Avatar rechts daneben; Zeile am rechten Rand */
.dashboard-page.chat-page .chat-msg.me {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

/* Partner: Avatar links, Bubble rechts daneben; Zeile am linken Rand */
.dashboard-page.chat-page .chat-msg.them {
  flex-direction: row;
  justify-content: flex-start;
}

.dashboard-page.chat-page .chat-msg-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: min(85%, calc(100% - 3rem));
}

.dashboard-page.chat-page .chat-msg.me .chat-msg-body {
  align-items: flex-end;
}

.dashboard-page.chat-page .chat-msg.them .chat-msg-body {
  align-items: flex-start;
}

.dashboard-page.chat-page .chat-msg-avatar {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 0;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
}

.dashboard-page.chat-page a.chat-msg-avatar:hover {
  transform: none;
}

.dashboard-page.chat-page .chat-msg-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-page.chat-page .chat-msg-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-msg-avatar {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

html[data-theme="light"] .dashboard-page.chat-page .chat-msg-avatar-placeholder {
  color: #fff;
}

.dashboard-page.chat-page .chat-bubble {
  max-width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.dashboard-page.chat-page .chat-bubble.me {
  background: var(--accent-soft);
  margin-left: 0;
  text-align: right;
  color: var(--text);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-bubble.me {
  background: rgba(99, 102, 241, 0.25);
  color: #2d2a36;
}

.dashboard-page.chat-page .chat-bubble.them {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-bubble.them {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
  color: #2d2a36;
}

.dashboard-page.chat-page .chat-msg-time {
  display: block;
  font-size: 0.68rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.88;
  margin-top: 0.18rem;
  max-width: 100%;
  width: 100%;
  letter-spacing: 0.01em;
}

.dashboard-page.chat-page .chat-msg.me .chat-msg-time {
  text-align: right;
}

.dashboard-page.chat-page .chat-msg.them .chat-msg-time {
  text-align: left;
}

html[data-theme="light"] .dashboard-page.chat-page .chat-msg-time {
  color: #6b6578;
  opacity: 1;
}

html[data-theme="light"] .dashboard-page.chat-page .chat-messages {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.7), rgba(124, 58, 237, 0.7));
}

html[data-theme="light"] .dashboard-page.chat-page .chat-messages {
  scrollbar-color: rgba(99, 102, 241, 0.7) rgba(0, 0, 0, 0.06);
}

.dashboard-page.chat-page .chat-compose {
  position: relative;
  margin: 0.5rem auto 0.45rem;
  padding: 0.85rem 1rem 0.75rem;
  max-width: 36rem;
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-radius: 0.9rem;
}

html[data-theme="light"] .dashboard-page.chat-page .chat-compose {
  background: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(0, 0, 0, 0.08);
}

.dashboard-page.chat-page .chat-compose form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dashboard-page.chat-page .chat-emoji-wrap {
  position: relative;
  flex-shrink: 0;
}

.dashboard-page.chat-page .chat-emoji-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  line-height: 1;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

.dashboard-page.chat-page .chat-emoji-popup {
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 0;
  width: min(19.5rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.3rem;
  z-index: 20;
  box-sizing: border-box;
}

.dashboard-page.chat-page .chat-emoji-popup[hidden] {
  display: none !important;
}

.dashboard-page.chat-page .chat-emoji-popup::-webkit-scrollbar {
  width: 8px;
}

.dashboard-page.chat-page .chat-emoji-popup::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.7);
  border-radius: 999px;
}

.dashboard-page.chat-page .chat-emoji-item {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.35rem 0;
  border-radius: 0.45rem;
  cursor: pointer;
}

.dashboard-page.chat-page .chat-emoji-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-page.chat-page .chat-compose input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 16px;
  background: var(--surface);
  color: var(--text);
}

.dashboard-page.chat-page .chat-compose input::placeholder {
  color: var(--text-muted);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-compose input {
  background: #fff;
  color: #2d2a36;
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-emoji-toggle {
  background: #fff;
  color: #2d2a36;
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-emoji-popup {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-emoji-item {
  color: #2d2a36;
}

html[data-theme="light"] .dashboard-page.chat-page .chat-emoji-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .dashboard-page.chat-page .chat-compose input::placeholder {
  color: #5c5868;
}

.dashboard-page.chat-page .chat-compose button {
  padding: 2px;
  background: transparent;
  color: var(--text);
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.dashboard-page.chat-page .chat-compose button:hover {
  opacity: 0.95;
}

@media (max-width: 640px) {
  .dashboard-page.chat-page .dashboard-header {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
  .dashboard-page.chat-page .chat-head {
    width: calc(100% - 1.15rem);
    margin-top: 0.2rem;
    padding-top: 0.25rem;
    padding-bottom: 0.4rem;
  }
  .dashboard-page.chat-page .chat-messages {
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    width: calc(100% - 1.15rem);
  }
  .dashboard-page.chat-page .chat-compose {
    margin-top: 0.4rem;
    margin-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
    padding: 0.65rem 0.75rem 0.65rem;
    border-radius: 0.75rem;
    width: calc(100% - 1.15rem);
  }
}

.dashboard-page .btn-remove-friend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  min-height: 2.2rem;
  height: 2.2rem;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 650;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dashboard-page .btn-remove-friend:hover {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(239, 68, 68, 0.18);
}

html[data-theme="light"] .dashboard-page .btn-remove-friend {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(254, 226, 226, 0.6);
}

html[data-theme="light"] .dashboard-page .btn-remove-friend:hover {
  border-color: rgba(185, 28, 28, 0.55);
  background: rgba(254, 202, 202, 0.85);
}

/* Dashboard-Listings: Grid statt Flex-Row – verhindert, dass die Avatar-Spalte die Textspalte auf 0 drückt (Freunde/Suche) */
.dashboard-page .suggestion-card:not(.sf-user-highlight) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

/* Listing: Avatar-Spalte; Krone liegt per absolute über der Ecke (wie Profil) */
.dashboard-page .suggestion-avatar-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex-shrink: 0;
  align-self: center;
  width: auto;
  max-width: 100%;
}

.dashboard-page .suggestion-avatar-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.dashboard-page .suggestion-avatar-link .avatar-placeholder {
  margin-top: 0.1rem;
  border-radius: var(--radius);
}

.dashboard-page .suggestion-avatar-link .suggestion-avatar {
  margin-top: 0.1rem;
  border-radius: var(--radius);
}

/* Supporter-Krone: Basis nur für Popover/Buttons; Position bei --on-avatar / --profil-avatar */
.sf-supporter-crown-wrap {
  position: relative;
  width: auto;
  max-width: 100%;
}

.sf-supporter-crown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #d97706;
  border-radius: 0.25rem;
  line-height: 0;
}

.sf-supporter-crown-btn:hover,
.sf-supporter-crown-btn:focus-visible {
  color: #f59e0b;
  outline: none;
}

.sf-supporter-crown-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.45);
}

.sf-supporter-crown-svg {
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(180, 83, 9, 0.35));
}

/* Direkt unter der Krone (absolute zum Wrap). Kein fixed: sonst falsch, wenn ein Vorfahr transform hat. */
.sf-supporter-crown-pop {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 0.35rem;
  z-index: 10050;
  width: min(17rem, calc(100vw - 2rem));
  max-width: calc(100vw - 1rem);
  padding: 0.75rem 0.85rem;
  background-color: var(--bg);
  background-image: linear-gradient(var(--surface), var(--surface));
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.sf-supporter-crown-pop.sf-supporter-crown-pop--above {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 0.35rem;
  transform: translateX(-50%);
}

/* Beim Öffnen per JS an body gehängt: fixed am Viewport, nicht von overflow:hidden der Karte abgeschnitten.
   Sichtbarkeit hier explizit: außerhalb von .sf-supporter-crown-wrap greift .is-open .sf-supporter-crown-pop nicht mehr. */
.sf-supporter-crown-pop.sf-supporter-crown-pop--portal {
  position: fixed;
  margin: 0;
  transform: none;
  z-index: 10050;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sf-supporter-crown-pop.sf-supporter-crown-pop--portal.sf-supporter-crown-pop--above {
  bottom: auto;
  margin-top: 0;
  margin-bottom: 0;
}

html[data-theme="light"] .sf-supporter-crown-pop {
  background-color: #fff;
  background-image: none;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.sf-supporter-crown-text {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

html[data-theme="light"] .sf-supporter-crown-text {
  color: #5c5868;
}

.sf-supporter-crown-pop .sf-supporter-crown-cta {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.45rem 0.65rem;
}

.sf-supporter-crown-wrap.is-open .sf-supporter-crown-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Krone auf Avatar: Listings + Profil */
.dashboard-page .sf-supporter-crown-wrap--on-avatar,
.profil-page .sf-supporter-crown-wrap--profil-avatar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  display: block;
  width: auto;
  max-width: none;
  transform: translate(22%, -45%);
  pointer-events: auto;
}

.dashboard-page .sf-supporter-crown-wrap--on-avatar .sf-supporter-crown-btn,
.profil-page .sf-supporter-crown-wrap--profil-avatar .sf-supporter-crown-btn {
  padding: 0.1rem;
  border-radius: 30px;
  background: #000;
}

html[data-theme="light"] .dashboard-page .sf-supporter-crown-wrap--on-avatar .sf-supporter-crown-btn,
html[data-theme="light"] .profil-page .sf-supporter-crown-wrap--profil-avatar .sf-supporter-crown-btn {
  background: #fff;
}

.dashboard-page .sf-supporter-crown-wrap--on-avatar .sf-supporter-crown-svg {
  width: 23px;
  height: 23px;
  filter: drop-shadow(0 2px 2px rgba(120, 53, 15, 0.45));
}

html[data-theme="light"] .dashboard-page .sf-supporter-crown-wrap--on-avatar .sf-supporter-crown-svg {
  filter: drop-shadow(0 2px 3px rgba(146, 64, 14, 0.38));
}

.profil-page .sf-supporter-crown-wrap--profil-avatar .sf-supporter-crown-svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 2px 3px rgba(120, 53, 15, 0.5));
}

html[data-theme="light"] .profil-page .sf-supporter-crown-wrap--profil-avatar .sf-supporter-crown-svg {
  filter: drop-shadow(0 2px 4px rgba(146, 64, 14, 0.4));
}

/* Profil-Link auf Dashboard-Karten (nur Textblock; Breite kommt von Grid-Spalte minmax(0,1fr)) */
.dashboard-page .suggestion-profile-hit {
  display: block;
  flex: 1 1 9rem;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}

.dashboard-page .suggestion-card .suggestion-actions {
  margin-left: auto;
}

.dashboard-page .suggestion-profile-hit:hover .suggestion-name {
  color: var(--accent, #6366f1);
}

html[data-theme="light"] .dashboard-page .suggestion-profile-hit:hover .suggestion-name {
  color: #4f46e5;
}

.dashboard-page .notif-profile-link {
  font-weight: 600;
  color: var(--accent, #6366f1);
  text-decoration: none;
}

.dashboard-page a.header-panel-item.notif-item:hover .notif-profile-link {
  text-decoration: underline;
}

html[data-theme="light"] .dashboard-page .notif-profile-link {
  color: #4f46e5;
}

.dashboard-page .notif-freunde-link {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.dashboard-page .notif-freunde-link:hover {
  color: var(--accent, #6366f1);
  text-decoration: underline;
}

html[data-theme="light"] .dashboard-page .notif-freunde-link {
  color: #2d2a36;
}

html[data-theme="light"] .dashboard-page .notif-freunde-link:hover {
  color: #4f46e5;
}

/* Fremdes Profil (profil.php?id=) */
.profil-page.profil-other {
  padding: 2rem 1.5rem var(--sf-content-bottom-pad);
}

.profil-page.profil-other .profil-box {
  max-width: 28rem;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

html[data-theme="light"] .profil-page.profil-other .profil-box {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.1);
}

.profil-page.profil-other .profil-view-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profil-page.profil-other .profil-view-head .avatar-placeholder {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.35rem;
}

.profil-page.profil-other .profil-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.profil-page.profil-other .profil-view-actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 0.65rem;
  font-weight: 500;
  text-decoration: none;
}

.profil-page.profil-other .profil-view-actions a.btn-chat {
  background: #6366f1;
  color: #fff;
}

.profil-page.profil-other .profil-view-actions a.btn-secondary-profil {
  border: 1px solid var(--border);
  color: var(--text);
}

.profil-page.profil-other .profil-view-actions a.profil-action-secondary {
  font-weight: 700;
}

html[data-theme="light"] .profil-page.profil-other .profil-view-actions a.btn-secondary-profil {
  border-color: rgba(0, 0, 0, 0.12);
  color: #2d2a36;
}

/* Profil Fremdprofil: FAB-Zeile + Freund-Status — Detail-Styles in profil.php (layoutInlineStyle) */
.profil-page .profil-foreign-actions {
  align-items: flex-end;
}

.profil-page .profil-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  height: 2.2rem;
  padding: 0 0.85rem;
  border-radius: 0.65rem;
  font-weight: 650;
  font-size: 0.8rem;
  box-sizing: border-box;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.profil-page .profil-foreign-actions > .profil-action-pill,
.profil-page .profil-foreign-actions > .profil-message-btn.profil-action-pill {
  justify-content: flex-start;
  text-align: left;
}

.profil-page .profil-action-pill.profil-message-btn {
  background: linear-gradient(135deg, #ff1f48, #8b5cf6);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Eigenes Profil: Bearbeiten in der Kopfzeile — nicht volle Pill-Breite wie in der Aktions-Spalte */
.profil-page .profil-header-action > .profil-edit-toggle.profil-action-pill {
  width: auto;
  max-width: 100%;
}

.profil-page .profil-action-pill.btn-puschel {
  min-height: 2.2rem;
  height: 2.2rem;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 650;
  font-family: inherit;
  line-height: 1.1;
  letter-spacing: 0;
  background: linear-gradient(135deg, rgb(255 57 0), rgb(219 0 0 / 45%));
  color: #ffffff;
  border: 0;
  box-shadow: none;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="light"] .profil-page .profil-action-pill.btn-puschel {
  background: linear-gradient(135deg, rgb(255 57 0), rgb(185 18 18));
  color: #fff;
}

.profil-page .profil-block-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  background: transparent;
  color: #ef4444;
  border: none;
  box-shadow: none;
}

.profil-page .profil-block-btn:hover {
  color: #dc2626;
}

.profil-page .profil-block-btn:focus-visible {
  outline: 2px solid rgba(239, 68, 68, 0.55);
  outline-offset: 2px;
}

.profil-page .profil-block-btn__icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  color: inherit;
}

.profil-page .profil-block-btn__icon svg {
  display: block;
}

.profil-page .profil-header-friend-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.15rem;
}

.profil-page .profil-header-friend-actions .profil-action-pill--muted {
  background: var(--surface);
  color: var(--text-muted);
  border-color: var(--border);
  font-weight: 500;
  cursor: default;
}

.profil-page .profil-header-friend-actions .suggestion-friend-badge.profil-action-pill {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.35));
  color: #fff;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.profil-page .profil-header-friend-actions .primary.profil-action-pill {
  border: none;
}

/* Benachrichtigungen: Puschel-Aktionen — Farben wie Profil-FABs (Nachricht / Puschel / Freundschaft) */
.dashboard-page .notif-puschel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
  align-items: center;
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  min-height: 2.2rem;
  padding: 0;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  color: #fff;
  box-shadow: none;
  transform: none;
  transition: filter 0.16s ease;
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.notif-puschel-back {
  background: linear-gradient(135deg, rgb(255 57 0), rgb(219 0 0 / 45%));
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.notif-puschel-chat {
  background: linear-gradient(135deg, #f592a4, #8b5cf6);
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.notif-puschel-mute {
  background: linear-gradient(135deg, #52525b, #3f3f46);
  color: #fff;
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn:hover {
  transform: none;
  filter: brightness(1.04);
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.notif-puschel-back:hover,
.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.notif-puschel-back:focus-visible {
  filter: brightness(1.03);
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.notif-puschel-chat:hover,
.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.notif-puschel-chat:focus-visible {
  filter: brightness(1.03);
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.notif-puschel-mute:hover,
.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.notif-puschel-mute:focus-visible {
  filter: brightness(1.06);
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

html[data-theme="light"] .dashboard-page .notif-puschel-actions .notif-puschel-icon-btn:focus-visible {
  outline-color: rgba(99, 102, 241, 0.55);
}

/* Emoji/Icon optisch mittig (Baseline sitzt sonst zu hoch) */
.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn > span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  font-size: 1.85rem;
  transform: translateY(0.06rem);
}

.dashboard-page .notif-puschel-actions .notif-puschel-back-svg,
.dashboard-page .notif-puschel-actions .notif-puschel-chat-svg,
.dashboard-page .notif-puschel-actions .notif-puschel-mute-svg {
  display: block;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  transform: none;
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.notif-puschel-back {
  line-height: 0;
}

/* Mailbox: Konversation ausblenden */
.dashboard-page .inbox-delete-chat-btn {
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
}

.dashboard-page .inbox-delete-chat-btn--icon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  padding: 0.12rem;
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.32);
  background: rgba(185, 28, 28, 0.06);
  border-radius: 0 var(--radius) 0 0.55rem;
}

.dashboard-page .app-list-panel .inbox-row-card.sf-user-highlight .inbox-delete-chat-btn--icon {
  border-radius: 0 calc(var(--radius) - 5px) 0 0.55rem;
}

.dashboard-page .inbox-delete-chat-btn--icon .inbox-delete-chat-svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

.dashboard-page .inbox-delete-chat-btn:hover {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.4);
}

.dashboard-page .inbox-delete-chat-btn--icon:hover {
  background: rgba(185, 28, 28, 0.12);
  color: #991b1b;
}

/* Freunde: Suche + Entfreunden-Modal */
.friends-filter-wrap {
  margin: 0.75rem 0 1rem;
  max-width: 22rem;
}

.friends-filter-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.friends-filter-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.sf-unfriend-modal {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sf-unfriend-modal[hidden] {
  display: none !important;
}

.sf-unfriend-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.sf-unfriend-card {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  width: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  /* Nicht var(--surface): das ist glassy/halbtransparent → Bestätigungsdialog unleserlich */
  background: #1e1e28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.sf-unfriend-card--prompt {
  max-width: 26rem;
}

html[data-theme="light"] .sf-unfriend-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.sf-unfriend-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.sf-unfriend-text {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.sf-unfriend-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sf-prompt-label {
  display: block;
  margin: 0 0 0.35rem;
}

.sf-prompt-label-text {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 650;
}

.sf-prompt-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 6.2rem;
  resize: vertical;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}

.sf-prompt-textarea:focus {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 1px;
}

.sf-prompt-count {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

.sf-modal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html[data-theme="light"] .sf-prompt-textarea {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #2d2a36;
}

.search-alt-label {
  margin: 0.5rem 0 0.25rem;
}

/* Toasts (dashboard.js sfToast) */
.sf-toast-root {
  position: fixed;
  z-index: 15000;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(22rem, calc(100vw - 2rem));
}

.sf-toast {
  pointer-events: none;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  background: rgba(30, 30, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.sf-toast--show {
  opacity: 1;
  transform: translateY(0);
}

.sf-toast--error {
  background: rgba(120, 30, 30, 0.95);
  border-color: rgba(255, 200, 200, 0.25);
}

.sf-toast--info {
  background: rgba(30, 40, 55, 0.94);
}

html[data-theme="light"] .sf-toast {
  color: #1f1f27;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .sf-toast--error {
  color: #fff;
  background: rgba(185, 28, 28, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Modale Buttons (sfConfirm, Entfreunden) */
.sf-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.sf-modal-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sf-modal-btn--muted {
  opacity: 0.95;
}

.sf-modal-btn--danger {
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}

.sf-modal-btn--danger:hover {
  filter: brightness(1.06);
}

html[data-theme="light"] .sf-modal-btn {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #2d2a36;
}

html[data-theme="light"] .sf-modal-btn:hover {
  background: #f4f4f7;
}

/* Profil: Highlight wie Listing (Gold-Rand clippt ::after); extra padding-top für Krone über dem Avatar */
.profil-page .profil-box.sf-user-highlight {
  padding: 5px;
  background: transparent;
  border: 1px solid transparent;
  overflow: hidden;
}

/* Inner = nur Ring-Maske; Shell = opake Fläche wie suggestion-card (var(--bg) unter halbtransparentem --surface) */
.profil-page .profil-box.sf-user-highlight > .sf-user-highlight-inner.profil-highlight-inner {
  position: relative;
  z-index: 1;
  border-radius: calc(1rem - 5px);
  padding: 0;
  background: transparent;
  border: none;
}

.profil-page .profil-box.sf-user-highlight > .sf-user-highlight-inner.profil-highlight-inner > .profil-highlight-shell {
  position: relative;
  z-index: 1;
  border-radius: inherit;
  padding: calc(1.5rem - 5px);
  padding-top: calc(1.5rem - 5px + 0.95rem);
  /* wie .suggestion-card.sf-user-highlight > .sf-user-highlight-inner: opake Basis, sonst scheint ::after durch */
  background-color: var(--bg);
  background-image: linear-gradient(var(--surface), var(--surface));
  border: none;
}

.profil-page.profil-other .profil-view-actions--split {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.profil-page.profil-other .profil-view-actions--split .profil-action-pill.profil-block-btn {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}

/* Eigenes Profil: letzte Besucher */
.profil-page .profil-visitors-card {
  margin-top: 0.5rem;
}

.profil-page .profil-visitors-card__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.profil-page .profil-visitors-strip-wrap {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
  min-width: 0;
}

.profil-page .profil-visitors-strip {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0.1rem 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overscroll-behavior-x: contain;
}

.profil-page .profil-visitors-chevron {
  flex: 0 0 auto;
  align-self: center;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 300;
  color: var(--text);
  opacity: 0.35;
  user-select: none;
  padding: 0 0.1rem 0.25rem;
}

.profil-page .profil-visitor-item {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 4.75rem;
  min-width: 4.75rem;
  max-width: 4.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.15;
  text-align: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.profil-page .profil-visitor-item:hover {
  color: var(--accent, #6366f1);
}

.profil-page .profil-visitor-item:hover .profil-visitor-name {
  color: inherit;
}

.profil-page .profil-visitor-avatar {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 0.65rem;
  overflow: hidden;
  margin-bottom: 0.35rem;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}

.profil-page .profil-visitor-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profil-page .profil-visitor-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 0.65rem;
}

.profil-page .profil-visitor-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}

.profil-page .profil-visitors-empty {
  margin: 0;
  opacity: 0.88;
}

html[data-theme="light"] .profil-page .profil-visitor-avatar {
  background: rgba(15, 23, 42, 0.06);
}

/* Dashboard: Suche + Timeline */
.dashboard-page .dashboard-main.dashboard-home-main {
  max-width: none;
  width: 100%;
  padding: 0 0 var(--sf-content-bottom-pad);
}

.dashboard-home-main > section {
  margin: 0;
  padding: 2.15rem max(1.5rem, calc((100% - 36rem) / 2)) 2.35rem;
  box-sizing: border-box;
}

.dashboard-home-main > section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dashboard-home-main > section:nth-child(even) {
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .dashboard-home-main > section + section {
  border-top-color: rgba(45, 42, 54, 0.14);
}

html[data-theme="light"] .dashboard-home-main > section:nth-child(odd) {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .dashboard-home-main > section:nth-child(even) {
  background: rgba(255, 255, 255, 0.38);
}

.dashboard-search-wrap {
  margin-bottom: 0;
}

.dashboard-timeline-wrap {
  margin-top: 2.25rem;
  padding-top: 0.25rem;
}

.dashboard-home-main > .dashboard-timeline-wrap {
  margin-top: 0;
}

.dashboard-timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.dashboard-page .dashboard-timeline-subtitle {
  margin: 0 0 1rem;
  text-align: left;
  font-size: 0.85rem;
  opacity: 1;
  transform: none;
}

.dashboard-timeline-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: thin;
  padding-bottom: 0.35rem;
}

.dashboard-timeline-scroller:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.dashboard-timeline-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: min-content;
}

.dashboard-timeline-item {
  flex: 0 0 calc((100% - (0.65rem * 4)) / 5);
  min-width: 4.25rem;
  max-width: 5.5rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.dashboard-timeline-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}

.dashboard-timeline-link:hover .dashboard-timeline-name {
  color: var(--accent);
}

.dashboard-timeline-avatar-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

.dashboard-timeline-avatar-box .dashboard-timeline-avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.dashboard-timeline-avatar-box--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dashboard-timeline-avatar-box--placeholder span {
  line-height: 1;
}

.dashboard-timeline-name {
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

html[data-theme="light"] .dashboard-page .dashboard-timeline-title {
  color: #2d2a36;
}

html[data-theme="light"] .dashboard-page .dashboard-timeline-name {
  color: #5c5868;
}

/* Dashboard: Aktivität (Anfragen + Nachrichten) */
.dashboard-activity-wrap {
  margin-top: 2.25rem;
}

.dashboard-home-main > .dashboard-activity-wrap {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .dashboard-home-main > .dashboard-activity-wrap {
  background: rgba(255, 255, 255, 0.42);
}

html[data-theme="light"] .dashboard-home-main > .dashboard-events-wrap {
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-activity-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}

.dashboard-activity-panel {
  padding-top: 0.25rem;
}

#gruppen-einladungen {
  scroll-margin-top: 5.5rem;
}

.dashboard-activity-block + .dashboard-activity-block {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.dashboard-activity-block .section-label {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.dashboard-activity-subline {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-muted);
}

html[data-theme="light"] .dashboard-page .dashboard-activity-subline {
  color: #5c5868;
}

.dashboard-activity-list--follow {
  margin-top: 0;
  padding-top: 0;
}

.dashboard-activity-link-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

button.dashboard-activity-link-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.dashboard-activity-link-card:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-activity-link-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.dashboard-activity-link-card-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.dashboard-activity-link-card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.dashboard-activity-link-card-icon svg {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
}

.dashboard-activity-link-card-icon--friends {
  background: linear-gradient(135deg, #97e4ff, #6366f1);
}

.dashboard-activity-link-card-icon--groups {
  background: linear-gradient(135deg, #a5b4fc, #4f46e5);
}

.dashboard-activity-link-card-icon--messages {
  background: linear-gradient(135deg, #f592a4, #8b5cf6);
}

.dashboard-activity-link-card-icon--puschel {
  background: linear-gradient(135deg, #fb7185, #e11d48);
}

.dashboard-activity-count,
.dashboard-puschel-times {
  display: inline-block;
  margin: 0 0.08em;
  font-size: 1.42em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #e11d48;
  vertical-align: -0.06em;
}

html[data-theme="light"] .dashboard-page .dashboard-activity-count,
html[data-theme="light"] .dashboard-page .dashboard-puschel-times {
  color: #e11d48;
}

.dashboard-activity-link-card-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.dashboard-activity-link-card-arrow {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

html[data-theme="light"] .dashboard-page .dashboard-activity-link-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .dashboard-page .dashboard-activity-link-card:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .dashboard-page .dashboard-activity-link-card-text {
  color: #2d2a36;
}

.dashboard-activity-block .dashboard-activity-list {
  margin-bottom: 0;
}

.dashboard-activity-footer-link {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  text-align: right;
}

.dashboard-activity-footer-link a {
  color: var(--accent);
  text-decoration: none;
}

.dashboard-activity-footer-link a:hover {
  text-decoration: underline;
}

html[data-theme="light"] .dashboard-page .dashboard-activity-title {
  color: #2d2a36;
}

.dashboard-activity-block .dashboard-puschel-actions-wrap .notif-puschel-actions {
  margin: 0;
}

.dashboard-activity-block .dashboard-puschel-time {
  opacity: 0.85;
}

.dashboard-activity-block .dashboard-puschel-row--unread {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.dashboard-activity-block .dashboard-puschel-actions-wrap {
  flex: 0 0 auto;
  max-width: 100%;
  align-items: center;
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.dashboard-puschel-dismiss {
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  font-weight: 600;
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.dashboard-puschel-dismiss:hover,
.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.dashboard-puschel-dismiss:focus-visible {
  filter: brightness(1.08);
}

.dashboard-page .notif-puschel-actions .notif-puschel-icon-btn.dashboard-puschel-dismiss > span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(0.02rem);
}

.dashboard-puschel-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dashboard-puschel-modal[hidden] {
  display: none !important;
}

.dashboard-puschel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 20, 0.58);
  backdrop-filter: blur(1.5px);
}

.dashboard-puschel-modal-card {
  position: relative;
  z-index: 1;
  width: min(36rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.2rem 1.15rem 1.05rem;
  border-radius: 1rem;
  background: #1e1e28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.dashboard-puschel-modal-card h2 {
  margin: 0 2rem 0.85rem 0;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.dashboard-puschel-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.dashboard-puschel-modal-list {
  margin: 0;
}

html[data-theme="light"] .dashboard-puschel-modal-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .dashboard-puschel-modal-close {
  background: #f4f4f7;
  border-color: rgba(0, 0, 0, 0.12);
  color: #2d2a36;
}

@media (max-width: 900px) {
  .dashboard-puschel-modal {
    padding: 0.75rem;
    align-items: flex-start;
    overflow: auto;
  }

  .dashboard-puschel-modal-card {
    width: 100%;
    max-width: 100%;
  }
}

/* Dashboard: letzte Profilbesucher */
.dashboard-profile-visitors-wrap {
  margin-top: 2.25rem;
}

.dashboard-home-main > .dashboard-profile-visitors-wrap {
  margin-top: 0;
}

.dashboard-profile-visitors-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.dashboard-profile-visitors-wrap .dashboard-activity-subline {
  margin-bottom: 0.85rem;
}

.dashboard-profile-visitors-strip-wrap {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
}

.dashboard-profile-visitors-strip {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0.1rem 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex: 1;
  min-width: 0;
  overscroll-behavior-x: contain;
}

.dashboard-profile-visitors-chevron {
  flex: 0 0 auto;
  align-self: center;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text);
  opacity: 0.35;
  user-select: none;
}

.dashboard-profile-visitor-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 4.75rem;
  min-width: 4.75rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  transition: color 0.15s ease;
}

.dashboard-profile-visitor-item:hover {
  color: var(--accent);
}

.dashboard-profile-visitor-avatar {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.dashboard-profile-visitor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-profile-visitor-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.dashboard-profile-visitor-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.2;
}

.dashboard-profile-visitors-empty {
  margin: 0;
  opacity: 0.88;
}

html[data-theme="light"] .dashboard-page .dashboard-profile-visitors-title {
  color: #2d2a36;
}

html[data-theme="light"] .dashboard-page .dashboard-profile-visitor-avatar {
  background: rgba(15, 23, 42, 0.06);
}

.dashboard-whats-new-wrap {
  margin-top: 2.25rem;
}

.dashboard-home-main > .dashboard-whats-new-wrap {
  margin-top: 0;
}

.dashboard-whats-new-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.dashboard-whats-new-wrap .dashboard-activity-subline {
  margin-bottom: 0.85rem;
}

.dashboard-whats-new-box {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.55rem 0.85rem 0.65rem;
  box-sizing: border-box;
}

html[data-theme="light"] .dashboard-whats-new-box {
  border-color: rgba(45, 42, 54, 0.18);
  background: rgba(255, 255, 255, 0.55);
}

.dashboard-whats-new-scroller {
  max-height: 18.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.15rem 0.15rem 0.35rem 0;
  margin: 0 -0.1rem 0 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.dashboard-whats-new-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-whats-new-item {
  padding: 0.62rem 0.15rem 0.7rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-whats-new-item:last-child {
  border-bottom: none;
  padding-bottom: 0.2rem;
}

.dashboard-whats-new-date {
  margin: 0 0 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dashboard-whats-new-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
}

.dashboard-whats-new-text {
  margin: 0.18rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-theme="light"] .dashboard-page .dashboard-whats-new-title {
  color: #2d2a36;
}

html[data-theme="light"] .dashboard-page .dashboard-whats-new-name {
  color: #2d2a36;
}

html[data-theme="light"] .dashboard-page .dashboard-whats-new-text,
html[data-theme="light"] .dashboard-page .dashboard-whats-new-date {
  color: #5c5868;
}

.dashboard-events-wrap {
  width: 100%;
  max-width: 100%;
  margin: 1.4rem auto 0;
  box-sizing: border-box;
}
.dashboard-home-main > .dashboard-events-wrap {
  margin: 0;
}
.sf-birthday-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sf-birthday-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.sf-birthday-row-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.sf-birthday-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
}
.sf-birthday-avatar img,
.sf-birthday-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.sf-birthday-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.sf-birthday-name {
  font-weight: 650;
  font-size: 0.98rem;
}
.sf-birthday-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}
html[data-theme="light"] .sf-birthday-row {
  background: #fff;
}
.dashboard-events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.dashboard-events-title {
  margin: 0;
  font-size: 1.05rem;
}
.sf-event-create-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  background: #6366f1;
  color: #fff;
}
.sf-event-create-btn:hover {
  filter: brightness(1.06);
}
.sf-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-event-list--tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.sf-event-list--tiles > li {
  min-width: 0;
}
.sf-event-list--tiles > li:only-child {
  grid-column: 1 / -1;
}
.sf-event-list--tiles .sf-event-title {
  font-size: 0.95rem;
}
.sf-event-list--tiles .sf-event-rsvp,
.sf-event-list--tiles .sf-event-chat,
.sf-event-list--tiles .sf-event-mine,
.sf-event-list--tiles .sf-event-cancel,
.sf-event-list--tiles .sf-event-ics {
  font-size: 0.78rem;
  padding: 0.38rem 0.55rem;
}
.sf-event-list--page {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sf-event-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius);
  padding: 0.68rem 0.95rem;
  font-weight: 650;
  text-decoration: none;
  background: #6366f1;
  color: #fff;
}
.sf-event-all-btn:hover {
  filter: brightness(1.06);
}
.sf-group-dash-btns {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.sf-group-dash-btns .sf-event-all-btn {
  flex: 1;
  margin-top: 0;
}
.sf-event-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.sf-event-title {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}
.sf-event-meta,
.sf-event-who {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.sf-event-who-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.sf-event-going-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
}
.sf-event-going-btn:hover {
  color: var(--accent, #6366f1);
}
.sf-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.65rem;
}
.sf-event-rsvp,
.sf-event-chat,
.sf-event-mine,
.sf-event-cancel,
.sf-event-ics {
  border: none;
  border-radius: 0.65rem;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.sf-event-rsvp {
  background: #6366f1;
  color: #fff;
}
.sf-event-rsvp.is-on {
  background: rgba(99, 102, 241, 0.22);
  color: var(--text);
}
.sf-event-chat {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}
.sf-event-ics {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}
.sf-event-mine {
  background: rgba(22, 163, 74, 0.18);
  color: #bbf7d0;
  cursor: default;
}
.sf-event-cancel {
  background: rgba(220, 38, 38, 0.18);
  color: #fecaca;
  border: 1px solid rgba(220, 38, 38, 0.35);
}
.sf-event-cancel:hover {
  background: rgba(220, 38, 38, 0.28);
}
.sf-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sf-group-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.48rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-sizing: border-box;
}
.sf-group-row-copy {
  flex: 1;
  min-width: 0;
}
.sf-group-row-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}
.sf-group-row-meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.sf-group-row-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.15rem;
  padding-top: 0.08rem;
}
.sf-group-row-actions .sf-event-rsvp,
.sf-group-row-actions .sf-event-cancel {
  margin: 0;
}
.sf-group-invite-link {
  border: none;
  background: none;
  padding: 0.2rem 0.15rem;
  color: #6366f1;
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}
.sf-group-invite-link:hover {
  filter: brightness(1.08);
}
.sf-group-invite-friend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sf-group-invite-friend:hover {
  filter: brightness(1.05);
}
html[data-theme="light"] .sf-group-invite-friend {
  background: #fff;
}
html[data-theme="light"] .sf-group-row {
  background: #fff;
}
html[data-theme="light"] .sf-group-row-meta {
  color: #5c5868;
}
@media (max-width: 640px) {
  .sf-group-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .sf-group-row-actions {
    justify-content: stretch;
    gap: 0.7rem;
  }
  .sf-group-row-actions .sf-event-rsvp,
  .sf-group-row-actions .sf-event-cancel {
    width: 100%;
    justify-content: center;
  }
}
.profil-clubs-card {
  margin-top: 1rem;
}
.profil-clubs-list-wrap.is-scroll {
  max-height: 36rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
}
.profil-clubs-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.45rem;
}
.profil-club-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.35;
  color: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
}
.profil-club-chip-name {
  font-weight: 650;
}
.profil-club-chip-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}
.profil-club-chip:hover {
  border-color: #6366f1;
}
.sf-profile-group-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}
.sf-profile-group-meta {
  overflow-wrap: anywhere;
  text-align: center;
}
#sf-profile-group-invite-intro {
  opacity: 1;
  transform: none;
  margin: 0.85rem 0 0.55rem;
  text-align: center;
}
html[data-theme="light"] .profil-club-chip {
  background: #fff;
}
html[data-theme="light"] .profil-club-chip-meta {
  color: #5c5868;
}
html[data-theme="light"] .sf-event-card {
  background: #fff;
}
html[data-theme="light"] .sf-event-rsvp.is-on {
  color: #2d2a36;
}
html[data-theme="light"] .sf-event-mine {
  color: #14532d;
}
html[data-theme="light"] .sf-event-chat {
  background: #f4f4f8;
}
html[data-theme="light"] .sf-event-ics {
  background: #f4f4f8;
}
html[data-theme="light"] .sf-event-cancel {
  color: #7f1d1d;
  background: rgba(220, 38, 38, 0.1);
}

.sf-event-create-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sf-event-create-modal[hidden] {
  display: none !important;
}
.sf-event-create-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 20, 0.58);
  backdrop-filter: blur(1.5px);
}
.sf-event-create-card {
  position: relative;
  z-index: 1;
  width: min(26rem, calc(100% - 0px), calc(100vw - 1.5rem));
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: 1rem;
  background: #1e1e28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
.sf-event-create-card h2 {
  margin: 0 0.5rem 0.45rem 0;
  font-size: 1.1rem;
  padding-right: 1.8rem;
}
.sf-event-create-card p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.sf-event-create-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}
.events-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.72rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  margin-bottom: 0.55rem;
}
.events-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0.15rem 0 0.35rem;
}
.events-datetime-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin-bottom: 0.15rem;
}
.events-input--datetime {
  display: block;
  -webkit-appearance: none;
  appearance: none;
}
.events-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}
.events-msg {
  border-radius: 0.65rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  display: none;
}
.events-msg.is-visible {
  display: block;
}
.events-msg-ok {
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(22, 163, 74, 0.45);
  color: #bbf7d0;
}
.events-msg-err {
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: #fecaca;
}
.sf-event-create-submit {
  background: #6366f1;
  color: #fff;
  border-color: transparent;
}
.sf-event-create-submit:hover {
  background: #5558e6;
  color: #fff;
}
html[data-theme="light"] .sf-event-create-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .sf-event-create-close {
  background: #f4f4f7;
  border-color: rgba(0, 0, 0, 0.12);
  color: #2d2a36;
}
html[data-theme="light"] .events-input {
  background: #fff;
  color: #2d2a36;
  border-color: rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .events-msg-ok {
  color: #14532d;
}
html[data-theme="light"] .events-msg-err {
  color: #7f1d1d;
}

.sf-event-attendees-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sf-event-attendees-modal[hidden] {
  display: none !important;
}
.sf-event-attendees-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 20, 0.58);
  backdrop-filter: blur(1.5px);
}
.sf-event-attendees-card {
  position: relative;
  z-index: 1;
  width: min(24rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.2rem 1.15rem 1.05rem;
  border-radius: 1rem;
  background: #1e1e28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.sf-event-attendees-card h2 {
  margin: 0 1.8rem 0.25rem 0;
  font-size: 1.1rem;
}
.sf-event-attendees-sub {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.sf-event-attendees-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}
.sf-event-attendees-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sf-event-attendees-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0;
}
.sf-event-attendee {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.45rem;
  border-radius: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.sf-event-attendee:hover {
  background: rgba(255, 255, 255, 0.06);
}
.sf-event-attendee-av {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.sf-event-attendee-av--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.28);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.sf-event-attendee-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 650;
}
.sf-event-attendee-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text-muted);
}
html[data-theme="light"] .sf-event-attendees-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .sf-event-attendees-close {
  background: #f4f4f7;
  border-color: rgba(0, 0, 0, 0.12);
  color: #2d2a36;
}
html[data-theme="light"] .sf-event-attendee:hover {
  background: #f4f4f8;
}

/* Handy: nichts darf über den Viewport ragen */
@media (max-width: 900px) {
  .dashboard-header {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .dashboard-main {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .suggestion-card,
  .inbox-row-card,
  .sf-event-card {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .suggestion-card .suggestion-actions {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .sf-event-create-modal,
  .sf-event-attendees-modal {
    padding: 0.75rem;
    align-items: flex-start;
    overflow: auto;
  }
  .sf-event-create-card,
  .sf-event-attendees-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .dashboard-page .notif-item,
  .dashboard-page .header-panel-item.notif-item {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.dashboard-page .search-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.dashboard-page .search-wrap .dashboard-other-places {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}

.dashboard-page .search-wrap .dashboard-other-places input {
  width: auto;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
}

.dashboard-page .search-wrap .dashboard-other-places span {
  color: var(--text);
}

html[data-theme="light"] .dashboard-page .search-wrap .dashboard-other-places {
  color: #4a4656;
}

.dashboard-page .dashboard-search-hello {
  max-width: 22em;
  margin: 0 auto 0.85rem;
  text-align: center;
}

.dashboard-profile-nudge {
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 36rem;
  margin: 0 auto 1.15rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: calc(var(--radius) + 0.15rem);
  border: 1px solid var(--border);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.dashboard-profile-nudge[hidden] {
  display: none;
}

.dashboard-profile-nudge-main {
  flex: 1;
  min-width: 0;
}

.dashboard-profile-nudge-title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-profile-nudge-text {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.dashboard-profile-nudge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 0.75rem;
  background: var(--accent, #6366f1);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-profile-nudge-btn:hover {
  opacity: 0.96;
}

.dashboard-profile-nudge-dismiss {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: -0.15rem -0.2rem 0 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

html[data-theme="light"] .dashboard-profile-nudge {
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 10px 24px rgba(40, 32, 70, 0.08);
}

html[data-theme="light"] .dashboard-profile-nudge-text {
  color: #4a4656;
}

.dashboard-empty-city {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
  text-align: left;
}

.dashboard-empty-city a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.dashboard-empty-city-actions {
  list-style: disc;
  margin: 0 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.dashboard-empty-city-note {
  font-size: 0.88rem;
}

html[data-theme="light"] .dashboard-empty-city-actions {
  color: #4a4656;
}

.dashboard-nearby-head {
  margin: 1.25rem 0 0.35rem;
  list-style: none;
}

.search-nearby-label {
  margin: 0 0 0.25rem;
}

.dashboard-page .hint.dashboard-nearby-hint {
  margin: 0 0 0.65rem;
  text-align: left;
  font-size: 0.88rem;
}

.search-other-places-label {
  margin: 0.85rem 0 0.25rem;
}

.dashboard-page .hint.dashboard-other-places-hint {
  margin: 0 0 0.65rem;
  text-align: left;
  font-size: 0.88rem;
}

.dashboard-nearby-pager-wrap {
  list-style: none;
  margin: 0.35rem 0 0.75rem;
  padding: 0;
}

.search-pagination--nearby {
  margin-top: 0.25rem;
}

.dashboard-page .dashboard-search-title {
  font-size: clamp(1.2rem, 3.4vw, 1.75rem);
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}

.dashboard-page .dashboard-search-subtitle {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  opacity: 0.78;
}

.dashboard-status {
  margin: 0 0 1.35rem;
}

.dashboard-status-shell {
  width: 100%;
  padding: 0.85rem 0.95rem 0.75rem;
  border-radius: calc(var(--radius) + 0.15rem);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .dashboard-status-shell {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(45, 42, 54, 0.06);
}

.dashboard-status-label {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
}

html[data-theme="light"] .dashboard-status-label {
  color: #5c5868;
}

.dashboard-status-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.dashboard-status-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  height: 3.1rem;
  padding: 0 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.dashboard-status-input::placeholder {
  color: var(--text-muted);
}

html[data-theme="light"] .dashboard-status-input {
  color: #2d2a36;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .dashboard-status-input::placeholder {
  color: #5c5868;
}

.dashboard-status-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.dashboard-status-submit {
  flex: 0 0 auto;
  margin: 0;
  height: 3.1rem;
  padding: 0 1.15rem;
  border-radius: 0.9rem;
  border: none;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.dashboard-status-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.dashboard-status-submit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

.dashboard-status-submit:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  filter: none;
}

.dashboard-status-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.dashboard-status-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  opacity: 0.9;
}

.dashboard-status-sep {
  opacity: 0.5;
}

.dashboard-status-tip {
  opacity: 0.78;
}

.dashboard-status-msg {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
}

.dashboard-status-msg.is-ok {
  color: #34d399;
}

.dashboard-status-msg.is-err {
  color: #f87171;
}

@media (max-width: 520px) {
  .dashboard-status-shell {
    padding: 0.75rem 0.8rem 0.65rem;
  }

  .dashboard-status-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-status-input,
  .dashboard-status-submit {
    width: 100%;
    height: 2.9rem;
  }
}

.sf-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sf-welcome-modal[hidden] {
  display: none;
}

.sf-welcome-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 20, 0.62);
  backdrop-filter: blur(2px);
}

.sf-welcome-modal-card {
  position: relative;
  z-index: 1;
  width: min(34rem, calc(100vw - 1.5rem));
  max-height: min(88vh, 42rem);
  overflow-y: auto;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, #1b1b2e 0%, #12121f 100%);
  color: #f5f5f5;
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 0 1.1rem 2.4rem rgba(0, 0, 0, 0.42);
}

.sf-welcome-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.sf-welcome-kicker {
  margin: 0 2.2rem 0.35rem 0;
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sf-welcome-title {
  margin: 0 2rem 0.85rem 0;
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 700;
}

.sf-welcome-body {
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.92);
}

.sf-welcome-body p {
  margin: 0;
}

.sf-welcome-steps {
  margin: 0;
  padding: 0 0 0 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.sf-welcome-steps[hidden],
#sf-homescreen-standalone[hidden] {
  display: none;
}

.sf-welcome-body a {
  color: #c7d2fe;
  font-weight: 700;
}

html[data-theme="light"] .sf-welcome-body a,
body:has(> .index-page) .sf-welcome-body a {
  color: #4338ca;
}

.sf-welcome-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.15rem;
  min-height: 2.85rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.85rem;
  background: var(--accent, #6366f1);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.sf-welcome-modal-btn:hover {
  opacity: 0.96;
}

.sf-welcome-modal-secondary {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 0.85rem;
  background: transparent;
  color: rgba(245, 245, 245, 0.72);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

html[data-theme="light"] .sf-welcome-modal-secondary,
body:has(> .index-page) .sf-welcome-modal-secondary {
  color: #5b5670;
}

html[data-theme="light"] .sf-welcome-modal-card,
body:has(> .index-page) .sf-welcome-modal-card {
  background: linear-gradient(160deg, #fff 0%, #f6f5fb 100%);
  border-color: rgba(0, 0, 0, 0.1);
  color: #2d2a36;
  box-shadow: 0 1.1rem 2.4rem rgba(40, 32, 70, 0.18);
}

html[data-theme="light"] .sf-welcome-modal-close,
body:has(> .index-page) .sf-welcome-modal-close {
  color: #2d2a36;
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .sf-welcome-kicker,
body:has(> .index-page) .sf-welcome-kicker {
  color: #4f46e5;
}

html[data-theme="light"] .sf-welcome-body,
body:has(> .index-page) .sf-welcome-body {
  color: rgba(45, 42, 54, 0.92);
}

/* Themen-Landings */
.sf-topic-body {
  background: #e6baff;
  color: #2d2a36;
}

.sf-topic {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sf-topic-hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.2rem, 5vw, 3rem) clamp(2.5rem, 8vh, 4.5rem);
  max-width: 52rem;
  margin: 0 auto;
}

.sf-topic-logo {
  display: block;
  width: fit-content;
  margin: 0 auto 2.2rem;
}

.sf-topic-logo img {
  display: block;
  max-width: min(340px, 56vw);
  height: auto;
}

.sf-topic-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b21b6;
  margin: 0 0 0.85rem;
}

.sf-topic-kicker--on-dark {
  color: #c4b5fd;
}

.sf-topic h1 {
  font-size: clamp(2.15rem, 6.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 750;
  margin: 0 0 1.15rem;
}

.sf-topic-lead {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.45;
  margin: 0 0 1.6rem;
  color: #3f3a4a;
  max-width: 38rem;
}

.sf-topic-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.95rem 1.6rem;
  margin: 0.2rem 0 0.4rem;
  border-radius: 1rem;
  background: #4f46e5;
  color: #fff !important;
  font-weight: 650;
  font-size: 1.08rem;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
}

.sf-topic-cta:hover {
  background: #4338ca;
}

.sf-topic-cta--light {
  background: #fff;
  color: #4f46e5 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.sf-topic-cta--light:hover {
  background: #f5f3ff;
}

.sf-topic-main {
  background: #fff;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.2rem, 5vw, 3rem);
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.sf-topic-main p,
.sf-topic-solve p {
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.sf-topic-main h2 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

.sf-topic-stat {
  margin: 1.6rem 0 0.4rem;
  padding: 1.2rem 1.25rem;
  border-radius: 1.1rem;
  background: #f4e8ff;
  border: 1px solid rgba(91, 33, 182, 0.12);
}

.sf-topic-stat b {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1;
  color: #5b21b6;
  margin-bottom: 0.45rem;
}

.sf-topic-stat p {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.sf-topic-stat span {
  font-size: 0.8rem;
  color: #6b6578;
}

.sf-topic-solve {
  background: #1c1633;
  color: #f5f3ff;
}

.sf-topic-solve-inner {
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.2rem, 5vw, 3rem);
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.sf-topic-solve h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 1.1rem;
}

.sf-topic-solve p {
  color: rgba(245, 243, 255, 0.88);
}

.sf-topic-steps {
  list-style: none;
  margin: 1.6rem 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.sf-topic-steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
}

.sf-topic-step-n {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #e6baff;
  color: #1c1633;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-topic-steps strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.05rem;
}

.sf-topic-steps li > span:last-child {
  grid-column: 2;
  grid-row: 2;
  color: rgba(245, 243, 255, 0.75);
  font-size: 0.98rem;
}

.sf-topic-help {
  margin: 1.4rem 0 1.6rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: #fef3c7;
  border: 1px solid rgba(180, 83, 9, 0.18);
}

.sf-topic-help p {
  margin: 0 0 0.45rem;
}

.sf-topic-help-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  font-weight: 700;
}

.sf-topic-help-phones a {
  color: #92400e;
}

.sf-topic-more {
  background: #f7f4fb;
  padding: 2rem clamp(1.2rem, 5vw, 3rem) 2.4rem;
}

.sf-topic-more h2 {
  max-width: 52rem;
  margin: 0 auto 0.9rem;
  font-size: 1.15rem;
}

.sf-topic-more ul {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sf-topic-more a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.sf-topic-more a:hover {
  border-color: #4f46e5;
}

.sf-topic-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  padding: 1.3rem clamp(1.2rem, 5vw, 3rem) 2.2rem;
  background: #f7f4fb;
  font-size: 0.88rem;
}

.sf-topic-foot a {
  color: #5c5868;
}

.index-topics {
  padding-bottom: clamp(1.5rem, 3vw, 2.2rem);
}

.index-topics .index-intro-heading {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.index-topics-lead {
  max-width: 28rem;
  margin: 0 auto 0.35rem;
  color: #6e6a75;
  font-size: 1.02rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.index-topics .index-panel-photo {
  margin-top: 0.55rem;
}

.index-topics-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  text-align: left;
}

@media (min-width: 640px) {
  .index-topics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
}

@media (min-width: 900px) {
  .index-topics-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.index-topics-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.28rem;
  align-items: start;
  min-height: 6.6rem;
  padding: 1.15rem 1.1rem 1.1rem 1.2rem;
  border-radius: 1.25rem;
  background: #f5f5f7;
  border: 0;
  color: #1d1d1f;
  text-decoration: none;
  box-shadow: none;
  font-weight: 400;
  font-size: inherit;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.index-topics-card:hover,
.index-topics-card:focus-visible {
  background: #fff;
  box-shadow: 0 10px 30px rgba(29, 29, 31, 0.08);
  transform: translateY(-2px);
  color: #1d1d1f;
}

.index-topics-card:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

.index-topics-card-title {
  grid-column: 1;
  grid-row: 1;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.index-topics-card-text {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #6e6e73;
  letter-spacing: -0.01em;
}

.index-topics-card-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  color: #86868b;
  transition: color 0.2s ease, transform 0.2s ease;
}

.index-topics-card:hover .index-topics-card-go,
.index-topics-card:focus-visible .index-topics-card-go {
  color: #0071e3;
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .index-topics-card,
  .index-topics-card-go {
    transition: none;
  }
  .index-topics-card:hover,
  .index-topics-card:focus-visible {
    transform: none;
  }
}

/* Punkte-Feuerwerk: an body, über allem (nicht in .dashboard-page). */
body.sf-points-lock {
  overflow: hidden;
}
.sf-points-overlay {
  position: fixed;
  inset: 0;
  z-index: 40000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.sf-points-overlay.is-on {
  opacity: 1;
}
.sf-points-overlay.is-off {
  opacity: 0;
  pointer-events: none;
}
.sf-points-overlay-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 18, 0.78);
}
.sf-points-overlay-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(92vw, 28rem);
  height: min(92vw, 28rem);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.55) 0%, rgba(251, 146, 60, 0.18) 38%, transparent 70%);
  pointer-events: none;
  animation: sf-points-glow 1.2s ease-in-out infinite alternate;
}
.sf-points-overlay-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.2rem 1.4rem 1.5rem;
  transform: scale(0.55);
  transition: transform 0.55s cubic-bezier(0.18, 1.35, 0.32, 1);
}
.sf-points-overlay.is-on .sf-points-overlay-card {
  transform: scale(1);
}
.sf-points-overlay-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #facc15;
}
.sf-points-overlay-num {
  margin: 0;
  font-size: clamp(4.4rem, 22vw, 8.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #fde68a;
  text-shadow:
    0 0 18px rgba(250, 204, 21, 0.85),
    0 0 42px rgba(251, 146, 60, 0.55),
    0 8px 0 rgba(120, 53, 15, 0.35);
}
.sf-points-overlay-unit {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 800;
  color: #fff;
}
.sf-points-overlay-reason {
  margin: 0.55rem 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: rgba(253, 230, 138, 0.92);
}
.sf-points-confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.sf-points-confetti {
  position: absolute;
  width: 0.55rem;
  height: 1.15rem;
  border-radius: 0.18rem;
  opacity: 0.98;
}
.sf-points-confetti--rain {
  top: -8vh;
  animation: sf-points-confetti-fall linear forwards;
}
.sf-points-confetti--burst {
  left: 50%;
  top: 48%;
  animation: sf-points-confetti-burst 1.85s ease-out forwards;
}
@keyframes sf-points-confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.98; }
  85% { opacity: 0.9; }
  100% { transform: translateY(118vh) rotate(760deg); opacity: 0; }
}
@keyframes sf-points-confetti-burst {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) rotate(640deg) scale(0.4); opacity: 0; }
}
@keyframes sf-points-glow {
  from { opacity: 0.75; transform: translate(-50%, -50%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .sf-points-overlay-glow,
  .sf-points-confetti {
    animation: none;
  }
  .sf-points-overlay-card {
    transition: none;
    transform: none;
  }
}

