/* =====================================================
   FALKENSEE-CLUB — V2 COMPONENT LIBRARY
   Nebenan/NextDoor inspired design upgrade
   ===================================================== */

/* ── NEW DESIGN TOKENS ── */
:root {
  --primary-light: #e8f5ee;
  --primary-mid:   #b2dfc4;
  --bg-page:       #f6f9f7;
  --card-border:   #e2ede8;
  --text-main:     #1a2e23;
  --text-muted:    #5a7060;
  --radius-xl:     16px;
  --radius-2xl:    24px;
}

body { background-color: var(--bg-page); }

/* =====================================================
   NAVIGATION ENHANCEMENTS
   ===================================================== */
.nav-brand-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}
.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  margin: 0;
}
.brand-sub {
  font-size: .6875rem;
  color: var(--text-muted);
  line-height: 1;
}

/* Icon-text nav links */
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.nav-links a i { font-size: .8125rem; opacity: .65; }
.nav-links a.active i,
.nav-links a:hover i { opacity: 1; }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  padding: .5rem 1rem;
  font-size: .875rem;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }

/* =====================================================
   HERO V2 — Nebenan-inspired
   ===================================================== */
.hero-v2 {
  background: linear-gradient(145deg, #163d27 0%, #2d7a4f 55%, #3a9e65 100%);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  color: white;
}
/* Subtle dot-grid texture */
.hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-location-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.92);
  padding: .35rem 1rem;
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: .875rem;
  letter-spacing: -.02em;
}
.hero-title em {
  font-style: normal;
  color: rgba(255,255,255,.68);
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: .9375rem;
  font-weight: 600;
  background: rgba(255,255,255,.15);
  color: white;
  border: 2px solid rgba(255,255,255,.35);
  text-decoration: none;
  transition: all .2s;
}
.hero-btn:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.65);
  color: white;
  transform: translateY(-2px);
}
.hero-btn.hero-btn-accent {
  background: white;
  color: var(--primary-dark);
  border-color: white;
}
.hero-btn.hero-btn-accent:hover {
  background: rgba(255,255,255,.93);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  color: var(--primary-dark);
}
.hero-btn i { font-size: .9375rem; }

/* Trust indicators below hero CTA */
.trust-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem 1.25rem;
}
.trust-pills span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
}
.trust-pills i { font-size: .75rem; color: rgba(255,255,255,.9); }

/* =====================================================
   CATEGORY QUICK-ACCESS CHIPS
   ===================================================== */
.cats-section {
  background: white;
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
}
.cats-grid {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .875rem;
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-main);
  font-size: .8125rem;
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}
.cat-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary-mid);
  color: var(--primary-dark);
}

/* Small colored icon circle inside chip */
.cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
}
.cat-icon-blue   { background: #dbeafe; color: #1d4ed8; }
.cat-icon-orange { background: #ffedd5; color: #c2410c; }
.cat-icon-pink   { background: #fce7f3; color: #9d174d; }
.cat-icon-green  { background: #dcfce7; color: #166534; }
.cat-icon-teal   { background: #ccfbf1; color: #0f766e; }
.cat-icon-purple { background: #ede9fe; color: #6d28d9; }
.cat-icon-red    { background: #fee2e2; color: #b91c1c; }
.cat-icon-gray   { background: #f3f4f6; color: #374151; }

/* =====================================================
   HOME CONTENT — 2-column feed
   ===================================================== */
.home-content { padding: 2.5rem 0 3rem; }
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--primary-light);
}
.section-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.section-header h2 i { color: var(--primary-color); }
.section-link {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  opacity: .85;
}
.section-link:hover { opacity: 1; text-decoration: underline; }

/* =====================================================
   FEED CARDS — replaces .content-card on feeds
   ===================================================== */
.feed { display: flex; flex-direction: column; gap: .625rem; }
.feed-card-link { text-decoration: none; color: inherit; display: block; }
.feed-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.feed-card:hover {
  box-shadow: 0 4px 18px rgba(45,122,79,.12);
  transform: translateY(-1px);
  border-color: var(--primary-mid);
}
.feed-card-body { padding: .875rem 1rem .75rem; }
.feed-tags {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.feed-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 .3rem;
  line-height: 1.35;
}
.feed-desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Meta row: avatar + name + location + time */
.feed-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: var(--bg-page);
  border-top: 1px solid #eef3f0;
}
.feed-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.feed-avatar-init {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
}
.feed-info { flex: 1; min-width: 0; }
.feed-name { font-size: .775rem; font-weight: 600; color: var(--gray-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-loc  { font-size: .7rem; color: var(--text-muted); }
.feed-loc i { font-size: .6rem; margin-right: .1rem; }
.feed-time { font-size: .7rem; color: var(--gray-400); white-space: nowrap; flex-shrink: 0; }

/* =====================================================
   TYPE BADGES & CATEGORY TAGS
   ===================================================== */
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .175rem .55rem;
  border-radius: var(--radius-full);
  font-size: .675rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.type-suche   { background: #dbeafe; color: #1d4ed8; }
.type-angebot { background: #dcfce7; color: #166534; }
.type-event   { background: #fef3c7; color: #92400e; }

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .175rem .5rem;
  border-radius: var(--radius-full);
  font-size: .675rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
}

/* =====================================================
   WHY FALKENSEE-CLUB — trust section
   ===================================================== */
.why-section {
  background: white;
  border-top: 1px solid var(--card-border);
  padding: 3rem 0;
}
.why-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2rem;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .why-grid { grid-template-columns: 1fr; } }

.why-card { text-align: center; padding: 1.25rem .75rem; }
.why-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin: 0 auto .875rem;
}
.why-icon-green  { background: #dcfce7; color: #166534; }
.why-icon-blue   { background: #dbeafe; color: #1d4ed8; }
.why-icon-orange { background: #ffedd5; color: #c2410c; }
.why-icon-purple { background: #ede9fe; color: #6d28d9; }

.why-card h3 { font-size: .9375rem; font-weight: 700; color: var(--text-main); margin-bottom: .4rem; }
.why-card p  { font-size: .8125rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* =====================================================
   MOBILE OVERRIDES
   ===================================================== */
@media (max-width: 600px) {
  .hero-v2 { padding: 3rem 0 2.5rem; }
  .hero-btn { padding: .75rem 1.25rem; font-size: .875rem; }
  .cats-section { overflow-x: auto; }
  .cats-grid { flex-wrap: nowrap; justify-content: flex-start; padding: 0 1rem; }
}
