/* ============================================================
   BEISAMMEN — App-spezifische Styles (zusätzlich zu styles.css)
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────── */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}
.page-wrap-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 96px;
}
.page-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 8px;
}
.page-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 36px;
}

/* ── Activity Feed Grid ─────────────────────────────────── */
.feed-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.feed-controls input,
.feed-controls select {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.feed-controls input:focus,
.feed-controls select:focus {
  border-color: var(--blue-3);
  box-shadow: 0 0 0 3px rgba(74,111,176,.15);
}
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Activity Card ──────────────────────────────────────── */
.act-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}
.act-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
}
.act-card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg-tint), #D9CAAF);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.act-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.act-card-cat {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-2);
}
.act-card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}
.act-card-meta {
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.act-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.spots {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 600;
}
.spots.full {
  background: #FEF2F2;
  color: #DC2626;
}

/* ── Form Styles ─────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--sh-sm);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus {
  border-color: var(--blue-3);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74,111,176,.15);
}
textarea.form-input {
  resize: vertical;
  min-height: 100px;
}
.form-hint {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
}
.form-error {
  font-size: 13px;
  color: #DC2626;
  background: #FEF2F2;
  padding: 10px 14px;
  border-radius: var(--r);
  margin-bottom: 16px;
  border: 1px solid #FECACA;
}
.form-success {
  font-size: 13px;
  color: #16A34A;
  background: #F0FDF4;
  padding: 10px 14px;
  border-radius: var(--r);
  margin-bottom: 16px;
  border: 1px solid #BBF7D0;
}

/* ── Chat ────────────────────────────────────────────────── */
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.chat-input-row input:focus { border-color: var(--blue-3); }

/* ── Profile ─────────────────────────────────────────────── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  margin-bottom: 24px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D9D2C4, #B0A691);
  object-fit: cover;
  flex-shrink: 0;
}
.profile-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.profile-city {
  font-size: 14px;
  color: var(--ink-mute);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .page-wrap { padding: 24px 16px 64px; }
  .page-wrap-narrow { padding: 24px 16px 64px; }
  .feed-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .profile-header { flex-direction: column; text-align: center; }
}
