/* ============================================================
   Hero-CMS Look (hrcms.de) für Mitglieder- und Adminbereich
   ============================================================ */

body.hra {
  --hra-bg: #08090a;
  --hra-panel: #101112;
  --hra-panel-2: #16181a;
  --hra-line: rgba(255, 255, 255, .08);
  --hra-gold: #f5c518;
  --hra-gold-soft: rgba(245, 197, 24, .12);
  --hra-text: #f3f4f5;
  --hra-muted: #9aa0a6;
  background: var(--hra-bg) !important;
  color: var(--hra-text);
}
body.hra .bg-grain { display: none; }

/* ---------- Topbar (eine Zeile, wie hrcms.de) ---------- */
.hra-topbar {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, #0d0e10, #0a0b0c);
  border-bottom: 1px solid var(--hra-line);
}
.hra-topbar-inner {
  max-width: 1680px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .85rem 1.6rem;
}
.hra-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--hra-text); }
.hra-brand img { height: 40px; width: auto; display: block; }
.hra-brand .hra-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: var(--hra-gold); color: #0a0b0c;
}
.hra-area-label {
  font-size: .95rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hra-text);
}
.hra-topbar-tools { margin-left: auto; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

.hra-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--hra-line); background: var(--hra-panel-2);
  color: var(--hra-text); font-weight: 700; font-size: .9rem;
  text-decoration: none; cursor: pointer; line-height: 1;
  transition: border-color .15s, background .15s, color .15s;
}
.hra-pill:hover { border-color: var(--hra-gold); color: var(--hra-gold); }
.hra-pill.ghost { background: transparent; border-color: transparent; }
.hra-pill.gold { border-color: var(--hra-gold); color: var(--hra-gold); background: transparent; }
.hra-pill.gold:hover { background: var(--hra-gold); color: #0a0b0c; }
.hra-pill.solid { background: var(--hra-gold); border-color: var(--hra-gold); color: #0a0b0c; }
.hra-pill.solid:hover { filter: brightness(1.08); color: #0a0b0c; }
.hra-pill i { font-size: .95em; }

/* ---------- Layout ---------- */
.hra-shell {
  max-width: 1680px; margin: 0 auto; padding: 1.8rem 1.6rem 4rem;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.6rem;
  align-items: start;
}
.hra-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 84px; }
.hra-card {
  background: var(--hra-panel); border: 1px solid var(--hra-line);
  border-radius: 14px; overflow: hidden;
}

/* Profilkarte */
.hra-profile { padding: 1.6rem 1.2rem; text-align: center; border-bottom: 1px solid var(--hra-line); }
.hra-avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--hra-gold); box-shadow: 0 0 0 6px rgba(245, 197, 24, .08);
}
.hra-hello { margin: .9rem 0 .6rem; font-size: 1.1rem; font-weight: 800; }
.hra-role {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px;
  background: var(--hra-gold); color: #0a0b0c;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.hra-quick { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.hra-quick a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px;
  background: var(--hra-gold-soft); border: 1px solid rgba(245, 197, 24, .35);
  color: var(--hra-gold); text-decoration: none;
}
.hra-quick a:hover { background: var(--hra-gold); color: #0a0b0c; }

/* Infoblock */
.hra-block { padding: 1.2rem; border-bottom: 1px solid var(--hra-line); }
.hra-block:last-child { border-bottom: 0; }
.hra-block-title {
  display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hra-muted);
}
.hra-info { font-size: .88rem; line-height: 1.7; color: var(--hra-muted); }
.hra-info strong { display: block; color: var(--hra-text); font-size: 1rem; margin-bottom: .1rem; }
.hra-info em { display: block; font-style: italic; }
.hra-btn-wide {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; margin-top: 1rem; padding: .75rem 1rem; border-radius: 10px;
  background: var(--hra-gold); color: #0a0b0c; font-weight: 800; text-decoration: none;
}
.hra-btn-wide:hover { filter: brightness(1.08); }

/* Sidebar-Navigation */
.hra-nav { display: flex; flex-direction: column; gap: .1rem; }
.hra-nav h5 {
  margin: .9rem 0 .35rem; font-size: .68rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--hra-muted);
}
.hra-nav h5:first-child { margin-top: 0; }
.hra-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .7rem; border-radius: 9px; text-decoration: none;
  color: var(--hra-text); font-size: .9rem; font-weight: 600;
}
.hra-nav a i { width: 18px; text-align: center; color: var(--hra-muted); }
.hra-nav a:hover { background: rgba(255, 255, 255, .04); }
.hra-nav a.active { background: var(--hra-gold-soft); color: var(--hra-gold); }
.hra-nav a.active i { color: var(--hra-gold); }
.hra-nav .badge, .hra-nav .nav-count { margin-left: auto; }

/* Hauptspalte */
.hra-main { min-width: 0; }
.hra-main h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5rem; }
.hra-lead { color: var(--hra-muted); margin: 0 0 1.6rem; }

/* Statistik-Karten */
.hra-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.hra-stat {
  background: var(--hra-panel); border: 1px solid var(--hra-line);
  border-left: 3px solid var(--hra-gold); border-radius: 12px; padding: 1.1rem 1.3rem;
}
.hra-stat b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--hra-gold); line-height: 1.1; }
.hra-stat span {
  display: block; margin-top: .35rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--hra-muted);
}

/* Tabellen im Bereich */
body.hra table { width: 100%; border-collapse: collapse; background: var(--hra-panel); border-radius: 12px; overflow: hidden; }
body.hra table th {
  text-align: left; padding: .85rem 1rem; font-size: .7rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--hra-muted);
  background: var(--hra-panel-2); border-bottom: 1px solid var(--hra-line);
}
body.hra table td { padding: .95rem 1rem; border-bottom: 1px solid var(--hra-line); font-size: .92rem; }
body.hra table tbody tr:hover { background: rgba(255, 255, 255, .02); }
body.hra .card, body.hra .panel { background: var(--hra-panel); border: 1px solid var(--hra-line); border-radius: 14px; }

/* Tagmodus (heller Modus) */
body.hra.hra-light {
  --hra-bg: #f5f5f6;
  --hra-panel: #ffffff;
  --hra-panel-2: #f0f0f2;
  --hra-line: rgba(0, 0, 0, .1);
  --hra-text: #15171a;
  --hra-muted: #62676d;
  --hra-gold: #b98c00;
  --hra-gold-soft: rgba(185, 140, 0, .12);
}
body.hra.hra-light .hra-topbar { background: linear-gradient(180deg, #ffffff, #f4f4f5); }
body.hra.hra-light .hra-pill.solid, body.hra.hra-light .hra-btn-wide, body.hra.hra-light .hra-role { color: #fff; }
body.hra.hra-light .hra-quick a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1100px) {
  .hra-shell { grid-template-columns: 1fr; }
  .hra-side { position: static; }
}
@media (max-width: 700px) {
  .hra-topbar-inner { flex-wrap: wrap; gap: .7rem; padding: .7rem 1rem; }
  .hra-topbar-tools { margin-left: 0; width: 100%; }
  .hra-area-label { font-size: .8rem; }
  .hra-shell { padding: 1.2rem 1rem 3rem; }
  .hra-main h1 { font-size: 1.5rem; }
}

/* Box-Model-Fix */
.hra-shell, .hra-shell *, .hra-topbar, .hra-topbar * { box-sizing: border-box; }

/* ============ Footer (passend zum hra-Header) ============ */
.hra-footer {
  margin-top: 3rem; background: var(--hra-panel);
  border-top: 1px solid var(--hra-line);
  box-shadow: inset 0 3px 0 var(--hra-gold);
  color: var(--hra-text); font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}
.hra-footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 2.4rem 1.6rem 2rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 2rem;
}
.hra-footer .hra-brand { margin-bottom: .6rem; }
.hra-footer .hra-slogan {
  display: inline-block; margin: 0 0 1rem; padding: .35rem .9rem; border-radius: 999px;
  background: var(--hra-gold-soft); border: 1px solid var(--hra-gold);
  color: var(--hra-gold); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.hra-footer-socials { display: flex; gap: .5rem; }
.hra-footer-socials a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--hra-panel-2); border: 1px solid var(--hra-line);
  color: var(--hra-muted); text-decoration: none; transition: .18s;
}
.hra-footer-socials a:hover { color: #12141a; background: var(--hra-gold); border-color: var(--hra-gold); }
.hra-footer h5 {
  margin: 0 0 .9rem; font-size: .7rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--hra-muted);
}
.hra-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hra-footer-col a, .hra-footer-bottom a { color: var(--hra-text); text-decoration: none; font-size: .9rem; }
.hra-footer-col a:hover, .hra-footer-bottom a:hover { color: var(--hra-gold); }
.hra-footer-cta p { margin: 0 0 .9rem; color: var(--hra-muted); font-size: .88rem; line-height: 1.5; }
.hra-footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.hra-footer-bottom {
  border-top: 1px solid var(--hra-line); padding: 1rem 1.6rem;
  max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: space-between; font-size: .8rem; color: var(--hra-muted);
  font-family: 'JetBrains Mono', monospace;
}
.hra-footer, .hra-footer * { box-sizing: border-box; }
@media (max-width: 1000px) { .hra-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .hra-footer-inner { grid-template-columns: 1fr; padding: 1.8rem 1.1rem; } .hra-footer-bottom { padding: 1rem 1.1rem; } }

/* ============ Hero-CMS-Footer auch außerhalb von body.hra (öffentliche Seiten) ============ */
.hra-footer {
  --hra-bg: #08090a;
  --hra-panel: #101112;
  --hra-panel-2: #16181a;
  --hra-line: rgba(255, 255, 255, .08);
  --hra-gold: #f5c518;
  --hra-gold-soft: rgba(245, 197, 24, .12);
  --hra-text: #f3f4f5;
  --hra-muted: #9aa0a6;
}
.hra-footer .hra-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--hra-text); }
.hra-footer .hra-brand img { height: 40px; width: auto; display: block; }
.hra-footer .hra-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: var(--hra-gold); color: #0a0b0c;
}
.hra-footer .hra-area-label {
  font-size: .95rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hra-text);
}
.hra-footer .hra-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--hra-line); background: var(--hra-panel-2);
  color: var(--hra-text); font-weight: 700; font-size: .9rem;
  text-decoration: none; line-height: 1; transition: .15s;
}
.hra-footer .hra-pill.gold { border-color: var(--hra-gold); color: var(--hra-gold); background: transparent; }
.hra-footer .hra-pill.gold:hover { background: var(--hra-gold); color: #0a0b0c; }
