@import url(https://fonts.googleapis.com/css2?family=VT323&display=swap);

/* ================================================
   RESET & BODY MIT HINTERGRUNDBILD
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg1);
    color: var(--text1);
    font-family: 'VT323', 'Courier New', monospace;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Hintergrundbild mit Dark Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: grayscale(60%);
    z-index: -2;
}

/* Schwarzer Filter über dem Hintergrundbild */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 10, 0.85);
    z-index: -1;
}

/* Scanline Effect (subtiler) */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(74, 122, 74, 0.02) 2px,
        rgba(74, 122, 74, 0.02) 4px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

.container {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    padding-top: 30px;
}

/* ================================================
   BACKGROUND BOX - HAUPTCONTAINER
   ================================================ */
.backgroundbox {
    width: 1200px;
    color: var(--text1);
    background: rgba(20, 25, 20, 0.92);
	padding: 40px;
    backdrop-filter: blur(25px) saturate(180%);
    border-left: 1px solid rgba(74, 122, 74, 0.4);
	    border-right: 1px solid rgba(74, 122, 74, 0.4);
    box-shadow: 
        0 10px 50px rgba(0, 0, 0, 0.8),
        0 0 40px var(--glow),
        inset 0 1px 0 rgba(74, 122, 74, 0.2);
    position: relative;
}

/* Top Bar mit Transition */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(10, 15, 10, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(74, 122, 74, 0.4);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 15px var(--glow);
    height: 60px;
    transition: transform 0.4s ease-in-out;
}

/* Wenn Bar versteckt ist */
.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar-inner {
    width: 1600px;
    height: 60px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Profile bleibt links */
.user-profile {
    margin-right: auto;  /* Schiebt die Actions nach rechts */
}

/* Toggle Button in der Bar */
.top-bar-toggle {
    background: transparent;
    border: none;
    color: var(--text2);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px var(--glow));
}

.top-bar-toggle:hover {
    color: var(--accent2);
    filter: drop-shadow(0 0 15px var(--glow));
    transform: translateY(-2px);
}

/* Fixed Button wenn Bar versteckt ist */
.top-bar-show {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    background: rgba(10, 15, 10, 0.95);
    border: 1px solid rgba(74, 122, 74, 0.4);
    color: var(--text2);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 15px var(--glow);
}

.top-bar-show.active {
    display: flex;
}

.top-bar-show:hover {
    background: rgba(74, 122, 74, 0.2);
    color: var(--accent2);
    transform: scale(1.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    background: transparent;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent1);
    box-shadow: 0 0 15px var(--glow);
    filter: grayscale(30%);
    transition: all 0.3s;
    object-fit: cover;
    object-position: top;
}

.user-avatar:hover {
    filter: grayscale(0%);
    box-shadow: 0 0 20px var(--accent1);
    transform: scale(1.05);
}

.username {
    color: var(--accent2);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px var(--glow);
}

.username a {
    color: var(--accent2);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px var(--glow);
    text-decoration: none;
}

.username strong {
    color: var(--accent2);
    font-weight: 700;
}

.top-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-action-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text2);
    width: 28px;
    height: 28px;
    text-decoration: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    filter: drop-shadow(0 0 8px var(--glow));
}

.top-action-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 10, 0.95);
    color: var(--accent2);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    border: 1px solid rgba(74, 122, 74, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    z-index: 10001;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.top-action-btn:hover {
    color: var(--accent2);
    filter: drop-shadow(0 0 15px var(--glow));
    transform: translateY(-3px) scale(1.1);
}

.top-action-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: var(--text1);
    font-size: 9px;
    font-weight: bold;
    padding: 2px 5px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 0 12px var(--glow-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    width: 100%;
    margin: 0 0 40px 0;
    padding: 0;
	padding-top: 40px;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(74, 122, 74, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--glow);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
background: url(/images/1/header.png) center/cover;
    filter: grayscale(50%) brightness(0.6);
    transition: all 0.5s;
}
.hero-container:hover .hero-bg {
    transform: scale(1.05);
    filter: grayscale(30%) brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 10, 0.7), transparent 50%, rgba(10, 15, 10, 0.8));
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    color: var(--text1);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        0 0 20px var(--glow),
        -2px 0 var(--accent1),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text2);
    margin-top: 10px;
    letter-spacing: 2px;
}

/* ================================================
   ICON NAVIGATION
   ================================================ */
.icon-nav-container {
    background: rgba(20, 25, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 122, 74, 0.3);
    border-radius: 12px;
    padding: 20px 30px;  /* Weniger vertikales Padding */
    height: 100px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--glow);
}

.nav-grid {
    display: flex;  /* Flexbox statt Grid */
    gap: 15px;
    width: 100%;
    justify-content: space-between;
}

.nav-icon {
    flex: 1;
    min-width: 60px;
    max-width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text2);
    background: rgba(10, 15, 10, 0.6);
    border: 1px solid rgba(74, 122, 74, 0.3);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

/* Pixeliges Rausch-Pattern */
.nav-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(74, 122, 74, 0.05) 1px, rgba(74, 122, 74, 0.05) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(74, 122, 74, 0.05) 1px, rgba(74, 122, 74, 0.05) 2px);
    background-size: 2px 2px;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}

/* Glitch-Störung Overlay */
.nav-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(74, 122, 74, 0.3) 25%, 
            transparent 50%, 
            rgba(74, 122, 74, 0.3) 75%, 
            transparent 100%
        );
    background-size: 200% 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.nav-icon:hover::before {
    opacity: 1;
    animation: staticNoise 0.1s infinite;
}

.nav-icon:hover::after {
    opacity: 1;
    animation: glitchSweep 0.6s ease-in-out infinite;
}

.nav-icon:hover {
    color: var(--accent2);
    border-color: var(--accent1);
    box-shadow: 0 0 30px var(--glow);
    animation: glitchShake 0.3s infinite;
}

/* Symbol und Label über dem Effekt */
.nav-icon-symbol,
.nav-icon-label {
    position: relative;
    z-index: 2;
}

.nav-icon-symbol {
    font-size: 24px;
    filter: drop-shadow(0 0 10px var(--glow));
}

.nav-icon-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Glitch Animationen */
@keyframes staticNoise {
    0%, 100% { 
        background-position: 0 0; 
        opacity: 0.8;
    }
    25% { 
        background-position: 1px 1px; 
        opacity: 0.9;
    }
    50% { 
        background-position: -1px 0; 
        opacity: 0.7;
    }
    75% { 
        background-position: 0 -1px; 
        opacity: 1;
    }
}

@keyframes glitchSweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glitchShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1px, 1px); }
    20% { transform: translate(1px, -1px); }
    30% { transform: translate(-1px, -1px); }
    40% { transform: translate(1px, 1px); }
    50% { transform: translate(0, 0); }
}

/* Symbol und Label über dem Effekt */
.nav-icon-symbol,
.nav-icon-label {
    position: relative;
    z-index: 2;
}

.nav-icon-symbol {
    font-size: 24px;
    filter: drop-shadow(0 0 10px var(--glow));
}

.nav-icon-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Symbol und Label über dem Effekt */
.nav-icon-symbol,
.nav-icon-label {
    position: relative;
    z-index: 2;
}

.nav-icon-symbol {
    font-size: 24px;
    filter: drop-shadow(0 0 10px var(--glow));
}

.nav-icon-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
        filter: hue-rotate(360deg);
    }
}



/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1650px) {
    body {
        overflow-x: auto;
    }
    
    .backgroundbox {
        margin: 20px;
    }
}

@media (max-width: 1400px) {
    .info-section {
        grid-template-columns: 1fr;
    }
}

.account-switcher-wrapper {
    position: relative;
    display: inline-block;
}

.account-switcher-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* Rechts ausrichten */
    transform: translateX(50%); /* Zentriert unter dem Icon */
    background-color: #1e1e1e;
    min-width: 150px; /* Kleinere Breite */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border-radius: 4px;
    padding: 4px 0; /* Weniger Padding oben und unten */
}

.account-switcher-wrapper:hover .account-switcher-dropdown,
.account-switcher-dropdown:hover {
    display: block;
}

/* Stil für die Dropdown-Einträge mit weniger Abstand */
.account-switcher-dropdown a {
    color: #e0e0e0;
    padding: 4px 10px; /* Weniger Padding */
    text-decoration: none;
    display: block;
    font-size: 13px; /* Kleinere Schrift */
    transition: background-color 0.2s;
    line-height: 1.2; /* Engerer Zeilenabstand */
}

.account-switcher-dropdown a:hover {
    background-color: #2a2a2a;
}