@import url("https://miezopolis.de//assets/themes/bootstrap/api.css");

/* ============================================================
   CUSTOM DARK THEME  —  assets/themes/custom/style.css
   Fonts: Playfair Display + DM Sans
   ============================================================ */

:root {
  --bg:           #0d0f14;
  --bg-card:      #232630;
  --bg-input:     #1a1e28;
  --border:       #252a38;
  --border-focus: #c8a96e;
  --text:         #e8e4dc;
  --text-muted:   #7a7f94;
  --gold:         #c8a96e;
  --gold-light:   #e0c48a;
  --accent:       #3d8bcd;
  --danger:       #c04f4f;
  --success:      #4f9c6e;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 4px 24px rgba(0,0,0,.45);
  --transition:   .2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 98%; margin-inline: auto; }

/* ── Typography ──────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family:'Playfair Display',serif; font-weight:700; line-height:1.2; color:var(--text); }
h1 { font-size: clamp(2rem,5vw,3.2rem); }
h2 { font-size: clamp(1.5rem,3vw,2rem); }
h3 { font-size: 1.25rem; }
p  { color:var(--text-muted); margin-bottom:1rem; }
a  { color:var(--gold); text-decoration:none; transition:color var(--transition); }
a:hover { color:var(--gold-light); }
small { font-size:.78rem; }

.mein-text {
    color: #ffffff;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position:sticky; top:0; z-index:100;
  background:rgba(13,15,20,.85);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  padding:.9rem 0;
}
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; }

.logo { display:flex; align-items:center; gap:.5rem; text-decoration:none; }
.logo-mark { font-size:1.4rem; color:var(--gold); animation:pulse 4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }
.logo-name { font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:700; color:var(--text); }

.main-nav { display:flex; align-items:center; gap:.25rem; }
.nav-link { display:flex; align-items:center; gap:.4rem; padding:.4rem .75rem; border-radius:var(--radius); font-size:.875rem; color:var(--text-muted); text-decoration:none; transition:all var(--transition); }
.nav-link:hover { background:var(--bg-card); color:var(--text); }
.nav-logout { color:var(--danger)!important; }
.nav-logout:hover { background:rgba(192,79,79,.1)!important; }

.nav-avatar { width:24px; height:24px; border-radius:50%; background:var(--gold); color:var(--bg); font-size:.7rem; font-weight:700; display:grid; place-items:center; }

/* ── Main / Footer ───────────────────────────────────────────── */
.site-main { flex:1; padding:3rem 0 4rem; width: 98%; }
.site-footer { border-top:1px solid var(--border); padding:1.25rem 0; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; font-size:.8rem; color:var(--text-muted); }
.footer-logo  { font-family:'Playfair Display',serif; color:var(--gold); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn { display:inline-flex; align-items:center; gap:.5rem; padding:.65rem 1.4rem; border-radius:var(--radius); font-family:'DM Sans',sans-serif; font-size:.9rem; font-weight:500; cursor:pointer; border:none; text-decoration:none; transition:all var(--transition); }
.btn-primary   { background:var(--gold); color:var(--bg); }
.btn-primary:hover { background:var(--gold-light); color:var(--bg); transform:translateY(-1px); box-shadow:0 6px 20px rgba(200,169,110,.3); }
.btn-outline   { background:transparent; color:var(--gold); border:1px solid var(--gold); }
.btn-outline:hover { background:rgba(200,169,110,.08); color:var(--gold-light); }
.btn-outline-secondary { background:transparent; color:var(--text-muted); border:1px solid var(--border); }
.btn-outline-secondary:hover { background:var(--bg-card); color:var(--text); }
.btn-danger    { background:var(--danger); color:#fff; }
.btn-danger:hover { background:#a03c3c; transform:translateY(-1px); }
.btn-sm        { padding:.4rem .9rem; font-size:.8rem; }
.btn:disabled  { opacity:.5; cursor:not-allowed; transform:none!important; }
.w-full        { width:100%; justify-content:center; }

/* ── Cards ───────────────────────────────────────────────────── */
.card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:2rem; box-shadow:var(--shadow); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group   { margin-bottom:1.25rem; }
.form-label   { display:block; font-size:.8rem; font-weight:500; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); margin-bottom:.4rem; }
.form-control { width:100%; padding:.7rem 1rem; background:var(--bg-input); border:1px solid var(--border); border-radius:var(--radius); color:var(--text); font-family:'DM Sans',sans-serif; font-size:.95rem; transition:border-color var(--transition),box-shadow var(--transition); outline:none; }
.form-control:focus { border-color:var(--border-focus); box-shadow:0 0 0 3px rgba(200,169,110,.12); }
.form-control::placeholder { color:var(--text-muted); opacity:.6; }
.form-control:disabled { opacity:.5; cursor:not-allowed; }
textarea.form-control { resize:vertical; min-height:100px; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert         { padding:.85rem 1.1rem; border-radius:var(--radius); font-size:.9rem; margin-bottom:1.25rem; border-left:3px solid; }
.alert-error   { background:rgba(192,79,79,.1);  border-color:var(--danger);  color:#e88; }
.alert-danger  { background:rgba(192,79,79,.1);  border-color:var(--danger);  color:#e88; }
.alert-success { background:rgba(79,156,110,.1); border-color:var(--success); color:#8d8; }
.alert-info    { background:rgba(61,139,205,.1); border-color:var(--accent);  color:#8bc; }

/* ── Auth ────────────────────────────────────────────────────── */
.auth-wrap { display:grid; place-items:center; min-height:60vh; }
.auth-box  { width:min(420px,100%); }
.auth-box .card { padding:2.5rem; }
.auth-title { font-family:'Playfair Display',serif; font-size:1.7rem; margin-bottom:.35rem; }
.auth-sub   { color:var(--text-muted); font-size:.9rem; margin-bottom:2rem; }
.auth-divider { text-align:center; margin:1.5rem 0 1rem; font-size:.85rem; color:var(--text-muted); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding:5rem 0 3rem; position:relative; }
.hero::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 60% 50% at 50% 0%,rgba(200,169,110,.06),transparent); pointer-events:none; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:.5rem; font-size:.78rem; font-weight:500; text-transform:uppercase; letter-spacing:.12em; color:var(--gold); margin-bottom:1.25rem; }
.hero-eyebrow::before { content:''; display:block; width:24px; height:1px; background:var(--gold); }
.hero-title   { font-size:clamp(2.5rem,6vw,4rem); line-height:1.1; margin-bottom:1.25rem; max-width:700px; }
.hero-title em { font-style:italic; color:var(--gold); }
.hero-desc    { font-size:1.05rem; max-width:540px; margin-bottom:2rem; }
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }

/* ── Dashboard ───────────────────────────────────────────────── */
.dashboard-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1.25rem; margin-top:2rem; }
.dash-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.5rem; transition:border-color var(--transition),transform var(--transition); }
.dash-card:hover { border-color:var(--gold); transform:translateY(-2px); }
.dash-card-icon { font-size:1.8rem; margin-bottom:.75rem; }
.dash-card h3 { font-size:1rem; margin-bottom:.4rem; }
.dash-card p  { font-size:.85rem; margin:0; }

.member-bar { display:flex; align-items:center; gap:1rem; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1rem 1.5rem; margin-bottom:2rem; }
.member-bar-avatar { width:48px; height:48px; border-radius:50%; background:var(--gold); color:var(--bg); font-size:1.2rem; font-weight:700; display:grid; place-items:center; font-family:'Playfair Display',serif; flex-shrink:0; }
.member-bar-info h3 { font-size:1rem; margin-bottom:.1rem; }
.member-bar-info p  { font-size:.8rem; margin:0; }
.member-bar-badge { margin-left:auto; padding:.25rem .65rem; border-radius:99px; font-size:.7rem; font-weight:500; text-transform:uppercase; letter-spacing:.08em; background:rgba(200,169,110,.12); color:var(--gold); border:1px solid rgba(200,169,110,.25); }
.member-bar-badge.admin { background:rgba(61,139,205,.12); color:var(--accent); border-color:rgba(61,139,205,.25); }

/* ── Profil ──────────────────────────────────────────────────── */
.profile-layout { display:grid; grid-template-columns:260px 1fr; gap:2rem; align-items:start; }
.profile-sidebar { text-align:center; }
.profile-avatar  { width:100px; height:100px; border-radius:50%; background:var(--gold); color:var(--bg); font-size:2.5rem; font-weight:700; display:grid; place-items:center; font-family:'Playfair Display',serif; margin:0 auto 1rem; border:3px solid var(--border); }
.profile-sidebar h2 { font-size:1.2rem; }
.role-badge { display:inline-block; margin-top:.4rem; padding:.2rem .6rem; border-radius:99px; font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; background:rgba(200,169,110,.12); color:var(--gold); border:1px solid rgba(200,169,110,.2); }
.profile-since { font-size:.78rem; color:var(--text-muted); margin-top:.5rem; }

/* ── Page Header ─────────────────────────────────────────────── */
.page-header { margin-bottom:2.5rem; padding-bottom:1.5rem; border-bottom:1px solid var(--border); }
.page-header h1 { margin-bottom:.35rem; }
.page-header p  { margin:0; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-muted   { color:var(--text-muted); }
.text-gold    { color:var(--gold); }
.mb-2         { margin-bottom:1rem; }
.mt-2         { margin-top:1rem; }
.mt-3         { margin-top:1.5rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width:700px)  { .profile-layout { grid-template-columns:1fr; } }
@media (max-width:600px)  { .site-main{padding:2rem 0 3rem} .card{padding:1.5rem} .auth-box .card{padding:1.75rem} .main-nav .btn{display:none} }

/* ============================================================
   MEGA MENU  —  Custom Dark Theme
   ============================================================ */

/* ── Backdrop ── */
.mm-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.mm-backdrop.is-active { display: block; }

/* ── Header-Anpassungen ── */
.header-inner { align-items: stretch; gap: 0; }
.logo { align-self: center; margin-right: 1rem; }

/* ── Mega Nav ── */
.mega-nav {
  flex: 1;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 90;
}
.mega-menu {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
}
.mega-item { position: static; display: flex; align-items: stretch; }

/* ── Trigger-Button ── */
.mega-trigger {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0 .85rem;
  height: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.mega-trigger::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
}
.mega-trigger:hover,
.mega-trigger[aria-expanded="true"] {
  color: var(--text);
  background: rgba(255,255,255,.03);
}
.mega-trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.mm-icon  { font-size: .9rem; line-height: 1; }
.mm-arrow {
  width: 10px; height: 6px;
  flex-shrink: 0;
  transition: transform .25s;
}
.mega-trigger[aria-expanded="true"] .mm-arrow { transform: rotate(180deg); }

/* ── Dropdown Panel ── */
.mega-dropdown {
  display: none;
  position: fixed;
  top: var(--header-h, 56px);
  left: 0; right: 0;
  z-index: 91;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  animation: mmSlideDown .2s cubic-bezier(.4,0,.2,1) both;
}
.mega-dropdown.is-open { display: block; }

@keyframes mmSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mega-dropdown-inner {
  display: flex;
  gap: 0;
  width: 98%;
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* ── Spalten ── */
.mega-col {
  flex: 1;
  padding: 0 1.25rem;
  border-right: 1px solid var(--border);
}
.mega-col:last-child { border-right: none; }

.mm-col-title {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(200,169,110,.2);
}

/* ── Menü-Links ── */
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .55rem .6rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background .15s, transform .15s;
  margin-bottom: .15rem;
}
.mega-link:hover {
  background: rgba(255,255,255,.05);
  color: var(--text);
  transform: translateX(3px);
}
.mega-link.is-active { background: rgba(200,169,110,.1); }
.mega-link.is-active strong { color: var(--gold); }

.mm-item-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .1rem;
}
.mm-item-body {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.mm-item-body strong {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}
.mm-item-body small {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.mm-divider { border: none; border-top: 1px solid var(--border); margin: .5rem 0; }

/* ── Spezielle Link-Typen ── */
.mm-cta-primary {
  background: rgba(200,169,110,.12);
  border: 1px solid rgba(200,169,110,.25);
}
.mm-cta-primary:hover { background: rgba(200,169,110,.2); }
.mm-cta-primary strong { color: var(--gold); }

.mm-logout strong    { color: var(--danger); }
.mm-logout:hover     { background: rgba(192,79,79,.08); }

.mm-admin strong     { color: var(--accent); }
.mm-admin:hover      { background: rgba(61,139,205,.07); }

/* ── Rechte Seite: Avatar ── */
.header-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: 1rem;
  flex-shrink: 0;
}
.header-avatar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .65rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-muted);
  font-size: .85rem;
  transition: background .2s, color .2s;
}
.header-avatar:hover { background: rgba(255,255,255,.05); color: var(--text); }

.avatar-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.avatar-circle.admin     { background: var(--gold);   color: var(--bg); }
.avatar-circle.moderator { background: var(--accent);  color: #fff; }
.avatar-circle.member    { background: rgba(255,255,255,.12); color: var(--text); }

.avatar-name  { font-size: .82rem; }
.avatar-badge {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .1rem .35rem; border-radius: 3px;
  background: rgba(200,169,110,.15); color: var(--gold);
  border: 1px solid rgba(200,169,110,.25);
}


/* ═══════════════════════════════════════════════════════════════
   HAMBURGER & MOBILE MEGA MENU
   Breakpoint: ≤ 900px  (deckt Phones + Tablets ab)
═══════════════════════════════════════════════════════════════ */

/* ── Hamburger-Button ─────────────────────────────────────────── */
.mm-burger {
  display: none;               /* Desktop: versteckt */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: .45rem .55rem;
  flex-shrink: 0;
  transition: border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.mm-burger:hover  { border-color: var(--gold); }
.mm-burger span {
  display: block;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform .28s, opacity .2s, background .2s;
}
.mm-burger[aria-expanded="true"] { border-color: var(--gold); }
.mm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg);  background: var(--gold); }
.mm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--gold); }

/* ── 900 px: Navigation komprimieren ────────────────────────── */

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE: 900px — Navigation komprimieren
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .mega-trigger { padding: 0 .5rem; font-size: .8rem; gap: .2rem; }
  .mm-icon      { display: none; }
  .mm-arrow     { width: 8px; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE  ≤ 768 px  (Samsung S23, iPhones, Tablets im Hochformat)
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Hamburger einblenden ─────────────────────────────────── */
  .mm-burger  { display: flex; }
  .avatar-name, .avatar-badge { display: none; }

  /* ── Backdrop: nur dunkeln, KEIN backdrop-filter!
       Android Chrome hat mit backdrop-filter+fixed Stacking-Bugs ─ */
  .mm-backdrop.is-active {
    background: rgba(0, 0, 0, 0.65);
    /* backdrop-filter bewusst weggelassen */
    z-index: 95;  /* UNTER site-header (z-index:100) */
  }

  /* ── STACKING-CONTEXT FIX ─────────────────────────────────────────────────
     Problem: mega-nav (in site-header, z-idx:100) wird von backdrop (z-idx:95)
     verdeckt sobald backdrop über dem header liegt. Wenn Menü offen wird
     site-header auf z-index:210 gehoben → Nav-Drawer liegt obendrauf.  */
  body.mm-open .site-header { z-index: 210 !important; }
  /* ── Side-Drawer von links ────────────────────────────────── */
  .mega-nav {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: min(300px, 85vw);
    height: 100%;
    height: 100dvh;

    /* Explizite Farben — CSS-Variablen können auf manchen
       Android-Geräten in fixed-Elementen nicht auflösen  */
    background-color: #1c2133 !important;   /* sichtbar heller als #0d0f14 */
    border-right: 2px solid #c8a96e !important;  /* goldene Kante */
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.8) !important;

    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;

    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 200 !important;
    padding-top: 0;
  }

  .mega-nav.mm-mobile-open {
    transform: translateX(0) !important;
  }

  /* ── Menü-Header im Drawer (Titel + Schließen-Button) ─────── */
  .mega-nav::before {
    content: '◈  Navigation';
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 1.25rem;
    font-family: 'Playfair Display', serif;
    font-size: .95rem;
    font-weight: 700;
    color: #c8a96e;
    background: #141720;
    border-bottom: 1px solid #252a38;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  /* ── Listenstruktur ──────────────────────────────────────── */
  .mega-menu {
    display: flex !important;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mega-item {
    display: block;
    border-bottom: 1px solid #252a38;
  }

  /* ── Trigger-Buttons in der Liste ────────────────────────── */
  .mega-trigger {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    height: auto;
    min-height: 52px;              /* Touch-freundlich */
    padding: .85rem 1.25rem !important;
    border-radius: 0;
    border: none;
    border-bottom: none;

    /* Explizite, sichtbare Textfarbe */
    color: #e8e4dc !important;
    font-size: .95rem !important;
    font-weight: 500;
    background: transparent;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mega-trigger::after { display: none; }   /* Underline-Effekt aus */
  .mm-icon  { display: inline !important; font-size: 1.1rem; flex-shrink: 0; }
  .mm-arrow {
    width: 14px; height: 8px;
    flex-shrink: 0;
    stroke: #7a7f94;
    transition: transform .25s;
  }
  .mega-trigger[aria-expanded="true"] {
    color: #c8a96e !important;
    background: rgba(200, 169, 110, 0.08) !important;
  }
  .mega-trigger[aria-expanded="true"] .mm-arrow {
    transform: rotate(180deg);
    stroke: #c8a96e;
  }

  /* Trigger-Text (Labeltext zwischen Icon und Arrow) */
  .mega-trigger > span:not(.mm-icon):not(.mm-arrow) {
    flex: 1;
    color: inherit;
  }

  /* ── Dropdown: Akkordeon ─────────────────────────────────── */
  .mega-dropdown {
    display: none !important;
    position: static !important;
    top: auto; left: auto; right: auto;
    border: none;
    border-top: 1px solid #252a38;
    background: #141720 !important;  /* leicht dunkler als Drawer */
    box-shadow: none !important;
    animation: none !important;
    z-index: auto;
  }

  .mega-dropdown.is-open {
    display: block !important;
  }

  .mega-dropdown-inner {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    padding: .4rem 0 .6rem;
    gap: 0;
  }

  .mega-col {
    flex: none;
    padding: .4rem 1rem;
    border-right: none !important;
    border-bottom: none !important;
  }

  .mm-col-title {
    font-size: .68rem;
    color: #c8a96e;
    margin-bottom: .5rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid rgba(200,169,110,.2);
  }

  /* ── Links im Dropdown ───────────────────────────────────── */
  .mega-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .6rem;
    min-height: 44px;          /* Touch-freundlich */
    border-radius: 6px;
    color: #e8e4dc !important;
    text-decoration: none;
    transition: background .15s;
  }
  .mega-link:hover,
  .mega-link:active { background: rgba(255,255,255,.06); transform: none; }
  .mega-link.is-active { background: rgba(200,169,110,.1); }
  .mega-link.is-active strong { color: #c8a96e; }

  .mm-item-icon { font-size: 1.1rem; flex-shrink: 0; }
  .mm-item-body strong { font-size: .875rem; color: #e8e4dc; font-weight: 500; }
  .mm-item-body small  { font-size: .75rem;  color: #7a7f94; }  /* auf Wunsch sichtbar */

  /* Spezielle Link-Typen */
  .mm-logout strong { color: #e88 !important; }
  .mm-admin  strong { color: #8bc !important; }

  /* ── Header-Layout auf Mobile ────────────────────────────── */
  .site-header  { padding: .65rem 0; }
  .header-inner { height: auto; min-height: 48px; gap: 0; align-items: center; }

  /* ── Scroll-Lock (via body.mm-open) ─────────────────────── */
  body.mm-open { overflow: hidden; }
}

/* ══════════════════════════════════════════════════════════════
   Sehr kleine Geräte ≤ 360 px
══════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .logo-name { font-size: .95rem; }
  .mega-nav  { width: 90vw; }
}

/* ── Online-Counter im Header ─────────────────────────────── */
.header-online-counter {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border: 1px solid rgba(79,156,110,.3);
  border-radius: 99px;
  background: rgba(79,156,110,.08);
  text-decoration: none;
  color: #4f9c6e;
  font-size: .78rem;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.header-online-counter:hover {
  background: rgba(79,156,110,.16);
  border-color: rgba(79,156,110,.5);
  color: #6fbc8e;
  transform: translateY(-1px);
}
.hoc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f9c6e;
  box-shadow: 0 0 6px rgba(79,156,110,.8);
  flex-shrink: 0;
  animation: hoc-pulse 2s ease-in-out infinite;
}
@keyframes hoc-pulse {
  0%,100% { box-shadow: 0 0 4px rgba(79,156,110,.7); }
  50%      { box-shadow: 0 0 10px rgba(79,156,110,1); }
}
@media (max-width: 600px) { .header-online-counter { display: none; } }