@import url("avatar-rank.css");
/* HEADER - exakt wie index.php / wissensquiz.php */
.site-header { text-align: center; margin: -20px auto 0; position: relative; z-index: 10; }
.logo-wrap {
    display: inline-block; position: relative; border-radius: 26px;
    padding: 10px; isolation: isolate; cursor: pointer;
}
.logo-wrap::before {
    content: ""; position: absolute; inset: -18px; border-radius: 28px;
    background:
        radial-gradient(closest-side, rgba(124,92,255,.35), transparent 70%),
        radial-gradient(closest-side at 70% 30%, rgba(0,194,255,.18), transparent 65%);
    filter: blur(10px); opacity: .85; pointer-events: none;
}
.logo-wrapper { position: relative; display: inline-block; margin: 0 auto -25px; overflow: visible; }
.logo {
    display: block; width: 280px; max-width: 80vw; position: relative; z-index: 10;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); transition: all 0.3s ease;
    aspect-ratio: 1 / 1; object-fit: contain;
}
.logo:hover { transform: scale(1.03); filter: drop-shadow(0 15px 40px rgba(0,0,0,.7)); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: -5px; }
.brand-title { font-size: 34px; font-weight: 800; letter-spacing: -2px; line-height: 1.05; color: rgba(255,255,255,.95); text-shadow: 0 10px 30px rgba(0,0,0,.55); }
.brand-sub { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: rgba(255,255,255,.70); text-shadow: 0 8px 24px rgba(0,0,0,.55); }

.auth-info-container {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
    margin: 20px auto 26px; padding: 16px 24px; max-width: 1040px;
    border-radius: var(--r-md);
    background: linear-gradient(180deg, rgba(14,16,26,.70), rgba(8,10,18,.55));
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(2px) saturate(180%); box-shadow: 0 18px 60px rgba(0,0,0,.45);
    position: relative; z-index: 10;
}
.auth-info-container .button-group { justify-content: center; }
.auth-user { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.auth-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accentBorder); box-shadow: 0 6px 18px rgba(0,0,0,.35); background: rgba(255,255,255,.08); }
.auth-user-text { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.role-tag { font-size: 0.75rem; padding: 5px 12px; border-radius: 999px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-left: 8px; }
.role-admin { background: linear-gradient(135deg, rgba(231,76,60,.20), rgba(231,76,60,.12)); color: #e74c3c; border: 1px solid rgba(231,76,60,.45); }
.role-user { background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.05)); color: var(--text); border: 1px solid rgba(255,255,255,.35); }
.role-member { background: linear-gradient(135deg, rgba(241,196,15,.20), rgba(241,196,15,.12)); color: #f1c40f; border: 1px solid rgba(241,196,15,.45); }
.role-donor { background: linear-gradient(135deg, rgba(0,194,255,.20), rgba(0,150,200,.12)); color: #00BFFF; border: 1px solid rgba(0,194,255,.45); }
.role-moderator { background: linear-gradient(135deg, rgba(16,185,129,.20), rgba(16,185,129,.12)); color: #ffffff; border: 1px solid rgba(16,185,129,.45); }
.role-bot { background: linear-gradient(135deg, rgba(155,89,182,.20), rgba(155,89,182,.12)); color: #9b59b6; border: 1px solid rgba(155,89,182,.45); }
.button-group { display: flex; gap: 10px; flex-wrap: wrap; }
.glass-btn {
    padding: 9px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08); color: var(--text); cursor: pointer;
    font-size: 0.88rem; font-weight: 500; text-decoration: none; display: inline-block;
    white-space: nowrap; transition: all 0.2s;
}
.glass-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.glass-btn.btn-logout { background: rgba(231,76,60,.12); border-color: rgba(231,76,60,.45); color: rgba(255,255,255,.95); }
.glass-btn.btn-admin { background: rgba(243,156,18,.12); border-color: rgba(243,156,18,.45); color: rgba(255,255,255,.95); }
.glass-btn.btn-account { background: rgba(124,92,255,.12); border-color: rgba(124,92,255,.45); color: rgba(255,255,255,.95); }

@media (max-width: 600px) {
    .auth-info-container { padding: 12px 16px; gap: 10px; flex-direction: column; }
    .auth-user { justify-content: center; }
    .button-group { width: 100%; justify-content: center; }
    .logo { width: 200px; margin-bottom: 10px; }
}
