﻿:root {
    --brand-purple: #7b2cbf;
    --brand-purple-glow: #9d4edd;
    --brand-gold: #c5a01a;       
    --brand-gold-glow: #e5b823;
    --bg-pure-black: #000000;
    --bg-dark-gray: #09090b;
    --text-white: #ffffff;
    --text-muted: #8e8e9f;
}

body {
    background-color: var(--bg-pure-black);
    color: var(--text-white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* DYNAMISCHER HINTERGRUND */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    pointer-events: none;
    transition: background-image 0.5s ease-in-out;
}

/* DUNKEL-OVERLAY */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 100%),
                linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.7) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Header Navigation */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--brand-purple) 0%, var(--brand-gold) 100%) 1;
    height: 75px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-white) !important;
    cursor: pointer;
}

.nav-brand span {
    color: var(--brand-purple-glow);
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.custom-nav-link {
    color: var(--text-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.05rem;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-nav-link:hover, .custom-nav-link.active {
    background-color: rgba(157, 78, 221, 0.15);
    color: var(--brand-purple-glow);
    box-shadow: inset 0 0 10px rgba(157, 78, 221, 0.2);
}

.user-role-badge {
    cursor: default;
    padding: 6px 12px;
    border-radius: 20px;
}

.btn-logout {
    background: transparent;
    color: var(--text-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-logout:hover {
    border-color: #ef233c;
    color: #ef233c !important;
    box-shadow: 0 0 15px rgba(239, 35, 60, 0.4);
}

.app-view {
    margin-top: 75px;
    padding: 40px 20px;
    flex-grow: 1;
    display: none;
}

.app-view.active-view {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card {
    background: rgba(10, 10, 12, 0.75);
    border: 1px solid rgba(157, 78, 221, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-gold);
    box-shadow: 0 15px 35px rgba(197, 160, 26, 0.25);
}

.feature-card.admin-card-large {
    border: 2px solid var(--brand-gold);
    background: linear-gradient(135deg, rgba(197, 160, 26, 0.35) 0%, rgba(123, 44, 191, 0.35) 100%);
    box-shadow: 0 10px 30px rgba(197, 160, 26, 0.25);
    padding: 40px 30px;
}

.feature-icon {
    font-size: 3.2rem;
    color: var(--brand-purple-glow);
    margin-bottom: 15px;
}

.admin-card-large .feature-icon {
    font-size: 4rem;
    text-shadow: 0 0 20px rgba(229, 184, 35, 0.6);
}

.card-description {
    color: var(--brand-gold-glow);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 8px;
    text-shadow: 0 0 8px rgba(229, 184, 35, 0.2);
}

.content-card {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(16px);
    border: 2px solid var(--brand-purple);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(123, 44, 191, 0.35);
}

#map {
    height: 480px;
    width: 100%;
    border-radius: 18px;
    border: 2px solid var(--brand-purple);
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.25);
    z-index: 10;
}

.map-sidebar, .category-sidebar {
    background: rgba(10, 10, 12, 0.65);
    border: 1px solid rgba(157, 78, 221, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.category-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--brand-gold);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    padding-bottom: 8px;
}

.category-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.category-item {
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    color: var(--text-white);
    margin-bottom: 6px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.category-item:hover, .category-item.active {
    background-color: rgba(157, 78, 221, 0.2);
    color: var(--brand-purple-glow);
    box-shadow: inset 0 0 10px rgba(157, 78, 221, 0.3);
}

.gpx-card, .single-event-card, .thread-card {
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(157, 78, 221, 0.25);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gpx-card:hover, .single-event-card:hover, .thread-card:hover {
    border-color: var(--brand-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 26, 0.2);
}

.gpx-stat-badge {
    background: rgba(123, 44, 191, 0.2);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--brand-gold-glow);
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.thread-badge {
    background-color: var(--brand-purple);
    color: var(--text-white);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.thread-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-gold-glow);
    text-transform: uppercase;
    margin-top: 8px;
    margin-bottom: 6px;
}

.thread-preview {
    color: #d8b4fe;
    font-size: 1rem;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-modal-content {
    background: rgba(9, 9, 11, 0.98) !important;
    border: 2px solid var(--brand-purple) !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 40px rgba(123, 44, 191, 0.35);
}

.chat-body-container {
    max-height: 480px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(157, 78, 221, 0.15);
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    font-size: 1rem;
    line-height: 1.4;
}

.chat-bubble-other {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.25);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--text-white);
}

.chat-bubble-own {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.4) 0%, rgba(157, 78, 221, 0.3) 100%);
    border: 1px solid var(--brand-purple-glow);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: var(--text-white);
}

.chat-author {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand-gold-glow);
    margin-bottom: 3px;
}

.table-custom-glass {
    background: transparent !important;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-custom-glass thead th {
    background: rgba(123, 44, 191, 0.6) !important;
    border-top: 1px solid rgba(157, 78, 221, 0.6);
    border-bottom: 1px solid rgba(157, 78, 221, 0.6);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 14px 12px;
}

.table-custom-glass tbody tr td {
    background: rgba(10, 10, 12, 0.95) !important;
    border-top: 1px solid rgba(157, 78, 221, 0.15);
    border-bottom: 1px solid rgba(157, 78, 221, 0.15);
    padding: 14px 12px;
    color: #ffffff !important;
}

.input-custom {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6) !important;
    border: 2px solid var(--brand-purple);
    border-radius: 12px;
    padding: 10px 15px;
    color: var(--text-white) !important;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.input-custom:focus {
    outline: none;
    border-color: var(--brand-purple-glow);
    box-shadow: 0 0 12px rgba(157, 78, 221, 0.45);
}

.label-custom {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-gold-glow);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.text-purple-glow {
    color: var(--brand-purple-glow) !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.4);
}

.btn-custom-sub {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-glow) 100%);
    color: var(--text-white);
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(157, 78, 221, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-custom-sub:hover {
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
    transform: translateY(-1px);
    color: white;
}

.event-meta-gold {
    color: var(--brand-gold-glow);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.landing-nav-tabs .nav-link, .admin-nav-tabs .nav-link {
    color: var(--text-white);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 20px;
}

.landing-nav-tabs .nav-link.active, .admin-nav-tabs .nav-link.active {
    background: transparent;
    color: var(--brand-gold-glow);
    border-bottom-color: var(--brand-gold);
}

footer {
    border-top: 1px solid rgba(157, 78, 221, 0.15);
    padding: 30px 0 40px;
    background-color: #030304;
    text-align: center;
    margin-top: auto;
}

.social-icon-link {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.social-icon-link:hover {
    color: var(--brand-purple-glow);
    transform: translateY(-3px);
}

/* =========================================
   PIXEL GARAGE – PREMIUM CARD V2
   ========================================= */
.garage-card-v2 {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #0a0a0d;
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.garage-card-v2:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 25px rgba(197, 160, 26, 0.2);
    border-color: rgba(197, 160, 26, 0.5);
}

.garage-card-img-wrap {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    flex-shrink: 0;
}

.garage-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.garage-card-v2:hover .garage-card-img {
    transform: scale(1.06);
}

.garage-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 26, 0.8);
    color: rgba(157, 78, 221, 0.4);
    font-size: 3rem;
}

.garage-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,0.75) 100%
    );
    pointer-events: none;
}

.garage-img-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold-glow);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.garage-card-owner-chip {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(123, 44, 191, 0.85);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    border: 1px solid rgba(157, 78, 221, 0.5);
}

.garage-card-body {
    padding: 16px 18px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.garage-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand-gold-glow);
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.garage-card-mods {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.garage-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.garage-card-click-hint {
    font-size: 0.8rem;
    color: var(--brand-purple-glow);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.garage-card-v2:hover .garage-card-click-hint {
    opacity: 1;
}

/* Action Buttons */
.garage-card-actions {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(157, 78, 221, 0.15);
}

.garage-action-btn {
    flex: 1;
    padding: 10px 6px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.garage-action-btn.edit {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-right: 1px solid rgba(157, 78, 221, 0.15);
}
.garage-action-btn.edit:hover { background: rgba(255, 193, 7, 0.25); }

.garage-action-btn.delete {
    background: rgba(220, 53, 69, 0.1);
    color: #ef233c;
}
.garage-action-btn.delete:hover { background: rgba(220, 53, 69, 0.25); }

.garage-action-btn.mod-edit {
    background: rgba(255, 165, 0, 0.1);
    color: #fd7e14;
    border-right: 1px solid rgba(157, 78, 221, 0.15);
}
.garage-action-btn.mod-edit:hover { background: rgba(255, 165, 0, 0.25); }

.garage-action-btn.mod-delete {
    background: rgba(108, 17, 17, 0.2);
    color: #ff6b6b;
}
.garage-action-btn.mod-delete:hover { background: rgba(220, 53, 69, 0.3); }

/* Legacy .garage-card still needed for hover ref */
.garage-card {
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(157, 78, 221, 0.25);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.garage-card:hover {
    border-color: var(--brand-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 26, 0.2);
}

.custom-switch:checked {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
}

/* =========================================
   HELM-ANIMATION FÜR EVENTS (KORRIGIERT & SICHTBAR)
   ========================================= */
.biker-helmet-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(157, 78, 221, 0.4) !important;
    color: var(--text-white) !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.biker-helmet-btn:hover {
    background: rgba(157, 78, 221, 0.25) !important;
    border-color: var(--brand-gold) !important;
    transform: translateY(-2px);
    color: var(--text-white) !important;
}

@keyframes rainbowGlow {
    0% { filter: hue-rotate(0deg) drop-shadow(0 0 3px rgba(255,255,255,0.6)); }
    50% { filter: hue-rotate(180deg) drop-shadow(0 0 10px rgba(157,78,221,0.9)); }
    100% { filter: hue-rotate(360deg) drop-shadow(0 0 3px rgba(255,255,255,0.6)); }
}

.biker-helmet-btn.participating {
    background: rgba(25, 135, 84, 0.25) !important;
    border-color: #198754 !important;
    color: #4ade80 !important;
}

.biker-helmet-btn.participating .helmet-icon {
    animation: rainbowGlow 3s infinite linear;
    color: #e5b823 !important;
}

/* =========================================
   THUMBNAIL VORSCHAU (BEARBEITEN-MODAL)
   ========================================= */
.thumb-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 26, 0.35);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.thumb-preview-item:hover {
    transform: scale(1.05);
}

.thumb-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-del-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 53, 69, 0.85);
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background 0.2s;
}

.thumb-del-btn:hover {
    background: rgba(220, 53, 69, 1);
}

/* =========================================
   BENACHRICHTIGUNGS-TABS
   ========================================= */
.notif-tabs {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.notif-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px 12px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -1px;
}

.notif-tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.notif-tab-btn.active {
    color: var(--brand-gold-glow);
    border-bottom-color: var(--brand-gold);
}

.notif-tab-count {
    background: rgba(197, 160, 26, 0.25);
    color: var(--brand-gold-glow);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

/* =========================================
   USER BENACHRICHTIGUNGEN – REDESIGN
   ========================================= */
.notif-card {
    border-radius: 14px;
    padding: 18px 20px 18px 24px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Farbiger linker Balken je nach Typ */
.notif-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
}

.notif-card[data-type="warning"]::before { background: var(--brand-gold); }
.notif-card[data-type="danger"]::before  { background: #ef233c; }
.notif-card[data-type="success"]::before { background: #4ade80; }

/* Ungelesen: lila Hintergrund-Highlight */
.notif-unread {
    background: rgba(123, 44, 191, 0.12);
    border-color: rgba(157, 78, 221, 0.25);
    box-shadow: 0 4px 20px rgba(123, 44, 191, 0.15);
}

/* Gelesen: dezenter dunkler Hintergrund */
.notif-read {
    background: rgba(10, 10, 14, 0.65);
    border-color: rgba(255, 255, 255, 0.07);
}

/* Header: Titel + Zeitstempel nebeneinander */
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.notif-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

.notif-title-row i {
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 1rem;
}

.notif-message {
    flex: 1;
}

/* NEU-Badge */
.notif-new-badge {
    flex-shrink: 0;
    background: #ef233c;
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 3px;
    text-transform: uppercase;
}

/* Zeitstempel */
.notif-time {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 3px;
}

/* Begründungs-Box */
.notif-reason-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(197, 160, 26, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.notif-reason-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-gold-glow);
    margin-bottom: 6px;
}

.notif-reason-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Footer: Von + Button */
.notif-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-from {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.notif-from b {
    color: var(--brand-purple-glow);
    font-weight: 700;
}

/* "Als gelesen markieren"-Button */
.notif-read-btn {
    background: rgba(157, 78, 221, 0.12);
    border: 1px solid rgba(157, 78, 221, 0.4);
    color: var(--brand-purple-glow);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notif-read-btn:hover {
    background: rgba(157, 78, 221, 0.28);
    border-color: var(--brand-purple-glow);
    color: white;
}

/* "Gelesen"-Status */
.notif-done {
    font-size: 0.8rem;
    color: rgba(74, 222, 128, 0.65);
    font-weight: 600;
}

.notif-card:last-child {
    margin-bottom: 0;
}

/* ONLINE USERS SIDEBAR */
.online-users-sidebar {
    position: fixed;
    top: 100px; /* Below header with some margin */
    left: 20px;
    width: 250px;
    max-height: 40vh;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(157, 78, 221, 0.4);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.15);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(157, 78, 221, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.2rem;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}
.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 26, 0.5);
    border-radius: 3px;
}

.online-user-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.online-user-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(197, 160, 26, 0.3);
    transform: translateY(-2px);
}
.online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    box-shadow: 0 0 10px #28a745;
    margin-right: 12px;
}
#onlineSidebarToggle {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1050;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
#onlineSidebarToggle:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .online-users-sidebar {
        top: 80px;
        left: 10px;
        width: 220px;
        transform: translateX(-120%);
        opacity: 0;
    }
    .online-users-sidebar.show {
        transform: translateX(0);
        opacity: 1;
    }
}



/* Events Sidebar (Fixed - Left side) */
.events-sidebar {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 250px;
    max-height: 35vh; 
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

@media (max-width: 767.98px) {
    .events-sidebar {
        right: -100%;
        top: 0;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border-right: 1px solid var(--brand-gold);
    }
    .events-sidebar.show {
        transform: translateX(100%);
    }
}

#eventsSidebarToggle {
    position: fixed;
    bottom: 20px;
    right: 80px;
    z-index: 1045;
}

.event-countdown-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}
.event-countdown-item:hover {
    background: rgba(197, 160, 26, 0.1);
}





/* =========================================
   MARKETPLACE (FLOHMARKT) CSS
   ========================================= */
.market-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #0a0a0d;
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.market-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 25px rgba(197, 160, 26, 0.2);
    border-color: rgba(197, 160, 26, 0.5);
}

.market-card-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.market-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.market-card:hover .market-card-img {
    transform: scale(1.06);
}

.market-price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #198754;
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 30px;
    border: 1px solid #157347;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.market-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(123, 44, 191, 0.85);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.market-card-body {
    padding: 16px 18px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.market-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-gold-glow);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-card-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   HIGHLIGHTS / HALL OF FAME CSS
   ========================================= */
.highlights-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.year-divider {
    text-align: center;
    position: relative;
    margin: 60px 0 30px;
}
.year-divider h2 {
    display: inline-block;
    background: #0a0a0d;
    padding: 0 20px;
    color: var(--brand-gold);
    font-size: 2.5rem;
    font-weight: 900;
    position: relative;
    z-index: 2;
    margin: 0;
}
.year-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
    z-index: 1;
}

.highlight-card {
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(197, 160, 26, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}
.highlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 26, 0.6);
}

.highlight-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}
.highlight-image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.highlight-image-gallery img:hover {
    transform: scale(1.05);
}

.landing-highlight-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #000;
}
.landing-highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.5s ease, transform 0.8s ease;
}
.landing-highlight-card:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}
.landing-highlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
}


/* =========================================
   HERO GALLERY ANIMATION (LANDING PAGE)
   ========================================= */
.hero-gallery {
    display: flex;
    gap: 10px;
    height: 500px;
    width: 100%;
}

.hero-gallery-card {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.hero-gallery-card:hover {
    flex: 3;
    border-color: rgba(157, 78, 221, 0.5);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.hero-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    filter: brightness(0.6) grayscale(20%);
}

.hero-gallery-card:hover img {
    transform: scale(1.05);
    filter: brightness(1) grayscale(0%);
}

.hero-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.hero-gallery-title {
    margin: 0;
    color: var(--text-white);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.5rem;
    text-align: center;
    transform: translateY(15px);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.hero-gallery-card:hover .hero-gallery-title {
    transform: translateY(0);
    color: var(--brand-purple-glow);
    opacity: 1;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.8);
}

/* Crew Card Hover Animation */
.crew-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(197, 160, 26, 0.3) !important;
    border-color: var(--brand-gold) !important;
}

/* Crew Flip Card */
.crew-flip-card {
    background-color: transparent;
    perspective: 1000px;
    cursor: pointer;
    aspect-ratio: 5 / 6;
    margin-bottom: 1.5rem;
}

.crew-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.crew-flip-card.flipped .crew-flip-card-inner {
    transform: rotateY(180deg);
}

.crew-flip-card-front, .crew-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(9, 9, 11, 0.99);
}

.crew-flip-card-front {
    border: 1px solid rgba(197, 160, 26, 0.2);
}

.crew-flip-card-back {
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid rgba(197, 160, 26, 0.5);
    box-shadow: inset 0 0 20px rgba(197, 160, 26, 0.05);
}



/* Profil Tabs Styling */
#profileTabs .nav-link {
    color: var(--text-white) !important;
    background: transparent !important;
    border: none;
    border-bottom: 2px solid transparent !important;
}
#profileTabs .nav-link.active {
    background: transparent !important;
    color: var(--brand-purple) !important;
    border-bottom: 2px solid var(--brand-purple) !important;
    font-weight: bold;
}
#profileTabs .nav-link:hover {
    color: var(--brand-purple-glow) !important;
}
