* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0c;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Hintergrund-Wallpaper */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/bilder/Gaminbude_wallpaper2.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.15;
    z-index: -1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.005), rgba(255,255,255,0.005) 1px, transparent 1px, transparent 3px);
    pointer-events: none;
    z-index: 9999;
}

.portal-container {
    width: 100%;
    max-width: 1400px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.portal-headline {
    text-align: center;
    margin-bottom: 10px;
}

.portal-headline p {
    color: #a1a1aa;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 5px 0 0 0;
}

/* --- LOGO SLIDER & HOVER EFFEKT --- */
.logo-slider {
    position: relative;
    width: 800px; 
    margin: 0 auto -20px;
    aspect-ratio: 2 / 1; 
}

.logo-slider img {
    display: block; 
    width: 100%;    
    height: auto;   
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease-in-out; /* Schnellerer Übergang für den Hover */
}

.logo-main {
    opacity: 1;
    animation: fadeLogo1 22s infinite;
}

.logo-flash {
    opacity: 0;
    animation: fadeLogo2 22s infinite;
}

/* Hover-Logik: Animation pausieren und direkt umschalten */
.logo-slider:hover .logo-main {
    animation: none;
    opacity: 0;
}

.logo-slider:hover .logo-flash {
    animation: none;
    opacity: 1;
}

@keyframes fadeLogo1 {
    0%, 90% { opacity: 1; }      /* 20 Sek sichtbar */
    92%, 100% { opacity: 0; }    /* 2 Sek aus */
}

@keyframes fadeLogo2 {
    0%, 90% { opacity: 0; }      /* 20 Sek unsichtbar */
    92%, 100% { opacity: 1; }    /* 2 Sek sichtbar */
}
/* ---------------------------------- */

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    width: 100%;
}

@media (max-width: 980px) {
    .hub-grid { grid-template-columns: 1fr; }
}

.hub-card {
    background: linear-gradient(145deg, #141417, #0e0e11);
    border: 1px solid #27272a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-header-slide {
    position: relative;
    width: 100%;
    height: 240px;
    background: #000;
    overflow: hidden;
    border-bottom: 3px solid #2e2e38;
}

.slideshow-portal {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slide.active { opacity: 1; }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(10,10,12,0.85));
    z-index: 3;
}

.card-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.card-logo img {
    max-width: 280px; 
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.8));
}

.card-body {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cs-card { border-left: 5px solid #e5a040; } 
.dayz-card { border-left: 5px solid #22c55e; } 

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.9);
}
.cs-card:hover { border-color: #e5a040; }
.dayz-card:hover { border-color: #22c55e; }

.portal-btn {
    display: block;
    padding: 14px;
    background: linear-gradient(to bottom, #27272a, #0f0f11);
    border: 1px solid #3f3f46;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 15px;
}
.cs-card .portal-btn:hover {
    border-color: #e5a040;
    box-shadow: 0 0 15px rgba(229, 160, 64, 0.3);
}
.dayz-card .portal-btn:hover {
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.counter-box {
    max-width: 240px;
    margin: 20px auto 0 auto;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}
.counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 30px;
    background: rgba(20, 20, 25, 0.5);
    border: 1px solid #27272a;
    margin-bottom: 4px;
    border-radius: 4px;
    width: 240px;
}
.counter-row.total {
    border-left: 3px solid #a1a1aa;
    background: rgba(30, 30, 35, 0.8);
}
.counter-label {
    text-transform: uppercase;
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 600;
}
.counter-value {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

footer {
    margin-top: 40px;
    text-align: center;
    color: #44444f;
    font-size: 14px;
    letter-spacing: 1px;
    width: 100%;
}

.secret-link-trigger {
    color: inherit;
    text-decoration: none;
    cursor: default;
    user-select: none;
}
.secret-link-trigger:hover,
.secret-link-trigger:focus,
.secret-link-trigger:active,
.secret-link-trigger:visited {
    color: inherit;
    text-decoration: none;
    background: none;
    outline: none;
    box-shadow: none;
}

.expandable-stats-container {
    display: none;
    width: 100%;
    max-width: 1000px;
    margin: 30px auto 10px auto;
    background: linear-gradient(180deg, #111114, #0a0a0c);
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    text-align: left;
    overflow: hidden;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #27272a;
    padding-bottom: 15px;
}
.analytics-header h2 {
    margin: 0;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}
.analytics-header p {
    margin: 5px 0 0 0;
    color: #71717a;
    font-size: 14px;
}

.filter-container select {
    background: #18181b !important;
    border: 1px solid #3f3f46 !important;
    color: #ffffff !important;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.filter-container select:hover {
    border-color: #52525b !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid #27272a;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}
.stat-card.highlight {
    border-top: 3px solid #ffffff;
    background: rgba(30, 30, 35, 0.8);
}
.stat-label {
    text-transform: uppercase;
    color: #71717a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.stat-value {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.chart-wrapper {
    position: relative;
    width: 100%;
}

.btn-back-tactical {
    display: none; 
    position: absolute;
    top: -45px;
    right: 0;
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    z-index: 10;
}
.btn-back-tactical:hover {
    background: #3f3f46;
}

.chart-container {
    width: 100%;
    height: 380px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #27272a;
}

@media (max-width: 768px) {
    .analytics-header { flex-direction: column; align-items: flex-start; }
    .filter-container { width: 100%; }
    .filter-container select { width: 100%; margin-bottom: 10px; }
    .chart-container { height: 280px; }
}

.social-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #3f3f46, transparent);
    width: 100%;
    max-width: 300px;
    margin: 25px auto 15px auto;
}
.social-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.social-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
    border-color: #27272a;
}
.social-links a img {
    height: 14px;
    width: 14px;
    object-fit: contain;
    display: block;
}
.keys {
	color: #0A0A0C;
	font-size: 2px;
}