/* ============================================================
   MITGEHN — Theme "Editorial" (neues Design, Stand 10.06.2026)
   Wird NUR geladen, wenn Cookie mg_design=editorial gesetzt ist
   (Umschalten: ?design=neu / zurück: ?design=alt)
   Quelle: Claude-Design-Template Mitgehn_dc.html
   ============================================================ */

/* ---------- Lokale Fonts (DSGVO: selbst gehostet) ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-var.woff2') format('woff2');
}

/* ---------- Token-Override (überschreibt styles.css) ---------- */
:root {
  --bg:           #faf6ee;
  --bg-tint:      #f4ecdc;
  --bg-card:      #FFFFFF;
  --bg-dark:      #18313d;
  --bg-dark-soft: #224250;
  --ink:          #18313d;
  --ink-soft:     #5d6b66;
  --ink-mute:     #8a9183;
  --ink-light:    #c9c2b2;
  --ink-invert:   #FFFFFF;
  --blue:         #18313d;
  --navy:         #18313d;
  --blue-2:       #224250;
  --blue-3:       #3d6171;
  --blue-pale:    #eef3ea;
  --orange:       #f0a63a;
  --orange-2:     #d98f24;
  --orange-pale:  #fdf3e1;
  --green:        #2f7d68;
  --green-2:      #235a4c;
  --green-light:  #eef4ef;
  --green-mid:    #57997f;
  --line:         #e3d9c6;
  --line-soft:    #ece3d3;
  --line-dark:    rgba(255,255,255,.10);
  --r-sm: 10px; --r: 14px; --r-md: 18px; --r-lg: 28px; --r-pill: 999px;
  --sh-xs: 0 1px 2px rgba(24,49,61,.04);
  --sh-sm: 0 1px 2px rgba(24,49,61,.05), 0 6px 16px -8px rgba(24,49,61,.10);
  --sh:    0 1px 2px rgba(24,49,61,.05), 0 18px 44px -22px rgba(24,49,61,.22);
  --sh-lg: 0 1px 2px rgba(24,49,61,.05), 0 30px 70px -34px rgba(24,49,61,.32);
}

/* ---------- Grund-Typografie ---------- */
body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.page-title, .card-title, .act-title, .section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

h4, h5, h6 { font-family: 'Hanken Grotesk', system-ui, sans-serif; }

/* ---------- Topbar ---------- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}

/* Wortmarke: zweifarbig wie im Template */
.nav .brand-word, .brand-wordmark {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ---------- Buttons ---------- */
.btn, button.btn, a.btn {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  border-radius: var(--r);
}
.btn-primary, .btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(47,125,104,.7);
}
.btn-primary:hover, .btn-green:hover { background: var(--green-2); }

/* ---------- Karten ---------- */
.card, .act-card, .feed-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}

/* ---------- Chips / Meta-Pillen ---------- */
.chip, .steck-tag, .meta-pill {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
}

/* ---------- Aktive Navigation ---------- */
.nav-links a.active, .bottom-tab-bar .tab.active {
  color: var(--green-2);
}

/* ---------- Formulare ---------- */
input, select, textarea {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  outline-color: var(--green);
}

/* ---------- Desktop-Außenrand (Body hinter der App) ---------- */
@media (min-width: 1100px) {
  html { background: #e8e2d5; }
}

/* ============================================================
   DESKTOP-SIDEBAR (nur Editorial-Design, nur eingeloggt, ≥1024px)
   ============================================================ */
.mg-sidebar { display: none; }

@media (min-width: 1024px) {
  .mg-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 256px;
    background: #fff;
    border-right: 1px solid var(--line-soft);
    padding: 24px 18px;
    z-index: 200;
    overflow-y: auto;
  }

  .mg-sb-brand {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 800;
    font-size: 23px;
    letter-spacing: -.02em;
    padding: 6px 10px 22px;
    text-decoration: none;
    color: var(--ink);
  }
  .mg-sb-brand span { color: var(--green); }

  .mg-sb-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 13px;
    color: #56635e;
    font-weight: 600;
    font-size: 15.5px;
    text-decoration: none;
    margin-bottom: 4px;
    transition: background .15s ease, color .15s ease;
  }
  .mg-sb-item:hover { background: var(--bg); color: var(--ink); }
  .mg-sb-item.active {
    background: var(--green-light);
    color: var(--green-2);
    font-weight: 700;
  }

  .mg-sb-badge {
    margin-left: auto;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 7px;
  }

  .mg-sb-create {
    margin: 22px 4px 0;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: 15.5px;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    box-shadow: 0 10px 22px -10px rgba(47,125,104,.7);
    transition: background .15s ease;
  }
  .mg-sb-create:hover { background: var(--green-2); }

  /* Inhalt + Topbar nach rechts schieben */
  body.design-editorial { padding-left: 256px; }

  /* Topbar: zentrale Links + Wortmarke ausblenden (Sidebar übernimmt),
     rechte Icons (Suche/Glocke/Chat/Avatar) bleiben erhalten */
  body.design-editorial .nav-links { display: none !important; }
  body.design-editorial .nav .brand { visibility: hidden; }
  body.design-editorial .nav-inner { grid-template-columns: 1fr auto; }
  body.design-editorial .nav {
    background: rgba(250,246,238,.85);
    backdrop-filter: saturate(140%) blur(14px);
  }
}

/* ============================================================
   FEED-KARTEN — Editorial-Feinschliff (rein CSS, Scope: .design-editorial)
   ============================================================ */
body.design-editorial .act-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.design-editorial .act-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh);
  border-color: var(--line);
}

body.design-editorial .act-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
}

/* Meta-Angaben (Datum/Ort/Typ) als Pillen wie im Template */
body.design-editorial .act-meta { gap: 6px; }
body.design-editorial .act-meta > span {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Plätze-Badge: orange statt rot/grau */
body.design-editorial .spots-badge {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(240,166,58,.6);
}

/* Host-Zeile */
body.design-editorial .host-name {
  font-weight: 700;
  color: var(--ink);
}
body.design-editorial .host-av,
body.design-editorial .host-av-init {
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line-soft);
}

/* Footer-Trennlinie */
body.design-editorial .act-footer {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  margin-top: 10px;
}

/* Feed-Tabs + Subtabs: Editorial-Farben */
body.design-editorial .feed-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
body.design-editorial .feed-subtab.active {
  background: var(--green-light);
  color: var(--green-2);
  border-color: var(--green-mid);
}
body.design-editorial .feed-tab,
body.design-editorial .feed-subtab {
  border-radius: 999px;
  font-weight: 600;
}

/* Seitenhintergrund der Feed-Liste */
body.design-editorial { background: var(--bg); }

/* ============================================================
   EDITORIAL-KARTEN (Template-treu) + Feed-Layout
   ============================================================ */
body.design-editorial .act-grid,
body.design-editorial .act-grid.grid,
body.design-editorial .act-grid.list,
body.design-editorial .act-grid.compact {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}

.ed-card {
  background: #fff;
  border: 1px solid #ece3d3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(24,49,61,.04), 0 18px 40px -28px rgba(24,49,61,.25);
}

/* Kopfzeile: Host lädt ein */
.ed-head { padding: 18px 22px 14px; display: flex; align-items: center; gap: 13px; }
.ed-host-av {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; flex: none;
}
.ed-host-init {
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
}
.ed-head-txt { flex: 1; line-height: 1.3; min-width: 0; }
.ed-head-line1 { font-size: 15px; color: #18313d; }
.ed-head-line1 strong { font-weight: 700; }
.ed-head-line1 span { color: #8a9183; }
.ed-head-line2 { font-size: 13px; color: #8a9183; }
.ed-cat-pill {
  flex: none; font-weight: 700; font-size: 12.5px;
  border-radius: 999px; padding: 6px 13px;
}

/* Titel + Pillen */
.ed-body { padding: 0 22px 16px; }
.ed-title-link { text-decoration: none; }
.ed-title {
  margin: 0 0 12px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600; font-size: 25px; color: #18313d;
  letter-spacing: -.01em; line-height: 1.18;
}
.ed-pills { display: flex; gap: 9px; flex-wrap: wrap; }
.ed-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #faf6ee; border: 1px solid #ece3d3; border-radius: 999px;
  padding: 7px 13px; font-size: 13.5px; color: #56635e; font-weight: 600;
}
.ed-pill-spots { background: #fdf3e3; border-color: #f2e2c4; color: #b27e2c; font-weight: 700; }
.ed-pill-full  { background: #f6e7e4; border-color: #ecd2cc; color: #b2543e; font-weight: 700; }

/* Foto */
.ed-img { display: block; height: 240px; background: #e9efe6; }
.ed-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Footer: Teilnehmer + Buttons */
.ed-foot { padding: 15px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ed-parts { display: flex; align-items: center; }
.ed-part-av {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; border: 2px solid #fff; flex: none;
}
.ed-part-init {
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.ed-parts-txt { margin-left: 9px; font-size: 13.5px; color: #8a9183; font-weight: 600; }
.ed-actions { margin-left: auto; display: flex; gap: 10px; }
.ed-btn-ghost {
  border: 1px solid #e3d9c6; background: #fff; color: #56635e;
  font-weight: 600; font-size: 14px; border-radius: 11px; padding: 10px 16px;
  text-decoration: none; display: inline-flex; align-items: center;
}
.ed-btn-ghost:hover { border-color: #c9bda3; color: #18313d; }
.ed-btn-go {
  border: 0; background: #2f7d68; color: #fff;
  font-weight: 700; font-size: 14px; border-radius: 11px; padding: 10px 20px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 18px -8px rgba(47,125,104,.65);
}
.ed-btn-go:hover { background: #235a4c; }

/* Alte act-card-Hover-Overlays im Editorial nicht nötig */
body.design-editorial .act-hover-overlay { display: none; }

/* ============================================================
   DESKTOP-AUFRÄUMEN (nur ≥1024px, nur Editorial)
   ============================================================ */
@media (min-width: 1024px) {
  /* Mobile Bottom-Bar weg — Sidebar übernimmt */
  body.design-editorial .bottom-tab-bar { display: none !important; }
  body.design-editorial { padding-bottom: 0; }

  /* Alte zentrierte Wortmarke + linkes Logo in der Topbar weg */
  body.design-editorial .nav-inner > a[aria-label*="Startseite"] { display: none !important; }

  /* Oranger Erstellen-Button im Feed weg — Sidebar hat ihn */
  body.design-editorial .feed-create-btn { display: none !important; }

  /* View-Mode-Schalter weg — Editorial ist einspaltig */
  body.design-editorial .view-btn { display: none !important; }
}

/* Mobil: Karten kompakter */
@media (max-width: 700px) {
  .ed-title { font-size: 20px; }
  .ed-img { height: 190px; }
  .ed-head { padding: 15px 16px 12px; }
  .ed-body { padding: 0 16px 14px; }
  .ed-foot { padding: 13px 16px; }
}

/* Topbar-Icons rechtsbündig + doppeltes Plus auf Desktop weg */
@media (min-width: 1024px) {
  body.design-editorial .nav-inner {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
  }
  body.design-editorial .nav a[href*="create.php"] { display: none !important; }
}

/* ============================================================
   TOPBAR + FOOTER — Editorial-Look
   ============================================================ */
/* Begrüßung: mobil aus, Desktop links */
.ed-topbar-greet { display: none; }

@media (min-width: 1024px) {
  body.design-editorial .ed-topbar-greet {
    display: block;
    margin-right: auto;
    line-height: 1.25;
  }
  body.design-editorial .ed-greet-name {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: 22px;
    color: #18313d;
    letter-spacing: -.01em;
  }
  body.design-editorial .ed-greet-sub {
    font-size: 13.5px;
    color: #8a9183;
  }
  /* Icons rechts: weiße Kästchen mit Rahmen wie im Template */
  body.design-editorial .nav [aria-label="Suchen"],
  body.design-editorial .nav [aria-label="Benachrichtigungen"],
  body.design-editorial .nav [aria-label="Nachrichten"] {
    width: 42px !important; height: 42px !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid #e3d9c6 !important;
    color: #56635e !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 !important;
  }
  /* Topbar selbst: Creme + Hairline (überschreibt Glas-Effekt) */
  body.design-editorial .nav,
  body.design-editorial .nav.nav-scrolled {
    background: #faf6ee;
    border-bottom: 1px solid #ece3d3;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.design-editorial .nav-inner { padding: 14px 28px; }
}

/* Footer: Editorial-Feinschliff (beide Breiten) */
body.design-editorial .site-footer {
  background: #faf6ee;
  border-top: 1px solid #ece3d3;
}
body.design-editorial .site-footer .f-legal a {
  color: #56635e;
  font-weight: 600;
}
body.design-editorial .site-footer .f-legal a:hover { color: #18313d; }
body.design-editorial .site-footer .footer-copy { color: #8a9183; }

/* ============================================================
   MOBILE BOTTOM-TAB-BAR — Editorial (Template-Look mit Plus)
   ============================================================ */
.ed-tab-plus { display: none; }

@media (max-width: 1023px) {
  /* Leiste: weiß, Hairline, luftiger */
  body.design-editorial .bottom-tab-bar {
    background: #fff;
    border-top: 1px solid #ece3d3;
    box-shadow: none;
    padding-top: 10px;
  }

  /* Tabs: Template-Farben + Typo */
  body.design-editorial .bottom-tab-bar .bt-item {
    color: #9aa39d;
    font-weight: 600;
    position: relative;
  }
  body.design-editorial .bottom-tab-bar .bt-item span { font-size: 10.5px; }
  body.design-editorial .bottom-tab-bar .bt-item.active {
    color: #2f7d68;
    font-weight: 700;
    background: none;
  }

  /* "Für mich" raus — Template hat 4 Tabs + Plus
     (Einladungen: oranger Punkt auf Start + Feed-Tab "Für dich") */
  body.design-editorial .bottom-tab-bar a[href*="tab=forYou"] { display: none; }

  /* Grünes Plus in der Mitte, schwebt leicht über der Leiste */
  body.design-editorial .ed-tab-plus {
    display: flex;
    margin-top: -7px;
  }
  body.design-editorial .ed-plus-box {
    width: 54px; height: 54px;
    border-radius: 18px;
    background: #2f7d68;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 24px -8px rgba(47,125,104,.7);
  }
  body.design-editorial .ed-tab-plus:active .ed-plus-box { background: #235a4c; }

  /* Oranger Einladungs-Punkt am Start-Tab */
  body.design-editorial .ed-tab-dot {
    position: absolute;
    top: 2px; right: 16px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #f0a63a;
    box-shadow: 0 0 0 2px #fff;
  }

  /* Badge am Chat-Tab: orange wie im Template */
  body.design-editorial .bottom-tab-bar .bt-badge {
    background: #f0a63a;
    color: #fff;
  }

  /* Mobile Topbar (App-Header): weiß + Hairline */
  body.design-editorial .nav {
    background: #fff;
    border-bottom: 1px solid #ece3d3;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Editorial-Mobil: Chat-Icon oben im Header ausblenden (ist in der Tab-Leiste) */
@media (max-width: 1023px) {
  body.design-editorial .nav [aria-label="Nachrichten"] { display: none !important; }
}

/* ============================================================
   TOPBAR-AUFRÄUMEN v2 (alle Breiten, Editorial):
   Plus + Chat raus aus der Topbar, einheitlicher Look
   ============================================================ */
/* Plus (Treffen erstellen) überall raus — Sidebar/Bottom-Bar haben ihn */
body.design-editorial .nav a[href*="create.php"] { display: none !important; }

/* Chat-Icon überall raus — Desktop: Sidebar „Nachrichten", Mobil: Tab-Leiste */
body.design-editorial .nav [aria-label="Nachrichten"] { display: none !important; }

/* Alte Wortmarke „mitgehn." überall raus */
body.design-editorial .nav-inner > a[aria-label*="Startseite"] { display: none !important; }

/* Zweifarbige Editorial-Wortmarke: nur Mobil */
.ed-mob-brand { display: none; }
@media (max-width: 1023px) {
  body.design-editorial .ed-mob-brand {
    display: inline-flex;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.02em;
    color: #18313d;
    text-decoration: none;
    margin-right: auto;
  }
  body.design-editorial .ed-mob-brand span { color: #2f7d68; }

  /* Mobil: nav-inner als Flex (Marke links, Icons rechts) */
  body.design-editorial .nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Suche + Glocke als Kästchen wie im Template (Mobil 38px) */
  body.design-editorial .nav [aria-label="Suchen"],
  body.design-editorial .nav [aria-label="Benachrichtigungen"] {
    width: 38px !important; height: 38px !important;
    border-radius: 11px !important;
    background: #faf6ee !important;
    border: 1px solid #ece3d3 !important;
    color: #56635e !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 !important;
  }
}

/* ============================================================
   DETAILSEITE (activity.php) — Editorial-Feinschliff
   ============================================================ */
/* Hero-Karte: Kategorie als grüne Pille oben rechts AUF dem Bild */
body.design-editorial .activity-grid > div > div:first-child {
  position: relative;
}
body.design-editorial .act-card-cat {
  position: absolute;
  top: 18px; right: 20px;
  background: #2f7d68;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 999px;
  padding: 8px 15px;
  margin: 0 !important;
  z-index: 2;
  box-shadow: 0 6px 16px -6px rgba(24,49,61,.35);
}

/* Detail-Titel: Template-Größe */
body.design-editorial .activity-grid h1 {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: clamp(24px, 3vw, 30px) !important;
  letter-spacing: -.01em !important;
  line-height: 1.15;
}

/* ALL-CAPS-Mono-Labels („WER IST DABEI", „GASTGEBER", …) → ruhige fette Titel */
body.design-editorial .activity-grid [style*="text-transform:uppercase"] {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: 'Hanken Grotesk', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #18313d !important;
}

/* Karten in beiden Spalten: Template-Radius + Hairline */
body.design-editorial .activity-grid > div > div {
  border-color: #ece3d3 !important;
  border-radius: 20px !important;
}

/* „X Plätze frei"-Badge orange */
body.design-editorial .spots {
  background: #fdf3e3;
  border: 1px solid #f2e2c4;
  color: #b27e2c;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
}
body.design-editorial .spots.full {
  background: #f6e7e4;
  border-color: #ecd2cc;
  color: #b2543e;
}

/* Chat-Eingabe + Senden im Editorial-Look */
body.design-editorial #chatInputRow input[type="text"] {
  background: #faf6ee;
  border: 1px solid #ece3d3;
  border-radius: 12px;
}

/* Co-Organisatoren-Label + weitere klassenbasierte Caps-Labels */
body.design-editorial .cohost-title {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #18313d !important;
  font-family: 'Hanken Grotesk', sans-serif !important;
}

/* „Wer ist dabei"-Kopfzeile (Klasse participant-header) normalcase */
body.design-editorial .participant-header {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #18313d !important;
  font-family: 'Hanken Grotesk', sans-serif !important;
}

/* ============================================================
   LIVE-PASS 11.06.2026: Menüs, Entdecken, Chat-Liste, Formulare
   ============================================================ */
/* Hamburger-Drawer (rechtes Menü) + Desktop-Dropdowns */
body.design-editorial .mobile-nav > div,
body.design-editorial .mobile-nav .mobile-nav-inner,
body.design-editorial .nav-dropdown {
  background: #fff !important;
  border: 1px solid #ece3d3 !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 44px -22px rgba(24,49,61,.28) !important;
}
body.design-editorial .mobile-nav a,
body.design-editorial .nav-dropdown a {
  border-radius: 12px;
  font-weight: 600;
  color: #56635e;
}
body.design-editorial .mobile-nav a:hover,
body.design-editorial .nav-dropdown a:hover {
  background: #faf6ee;
  color: #18313d;
}

/* Entdecken: Mitglieder-Karten */
body.design-editorial .member-card {
  background: #fff;
  border: 1px solid #ece3d3;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(24,49,61,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
body.design-editorial .member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(24,49,61,.05), 0 18px 40px -28px rgba(24,49,61,.25);
}

/* Chat-Übersicht (messages.php) */
body.design-editorial .chat-row { border-color: #ece3d3; }
body.design-editorial .chat-row:hover { background: #faf6ee; }
body.design-editorial .chat-row.unread .chat-name { color: #18313d; }

/* Formulare global (create.php, edit, settings, login, register …) */
body.design-editorial input[type="text"],
body.design-editorial input[type="email"],
body.design-editorial input[type="password"],
body.design-editorial input[type="number"],
body.design-editorial input[type="date"],
body.design-editorial input[type="time"],
body.design-editorial input[type="search"],
body.design-editorial select,
body.design-editorial textarea {
  background: #fff;
  border: 1px solid #e3d9c6;
  border-radius: 12px;
  color: #18313d;
}
body.design-editorial input:focus,
body.design-editorial select:focus,
body.design-editorial textarea:focus {
  border-color: #2f7d68;
  box-shadow: 0 0 0 3px rgba(47,125,104,.13);
  outline: none;
}
body.design-editorial label { font-weight: 600; color: #18313d; }

/* Buttons: einheitlicher Radius */
body.design-editorial .btn { border-radius: 12px; }

/* Drawer-Menü (.mobile-nav-panel) — Editorial */
body.design-editorial .mobile-nav { background: rgba(24,49,61,.45); }
body.design-editorial .mobile-nav-panel {
  background: #faf6ee !important;
  border-left: 1px solid #ece3d3;
  border-radius: 0;
}
body.design-editorial .mob-section {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #18313d !important;
  margin-top: 6px;
}
body.design-editorial .mob-link {
  border-radius: 12px;
  font-weight: 600;
  color: #56635e;
  background: transparent;
}
body.design-editorial .mob-link:hover,
body.design-editorial .mob-link:active {
  background: #fff;
  color: #18313d;
}
body.design-editorial .mob-sep {
  background: #ece3d3 !important;
  border-color: #ece3d3 !important;
}

/* ============================================================
   INFO-KARTEN (Detail) + STICKY-JOIN + CHAT-BUBBLES (Template)
   ============================================================ */
.ed-info {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid #ece3d3; border-radius: 13px;
  padding: 12px 14px; min-width: 220px;
}
.ed-info-ic {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: #eef4ef; display: flex; align-items: center; justify-content: center;
}
.ed-info-main { font-weight: 700; font-size: 14.5px; color: #18313d; }
.ed-info-sub  { font-size: 12.5px; color: #8a9183; }

/* Sticky-Beitreten-Leiste: nur mobil */
.ed-join-bar { display: none; }
@media (max-width: 1023px) {
  .ed-join-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)); /* über der Tab-Leiste */
    background: #fff; border-top: 1px solid #ece3d3;
    padding: 12px 16px; z-index: 90;
  }
}

/* Gruppen-Chat-Bubbles (activity.php) */
body.design-editorial .bubble.in {
  background: #fff;
  border: 1px solid #ece3d3;
  color: #18313d;
  border-radius: 16px 16px 16px 5px;
}
body.design-editorial .bubble.out {
  background: #2f7d68;
  color: #fff;
  border-radius: 16px 16px 5px 16px;
}

/* DM-Bubbles (conversation.php) */
body.design-editorial .dm-row.mine .dm-bubble {
  background: #2f7d68 !important;
  color: #fff;
  border-radius: 16px 16px 5px 16px;
}
body.design-editorial .dm-row.theirs .dm-bubble {
  background: #fff;
  border: 1px solid #ece3d3;
  border-radius: 16px 16px 16px 5px;
}

/* ============================================================
   PROFIL — Template-Look
   ============================================================ */
body.design-editorial .profile-name {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: clamp(26px, 3vw, 32px) !important;
  letter-spacing: -.01em !important;
  color: #18313d;
}

/* Stats-Reihe: große Serif-Zahlen mit Trennern */
.ed-stats {
  display: flex;
  margin-top: 18px;
  border-top: 1px solid #ece3d3;
  border-bottom: 1px solid #ece3d3;
  padding: 14px 0;
}
.ed-stat {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.ed-stat + .ed-stat { border-left: 1px solid #ece3d3; }
.ed-stat-n {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 25px;
  color: #18313d;
  line-height: 1.1;
}
.ed-stat-l {
  font-size: 12.5px;
  color: #8a9183;
  font-weight: 600;
  margin-top: 3px;
}

/* Verifiziert-Badge im Template-Grün */
body.design-editorial .ver-badge {
  background: #eef4ef !important;
  color: #2f7d68 !important;
}

/* ============================================================
   NACHRICHTEN (messages.php) — Template-Look
   ============================================================ */
/* Untertabs: grün statt orange */
body.design-editorial .msg-subtab { color: #8a9183; font-weight: 600; }
body.design-editorial .msg-subtab.active {
  color: #235a4c !important;
  border-color: #2f7d68 !important;
}
body.design-editorial .msg-subtab-count {
  background: #f0a63a !important;
  color: #fff !important;
}

/* Avatar-Kacheln: abgerundete Quadrate wie im Template */
body.design-editorial .chat-row .chat-av,
body.design-editorial .chat-row .chat-av-init,
body.design-editorial .chat-row img.chat-av {
  border-radius: 14px !important;
}

/* Zeit + Vorschau in Template-Grau */
body.design-editorial .chat-time { color: #8a9183; }
body.design-editorial .chat-preview { color: #8a9183; }

/* „Neue Nachricht"-Button: Editorial-Grün (war evtl. dunkel) */
body.design-editorial .msg-new-btn,
body.design-editorial a[onclick*="openNewMsg"],
body.design-editorial button[onclick*="openNewMsg"] {
  background: #2f7d68 !important;
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 22px -10px rgba(47,125,104,.7);
}

/* Detail rechte Spalte: Join-Card zuerst (Template), „Wer ist dabei" danach */
body.design-editorial .participant-card { order: 2 !important; }

/* ============================================================
   CHAT-ZWEISPALTER (conversation.php, Desktop — Template)
   ============================================================ */
.ed-dm-list { display: none; }

@media (min-width: 1024px) {
  body.design-editorial .ed-dm-layout {
    display: flex;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ece3d3;
    border-radius: 20px;
    overflow: hidden;
    min-height: 70vh;
  }
  body.design-editorial .ed-dm-list {
    display: block;
    width: 340px;
    flex: none;
    border-right: 1px solid #ece3d3;
    padding: 18px 12px;
    overflow-y: auto;
  }
  body.design-editorial .ed-dm-list-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    color: #18313d;
    padding: 4px 10px 14px;
  }
  body.design-editorial .ed-dm-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 10px;
    border-radius: 14px;
    text-decoration: none;
    margin-bottom: 2px;
  }
  body.design-editorial .ed-dm-item:hover  { background: #faf6ee; }
  body.design-editorial .ed-dm-item.active { background: #eef4ef; }
  .ed-dm-av {
    width: 46px; height: 46px; border-radius: 14px;
    object-fit: cover; flex: none;
  }
  .ed-dm-init {
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px;
  }
  .ed-dm-txt  { min-width: 0; line-height: 1.3; }
  .ed-dm-name { display: block; font-weight: 700; font-size: 14.5px; color: #18313d; }
  .ed-dm-prev { display: block; font-size: 12.5px; color: #8a9183; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ed-dm-badge {
    margin-left: auto; background: #f0a63a; color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 7px; flex: none;
  }
  body.design-editorial .ed-dm-layout .dm-wrap {
    flex: 1;
    max-width: none;
    margin: 0;
    padding: 18px 22px;
  }
}

/* ============================================================
   STARTSEITE DESKTOP: Composer + rechte Spalte (Template)
   ============================================================ */
/* Composer-Zeile */
.ed-composer {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid #ece3d3; border-radius: 18px;
  padding: 13px 14px; margin: 0 0 20px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(24,49,61,.04);
}
.ed-composer-av {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none;
}
.ed-composer-init {
  background: #2f7d68; color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 16px;
}
.ed-composer-txt { flex: 1; color: #8a9183; font-size: 15px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-composer-btn {
  background: #18313d; color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 11px; padding: 10px 18px; flex: none;
}

/* Spalten-Layout: erst ab 1280px, sonst nur Hauptspalte */
.ed-feed-side { display: none; }
.ed-feed-main { min-width: 0; }

@media (min-width: 1280px) {
  body.design-editorial .ed-feed-cols {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    max-width: 1060px;
    margin: 0 auto;
  }
  body.design-editorial .ed-feed-main { flex: 1; }
  /* act-grid bleibt einspaltig, aber Breite kommt jetzt vom Spalten-Layout */
  body.design-editorial .ed-feed-main .act-grid { max-width: none; }

  body.design-editorial .ed-feed-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 300px;
    flex: none;
    position: sticky;
    top: 90px;
  }
}

/* Mini-Karte „In deiner Nähe" */
.ed-side-map {
  display: block; position: relative; height: 150px;
  border-radius: 18px; overflow: hidden; text-decoration: none;
  background:
    radial-gradient(circle at 30% 35%, #dfe9dc 0 22%, transparent 23%),
    radial-gradient(circle at 75% 60%, #e7eee2 0 26%, transparent 27%),
    linear-gradient(135deg, #e9efe6, #dfe7da);
  border: 1px solid #ece3d3;
}
.ed-side-dot {
  position: absolute; width: 13px; height: 13px; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,.55);
}
.ed-side-map-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff; padding: 11px 14px; line-height: 1.3;
  border-top: 1px solid #ece3d3;
}
.ed-side-map-info strong { display: block; font-size: 14.5px; color: #18313d; }
.ed-side-map-info span   { font-size: 12.5px; color: #8a9183; }

/* „Beliebt diese Woche" */
.ed-side-box {
  background: #fff; border: 1px solid #ece3d3; border-radius: 18px;
  padding: 16px 14px;
}
.ed-side-title {
  font-weight: 700; font-size: 15.5px; color: #18313d; margin-bottom: 10px;
}
.ed-side-item {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 4px; border-radius: 12px; text-decoration: none;
}
.ed-side-item:hover { background: #faf6ee; }
.ed-side-thumb {
  width: 48px; height: 48px; border-radius: 13px; object-fit: cover; flex: none;
}
.ed-side-thumb-ph { background: repeating-linear-gradient(135deg,#e9efe6 0 8px,#dfe7da 8px 16px); }
.ed-side-item-txt   { min-width: 0; line-height: 1.3; }
.ed-side-item-title {
  display: block; font-weight: 700; font-size: 14px; color: #18313d;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-side-item-sub { display: block; font-size: 12.5px; color: #8a9183; }

/* Hinweis-Box */
.ed-side-note {
  background: #eef4ef; border: 1px solid #dce8df; border-radius: 18px;
  padding: 18px 16px;
}
.ed-side-note-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600; font-size: 18px; color: #235a4c; margin-bottom: 6px;
}
.ed-side-note-txt { font-size: 13.5px; color: #56635e; line-height: 1.5; }

/* Feed: 560px-Deckel des alten Clean-Redesigns aufheben (nur Seiten mit Spalten-Layout) */
@media (min-width: 1280px) {
  body.design-editorial .page-wrap:has(.ed-feed-cols) {
    max-width: 1180px !important;
  }
}
