/* ==========================================================================
   Heroradio – Admin- & Mitgliederbereich
   Design-System v2 (modern, aufgeräumt, mobile-first)
   --------------------------------------------------------------------------
   Alle alten Klassennamen (hra-topbar, hra-shell, hra-side, hra-card,
   hra-profile, hra-nav, hra-main, hra-stats, hra-stat, hra-pill, hra-footer …)
   bleiben erhalten, damit vorhandene Unterseiten unverändert funktionieren.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
body.hra {
  --hra-bg:        #0a0b0d;
  --hra-bg-2:      #0e1013;
  --hra-panel:     #131519;
  --hra-panel-2:   #1a1d22;
  --hra-panel-3:   #22262d;
  --hra-line:      rgba(255,255,255,.09);
  --hra-line-2:    rgba(255,255,255,.16);
  --hra-gold:      #f5c518;
  --hra-gold-2:    #ffb020;
  --hra-gold-soft: rgba(245,197,24,.13);
  --hra-text:      #f2f4f7;
  --hra-muted:     #9099a6;
  --hra-ok:        #22c55e;
  --hra-warn:      #f59e0b;
  --hra-bad:       #ef4444;
  --hra-info:      #38bdf8;

  --hra-r-sm: 10px;
  --hra-r:    14px;
  --hra-r-lg: 20px;
  --hra-r-xl: 26px;

  --hra-sh-1: 0 1px 2px rgba(0,0,0,.4);
  --hra-sh-2: 0 10px 30px -12px rgba(0,0,0,.65);
  --hra-sh-3: 0 26px 60px -30px rgba(0,0,0,.8);

  --hra-topbar-h: 62px;
  --hra-maxw: 1640px;

  background: var(--hra-bg) !important;
  color: var(--hra-text);
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body.hra.hra-light {
  --hra-bg:        #f4f5f7;
  --hra-bg-2:      #eceef1;
  --hra-panel:     #ffffff;
  --hra-panel-2:   #f5f6f8;
  --hra-panel-3:   #e9ebef;
  --hra-line:      rgba(15,20,30,.10);
  --hra-line-2:    rgba(15,20,30,.18);
  --hra-gold:      #a87b00;
  --hra-gold-2:    #c99400;
  --hra-gold-soft: rgba(168,123,0,.12);
  --hra-text:      #12151a;
  --hra-muted:     #5c646f;
  --hra-sh-2: 0 10px 26px -16px rgba(20,26,40,.35);
  --hra-sh-3: 0 24px 50px -28px rgba(20,26,40,.4);
}

html.hra-preload-light body.hra { background: #f4f5f7 !important; }

body.hra .bg-grain { display: none; }
body.hra::before, body.hra::after { content: none !important; display: none !important; }
body.hra *, body.hra *::before, body.hra *::after { box-sizing: border-box; }
body.hra a { color: inherit; }
body.hra img { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  body.hra *, body.hra *::before, body.hra *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
}

/* ---------- 2. Topbar ---------- */
.hra-topbar {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--hra-bg-2) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--hra-line);
}
.hra-topbar-inner {
  max-width: var(--hra-maxw); margin: 0 auto;
  min-height: var(--hra-topbar-h);
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem clamp(.75rem, 2vw, 1.5rem);
}

/* Burger (nur mobil sichtbar) */
.hra-burger {
  display: none;
  width: 42px; height: 42px; flex: 0 0 42px;
  align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--hra-line);
  background: var(--hra-panel-2); color: var(--hra-text);
  font-size: 1.05rem; cursor: pointer;
}
.hra-burger:active { transform: scale(.94); }

.hra-brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--hra-text); min-width: 0;
}
.hra-brand img { height: 34px; width: auto; display: block; }
.hra-brand .hra-mark {
  width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center;
  border-radius: 11px; color: #0a0b0c;
  background: linear-gradient(135deg, var(--hra-gold), var(--hra-gold-2));
  box-shadow: 0 6px 16px -8px var(--hra-gold);
}
.hra-area-label {
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hra-topbar-tools {
  margin-left: auto; display: flex; align-items: center; gap: .45rem;
  min-width: 0;
}

.hra-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 999px;
  border: 1px solid var(--hra-line); background: var(--hra-panel-2);
  color: var(--hra-text); font: inherit; font-weight: 700; font-size: .85rem;
  text-decoration: none; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.hra-pill:hover { border-color: var(--hra-line-2); transform: translateY(-1px); }
.hra-pill:active { transform: translateY(0); }
.hra-pill.ghost { background: transparent; border-color: transparent; }
.hra-pill.ghost:hover { background: var(--hra-panel-2); }
.hra-pill.gold { border-color: color-mix(in srgb, var(--hra-gold) 55%, transparent); color: var(--hra-gold); background: var(--hra-gold-soft); }
.hra-pill.gold:hover { background: var(--hra-gold); color: #0a0b0c; border-color: var(--hra-gold); }
.hra-pill.solid { background: linear-gradient(135deg, var(--hra-gold), var(--hra-gold-2)); border-color: transparent; color: #0a0b0c; }
.hra-pill.solid:hover { filter: brightness(1.07); color: #0a0b0c; }
.hra-pill i { font-size: .95em; }
/* Icon-only Variante fürs Handy */
.hra-pill.icon { padding: .55rem; width: 38px; height: 38px; justify-content: center; }
.hra-pill.icon i { font-size: 1rem; }

/* ---------- 3. Shell / Grid ---------- */
.hra-shell {
  max-width: var(--hra-maxw); margin: 0 auto;
  padding: clamp(1rem, 2.2vw, 1.9rem) clamp(.75rem, 2vw, 1.5rem) 4rem;
  display: grid; grid-template-columns: 288px minmax(0, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem); align-items: start;
}
.hra-main { min-width: 0; }
.hra-main > h1 {
  font-size: clamp(1.45rem, 3.4vw, 2.1rem); font-weight: 800;
  letter-spacing: -.025em; margin: 0 0 .4rem; line-height: 1.15;
}
.hra-lead { color: var(--hra-muted); margin: 0 0 1.5rem; font-size: .95rem; line-height: 1.55; }

/* ---------- 4. Sidebar ---------- */
.hra-side {
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky; top: calc(var(--hra-topbar-h) + 14px);
  max-height: calc(100vh - var(--hra-topbar-h) - 28px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--hra-panel-3) transparent;
}
.hra-side::-webkit-scrollbar { width: 8px; }
.hra-side::-webkit-scrollbar-thumb { background: var(--hra-panel-3); border-radius: 99px; }

.hra-card {
  background: var(--hra-panel); border: 1px solid var(--hra-line);
  border-radius: var(--hra-r-lg); overflow: hidden; box-shadow: var(--hra-sh-2);
}

/* Profilkarte */
.hra-profile {
  padding: 1.5rem 1.1rem 1.2rem; text-align: center;
  border-bottom: 1px solid var(--hra-line); position: relative;
}
.hra-profile::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 74px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hra-gold) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.hra-avatar {
  position: relative; width: 78px; height: 78px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--hra-gold);
  box-shadow: 0 0 0 6px var(--hra-gold-soft);
}
.hra-hello { position: relative; margin: .85rem 0 .55rem; font-size: 1.05rem; font-weight: 800; }
.hra-role {
  display: inline-block; padding: .28rem .8rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--hra-gold), var(--hra-gold-2)); color: #0a0b0c;
  font-size: .64rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.hra-quick { display: flex; justify-content: center; gap: .45rem; margin-top: 1rem; flex-wrap: wrap; }
.hra-quick a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px;
  background: var(--hra-gold-soft); border: 1px solid color-mix(in srgb, var(--hra-gold) 35%, transparent);
  color: var(--hra-gold); text-decoration: none; transition: .15s;
}
.hra-quick a:hover { background: var(--hra-gold); color: #0a0b0c; }

/* Blöcke */
.hra-block { padding: 1.1rem; border-bottom: 1px solid var(--hra-line); }
.hra-block:last-child { border-bottom: 0; }
.hra-block-title {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hra-muted);
}
.hra-info { font-size: .86rem; line-height: 1.65; color: var(--hra-muted); word-break: break-word; }
.hra-info strong { display: block; color: var(--hra-text); font-size: .98rem; 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: .9rem; padding: .7rem 1rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--hra-gold), var(--hra-gold-2));
  color: #0a0b0c; font-weight: 800; font-size: .88rem; text-decoration: none;
  transition: filter .15s, transform .15s;
}
.hra-btn-wide:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* Nav-Filter */
.hra-navsearch { position: relative; margin-bottom: .7rem; }
.hra-navsearch i {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  color: var(--hra-muted); font-size: .8rem; pointer-events: none;
}
body.hra .hra-navsearch input[type=search] {
  width: 100%; padding: .6rem .75rem .6rem 2.35rem; border-radius: 11px;
  border: 1px solid var(--hra-line); background: var(--hra-panel-2);
  color: var(--hra-text); font: inherit; font-size: .85rem;
}
.hra-navsearch input::placeholder { color: var(--hra-muted); }
.hra-navsearch input:focus { outline: none; border-color: var(--hra-gold); box-shadow: 0 0 0 3px var(--hra-gold-soft); }

/* Navigation */
.hra-nav { display: flex; flex-direction: column; gap: .12rem; }
.hra-nav h5 {
  margin: .95rem 0 .3rem; font-size: .64rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase; color: var(--hra-muted);
}
.hra-nav h5:first-child { margin-top: 0; }
.hra-nav a {
  position: relative; display: flex; align-items: center; gap: .7rem;
  padding: .62rem .7rem; border-radius: 11px; text-decoration: none;
  color: var(--hra-text); font-size: .88rem; font-weight: 600; line-height: 1.25;
  transition: background .14s, color .14s;
}
.hra-nav a i { width: 18px; flex: 0 0 18px; text-align: center; color: var(--hra-muted); transition: color .14s; }
.hra-nav a:hover { background: var(--hra-panel-2); }
.hra-nav a:hover i { color: var(--hra-text); }
.hra-nav a.active { background: var(--hra-gold-soft); color: var(--hra-gold); }
.hra-nav a.active i { color: var(--hra-gold); }
.hra-nav a.active::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--hra-gold);
}
.hra-nav .badge, .hra-nav .nav-count { margin-left: auto; }
.hra-nav .nav-count {
  background: var(--hra-bad); color: #fff; font-size: .68rem; font-weight: 800;
  padding: .12rem .45rem; border-radius: 999px; min-width: 1.3rem; text-align: center;
}
.hra-nav a[hidden], .hra-nav h5[hidden] { display: none !important; }

/* ---------- 5. Mobile Drawer ---------- */
.hra-scrim {
  position: fixed; inset: 0; z-index: 240; display: none;
  background: rgba(4,6,10,.6); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .22s ease;
}
body.hra-drawer-open .hra-scrim { display: block; opacity: 1; }
body.hra-drawer-open { overflow: hidden; }

/* ---------- 6. Content-Bausteine ---------- */
.hra-stats,
.hra-grid-stats {
  display: grid; gap: .85rem; margin-bottom: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.hra-stat {
  background: var(--hra-panel); border: 1px solid var(--hra-line);
  border-radius: var(--hra-r); padding: 1rem 1.15rem; position: relative; overflow: hidden;
}
.hra-stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--hra-gold), var(--hra-gold-2));
}
.hra-stat b { display: block; font-size: clamp(1.5rem, 4vw, 1.85rem); font-weight: 800; color: var(--hra-gold); line-height: 1.1; }
.hra-stat span {
  display: block; margin-top: .3rem; font-size: .66rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--hra-muted);
}

/* Statistik-Kachel v2 (Dashboards) */
.hx-stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1.8rem; }
.hx-stat {
  background: var(--hra-panel); border: 1px solid var(--hra-line); border-radius: var(--hra-r);
  padding: 1rem; display: flex; align-items: center; gap: .85rem; box-shadow: var(--hra-sh-1);
  transition: border-color .18s, transform .18s;
}
.hx-stat:hover { border-color: var(--hra-line-2); transform: translateY(-2px); }
.hx-stat .ic {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-size: 1.05rem;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.7);
}
.hx-stat .n { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hx-stat .l { display: block; color: var(--hra-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; margin-top: .25rem; }

/* Hero-Banner */
.hx-hero {
  position: relative; overflow: hidden; border-radius: var(--hra-r-xl);
  padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem;
  background:
    radial-gradient(120% 140% at 88% -30%, color-mix(in srgb, var(--hra-gold) 34%, transparent), transparent 60%),
    linear-gradient(135deg, var(--hra-panel-2), var(--hra-panel));
  border: 1px solid var(--hra-line); box-shadow: var(--hra-sh-3);
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.2rem; align-items: center;
}
.hx-hero__who { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.hx-hero__who > img {
  width: 66px; height: 66px; flex: 0 0 66px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--hra-gold); box-shadow: 0 0 0 6px var(--hra-gold-soft);
}
.hx-hero__txt { min-width: 0; }
.hx-kicker {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .35rem;
  padding: .22rem .7rem; border-radius: 999px; background: var(--hra-gold-soft);
  border: 1px solid color-mix(in srgb, var(--hra-gold) 40%, transparent);
  color: var(--hra-gold); font-size: .64rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.hx-hero h2 { margin: 0 0 .25rem; font-size: clamp(1.3rem, 3.6vw, 1.85rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.hx-hero p { margin: 0; color: var(--hra-muted); font-size: .9rem; line-height: 1.5; }

/* XP-Balken */
.hx-xp { margin-top: .7rem; height: 8px; border-radius: 99px; background: var(--hra-panel-3); overflow: hidden; max-width: 340px; }
.hx-xp > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--hra-gold), var(--hra-gold-2)); }
.hx-xp-label { display: block; margin-top: .35rem; font-size: .72rem; color: var(--hra-muted); }

/* Live-Box */
.hx-live {
  background: var(--hra-panel); border: 1px solid var(--hra-line); border-radius: var(--hra-r-lg);
  padding: 1rem 1.15rem; min-width: 236px;
}
.hx-live h3 { margin: .5rem 0 .15rem; font-size: 1.02rem; font-weight: 800; }
.hx-live p { margin: 0 0 .8rem; color: var(--hra-muted); font-size: .84rem; }
.hx-live__actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.hx-livebadge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .7rem;
  border-radius: 999px; background: var(--hra-panel-2); border: 1px solid var(--hra-line);
  font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hra-muted);
}
.hx-live.is-live .hx-livebadge { color: var(--hra-bad); border-color: color-mix(in srgb, var(--hra-bad) 45%, transparent); }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hx-live.is-live .hx-dot { animation: hxPulse 1.6s infinite; }
.hx-dot--green { color: var(--hra-ok); }
@keyframes hxPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* Abschnitts-Überschrift */
.hx-cat { margin: 1.9rem 0 .85rem; display: flex; align-items: center; gap: .7rem; }
.hx-cat .ic {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--hra-panel-2); border: 1px solid var(--hra-line); color: var(--hra-gold); font-size: .9rem;
}
.hx-cat h3 { margin: 0; font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.hx-cat .rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--hra-line), transparent); }
.hx-cat .count { font-size: .66rem; color: var(--hra-muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; white-space: nowrap; }

/* Kachel-Grid */
.hx-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.hx-tile {
  position: relative; display: flex; align-items: center; gap: .85rem;
  padding: .85rem .95rem; border-radius: var(--hra-r);
  border: 1px solid var(--hra-line); background: var(--hra-panel);
  text-decoration: none; color: var(--hra-text); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.hx-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--hra-gold) 50%, transparent); box-shadow: var(--hra-sh-2); }
.hx-tile .art {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-size: 1.15rem;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.75);
}
.hx-tile .body { min-width: 0; }
.hx-tile strong { display: block; font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.hx-tile small { display: block; margin-top: .12rem; font-size: .76rem; color: var(--hra-muted); line-height: 1.35; }
.hx-tile .tile-badge {
  position: absolute; top: .5rem; right: .5rem; background: var(--hra-bad); color: #fff;
  font-size: .66rem; font-weight: 800; padding: .1rem .45rem; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(239,68,68,.45);
}

/* Zwei-Spalten-Panels */
.hx-cols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.9rem; }
.hx-panel {
  background: var(--hra-panel); border: 1px solid var(--hra-line);
  border-radius: var(--hra-r-lg); padding: 1.15rem;
}
.hx-panel h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font-size: .95rem; font-weight: 800; }
.hx-muted { color: var(--hra-muted); font-size: .87rem; line-height: 1.55; }

.hx-row {
  display: flex; align-items: center; gap: .7rem; padding: .55rem 0;
  border-bottom: 1px solid var(--hra-line); text-decoration: none; color: inherit;
}
.hx-row:last-child { border-bottom: 0; }
.hx-row img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; }
.hx-row .t { min-width: 0; flex: 1; }
.hx-row .t strong { display: block; font-size: .87rem; font-weight: 700; }
.hx-row .t small { display: block; font-size: .75rem; color: var(--hra-muted); }

/* ---------- 7. Tabellen (mobil scrollbar) ---------- */
body.hra .hra-tablewrap,
body.hra .table-responsive {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--hra-r); border: 1px solid var(--hra-line); background: var(--hra-panel);
}
body.hra .hra-tablewrap > table,
body.hra .table-responsive > table { border: 0; border-radius: 0; min-width: 560px; }

body.hra table {
  width: 100%; border-collapse: collapse; background: var(--hra-panel);
  border: 1px solid var(--hra-line); border-radius: var(--hra-r); overflow: hidden;
  font-size: .9rem;
}
body.hra table th {
  text-align: left; padding: .8rem .9rem; font-size: .66rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; color: var(--hra-muted);
  background: var(--hra-panel-2); border-bottom: 1px solid var(--hra-line); white-space: nowrap;
}
body.hra table td { padding: .85rem .9rem; border-bottom: 1px solid var(--hra-line); vertical-align: middle; }
body.hra table tbody tr:last-child td { border-bottom: 0; }
body.hra table tbody tr:hover { background: color-mix(in srgb, var(--hra-text) 4%, transparent); }

/* ---------- 8. Formulare & Buttons ---------- */
body.hra input[type=text], body.hra input[type=email], body.hra input[type=password],
body.hra input[type=number], body.hra input[type=url], body.hra input[type=search],
body.hra input[type=date], body.hra input[type=time], body.hra input[type=datetime-local],
body.hra input[type=tel], body.hra input[type=color], body.hra select, body.hra textarea {
  width: 100%; max-width: 100%; padding: .68rem .85rem; border-radius: 12px;
  border: 1px solid var(--hra-line); background: var(--hra-panel-2);
  color: var(--hra-text); font: inherit; font-size: .92rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
body.hra textarea { min-height: 120px; resize: vertical; }
body.hra select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.05rem center, right .8rem center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
body.hra input:focus, body.hra select:focus, body.hra textarea:focus {
  outline: none; border-color: var(--hra-gold); box-shadow: 0 0 0 3px var(--hra-gold-soft);
}
body.hra label { display: block; margin-bottom: .3rem; font-size: .78rem; font-weight: 700; color: var(--hra-muted); }
body.hra input[type=color] { height: 44px; padding: .25rem; }
body.hra input[type=checkbox], body.hra input[type=radio] { width: auto; accent-color: var(--hra-gold); }
body.hra fieldset { border: 1px solid var(--hra-line); border-radius: var(--hra-r); padding: 1rem; }

body.hra .btn, body.hra button:not(.hra-pill):not(.hra-burger):not(.mp-btn):not(.hra-fab),
body.hra input[type=submit], body.hra .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.1rem; border-radius: 12px; border: 1px solid var(--hra-line);
  background: var(--hra-panel-2); color: var(--hra-text);
  font: inherit; font-weight: 700; font-size: .88rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: .15s; max-width: 100%;
}
body.hra .btn:hover, body.hra button:not(.hra-pill):not(.hra-burger):not(.mp-btn):not(.hra-fab):hover,
body.hra input[type=submit]:hover { border-color: var(--hra-line-2); transform: translateY(-1px); }
body.hra .btn-primary, body.hra .btn.primary, body.hra input[type=submit], body.hra button[type=submit]:not(.hra-pill) {
  background: linear-gradient(135deg, var(--hra-gold), var(--hra-gold-2)); border-color: transparent; color: #0a0b0c;
}
body.hra .btn-danger, body.hra .btn.danger { background: var(--hra-bad); border-color: transparent; color: #fff; }
body.hra .btn-sm, body.hra .btn.small { padding: .42rem .75rem; font-size: .8rem; border-radius: 10px; }

/* Badges & Alerts */
body.hra .badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem;
  border-radius: 999px; font-size: .7rem; font-weight: 800; line-height: 1.3;
  background: var(--hra-panel-3); color: var(--hra-text);
}
body.hra .badge.primary, body.hra .badge.gold { background: var(--hra-gold); color: #0a0b0c; }
body.hra .badge.success { background: var(--hra-ok); color: #04140a; }
body.hra .badge.danger { background: var(--hra-bad); color: #fff; }

body.hra .alert {
  display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1rem;
  padding: .85rem 1rem; border-radius: var(--hra-r-sm); font-size: .9rem; line-height: 1.5;
  border: 1px solid var(--hra-line); background: var(--hra-panel);
  border-left: 3px solid var(--hra-muted);
}
body.hra .alert-success { border-left-color: var(--hra-ok);   background: color-mix(in srgb, var(--hra-ok) 10%, var(--hra-panel)); }
body.hra .alert-error,
body.hra .alert-danger  { border-left-color: var(--hra-bad);  background: color-mix(in srgb, var(--hra-bad) 10%, var(--hra-panel)); }
body.hra .alert-warning { border-left-color: var(--hra-warn); background: color-mix(in srgb, var(--hra-warn) 10%, var(--hra-panel)); }
body.hra .alert-info    { border-left-color: var(--hra-info); background: color-mix(in srgb, var(--hra-info) 10%, var(--hra-panel)); }

body.hra .card, body.hra .panel, body.hra .box {
  background: var(--hra-panel); border: 1px solid var(--hra-line);
  border-radius: var(--hra-r-lg); box-shadow: var(--hra-sh-1);
}

/* ---------- 9. Mobile Bottom-Nav ---------- */
.hra-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
  background: color-mix(in srgb, var(--hra-bg-2) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hra-line);
  padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom));
  grid-auto-flow: column; grid-auto-columns: 1fr;
}
.hra-tabbar a, .hra-tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem;
  padding: .4rem .2rem; border: 0; background: none; cursor: pointer;
  color: var(--hra-muted); text-decoration: none; font: inherit;
  font-size: .62rem; font-weight: 700; letter-spacing: .02em; position: relative;
}
.hra-tabbar i { font-size: 1.05rem; }
.hra-tabbar a.active { color: var(--hra-gold); }
.hra-tabbar .tb-dot {
  position: absolute; top: .28rem; right: calc(50% - 16px);
  min-width: 16px; height: 16px; padding: 0 .25rem; border-radius: 99px;
  background: var(--hra-bad); color: #fff; font-size: .58rem; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- 10. Footer ---------- */
.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);
}
.hra-footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 2.2rem clamp(1rem, 3vw, 1.6rem) 1.8rem;
  display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.hra-footer .hra-brand { margin-bottom: .6rem; }
.hra-footer .hra-slogan {
  display: inline-block; margin: 0 0 1rem; padding: .3rem .85rem; border-radius: 999px;
  background: var(--hra-gold-soft); border: 1px solid var(--hra-gold);
  color: var(--hra-gold); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.hra-footer-socials { display: flex; gap: .45rem; flex-wrap: wrap; }
.hra-footer-socials a {
  width: 38px; height: 38px; border-radius: 11px; 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: #0a0b0c; background: var(--hra-gold); border-color: var(--hra-gold); }
.hra-footer h5 {
  margin: 0 0 .85rem; font-size: .66rem; 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: .45rem; }
.hra-footer-col a, .hra-footer-bottom a { color: var(--hra-text); text-decoration: none; font-size: .88rem; }
.hra-footer-col a:hover, .hra-footer-bottom a:hover { color: var(--hra-gold); }
.hra-footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.hra-footer-cta p { margin: 0 0 .85rem; color: var(--hra-muted); font-size: .86rem; line-height: 1.5; }
.hra-footer-bottom {
  border-top: 1px solid var(--hra-line); padding: 1rem clamp(1rem, 3vw, 1.6rem);
  max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: space-between; align-items: center;
  color: var(--hra-muted); font-size: .82rem;
}

/* Mini-Player über der Tabbar */
body.hra .mini-player { z-index: 205; }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1180px) {
  .hra-shell { grid-template-columns: 254px minmax(0, 1fr); }
  .hx-hero { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  /* Sidebar wird zum Drawer */
  .hra-burger { display: flex; }
  .hra-shell { grid-template-columns: minmax(0, 1fr); padding-bottom: 9.5rem; }
  .hra-side {
    position: fixed; z-index: 250; top: 0; left: 0; bottom: 0; width: min(86vw, 330px);
    max-height: none; padding: .8rem; margin: 0;
    background: var(--hra-bg-2); border-right: 1px solid var(--hra-line);
    transform: translateX(-104%); transition: transform .26s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--hra-sh-3); overflow-y: auto;
  }
  body.hra-drawer-open .hra-side { transform: translateX(0); }
  .hra-side .hra-card { box-shadow: none; }
  .hra-tabbar { display: grid; }
  .hra-area-label { display: none; }
  .hra-topbar-tools .lbl { display: none; }
  .hra-topbar-tools .hra-pill { padding: .55rem; width: 38px; height: 38px; justify-content: center; }
  .hra-topbar-tools .hra-pill i { font-size: 1rem; }
  body.hra .mini-player { bottom: calc(62px + env(safe-area-inset-bottom)); }
}

@media (max-width: 680px) {
  .hx-grid { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
  .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hra-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-hero { padding: 1.1rem; border-radius: var(--hra-r-lg); }
  .hx-hero__who { flex-direction: column; align-items: flex-start; text-align: left; }
  .hx-live { min-width: 0; }
  .hra-footer-inner { gap: 1.4rem; }
  .hra-footer-bottom { justify-content: center; text-align: center; }
  body.hra table { font-size: .84rem; }
}

@media (max-width: 380px) {
  .hx-stats, .hra-stats { grid-template-columns: minmax(0, 1fr); }
}

/* Druck */
@media print {
  .hra-topbar, .hra-side, .hra-tabbar, .hra-footer, .mini-player, .hra-scrim { display: none !important; }
  .hra-shell { display: block; padding: 0; }
}
