/* =========================================
   GRUSSBOX STYLE (wie deine Grußbox)
   Clean Dark + Gold Accent (#f2b200)
   ========================================= */

:root{
  --bg: #111111;
  --panel: rgba(0,0,0,0.55);
  --panel2: rgba(0,0,0,0.35);
  --line: rgba(242,178,0,0.55);
  --line2: rgba(242,178,0,0.28);

  --text: #ffffff;
  --muted: #c9c9c9;
  --muted2: #9a9a9a;

  --accent: #f2b200;
  --accent2: #d19c00;

  --shadow: 0 0 18px rgba(0,0,0,0.55);
  --glow: 0 0 10px rgba(242,178,0,0.30);

  --radius: 16px;
  --radiusSm: 12px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:Verdana, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Links */
a{
  color: var(--accent);
  text-decoration:none;
}
a:hover{color:#fff}

/* Header */
.header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  background: var(--panel2);
  border: 2px solid var(--line2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 12px auto 0;
  max-width: 1280px;
}
.header img{
  height:44px;
  width:auto;
  border-radius:10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}
.header .title{
  font-size:18px;
  font-weight:800;
  color: var(--accent);
  letter-spacing: .6px;
}
.nav{
  margin-left:auto;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.nav a{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--line2);
  background: rgba(0,0,0,0.45);
  color: var(--accent);
  transition:.2s;
}
.nav a:hover{
  background: rgba(242,178,0,0.12);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

/* Layout */
.container{
  max-width:1280px;
  margin: 12px auto 0;
  padding:12px;
  display:grid;
  grid-template-columns:280px 1fr 320px;
  gap:12px;
}
@media(max-width:1050px){
  .container{grid-template-columns:1fr}
}

/* Cards */
.card{
  background: var(--panel);
  border: 2px solid var(--line2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card h3{
  margin:0;
  padding:10px 12px;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: var(--accent);
  border-bottom:1px solid var(--line2);
  background: rgba(0,0,0,0.35);
}
.card .pad{padding:12px}

.small{font-size:12px;color:var(--muted2)}

/* Inputs */
input,select,textarea,button{font:inherit}
input[type=text],
input[type=password],
input[type=url],
input[type=number],
textarea,
select{
  width:100%;
  box-sizing:border-box;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line2);
  background: #333;
  color: var(--accent);
  outline:none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
input::placeholder,
textarea::placeholder{color:#aaa}
input:focus,
textarea:focus,
select:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242,178,0,0.12), inset 0 0 10px rgba(0,0,0,0.25);
}
textarea{min-height:90px;resize:vertical}

/* Buttons */
button{
  width:100%;
  padding:10px 12px;
  border:none;
  border-radius:10px;
  background: var(--accent);
  color:#111;
  font-weight:900;
  cursor:pointer;
  transition:.2s;
  box-shadow: 0 0 10px rgba(242,178,0,0.25);
}
button:hover{
  background: var(--accent2);
  transform: translateY(-1px);
}
button:active{transform:translateY(0)}

/* Form rows */
.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media(max-width:600px){
  .row{grid-template-columns:1fr}
}

/* Flash Messages */
.flash{
  max-width:1280px;
  margin:12px auto 0;
  padding:10px 12px;
  border-radius:12px;
  background: var(--panel);
  border:2px solid var(--line2);
  box-shadow: var(--shadow);
}
.flash.ok{
  border-color: rgba(0,170,0,0.75);
  color:#fff;
}
.flash.error{
  border-color: rgba(170,0,0,0.85);
  color:#fff;
}

/* Chatbox */
.chatbox{
  height:60vh;
  overflow:auto;
  padding:12px;
}

/* Message */
.msg{
  background: rgba(0,0,0,0.45);
  border:1px solid var(--line2);
  border-radius:14px;
  padding:10px 10px;
  margin-bottom:10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.35);
  transition:.2s;
}
.msg:hover{
  box-shadow: 0 0 14px rgba(242,178,0,0.18);
  transform: scale(1.01);
}
.msg .meta{
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:11px;
  color: var(--muted);
  margin-bottom:6px;
}
.badge{
  display:inline-block;
  padding:2px 10px;
  border-radius:999px;
  border:1px solid var(--line2);
  font-size:11px;
  color: var(--accent);
  background: rgba(0,0,0,0.35);
}

/* Smilies */
.smiley{height:100px;vertical-align:-4px}
.smiley-emoji{font-size:16px}

/* Userlist */
.userlist{display:flex;flex-direction:column;gap:10px}
.user{
  display:flex;
  gap:10px;
  align-items:center;
  padding:8px;
  border-radius:12px;
  border:1px solid rgba(242,178,0,0.18);
  background: rgba(0,0,0,0.35);
  transition:.2s;
}
.user:hover{
  background: rgba(242,178,0,0.08);
  border-color: rgba(242,178,0,0.35);
}
.user img{
  width:42px;
  height:42px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid var(--line2);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.user .name{font-weight:850;color:#fff}
.user .role{font-size:12px;color:var(--muted)}

/* Details / Smilies help */
details{
  border:1px solid var(--line2);
  border-radius:12px;
  padding:8px 10px;
  background: rgba(0,0,0,0.35);
}
summary{
  cursor:pointer;
  color: var(--accent);
  font-weight:800;
}
.smilies-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.smilies-grid code{
  border:1px solid var(--line2);
  border-radius:10px;
  padding:6px 8px;
  background: rgba(0,0,0,0.35);
  color: var(--accent);
}

/* Footer */
.footer-note{
  max-width:1280px;
  margin:0 auto;
  padding:0 12px 14px;
  color:#666;
  font-size:12px;
}

/* Table */
.table{width:100%;border-collapse:collapse}
.table th,.table td{
  border-bottom:1px solid rgba(242,178,0,0.22);
  padding:8px 6px;
  text-align:left;
  font-size:13px;
}
.table th{
  color: var(--accent);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

/* Scrollbar (optional – dezent) */
.chatbox::-webkit-scrollbar{width:10px}
.chatbox::-webkit-scrollbar-thumb{
  background: rgba(242,178,0,0.35);
  border:3px solid rgba(0,0,0,0.6);
  border-radius:999px;
}
/* =========================================
   GRUSSBOX MODAL STYLE (wie Grußbox)
   ========================================= */

/* CSS-Only Modal via :target */
.modal{display:none;position:fixed;inset:0;z-index:9999}
.modal:target{display:block}

/* Hintergrund */
.modal-bg{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.70);
  backdrop-filter: blur(6px);
}

/* Modal Box */
.modal-inner{
  position:relative;
  max-width:720px;
  margin:6vh auto;
  width:calc(100% - 24px);

  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(242,178,0,0.30);
  border-radius:16px;
  box-shadow: 0 0 18px rgba(0,0,0,0.55), 0 0 10px rgba(242,178,0,0.22);
  padding:14px;
}

/* Optional: Header-Leiste im Modal */
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(242,178,0,0.22);
  border-radius:12px;
  background: rgba(0,0,0,0.35);
  margin-bottom:12px;
}
.modal-title{
  font-family: Verdana, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:14px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#f2b200;
}
.modal-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:10px;
  border:1px solid rgba(242,178,0,0.25);
  background: rgba(0,0,0,0.45);
  color:#f2b200;
  text-decoration:none;
  font-weight:900;
  transition:.2s;
}
.modal-close:hover{
  background: rgba(242,178,0,0.12);
  color:#fff;
  box-shadow: 0 0 10px rgba(242,178,0,0.25);
  transform: translateY(-1px);
}

/* Inhalt */
.modal-card{padding:0}

/* Links im Modal */
.userlink{
  color:#f2b200;
  text-decoration:none;
}
.userlink:hover{
  opacity:.92;
  color:#fff;
  text-shadow:0 0 6px rgba(242,178,0,0.25);
}

/* Mobile */
@media(max-width:520px){
  .modal-inner{margin:10vh auto}
}
/* =========================================
   GRUSSBOX STYLE – USERLISTE & PROFIL
   (100% passend zum Grußbox-Look)
   ========================================= */

/* ---------- Userliste: Card/Row ---------- */
.userlist{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.userlist a.user{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;

  background: rgba(0,0,0,0.45);
  border:1px solid rgba(242,178,0,0.25);
  border-radius:14px;

  text-decoration:none;
  color:#ffffff;

  box-shadow: inset 0 0 8px rgba(242,178,0,0.08);
  transition: all .2s ease;
}

.userlist a.user:hover{
  background: rgba(242,178,0,0.10);
  border-color: rgba(242,178,0,0.45);
  box-shadow: 0 0 10px rgba(242,178,0,0.25);
  transform: translateY(-1px);
}

/* ---------- Avatar ---------- */
.userlist a.user img{
  width:42px;
  height:42px;
  border-radius:12px;
  object-fit:cover;

  border:1px solid rgba(242,178,0,0.35);
  background:#000;
  box-shadow:0 0 6px rgba(242,178,0,0.25);
}

/* ---------- Name + Subtext ---------- */
.userlist a.user .name{
  font-weight:800;
  font-size:14px;
  letter-spacing:.03em;
}

.userlist a.user .role{
  font-size:12px;
  color:#f2b200;
  opacity:.85;
}

/* Optional: „öffnet Profil“-Hinweis */
.userlist a.user .name:after{
  content:" ↗";
  font-weight:700;
  color:#f2b200;
  opacity:.6;
}

/* ---------- Profilseite Wrapper ---------- */
.profile-page{
  max-width:900px;
  margin:0 auto;
  padding:14px;
}

/* ---------- Profil-Karte ---------- */
.profile-card{
  background: rgba(0,0,0,0.55);
  border:2px solid rgba(242,178,0,0.30);
  border-radius:18px;

  padding:16px;
  box-shadow:
    0 0 18px rgba(0,0,0,0.55),
    0 0 12px rgba(242,178,0,0.25);

  backdrop-filter: blur(8px);
}

/* Profil-Header (optional) */
.profile-card .profile-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.profile-card .profile-head img{
  width:90px;
  height:90px;
  border-radius:18px;
  object-fit:cover;
  border:2px solid rgba(242,178,0,0.35);
  box-shadow:0 0 12px rgba(242,178,0,0.25);
}

.profile-card .profile-head .title{
  font-size:18px;
  font-weight:900;
  letter-spacing:.05em;
  color:#f2b200;
}

/* Mobile Feinschliff */
@media(max-width:520px){
  .userlist a.user{
    padding:8px 10px;
  }
  .profile-card{
    padding:14px;
  }
}
/* ===== Role Badges (farbig) ===== */
.badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#d8e2ee;
  white-space:nowrap;
}

/* Rolle = Text im Badge */
.badge.role-admin, .badge.role-ADMIN{ background:rgba(255,0,0,.18); border-color:rgba(255,0,0,.35); color:#ffd6d6; }
.badge.role-mod,   .badge.role-MOD  { background:rgba(0,140,255,.18); border-color:rgba(0,140,255,.35); color:#d6eeff; }
.badge.role-dj,    .badge.role-DJ   { background:rgba(155,80,255,.18); border-color:rgba(155,80,255,.35); color:#efe2ff; }
.badge.role-vip,   .badge.role-VIP  { background:rgba(255,190,0,.18); border-color:rgba(255,190,0,.35); color:#fff2cc; }
.badge.role-user,  .badge.role-USER { background:rgba(160,170,185,.18); border-color:rgba(160,170,185,.35); color:#e9eef5; }
.badge.role-gast,  .badge.role-GAST { background:rgba(160,170,185,.18); border-color:rgba(160,170,185,.30); color:#e9eef5; }
.badge.role-bot,   .badge.role-BOT  { background:rgba(0,255,190,.16); border-color:rgba(0,255,190,.30); color:#d6fff3; }

/* Status Badges */
.badge.badge-onair{ background:rgba(0,255,120,.16); border-color:rgba(0,255,120,.30); color:#d6ffe8; }
.badge.badge-afk  { background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.18); color:#e9eef5; }

/* Optional: wenn du Badges direkt per Text nutzt (z.B. "ADMIN") */
.badge[data-role="ADMIN"]{ background:rgba(255,0,0,.18); border-color:rgba(255,0,0,.35); color:#ffd6d6; }
.badge[data-role="MOD"]  { background:rgba(0,140,255,.18); border-color:rgba(0,140,255,.35); color:#d6eeff; }
.badge[data-role="DJ"]   { background:rgba(155,80,255,.18); border-color:rgba(155,80,255,.35); color:#efe2ff; }
.badge[data-role="VIP"]  { background:rgba(255,190,0,.18); border-color:rgba(255,190,0,.35); color:#fff2cc; }
.badge[data-role="USER"] { background:rgba(160,170,185,.18); border-color:rgba(160,170,185,.35); color:#e9eef5; }
.badge[data-role="GAST"] { background:rgba(160,170,185,.18); border-color:rgba(160,170,185,.30); color:#e9eef5; }
.badge[data-role="BOT"]  { background:rgba(0,255,190,.16); border-color:rgba(0,255,190,.30); color:#d6fff3; }

/* Login unten: User online quer (Pills) */
.u-pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #1f2b3a;
  background:#0b0f14;
  text-decoration:none;
  color:inherit;
}

.u-pill:hover{ background:#111b28; border-color:#243244; }

.u-pill img{
  width:22px;
  height:22px;
  border-radius:8px;
  object-fit:cover;
  border:1px solid #243244;
  background:#0b0f14;
}

/* Onlineuser Sidebox */
.ou-row{
  display:flex;
  gap:10px;
  align-items:center;
  padding:8px;
  border-radius:14px;
  border:1px solid #1f2b3a;
  background:;
  color:inherit;
  text-decoration:none;
  margin-top:8px;
}

.ou-row:hover{
  background:#111b28;
  border-color:#243244;
}

.ou-ava{
  width:36px;
  height:36px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid #243244;
  background:#0b0f14;
}

.ou-mid{ flex:1; min-width:0; }
.ou-name{ font-weight:750; line-height:1.2; }
.ou-sub{ margin-top:4px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
