@import url("https://fonts.bunny.net/css?family=figtree:400,500,600,700&display=swap");

:root {
  color-scheme: light;
  /* Gleiche Hausschrift wie Header/Profil; für nachgeladenes Bootstrap 5 (Forum-Admin) */
  --bs-font-sans-serif: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bg: #f5f3f2;
  --surface: #ffffff;
  --surface-alt: #f5f3f2;
  --surface-soft: #f5f3f2;
  /* Neutrale Rahmen (kühl, ohne Beige-Stich) – wie App */
  --border: #e0e0e0;
  --border-soft: #e8e8e8;
  --line: #e0e0e0;
  --text: #2e2926;
  --muted: #7a6f68;
  /* Primär-Akzent (Buttons, Links, Highlights) */
  --accent: #a5b9a0;
  --accent-strong: #8a9f82;
  --accent-soft: #e8efe5;
  --on-accent: #2a332d;
  --success: #a4c3a2;
  --shadow: 0 20px 50px rgba(46, 41, 38, 0.08);
  --shadow-soft: 0 12px 30px rgba(46, 41, 38, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 24px;
  align-items: start;
}

@media (min-width: 961px) {
  body.page-home .layout {
    align-items: stretch;
  }
}

/* Grid-Spalte 1fr darf schmaler als „breitester Inhalt“ werden (sonst Mobile-Horizontal-Scroll) */
.layout > main {
  min-width: 0;
}

.sidebar {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar__brand {
  display: grid;
  gap: 6px;
}

.sidebar__brand-title {
  font-size: 18px;
  font-weight: 700;
}

.sidebar__brand-subtitle {
  font-size: 11px;
  color: var(--muted);
}

.sidebar__toggle {
  display: none;
}

.sidebar__toggle-label {
  display: none;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  width: fit-content;
}

.sidebar__close {
  display: none;
}

/* Hamburger: drei gleiche Striche, quadratische Enden (einheitlich auf Mobil) */
.burger {
  display: block;
  width: 18px;
  height: 2px;
  flex-shrink: 0;
  border-radius: 0;
  background: var(--text);
  box-shadow: 0 6px 0 0 var(--text), 0 -6px 0 0 var(--text);
}

.sidebar__menu {
  display: grid;
  gap: 6px;
}

.sidebar__social {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 4px 2px;
}

.sidebar__social-link {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #a5b9a0;
  text-decoration: none;
  background: rgba(165, 185, 160, 0.14);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.sidebar__social-link:hover {
  background: rgba(165, 185, 160, 0.26);
  transform: translateY(-1px);
}

.sidebar__social-link i {
  font-size: 16px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

.sidebar__link.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

.sidebar__link-badge {
  margin-left: auto;
  background: var(--accent-strong);
  color: #fff;
  font-size: 11px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.sidebar__link-badge--urgent {
  background: #b85c4a;
  color: #fff;
}

.sidebar__submenu {
  margin: -4px 0 6px 40px;
  display: grid;
  gap: 4px;
}

.sidebar__submenu-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
}

.sidebar__submenu-link.is-active {
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
}

.sidebar__link-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #a5b9a0;
}

.sidebar__promo {
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  color: var(--muted);
}

.sidebar__promo strong {
  color: var(--text);
  font-weight: 600;
}

.sidebar__promo-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
  font-size: 12px;
}

.sidebar__footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo__mark {
  border-radius: 14px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.logo__mark--image {
  background: transparent;
  padding: 0;
}

.logo__image {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.logo__title {
  font-size: 20px;
  font-weight: 700;
}

.logo__subtitle {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar__card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.sidebar__section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sidebar__nav {
  display: grid;
  gap: 14px;
}

.sidebar__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sidebar__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--accent-strong);
  font-size: 13px;
}

.sidebar__text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.palette {
  display: flex;
  gap: 8px;
}

.palette__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
}

.palette__dot--muted {
  background: #a9a19a;
}

.palette__dot--dark {
  background: #3b3532;
}

.main {
  display: grid;
  gap: 0;
  align-content: start;
  align-items: start;
}

.topbar {
  background: var(--surface);
  border-radius: 18px;
  height: 72px;
  padding: 0 18px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.topbar__nav a.is-active {
  color: var(--text);
  font-weight: 600;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--text, #1f1f1f);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.topbar-bell:hover,
.topbar-bell:focus-visible {
  background: rgba(139, 163, 139, 0.12);
  border-color: var(--sage-strong, #6f8f73);
}

.topbar-bell:active {
  transform: translateY(1px);
}

.topbar-bell i {
  font-size: 1.05rem;
}

.topbar-bell__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d45563;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}

.topbar-bell__badge.is-hidden {
  display: none;
}

@keyframes topbarBellPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.18) rotate(-8deg); }
  55% { transform: scale(1.05) rotate(6deg); }
  80% { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1); }
}

.topbar-bell--pulse i {
  animation: topbarBellPulse 0.7s ease-in-out 1;
  transform-origin: center top;
}

.topbar-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.topbar-bell-wrap .topbar-bell {
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.topbar-bell__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 18px 38px -12px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.06);
  z-index: 90;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 480px);
}

.topbar-bell__panel[hidden] {
  display: none;
}

.topbar-bell__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: #fafafa;
}

.topbar-bell__panel-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text, #1f1f1f);
}

.topbar-bell__mark-all {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sage-strong, #6f8f73);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.topbar-bell__mark-all:hover,
.topbar-bell__mark-all:focus-visible {
  background: rgba(139, 163, 139, 0.16);
}

.topbar-bell__mark-all[hidden] {
  display: none;
}

.topbar-bell__panel-body {
  overflow-y: auto;
  flex: 1 1 auto;
}

.topbar-bell__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

.topbar-bell__empty i {
  font-size: 22px;
  color: #cbd5e1;
}

.topbar-bell__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text, #1f1f1f);
  position: relative;
  transition: background 0.1s ease;
}

.topbar-bell__item-icon-link {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.topbar-bell__item-actor {
  display: inline;
  font-weight: 700;
  color: var(--sage-strong, #6f8f73);
  text-decoration: underline;
  text-underline-offset: 2px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.topbar-bell__item-actor:hover,
.topbar-bell__item-actor:focus-visible {
  color: #4d7352;
}

.topbar-bell__item-title-rest,
.topbar-bell__item-text {
  text-decoration: none;
  color: inherit;
}

.topbar-bell__item-title-rest:hover,
.topbar-bell__item-title-rest:focus-visible,
.topbar-bell__item-text:hover,
.topbar-bell__item-text:focus-visible {
  text-decoration: underline;
}

.topbar-bell__item:last-child {
  border-bottom: 0;
}

.topbar-bell__item:hover,
.topbar-bell__item:focus-visible {
  background: #f7faf7;
}

.topbar-bell__item.is-unread {
  background: rgba(139, 163, 139, 0.08);
}

.topbar-bell__item.is-read {
  opacity: 0.78;
}

.topbar-bell__item-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(139, 163, 139, 0.15);
  color: var(--sage-strong, #6f8f73);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

.topbar-bell__item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-bell__item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #1f1f1f);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.topbar-bell__item-text {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.topbar-bell__item-time {
  font-size: 11px;
  color: #9ca3af;
}

.topbar-bell__item-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d45563;
  flex-shrink: 0;
  margin-top: 6px;
}

.topbar-bell__panel-foot {
  display: block;
  padding: 11px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-strong, #6f8f73);
  text-decoration: none;
  border-top: 1px solid var(--border, #e5e7eb);
  background: #fafafa;
  transition: background 0.12s ease;
}

.topbar-bell__panel-foot:hover,
.topbar-bell__panel-foot:focus-visible {
  background: rgba(139, 163, 139, 0.12);
}

@media (max-width: 600px) {
  .topbar-bell__panel {
    position: fixed;
    top: 60px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 80px);
  }
}

.notifications-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notifications-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.notifications-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  background: #fff;
}

.notifications-item.is-unread {
  border-color: var(--sage-strong, #6f8f73);
  background: rgba(139, 163, 139, 0.08);
}

.notifications-item__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
  color: inherit;
  min-width: 0;
}

.notifications-item__icon-link {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.notifications-item__title-inner {
  display: inline;
  line-height: 1.35;
}

.notifications-item__actor {
  display: inline;
  font-weight: 700;
  color: var(--sage-strong, #6f8f73);
  text-decoration: underline;
  text-underline-offset: 2px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.notifications-item__actor:hover,
.notifications-item__actor:focus-visible {
  color: #4d7352;
}

.notifications-item__title-rest {
  display: inline;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.notifications-item__text {
  text-decoration: none;
  color: inherit;
  display: block;
}

.notifications-item__title-rest:hover,
.notifications-item__title-rest:focus-visible,
.notifications-item__text:hover,
.notifications-item__text:focus-visible {
  text-decoration: underline;
}

.notifications-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(139, 163, 139, 0.18);
  color: var(--sage-strong, #6f8f73);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notifications-item__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.notifications-item__title {
  font-weight: 600;
}

.notifications-item__text {
  font-size: 0.92rem;
  color: var(--muted, #5f6b62);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.notifications-item__time {
  font-size: 0.78rem;
}

.notifications-item__delete {
  align-self: flex-start;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 220px;
}

.nearby-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.nearby-select {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  padding: 0 2px;
  outline: none;
}

.nearby-switch {
  position: relative;
  width: 34px;
  height: 18px;
}

.nearby-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.nearby-switch__slider {
  position: absolute;
  inset: 0;
  background: #d7d0cb;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nearby-switch__slider::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.nearby-switch input:checked + .nearby-switch__slider {
  background: #7a8f6b;
}

.nearby-switch input:checked + .nearby-switch__slider::after {
  transform: translateX(16px);
}

.search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
}

.pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 12px;
  color: var(--muted);
}

.pill--accent {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease,
    box-shadow 0.18s ease;
}

a.pill--accent:hover,
button.pill--accent:hover {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 12px rgba(58, 72, 52, 0.18);
  transform: translateY(-1px);
}

.favorite-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
}

.favorite-button.is-active {
  color: #d45563;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.stepper__item {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
}

.stepper__item.is-active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.content {
  display: grid;
  gap: 18px;
  align-content: start;
  margin-top: 20px;
}

.panel-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}

.panel__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.panel__heading {
  font-size: 16px;
  font-weight: 600;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 12px;
  color: var(--muted);
}

.chip.is-active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.list {
  display: grid;
  gap: 10px;
}

.list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.list__item--admin-user {
  align-items: flex-start;
  gap: 12px;
}

/* Admin · Benutzerliste */
.admin-users-lead {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 48rem;
}

.admin-users-toolbar {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.admin-users-toolbar__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-users-toolbar__filters {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.admin-users-toolbar__filters legend {
  padding: 0 4px;
}

.admin-users-toolbar__filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 8px;
}

.admin-users-toolbar__filter-select {
  margin-top: 12px;
  max-width: 320px;
}

.admin-users-toolbar__filter-select select {
  width: 100%;
}

@media (max-width: 720px) {
  .admin-users-toolbar__search {
    grid-template-columns: 1fr;
  }
}

.admin-users-geo-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.admin-users-geo-panel__head .admin-users-lead {
  margin: 0;
  flex: 1 1 280px;
}

.admin-users-geo-panel__bulk-form {
  flex-shrink: 0;
}

.admin-users-geo-panel__empty {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px dashed var(--border);
}

.admin-users-geo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.admin-users-geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-users-geo-table th,
.admin-users-geo-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-users-geo-table th {
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-soft);
  white-space: nowrap;
}

.admin-users-geo-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-users-geo-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.admin-users-geo-panel__pagination {
  margin-top: 12px;
}

.admin-security-logs__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
}

.admin-security-logs__intro {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.admin-security-logs__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-security-logs__summary strong {
  color: var(--text);
  font-weight: 700;
}

.admin-security-logs__filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) repeat(2, minmax(0, 0.8fr)) auto auto;
  gap: 8px 10px;
  align-items: end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.admin-security-logs__filters .field label {
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.admin-security-logs__filters .field input,
.admin-security-logs__filters .field select {
  padding: 7px 10px;
  font-size: 0.84rem;
}

.admin-security-logs__errors-only {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  white-space: nowrap;
  padding-bottom: 8px;
}

.admin-security-logs__filters .auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
}

.admin-security-logs__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.admin-security-logs__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-security-logs__table th,
.admin-security-logs__table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-security-logs__table th {
  font-weight: 600;
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--surface-soft);
  white-space: nowrap;
}

.admin-security-logs__table tbody tr:last-child td {
  border-bottom: none;
}

.admin-security-logs__table tbody tr:hover {
  background: var(--surface-soft);
}

.admin-security-logs__time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.admin-security-logs__status {
  display: inline-block;
  min-width: 2.4rem;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-security-logs__status.is-ok {
  background: #e8f3ea;
  color: #2f5a3a;
}

.admin-security-logs__status.is-error {
  background: #fdecec;
  color: #8b2f2f;
}

.admin-security-logs__event {
  white-space: nowrap;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-security-logs__user a {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}

.admin-security-logs__user a:hover {
  color: var(--accent-strong, #8a9f82);
}

.admin-security-logs__user-email {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}

.admin-security-logs__ip code {
  font-size: 0.76rem;
  white-space: nowrap;
}

.admin-security-logs__request {
  min-width: 12rem;
  max-width: 28rem;
}

.admin-security-logs__method {
  display: inline-block;
  margin-right: 4px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--surface-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.admin-security-logs__api {
  display: inline-block;
  margin-right: 4px;
  padding: 0 5px;
  border-radius: 4px;
  background: #eef2ff;
  color: #3b4f8a;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}

.admin-security-logs__path {
  display: inline;
  font-size: 0.76rem;
  word-break: break-all;
}

.admin-security-logs__meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-security-logs__empty {
  padding: 16px 10px !important;
  text-align: center;
}

@media (max-width: 960px) {
  .admin-security-logs__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-security-logs__filters .auth-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .admin-security-logs__filters {
    grid-template-columns: 1fr;
  }
}

.admin-users-geo-panel__footer {
  margin: 12px 0 0;
  font-size: 0.82rem;
}

.admin-users-list {
  display: grid;
  gap: 8px;
}

.admin-users-empty {
  padding: 16px 14px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.admin-user-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(45, 42, 39, 0.05);
}

.admin-user-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.admin-user-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-user-card__body {
  flex: 1 1 200px;
  min-width: 0;
}

.admin-user-card__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 2px;
}

.admin-user-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.admin-user-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-user-pill {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
}

.admin-user-pill--active {
  border-color: #c5d9bf;
  background: #eef4ea;
  color: #4d6845;
}

.admin-user-pill--verified {
  border-color: #c5d9bf;
  background: #eef4ea;
  color: #4d6845;
}

.admin-user-pill--blocked {
  border-color: #e8c4c4;
  background: #fff8f8;
  color: #8b2f2f;
}

.admin-user-pill--email-unverified {
  border-color: #e8dcc4;
  background: #fff9ef;
  color: #8a6a2f;
}

.admin-users-toolbar__bulk {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.admin-user-card__meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  word-break: break-word;
}

.admin-user-card__stats {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.admin-user-card__stats strong {
  font-weight: 700;
  color: var(--text);
}

.admin-user-card__email {
  color: var(--text);
  font-weight: 500;
  opacity: 0.88;
}

.admin-user-card__dot {
  opacity: 0.45;
  padding: 0 2px;
}

.admin-user-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.admin-user-card__inline-form {
  display: inline;
}

.admin-user-card__icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.admin-user-card__icon-btn i {
  pointer-events: none;
}

.admin-user-card__icon-btn--accent {
  background: var(--accent);
  border-color: #9aad94;
  color: var(--on-accent);
}

.admin-user-card__icon-btn--accent:hover,
.admin-user-card__icon-btn--accent:focus-visible {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 2px 8px rgba(58, 72, 52, 0.15);
}

.admin-user-card__icon-btn--neutral {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.admin-user-card__icon-btn--neutral:hover,
.admin-user-card__icon-btn--neutral:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.admin-user-card__icon-btn--danger {
  background: #fff8f8;
  border-color: #e8c4c4;
  color: #8b2f2f;
}

.admin-user-card__icon-btn--danger:hover,
.admin-user-card__icon-btn--danger:focus-visible {
  border-color: #d49a9a;
  background: #fff0f0;
  color: #6b2424;
}

.admin-user-card__actions button.admin-user-card__icon-btn {
  appearance: none;
}

@media (max-width: 720px) {
  .admin-user-card__actions {
    width: 100%;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .admin-user-card__actions .admin-user-card__icon-btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 40px;
  }
}

.admin-users-list + .admin-pagination {
  margin-top: 18px;
  padding-top: 14px;
}

.admin-user-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-user-show__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.admin-user-show__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 280px;
}

.admin-user-show__identity-text {
  flex: 1;
  min-width: 0;
}

.admin-user-show__identity .admin-user-avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 0.86rem;
}

.admin-user-show__name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.admin-user-show__meta {
  font-size: 0.82rem;
  margin-top: 2px;
}

.admin-user-show__status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin-user-show__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.admin-user-show__actions form {
  display: inline;
}

.admin-user-show__actions .pill {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.admin-user-show__flash {
  margin-top: 10px;
}

.admin-user-show__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.admin-user-show__facts-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.admin-user-show__facts-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-user-show__facts-block--trust {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.admin-user-show__facts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
}

.admin-user-show__facts-row--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 33%;
}

.admin-user-show__fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.admin-user-show__fact .muted {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-user-show__fact strong {
  font-weight: 600;
  word-break: break-word;
}

.admin-user-show__fact small {
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-user-show__facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}

.admin-user-show__facts-grid > div {
  display: grid;
  gap: 1px;
  font-size: 0.82rem;
}

.admin-user-show__facts-grid .muted {
  font-size: 0.72rem;
}

.admin-user-show__facts-grid strong {
  font-weight: 600;
}

.admin-user-show__facts-grid small {
  font-size: 0.72rem;
  line-height: 1.3;
}

.admin-user-show__profile {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 0.82rem;
}

.admin-user-show__profile-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.admin-user-show__tagline {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
}

.admin-user-show__bio {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-user-show__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.admin-user-show__section-head .panel__title {
  margin: 0;
}

.admin-user-show__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.admin-user-show__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-user-show__table th,
.admin-user-show__table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-user-show__table th {
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface-soft);
  white-space: nowrap;
}

.admin-user-show__table tbody tr:last-child td {
  border-bottom: none;
}

.admin-user-show__table tbody tr:hover {
  background: var(--surface-soft);
}

.admin-user-show__time,
.admin-user-show__num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-user-show__actions-cell {
  white-space: nowrap;
  text-align: right;
}

.admin-user-show__actions-cell .pill {
  padding: 3px 8px;
  font-size: 0.72rem;
}

.admin-user-show__inline-form {
  display: inline;
}

.admin-user-show__report-details {
  display: grid;
  gap: 2px;
  min-width: 10rem;
  max-width: 22rem;
  color: var(--muted);
}

.admin-user-show__report-details span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-show__empty {
  padding: 14px 8px !important;
  text-align: center;
}

.admin-user-show .panel__title {
  margin-bottom: 0;
}

.page__content > .panel.admin-user-show {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .admin-user-show__head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-user-show__identity {
    width: 100%;
    flex: 1 1 auto;
  }

  .admin-user-show__identity .admin-user-avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 0.92rem;
  }

  .admin-user-show__name {
    font-size: 1.12rem;
  }

  .admin-user-show__meta {
    font-size: 0.9rem;
  }

  .admin-user-show__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-user-show__actions .pill {
    padding: 6px 12px;
    font-size: 0.84rem;
  }

  .admin-user-show__layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-user-show__facts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .admin-user-show__facts-row--single {
    max-width: none;
  }

  .admin-user-show__fact {
    font-size: 0.9rem;
  }

  .admin-user-show__facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .admin-user-show__facts-grid > div {
    font-size: 0.88rem;
  }

  .admin-user-show__facts-grid .muted {
    font-size: 0.78rem;
  }

  .admin-user-show__profile {
    font-size: 0.88rem;
  }

  .admin-user-show__tagline {
    font-size: 0.94rem;
  }

  .admin-user-show__bio {
    font-size: 0.86rem;
    -webkit-line-clamp: 6;
  }

  .admin-user-show__table {
    font-size: 0.84rem;
  }

  .admin-user-show__table th {
    font-size: 0.76rem;
  }

  .admin-user-show__table th,
  .admin-user-show__table td {
    padding: 8px 10px;
  }

  .admin-user-show__actions-cell .pill {
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  .admin-user-show__report-details span {
    white-space: normal;
  }

  .panel.admin-user-show {
    padding: 14px 12px;
  }
}

@media (max-width: 900px) {
  .admin-user-show__layout {
    grid-template-columns: 1fr;
  }

  .admin-user-show__facts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-show__facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .admin-user-show__facts-row {
    grid-template-columns: 1fr;
  }

  .admin-user-show__facts-grid {
    grid-template-columns: 1fr;
  }
}

.admin-user-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.admin-user-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-user-facts > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.admin-user-profile-preview {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 12px;
}

.admin-user-profile-preview img {
  width: 180px;
  height: 180px;
  max-width: 180px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 20px;
  flex-shrink: 0;
}

.admin-user-reports .list__item:last-child {
  border-bottom: 0;
}

.admin-user-chats {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.admin-user-chats__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.admin-user-chats__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-user-chats__main strong {
  font-size: 0.92rem;
}

.admin-user-chats__main .muted {
  font-size: 0.82rem;
}

.admin-user-chats__more {
  margin: 12px 0 0;
  font-size: 0.84rem;
}

@media (max-width: 720px) {
  .admin-user-detail__header,
  .admin-user-profile-preview {
    flex-direction: column;
  }

  .admin-user-detail__grid,
  .admin-user-facts {
    grid-template-columns: 1fr;
  }
}

.list__item--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.report-body {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
}

.report-details {
  white-space: pre-wrap;
  word-break: break-word;
}

.report-meta--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
}

.report-review-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Meldungen (Web): Button + Dialog */
.seller-profile__report {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.report-dialog__intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
}

.report-dialog__form .field {
  margin-bottom: 12px;
}

.report-dialog__form select,
.report-dialog__form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.report-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.chat-report-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.report-chat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.admin-chat-mod-head {
  margin-bottom: 10px;
}

.admin-chats__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
}

.admin-chats__intro {
  margin: 4px 0 0;
  font-size: 0.84rem;
}

.admin-chats__count {
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-chats__count strong {
  color: var(--text);
  font-weight: 700;
}

.admin-chats__search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.admin-chats__search-field {
  flex: 1 1 280px;
  margin: 0;
}

.admin-chats__search-field input {
  width: 100%;
}

.admin-chats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.admin-chat-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-chat-card:hover {
  border-color: color-mix(in srgb, var(--accent-strong, #8a9f82) 35%, var(--border));
  box-shadow: 0 4px 18px rgba(42, 51, 45, 0.06);
}

.admin-chat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-chat-card__type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-chat-card__type.is-listing {
  background: #eef4ea;
  color: #3f5a45;
}

.admin-chat-card__type.is-direct {
  background: #eef2ff;
  color: #3b4f8a;
}

.admin-chat-card__time {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-chat-card__title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.admin-chat-card__listing {
  margin: -4px 0 0;
  font-size: 0.78rem;
}

.admin-chat-card__participants {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.admin-chat-card__person {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-chat-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-strong, #8a9f82);
  color: var(--on-accent, #2a332d);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-strong, #8a9f82);
  color: var(--on-accent, #2a332d);
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-user-avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
}

.admin-user-avatar--md {
  width: 32px;
  height: 32px;
  font-size: 0.72rem;
}

.admin-user-avatar--lg {
  width: 40px;
  height: 40px;
  font-size: 0.78rem;
}

.admin-user-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-chat-card__person-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.admin-chat-card__role {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.admin-chat-card__name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-chat-card__between {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-chat-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.admin-chat-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-chat-card__stats strong {
  color: var(--text);
}

.admin-chat-card__uuid {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.admin-chat-card__action {
  flex-shrink: 0;
}

.admin-chats__empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.admin-chats--detail .admin-chats__detail-head {
  display: grid;
  gap: 10px;
}

.admin-chats__back {
  justify-self: start;
}

.admin-chats__detail-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.admin-chats__detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-chats__detail-meta {
  margin: 0;
  font-size: 0.82rem;
}

.admin-chats__sale-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-chats__sale-badge.is-sold {
  background: #e8f3ea;
  color: #2f5a3a;
}

.admin-chats__sale-badge.is-elsewhere {
  background: #fff4df;
  color: #8a5a12;
}

.admin-chats__detail-participants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-chats__detail-person {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.admin-chats__detail-person-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-chats__detail-person-body strong,
.admin-chats__detail-person-body .muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-chats__detail-listing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 0.84rem;
}

.admin-chats__thread {
  display: grid;
  gap: 10px;
  max-height: min(70vh, 720px);
  overflow-y: auto;
  padding: 4px 2px;
}

.admin-chats__bubble-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.admin-chats__bubble-wrap.is-buyer {
  justify-content: flex-start;
}

.admin-chats__bubble-wrap.is-seller {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.admin-chats__bubble-wrap.is-other {
  justify-content: center;
}

.admin-chats__bubble-wrap.is-system {
  justify-content: center;
}

.admin-chats__bubble-wrap.is-system .admin-user-avatar,
.admin-chats__bubble-wrap.is-other .admin-user-avatar {
  display: none;
}

.admin-chats__bubble {
  max-width: min(100%, 34rem);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.admin-chats__bubble-wrap.is-buyer .admin-chats__bubble {
  border-bottom-left-radius: 4px;
  background: #f7faf6;
  border-color: color-mix(in srgb, var(--accent-strong, #8a9f82) 25%, var(--border));
}

.admin-chats__bubble-wrap.is-seller .admin-chats__bubble {
  border-bottom-right-radius: 4px;
  background: #f4f7fb;
  border-color: #d8e0ef;
}

.admin-chats__bubble-wrap.is-system .admin-chats__bubble,
.admin-chats__bubble-wrap.is-other .admin-chats__bubble {
  max-width: min(100%, 40rem);
  background: var(--surface-soft);
  border-style: dashed;
}

.admin-chats__bubble-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 6px;
  font-size: 0.76rem;
}

.admin-chats__bubble-head strong {
  font-size: 0.8rem;
}

.admin-chats__bubble-head time {
  color: var(--muted);
  white-space: nowrap;
}

.admin-chats__bubble-body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-chats__compose {
  margin-bottom: 16px;
}

.admin-chats__compose-hint {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-chats__compose-form textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
}

.admin-user-map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.admin-user-map__intro {
  margin: 6px 0 0;
  max-width: 42rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-user-map__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.admin-user-map__canvas {
  width: 100%;
  height: min(68vh, 560px);
  min-height: 320px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #e8ecef;
  overflow: hidden;
  z-index: 0;
}

.admin-user-map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0;
  font-size: 0.82rem;
}

.admin-user-map__legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  border: 2px solid #fff;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.admin-user-map__legend-dot--active {
  background: #5a8f6a;
}

.admin-user-map__legend-dot--blocked {
  background: #c45c5c;
}

.admin-user-map__popup {
  font-size: 0.85rem;
  line-height: 1.4;
}

.admin-user-map__popup strong {
  display: block;
  margin-bottom: 4px;
}

.admin-user-map__popup-email {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-user-map__popup a {
  font-weight: 600;
}

.admin-user-map__error {
  padding: 12px;
  color: #b42318;
}

.admin-users-index__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.admin-chat-mod-meta {
  margin: 0 0 12px;
  font-size: 13px;
}

.admin-chat-mod-participants {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.admin-chat-mod-messages {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.admin-chat-mod-msg {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel-alt, rgba(0, 0, 0, 0.03));
  border: 1px solid var(--border);
}

.admin-chat-mod-msg__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 13px;
}

.admin-chat-mod-msg__body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.45;
}

.admin-chat-list__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-chat-list__toolbar .input {
  flex: 1 1 360px;
}

.admin-chat-list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

@media (max-width: 760px) {
  .admin-chats__grid {
    grid-template-columns: 1fr;
  }

  .admin-chats__detail-participants {
    grid-template-columns: 1fr;
  }

  .admin-chat-card__participants {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-chat-card__between {
    display: none;
  }
}

.list--stacked .list__item--column {
  display: grid;
  gap: 10px;
  align-items: start;
  justify-content: stretch;
}

.list__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-pagination {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  display: block;
  font-size: 9px;
}

/* Falls irgendwo noch SVG-Pagination landet (ohne Tailwind) */
.admin-pagination svg,
.admin-pagination-wrap svg {
  width: 9px !important;
  height: 9px !important;
  max-width: 9px;
  max-height: 9px;
  display: block;
  flex-shrink: 0;
}

.admin-pagination-wrap {
  display: inline-grid;
  gap: 1px;
  margin-top: 0;
  max-width: 100%;
  vertical-align: top;
}

.admin-pagination-summary {
  margin: 0;
  font-size: 9px;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 400;
}

.admin-pagination-summary strong {
  font-weight: 500;
  color: inherit;
}

.admin-pagination-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 1px;
  padding: 0;
  margin: 0;
}

.admin-pagination-nav a,
.admin-pagination-nav span {
  display: inline-flex;
  min-width: 14px;
  height: 14px;
  padding: 0 1px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 9px;
  box-sizing: border-box;
  font-weight: 500;
  line-height: 1;
}

.admin-pagination-wrap--simple .admin-pagination-nav a,
.admin-pagination-wrap--simple .admin-pagination-nav span {
  min-width: 0;
  width: auto;
  height: auto;
  min-height: 14px;
  padding: 1px 4px;
  white-space: nowrap;
  font-size: 9px;
}

.admin-pagination-nav a:hover {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--border);
}

.admin-pagination-nav .is-active span {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--border);
}

.admin-pagination-nav .is-disabled span {
  color: var(--muted);
  opacity: 0.35;
}

.admin-status-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 6px 0 4px;
}

.admin-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.admin-status-badge--enabled {
  background: #e6f4e6;
  color: #2f6a3a;
}

.admin-status-badge--disabled {
  background: #fbe8e8;
  color: #8b2f2f;
}

.admin-status-badge--open {
  background: #fff3e0;
  color: #8a5a00;
  min-width: auto;
}

.admin-status-badge--reviewed {
  background: var(--accent-soft);
  color: var(--accent-strong);
  min-width: auto;
}

.admin-metrics-section + .admin-metrics-section {
  margin-top: 18px;
}

.admin-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.admin-kpi-item {
  background: linear-gradient(145deg, #fff6ea 0%, #fffaf3 100%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(242, 163, 89, 0.12);
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-metrics-grid .admin-metrics-section {
  margin-top: 0 !important;
  background: #fff;
  border: 1px solid var(--border-soft, #e7e7ea);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.04);
}

.admin-metrics-heading {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
}

.admin-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-metrics-note {
  margin-top: 10px;
}

/* Admin · Allgemein – Statistik (übersichtlich, gut lesbar) */
body.page-admin-general .admin-stats-panel .admin-stats-intro {
  margin: 4px 0 12px;
  font-size: 13px;
  line-height: 1.4;
}

body.page-admin-general .admin-stats-panel .admin-kpi-strip {
  gap: 10px;
  margin: 0 0 14px;
}

body.page-admin-general .admin-stats-panel .admin-kpi-item {
  box-shadow: 0 4px 12px rgba(242, 163, 89, 0.12);
}

body.page-admin-general .admin-stats-panel .admin-kpi-strip .stat {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.35;
  border-radius: 10px;
}

body.page-admin-general .admin-stats-panel .admin-kpi-strip .stat strong {
  display: block;
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.1;
}

body.page-admin-general .admin-stats-panel .admin-metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.page-admin-general .admin-stats-panel .admin-metrics-grid .admin-metrics-section {
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.page-admin-general .admin-stats-panel .admin-metrics-heading {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

body.page-admin-general .admin-stats-panel .admin-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.page-admin-general .admin-stats-panel .admin-stats-grid .stat {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  border-radius: 9px;
}

body.page-admin-general .admin-stats-panel .admin-stats-grid .stat strong {
  display: block;
  margin: 0 0 3px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
}

body.page-admin-general .admin-stats-panel .admin-metrics-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.admin-trend-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(5, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: center;
}

.admin-chart {
  margin: 8px 0 16px;
  border: 1px solid var(--border-soft, #e7e7ea);
  border-radius: 14px;
  background: #fff;
  padding: 12px 12px 10px;
}

.admin-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}

.admin-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-chart__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.admin-chart__dot--users { background: #6f7dff; }
.admin-chart__dot--listings { background: #ff9f43; }
.admin-chart__dot--messages { background: #23b5af; }
.admin-chart__dot--sales { background: #7dce82; }
.admin-chart__dot--deleted { background: #d96b7a; }

.admin-chart__plot {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 10px 8px 0;
  border-radius: 10px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.05) 1px, transparent 1px) 0 0 / 100% 25%;
}

.admin-chart__month {
  min-width: 0;
}

.admin-chart__bars {
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
}

.admin-chart__bar {
  width: 10px;
  max-width: 10px;
  flex: 0 0 10px;
  min-height: 4px;
  border-radius: 5px 5px 2px 2px;
}

.admin-chart__bar--users { background: #6f7dff; }
.admin-chart__bar--listings { background: #ff9f43; }
.admin-chart__bar--messages { background: #23b5af; }
.admin-chart__bar--sales { background: #7dce82; }
.admin-chart__bar--deleted { background: #d96b7a; }

.admin-chart__month-label {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-trend-grid > div {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 0.9rem;
}

.admin-trend-grid > div:not(.admin-trend-grid__head) {
  border: 1px solid #ececf2;
}

.admin-trend-grid__head {
  font-weight: 700;
  color: var(--text);
  background: transparent !important;
  border-bottom: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 0 !important;
  padding: 4px 2px 8px !important;
}

.admin-alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-alert-card {
  border: 1px solid #ececf2;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.admin-alert-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-alert-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.admin-alert-card__value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.admin-alert-card__thresholds {
  font-size: 12px;
}

.admin-alert-card--ok {
  border-color: #dceedd;
  background: linear-gradient(180deg, #ffffff 0%, #f8fdf8 100%);
}

.admin-alert-card--warning {
  border-color: #f4dfbf;
  background: linear-gradient(180deg, #ffffff 0%, #fffbf4 100%);
}

.admin-alert-card--danger {
  border-color: #efcdcd;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.admin-fraud-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-fraud-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
}

.admin-fraud-page__intro {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.admin-fraud-page__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-fraud-page__summary strong {
  color: var(--text);
  font-weight: 700;
}

.admin-fraud-page__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.admin-fraud-page__table-wrap--narrow {
  max-width: 36rem;
}

.admin-fraud-page__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-fraud-page__table th,
.admin-fraud-page__table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-fraud-page__table th {
  font-weight: 600;
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--surface-soft);
  white-space: nowrap;
}

.admin-fraud-page__table tbody tr:last-child td {
  border-bottom: none;
}

.admin-fraud-page__table tbody tr:hover {
  background: var(--surface-soft);
}

.admin-fraud-page__score {
  display: inline-block;
  min-width: 2rem;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-fraud-page__score.is-ok {
  background: #e8f3ea;
  color: #2f5a3a;
}

.admin-fraud-page__score.is-warning {
  background: #fff4df;
  color: #8a5a12;
}

.admin-fraud-page__score.is-danger {
  background: #fdecec;
  color: #8b2f2f;
}

.admin-fraud-page__user a {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

.admin-fraud-page__user a:hover {
  color: var(--accent-strong, #8a9f82);
}

.admin-fraud-page__user-email {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

.admin-fraud-page__blocked {
  display: inline-block;
  margin-top: 2px;
  padding: 0 5px;
  border-radius: 4px;
  background: #fdecec;
  color: #8b2f2f;
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-fraud-page__reasons {
  min-width: 14rem;
}

.admin-fraud-page__reason {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  line-height: 1.3;
}

.admin-fraud-page__actions {
  white-space: nowrap;
  text-align: right;
}

.admin-fraud-page__actions .pill {
  padding: 4px 10px;
  font-size: 0.74rem;
}

.admin-fraud-page__num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-fraud-page__empty {
  padding: 16px 10px !important;
  text-align: center;
}

.admin-fraud-page .panel__title {
  margin-bottom: 10px;
}

@media (max-width: 1200px) {
  body.page-admin-general .admin-stats-panel .admin-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .admin-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }

  body.page-admin-general .admin-stats-panel .admin-metrics-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-admin-general .admin-stats-panel .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-trend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-alert-grid {
    grid-template-columns: 1fr;
  }

  .admin-chart__plot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    gap: 14px;
    padding: 10px 6px 0;
  }

  .admin-chart__bars {
    height: 130px;
  }

  .admin-trend-grid__head {
    display: none;
  }
}

@media (max-width: 960px) {
  body.page-admin-general .page__content {
    gap: 6px;
  }

  body.page-admin-general .panel {
    padding: 10px;
    gap: 6px;
    border-radius: 12px;
  }

  body.page-admin-general .panel__title {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  body.page-admin-general .panel__heading {
    display: none;
  }

  body.page-admin-general .panel > p.muted:not(.admin-stats-intro) {
    display: none;
  }

  body.page-admin-general .admin-stats-panel .admin-stats-intro {
    display: none;
  }

  body.page-admin-general .admin-kpi-strip {
    gap: 6px;
    margin: 2px 0 4px;
  }

  body.page-admin-general .admin-metrics-grid {
    gap: 6px;
  }

  body.page-admin-general .admin-metrics-grid .admin-metrics-section {
    padding: 8px;
    border-radius: 10px;
  }

  body.page-admin-general .admin-metrics-heading {
    font-size: 0.82rem;
    margin-bottom: 4px;
  }

  body.page-admin-general .admin-stats-grid {
    gap: 4px;
  }

  body.page-admin-general .stat {
    padding: 6px 7px;
    font-size: 10px;
    line-height: 1.2;
    border-radius: 8px;
  }

  body.page-admin-general .stat strong {
    display: inline;
    margin-right: 3px;
    font-size: 0.92rem;
    line-height: 1.2;
  }

  body.page-admin-general .admin-metrics-note {
    display: none;
  }

  body.page-admin-general .admin-chart {
    margin: 2px 0 6px;
    padding: 6px;
    border-radius: 10px;
  }

  body.page-admin-general .admin-chart__legend {
    gap: 4px 8px;
    margin-bottom: 4px;
    font-size: 10px;
  }

  body.page-admin-general .admin-chart__plot {
    gap: 6px;
    padding: 2px 0 0;
  }

  body.page-admin-general .admin-chart__bars {
    height: 72px;
  }

  body.page-admin-general .admin-chart__month-label {
    font-size: 9px;
  }

  body.page-admin-general .admin-trend-grid {
    gap: 3px 6px;
    font-size: 11px;
  }

  body.page-admin-general .admin-trend-grid > div {
    padding: 2px 0;
  }

  body.page-admin-general .admin-alert-grid {
    gap: 6px;
    margin-top: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-admin-general .admin-alert-card {
    padding: 8px;
    gap: 2px;
  }

  body.page-admin-general .admin-alert-card__title {
    font-size: 10px;
    line-height: 1.2;
  }

  body.page-admin-general .admin-alert-card__value {
    font-size: 1.1rem;
  }

  body.page-admin-general .admin-alert-card__thresholds {
    display: none;
  }

  body.page-admin-general .admin-alert-card > .muted:not(.admin-alert-card__thresholds) {
    font-size: 10px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.page-admin-general .admin-status-rows {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
  }

  body.page-admin-general .admin-status-row {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  body.page-admin-general .admin-status-badge {
    min-width: 0;
    padding: 2px 7px;
    font-size: 10px;
  }

  body.page-admin-general .form-grid {
    gap: 8px;
  }

  body.page-admin-general .field {
    gap: 3px;
  }

  body.page-admin-general .field label {
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  body.page-admin-general .field input,
  body.page-admin-general .field textarea {
    padding: 7px 9px;
    font-size: 13px;
    border-radius: 10px;
  }

  body.page-admin-general .field p.muted {
    margin-top: 3px !important;
    font-size: 10px !important;
    line-height: 1.3;
  }

  body.page-admin-general .list {
    gap: 4px;
  }

  body.page-admin-general .list__item {
    padding: 4px 0;
    font-size: 11px;
  }

  body.page-admin-general .list__item--stack {
    gap: 4px;
  }

  body.page-admin-general .report-meta--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  body.page-admin-general .admin-fraud-signals {
    gap: 3px;
  }

  body.page-admin-general .admin-fraud-signals .pill {
    font-size: 10px;
    padding: 3px 7px;
  }

  body.page-admin-general .auth-actions {
    gap: 6px;
    flex-direction: column;
    align-items: stretch;
  }

  body.page-admin-general .auth-actions[style] {
    margin-top: 6px !important;
  }

  body.page-admin-general .auth-actions .button,
  body.page-admin-general .auth-actions .button--ghost,
  body.page-admin-general .auth-actions form {
    width: 100%;
  }

  body.page-admin-general .auth-actions form .button {
    width: 100%;
  }

  body.page-admin-general .button,
  body.page-admin-general .button--ghost {
    padding: 7px 10px;
    font-size: 12px;
  }

  body.page-admin-general .form-success,
  body.page-admin-general .form-error {
    font-size: 12px;
    padding: 8px 10px;
  }
}

@media (max-width: 720px) {
  body.page-admin-general .layout {
    padding: 2px 8px 8px;
  }

  body.page-admin-general .admin-kpi-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body.page-admin-general .admin-kpi-item {
    box-shadow: none;
  }

  body.page-admin-general .admin-kpi-strip .stat {
    padding: 5px 4px;
    font-size: 9px;
    text-align: center;
  }

  body.page-admin-general .admin-kpi-strip .stat strong {
    display: block;
    margin: 0 0 1px;
    font-size: 0.85rem;
  }

  body.page-admin-general .admin-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-admin-general .admin-chart {
    display: none;
  }

  body.page-admin-general .admin-trend-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    font-size: 10px;
    gap: 2px 4px;
  }

  body.page-admin-general .admin-trend-grid__head {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    padding-bottom: 2px;
  }

  body.page-admin-general .admin-trend-grid > div:nth-child(6n+1) {
    font-weight: 600;
  }

  body.page-admin-general .admin-alert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body.page-admin-general .admin-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-admin-general .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-admin-general .admin-trend-grid {
    grid-template-columns: 1.1fr repeat(5, minmax(0, 1fr));
    font-size: 9px;
    gap: 2px 3px;
  }

  body.page-admin-general .panel {
    padding: 8px;
  }
}

.size-assign-page .size-assign {
  margin-top: 14px;
}

.size-assign__create {
  margin-top: 12px;
  border: 1px dashed var(--border-soft, #e5e7eb);
  border-radius: 10px;
  padding: 8px 10px;
}

.size-assign__create summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sage-strong, #6f8f73);
  list-style: none;
}

.size-assign__create summary::-webkit-details-marker {
  display: none;
}

.size-assign__create-form {
  margin-top: 10px;
}

.size-assign__create-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 2fr) auto;
  gap: 8px;
  align-items: start;
}

.size-assign__create-row input,
.size-assign__create-row textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
}

.size-assign__create-row textarea {
  resize: vertical;
  min-height: 72px;
}

.size-assign__create-row .button {
  align-self: stretch;
  white-space: nowrap;
}

.size-assign__custom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft, #e5e7eb);
}

.size-assign__custom-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: rgba(139, 163, 139, 0.1);
  font-size: 0.82rem;
}

.size-assign__custom-chip form {
  display: inline;
  margin: 0;
}

.size-assign__custom-chip button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted, #6b7280);
  padding: 0 2px;
}

.size-assign__custom-chip button:hover {
  color: #b42318;
}

.size-assign {
  display: grid;
  gap: 16px;
}

.size-assign__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 12px 0;
  padding: 10px 12px;
  background: rgba(139, 163, 139, 0.08);
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 12px;
  font-size: 0.84rem;
}

.size-assign__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-soft, #e5e7eb);
  white-space: nowrap;
}

.size-assign__legend-item strong {
  font-weight: 600;
}

.size-assign__legend-item .muted {
  font-size: 0.78rem;
}

.size-assign__legend-delete {
  display: inline;
  margin: 0 0 0 2px;
}

.size-assign__legend-delete button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted, #6b7280);
  padding: 0 2px;
}

.size-assign__legend-delete button:hover {
  color: #b42318;
}

.size-assign__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.size-assign__section {
  background: #fff;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}

.size-assign__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(139, 163, 139, 0.06);
  list-style: none;
  cursor: default;
}

.size-assign__section-head::-webkit-details-marker {
  display: none;
}

.size-assign__section-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.size-assign__section-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
  min-width: 1.4rem;
  text-align: center;
}

.size-assign__section[open] .size-assign__section-head {
  border-bottom: 1px solid var(--border-soft, #e5e7eb);
}

.size-assign__badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-soft, #e5e7eb);
  white-space: nowrap;
}

.size-assign__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.size-assign__table td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft, #e5e7eb);
  vertical-align: middle;
}

.size-assign__table tbody tr:last-child td {
  border-bottom: none;
}

.size-assign__sub {
  width: 52%;
}

.size-assign__cell-select {
  width: 48%;
}

.size-assign__select {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  color: var(--text);
}

.size-assign__select:focus {
  outline: none;
  border-color: var(--sage-strong, #6f8f73);
  box-shadow: 0 0 0 2px rgba(139, 163, 139, 0.16);
}

.size-assign__select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.size-assign__footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 14px;
  position: sticky;
  bottom: 12px;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(15, 15, 15, 0.06);
}

@media (max-width: 1100px) {
  .size-assign__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 681px) {
  .size-assign__section-head {
    pointer-events: none;
    border-bottom: 1px solid var(--border-soft, #e5e7eb);
  }

  .size-assign__section-meta {
    display: none;
  }
}

@media (max-width: 680px) {
  .size-assign__grid {
    grid-template-columns: 1fr;
  }

  .size-assign__create-row {
    grid-template-columns: 1fr;
  }

  .size-assign__footer {
    position: static;
    box-shadow: none;
  }

  .size-assign__section-head {
    cursor: pointer;
  }

  .size-assign__section-head::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    margin-right: 2px;
    border-right: 2px solid var(--sage-strong, #6f8f73);
    border-bottom: 2px solid var(--sage-strong, #6f8f73);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
  }

  .size-assign__section[open] .size-assign__section-head::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }
}

.size-matrix {
  display: grid;
  gap: 18px;
}

.size-matrix__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.size-matrix__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  min-width: 0;
}

.size-matrix__col-head {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft, #e5e7eb);
}

.size-matrix__col-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.size-matrix__col-head .muted {
  font-size: 0.82rem;
}

.size-matrix__category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.size-matrix__category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(139, 163, 139, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.size-matrix__category-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sage-strong, #6f8f73);
  flex-shrink: 0;
}

.size-matrix__group-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.size-matrix__check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.size-matrix__check input {
  accent-color: var(--sage-strong, #6f8f73);
  margin: 0;
  flex-shrink: 0;
}

.size-matrix__check:has(input:checked) {
  background: rgba(139, 163, 139, 0.14);
  border-color: var(--sage-strong, #6f8f73);
  color: var(--sage-strong, #6f8f73);
  font-weight: 600;
}

.size-matrix__category-block {
  display: grid;
  gap: 6px;
}

.size-matrix__sub-checks {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 6px;
}

.size-matrix__check--sub {
  font-size: 0.86rem;
  padding: 7px 10px;
}

.size-matrix__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  position: sticky;
  bottom: 12px;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(15, 15, 15, 0.06);
}

@media (max-width: 900px) {
  .size-matrix__grid {
    grid-template-columns: 1fr;
  }

  .size-matrix__footer {
    position: static;
    box-shadow: none;
  }
}

.admin-open-reports-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 16px;
  margin: 0 0 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8f0, #fdebd5);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.admin-open-reports-bar__text strong {
  color: #8a5a00;
}

.admin-open-reports-bar__link {
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  white-space: nowrap;
}

.admin-open-reports-bar__link:hover {
  text-decoration: underline;
}

.phone-trust-banner {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  margin-block: 0;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* .main: oben etwas Luft, unten minimal – Abstand „unter“ der Box kommt v. a. von .content margin-top */
main.main .phone-trust-banner {
  margin: 4px auto 1px;
}

/*
 * .content hat standardmäßig margin-top: 20px → darunter wirkt ein großer Abstand
 * zur ersten Sektion (z. B. Home-„Willkommen“). Mit Hinweisbox deutlich reduzieren.
 */
main.main:has(.phone-trust-banner) > section.content {
  margin-top: 3px;
}

@media (max-width: 959px) {
  body.page-home main.main:has(.phone-trust-banner) > section.content {
    margin-top: 2px;
  }
}

/* Layout .page: zwischen Topbar, Hinweisbox und Inhalt weniger Luft */
main.page:has(.phone-trust-banner) {
  gap: 10px;
}

.phone-trust-banner__text {
  margin: 0;
}

.phone-trust-banner__cta {
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-strong) 35%, transparent);
  text-underline-offset: 2px;
}

.phone-trust-banner__cta:hover,
.phone-trust-banner__cta:focus-visible {
  color: var(--text);
  text-decoration-color: var(--accent-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-actions--baseline {
  align-items: flex-end;
  justify-content: flex-start;
}

.field--grow {
  flex: 1;
  min-width: 0;
}

.admin-catalog-lead {
  margin: 0 0 12px;
  line-height: 1.45;
  max-width: 72ch;
}

.admin-catalog-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.admin-code {
  font-size: 11px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 7px;
  border: 1px solid rgba(138, 159, 130, 0.28);
}

.admin-code-muted {
  color: var(--muted);
}

.admin-catalog-inline-form .field-row,
.admin-catalog-category__form .field-row,
.admin-catalog-sub-form .field-row,
.admin-catalog-add-sub .field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.admin-catalog-category {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 10px 12px 12px;
  margin-bottom: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-catalog-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.admin-catalog-category-grid .admin-catalog-category {
  margin-bottom: 0;
  min-width: 0;
}

.admin-catalog-category-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 1180px) {
  .admin-catalog-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-catalog-category-grid {
    grid-template-columns: 1fr;
  }
}

.admin-catalog-category__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.admin-catalog-category__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
}

.admin-catalog-category__actions .button--ghost {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 9px;
}

.admin-catalog-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.admin-catalog-icon-btn i {
  font-size: 0.75rem;
  opacity: 0.85;
}

.admin-catalog-icon-btn:hover,
.admin-catalog-icon-btn:focus-visible {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.admin-catalog-icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(138, 159, 130, 0.35);
}

.admin-catalog-icon-btn:active {
  background: rgba(138, 159, 130, 0.22);
}

.admin-catalog-category__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  min-width: 0;
  line-height: 1.15;
}

.admin-catalog-category__form {
  margin-bottom: 8px;
}

.admin-catalog-category-save-form {
  display: grid;
  gap: 8px;
}

.admin-catalog-category-save-form > .field-row {
  margin: 0;
}

.admin-catalog-category-save-form .field {
  gap: 3px;
}

.admin-catalog-category-save-form .field label {
  font-size: 9px;
}

.admin-catalog-category-save-form .field input {
  padding: 7px 9px;
  font-size: 12px;
  border-radius: 9px;
}

.admin-catalog-requires-size .field-label-like {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.admin-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.admin-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.admin-catalog-inline-form .admin-catalog-requires-size {
  min-width: 220px;
  max-width: 420px;
}

@media (max-width: 720px) {
  .admin-catalog-inline-form .field-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .admin-catalog-inline-form .field,
  .admin-catalog-inline-form .admin-catalog-requires-size,
  .admin-catalog-inline-form .auth-actions {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .admin-catalog-inline-form .auth-actions--baseline {
    align-self: stretch;
  }

  .admin-catalog-inline-form .auth-actions .button {
    width: 100%;
  }
}

.admin-catalog-subheading {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.admin-catalog-empty {
  margin-bottom: 12px;
}

.admin-catalog-sub-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-catalog-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-catalog-sub-form {
  flex: 1;
  min-width: min(100%, 260px);
}

.admin-catalog-sub-sortable {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-catalog-sub-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 36px;
  padding: 0 4px 0 0;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-alt);
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-catalog-sub-item:hover {
  border-color: rgba(138, 159, 130, 0.45);
  box-shadow: 0 2px 10px rgba(46, 41, 38, 0.04);
}

.admin-catalog-sub-item--dragging {
  opacity: 0.88;
  box-shadow: var(--shadow-soft);
}

.admin-catalog-sub-drag {
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 26px;
  color: var(--muted);
  cursor: grab;
  user-select: none;
  background: var(--accent-soft);
  border-right: 1px solid rgba(138, 159, 130, 0.22);
}

.admin-catalog-sub-drag:active {
  cursor: grabbing;
}

.admin-catalog-sub-drag i {
  font-size: 0.72rem;
  opacity: 0.75;
}

.admin-catalog-sub-name {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  margin: 3px 0 3px 6px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 8px;
  font-size: 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-catalog-sub-name::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.admin-catalog-sub-name:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(165, 185, 160, 0.28);
}

.admin-catalog-sub-item .admin-catalog-icon-btn {
  align-self: center;
  margin-left: 1px;
}

.admin-catalog-drag-hint {
  font-size: 10px;
  line-height: 1.3;
  margin: 0;
  padding: 5px 8px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--muted);
  border: 1px solid rgba(138, 159, 130, 0.22);
}

.admin-catalog-drag-hint i {
  margin-right: 4px;
  color: var(--accent-strong);
  opacity: 0.85;
}

.admin-catalog-category__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.admin-catalog-category__footer .button--ghost {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 9px;
}

.admin-catalog-category__footer .button[type="submit"] {
  min-width: 6rem;
  padding: 7px 12px;
  font-size: 11px;
  border-radius: 9px;
}

.admin-catalog-category-save-form .admin-catalog-hint + .admin-catalog-subheading {
  margin-top: 10px;
}

.admin-catalog-category-save-form .admin-catalog-subheading + .admin-catalog-drag-hint {
  margin-top: 5px;
}

.admin-catalog-category-save-form .admin-catalog-drag-hint + .admin-catalog-sub-sortable {
  margin-top: 6px;
}

.admin-catalog-category__title .pill {
  margin-left: 5px;
  vertical-align: middle;
  font-size: 9px;
  padding: 1px 6px;
}

.admin-catalog-sort-field {
  max-width: 88px;
}

.admin-catalog-sort-field input {
  width: 100%;
}

.admin-catalog-add-sub {
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

.pill--danger {
  border-color: #e8c4c4;
  background: #fff8f8;
  color: #8b2f2f;
}

.pill--muted {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.mini-card__image {
  height: 96px;
  border-radius: 12px;
  background: #e4d6cf;
}

.mini-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.button {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.15s ease, box-shadow 0.18s ease;
}

.button:hover:not(:disabled):not(.button--ghost):not(.button--ghost-danger):not(
    .button--danger-soft
  ):not(.button--danger-outline):not(.button--outline-workflow):not(.listing-show__btn-primary):not(
    .listing-show__btn-outline
  ):not(.chat-aside-product__cta) {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 14px rgba(58, 72, 52, 0.22);
  transform: translateY(-1px);
}

.button:active:not(:disabled):not(.button--ghost):not(.button--ghost-danger):not(
    .button--danger-soft
  ):not(.button--danger-outline):not(.button--outline-workflow):not(.listing-show__btn-primary):not(
    .listing-show__btn-outline
  ):not(.chat-aside-product__cta) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(58, 72, 52, 0.15);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button--ghost {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

.button--outline-workflow {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--accent-strong, #8a9f82);
}

.button--confirm-sale {
  background: #a5b9a0;
  color: #2e2926;
  border: 1px solid #a5b9a0;
}

.button--confirm-sale:hover:not(:disabled) {
  background: #b1c2ac;
  border-color: #b1c2ac;
  color: #2e2926;
  box-shadow: none;
  transform: none;
}

.button--confirm-sale:active:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.button--outline-workflow:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.button--outline-workflow:active:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.button--ghost:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  box-shadow: none;
  transform: translateY(-1px);
}

.button--ghost:active:not(:disabled) {
  transform: translateY(0);
}

.button--danger-outline {
  background: transparent;
  border: 1px solid #c0392b;
  color: #c0392b;
  margin-top: 12px;
}

.button--danger-outline:hover {
  background: #fff5f5;
}

/* Nur innerhalb von .panel-grid (4-Spalten-Dashboard); sonst bläht span 2 das
   Parent-Grid von .page__content künstlich auf 2 Spalten auf → Folge-Elemente nur halb breit. */
.panel-grid .panel--wide {
  grid-column: span 2;
}

.panel--tall {
  min-height: 260px;
}

.panel--soft {
  background: var(--surface-alt);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  background: var(--surface-soft);
  border-radius: 12px;
  border: 1px solid var(--border-soft, #ececf2);
  padding: 12px 10px;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.1;
  color: var(--text);
}

.upload {
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.upload__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-weight: 700;
}

.chat-preview {
  display: grid;
  gap: 12px;
}

.chat-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.chat-row__bubble {
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 8px 12px;
  color: var(--text);
}

.product-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(480px, 100%);
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.auth-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--sage-strong, #6f8f73);
  cursor: pointer;
}

.auth-consent .link {
  font-size: inherit;
}

.auth-consent__required {
  color: var(--accent-strong, #d44d4f);
  margin-left: 2px;
}

.danger-zone {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(201, 79, 97, 0.3);
  border-radius: 14px;
  background: rgba(201, 79, 97, 0.04);
}

.danger-zone__title {
  font-size: 1rem;
  font-weight: 700;
  color: #a63d4d;
  margin-bottom: 6px;
}

.danger-zone__text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.danger-zone .button--danger-soft i {
  margin-right: 6px;
}

.delete-account-dialog {
  border: none;
  border-radius: 18px;
  padding: 22px;
  max-width: min(440px, 94vw);
  box-shadow: var(--shadow-soft);
}

.delete-account-dialog::backdrop {
  background: rgba(20, 20, 20, 0.45);
}

.delete-account-dialog:not([open]) {
  display: none;
}

.delete-account-dialog__form {
  display: grid;
  gap: 4px;
}

.delete-account-dialog__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #a63d4d;
}

.delete-account-dialog__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.delete-account-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.block-dialog {
  border: none;
  border-radius: 18px;
  padding: 22px;
  width: min(480px, 92vw);
  box-shadow: 0 20px 50px rgba(15, 15, 15, 0.18);
}

.block-dialog::backdrop {
  background: rgba(20, 20, 20, 0.45);
}

.block-dialog:not([open]) {
  display: none;
}

.block-dialog__form {
  display: grid;
  gap: 14px;
}

.block-dialog__header h3 {
  margin: 0 0 2px;
  font-size: 1.1rem;
}

.block-dialog__field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.block-dialog__field legend {
  font-weight: 600;
  margin-bottom: 4px;
}

.block-dialog__field textarea,
.block-dialog__field select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}

.block-dialog__radio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  cursor: pointer;
}

.block-dialog__radio input {
  margin-top: 4px;
  accent-color: var(--sage-strong, #6f8f73);
}

.block-dialog__radio span {
  display: grid;
  gap: 2px;
}

.block-dialog__radio small {
  color: var(--muted);
  font-size: 0.78rem;
}

.block-dialog__radio:has(input:checked) {
  border-color: var(--sage-strong, #6f8f73);
  background: rgba(139, 163, 139, 0.1);
}

.block-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .delete-account-dialog__actions {
    flex-direction: column-reverse;
  }

  .delete-account-dialog__actions .button {
    width: 100%;
  }

  .block-dialog__actions {
    flex-direction: column-reverse;
  }

  .block-dialog__actions .button,
  .block-dialog__actions .pill {
    width: 100%;
  }
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.register-scope-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background: rgba(232, 223, 215, 0.45);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--surface-alt);
  outline: none;
}

.field--password .password-input-wrap {
  position: relative;
  display: block;
}

.field--password .password-input-wrap input {
  width: 100%;
  padding-right: 2.75rem;
  box-sizing: border-box;
}

.password-input-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 8px;
  color: var(--muted, #877d76);
  line-height: 1;
}

.password-input-toggle:hover {
  color: var(--text, #1f1b18);
}

.password-input-toggle:focus-visible {
  outline: 2px solid var(--sage-strong, #6f8f73);
  outline-offset: 2px;
}

.field select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--surface-alt);
  outline: none;
}

.field textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--surface-alt);
  outline: none;
  min-height: 120px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-section-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
}

.profile-settings-verify-link {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft, #fafafa);
}

.profile-verify__lead {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.profile-phone-verify {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft, #fafafa);
}

.profile-phone-verify__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 600;
}

.profile-phone-verify__status--ok {
  color: #3d6b4a;
}

.profile-phone-verify__send-actions {
  margin-top: 14px;
}

.profile-phone-verify__step-code {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.profile-phone-verify__status-block {
  display: grid;
  gap: 2px;
}

.profile-phone-verify__sent-to {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.profile-phone-verify__sent-to strong {
  font-weight: 600;
  color: var(--text);
}

.profile-phone-verify__change-form {
  display: block;
  margin: 0;
}

.profile-phone-verify__change-form .link-button--subtle {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.profile-phone-verify__change-form .link-button--subtle:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.profile-phone-verify__code-field {
  gap: 4px;
  margin: 0;
}

.profile-phone-verify__code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-top: 14px;
}

.profile-phone-verify__resend-form {
  margin: 0;
}

.profile-phone-verify__resend.is-disabled,
.profile-phone-verify__resend:disabled {
  background: #ececf0 !important;
  border-color: #dcdce2 !important;
  color: #8a8a94 !important;
  cursor: not-allowed;
  opacity: 1;
}

.field--checkbox {
  margin-top: 4px;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}

.field-checkbox input {
  margin-top: 3px;
  width: auto;
  accent-color: var(--accent-strong, #8a9f82);
}

.field-checkbox span {
  line-height: 1.45;
}

.seller-profile__flash-error {
  margin-bottom: 14px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 10px;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

.form-hint {
  margin-top: -8px;
  font-size: 12px;
  color: var(--muted);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.link {
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.form-error {
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.form-error ul {
  margin: 0;
  padding-left: 18px;
}

.form-success {
  background: rgba(164, 195, 162, 0.35);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.form-success--auto-dismiss {
  transition: opacity 0.32s ease, max-height 0.32s ease, margin 0.32s ease, padding 0.32s ease;
  overflow: hidden;
}

.form-success--auto-dismiss.is-hiding {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.page {
  display: grid;
  gap: 18px;
}

.page__content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.listing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-content: start;
  width: 100%;
  min-width: 0;
  /* Einzelne Karte nicht über die ganze Zeile strecken (gilt für alle Listen inkl. Entdecken) */
  justify-items: start;
}

.listing-grid .listing-card {
  width: 100%;
  max-width: 300px;
}

.listing-grid > .listing-card-wrap {
  width: 100%;
  max-width: 300px;
}

.listing-grid--discover {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.listing-grid--discover > .listing-card-wrap {
  display: grid;
}

.listing-grid--discover .listing-card--discover {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.listing-grid--discover .listing-card--discover .listing-card__body {
  display: grid;
  grid-template-rows: 1.35em minmax(2.5em, auto) auto;
  align-content: start;
  padding: 6px 10px 8px;
  gap: 1px;
}

.listing-grid--discover .listing-card--discover .listing-card__title {
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.15;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.listing-grid--discover .listing-card--discover .listing-card__meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.1;
  color: var(--muted);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 6px;
  row-gap: 1px;
  align-items: start;
  min-height: 0;
  overflow: hidden;
}

.listing-grid--discover .listing-card--discover .listing-card__meta > span:first-child {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
}

/* Kinder (Zustand, Standort) legen sich ins Meta-Grid; Standort volle Breite Zeile 2, linksbündig */
.listing-grid--discover .listing-card--discover .listing-card__meta-right {
  display: contents;
}

.listing-grid--discover .listing-card--discover .listing-card__meta-right > span {
  max-width: 100%;
  min-width: 0;
}

.listing-grid--discover .listing-card--discover .listing-card__meta-right > span:not(.listing-card__location) {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.listing-grid--discover .listing-card--discover .listing-card__location {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.35em;
  align-items: start;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.listing-grid--discover .listing-card--discover .listing-card__location-plz {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  white-space: nowrap;
}

.listing-grid--discover .listing-card--discover .listing-card__location-ort {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-box-pack: start;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.listing-grid--discover .listing-card--discover .listing-card__location-ort--only {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  text-align: left;
}

.listing-grid--discover .listing-card--discover .listing-card__price-row {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 0;
  line-height: 1.15;
  align-self: end;
}

.listing-grid--discover .listing-card--discover .listing-card__price-row strong {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: #231f1c;
}

.listing-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.listing-card__image {
  position: relative;
  padding-top: 70%;
  background: var(--surface-soft);
}

.listing-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.listing-card__body {
  padding: 12px 14px 16px;
  display: grid;
  gap: 6px;
}

.listing-card__title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.listing-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.listing-card__meta > span {
  min-width: 0;
}

.listing-card__meta > span:last-child:not(:only-child) {
  text-align: right;
  flex-shrink: 0;
}

.listing-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.listing-card__price-row strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.listing-card--discover {
  border-radius: 16px;
}

.listing-card__favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.listing-card-wrap {
  position: relative;
  display: grid;
  gap: 8px;
}

.listing-card-wrap__action {
  display: flex;
  justify-content: center;
}

body.page-favorites .listing-card-wrap__action {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: block;
}

@media (min-width: 961px) {
  body.page-favorites .listing-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
    gap: 14px;
    align-items: stretch;
  }

  body.page-favorites .listing-grid > .listing-card-wrap,
  body.page-favorites .listing-grid .listing-card {
    max-width: none;
    width: 100%;
  }

  body.page-favorites .listing-grid > .listing-card-wrap {
    display: grid;
    grid-template-rows: 1fr;
    height: 100%;
  }

  body.page-favorites .listing-grid .listing-card {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
  }

  body.page-favorites .listing-card__image {
    padding-top: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  body.page-favorites .listing-card__image img {
    display: block;
  }

  body.page-favorites .listing-card__body {
    display: grid;
    grid-template-rows: minmax(2.6em, auto) auto auto;
    align-content: start;
  }

  body.page-favorites .listing-card__title {
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.listing-detail__meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.listing-detail__description {
  white-space: pre-line;
  margin: 0.75rem 0 0;
}

.seller-strip {
  margin-top: 14px;
}

.seller-strip__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line, #e8e0dd);
  border-radius: 14px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.seller-strip__link:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--border, #ddd5cf);
}

.seller-strip__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line, #e8e0dd);
  flex-shrink: 0;
}

.seller-strip__avatar--placeholder {
  display: inline-grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
}

.seller-strip__text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.seller-strip__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.seller-strip__name {
  font-weight: 600;
  font-size: 15px;
}

.seller-strip__chevron {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

.seller-profile__header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.seller-profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line, #e8e0dd);
  flex-shrink: 0;
}

.seller-profile__avatar--placeholder {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line, #e8e0dd);
  color: var(--muted);
  font-size: 32px;
}

.seller-profile__intro {
  min-width: 0;
}

.seller-profile__name {
  margin-bottom: 4px;
}

.seller-profile__hint {
  margin: 0;
}

.seller-profile__tenure {
  margin: 8px 0 0;
}

.seller-profile-ratings {
  margin-bottom: 20px;
}

.seller-profile-ratings__summary {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.seller-profile-ratings__avg {
  color: #c9a227;
  font-size: 1.15rem;
}

.seller-profile-ratings__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.seller-profile-ratings__item {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-soft, #faf7f5);
  border: 1px solid var(--border, #e8e0dd);
}

.seller-profile-ratings__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.seller-profile-ratings__name {
  font-weight: 600;
}

a.seller-profile-ratings__name.link {
  color: inherit;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.seller-profile-ratings__name.link:hover {
  color: var(--accent-strong);
}

.seller-profile-ratings__stars {
  font-size: 13px;
  color: var(--muted);
}

.seller-profile-ratings__comment {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}

.seller-profile-ratings__time {
  font-size: 12px;
}

/* Standard: nur Verlauf — Bär nur ab Desktop (min-width), sonst nie laden (mobil/tablet) */
.home-hero {
  background-image: linear-gradient(
      135deg,
      rgba(247, 236, 229, 0.1) 0%,
      rgba(243, 216, 213, 0.2) 100%
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  padding: 32px;
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 960px) {
  .home-hero {
    background-image: linear-gradient(
        135deg,
        rgba(247, 236, 229, 0.1) 0%,
        rgba(243, 216, 213, 0.2) 100%
      ),
      url("../images/home-hero-bg.png");
  }
}

.home-hero__content {
  display: grid;
  gap: 14px;
  align-content: center;
  max-width: 980px;
}

.home-hero__title {
  font-size: 14px;
  color: #5f5650;
}

.home-hero__brand {
  display: inline-flex;
  align-items: center;
  max-width: min(560px, 100%);
}



.home-hero__subtitle {
  color: #5f5650;
  line-height: 1.5;
  max-width: 68ch;
}

/* Mobil: eigenes Willkommens-Bild statt Bär im Hero-Hintergrund */
.home-hero__welcome-mobile {
  display: none;
}

.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.home-hero__stat {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 12px;
  font-size: 12px;
  color: #6e645e;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  text-align: center;
  align-items: center;
}

.home-hero__stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: var(--bg);
  color: #a5b9a0;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: inset 0 0 0 1px #f2f2f2;
  margin: auto;
}

.home-hero__stat-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.discover-shell {
  display: grid;
  gap: 12px;
  align-content: start;
}

/* Entdecken: grauer Seitenhintergrund (--bg) und helle Flächen → weiß */
body:has(.discover-shell) {
  background: #fff;
}

main.main:has(.discover-shell) {
  background: #fff;
}

.discover-shell .discover-category-tile:not(.is-active) {
  background: #fff;
}

.discover-shell .discover-chip:not(.is-active) {
  background: #fff;
}

.discover-shell .discover-note {
  background: #fff;
}

.discover-shell .discover-empty {
  background: #fff;
}

.discover-shell .discover-size-row__icon {
  background: #fff;
}

.discover-verify-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent-strong) 35%, var(--border));
  background: var(--accent-soft);
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  text-align: center;
}

.discover-verify-banner__text {
  display: inline;
}

.discover-verify-banner__link {
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.discover-verify-banner__link:hover {
  color: var(--accent);
}

.discover-shell__header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
}

.discover-shell__header p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: inherit;
}

.discover-filter-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.discover-filter-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--text);
}

.discover-filter-card__title i {
  color: #8a919d;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.discover-filter-card--condition,
#discover-gender.discover-filter-card,
#discover-size.discover-filter-card,
#discover-subcategory.discover-filter-card,
#discover-category.discover-filter-card,
#discover-color.discover-filter-card {
  padding: 8px 12px;
  gap: 6px;
  border-radius: 14px;
  position: relative;
  overflow: visible;
}

#discover-color.discover-filter-card.is-color-popover-open,
#discover-color.discover-filter-card:has(.discover-color-more[open]),
#discover-color.discover-filter-card:has(#discover-extended-colors-popover:not([hidden])) {
  z-index: 45;
}

.discover-filter-card--condition .discover-subcategory-row,
#discover-gender .discover-subcategory-row,
#discover-subcategory .discover-subcategory-row {
  gap: 6px;
}

.discover-filter-card--condition .discover-filter-card__title i {
  font-size: 1.05rem;
}

.discover-filter-card--own-toggle {
  padding: 8px 12px;
  gap: 6px;
  border-radius: 14px;
}

.discover-own-toggle__form {
  margin: 0;
}

.discover-own-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.discover-own-toggle__checkbox {
  width: 16px;
  height: 16px;
  accent-color: #7e9f77;
}

/* Größen-Karte auf Entdecken: gleiche kompakte Dichte wie Geschlecht / Zustand */
#discover-size .discover-size-filter--stacked {
  gap: 8px;
}

#discover-size .discover-size-row {
  gap: 8px;
  min-height: 0;
  align-items: center;
}

#discover-size .discover-size-row__meta {
  grid-template-columns: 40px 1fr;
  gap: 6px;
  min-height: 0;
}

#discover-size .discover-size-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  font-size: 13px;
}

#discover-size .discover-size-row__icon img {
  width: 32px;
  height: 32px;
}

#discover-size .discover-size-row__icon--one-size {
  color: #111;
}

#discover-size .discover-size-row__title {
  font-size: 0.82rem;
}

#discover-size .discover-size-row__hint {
  font-size: 0.7rem;
  line-height: 1.3;
}

#discover-size .discover-size-row__chips {
  gap: 6px;
}

#discover-size .discover-chip {
  padding: 6px 10px;
  font-size: 0.8rem;
  line-height: 1.3;
}

#discover-subcategory .discover-chip {
  padding: 6px 10px;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Kategorien-Karte Entdecken: kompakter wie die anderen Filter */
#discover-category .discover-category-grid {
  gap: 8px;
}

#discover-category .discover-category-tile {
  padding: 10px 6px;
  gap: 6px;
}

#discover-category .discover-category-tile__icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

#discover-category .discover-category-tile__icon img {
  width: 44px;
  height: 44px;
  background: transparent;
}

#discover-category .discover-category-tile__name {
  font-size: 0.82rem;
  line-height: 1.2;
}

.discover-size-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: hidden;
  padding-bottom: 0;
  align-items: center;
}

.discover-size-filter--stacked {
  display: grid;
  gap: 10px;
}

.discover-subcategory-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discover-subcategory-row a.discover-chip {
  text-decoration: none;
  color: inherit;
}

.discover-subcategory-row a.discover-chip:hover,
.discover-subcategory-row a.discover-chip:focus-visible {
  text-decoration: none;
}

.discover-size-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 56px;
}

.discover-size-row--all {
  grid-template-columns: 1fr;
}

.discover-size-row__meta {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 50px;
}

.discover-size-row__icon {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: #f7f2ee;
  display: grid;
  place-items: center;
  color: #bc8c7d;
  font-size: 14px;
}

.discover-size-row__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.discover-size-row__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.discover-size-row__hint {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}

.discover-size-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discover-chip {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  background: #f9fafb;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.discover-chip.is-active {
  background: #7e9f77;
  color: #fff;
}

/* Entdecken: ausgewählte Chips blas­ses Grün (nicht Vollton-Oliv); Schrift wie inaktiv */
.discover-shell .discover-chip.is-active {
  background: #eef4ea;
  border-color: #92ae87;
  color: var(--text);
}

.discover-color-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
}

.discover-color-chip {
  position: relative;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: #f9fafb;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.give-fieldset--color:has(.discover-color-more[open]),
.give-fieldset:has(.give-color-row .discover-color-more[open]) {
  position: relative;
  z-index: 45;
}

.give-fieldset .discover-color-chip {
  cursor: pointer;
}

.give-fieldset button.discover-color-chip {
  appearance: none;
  font: inherit;
  color: inherit;
}

.give-fieldset .discover-color-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.discover-color-chip__dot {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--chip-color, #ddd);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.55);
}

.discover-color-chip--other {
  width: auto;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  background: #fff;
}

.discover-color-chip__text {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.discover-color-chip.is-active,
.discover-color-chip:has(input:checked) {
  border-color: #6f9a64;
  box-shadow: 0 0 0 2px #92ae87;
  transform: scale(1.06);
  z-index: 1;
}

.discover-color-chip.is-active .discover-color-chip__dot,
.discover-color-chip:has(input:checked) .discover-color-chip__dot {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.discover-color-chip.is-active.discover-color-chip--other,
.discover-color-chip--other:has(input:checked) {
  background: #e3f0dd;
  border-color: #6f9a64;
  color: #2d3a29;
  font-weight: 700;
}

.discover-color-chip.is-active:not(.discover-color-chip--other) .discover-color-chip__dot::after,
.discover-color-chip:not(.discover-color-chip--other):has(input:checked) .discover-color-chip__dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.75),
    0 1px 2px rgba(0, 0, 0, 0.55);
}

.discover-color-more {
  position: relative;
  display: inline-flex;
}

.discover-color-more > summary {
  list-style: none;
  cursor: pointer;
}

.discover-color-more > summary::-webkit-details-marker {
  display: none;
}

#discover-color button.discover-color-chip.discover-color-chip--other {
  appearance: none;
  font: inherit;
  color: inherit;
}

.discover-color-row > .discover-color-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.discover-color-row > .discover-color-popover .discover-color-chip {
  flex: 0 0 auto;
  box-sizing: border-box;
}

.discover-color-popover .discover-color-chip:not(.discover-color-chip--other) {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  aspect-ratio: 1;
}

.discover-color-popover .discover-color-chip__dot {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discover-color-row > .discover-color-popover[hidden] {
  display: none;
}

#discover-color .discover-color-row > .discover-color-popover:not([hidden]) {
  display: flex;
}

.give-color-row.discover-color-row.is-color-popover-open > .discover-color-popover:not([hidden]) {
  display: flex;
}

#give-extended-colors-trigger {
  appearance: none;
  font: inherit;
  color: inherit;
}

.discover-shell .discover-category-reset.is-active {
  color: var(--muted, #7a6f68);
}

.discover-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.discover-filter-card__title-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.discover-category-reset {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line, #e8e0dd);
  background: #fff;
  color: var(--muted, #7a6f68);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.1;
}

.discover-category-reset.is-active {
  border-color: #92ae87;
  background: #eef4ea;
  color: #4d6845;
}

a.discover-category-reset:hover,
a.discover-category-reset:focus-visible {
  border-color: var(--accent-strong, #7d9a84);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.discover-category-tile {
  background: #f6f7f9;
  border-radius: 14px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  align-content: start;
}

.discover-category-tile.is-active {
  border-color: #92ae87;
  background: #eef4ea;
}

.discover-category-tile__icon {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: #f0ece8;
  display: grid;
  place-items: center;
  color: #b78c7f;
  font-size: 15px;
}

.discover-category-tile__icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.discover-category-tile__name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 100%;
}

.discover-note {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f7f5f2;
  color: #625c56;
}

.discover-note i {
  color: #8da181;
}

.discover-note div {
  display: grid;
  gap: 2px;
}

.discover-note strong {
  font-size: 13px;
}

.discover-note span {
  font-size: 12px;
  color: var(--muted);
}

.discover-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.discover-list-header__count {
  flex-shrink: 0;
  min-width: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.discover-list-header form {
  margin: 0;
  flex: 0 0 auto;
}

.discover-pagination-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.discover-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.discover-pagination__item {
  margin: 0;
}

.discover-pagination__item a,
.discover-pagination__item > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.discover-pagination__item a:hover {
  border-color: var(--accent, #7d9a84);
  color: var(--accent, #4a6b52);
}

.discover-pagination__item.is-disabled > span {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.discover-pagination__status span {
  border: none;
  background: transparent;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 8px;
}

.discover-empty {
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: #fbf9f8;
  color: var(--muted);
  padding: 20px 16px;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.4;
}

.discover-empty i {
  font-size: 20px;
  color: #b5aca6;
}

.discover-empty p {
  margin: 0;
  font-size: 0.82rem;
}

.discover-nearby-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid #f0d9a8;
  color: #5c4a1e;
  font-size: 0.875rem;
  line-height: 1.45;
}

.discover-nearby-hint p {
  margin: 0;
}

.discover-nearby-hint a {
  color: inherit;
  font-weight: 600;
}

.discover-nearby-hint i {
  margin-top: 2px;
  color: #b8860b;
}

.discover-sort-select {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
}

.sidebar__promo-card {
  margin-top: 18px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 14px;
  display: grid;
  gap: 8px;
  text-align: center;
}

.sidebar__promo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.sidebar__promo-emoji {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--bg);
  color: #a5b9a0;
  display: grid;
  place-items: center;
}

.sidebar__promo-title {
  font-weight: 600;
}

.filter-row .auth-actions {
  justify-content: flex-start;
}

/* Mobil/Tablet: Willkommens-Grafik — ohne graue Karten-Box, größer, stark abgerundet */
@media (max-width: 959px) {
  /* Gleicher vertikaler Abstand: unter Topbar (= margin-top) und zwischen Hero & Stat-Karten (= grid-gap) */
  body.page-home .content {
    margin-top: 10px;
    gap: 10px;
  }

  body.page-home .home-hero {
    min-height: 0;
    padding: 0;
    gap: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
  }

  body.page-home .home-hero__welcome-desktop {
    display: none !important;
  }

  body.page-home .home-hero__welcome-mobile {
    display: block !important;
    margin: 0 auto;
    width: 100%;
    max-width: min(560px, 100%);
  }

  body.page-home .home-hero__mobile-graphic {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 28px;
    box-shadow: none;
  }
}

@media (max-width: 720px) {
  .filter-row {
    grid-template-columns: 1fr;
  }

  .discover-size-row {
    grid-template-columns: 1fr;
  }
}

.listing-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.listing-gallery__item {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.listing-gallery__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.listing-gallery__item.is-cover {
  border: 2px solid var(--accent);
}

.image-button {
  border: none;
  padding: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
}

.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.image-overlay.is-active {
  display: flex;
}

.image-overlay__img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #fff;
}

.image-overlay__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #333;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.chat-panel {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.chat-messages {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.chat-message.is-own {
  align-items: flex-end;
}

.chat-message__row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 100%;
}

.chat-message.is-own .chat-message__row {
  flex-direction: row-reverse;
}

.chat-message__content {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: min(calc(100% - 40px), 32rem);
}

.chat-message__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-message__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-message__bubble {
  background: var(--surface-soft);
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-message__images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-width: min(300px, 100%);
}

.chat-message__image-link {
  display: block;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.chat-message__image {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.chat-message.is-own .chat-message__bubble {
  background: var(--accent-soft);
}

.chat-message__meta {
  font-size: 11px;
  color: var(--muted);
}

.chat-message.is-own .chat-message__meta {
  text-align: right;
}

.chat-message--system {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 2px;
}

.chat-message__system-wrap {
  max-width: min(100%, 23rem);
  width: 100%;
  text-align: center;
}

.chat-message__bubble--system {
  background: #ebe8e5;
  border: 1px solid #ddd8d3;
  color: #2e2926;
  border-radius: 10px;
  padding: 5px 9px;
  text-align: center;
  display: inline-block;
  width: auto;
  box-sizing: border-box;
  max-width: min(100%, 23rem);
  font-size: 11px;
  line-height: 1.38;
  font-weight: 400;
}

.chat-message__meta--system {
  text-align: center;
  font-size: 9px;
  color: #8b817a;
  margin-top: 2px;
}

.chat-message--rating-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 2px;
  margin-bottom: 10px;
}

.chat-rating-inline {
  max-width: min(100%, 23rem);
  width: 100%;
  padding: 5px 9px;
  box-sizing: border-box;
  background: #ebe8e5;
  border-radius: 10px;
  border: 1px solid #ddd8d3;
  text-align: center;
}

.chat-rating-inline__text {
  margin: 0 0 5px;
  font-size: 11px;
  line-height: 1.38;
  text-align: center;
  color: #2e2926;
}

.chat-rating-inline__hint {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.38;
  text-align: center;
  color: #2e2926;
}

.chat-rating-inline__btn {
  margin-top: 5px;
  width: 100%;
  padding: 8px 12px;
  font-size: 11px;
  max-width: none;
  justify-content: center;
}

.chat-dialog--rating .chat-dialog__text {
  margin-bottom: 12px;
}

.chat-dialog-rating-form {
  display: grid;
  gap: 10px;
}

.chat-dialog-rating-form__actions {
  margin-top: 4px;
}

.chat-star-picker {
  display: grid;
  gap: 8px;
}

.chat-star-picker__label {
  margin: 0;
}

.chat-star-picker__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}

.chat-star-picker__btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 2px 4px;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.12s ease, transform 0.08s ease;
}

.chat-star-picker__btn:hover {
  color: #b8860b;
}

.chat-star-picker__btn:focus-visible {
  outline: 2px solid var(--accent, #c45c26);
  outline-offset: 2px;
}

.chat-star-picker__btn--active {
  color: #c9a227;
}

.chat-star-picker__glyph {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.chat-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-alt);
  font-size: 14px;
}

.chat-workflow {
  margin-bottom: 0;
}

.chat-workflow--in-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.chat-workflow__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.chat-workflow__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Eine Zeile: gleiche Buttons (z. B. Versendet + Rückgängig) nebeneinander */
.chat-workflow__actions--row .button {
  flex: 1 1 140px;
  text-align: center;
}

.chat-workflow--undo {
  margin-top: 10px;
}

.chat-workflow__actions--single {
  width: 100%;
}

.chat-workflow__actions--single .button {
  width: 100%;
  justify-content: center;
}

.button--ghost-danger {
  background: transparent;
  border: 1px solid rgba(176, 74, 90, 0.45);
  color: #a63d4d;
}

.button--ghost-danger:hover {
  background: rgba(176, 74, 90, 0.08);
}

.button--danger-soft {
  background: #c94f61;
  border: none;
  color: #fff;
}

.button--danger-soft:hover {
  filter: brightness(1.05);
}

.chat-thread-menu__item--danger-muted {
  color: #a63d4d;
}

.chat-dialog {
  border: none;
  border-radius: 18px;
  padding: 22px;
  max-width: min(420px, 94vw);
  box-shadow: var(--shadow-soft);
}

.chat-dialog:not([open]) {
  display: none;
}

.chat-dialog--listing-picker {
  position: relative;
  padding-top: 28px;
  max-width: min(520px, 94vw);
  width: 100%;
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-dialog__text--picker-hint {
  margin-top: -4px;
  margin-bottom: 12px;
  font-size: 13px;
}

.chat-listing-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding: 2px 2px 6px;
  margin: 0 -2px;
  flex: 1;
  min-height: 0;
}

.chat-listing-picker__form {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.chat-listing-picker__tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 192px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.chat-listing-picker__tile:hover {
  border-color: var(--accent-strong);
  background: var(--surface-soft);
}

.chat-listing-picker__check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chat-listing-picker__tile:has(.chat-listing-picker__check:checked) {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-strong);
}

.chat-listing-picker__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.chat-listing-picker__thumb {
  display: block;
  width: 100%;
  height: 124px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
  position: relative;
}

.chat-listing-picker__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-listing-picker__thumb-placeholder {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 4px;
}

.chat-listing-picker__tile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-listing-picker__tile-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-listing-picker__tile-meta {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}

@media (max-width: 560px) {
  .chat-dialog--listing-picker {
    max-width: min(96vw, 460px);
    padding: 18px 14px 14px;
  }

  .chat-listing-picker__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .chat-listing-picker__tile {
    min-height: 164px;
    padding: 7px;
  }

  .chat-listing-picker__thumb {
    height: 96px;
  }
}

.chat-dialog--undo-sale {
  position: relative;
  padding-top: 28px;
}

.chat-dialog__dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.chat-dialog__dismiss:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.chat-dialog__notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.chat-dialog__notice i {
  margin-top: 2px;
  flex-shrink: 0;
}

.chat-dialog__notice--warn {
  background: #fdecef;
  border: 1px solid #f5c4cb;
  color: #5c2a32;
}

.chat-dialog-undo-form {
  display: grid;
  gap: 12px;
}

.chat-dialog::backdrop {
  background: rgba(28, 22, 18, 0.35);
}

.chat-dialog__title {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.chat-dialog__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.45;
}

.chat-dialog__forms {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-dialog__forms .button {
  width: 100%;
  justify-content: center;
}

.chat-dialog__forms--inline {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat-dialog__forms--inline .button {
  width: auto;
  flex: 1 1 calc(50% - 6px);
  min-width: 120px;
}

.chat-dialog__confirm-actions {
  margin: 0;
}

.chat-trade-rating {
  margin: 0 16px 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.chat-trade-rating__form {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.chat-trade-rating__label {
  font-size: 13px;
  font-weight: 600;
}

.chat-trade-rating__select,
.chat-trade-rating__textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.chat-trade-rating__line {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}

.chat-trade-rating__hint {
  margin: 0 0 10px;
  font-size: 14px;
}

.chat-dialog__ship-with {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-dialog__label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.chat-dialog__label input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.chat-dialog__close {
  margin-top: 8px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 8px;
}

.chat-status-banners {
  padding-top: 14px;
  padding-bottom: 14px;
}

.chat-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.chat-status-banner i {
  margin-top: 2px;
  opacity: 0.85;
}

.chat-status-banner strong {
  display: block;
  margin-bottom: 4px;
}

.chat-status-banner__track {
  display: block;
  font-weight: 400;
  font-size: 13px;
}

.chat-status-banner__track code {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
}

.chat-status-banner--muted {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.chat-status-banner--info {
  background: #f0f7ff;
  border: 1px solid #c5dcff;
  color: #1a3a5c;
}

.chat-status-banner--ok {
  background: #f0faf3;
  border: 1px solid #b8e0c8;
  color: #1a3d2a;
}

.chat-status-banner--rosa {
  background: #fdecef;
  border: 1px solid #f5c4cb;
  color: var(--text);
}

.chat-status-banner--rosa i {
  color: var(--text);
  opacity: 0.75;
}

.chat-status-banner--in-panel {
  margin-top: 14px;
}

.chat-buyer-role-hint {
  margin: 12px 0 0;
  font-size: 12px;
}

.chat-list-item-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.chat-list-item-row .chat-list-item {
  flex: 1;
  min-width: 0;
}

.chat-list-item__delete {
  flex-shrink: 0;
  margin: 0;
}

.chat-delete-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}

.chat-delete-btn:hover {
  color: #c0392b;
}

.chat-delete-panel-form {
  margin: 0;
}

.chat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--text);
}

.chat-list-item__main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-list-item__image {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-list-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-list-item__image img.chat-list-item__avatar-mark {
  object-fit: contain;
  padding: 5px;
  box-sizing: border-box;
}

.chat-list-item__image--sold img,
.chat-list-item__image--sold .listing-card__placeholder {
  filter: grayscale(1);
  opacity: 0.58;
}

.chat-list-item__sold-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(28, 22, 18, 0.48);
  pointer-events: none;
}

.chat-list-item__image--round {
  border-radius: 999px;
}

.chat-list-item__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 22px;
}

.chat-list-item__kind {
  font-weight: 600;
  color: var(--muted);
}

.chat-list-item__title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
}

.chat-list-item__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.chat-list-item__meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.25;
}

.chat-list-item__badge {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.chat-list-item__text {
  min-width: 0;
  flex: 1;
}

.chat-list-item__preview {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-list-item__aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.chat-list-item__time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-list-item__time--aside {
  text-align: right;
}

.chat-list-item-row.is-active .chat-list-item {
  background: rgba(232, 175, 175, 0.28);
  border: 1px solid rgba(232, 175, 175, 0.45);
}

.chat-list-empty {
  padding: 18px 12px;
  margin: 0;
}

/* ——— Desktop-Chat (Nachrichten): Liste · Verlauf · Artikel ——— */

body.page-chat .page__content {
  max-width: 100%;
}

.chat-flash-wide {
  margin-bottom: 0;
}

.chat-shell {
  display: grid;
  gap: 16px;
  align-items: stretch;
  min-height: min(720px, calc(100vh - 140px));
}

.chat-shell--index {
  grid-template-columns: minmax(260px, 340px) 1fr;
}

.chat-shell--thread {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(240px, 300px);
}

.chat-shell__sidebar {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(720px, calc(100vh - 140px));
}

.chat-shell__sidebar-title {
  padding: 16px 16px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
}

.conversation-list-inner {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-shell__placeholder {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  padding: 32px 24px;
  text-align: center;
}

.chat-shell__placeholder-inner {
  max-width: 320px;
}

.chat-shell__placeholder-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface-soft);
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--muted);
  margin-bottom: 14px;
}

.chat-shell__placeholder-title {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.chat-shell__placeholder-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.chat-shell__thread {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(720px, calc(100vh - 140px));
  overflow: hidden;
}

.chat-shell__thread > .chat-mobile-back,
.chat-shell__thread > .chat-thread-flash,
.chat-shell__thread > .form-success.chat-thread-flash,
.chat-shell__thread > .form-error.chat-thread-flash,
.chat-shell__thread > .chat-thread-header,
.chat-shell__thread > .chat-thread-context,
.chat-shell__thread > .chat-workflow,
.chat-shell__thread > .chat-status-banner {
  flex-shrink: 0;
}

.chat-mobile-back {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* Artikelzeile im Thread: nur wenn die rechte Spalte (Aside) ausgeblendet ist */
.chat-thread-context {
  display: none;
}

@media (max-width: 959px) {
  .chat-shell--thread .chat-thread-context {
    display: block;
    padding: 10px 16px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
  }

  .chat-thread-context__inner {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
  }

  .chat-thread-context__inner:active {
    opacity: 0.92;
  }

  .chat-thread-context__inner--static {
    cursor: default;
  }

  .chat-thread-context__inner--static:active {
    opacity: 1;
  }

  .chat-thread-context__thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface);
    display: grid;
    place-items: center;
    position: relative;
  }

  .chat-thread-context__thumb--sold img,
  .chat-thread-context__thumb--sold .chat-thread-context__placeholder {
    filter: grayscale(1);
    opacity: 0.58;
  }

  .chat-thread-context__sold-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(28, 22, 18, 0.48);
    pointer-events: none;
    z-index: 1;
  }

  .chat-thread-context__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .chat-thread-context__placeholder {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    padding: 4px;
    line-height: 1.2;
  }

  .chat-thread-context__body {
    min-width: 0;
    flex: 1;
  }

  .chat-thread-context__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 2px;
  }

  .chat-thread-context__title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .chat-thread-context__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .chat-thread-context__sum {
    font-size: 12px;
    white-space: nowrap;
    text-align: right;
    color: var(--text);
    flex-shrink: 0;
  }

  .chat-thread-context__extras {
    display: flex;
    gap: 8px;
    margin: 6px 0 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .chat-thread-context__extra-item {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
  }

  .chat-thread-context__extra-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-soft);
    display: grid;
    place-items: center;
  }

  .chat-thread-context__extra-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .chat-thread-context__extra-placeholder {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    padding: 4px;
  }

  .chat-thread-context__extra-price {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    white-space: nowrap;
  }

  .chat-thread-context__extra-remove-form {
    position: absolute;
    top: -6px;
    right: -6px;
    margin: 0;
  }

  .chat-thread-context__extra-remove {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 999px;
    background: rgba(28, 22, 18, 0.8);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0;
  }

  .chat-thread-context__meta {
    font-size: 13px;
    margin: 0;
    line-height: 1.35;
  }

  .chat-thread-context__unavailable {
    font-size: 13px;
    margin: 0;
    line-height: 1.35;
  }
}

.chat-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-thread-header__lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.chat-thread-header__text {
  flex: 1;
  min-width: 0;
}

.chat-thread-header__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-thread-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-thread-header__avatar-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.chat-thread-header__name-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-thread-header__system-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.chat-thread-header__initial {
  font-size: 16px;
  font-weight: 700;
}

.chat-thread-header__kind {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.chat-thread-header__name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}

.chat-thread-header__name-link {
  color: inherit;
  text-decoration: none;
}

.chat-thread-header__name-link:hover .chat-thread-header__name {
  text-decoration: underline;
}

.chat-thread-header__title-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-thread-header__add-items {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d4dfcf;
  background: #edf3ea;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-strong);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-thread-header__add-items:hover {
  background: #e1ebdd;
  border-color: #c8d7c1;
  color: #6f8668;
}

.chat-thread-menu {
  position: relative;
}

.chat-thread-menu__trigger {
  list-style: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid transparent;
}

.chat-thread-menu__trigger::-webkit-details-marker {
  display: none;
}

.chat-thread-menu__trigger:hover {
  background: var(--surface-soft);
  border-color: var(--border);
}

.chat-thread-menu[open] .chat-thread-menu__trigger {
  background: var(--surface-soft);
}

.chat-thread-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  z-index: 20;
}

.chat-thread-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

.chat-thread-menu__item:hover {
  background: var(--surface-soft);
}

.chat-thread-menu__item--accent {
  color: var(--accent-strong);
  font-weight: 600;
}

.chat-thread-menu__item--danger:hover {
  color: #c0392b;
}

.chat-thread-menu__form {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 6px;
}

.chat-thread-flash {
  box-sizing: border-box;
  width: fit-content;
  max-width: min(420px, calc(100% - 32px));
  margin-inline: auto;
  margin-bottom: 10px;
  text-align: center;
}

.chat-thread-flash.form-error {
  text-align: left;
}

.chat-workflow--compact {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.chat-bundle {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: 10px;
}

.chat-bundle__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.chat-bundle__title {
  font-weight: 700;
  font-size: 13px;
}

.chat-bundle__total {
  font-size: 12px;
}

.chat-bundle__list {
  display: grid;
  gap: 8px;
}

.chat-bundle__thumb-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chat-bundle__thumb-card {
  position: relative;
  flex: 0 0 auto;
}

.chat-bundle__item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  align-items: center;
}

.chat-bundle__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
}

.chat-bundle__thumb--large {
  width: 64px;
  height: 64px;
}

.chat-bundle__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-bundle__thumb-placeholder {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

.chat-bundle__item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.chat-bundle__item-meta {
  font-size: 12px;
}

.chat-bundle__remove-form {
  margin: 0;
}

.chat-bundle__remove-form--overlay {
  position: absolute;
  top: -6px;
  right: -6px;
}

.chat-bundle__remove {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.chat-bundle__remove--overlay {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 0;
  background: rgba(28, 22, 18, 0.8);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.chat-status-banner--in-thread {
  margin: 0;
  border-radius: 0;
}

.chat-panel--thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.chat-panel--thread .chat-messages {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  background: #faf8f6;
}

.chat-compose {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-form--thread {
  padding: 12px 16px 16px;
  border-top: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-form__send {
  border-radius: 999px;
  min-width: 44px;
  padding-left: 14px;
  padding-right: 14px;
}

.chat-form__attach {
  border-radius: 999px;
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-form--thread input[name='body'] {
  flex: 1;
}

.chat-form__image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: transparent;
}

.chat-panel--thread > .chat-form--disabled-hint {
  flex-shrink: 0;
  margin: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-form__image-cell {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-form__image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-form__image-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  border: none;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.chat-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
}

.chat-image-lightbox[hidden] {
  display: none !important;
}

.chat-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
}

.chat-image-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  max-height: 90vh;
  display: grid;
  place-items: center;
}

.chat-image-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  background: #111;
}

.chat-image-lightbox__x {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chat-shell__aside {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  max-height: min(720px, calc(100vh - 140px));
}

.chat-aside-card {
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-soft);
}

.chat-aside-product__image {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface-soft);
  margin-bottom: 12px;
  position: relative;
}

.chat-aside-product__image--sold img,
.chat-aside-product__image--sold .listing-card__placeholder {
  filter: grayscale(1);
  opacity: 0.58;
}

.chat-aside-product__sold-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(28, 22, 18, 0.48);
  pointer-events: none;
  z-index: 1;
}

.chat-aside-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-aside-product__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.chat-aside-product__meta {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
}

.chat-aside-product__price {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.chat-aside-product__cta {
  width: 100%;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  box-shadow: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.15s ease, box-shadow 0.18s ease;
}

.chat-aside-product__cta:hover {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58, 72, 52, 0.12);
}

.chat-aside-product__cta:active {
  transform: translateY(0);
}

.chat-aside-total__label {
  font-size: 12px;
  color: var(--muted);
}

.chat-aside-total__value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
}

.chat-aside-extras__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.chat-aside-extras__row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chat-aside-extras__item {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
}

.chat-aside-extras__thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.chat-aside-extras__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-aside-extras__placeholder {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 4px;
}

.chat-aside-extras__price {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.chat-aside-extras__remove-form {
  position: absolute;
  top: -6px;
  right: -6px;
  margin: 0;
}

.chat-aside-extras__remove {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: rgba(28, 22, 18, 0.8);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.chat-aside-profile {
  text-align: center;
}

.chat-aside-profile__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}

.chat-aside-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-aside-profile__name {
  font-weight: 700;
  margin: 0 0 4px;
}

.chat-aside-profile__hint {
  margin: 0 0 12px;
  font-size: 13px;
}

.chat-aside-safety {
  background: rgba(164, 195, 162, 0.15);
  border: 1px solid rgba(164, 195, 162, 0.35);
}

.chat-aside-safety__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.chat-aside-safety__text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 959px) {
  .chat-shell--index {
    grid-template-columns: 1fr;
  }

  .chat-shell--index .chat-shell__placeholder {
    display: none;
  }

  .chat-shell--thread {
    grid-template-columns: 1fr;
  }

  .chat-shell--thread .chat-shell__sidebar,
  .chat-shell--thread .chat-shell__aside {
    display: none;
  }

  .chat-shell__thread {
    height: calc(100dvh - 112px);
    max-height: calc(100dvh - 112px);
    overflow: hidden;
  }

  .chat-mobile-back {
    display: flex;
  }

  .chat-shell {
    min-height: auto;
  }

  body.page-chat .page__content {
    overflow: hidden;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .chat-shell--thread {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(220px, 260px);
  }
}

.chat-listing {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.chat-listing__image {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-listing__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-listing__image--round {
  border-radius: 999px;
}

.chat-listing__placeholder-user {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 26px;
}

.chat-listing__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}

.chat-listing__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.chat-listing__meta-line {
  display: inline;
}

.chat-listing__meta-key {
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

.chat-listing--user .panel__heading {
  margin: 0;
}

.seller-profile__chat {
  margin-top: 12px;
}

.forum-shell {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.forum-shell__nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.forum-shell__nav-link {
  text-decoration: none;
  color: var(--muted);
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.forum-shell__nav-link.is-active {
  color: var(--text);
  font-weight: 600;
  background: var(--accent-soft);
}

.forum-shell .card {
  border: 1px solid var(--border);
  border-radius: 14px;
}

.forum-shell .btn-primary {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--on-accent);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.15s ease, box-shadow 0.18s ease;
}

.forum-shell .btn-primary:hover:not(:disabled) {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 14px rgba(58, 72, 52, 0.22);
  transform: translateY(-1px);
}

.forum-shell .btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.forum-shell .btn-secondary {
  background: #b9b0aa;
  border-color: #b9b0aa;
  cursor: pointer;
  transition: background 0.18s ease, filter 0.18s ease, transform 0.15s ease;
}

.forum-shell .btn-secondary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.forum-shell .btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

.forum-shell .list-group-item {
  border-color: var(--border);
}

.forum-shell .breadcrumb {
  margin-bottom: 10px;
}

.forum-shell h1,
.forum-shell h2,
.forum-shell h3,
.forum-shell h4,
.forum-shell h5 {
  color: var(--text);
}

.forum-page-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.forum-page-header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.forum-hub {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 16px;
}

.forum-shell .forum-hub.forum-hub--landing {
  grid-template-columns: 1fr;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

main.main:has(.forum-hub--landing),
body:has(.forum-hub--landing) {
  background: #faf9f7;
}

main.main:has(.forum-hub--landing) > section.content {
  max-width: none;
  width: 100%;
  min-width: 0;
}

/* Forum-Index: eigene Content-Klasse (kein :has nötig) → volle Spaltenbreite */
section.content.content--forum-index {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

section.content.content--forum-index #forum-main.forum-shell {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

section.content.content--forum-index #forum-main.forum-shell--landing {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 6px 0 14px;
}

section.content.content--forum-index .forum-hub.forum-hub--landing {
  width: 100%;
  max-width: min(1280px, 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

section.content.content--forum-index .forum-shell__nav,
section.content.content--forum-index .forum-breadcrumbs {
  max-width: min(1280px, 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

section.content.content--forum-index .forum-shell .forum-breadcrumbs {
  margin-bottom: 6px;
}

section.content.content--forum-index .forum-landing__toolbar-card {
  padding: 10px 14px;
}

section.content.content--forum-index .forum-landing__categories-card {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

section.content.content--forum-index .forum-shell .forum-category-listing--in-card {
  margin: 0;
  padding: 0;
  gap: 12px;
}

/* Forum-Index: Layout-Breite erzwingen (ohne ausschließlich :has() in der Mitte der Kette) */
body.page-forum-landing .layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

body.page-forum-landing .layout > main.main,
body.page-forum-landing .layout > main.main > section.content {
  width: 100%;
  max-width: none;
  min-width: 0;
}

body.page-forum-landing #forum-main.forum-shell--landing {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

body.page-forum-landing #forum-main.forum-shell--landing .forum-hub.forum-hub--landing {
  width: 100%;
  max-width: none;
  min-width: 0;
}

body.page-forum-landing .forum-landing__hero--bare .forum-landing__lead {
  max-width: none;
}

body.page-forum-landing .forum-shell .forum-category-card--ref .forum-category-card__latest-title {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

body.page-forum-landing .forum-shell .forum-category-card--ref .forum-category-card__latest-title:hover {
  text-decoration: underline;
  color: var(--text);
}

.forum-hub--landing .forum-hub__column--center {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.forum-hub--landing .forum-widget {
  background: #fff;
  border: 1px solid rgba(45, 42, 39, 0.08);
  box-shadow: 0 1px 3px rgba(45, 42, 39, 0.06);
}

.forum-landing__hero {
  padding: 16px 18px 18px;
}

.forum-landing__hero--bare {
  padding: 0 2px 4px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.forum-landing__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.forum-landing__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
}

.forum-landing__hero--bare .forum-landing__title {
  font-size: 36px;
  letter-spacing: -0.02em;
}

.forum-landing__lead {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  max-width: 40rem;
}

.forum-landing__hero--bare .forum-landing__lead {
  margin-top: 6px;
  font-size: 16px;
  max-width: 36rem;
}

.forum-landing__toolbar {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.forum-landing__toolbar--bar {
  padding: 8px 12px;
}

.forum-landing__toolbar--bare {
  padding: 0 0 16px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.forum-landing__toolbar-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.forum-landing__search-field {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0 12px 0 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.forum-landing__search-field:focus-within {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.forum-landing__search-icon {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}

.forum-landing__toolbar-bar__cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.forum-shell .button.button--forum-primary {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 600;
}

.forum-shell .button.button--forum-primary:hover {
  filter: brightness(1.05);
}

.forum-landing__search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.forum-landing__search-input {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  background: #fafaf9;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.forum-landing__search-input:hover {
  background: #fff;
}

.forum-landing__search-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Inset: Rahmen nur am äußeren .forum-landing__search-field, nicht nochmal am Input */
.forum-landing__search-input.forum-landing__search-input--inset {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  border-radius: 0;
  padding: 11px 4px 11px 8px;
  background: transparent;
  box-shadow: none;
}

.forum-landing__search-input.forum-landing__search-input--inset:hover {
  background: transparent;
}

.forum-landing__search-input.forum-landing__search-input--inset:focus {
  outline: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.forum-landing__search-submit {
  flex-shrink: 0;
  min-width: 88px;
}

.forum-landing__toolbar-row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px solid var(--border);
}

.forum-landing__toolbar-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.forum-landing__clear-search {
  font-size: 13px;
}

.forum-landing__cta--disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.forum-landing__categories-panel {
  padding-bottom: 16px;
}

.forum-widget__header--tight {
  margin-bottom: 2px;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 6px;
}

.forum-landing__search-hint {
  font-size: 12px;
  max-width: 42%;
  text-align: right;
}

.forum-landing__empty-cats {
  margin: 8px 0 0;
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  background: var(--surface-soft);
}

.forum-landing__categories-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.forum-landing__categories-wrap .forum-landing__categories-title {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.forum-landing__categories-filter-hint {
  margin: 0 0 2px;
  font-size: 13px;
}

.forum-landing__categories-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.forum-landing__categories-head.forum-landing__categories-head--index {
  width: 100%;
  margin-bottom: 0;
}

.forum-landing__categories-create {
  flex-shrink: 0;
  white-space: nowrap;
}

.forum-landing__categories-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.forum-landing__widgets-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .forum-landing__widgets-row {
    grid-template-columns: 1fr;
  }
}

.forum-landing__section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.forum-landing__section-title--in-widget {
  font-size: 17px;
}

.forum-landing__values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.forum-landing__value-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px 14px 16px;
  box-shadow: 0 1px 2px rgba(45, 42, 39, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.forum-landing__value-card strong {
  font-size: 15px;
  color: var(--text);
}

.forum-landing__value-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.forum-landing__value-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-size: 17px;
}

@media (max-width: 1100px) {
  .forum-landing__values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .forum-landing__values {
    grid-template-columns: 1fr;
  }

  .forum-landing__toolbar-bar__cta {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
  }

  .forum-landing__toolbar-bar__cta .forum-landing__cta,
  .forum-landing__toolbar-bar__cta .button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .forum-landing__toolbar-row2 {
    flex-direction: column;
    align-items: stretch;
  }

  .forum-landing__toolbar-cta {
    justify-content: stretch;
  }

  .forum-landing__toolbar-cta .button,
  .forum-landing__toolbar-cta .forum-landing__cta {
    width: 100%;
    justify-content: center;
  }

  .forum-landing__search-hint {
    max-width: none;
    text-align: left;
  }
}

.forum-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.forum-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.forum-widget__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.forum-widget__meta {
  font-size: 12px;
  color: var(--muted);
}

.forum-widget__action {
  width: 100%;
}

.forum-widget__topic-button {
  text-decoration: none;
  white-space: nowrap;
}

.forum-category-list {
  display: grid;
  gap: 6px;
}

.forum-category-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-soft);
}

.forum-category-list__item:hover {
  background: #eee8e3;
}

.forum-category-list__name {
  font-size: 13px;
}

.forum-category-list__count {
  font-size: 12px;
  color: var(--muted);
}

.forum-topic-list {
  display: grid;
  gap: 10px;
}

.forum-topic-list__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.forum-topic-list__item:hover {
  border-color: color-mix(in srgb, var(--accent-strong) 45%, var(--border));
  box-shadow: 0 2px 10px rgba(45, 42, 39, 0.06);
}

.forum-topic-list__title {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}

.forum-topic-list__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.forum-mini-list {
  display: grid;
  gap: 8px;
}

.forum-mini-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
}

.forum-mini-list__rank,
.forum-mini-list__avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  flex-shrink: 0;
}

.forum-mini-list__text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.forum-mini-list__text small {
  color: var(--muted);
  font-size: 11px;
}

.forum-shell textarea {
  min-height: 200px;
}

.forum-shell .form-control,
.forum-shell .form-select,
.forum-shell .custom-select,
.forum-shell .input-group-text {
  border-radius: 12px;
  border-color: var(--border);
}

.forum-shell .form-control:focus,
.forum-shell .form-select:focus,
.forum-shell .custom-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.18rem rgba(214, 167, 162, 0.2);
}

.forum-shell table tr td {
  white-space: nowrap;
}

.forum-shell .deleted {
  opacity: 0.65;
}

.forum-shell .category.list-group {
  gap: 10px;
}

.forum-shell .category .list-group-item,
.forum-shell .threads.list-group .list-group-item,
.forum-shell .post.card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.forum-shell .threads.list-group {
  gap: 10px;
}

.forum-shell .post.card .card-header {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.forum-shell .badge.bg-primary {
  background-color: var(--accent-strong) !important;
}

.forum-shell .badge.bg-info {
  background-color: #8eb7cf !important;
}

.forum-shell .badge.bg-warning {
  background-color: #d5b684 !important;
}

.forum-shell .badge.bg-success {
  background-color: #8fb38e !important;
}

.forum-shell .timestamp {
  cursor: help;
}

.forum-shell .fixed-bottom-right {
  position: fixed;
  right: 0;
  bottom: 0;
}

.forum-shell .fade-enter-active,
.forum-shell .fade-leave-active {
  transition: opacity 0.3s;
}

.forum-shell .fade-enter,
.forum-shell .fade-leave-to {
  opacity: 0;
}

.mask {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(50, 50, 50, 0.2);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1020;
}

.mask.show {
  opacity: 1;
}

.forum-shell .btn,
.forum-shell .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.forum-shell .btn:hover,
.forum-shell .button:hover {
  filter: brightness(0.98);
}

.forum-shell .btn-secondary,
.forum-shell .button--ghost {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

.forum-shell .btn-danger,
.forum-shell .button--danger {
  background: #c65353;
  border-color: #a84141;
  color: #fff;
}

.forum-shell .btn-link {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 0;
}

.forum-shell .forum-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.forum-shell .forum-actions-row--end {
  justify-content: flex-end;
}

.forum-shell .forum-actions-row--center {
  justify-content: center;
}

.forum-shell .forum-page-header--split,
.forum-shell .forum-page-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.forum-shell .forum-page-footer-actions {
  align-items: center;
  margin-top: 14px;
}

.forum-shell .forum-page-header {
  margin-bottom: 12px;
}

.forum-shell .forum-pagination-wrap {
  margin: 12px 0;
}

.forum-shell .forum-empty-state {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  background: var(--surface-soft);
}

.forum-shell .forum-form-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

/* Kompakte „Neue Antwort“-Seite (forum.post.create) */
.forum-shell .forum-reply-create {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 2px 12px;
}

.forum-shell .forum-reply-create__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}

.forum-shell .forum-reply-create__panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 10px rgba(45, 42, 39, 0.05);
}

.forum-shell .forum-reply-create__context {
  margin: 0;
  padding: 10px 12px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.forum-shell .forum-reply-create__quote {
  padding: 0 10px 8px;
}

.forum-shell .forum-reply-create__quote .forum-quote-box {
  margin: 0;
}

.forum-shell .forum-reply-create__form {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.forum-shell .forum-reply-create__field {
  padding: 0 10px 8px;
  margin: 0;
}

.forum-shell .forum-reply-create__panel--clean .forum-reply-create__field {
  padding-top: 10px;
}

.forum-shell .forum-reply-create__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  margin: 0;
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.forum-shell .forum-reply-create__cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  color: #a14545;
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface-soft) 92%, #fff);
  text-decoration: none;
}

.forum-shell .forum-reply-create__cancel:hover {
  color: #862828;
  filter: brightness(0.97);
  border-color: color-mix(in srgb, #a14545 28%, var(--border));
}

@media (max-width: 720px) {
  .forum-shell .forum-reply-create__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .forum-shell .forum-reply-create__cancel {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.forum-shell .field {
  display: grid;
  gap: 6px;
}

.forum-shell .field > label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.forum-shell .forum-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  font: inherit;
  color: inherit;
}

.forum-shell .forum-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 0.18rem rgba(214, 167, 162, 0.2);
}

.forum-shell .forum-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
}

/* ——— Forum: Kategorie-Detail ——— */
.forum-shell .forum-cat-show__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 4px 16px;
}

.forum-shell .forum-cat-show__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.forum-shell .forum-cat-show__back:hover {
  color: var(--text);
}

.forum-shell .forum-cat-show__grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 1024px) {
  .forum-shell .forum-cat-show__grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }
}

.forum-shell .forum-cat-show__hero {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon text"
    "icon actions";
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 12px rgba(45, 42, 39, 0.05);
}

@media (min-width: 720px) {
  .forum-shell .forum-cat-show__hero {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon text actions";
    align-items: center;
  }
}

.forum-shell .forum-cat-show__hero-icon {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forum-shell .forum-cat-show__hero-icon-inner {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-strong) 16%, #fff);
  color: var(--accent-strong);
  font-size: 22px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-strong) 28%, transparent);
}

.forum-shell .forum-cat-show__hero-text {
  grid-area: text;
  min-width: 0;
}

.forum-shell .forum-cat-show__title {
  margin: 0 0 4px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.forum-shell .forum-cat-show__desc {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
}

.forum-shell .forum-cat-show__hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: 12px;
}

.forum-shell .forum-cat-show__hero-stats-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(45, 42, 39, 0.22);
}

.forum-shell .forum-cat-show__hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 720px) {
  .forum-shell .forum-cat-show__hero-actions {
    justify-content: flex-end;
    flex-direction: column;
    align-items: stretch;
    min-width: 168px;
  }
}

@media (min-width: 900px) {
  .forum-shell .forum-cat-show__hero-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.forum-shell .forum-cat-show__hero-actions .button {
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.forum-shell .forum-cat-show__btn-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.forum-shell .forum-cat-show__follow-form {
  display: inline-flex;
  margin: 0;
}

.forum-shell .forum-cat-show__follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.forum-shell .forum-cat-show__follow:hover {
  filter: brightness(0.98);
}

.forum-shell .forum-cat-show__follow.is-following {
  border-color: color-mix(in srgb, var(--accent-strong) 35%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface-soft));
}

.forum-shell .forum-cat-show__subcats {
  margin-top: 6px;
}

.forum-shell .forum-cat-show__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

.forum-shell .forum-cat-show__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.forum-shell .forum-cat-show__tab {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
}

.forum-shell .forum-cat-show__tab:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--border));
}

.forum-shell .forum-cat-show__tab.is-active {
  color: var(--on-accent);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.forum-shell .forum-cat-show__toolbar-right {
  display: flex;
  align-items: center;
}

.forum-shell .forum-cat-show__filter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.forum-shell .forum-cat-show__filter-select {
  min-width: 132px;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 10px;
}

@media (max-width: 719px) {
  .forum-shell .forum-cat-show__tabs {
    display: none;
  }

  .forum-shell .forum-cat-show__toolbar-right {
    width: 100%;
  }

  .forum-shell .forum-cat-show__filter {
    width: 100%;
    justify-content: space-between;
  }

  .forum-shell .forum-cat-show__filter-select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
  }
}

.forum-shell .forum-cat-show__empty {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

.forum-shell .forum-cat-show__empty-text {
  margin: 0 0 8px;
  color: var(--muted);
}

.forum-shell .forum-cat-show__empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--on-accent);
  text-decoration: none;
  border-radius: 999px;
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
}

.forum-shell .forum-cat-show__empty-link:hover {
  filter: brightness(1.05);
}

.forum-shell .forum-empty-state.forum-cat-show__empty {
  border-style: solid;
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface-soft) 92%, #fff);
}

.forum-shell .forum-cat-show__footer {
  margin-top: 12px;
}

.forum-shell .forum-cat-show__footer .forum-page-footer-actions {
  margin-top: 8px;
  gap: 8px;
}

.forum-shell .forum-cat-show__widget {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface);
  box-shadow: 0 1px 10px rgba(45, 42, 39, 0.05);
}

.forum-shell .forum-cat-show__widget + .forum-cat-show__widget {
  margin-top: 10px;
}

.forum-shell .forum-cat-show__widget-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.forum-shell .forum-cat-show__widget-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}

.forum-shell .forum-cat-show__widget-muted {
  margin: 0;
  font-size: 13px;
}

.forum-shell .forum-cat-show__statlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.forum-shell .forum-cat-show__statlist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}

.forum-shell .forum-cat-show__statlist i {
  width: 1.2em;
  margin-top: 1px;
  color: var(--muted);
}

.forum-shell .forum-threads-list--cat-show {
  gap: 0;
  margin-top: 4px;
}

.forum-shell .forum-thread-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-bottom: none;
  background: #fff;
}

.forum-shell .forum-thread-row:first-of-type {
  border-radius: 12px 12px 0 0;
}

.forum-shell .forum-thread-row:last-of-type {
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
}

.forum-shell .forum-thread-row:only-of-type {
  border-radius: 12px;
  border-bottom: 1px solid var(--border);
}

.forum-shell .forum-thread-row.pinned {
  border-left: 3px solid #8eb7cf;
}

.forum-shell .forum-thread-row.locked {
  border-left: 3px solid #d5b684;
}

.forum-shell .forum-thread-row.deleted {
  border-left: 3px solid #c65353;
  opacity: 0.85;
}

.forum-shell .forum-thread-row.is-selected {
  background: rgba(214, 167, 162, 0.08);
}

.forum-shell .forum-thread-row__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(45, 42, 39, 0.06);
}

.forum-shell .forum-thread-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.forum-shell .forum-thread-row__avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-weight: 800;
  color: var(--muted);
}

.forum-shell .forum-thread-row__body {
  min-width: 0;
}

.forum-shell .forum-thread-row__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-shell .forum-thread-row__title:hover {
  text-decoration: underline;
}

.forum-shell .forum-thread-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.forum-shell .forum-thread-row__dot {
  opacity: 0.5;
}

.forum-shell .forum-thread-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.forum-shell .forum-thread-row__tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(45, 42, 39, 0.06);
  color: var(--muted);
}

.forum-shell .forum-thread-row__tag--accent {
  background: rgba(143, 179, 142, 0.2);
  color: var(--text);
}

.forum-shell .forum-thread-row__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.forum-shell .forum-thread-row__metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.forum-shell .forum-thread-row__metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ——— Forum: Neues Thema erstellen ——— */
.forum-shell .forum-thread-create__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 4px 22px;
}

.forum-shell .forum-thread-create__grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 1024px) {
  .forum-shell .forum-thread-create__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }
}

.forum-shell .forum-thread-create__intro {
  margin-bottom: 18px;
}

.forum-shell .forum-thread-create__title {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.forum-shell .forum-thread-create__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.forum-shell .forum-thread-create__form {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: #fff;
  box-shadow: 0 1px 10px rgba(45, 42, 39, 0.05);
}

.forum-shell .forum-thread-create__field {
  margin-bottom: 14px;
}

.forum-shell .forum-thread-create__field:last-of-type {
  margin-bottom: 0;
}

.forum-shell .forum-thread-create__label {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.forum-shell .forum-thread-create__title-input {
  border-radius: 10px;
}

.forum-shell .forum-thread-create__hint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
}

.forum-shell .forum-thread-create__counter {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.forum-shell .forum-thread-create__error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #b23a3a;
}

.forum-shell .forum-thread-create__editor {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.forum-shell .forum-thread-create__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
  background: #f9f8f6;
}

.forum-shell .forum-thread-create__tb-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: default;
  opacity: 0.55;
}

.forum-shell .forum-thread-create__tb-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 3px;
}

.forum-shell .forum-thread-create__textarea {
  border: none;
  border-radius: 0;
  resize: vertical;
  min-height: 150px;
  box-shadow: none;
}

.forum-shell .forum-thread-create__textarea:focus {
  outline: none;
  box-shadow: none;
}

.forum-shell .forum-thread-create__toolbar--richtext {
  justify-content: flex-end;
}

.forum-shell .forum-thread-create__counter.is-over {
  color: #b23a3a;
}

.forum-shell .forum-thread-create__editor--richtext .tox-tinymce {
  border: none;
  border-radius: 0;
}

.forum-shell .forum-post-edit__field .tox-tinymce {
  border-radius: 10px;
  border-color: var(--border, #e8e0dd);
}

.forum-shell .forum-thread-create__tags-input {
  width: 100%;
  box-sizing: border-box;
}

.forum-shell .forum-post-card__content h2,
.forum-shell .forum-post-card__content h3,
.forum-shell .forum-post-card__content h4 {
  margin: 0.5em 0 0.35em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.forum-shell .forum-post-card__content h2 {
  font-size: 1.15rem;
}

.forum-shell .forum-post-card__content h3 {
  font-size: 1.05rem;
}

.forum-shell .forum-post-card__content h4 {
  font-size: 1rem;
}

.forum-shell .forum-post-card__content p {
  margin: 0 0 0.65em;
}

.forum-shell .forum-post-card__content p:last-child {
  margin-bottom: 0;
}

.forum-shell .forum-post-card__content ul,
.forum-shell .forum-post-card__content ol {
  margin: 0 0 0.65em;
  padding-left: 1.25em;
}

.forum-shell .forum-post-card__content blockquote {
  margin: 0.5em 0;
  padding: 0.4em 0.75em;
  border-left: 3px solid rgba(136, 169, 134, 0.65);
  background: rgba(249, 248, 246, 0.9);
  color: var(--muted, #5c534d);
}

.forum-shell .forum-post-card__content a {
  color: #5a7a52;
  text-decoration: underline;
}

.forum-shell .forum-post-card__content code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #f0ece8;
}

.forum-shell .forum-thread-show__topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.forum-shell .forum-thread-show__topic-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(136, 169, 134, 0.2);
  color: var(--text, #222);
}

.forum-shell .forum-thread-row__tag--topic {
  background: rgba(136, 169, 134, 0.15);
  color: var(--text, #222);
}

.forum-shell .forum-thread-card__topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
}

.forum-shell .forum-thread-card__topic-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(136, 169, 134, 0.12);
}

.forum-shell .forum-cat-show__tag-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forum-shell .forum-cat-show__tag-cloud li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.forum-shell .forum-cat-show__tag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(136, 169, 134, 0.14);
}

.forum-shell .forum-cat-show__tag-count {
  font-size: 12px;
  flex-shrink: 0;
}

.forum-shell .forum-thread-create__help {
  margin: 0;
  font-size: 13px;
}

.forum-shell .forum-thread-create__file-hint {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
}

.forum-shell .forum-thread-create__file-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.forum-shell .forum-thread-create__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.forum-shell .forum-thread-create__file-btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.forum-shell .forum-thread-create__file-msg {
  margin: 6px 0 0;
  font-size: 12px;
  min-height: 1.2em;
  color: var(--text-muted, #666);
}

.forum-shell .forum-thread-create__file-msg:empty {
  display: none;
}

.forum-shell .forum-thread-create__file-preview-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forum-shell .forum-thread-create__file-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.forum-shell .forum-thread-create__file-preview-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.forum-shell .forum-thread-create__file-preview-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forum-shell .forum-thread-create__file-preview-name {
  font-size: 12px;
  font-weight: 600;
  word-break: break-word;
}

.forum-shell .forum-thread-create__file-preview-remove {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.forum-shell .forum-post-card__content .forum-attached-images,
.forum-shell .forum-thread-show .forum-attached-images {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.forum-shell .forum-inline-img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 10px;
  object-fit: contain;
  vertical-align: middle;
}

.forum-shell .forum-thread-create__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.forum-shell .forum-thread-create__footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.forum-shell .forum-thread-create__notify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.forum-shell .forum-thread-create__notify input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-strong);
}

.forum-shell .forum-thread-create__tips {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 20px 22px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(45, 42, 39, 0.05);
}

.forum-shell .forum-thread-create__tips-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.forum-shell .forum-thread-create__tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.forum-shell .forum-thread-create__tips-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.forum-shell .forum-thread-create__tip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(143, 179, 142, 0.18);
  color: var(--accent-strong);
  font-size: 16px;
}

.forum-shell .forum-thread-create__tips-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}

.forum-shell .forum-thread-create__tips-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.forum-shell .forum-thread-create__tips-art {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 28px;
  opacity: 0.35;
}

/* ——— Forum: Beitrag bearbeiten ——— */
.forum-shell .forum-post-edit__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 4px 18px;
}

.forum-shell .forum-post-edit__intro {
  margin-bottom: 10px;
}

.forum-shell .forum-post-edit__title {
  margin: 0 0 3px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.forum-shell .forum-post-edit__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.forum-shell .forum-post-edit__parent {
  margin-bottom: 12px;
}

.forum-shell .forum-post-edit__parent-label {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 600;
}

.forum-shell .forum-post-edit__form {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px 12px;
  background: #fff;
  box-shadow: 0 1px 10px rgba(45, 42, 39, 0.05);
}

.forum-shell .forum-post-edit__field {
  margin-bottom: 0;
}

.forum-shell .forum-post-edit__label {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.forum-shell .forum-post-edit__textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.forum-shell .forum-post-edit__gallery-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.forum-shell .forum-post-edit__error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #b23a3a;
}

.forum-shell .forum-post-edit__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ——— Forum: Thema / Thread-Detail ——— */
.forum-shell .forum-thread-show__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 4px 20px;
}

.forum-shell .forum-thread-show__grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 1024px) {
  .forum-shell .forum-thread-show__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }
}

.forum-shell .forum-thread-show__page-head {
  margin-bottom: 12px;
}

.forum-shell .forum-thread-show__page-head-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 14px;
}

@media (max-width: 720px) {
  .forum-shell .forum-thread-show__page-head-row {
    flex-wrap: wrap;
  }

  .forum-shell .forum-thread-show__title {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .forum-shell .forum-thread-show__hero-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
  }
}

.forum-shell .forum-thread-show__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.forum-shell .forum-thread-show__hero-actions {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.forum-shell .forum-thread-show__save-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 720px) {
  .forum-shell .forum-thread-show__hero-actions {
    flex-wrap: wrap;
  }

  .forum-shell .forum-thread-show__hero-actions .button {
    margin-top: 2px;
  }
}

@media (max-width: 720px) {
  .forum-shell .forum-thread-show__topic-tags {
    margin: 10px 0 16px;
    gap: 10px;
  }
}

.forum-shell .forum-thread-show__hero-actions .button.button--ghost.forum-thread-show__icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(45, 42, 39, 0.04);
}

.forum-shell .forum-thread-show__hero-actions .button.button--ghost.forum-thread-show__icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.forum-shell .forum-thread-show__page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.forum-shell .forum-thread-show__meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.forum-shell .forum-thread-show__meta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(45, 42, 39, 0.06);
}

.forum-shell .forum-thread-show__meta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.forum-shell .forum-thread-show__meta-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
}

.forum-shell .forum-thread-show__meta-name {
  color: var(--text);
}

.forum-shell a.forum-author-profile-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.forum-shell a.forum-author-profile-link:hover {
  text-decoration: underline;
}

.forum-shell .forum-post-card__author.forum-author-profile-link {
  font-weight: 700;
}

.forum-shell .forum-thread-row__author-link.forum-author-profile-link,
.forum-shell .forum-thread-card__author-link.forum-author-profile-link,
.forum-shell .forum-category-card__latest-author.forum-author-profile-link {
  font-weight: 600;
}

.forum-shell .forum-thread-show__meta-sep {
  margin: 0 3px;
  opacity: 0.55;
}

.forum-shell .forum-thread-show__meta-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.forum-shell .forum-thread-show__meta-views .fa-eye {
  opacity: 0.75;
}

.forum-shell .forum-thread-show__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.forum-shell .forum-thread-show__badge {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(45, 42, 39, 0.07);
  color: var(--muted);
}

.forum-shell .forum-thread-show__badge--warn {
  background: rgba(213, 182, 132, 0.35);
  color: var(--text);
}

.forum-shell .forum-thread-show__badge--danger {
  background: rgba(198, 83, 83, 0.2);
  color: #8a3a3a;
}

.forum-shell .forum-thread-show__badge--accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.forum-shell .forum-thread-show__reply-restricted {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  font-size: 13px;
}

.forum-shell .forum-thread-show__admin-replies-only {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.forum-shell .forum-thread-show__admin-replies-only-label {
  font-size: 13px;
  font-weight: 600;
  align-items: flex-start;
  gap: 8px;
}

.forum-shell .forum-thread-show__posts--thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forum-shell .forum-poll {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent-strong, #8a9f82) 22%, var(--border));
  border-radius: 16px;
  background: linear-gradient(180deg, #faf9f7 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(28, 22, 18, 0.04);
}

.forum-shell .forum-poll__head {
  margin-bottom: 12px;
}

.forum-shell .forum-poll__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong, #6f8268);
}

.forum-shell .forum-poll__title {
  margin: 8px 0 4px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.forum-shell .forum-poll__meta {
  margin: 0;
  font-size: 0.82rem;
}

.forum-shell .forum-poll__vote-form {
  margin-bottom: 14px;
}

.forum-shell .forum-poll__options {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.forum-shell .forum-poll__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.forum-shell .forum-poll__option:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent-strong, #8a9f82) 45%, var(--border));
  background: color-mix(in srgb, var(--accent-soft, #e8efe5) 55%, #fff);
}

.forum-shell .forum-poll__results {
  display: grid;
  gap: 10px;
}

.forum-shell .forum-poll__result.is-chosen .forum-poll__result-label {
  font-weight: 700;
}

.forum-shell .forum-poll__result-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.forum-shell .forum-poll__result-stats {
  color: var(--muted);
  white-space: nowrap;
}

.forum-shell .forum-poll__bar {
  height: 8px;
  border-radius: 999px;
  background: #ece8e4;
  overflow: hidden;
}

.forum-shell .forum-poll__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9eb196, #b8c9b1);
}

.forum-shell .forum-thread-create__field--poll {
  padding: 14px 0 0;
}

.forum-shell .forum-thread-create__poll-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
}

.forum-shell .forum-thread-create__poll-panel {
  display: grid;
  gap: 10px;
}

.forum-shell .forum-thread-create__poll-options {
  display: grid;
  gap: 8px;
}

.forum-shell .forum-thread-show__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin: 0;
  padding: 2px 0 8px;
  border-bottom: 1px solid var(--border);
}

.forum-shell .forum-thread-show__reply-count {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.forum-shell .forum-thread-show__sort {
  display: flex;
  align-items: center;
  gap: 6px;
}

.forum-shell .forum-thread-show__sort-select {
  min-width: 170px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
}

.forum-shell .forum-post-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 10px rgba(45, 42, 39, 0.05);
  overflow: hidden;
}

.forum-shell .forum-post-card--op {
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(45, 42, 39, 0.06);
  border-color: rgba(45, 42, 39, 0.1);
}

.forum-shell .forum-post-card--op-flathead .forum-post-card__body {
  padding-top: 14px;
}

.forum-shell .forum-post-card--deleted {
  opacity: 0.88;
}

.forum-shell .forum-post-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 0;
}

.forum-shell .forum-post-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(45, 42, 39, 0.06);
}

.forum-shell .forum-post-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.forum-shell .forum-post-card__avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
}

.forum-shell .forum-post-card__authorline {
  font-size: 13px;
  line-height: 1.3;
}

.forum-shell .forum-post-card__permalink {
  margin-left: 6px;
  font-size: 12px;
  text-decoration: none;
}

.forum-shell .forum-post-card__permalink:hover {
  text-decoration: underline;
}

.forum-shell .forum-post-card__body {
  padding: 10px 12px 12px;
}

.forum-shell .forum-post-card__content {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.forum-shell .forum-post-card__content :where(p, li, blockquote, h2, h3, h4, div, span, td, th, strong, em, b, i, u, s, sub, sup),
.forum-shell .forum-quote-box__excerpt :where(p, li, blockquote, div, span),
.forum-shell .card-body :where(p, li, blockquote, h2, h3, h4, div, span) {
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.forum-shell .forum-post-card__content a,
.forum-shell .forum-quote-box__excerpt a,
.forum-shell .card-body a {
  overflow-wrap: anywhere;
  -webkit-hyphens: none;
  hyphens: none;
}

.forum-shell .forum-post-card__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.forum-shell .forum-post-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  padding: 6px 10px 7px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
}

.forum-shell .forum-post-card__foot-left,
.forum-shell .forum-post-card__foot-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}

.forum-shell .forum-post-card__foot-right {
  margin-left: auto;
}

.forum-shell .forum-post-card__foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  opacity: 1;
  text-decoration: none;
  line-height: 1.2;
}

.forum-shell .forum-post-card__foot-btn .fa-fw,
.forum-shell .forum-post-card__foot-btn i {
  font-size: 12px;
  line-height: 1;
}

.forum-shell .forum-post-card__foot-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

/* Schlichte Like-Zeile: Button + Anzahl daneben */
.forum-shell .forum-like-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.forum-shell .forum-post-card__foot-btn--like,
.forum-shell .forum-post-card__foot-btn--guest {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

.forum-shell .forum-post-card__foot-btn--like:hover:not(:disabled),
.forum-shell a.forum-post-card__foot-btn--guest:hover {
  filter: none;
  border-color: color-mix(in srgb, var(--accent-strong) 35%, var(--border));
  color: var(--text);
}

.forum-shell .forum-post-card__foot-btn--like.is-liked {
  background: color-mix(in srgb, var(--accent-strong) 12%, transparent);
  border-color: var(--accent-strong);
  box-shadow: none;
  color: var(--accent-strong);
}

.forum-shell .forum-post-card__foot-btn--like.is-liked:hover:not(:disabled) {
  filter: none;
  background: color-mix(in srgb, var(--accent-strong) 16%, transparent);
  color: var(--accent-strong);
}

.forum-shell .forum-like-count {
  display: inline-flex;
  align-items: center;
  height: 28px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}

.forum-shell .forum-like-count.is-empty {
  display: none;
}

.forum-shell .forum-post-card__foot-stat--likes.has-likes {
  font-weight: 600;
  color: var(--muted);
}

.forum-shell .forum-post-card__foot-stat--likes.has-likes i {
  color: var(--muted);
}

.forum-shell .forum-post-card__like-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.forum-shell .forum-post-card__foot-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
}

.forum-shell .forum-post-card__foot-link:hover {
  text-decoration: underline;
}

.forum-shell button.forum-post-card__foot-link.forum-post-card__reply-toggle {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.forum-shell button.forum-post-card__foot-link.forum-post-card__reply-toggle:hover {
  text-decoration: underline;
}

.forum-shell .forum-post-card__reply-popover {
  position: fixed;
  z-index: 70;
  width: min(440px, calc(100vw - 20px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(45, 42, 39, 0.18);
  box-sizing: border-box;
}

.forum-shell .forum-post-card__reply-popover[hidden] {
  display: none !important;
}

.forum-shell .forum-post-card__reply-popover .forum-reply-composer-form {
  margin: 0;
}

.forum-shell .forum-post-card__foot-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
}

.forum-shell .forum-post-card__foot-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-shell .forum-post-card__foot-admin a {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.forum-shell .forum-post-card__foot-admin a:hover {
  color: var(--text);
}

.forum-shell .forum-post-card__post-more {
  position: relative;
}

.forum-shell .forum-post-card__post-more-summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.forum-shell .forum-post-card__post-more-summary::-webkit-details-marker {
  display: none;
}

.forum-shell .forum-post-card__post-more-summary:hover {
  background: rgba(45, 42, 39, 0.06);
  color: var(--text);
}

.forum-shell .forum-post-card__post-more-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 160px;
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(45, 42, 39, 0.12);
  z-index: 6;
}

.forum-shell .forum-post-card__post-more-panel a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.forum-shell .forum-post-card__post-more-panel a:hover {
  background: rgba(45, 42, 39, 0.05);
}

.forum-shell .forum-thread-show__pagination {
  margin: 14px 0;
}

.forum-shell #forum-quick-reply {
  margin: 10px 0 6px;
}

.forum-shell .forum-reply-composer-form {
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
}

.forum-shell .forum-reply-composer__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.forum-shell .forum-reply-composer__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(45, 42, 39, 0.06);
}

.forum-shell .forum-reply-composer__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.forum-shell .forum-reply-composer__avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}

.forum-shell .forum-reply-composer__pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px 4px 3px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(45, 42, 39, 0.06);
}

.forum-shell .forum-reply-composer__pill .forum-reply-composer__textarea {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 7px 4px;
  min-height: 38px;
  max-height: 120px;
  resize: none;
  line-height: 1.35;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  color: inherit;
  font-size: 14px;
}

.forum-shell .forum-reply-composer__pill .forum-reply-composer__textarea:focus {
  outline: none;
  border: 0 !important;
  box-shadow: none !important;
}

.forum-shell .forum-reply-composer__pill .forum-emoji-picker__toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.forum-shell .forum-reply-composer__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.forum-shell .forum-reply-composer__send:hover {
  filter: brightness(1.05);
  color: var(--on-accent);
}

.forum-shell .forum-reply-composer__send:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.forum-shell .forum-reply-composer__tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  font-size: 15px;
}

@media (max-width: 720px) {
  .forum-shell .forum-reply-composer__avatar {
    display: none;
  }

  .forum-shell .forum-reply-composer__row {
    gap: 6px;
  }
}

.forum-shell .forum-emoji-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.forum-shell .forum-emoji-picker__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.forum-shell .forum-emoji-picker__toggle:hover {
  background: color-mix(in srgb, var(--accent-soft) 65%, transparent);
  color: var(--text);
}

.forum-shell .forum-emoji-picker__popover {
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 0;
  margin-top: 6px;
  padding: 8px;
  /* display: grid würde [hidden] überschreiben — nur sichtbar wenn geöffnet */
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  width: min(248px, 78vw);
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.forum-shell .forum-emoji-picker__popover:not([hidden]) {
  display: grid;
}

.forum-shell .forum-thread-create__toolbar .forum-emoji-picker__popover {
  left: auto;
  right: 0;
}

.forum-shell .forum-emoji-picker__choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.forum-shell .forum-emoji-picker__choice:hover {
  background: var(--surface-soft);
}

.forum-shell .forum-emoji-picker__choice img.emoji {
  width: 22px;
  height: 22px;
  display: block;
  vertical-align: middle;
}

.forum-shell .forum-thread-create__toolbar .forum-emoji-picker {
  margin-left: 2px;
}

.forum-shell .forum-thread-create__toolbar .forum-emoji-picker__toggle {
  width: 30px;
  height: 30px;
  min-width: 30px;
  font-size: 15px;
  border-radius: 6px;
  opacity: 1;
  cursor: pointer;
  color: var(--text);
}

.forum-shell .forum-thread-show__back-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.forum-shell .forum-thread-show__back-cat:hover {
  color: var(--text);
}

.forum-shell .forum-thread-show__widget {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 1px 10px rgba(45, 42, 39, 0.05);
  min-width: 0;
}

.forum-shell .forum-thread-show__widget + .forum-thread-show__widget {
  margin-top: 10px;
}

.forum-shell .forum-thread-show__widget-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.forum-shell .forum-thread-show__aside-stats {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.forum-shell .forum-thread-show__aside-author {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.forum-shell .forum-thread-show__aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.forum-shell .forum-thread-show__aside-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: #fff;
}

.forum-shell .button.button--ghost.forum-thread-show__report,
.forum-shell a.button.button--ghost.forum-thread-show__report {
  width: 100%;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  opacity: 1;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.forum-shell .button.button--ghost.forum-thread-show__report:hover,
.forum-shell a.button.button--ghost.forum-thread-show__report:hover {
  filter: brightness(0.98);
  border-color: color-mix(in srgb, var(--muted) 22%, var(--border));
  color: var(--text);
}

.forum-shell .button.button--ghost.forum-thread-show__report i,
.forum-shell a.button.button--ghost.forum-thread-show__report i {
  font-size: 13px;
  opacity: 0.9;
}

.forum-shell .forum-thread-show__similar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.forum-shell .forum-thread-show__similar:last-of-type {
  border-bottom: none;
}

.forum-shell .forum-thread-show__similar-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.forum-shell .forum-thread-show__similar-meta {
  font-size: 12px;
}

.forum-shell .forum-thread-show__similar:hover .forum-thread-show__similar-title {
  text-decoration: underline;
}

.forum-shell .forum-thread-show__similar-empty {
  margin: 0;
  font-size: 14px;
}

.forum-shell .forum-thread-show__more {
  position: relative;
}

.forum-shell .forum-thread-show__hero-actions .forum-thread-show__more-summary.button.button--ghost {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 0;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f4f3f0 !important;
  border: 1px solid var(--border);
  color: var(--text);
}

.forum-shell .forum-thread-show__hero-actions > .button--forum-primary {
  white-space: nowrap;
}

.forum-shell .forum-thread-show__hero-actions .button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.forum-shell .forum-thread-show__more-summary::-webkit-details-marker {
  display: none;
}

.forum-shell .forum-thread-show__more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(45, 42, 39, 0.12);
  z-index: 40;
}

.forum-shell .forum-thread-show__more-panel a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.forum-shell .forum-thread-show__more-panel a:hover {
  background: rgba(45, 42, 39, 0.05);
}

body.page-forum-thread .forum-shell .forum-breadcrumbs {
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  body.page-forum-thread .forum-shell .forum-breadcrumbs a {
    white-space: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

.forum-shell .forum-threads-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

body.page-forum-my-threads .forum-shell .forum-page--my-themen {
  max-width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 2px 12px;
  box-sizing: border-box;
}

body.page-forum-saved-threads .forum-shell .forum-page--saved-themen {
  max-width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 2px 12px;
  box-sizing: border-box;
}

body.page-forum-my-threads .forum-shell .forum-breadcrumbs {
  margin-bottom: 6px;
}

body.page-forum-saved-threads .forum-shell .forum-breadcrumbs {
  margin-bottom: 6px;
}

body.page-forum-my-threads .forum-shell .forum-recent__hero {
  margin-bottom: 2px;
}

body.page-forum-saved-threads .forum-shell .forum-recent__hero {
  margin-bottom: 2px;
}

body.page-forum-my-threads .forum-shell .forum-recent__title {
  font-size: clamp(22px, 4vw, 30px);
}

body.page-forum-my-threads .forum-shell .forum-recent__lead {
  margin-top: 6px;
  font-size: 14px;
  max-width: 36rem;
}

body.page-forum-my-threads .forum-shell .forum-recent__list-wrap {
  padding: 10px 12px 12px;
  gap: 0;
}

body.page-forum-my-threads .forum-shell .forum-threads-list--recent {
  gap: 6px;
  margin: 0;
}

body.page-forum-saved-threads .forum-shell .forum-recent__title {
  font-size: clamp(22px, 4vw, 30px);
}

body.page-forum-saved-threads .forum-shell .forum-recent__lead {
  margin-top: 6px;
  font-size: 14px;
  max-width: 36rem;
}

body.page-forum-saved-threads .forum-shell .forum-recent__list-wrap {
  padding: 10px 12px 12px;
  gap: 0;
}

body.page-forum-saved-threads .forum-shell .forum-threads-list--recent {
  gap: 6px;
  margin: 0;
}

body.page-forum-my-threads .forum-shell .forum-page--my-themen__empty {
  margin-top: 8px;
  padding: 14px 12px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

body.page-forum-saved-threads .forum-shell .forum-page--saved-themen__empty {
  margin-top: 8px;
  padding: 14px 12px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

/* Forum: Neueste Themen */
body.page-forum-recent .forum-shell .forum-breadcrumbs {
  margin-bottom: 6px;
}

body.page-forum-recent .forum-shell .forum-page--recent {
  max-width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 2px 12px;
  box-sizing: border-box;
}

body.page-forum-recent .forum-shell .forum-recent__hero {
  margin-bottom: 2px;
}

body.page-forum-recent .forum-shell .forum-recent__title {
  font-size: clamp(22px, 4vw, 30px);
}

body.page-forum-recent .forum-shell .forum-recent__lead {
  margin-top: 6px;
  font-size: 14px;
  max-width: 36rem;
}

body.page-forum-recent .forum-shell .forum-recent__list-wrap {
  padding: 10px 12px 12px;
  gap: 0;
}

body.page-forum-recent .forum-shell .forum-threads-list--recent {
  gap: 6px;
  margin: 0;
}

body.page-forum-recent .forum-shell .forum-recent__empty {
  margin-top: 8px;
  padding: 14px 12px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.forum-shell .forum-thread-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.forum-shell .forum-thread-card.is-selected {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(214, 167, 162, 0.22);
}

.forum-shell .forum-thread-card.locked {
  border-left: 4px solid #d5b684;
}

.forum-shell .forum-thread-card.pinned {
  border-left: 4px solid #8eb7cf;
}

.forum-shell .forum-thread-card.deleted {
  border-left: 4px solid #c65353;
}

.forum-shell .forum-thread-card__main {
  min-width: 0;
}

.forum-shell .forum-thread-card__title {
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-shell .forum-thread-card__meta,
.forum-shell .forum-thread-card__last-post {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}

.forum-shell .forum-thread-card__category {
  color: var(--thread-cat, var(--accent-strong));
  font-weight: 600;
  text-decoration: none;
}

.forum-shell .forum-thread-card__category:hover {
  text-decoration: underline;
}

.forum-shell .forum-thread-card__action-link {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.forum-shell .forum-thread-card__action-link:hover {
  text-decoration: underline;
}

.forum-shell .forum-thread-card__stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.forum-shell .forum-thread-card--compact {
  padding: 8px 10px 10px;
  gap: 6px;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(45, 42, 39, 0.04);
}

.forum-shell .forum-thread-card--compact .forum-thread-card__title {
  font-size: 15px;
  font-weight: 700;
}

.forum-shell .forum-thread-card--compact .forum-thread-card__meta,
.forum-shell .forum-thread-card--compact .forum-thread-card__last-post {
  font-size: 11px;
  gap: 4px 8px;
  line-height: 1.35;
}

.forum-shell .forum-thread-card--compact .forum-thread-card__stats {
  gap: 4px;
}

.forum-shell .forum-thread-card--compact .forum-pill {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.forum-shell .forum-thread-card__row-tight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}

.forum-shell .forum-thread-card__row-tight .forum-thread-card__stats {
  flex: 1 1 auto;
  min-width: 0;
}

.forum-shell .forum-thread-card__row-tight .forum-thread-card__last-post {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
  flex: 1 1 12rem;
  min-width: 0;
  text-align: right;
}

@media (max-width: 520px) {
  .forum-shell .forum-thread-card__row-tight .forum-thread-card__last-post {
    flex: 1 1 100%;
    justify-content: flex-start;
    text-align: left;
  }
}

.forum-shell .forum-thread-card--recent.forum-thread-card--compact {
  padding: 8px 10px;
  gap: 4px;
}

.forum-shell .forum-thread-card--recent .forum-thread-card__row-tight {
  margin-top: 1px;
}

.forum-shell .forum-thread-card__select {
  justify-self: flex-end;
}

.forum-shell .forum-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: #fff;
  background: var(--accent-strong);
}

.forum-shell .forum-pill--primary {
  background: var(--accent-strong);
}

.forum-shell .forum-pill--info {
  background: #8eb7cf;
}

.forum-shell .forum-pill--warning {
  background: #d5b684;
}

.forum-shell .forum-pill--success {
  background: #8fb38e;
}

.forum-shell .forum-pill--danger {
  background: #c65353;
}

.forum-shell .forum-category-card--ref .forum-category-card__icon--ref {
  display: grid;
  place-items: center;
}

.forum-shell .forum-category-card--ref .forum-category-card__icon-fa {
  font-size: 22px;
  line-height: 1;
  opacity: 0.9;
  color: inherit;
}

body.page-forum-landing .forum-shell .forum-category-card__stats-text--ref {
  color: rgba(45, 42, 39, 0.58);
}

.forum-shell .forum-category-listing {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.forum-shell .forum-category-listing--landing {
  gap: 12px;
  margin: 4px 0 0;
}

.forum-shell .forum-category-listing--ref {
  gap: 12px;
  margin: 0;
}

.forum-shell .forum-category-card--ref {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.12fr) minmax(88px, 128px) minmax(0, 1.28fr);
  align-items: center;
  gap: 16px 28px;
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(45, 42, 39, 0.06);
  background: #fff;
  overflow: hidden;
}

.forum-shell .forum-category-card--ref .forum-category-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  font-size: 19px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

@supports (background: color-mix(in srgb, #fff 50%, #000 50%)) {
  .forum-shell .forum-category-card--ref .forum-category-card__icon {
    background: color-mix(in srgb, var(--accent-strong) 18%, #fff);
    color: var(--accent-strong);
  }
}

.forum-shell .forum-category-card--ref .forum-category-card__title-link {
  color: var(--text);
  font-weight: 700;
}

.forum-shell .forum-category-card--ref .forum-category-card__title-link:hover {
  color: var(--text);
  opacity: 0.85;
}

.forum-shell .forum-category-card__stats-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.35;
}

.forum-shell .forum-category-card__stats-text--ref {
  gap: 4px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text);
}

.forum-shell .forum-category-card__col--stats-ref {
  align-self: center;
  justify-self: start;
  text-align: left;
  white-space: nowrap;
}

.forum-shell .forum-category-card--ref .forum-category-card__title {
  font-size: 17px;
  min-width: 0;
  overflow: hidden;
}

.forum-shell .forum-category-card--ref .forum-category-card__title-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-shell .forum-category-card--ref .forum-category-card__desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.forum-shell .forum-category-card__latest-ref-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.forum-shell .forum-category-card__latest-ref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.forum-shell .forum-category-card__latest-ref-head .forum-category-card__latest-label {
  flex-shrink: 0;
}

.forum-shell .forum-category-card__delete {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.forum-shell .forum-category-card__delete:hover {
  color: #c65353;
  background: rgba(198, 83, 83, 0.08);
}

.forum-shell .forum-category-card__delete:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.forum-shell .forum-category-card__delete i {
  font-size: 15px;
  line-height: 1;
}

.forum-shell .forum-category-card__latest-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
  overflow: hidden;
}

.forum-shell .forum-category-card__latest-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.forum-shell .forum-category-card__latest-avatar-fallback {
  line-height: 1;
}

.forum-shell .forum-category-card__latest-ref-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.forum-shell .forum-category-card__latest-meta {
  font-size: 12px;
  line-height: 1.45;
  padding-bottom: 2px;
}

.forum-shell .forum-category-card__latest-meta .timestamp {
  display: inline;
}

.forum-shell .forum-subcategories--ref {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed rgba(45, 42, 39, 0.12);
  gap: 0;
}

.forum-shell .forum-subcategory-card--ref {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.forum-shell .forum-subcategory-card--ref:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .forum-shell .forum-category-card--ref {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
    column-gap: 14px;
    row-gap: 8px;
  }

  .forum-shell .forum-category-card--ref > .forum-category-card__icon {
    grid-column: 1;
    grid-row: 1;
  }

  .forum-shell .forum-category-card--ref > .forum-category-card__col--main {
    grid-column: 2;
    grid-row: 1;
  }

  .forum-shell .forum-category-card--ref > .forum-category-card__col--stats-ref {
    grid-column: 2;
    grid-row: 2;
  }

  .forum-shell .forum-category-card.forum-category-card--ref > .forum-category-card__col--latest.forum-category-card__col--latest-ref {
    grid-column: 2;
    grid-row: 3;
    max-width: none;
    width: auto;
    justify-self: stretch;
    padding: 12px 0 10px;
    margin: 4px 0 0;
    border-top: none;
    background: transparent;
    position: relative;
  }

  .forum-shell .forum-category-card.forum-category-card--ref > .forum-category-card__col--latest.forum-category-card__col--latest-ref::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-48px - 14px);
    right: -18px;
    background: rgba(45, 42, 39, 0.025);
    border-top: 1px solid var(--border);
    z-index: 0;
    pointer-events: none;
  }

  .forum-shell .forum-category-card.forum-category-card--ref > .forum-category-card__col--latest.forum-category-card__col--latest-ref > * {
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 901px) {
  .forum-shell .forum-category-card.forum-category-card--ref > .forum-category-card__col--latest.forum-category-card__col--latest-ref {
    padding: 4px 0 4px 20px;
    border-left: 1px solid var(--border);
    margin-left: 4px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Ohne :not würde display:flex die Ref-Zeilen (display:grid) überschreiben — gleiche Spezifität, später im Stylesheet. */
.forum-shell .forum-category-card:not(.forum-category-card--ref) {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  box-shadow: 0 1px 3px rgba(45, 42, 39, 0.06);
}

.forum-shell .forum-category-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-strong);
}

.forum-shell .forum-category-card__col--main {
  flex: 1 1 220px;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.forum-shell .forum-category-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.forum-shell .forum-category-card__col--latest {
  flex: 1 1 180px;
  max-width: 280px;
  margin-left: auto;
  font-size: 12px;
  line-height: 1.35;
  display: grid;
  gap: 6px;
}

/* Nach der Basis-.col--latest-Regel: Ref-Spalte wieder herstellen (höhere Spezifität). */
.forum-shell .forum-category-card.forum-category-card--ref .forum-category-card__col--latest.forum-category-card__col--latest-ref {
  flex: unset;
  margin-left: 0;
  max-width: min(100%, 22rem);
  width: 100%;
  color: var(--muted);
  justify-self: end;
  text-align: left;
}

.forum-shell .forum-category-card--ref > .forum-category-card__col--main {
  flex: unset;
  min-width: 0;
}

.forum-shell .forum-category-card__latest-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.forum-shell .forum-category-card__latest-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-shell .forum-category-card__latest-title:hover {
  text-decoration: underline;
}

.forum-shell .forum-category-card__latest-block .timestamp {
  font-size: 11px;
}

.forum-shell .forum-category-card__latest-empty {
  font-size: 12px;
  color: var(--muted);
}

.forum-shell .forum-subcategory-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.forum-shell .forum-category-card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.forum-shell .forum-category-card__title-link {
  color: var(--forum-cat-accent, var(--text));
  text-decoration: none;
  font-weight: 700;
  text-underline-offset: 3px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.forum-shell .forum-category-card__title-link:hover {
  text-decoration: underline;
  opacity: 0.92;
}

.forum-shell .forum-subcategory-card__link {
  color: var(--forum-cat-accent, var(--text));
  text-decoration: none;
  font-weight: 600;
  text-underline-offset: 2px;
}

.forum-shell .forum-subcategory-card__link:hover {
  text-decoration: underline;
}

.forum-shell .forum-category-card__stats,
.forum-shell .forum-subcategory-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.forum-shell .forum-pill--soft {
  background: #eef4ea !important;
  color: #3d5238 !important;
  border: 1px solid #c5d9bf !important;
  font-weight: 600;
  font-size: 11px;
}

.forum-shell .forum-subcategories {
  display: grid;
  gap: 8px;
  flex: 1 1 100%;
  width: 100%;
}

@media (max-width: 900px) {
  .forum-shell .forum-category-card__col--latest {
    margin-left: 0;
    max-width: none;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
}

.forum-shell .forum-select-all-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.forum-shell .forum-bulk-box-wrap {
  right: 14px;
  bottom: 14px;
}

.forum-shell .forum-bulk-box {
  width: min(360px, 92vw);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.forum-shell .forum-bulk-box__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.forum-shell .forum-post__header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.forum-shell .forum-post__anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.forum-shell .forum-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 12px;
}

.forum-shell .forum-quote-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  max-width: 100%;
}

.forum-shell .forum-quote-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding: 8px 12px;
  min-height: 0;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.3;
}

.forum-shell .forum-quote-box__head-main {
  min-width: 0;
  flex: 1 1 auto;
}

.forum-shell .forum-quote-box__head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 4px;
  flex-shrink: 0;
  font-size: 13px;
  text-align: right;
}

.forum-shell .forum-quote-box__posted {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.forum-shell .forum-quote-box__sep {
  margin: 0 3px;
  opacity: 0.55;
  user-select: none;
}

.forum-shell .forum-quote-box__seq {
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.forum-shell .forum-quote-box__seq:hover {
  color: var(--text);
  text-decoration: underline;
}

.forum-shell .forum-quote-box__body {
  padding: 10px 12px 12px;
  background: #fff;
}

.forum-shell .forum-quote-box__excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.forum-shell .forum-quote-box__excerpt img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.forum-shell .forum-quote-box__author,
.forum-shell .forum-quote-box__author.forum-author-profile-link {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.forum-shell .forum-alert {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  margin-bottom: 8px;
  position: relative;
  background: #fff;
}

.forum-shell .forum-alert--danger {
  border-color: #efcdcd;
  background: #fff7f7;
}

.forum-shell .forum-alert--success {
  border-color: #dceedd;
  background: #f8fdf8;
}

.forum-shell .forum-alert--info {
  border-color: #d6e3ef;
  background: #f7fbff;
}

.forum-shell .forum-alert__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.forum-shell .forum-alert__message {
  padding-right: 18px;
}

.forum-shell .forum-breadcrumbs {
  margin-bottom: 10px;
}

.forum-shell .forum-breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}

.forum-shell .forum-breadcrumbs li + li::before {
  content: "›";
  color: var(--muted);
  margin-right: 6px;
}

.forum-shell .forum-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.forum-shell .forum-pagination {
  display: flex;
  list-style: none;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.forum-shell .forum-pagination a,
.forum-shell .forum-pagination span {
  display: inline-flex;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.forum-shell .forum-pagination .is-active span {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.forum-shell .forum-pagination .is-disabled span {
  color: var(--muted);
  opacity: 0.7;
}

.forum-shell .forum-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1030;
  padding: 16px;
}

.forum-shell .forum-modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.forum-shell .forum-modal__dialog {
  width: min(700px, 100%);
}

.forum-shell .forum-modal__content {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.forum-shell .forum-modal__header,
.forum-shell .forum-modal__footer {
  padding: 14px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.forum-shell .forum-modal__header {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.forum-shell .forum-modal__footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.forum-shell .forum-modal__title {
  margin: 0;
  font-size: 16px;
}

.forum-shell .forum-modal__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.forum-shell .forum-modal__body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.forum-shell .forum-modal__body p {
  margin: 0;
}

/* Modal: Neue Kategorie (Landing) */
.forum-shell .forum-modal.forum-modal--cat-create {
  padding: max(clamp(28px, 8vh, 72px), env(safe-area-inset-top, 0px)) 16px max(clamp(36px, 10vh, 88px), env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.forum-shell .forum-modal__dialog--cat-create {
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.forum-shell .forum-modal__dialog--cat-create::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.forum-shell .forum-modal--cat-create .forum-modal__content {
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(45, 42, 39, 0.12);
}

.forum-shell .forum-cat-create__hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.forum-shell .forum-cat-create__hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  flex-shrink: 0;
}

.forum-shell .forum-cat-create__hero-text {
  flex: 1;
  min-width: 0;
}

.forum-shell .forum-cat-create__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.forum-shell .forum-cat-create__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.forum-shell .forum-cat-create__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 8px;
  margin: -4px -4px 0 0;
}

.forum-shell .forum-cat-create__close:hover {
  color: var(--text);
}

.forum-shell .forum-cat-create__body {
  padding: 18px 20px 8px;
  gap: 18px;
}

.forum-shell .forum-cat-create__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.forum-shell .forum-cat-create__input,
.forum-shell .forum-cat-create__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.forum-shell .forum-cat-create__textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.45;
}

.forum-shell .forum-cat-create__input:focus,
.forum-shell .forum-cat-create__textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.forum-shell .forum-cat-create__input::placeholder,
.forum-shell .forum-cat-create__textarea::placeholder {
  color: rgba(45, 42, 39, 0.42);
}

.forum-shell .forum-cat-create__textarea-wrap {
  position: relative;
}

.forum-shell .forum-cat-create__counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

.forum-shell .forum-cat-create__icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.forum-shell .forum-cat-create__icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.forum-shell .forum-cat-create__icon-btn:hover {
  border-color: rgba(45, 42, 39, 0.18);
  background: #fff;
}

.forum-shell .forum-cat-create__icon-btn.is-selected {
  border-color: var(--accent-strong);
  background: #fff;
}

.forum-shell .forum-cat-create__color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.forum-shell .forum-cat-create__color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(45, 42, 39, 0.06);
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.forum-shell .forum-cat-create__color-swatch:hover {
  transform: scale(1.06);
}

.forum-shell .forum-cat-create__color-swatch.is-selected {
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(45, 42, 39, 0.08), 0 0 0 2px #fff, 0 0 0 3px var(--text);
}

.forum-shell .forum-cat-create__rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0 0;
}

.forum-shell .forum-cat-create__switch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 8px;
}

.forum-shell .forum-cat-create__switch-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  flex-shrink: 0;
}

.forum-shell .forum-cat-create__switch-text {
  flex: 1;
  min-width: 0;
}

.forum-shell .forum-cat-create__switch-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.forum-shell .forum-cat-create__switch-desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

.forum-shell .forum-cat-create__switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.forum-shell .forum-cat-create__switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.forum-shell .forum-cat-create__switch-ui {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d8d8d4;
  position: relative;
  transition: background 0.2s ease;
}

.forum-shell .forum-cat-create__switch-ui::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(45, 42, 39, 0.15);
}

.forum-shell .forum-cat-create__switch-input:checked + .forum-cat-create__switch-ui {
  background: var(--accent-strong);
}

.forum-shell .forum-cat-create__switch-input:checked + .forum-cat-create__switch-ui::after {
  transform: translateX(20px);
}

/* Sichtbar an = is_private aus (Checkbox unchecked): grün + rechts */
.forum-shell .forum-cat-create__switch--invert .forum-cat-create__switch-input:not(:checked) + .forum-cat-create__switch-ui {
  background: var(--accent-strong);
}

.forum-shell .forum-cat-create__switch--invert .forum-cat-create__switch-input:not(:checked) + .forum-cat-create__switch-ui::after {
  transform: translateX(20px);
}

.forum-shell .forum-cat-create__switch--invert .forum-cat-create__switch-input:checked + .forum-cat-create__switch-ui {
  background: #d8d8d4;
}

.forum-shell .forum-cat-create__switch--invert .forum-cat-create__switch-input:checked + .forum-cat-create__switch-ui::after {
  transform: translateX(0);
}

/* Bearbeiten: Sichtbarkeit unter privatem Vorfahren (nur Anzeige) */
.forum-shell .forum-cat-create__switch-row--locked {
  opacity: 0.92;
}

.forum-shell .forum-cat-create__switch--fake {
  pointer-events: none;
  cursor: default;
}

.forum-shell .forum-cat-create__switch-ui--locked {
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d8d8d4;
  position: relative;
}

.forum-shell .forum-cat-create__switch-ui--locked::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 3px rgba(45, 42, 39, 0.15);
}

.forum-shell .forum-cat-create__switch-ui--locked.is-on {
  background: var(--accent-strong);
}

.forum-shell .forum-cat-create__switch-ui--locked.is-on::after {
  left: auto;
  right: 3px;
}

.forum-shell .forum-cat-create__alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  background: rgba(126, 162, 247, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
}

.forum-shell .forum-cat-create__footer {
  padding: 16px 20px 20px;
  justify-content: space-between;
  gap: 12px;
}

.forum-shell .forum-actions-legacy {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 10px;
  background: #fff;
}

.forum-shell .d-flex {
  display: flex;
}

.forum-shell .flex-column {
  flex-direction: column;
}

.forum-shell .flex-row {
  flex-direction: row;
}

.forum-shell .justify-content-between {
  justify-content: space-between;
}

.forum-shell .flex-grow-1 {
  flex: 1 1 auto;
}

.forum-shell .float-end {
  float: right;
}

.forum-shell .text-end {
  text-align: right;
}

.forum-shell .text-center {
  text-align: center;
}

.forum-shell .text-muted {
  color: var(--muted);
}

.forum-shell .lead {
  font-size: 18px;
  font-weight: 700;
}

.forum-shell .mb-2 {
  margin-bottom: 8px;
}

.forum-shell .mb-3 {
  margin-bottom: 12px;
}

.forum-shell .mt-2 {
  margin-top: 8px;
}

.forum-shell .mt-3 {
  margin-top: 12px;
}

.forum-shell .my-3 {
  margin-top: 12px;
  margin-bottom: 12px;
}

.forum-shell .pb-1 {
  padding-bottom: 4px;
}

.forum-shell .px-5 {
  padding-left: 20px;
  padding-right: 20px;
}

.forum-shell .mr-3 {
  margin-right: 12px;
}

.forum-shell .btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-shell .row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.forum-shell .col,
.forum-shell .col-sm,
.forum-shell .col-md-auto,
.forum-shell .col-xs-4,
.forum-shell .col-xs-8 {
  grid-column: span 12;
  min-width: 0;
}

.forum-shell .form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.forum-shell .form-control,
.forum-shell .form-select,
.forum-shell .custom-select,
.forum-shell .input-group-text {
  width: 100%;
}

.forum-shell .input-group {
  display: grid;
  gap: 8px;
}

.forum-shell .badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: #fff;
}

.forum-shell .rounded-pill {
  border-radius: 999px;
}

.forum-shell .bg-primary {
  background: var(--accent-strong);
}

.forum-shell .bg-secondary {
  background: #938980;
}

.forum-shell .bg-danger {
  background: #c65353;
}

.forum-shell .bg-info {
  background: #8eb7cf;
}

.forum-shell .bg-warning {
  background: #d5b684;
}

.forum-shell .bg-success {
  background: #8fb38e;
}

@media (min-width: 768px) {
  .forum-shell .col-sm {
    grid-column: span 4;
  }

  .forum-shell .col-xs-8 {
    grid-column: span 8;
  }

  .forum-shell .col-xs-4,
  .forum-shell .col-md-auto {
    grid-column: span 4;
  }

  .forum-shell .text-md-start {
    text-align: left;
  }

  .forum-shell .text-md-end {
    text-align: right;
  }

  .forum-shell .flex-md-row {
    flex-direction: row;
  }
}

@media (max-width: 720px) {
  .forum-shell {
    padding: 14px;
  }

  .forum-page-title {
    font-size: 22px;
  }

  .forum-shell .forum-page-header--split,
  .forum-shell .forum-page-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .forum-shell .forum-actions-row {
    width: 100%;
  }

  .forum-shell .forum-actions-row .button,
  .forum-shell .forum-actions-row .btn {
    width: 100%;
  }
}

@media (max-width: 1280px) {
  .forum-hub {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .forum-shell .forum-hub.forum-hub--landing {
    grid-template-columns: 1fr;
  }

  .forum-hub__column--right {
    grid-column: span 2;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .forum-hub {
    grid-template-columns: 1fr;
  }

  .forum-shell .forum-hub.forum-hub--landing {
    grid-template-columns: 1fr;
  }

  .forum-hub__column--right {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  /* Mobile: Sidebar global als linkes Overlay */
  .layout {
    display: block;
  }

  .layout > .sidebar {
    position: fixed;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: min(84vw, 320px);
    transform: translateX(-112%);
    transition: transform 0.2s ease;
    z-index: 1200;
    overflow-y: auto;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    border-radius: 16px;
    padding: 16px;
    gap: 12px;
  }

  .layout > .sidebar:has(#sidebar-toggle:checked) {
    transform: translateX(0);
  }

  .layout > .sidebar .sidebar__panel {
    display: grid;
    gap: 14px;
    position: relative;
  }

  .layout > .sidebar .sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
  }

  .sidebar__toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .sidebar {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    gap: 0;
    min-height: 0;
  }

  .sidebar__brand {
    display: none;
  }

  .page,
  .page__content {
    gap: 12px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 4px 12px 10px;
  }

  .sidebar {
    gap: 12px;
  }

  /**
   * Topbar: gestapelte Zeilen (Suche, Umkreis, Aktionen). Feste height würde alle
   * Zeilen in 72px quetschen und den Inhalt über „Entdecken“ legen.
   */
  .topbar {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar .search {
    min-width: 0;
    width: 100%;
  }

  /* Menü, Profil, Logout zuerst (über Suche / Umkreis) */
  .topbar__actions {
    order: -1;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 10px 12px;
  }

  .topbar__actions .profile {
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar__actions .profile span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 42vw;
  }

  .topbar .nearby-pill {
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
  }

  body.page-profile .topbar .search,
  body.page-profile .topbar .nearby-pill {
    display: none;
  }

  body.page-profile .layout {
    display: block;
  }

  body.page-profile .content {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .panel-grid .panel--wide {
    grid-column: span 1;
  }

  .card-row {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

/* --- Weitergeben (Wizard) --- */
.text-accent {
  color: var(--accent-strong);
}

.give-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

body.page-give .give-layout {
  gap: 16px;
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Die Tipps-Box erbt sonst panel=display:grid und streckt Inhalte vertikal. */
.give-aside.panel {
  display: block;
}

@media (min-width: 961px) {
  body.page-give .layout {
    align-items: stretch;
    /* Schritt 1/2: weniger Luft Sidebar ↔ Hauptspalte und zum Viewport-Rand */
    gap: 12px;
    padding: 12px 16px 16px;
  }

  body.page-give .layout > main.page {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  /* Topbar enger an den Inhalt */
  body.page-give .page {
    gap: 8px;
  }

  body.page-give .page__content {
    min-height: 0;
    gap: 0;
  }

  body.page-give .sidebar {
    height: 100%;
  }

  body.page-give .give-layout {
    height: 100%;
    min-height: 0;
    /* Eine Zeile füllt die Content-Höhe – beide Karten gleich hoch, unten bündig */
    grid-template-rows: 1fr;
    align-items: stretch;
  }

  body.page-give .give-wizard,
  body.page-give .give-aside {
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
  }

  /* Rechte Spalte mitstrecken (volle Kartenhöhe wie links) */
  body.page-give .give-aside.panel {
    height: 100%;
  }

  /* Linke Karte: Flexbox – Formular wächst, Nav-Leiste unten; gleiche Höhe wie rechts */
  body.page-give .give-wizard.panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  body.page-give .give-wizard__intro,
  body.page-give .give-wizard > .give-stepper {
    flex-shrink: 0;
  }

  body.page-give .give-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body.page-give .give-form .give-nav {
    margin-top: auto;
  }
}

/* Horizontales Padding = Topbar (.topbar hat padding-inline 18px); Nav nutzt dieselbe Achse (--give-panel-pad-x). */
body.page-give .give-wizard.panel {
  --give-panel-pad-x: 18px;
  padding: 12px var(--give-panel-pad-x) 0;
  gap: 10px;
  padding-bottom: 0;
}

.page-give .page__content {
  max-width: 100%;
}

body.page-give .give-wizard__lead {
  margin: 4px 0 0.85rem;
}

body.page-give .give-stepper {
  margin-bottom: 1rem;
}

body.page-give .give-dropzone {
  padding: 1.35rem 1rem;
}

.give-wizard__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
}

.give-wizard__lead {
  margin: 4px 0 1.25rem;
  font-size: 14px;
}

.give-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.give-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
  padding: 10px 8px 12px;
  border: 1px solid var(--line, #e8e0dd);
  border-radius: 12px;
  background: var(--surface, #fff);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-self: stretch;
  height: 100%;
}

.give-stepper__text {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.give-stepper__step.is-active {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.give-stepper__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.give-stepper__step.is-active .give-stepper__num {
  background: var(--accent-strong);
  color: #fff;
}

.give-stepper__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 100%;
  overflow-wrap: break-word;
  -webkit-hyphens: none;
  hyphens: none;
}

.give-stepper__hint {
  display: block;
  font-size: 0.75rem;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: break-word;
  -webkit-hyphens: none;
  hyphens: none;
}

.give-panel__heading {
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.give-dropzone {
  position: relative;
  border: 2px dashed var(--line, #ddd);
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.give-dropzone.is-drag {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}

.give-dropzone__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.give-dropzone__label {
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.give-dropzone__icon {
  font-size: 2rem;
  color: var(--accent-strong);
}

.give-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  position: relative;
}

.give-preview__cell {
  position: relative;
  display: inline-block;
}

.give-preview__cell.is-cover .give-preview__thumb {
  box-shadow: 0 0 0 2px var(--accent-strong, #c77b7b);
  border-radius: 10px;
}

.give-preview__badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 6px;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 0 0 10px 10px;
  pointer-events: none;
}

.give-cover-hint {
  margin-top: 10px;
  font-size: 0.85rem;
}

.give-preview__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 1;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.give-preview__remove:hover {
  filter: brightness(1.08);
}

.give-preview__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.give-hints {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line, #eee);
}

.give-hints__title {
  font-weight: 600;
  margin-bottom: 8px;
}

.give-hints__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 144px));
  gap: 6px;
  margin-bottom: 12px;
  width: fit-content;
  max-width: 100%;
}

.give-hints__sample {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line, #e8e0dd);
  display: block;
}

.give-hints__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.85rem;
}

.give-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

#give-size-fieldset[hidden],
#edit-size-fieldset[hidden] {
  display: none !important;
}

.give-fieldset__legend {
  font-weight: 600;
  margin-bottom: 10px;
}

.give-fieldset__legend--with-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.give-fieldset__all {
  border: 1px solid var(--line, #e8e0dd);
  border-radius: 999px;
  background: #fff;
  color: var(--muted, #7a6f68);
  padding: 4px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
}

.give-fieldset__all:hover,
.give-fieldset__all:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.give-gender-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.give-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 2px solid var(--line, #e8e0dd);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}

.give-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.give-choice:has(input:checked),
.give-choice:hover {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}

.give-choice--gender input:focus-visible + span,
.give-choice--gender:has(input:focus-visible) {
  outline: 2px solid var(--accent-strong);
}

.give-choice--gender span {
  pointer-events: none;
}

.give-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.give-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 2px solid var(--line, #e8e0dd);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.give-cat-tile input {
  position: absolute;
  opacity: 0;
}

.give-cat-tile:has(input:checked) {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.give-cat-tile__visual {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.give-cat-tile__visual img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.give-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.give-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--line, #e8e0dd);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}

.give-pill input {
  accent-color: var(--accent-strong);
}

.give-pill:has(input:checked) {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}

.give-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.give-size-pill {
  min-width: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 2px solid var(--line, #e8e0dd);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.give-size-pill input {
  position: absolute;
  opacity: 0;
}

.give-size-pill:has(input:checked) {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.give-condition-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .give-condition-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.give-choice--condition {
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.give-choice--condition i {
  font-size: 1.25rem;
  color: var(--accent-strong);
}

.give-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.give-choice--color {
  justify-content: center;
  gap: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
}

.give-choice--color-other {
  width: auto;
  height: 34px;
  padding: 0 14px;
  background: #fff;
}

.give-choice--color.is-active {
  border-color: #6f8f73;
  box-shadow: 0 0 0 2px rgba(111, 143, 115, 0.22);
}

.give-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.55);
}

.give-color-dot--schwarz { background: #2a2a2a; }
.give-color-dot--weiss { background: #f5f5f1; }
.give-color-dot--grau { background: #9a9da3; }
.give-color-dot--beige { background: #d5c2a8; }
.give-color-dot--braun { background: #8a6348; }
.give-color-dot--dunkelgruen { background: #9ad2b5; }
.give-color-dot--altrosa { background: #d8b2b2; }
.give-color-dot--pastellblau { background: #abc6df; }
.give-color-dot--sonstige { background: #c6cad1; }

.give-color-other-text {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

/* Weitergeben: Detailbereich kompakter, damit Proportionen zur Stepper-Zeile passen */
.give-panel[data-step="2"] .give-fieldset,
.give-edit-form .give-fieldset {
  margin-bottom: 1rem;
}

.give-panel[data-step="2"] .give-fieldset__legend,
.give-edit-form .give-fieldset__legend {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.give-panel[data-step="2"] .give-fieldset__all,
.give-edit-form .give-fieldset__all {
  padding: 3px 9px;
  font-size: 0.74rem;
}

.give-panel[data-step="2"] .give-choice,
.give-edit-form .give-choice {
  padding: 9px 12px;
  border-width: 1px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.give-panel[data-step="2"] .give-gender-row,
.give-edit-form .give-gender-row {
  gap: 8px;
}

.give-panel[data-step="2"] .give-cat-grid,
.give-edit-form .give-cat-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.give-panel[data-step="2"] .give-cat-tile,
.give-edit-form .give-cat-tile {
  padding: 10px 6px;
  border-width: 1px;
  border-radius: 12px;
  font-size: 0.8rem;
  gap: 6px;
}

.give-panel[data-step="2"] .give-cat-tile__visual,
.give-edit-form .give-cat-tile__visual {
  width: 48px;
  height: 48px;
}

.give-panel[data-step="2"] .give-cat-tile__visual img,
.give-edit-form .give-cat-tile__visual img {
  max-width: 40px;
  max-height: 40px;
}

.give-panel[data-step="2"] .give-pill,
.give-edit-form .give-pill {
  padding: 6px 12px;
  border-width: 1px;
  font-size: 0.82rem;
}

.give-panel[data-step="2"] .give-size-pill,
.give-edit-form .give-size-pill {
  min-width: 40px;
  padding: 6px 9px;
  border-width: 1px;
  font-size: 0.82rem;
}

.give-panel[data-step="2"] .give-condition-row,
.give-edit-form .give-condition-row {
  gap: 8px;
}

.give-panel[data-step="2"] .give-choice--condition,
.give-edit-form .give-choice--condition {
  gap: 4px;
  font-size: 0.82rem;
}

.give-panel[data-step="2"] .give-choice--color,
.give-edit-form .give-choice--color {
  gap: 0;
  width: 30px;
  height: 30px;
  padding: 0;
}

.give-panel[data-step="2"] .give-choice--color.give-choice--color-other,
.give-edit-form .give-choice--color.give-choice--color-other {
  width: auto;
  height: 30px;
  padding: 0 10px;
}

.give-panel[data-step="2"] .give-choice--color.is-active,
.give-edit-form .give-choice--color.is-active {
  box-shadow: 0 0 0 2px rgba(111, 143, 115, 0.2);
}

.give-panel[data-step="2"] .give-color-other-text,
.give-edit-form .give-color-other-text {
  font-size: 0.8rem;
}

.give-panel[data-step="2"] .give-color-row,
.give-edit-form .give-color-row {
  gap: 8px;
}

.give-panel[data-step="2"] .give-color-dot,
.give-edit-form .give-color-dot {
  width: 18px;
  height: 18px;
}

.give-panel[data-step="2"] .give-choice--condition i,
.give-edit-form .give-choice--condition i {
  font-size: 1.05rem;
}

.give-char {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

.give-price-field input {
  max-width: 200px;
}

.give-tip-card {
  margin-top: 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf8f7;
  border: 1px solid var(--line, #eee);
}

/* Vorschau-Kachel Schritt „Veröffentlichen“ (gleiche Typo/Abmessungen wie Entdecken-Karte) */
.give-publish-mock {
  margin: 0.25rem 0 1rem;
}

.give-publish-mock__frame {
  display: flex;
  justify-content: center;
}

/* Gleicher Raster-Kontext wie Entdecken → .listing-grid .listing-card / .listing-card-wrap greifen */
.give-publish-mock__grid {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: minmax(0, min(290px, 100%));
}

.give-publish-mock__card {
  pointer-events: none;
  user-select: none;
}

.give-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 12px;
  margin-inline: calc(-1 * var(--give-panel-pad-x, 18px));
  margin-bottom: 0;
  padding-inline: var(--give-panel-pad-x, 18px);
  border-top: 1px solid var(--line, #eee);
}

.give-nav__main {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}

.give-nav__cancel {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* Ein-Wort-Buttons nicht mittendrin umbrechen („Veröffentlichen“ lesbar halten) */
.give-nav__submit {
  white-space: nowrap;
}

.give-aside__title {
  font-weight: 700;
  margin-bottom: 12px;
}

.give-aside__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  align-content: start;
}

.give-aside__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.give-hints--aside {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.give-hints--aside .give-hints__sample {
  width: 84px;
  height: 84px;
}

.give-hints--aside .give-hints__gallery {
  grid-template-columns: repeat(2, minmax(0, 84px));
  gap: 6px;
}

@media (min-width: 961px) {
  .give-panel[data-step="1"] .give-hints {
    display: none;
  }
}

@media (max-width: 960px) {
  body.page-give .page {
    gap: 8px;
  }

  body.page-give .page__content {
    gap: 0;
  }

  .discover-shell .listing-grid.listing-grid--discover {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    justify-items: stretch !important;
  }

  /* Entdecken: Kategorien mobil drei nebeneinander (#discover-category = nur Entdecken) */
  #discover-category .discover-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  #discover-category .discover-category-tile {
    padding: 8px 4px;
    gap: 5px;
  }

  #discover-category .discover-category-tile__icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
  }

  #discover-category .discover-category-tile__icon img {
    width: 38px;
    height: 38px;
    background: transparent;
  }

  #discover-category .discover-category-tile__name {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .discover-shell .listing-grid.listing-grid--discover > .listing-card-wrap,
  .discover-shell .listing-grid.listing-grid--discover .listing-card {
    max-width: none !important;
    width: 100% !important;
  }

  body.page-favorites .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-items: stretch;
  }

  body.page-favorites .listing-grid > .listing-card-wrap,
  body.page-favorites .listing-grid .listing-card {
    max-width: none;
    width: 100%;
  }

  body.page-favorites .listing-card__image {
    padding-top: 66%;
  }

  .give-hints--aside {
    display: none;
  }

  .give-layout {
    grid-template-columns: 1fr;
  }

  .give-stepper {
    grid-template-columns: 1fr 1fr;
  }

  .give-gender-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Öffentliches Verkäuferprofil (Mockup: Avatar, Kennzahlen, Chips, Raster) */
.page__content--public-profile {
  padding-bottom: 120px;
}

.public-seller {
  max-width: 880px;
  margin: 0 auto;
  /* Verhindert, dass breite Kinder (z. B. Chip-Zeile) das Raster über die Viewport-Breite aufblasen */
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.public-seller__hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.public-seller__avatar-wrap {
  flex-shrink: 0;
}

.public-seller__avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.public-seller__avatar--placeholder {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent-soft), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.5rem;
}

.public-seller__hero-text {
  flex: 1;
  min-width: 0;
}

.public-seller__name {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.public-seller__name-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.public-seller__name-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.public-seller__name-actions {
  flex-shrink: 0;
}

.public-seller__name-row .public-seller__name {
  margin: 0;
}

/* Verifiziert in der Namenszeile: wie App (helle Pille + Ionic shield-checkmark) */
.public-seller__badge.public-seller__badge--inline.public-seller__badge--verified {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border, #e0e0e0);
  color: var(--text);
}

.public-seller__verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  color: #7fa287;
}

/* Wie .public-seller__remember-pill__icon (13px) — gleiche Zeilenhöhe wie „Profil merken“ */
.public-seller__verified-icon svg {
  display: block;
  width: 13px;
  height: 13px;
}

.profile-me__name-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.profile-me__name-block .public-seller__name {
  margin: 0;
}

.public-seller__member-since {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
}

.public-seller__tagline {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.4;
}

.public-seller__tagline--muted {
  font-size: 0.95rem;
}

/* PLZ + Ort wie App (up-hero__location) / „Mein Profil“ */
.public-seller__location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
}

.public-seller__location .fa-location-dot {
  flex-shrink: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Lange Namen/Zeilen im Profil-Header: umbrechen statt über Nachbarelemente */
.public-seller__hero .public-seller__name,
.public-seller__hero .public-seller__tagline {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.public-seller__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-seller__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.public-seller__follow-form {
  margin: 0;
}

/* Profil merken: gleiche Pille wie Verifiziert-Badge in der Namenszeile */
.public-seller__remember-pill {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  margin: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border, #e0e0e0);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.public-seller__remember-pill:hover:not(:disabled) {
  background: #fff;
  border-color: var(--accent-strong, #8a9f82);
}

.public-seller__remember-pill:active:not(:disabled) {
  transform: scale(0.98);
}

.public-seller__remember-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  color: #7fa287;
  font-size: 13px;
}

.public-seller__remember-pill__icon .fa-bookmark {
  display: block;
}

.public-seller__stats {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 14px;
  margin-bottom: 22px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.public-seller__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.public-seller__stat-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  width: 100%;
  min-height: 38px;
}

.public-seller__stat-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 1.15em;
  padding-top: 2px;
}

.public-seller__stat--rating {
  justify-content: center;
}

.public-seller__stat--rating .public-seller__stat-main {
  flex: 0 1 auto;
  min-height: 0;
  justify-content: flex-start;
  gap: 4px;
}

.public-seller__rating-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 1.35em;
}

.public-seller__stat--rating .public-seller__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  flex-shrink: 0;
  font-size: 1rem;
}

.public-seller__stat--rating .public-seller__stat-value {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.public-seller__stat-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: #d4a933;
}

.public-seller__stat-fa {
  font-size: 1.125rem;
  color: var(--muted);
}

.public-seller__stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.public-seller__stat-value--small {
  font-size: 0.95rem;
  font-weight: 600;
}

.public-seller__stat-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.25;
}

.public-seller__stat-label {
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
}

.public-seller__stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

/* Verkäufe: Tasche + Zahl in einer Zeile (auf Höhe der Uhr) */
.public-seller__stat--sales {
  justify-content: center;
}

.public-seller__stat--sales .public-seller__stat-main {
  flex: 0 1 auto;
  min-height: 0;
  justify-content: flex-start;
  gap: 4px;
}

.public-seller__sales-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 1.35em;
}

.public-seller__stat--sales .public-seller__stat-fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  flex-shrink: 0;
}

.public-seller__stat--sales .public-seller__stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

/* Aktivität: Uhr oben, darunter Punkt + „Heute aktiv“ / „Vor X Tagen aktiv“ */
.public-seller__stat--activity {
  justify-content: center;
}

.public-seller__stat--activity .public-seller__stat-main {
  flex: 0 1 auto;
  min-height: 0;
  justify-content: flex-start;
  gap: 4px;
}

.public-seller__stat--activity .public-seller__stat-fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  min-height: 1.35em;
}

.public-seller__activity-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.public-seller__activity-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.public-seller__activity-dot--green {
  background: #5cb85c;
}

.public-seller__activity-dot--yellow {
  background: #e6b422;
}

.public-seller__activity-dot--red {
  background: #d9534f;
}

.public-seller__stat--activity .public-seller__stat-value {
  max-width: 100%;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--muted);
}

.public-seller__about {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.public-seller__about-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
}

.public-seller__about-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.public-seller__about-chev {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.public-seller__listings-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.public-seller__listings-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.public-seller__listings-all {
  border: none;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-strong);
  cursor: pointer;
  padding: 0;
}

/* Kategorie-Chips: äußerer Bereich begrenzt die Breite, innere Zeile darf breiter sein → seitlich scrollen */
.public-seller__chips-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  /* scroll: zuverlässigerer Scroll-Layer (u. a. iOS) als auto */
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  /* Eigenes Layer: weniger Konflikt mit vertikalem Seiten-Scroll */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.public-seller__chips-scroll::-webkit-scrollbar {
  height: 6px;
}

.public-seller__chips-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.public-seller__chips-scroll > .public-seller__chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: none;
  min-width: min-content;
  box-sizing: border-box;
  margin-bottom: 0;
  padding-bottom: 0;
}

.public-seller__chip {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.public-seller__chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

.public-seller__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.public-listing-card-wrap {
  position: relative;
}

.public-listing-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.public-listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.public-listing-card__image {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-alt);
}

.mc-fav-count-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  pointer-events: none;
  line-height: 1;
}

.mc-view-count-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  pointer-events: none;
  line-height: 1;
}

.mc-fav-count-pill i,
.mc-view-count-pill i {
  font-size: 14px;
  opacity: 0.88;
}

.listing-show__hero-fav--owner-count .mc-fav-count-pill {
  position: static;
}

.public-listing-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-listing-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.public-listing-card__body {
  padding: 10px 12px 12px;
}

.public-listing-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--text);
}

.public-listing-card__price {
  font-weight: 700;
  font-size: 1rem;
}

.public-listing-card__meta-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

.public-listing-card__meta-line > span {
  min-width: 0;
}

.public-listing-card__meta-line > span:last-child:not(:only-child) {
  text-align: left;
  flex-shrink: 0;
}

.public-listing-card__favorite {
  top: 8px;
  right: 8px;
}

.public-seller__empty {
  grid-column: 1 / -1;
}

.public-seller__ratings-panel {
  margin-bottom: 24px;
}

.public-seller__stat-sub--button {
  appearance: none;
  border: none;
  background: transparent;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
}

.public-seller__stat-sub--button:hover {
  opacity: 0.85;
}

.public-seller__sticky {
  position: fixed;
  z-index: 30;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 40px rgba(46, 41, 38, 0.08);
}

@media (min-width: 961px) {
  .public-seller__sticky {
    left: calc(260px + 48px);
    right: 24px;
    border-radius: 16px 16px 0 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

.public-seller__sticky-btn {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.public-seller__sticky-primary {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease,
    box-shadow 0.18s ease;
}

.public-seller__sticky-primary:hover:not(:disabled) {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 14px rgba(58, 72, 52, 0.22);
  transform: translateY(-1px);
}

.public-seller__sticky-primary:active:not(:disabled) {
  transform: translateY(0);
}

.public-seller__sticky-form {
  flex: 1;
  display: flex;
  min-width: 140px;
}

/* Eigenes Profil (wie öffentliche Ansicht + Tabs) */
.profile-settings-back {
  margin: 0 0 12px;
}

.profile-name-readonly {
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
}

.public-seller--me .profile-me__hero {
  display: block;
}

.profile-me__hero-main {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.public-seller--me .profile-me__hero-text {
  position: relative;
  /* Platz für gestapelte Aktions-Buttons (Icon-only mobil, mit Labels Desktop) */
  padding-right: 48px;
}

@media (min-width: 961px) {
  .public-seller--me .profile-me__hero-text {
    padding-right: 13rem;
  }
}

.public-seller--me .profile-me__actions {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.profile-me__name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.profile-me__name-row .public-seller__name {
  margin: 0;
  min-width: 0;
}

.profile-me__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin: 0;
  flex-shrink: 0;
}

.profile-me__settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

.profile-me__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-me__action-label {
  display: inline;
}

.profile-me__location {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-me__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  border-bottom: 1px solid var(--border);
  margin: 8px 0 20px;
}

@media (max-width: 960px) {
  .profile-me__actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .profile-me__settings-btn,
  .profile-me__share-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .profile-me__settings-btn i,
  .profile-me__share-btn i {
    margin: 0;
  }

  .profile-me__action-label {
    display: none;
  }

  .public-seller .profile-me__tabs {
    margin-bottom: 10px;
  }

  .public-seller .public-seller__about--open {
    margin-top: 0;
  }

  body.page-profile .public-seller:not(.public-seller--me) .profile-me__tabs {
    margin-bottom: 0;
  }

  body.page-profile .public-seller:not(.public-seller--me) .profile-me__tabs + .public-seller__chips-scroll,
  body.page-profile .public-seller:not(.public-seller--me) .profile-me__tabs + .public-seller__grid {
    margin-top: 12px;
  }

  body.page-profile .public-seller:not(.public-seller--me) .public-seller__about--open {
    margin-top: 0;
  }
}

.profile-me__tab {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.profile-me__tab:hover {
  color: var(--text);
}

.profile-me__tab.is-active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

@media (max-width: 960px) {
  .profile-me__tabs {
    flex-wrap: nowrap;
    gap: 0 4px;
  }

  .profile-me__tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
  }
}

@media (max-width: 400px) {
  .profile-me__tab {
    padding: 8px 4px;
    font-size: 0.72rem;
  }
}

.profile-me__section-head {
  align-items: center;
}

.profile-me__section-head .button {
  flex-shrink: 0;
  white-space: nowrap;
}

.public-listing-card__sold-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(46, 41, 38, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 8px;
}

.page__content--profile-me .public-listing-card--sold .public-listing-card__sold-badge {
  top: auto;
  bottom: 8px;
}

.public-seller__about--open {
  cursor: default;
}

.profile-me__about-edit-hint {
  margin-top: 16px;
}

.profile-me__ratings-inner {
  margin-bottom: 0;
}

.public-seller__sticky--me .public-seller__sticky-primary {
  text-decoration: none;
}

/* Eigenes Profil: gleiche nutzbare Breite über alle Tabs (Anzeigen, Verkauft, Bewertungen, Über mich) */
.page__content--profile-me {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.page__content--profile-me > .public-seller--me {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

.page__content--profile-me .profile-me__panel {
  width: 100%;
  min-width: 0;
}

.page__content--profile-me .panel.panel--wide {
  width: 100%;
  max-width: none;
}

@media (min-width: 961px) {
  .page__content--profile-me .public-seller__sticky.public-seller__sticky--me {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Artikel-Detail (Mockup: 2 Spalten, Galerie, Verkäuferkarte) */
.page__content--listing-show {
  max-width: 1120px;
  margin: 0 auto;
}

.listing-show__flash {
  margin-bottom: 16px;
}

.listing-show__crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.listing-show__crumbs a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 500;
}

.listing-show__crumbs a:hover {
  text-decoration: underline;
}

.listing-show__crumbs-sep {
  color: var(--muted);
  opacity: 0.8;
}

.listing-show__crumbs-current {
  color: var(--text);
  font-weight: 600;
}

.listing-show__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

/* Standard (Mobil): kein sticky – Inhalt scrollt normal unter dem Bild */
.listing-show__media {
  position: relative;
}

@media (min-width: 960px) {
  .listing-show__layout {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
    gap: 40px;
  }

  /* Desktop: Galerie bleibt beim vertikalen Scrollen sichtbar neben dem Text */
  .listing-show__media {
    position: sticky;
    top: 16px;
    align-self: start;
  }
}

.listing-show__hero-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  /* etwas kompakter als volle Spaltenbreite (v. a. Desktop) */
  max-width: min(100%, 380px);
  margin-inline: auto;
}

/* overflow: hidden am Parent blockiert auf iOS oft horizontales Scrollen der Galerie */
.listing-show__hero-wrap--carousel {
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
}

.listing-show__hero-wrap--carousel .listing-show__hero-scroller {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--surface-alt);
}

.listing-show__hero-wrap--carousel .listing-show__hero-slide {
  overflow: hidden;
  border-radius: 18px;
}

/* Mehrere Fotos: natives horizontales Scrollen + Snap (zuverlässig auf Mobilgeräten) */
.listing-show__hero-scroller {
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}

.listing-show__hero-scroller::-webkit-scrollbar {
  display: none;
}

.listing-show__hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.listing-show__hero-slide-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.listing-show__hero-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: default;
  line-height: 0;
}

.listing-show__hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  display: block;
}

.listing-show__hero-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.listing-show__hero-placeholder i {
  font-size: 2.5rem;
  opacity: 0.5;
}

.listing-show__hero-fav {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.listing-show__fav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.listing-show__fav-btn:hover {
  transform: scale(1.05);
}

.listing-show__fav-btn--active {
  color: #c75c5c;
}

.listing-show__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  max-width: min(100%, 380px);
  margin-inline: auto;
  justify-content: center;
}

.listing-show__thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.listing-show__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-show__thumb:hover,
.listing-show__thumb:focus-visible {
  border-color: var(--accent);
}

.listing-show__thumb.is-active {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.listing-show__panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.listing-show__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.listing-show__location {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.listing-show__views {
  margin: -8px 0 16px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.listing-show__price-row {
  margin-bottom: 6px;
}

.listing-show__price {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
}

.listing-show__shipping {
  margin: 0 0 18px;
  font-size: 0.9rem;
}

.listing-show__rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 16px;
}

.listing-show__attrs {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.listing-show__attrs-dot {
  margin: 0 8px;
  opacity: 0.55;
}

.listing-show__banner {
  margin-bottom: 16px;
}

.listing-show__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

@media (min-width: 520px) {
  .listing-show__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.listing-show__form-inline {
  display: inline-flex;
  flex: 1;
  min-width: 160px;
}

.listing-show__form-inline .button,
.listing-show__form-inline .pill {
  width: 100%;
  justify-content: center;
}

.listing-show__btn-primary {
  background: var(--accent) !important;
  color: var(--on-accent) !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 14px 20px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer !important;
  box-shadow: 0 10px 28px rgba(90, 110, 85, 0.22);
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease,
    box-shadow 0.18s ease !important;
}

.listing-show__btn-primary:hover:not(:disabled) {
  background: var(--accent-strong) !important;
  color: #fff !important;
  filter: none !important;
  box-shadow: 0 12px 32px rgba(58, 72, 52, 0.28) !important;
  transform: translateY(-2px);
}

.listing-show__btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.listing-show__btn-outline {
  border-radius: 14px !important;
  padding: 14px 20px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  border: 2px solid var(--accent-strong) !important;
  color: var(--accent-strong) !important;
  background: var(--surface) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.15s ease, box-shadow 0.18s ease !important;
}

.listing-show__btn-outline:hover:not(:disabled) {
  background: var(--accent-soft) !important;
  border-color: var(--accent-strong) !important;
  color: var(--accent-strong) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(58, 72, 52, 0.12) !important;
}

.listing-show__btn-outline:active:not(:disabled) {
  transform: translateY(0);
}

.listing-show__seller-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.listing-show__seller-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.listing-show__seller-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.listing-show__seller-avatar--ph {
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 1.25rem;
}

.listing-show__seller-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.listing-show__seller-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.listing-show__seller-tagline {
  font-size: 0.88rem;
}

.listing-show__seller-rating {
  font-size: 0.88rem;
  color: var(--muted);
}

.listing-show__seller-star {
  color: #d4a933;
  margin-right: 4px;
}

.listing-show__seller-chevron {
  color: var(--muted);
  flex-shrink: 0;
}

.listing-show__description {
  margin-top: 8px;
}

.listing-show__desc-heading {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.listing-show__desc-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
}

.listing-show__report-link {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
}

.listing-show__report-link:hover {
  color: var(--accent-strong);
}

body.page-about .layout {
  align-items: stretch;
}

body.page-about main.page {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.page-about main.page > .page__content {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

body.page-about main.page > .page__content > .about-layout {
  flex: 1 1 auto;
  min-height: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.about-layout > .panel {
  margin: 0;
  min-height: 0;
  overflow-y: auto;
}

.about-page__lead {
  margin: 0 0 18px;
  line-height: 1.5;
}

.about-page__section {
  margin-top: 22px;
}

.about-page__section h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.about-page__section p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.about-page__list {
  margin: 0 0 10px;
  padding-left: 20px;
  line-height: 1.6;
}

.about-page__list li {
  margin-bottom: 4px;
}

.about-page__intro {
  margin-bottom: 8px;
}

.about-page__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
}

.about-page__heading-icon {
  color: var(--sage-strong, #6f8f73);
  font-size: 1.3rem;
}

.about-page__section h2 .about-page__section-icon {
  color: var(--sage-strong, #6f8f73);
  margin-right: 6px;
  font-size: 1rem;
  width: 1.2em;
  text-align: center;
}

.about-page__section p .about-page__section-icon {
  color: var(--sage-strong, #6f8f73);
  margin-left: 4px;
}

.about-page__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin: 12px 0 0;
}

.about-page__contact .about-page__section-icon {
  margin: 0;
  font-size: 1.05rem;
}

.about-page__contact .link {
  font: inherit;
}

.about-page__lead {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text, #1f2937);
}

.about-page__lead--soft {
  color: var(--muted, #6b7280);
}

.about-faq__item {
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
}

.about-faq__item summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  list-style: none;
}

.about-faq__item summary::-webkit-details-marker {
  display: none;
}

.about-faq__answer {
  padding: 0 14px 12px;
}

.about-faq__answer p {
  margin: 0;
  color: var(--muted, #6b7280);
  line-height: 1.55;
}

.about-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  font-size: 0.96rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.about-list li:hover {
  border-color: rgba(255, 126, 128, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-list .link {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.about-list__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139, 163, 139, 0.12);
  color: var(--sage-strong, #6f8f73);
  font-size: 0.95rem;
}

.about-page--community .about-page__list {
  list-style: none;
  margin: 12px 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.about-page--community .about-page__list li {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .about-page--community .about-page__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-page--safety .about-page__list {
  list-style: none;
  margin: 12px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-page--safety .about-page__list li {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .about-list {
    grid-template-columns: 1fr;
  }
}

.about-nav {
  background: #fff;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  align-self: stretch;
}

.about-nav__title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--border-soft, #e5e7eb);
  margin-bottom: 8px;
}

.about-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.about-nav__item:hover {
  background: rgba(139, 163, 139, 0.08);
}

.about-nav__item.is-active {
  background: rgba(139, 163, 139, 0.12);
  color: var(--sage-strong, #6f8f73);
  font-weight: 600;
}

.about-nav__icon {
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-strong, #6f8f73);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  /* Block statt Grid, aber ohne grid-gap fehlte der Abstand Topbar → Inhalt */
  body.page-about main.page,
  body.page-about main.page > .page__content {
    display: block;
  }

  body.page-about main.page > .page__content {
    margin-top: 14px;
  }

  body.page-about main.page > .page__content > .about-layout {
    height: auto;
  }

  .about-layout > .panel,
  .about-layout .about-nav {
    overflow-y: visible;
    height: auto;
    min-height: 0;
  }

  /* Mobil: Luft unter der Topbar-Suchzeile und oberhalb IMPRESSUM/DATENSCHUTZ & Co. */
  .about-layout > .panel.about-page {
    padding-top: 32px;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 18px;
  }

  body.page-about .about-layout > .panel.about-page > .panel__title {
    margin-top: 0;
    margin-bottom: 4px;
  }

  body.page-about .about-page__section p {
    line-height: 1.7;
  }

  .about-layout .about-nav {
    padding: 18px 14px 14px;
  }
}
