/* === Aus PWA übernommen: global.css === */

/* ============================================================
   Schöneweide.de — Base & Design-System
   Re-expression of the HTML prototype's inline styles as a
   maintainable CSS system. All values map to design tokens.
   ============================================================ */

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--sw-color-page);
  color: var(--sw-color-ink);
  font-family: var(--sw-font-family);
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::placeholder {
  color: var(--sw-color-placeholder);
}

h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--sw-color-primary);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.app-root {
  min-height: 100vh;
  background: var(--sw-color-page);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
}

.container {
  max-width: var(--sw-space-content-max);
  margin: 0 auto;
  padding-left: var(--sw-space-page-pad);
  padding-right: var(--sw-space-page-pad);
}

.section {
  padding-top: 28px;
  padding-bottom: 28px;
}

.breadcrumb {
  font-size: var(--sw-font-caption);
  color: var(--sw-color-muted);
  margin-bottom: 16px;
}
.breadcrumb .crumb {
  cursor: pointer;
}
.breadcrumb .crumb:hover {
  color: var(--sw-color-primary);
}

.page-title {
  font-size: var(--sw-font-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.page-subtitle {
  font-size: var(--sw-font-body);
  color: var(--sw-color-text-body3);
  margin: 0 0 24px;
  max-width: 680px;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--sw-radius-button);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  text-align: center;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--sw-color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--sw-color-primary-hover);
}
.btn-outline {
  background: var(--sw-color-card);
  border: 1.5px solid var(--sw-color-primary);
  color: var(--sw-color-primary);
}
.btn-outline:hover {
  background: var(--sw-color-tint-green2);
}
.btn-ghost {
  background: var(--sw-color-card);
  border: 1px solid var(--sw-color-border2);
  color: var(--sw-color-text-body);
}
.btn-ghost:hover {
  background: var(--sw-color-fill-soft);
}
.btn-dark {
  background: var(--sw-color-ink);
  color: #fff;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 9px;
}

/* ---------- Pills / Chips / Badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sw-color-card);
  border: 1px solid var(--sw-color-border2);
  color: var(--sw-color-text-body);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--sw-radius-pill);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.chip:hover {
  border-color: var(--sw-color-primary);
}
.chip.is-active {
  background: var(--sw-color-primary);
  border-color: var(--sw-color-primary);
  color: #fff;
}
.chip-soft.is-active {
  background: var(--sw-color-tint-green);
  border-color: var(--sw-color-tint-green-border);
  color: var(--sw-color-primary);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--sw-radius-pill);
}
.badge-green {
  background: var(--sw-color-tint-green);
  color: var(--sw-color-primary);
}
.badge-orange {
  background: var(--sw-color-warning-bg);
  color: var(--sw-color-warning);
}
.badge-red {
  background: var(--sw-color-error-bg);
  color: var(--sw-color-error);
}
.badge-blue {
  background: var(--sw-color-info-blue-bg);
  color: var(--sw-color-info-blue);
}
.badge-solid {
  background: var(--sw-color-primary);
  color: #fff;
}
.badge-gray {
  background: var(--sw-color-fill-soft);
  color: var(--sw-color-muted);
}

/* ---------- Cards ---------- */
.card {
  background: var(--sw-color-card);
  border: 1px solid var(--sw-color-border);
  border-radius: var(--sw-radius-card);
}
.card-pad {
  padding: 22px;
}
.card-lg {
  border-radius: var(--sw-radius-card-lg);
}
.card-clickable {
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.1s;
}
.card-clickable:hover {
  box-shadow: var(--sw-shadow-card);
  transform: translateY(-2px);
}

.note-green {
  background: var(--sw-color-tint-green2);
  border: 1px solid var(--sw-color-tint-green-border);
  border-radius: var(--sw-radius-card);
  padding: 18px;
}
.note-orange {
  background: #fdf8f1;
  border: 1px solid #f0e2cd;
  border-radius: 12px;
  padding: 14px 16px;
}

/* ---------- Forms ---------- */
.field {
  margin-bottom: 16px;
}
.label {
  display: block;
  font-size: var(--sw-font-label);
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--sw-color-ink);
}
.label .req {
  color: var(--sw-color-error);
  margin-left: 2px;
}
.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--sw-color-border2);
  border-radius: var(--sw-radius-input);
  padding: 12px 14px;
  font-size: 15px;
  background: var(--sw-color-page);
  color: var(--sw-color-ink);
  outline: 0;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--sw-color-primary);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.12);
}
.textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 110px;
}
.input.has-error,
.textarea.has-error,
.select.has-error {
  border-color: var(--sw-color-error);
  background: var(--sw-color-error-bg);
}
.field-error {
  display: block;
  font-size: 12px;
  color: var(--sw-color-error);
  margin-top: 6px;
  font-weight: 600;
}
.field-hint {
  font-size: 13px;
  color: var(--sw-color-muted);
  margin-top: 6px;
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row > * {
  flex: 1;
  min-width: 0;
}

/* checkbox / toggle */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--sw-color-text-body);
  cursor: pointer;
  line-height: 1.5;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check .box {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #c8d1c9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 12px;
  margin-top: 1px;
  transition: background 0.12s, border-color 0.12s;
}
.check input:checked + .box {
  background: var(--sw-color-primary);
  border-color: var(--sw-color-primary);
  color: #fff;
}

.toggle {
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cdd6cf;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}
.toggle.is-on {
  background: var(--sw-color-primary);
}
.toggle.is-on::after {
  left: 20px;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Utilities ---------- */
.muted {
  color: var(--sw-color-muted);
}
.link {
  color: var(--sw-color-primary);
  font-weight: 700;
  cursor: pointer;
}
.link:hover {
  text-decoration: underline;
}
.stack {
  display: flex;
  flex-direction: column;
}
.row {
  display: flex;
  align-items: center;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flex-wrap {
  flex-wrap: wrap;
}
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-auto { margin-top: auto; }
.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;
}

.img-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-ph {
  background: var(--sw-color-img-placeholder);
}

/* section heading row */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.sec-head h2,
.sec-head h3 {
  font-weight: 800;
  margin: 0;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.pagination .pg {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--sw-color-card);
  border: 1px solid var(--sw-color-border2);
  color: var(--sw-color-text-body);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pagination .pg.is-active {
  background: var(--sw-color-primary);
  border-color: var(--sw-color-primary);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .t-hide {
    display: none !important;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    padding-left: var(--sw-space-page-pad-mobile);
    padding-right: var(--sw-space-page-pad-mobile);
  }
  .app-root {
    padding-bottom: 76px; /* bottom tab bar */
  }
  .page-title {
    font-size: var(--sw-font-h1-mobile);
    line-height: 1.18;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-4.keep-2,
  .grid-3.keep-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .m-hide {
    display: none !important;
  }
}

/* === Aus PWA übernommen: pages.css === */
/* ============================================================
   Gemeinsame Seiten-Muster (von allen Routen genutzt).
   Seiten verwenden diese Klassen + Utilities aus global.css.
   ============================================================ */

/* ---------- Filter-Tabs / Chip-Reihe ---------- */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tab {
  background: #fff;
  border: 1px solid var(--sw-color-border2);
  color: var(--sw-color-text-body);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.tab:hover {
  border-color: var(--sw-color-primary);
}
.tab.is-active {
  background: var(--sw-color-primary);
  border-color: var(--sw-color-primary);
  color: #fff;
  font-weight: 700;
}

/* ---------- Home-Hero ---------- */
.hero {
  background: linear-gradient(180deg, #eef4ee 0%, #f7f5ef 100%);
}
.hero-row {
  display: flex;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 48px;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-title {
  font-size: 48px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--sw-color-text-body3);
  margin: 0 0 28px;
  max-width: 560px;
}
.hero-search {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 16px;
  box-shadow: var(--sw-shadow-soft);
  max-width: 860px;
  margin-bottom: 20px;
}
.hero-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-right: 1px solid var(--sw-color-border);
  color: var(--sw-color-placeholder);
}
.hero-search-input input {
  border: 0;
  outline: 0;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  min-width: 0;
  background: transparent;
  color: var(--sw-color-ink);
}
.hero-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 16px;
  color: var(--sw-color-text-body3);
  font-weight: 600;
  border-right: 1px solid var(--sw-color-border);
  white-space: nowrap;
}
.hero-search-btn {
  background: var(--sw-color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
}
.hero-img {
  flex: none;
  width: 460px;
}
.hero-img-inner {
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  box-shadow: var(--sw-shadow-hero);
}

@media (max-width: 1024px) {
  .hero-row {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .hero-img {
    width: auto;
  }
  .hero-img-inner {
    height: 300px;
  }
}
@media (max-width: 760px) {
  .hero-title {
    font-size: 33px;
  }
  .hero-img-inner {
    height: 200px;
  }
  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-loc {
    display: none;
  }
  .hero-search-input {
    border-right: none;
  }
  .hero-search-btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- List-Layout (Sidebar + Ergebnisse) ---------- */
.list-main {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.list-side {
  flex: none;
  width: 260px;
}
.list-results {
  flex: 1;
  min-width: 0;
}
.filter-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sw-color-placeholder);
  margin-bottom: 12px;
}
.filter-cat {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  color: var(--sw-color-text-body);
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}
.filter-cat:hover {
  background: var(--sw-color-fill-soft);
}
.filter-cat.is-active {
  background: var(--sw-color-tint-green);
  font-weight: 700;
  color: var(--sw-color-primary);
}
.filter-cat span {
  color: var(--sw-color-muted2);
}
.filter-cat.is-active span {
  color: var(--sw-color-primary);
}
@media (max-width: 1024px) {
  .list-side {
    width: 100%;
  }
  .list-main {
    flex-direction: column;
  }
}

/* ---------- Detail-Layout ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}
.detail-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail-gallery-main {
  height: 440px;
}
.detail-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px;
}
.detail-thumb {
  flex: 1;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}
.detail-thumb.is-active {
  border-color: var(--sw-color-primary);
}
@media (max-width: 760px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-side {
    position: static;
  }
  .detail-gallery-main {
    height: 280px;
  }
}

/* ---------- Stat-Karten (Dashboards) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--sw-color-border);
  border-radius: 14px;
  padding: 18px;
}
.stat-label {
  font-size: 13px;
  color: var(--sw-color-muted);
  font-weight: 600;
}
.stat-value {
  font-size: 30px;
  font-weight: 800;
  margin-top: 4px;
}
@media (max-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Account: Segmented Switcher + Sidebar-Menü ---------- */
.segmented {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-bottom: 30px;
}
.segmented .seg {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--sw-color-border2);
  color: var(--sw-color-text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.segmented .seg.is-active {
  background: var(--sw-color-primary);
  border-color: var(--sw-color-primary);
  color: #fff;
}
.acct-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.acct-side {
  flex: none;
  width: 260px;
}
.acct-content {
  flex: 1;
  min-width: 0;
}
.acct-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  font-size: 15px;
}
.acct-menu-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--sw-color-text-body);
}
.acct-menu-item:hover {
  background: var(--sw-color-fill-soft);
}
.acct-menu-item.is-active {
  background: var(--sw-color-tint-green);
  color: var(--sw-color-primary);
  font-weight: 700;
}
.acct-menu-item.danger {
  color: var(--sw-color-danger);
  border-top: 1px solid var(--sw-color-border3);
  margin-top: 6px;
}
@media (max-width: 1024px) {
  .acct-layout {
    flex-direction: column;
  }
  .acct-side {
    width: 100%;
  }
}

/* ---------- Progress-Bar (Register-Wizard) ---------- */
.progress {
  height: 8px;
  background: #e4eae1;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-fill {
  height: 100%;
  background: var(--sw-color-primary);
  border-radius: 999px;
  transition: width 0.25s;
}

/* ---------- Messages / Chat ---------- */
.msg-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: #fff;
  border: 1px solid var(--sw-color-border);
  border-radius: 18px;
  overflow: hidden;
  min-height: 560px;
}
.msg-list {
  border-right: 1px solid var(--sw-color-border);
  display: flex;
  flex-direction: column;
}
.msg-conv {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.msg-conv:hover {
  background: var(--sw-color-fill-soft2);
}
.msg-conv.is-active {
  background: var(--sw-color-tint-green2);
  border-left-color: var(--sw-color-primary);
}
.msg-chat {
  display: flex;
  flex-direction: column;
}
.msg-stream {
  flex: 1;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #faf9f5;
  overflow-y: auto;
}
.bubble {
  max-width: 70%;
  padding: 11px 15px;
  font-size: 15px;
  line-height: 1.4;
}
.bubble-me {
  align-self: flex-end;
  background: var(--sw-color-primary);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.bubble-them {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--sw-color-border);
  color: var(--sw-color-text-body2);
  border-radius: 14px 14px 14px 4px;
}
.bubble-time {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.8;
}
@media (max-width: 760px) {
  .msg-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .msg-list {
    display: none;
  }
}

/* ---------- Auth / zentrierte Karte ---------- */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
}
.auth-head {
  text-align: center;
  margin-bottom: 26px;
}
.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sw-color-primary);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.price-card {
  background: #fff;
  border: 1px solid var(--sw-color-border);
  border-radius: 18px;
  padding: 26px;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--sw-color-primary);
  box-shadow: var(--sw-shadow-raised);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--sw-color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-amount {
  font-size: 34px;
  font-weight: 800;
}
@media (max-width: 760px) {
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Hero-Bild mit Overlay (Event/Leisure Detail) ---------- */
.media-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #26221d;
}
.media-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.media-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 30, 18, 0.1), rgba(11, 30, 18, 0.8));
}
.media-hero-content {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  color: #fff;
}

/* ---------- Two-column content/sidebar (detail pages) ---------- */
.content-side-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 760px) {
  .content-side-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* sticky detail sidebar */
.sticky-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 760px) {
  .sticky-side {
    position: static;
  }
}

/* date box (events) */
.datebox {
  flex: none;
  width: 58px;
  text-align: center;
  background: var(--sw-color-tint-green);
  border-radius: 10px;
  padding: 8px 0;
}
.datebox .d {
  font-size: 20px;
  font-weight: 800;
  color: var(--sw-color-primary);
  line-height: 1;
}
.datebox .m {
  font-size: 12px;
  font-weight: 700;
  color: var(--sw-color-primary);
}

/* list row separators (dashboards) */
.row-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sw-color-border3);
}
.row-sep:last-child {
  border-bottom: none;
}

/* feature pill */
.feat-pill {
  background: #f0f3ee;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--sw-color-text-body);
  font-weight: 600;
}

/* not found */
.notfound {
  text-align: center;
  padding: 80px 20px;
}

/* === Aus PWA übernommen: components/Cards.css === */
/* ===== Kleinanzeigen-Karte ===== */
.lcard {
  overflow: hidden;
  display: block;
}
.lcard-img {
  height: 170px;
  position: relative;
}
.lcard-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--sw-color-text-body);
}
.lcard-free {
  position: absolute;
  top: 46px;
  left: 12px;
  background: var(--sw-color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.lcard-save {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sw-color-primary);
  cursor: pointer;
}
.lcard-body {
  padding: 14px 16px 16px;
}
.lcard-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--sw-color-primary);
}
.lcard-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 3px 0 8px;
}
.lcard-meta {
  font-size: 13px;
  color: var(--sw-color-muted);
}

/* ===== Event-Karte ===== */
.ecard {
  overflow: hidden;
  display: block;
}
.ecard-img {
  height: 160px;
  position: relative;
}
.ecard-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
}
.ecard-day {
  font-size: 18px;
  font-weight: 800;
  color: var(--sw-color-primary);
  line-height: 1;
}
.ecard-mon {
  font-size: 11px;
  font-weight: 700;
  color: var(--sw-color-primary);
}
.ecard-body {
  padding: 16px;
}
.ecard-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sw-color-primary);
}
.ecard-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 5px 0 8px;
}
.ecard-meta {
  font-size: 13px;
  color: var(--sw-color-muted);
}

/* ===== Business-Karte ===== */
.bcard {
  overflow: hidden;
  display: block;
}
.bcard-img {
  height: 150px;
  position: relative;
}
.bcard-open {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--sw-color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.bcard-body {
  padding: 16px;
}
.bcard-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.bcard-name {
  font-size: 17px;
  font-weight: 700;
}
.bcard-verified {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sw-color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bcard-cat {
  font-size: 13px;
  color: var(--sw-color-primary);
  font-weight: 600;
  margin-top: 2px;
}
.bcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.bcard-addr {
  font-size: 13px;
  color: var(--sw-color-muted);
}
.bcard-rating {
  font-size: 13px;
  font-weight: 700;
  color: var(--sw-color-gold);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ===== News-Karte ===== */
.ncard {
  display: flex;
  gap: 14px;
  padding: 12px;
  align-items: center;
}
.ncard-thumb {
  flex: none;
  width: 80px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
}
.ncard-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sw-color-primary);
}
.ncard-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
}
.ncard-excerpt {
  font-size: 13px;
  color: var(--sw-color-muted);
  margin-top: 3px;
}

/* ===== Freizeit-Karte ===== */
.fcard {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fcard-img {
  height: 150px;
  position: relative;
}
.fcard-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--sw-color-text-body);
}
.fcard-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fcard-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}
.fcard-desc {
  font-size: 14px;
  color: var(--sw-color-text-body3);
  line-height: 1.5;
  flex: 1;
}
.fcard-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sw-color-border3);
}
.fcard-host {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dce8df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--sw-color-primary);
}
.fcard-meta {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--sw-color-muted);
}
.fcard-spots {
  font-size: 12px;
  font-weight: 700;
  color: var(--sw-color-primary);
  background: var(--sw-color-tint-green);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* generic avatar */
.avatar {
  border-radius: 50%;
  background: #dce8df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--sw-color-primary);
  flex: none;
}

/* === Aus PWA übernommen: components/AdSlot.css === */
.ad-banner {
  border: 1px solid var(--sw-color-border);
  border-radius: 14px;
  background: var(--sw-color-fill-soft2);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ad-banner-flag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-color-muted3);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.ad-banner-body {
  flex: 1;
  text-align: center;
  color: var(--sw-color-muted2);
}
.ad-banner-title {
  font-size: 14px;
  font-weight: 600;
}
.ad-banner-fmt {
  font-size: 12px;
  margin-top: 2px;
}
.ad-box {
  border: 1px solid var(--sw-color-border);
  background: var(--sw-color-fill-soft2);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-box-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sw-color-muted2);
}
.ad-box-fmt {
  font-size: 12px;
  color: var(--sw-color-muted2);
  margin-top: 2px;
}

/* === Theme-Interaktionen: Toast + Nachricht-Modal === */
.sw-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  z-index: 90; background: var(--sw-color-ink); color: #fff; font-size: 15px; font-weight: 600;
  padding: 14px 22px; border-radius: 12px; box-shadow: var(--sw-shadow-toast);
  max-width: 90vw; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.sw-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.sw-modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(16,26,20,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.sw-modal { background: #fff; border-radius: 18px; width: 100%; max-width: 460px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.sw-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sw-modal-x { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--sw-color-muted); }
.sw-modal-ctx { display: flex; gap: 12px; align-items: center; background: var(--sw-color-fill-soft2); border: 1px solid var(--sw-color-border); border-radius: 12px; padding: 10px; }
.sw-modal-ctx-img { flex: none; width: 56px; height: 56px; border-radius: 9px; overflow: hidden; }
.feat-pill[aria-pressed="true"], .is-on { color: var(--sw-color-primary); }

/* === Branchenbuch-Cover responsive (Desktop Overlay / Mobil statisch) === */
.biz-cover { position: relative; margin-bottom: 60px; }
.biz-cover-img { height: 280px; border-radius: 18px; overflow: hidden; }
.biz-head { position: absolute; left: 28px; right: 28px; bottom: -44px; display: flex; align-items: flex-end; gap: 16px; }
.biz-avatar { width: 96px; height: 96px; border-radius: 20px; background: var(--sw-color-primary); border: 4px solid var(--sw-color-page); color: #fff; font-size: 34px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
@media (max-width: 760px) {
  .biz-cover { margin-bottom: 16px; }
  .biz-cover-img { height: 160px !important; }
  .biz-head { position: static; left: auto; right: auto; bottom: auto; margin-top: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .biz-avatar { width: 72px !important; height: 72px !important; font-size: 26px !important; border-radius: 16px !important; }
}

/* === Plus Jakarta Sans — selbst gehostet (DSGVO-konform) === */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/PlusJakartaSans-400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/PlusJakartaSans-500.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/PlusJakartaSans-600.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/PlusJakartaSans-700.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/PlusJakartaSans-800.woff2') format('woff2'); }
