/* ==========================================================================
   1. CORE BASE & FONT (AAA-Client Setup)
   ========================================================================== */
* {
    font-family: "M PLUS Rounded 1c", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #080A0F; /* Ultra-deep Space Black */
    margin: 0;
    color: #DEE0E9;
    overflow-x: hidden;
}

/* ==========================================================================
   2. TYPOGRAFIE (Dramatischer Hyper-Glow)
   ========================================================================== */
.headline {
    text-align: center;
    font-size: 82px;
    font-weight: 900;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #E0D5FF 0%, #A880FF 40%, #5F2EEA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 0px 40px rgba(129, 77, 252, 0.45));
    margin: 60px 0 10px 0;
    animation: pulseGlow 4s ease-in-out infinite;
}

.subheadline {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.8px;
    color: #8F95A3;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

/* ==========================================================================
   3. SIDEBAR (Premium Glassmorphism)
   ========================================================================== */
.side-header {
    position: fixed;
    top: 20px; left: 20px; bottom: 20px;
    width: 250px;
    background: rgba(13, 16, 23, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
}

.logo {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 8px #814DFC);
}

.logo-text {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #FFF, #A880FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-header a:not(.btn-login) {
    display: flex;
    align-items: center;
    color: #8F95A3;
    border-radius: 10px;
    padding: 14px 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: flyInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.side-header a i {
    width: 24px;
    font-size: 16px;
    transition: transform 0.2s ease;
}

/* Gestaffelte Animationen */
.side-header a:nth-child(1) { animation-delay: 0.05s; }
.side-header a:nth-child(2) { animation-delay: 0.10s; }
.side-header a:nth-child(3) { animation-delay: 0.15s; }
.side-header a:nth-child(4) { animation-delay: 0.20s; }
.side-header a:nth-child(5) { animation-delay: 0.25s; }

.side-header a:not(.btn-login):hover {
    color: #FFF;
    background: rgba(129, 77, 252, 0.15);
    transform: translateX(5px);
}

.side-header a:not(.btn-login):hover i {
    transform: scale(1.15);
}

.side-header a.active {
    color: #FFF;
    background: linear-gradient(90deg, rgba(129, 77, 252, 0.3) 0%, rgba(129, 77, 252, 0.05) 100%);
    border-left: 3px solid #814DFC;
    padding-left: 15px; /* Ausgleich für Border */
}

/* ==========================================================================
   4. LAYOUT SYSTEM & CONTAINER
   ========================================================================== */
.content {
    margin-left: 290px;
    padding: 40px 50px 40px 30px;
    max-width: 1300px;
}

/* ==========================================================================
   5. GLAS-BOXEN & INTELLIGENTE HOVER-STATES
   ========================================================================== */
.info-box, .hero-box {
    background: rgba(17, 22, 31, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
    animation: flyInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.info-box:hover {
    transform: translateY(-6px) scale(1.005);
    border-top-color: rgba(168, 128, 255, 0.3);
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.5), 
                0px 0px 25px rgba(129, 77, 252, 0.15);
}

.info-box h3 {
    margin: 15px 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #FFF;
}

.info-box p {
    color: #A1A7B3;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.box-icon-glow {
    width: 45px;
    height: 45px;
    background: rgba(129, 77, 252, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A880FF;
    font-size: 20px;
    border: 1px solid rgba(129, 77, 252, 0.3);
    box-shadow: 0 0 15px rgba(129, 77, 252, 0.2);
}

/* ==========================================================================
   6. HERO SPECIAL: DOUBLE-GEAR INTEGRATION (Interaktives CSS-Zahnrad)
   ========================================================================== */
.hero-box {
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(95, 46, 234, 0.1) 0%, transparent 50%), rgba(17, 22, 31, 0.7);
    border: 1px solid rgba(129, 77, 252, 0.4);
    box-shadow: 0px 0px 30px rgba(129, 77, 252, 0.15);
    padding: 40px;
    margin-bottom: 30px;
}

.hero-mechanics {
    margin-right: 40px;
    flex-shrink: 0;
}

.gear-matrix {
    position: relative;
    width: 140px;
    height: 120px;
}

.gear {
    background: #814DFC;
    border-radius: 50%;
    position: absolute;
}

.gear::before {
    content: "";
    position: absolute;
    background: #0D1017;
    border-radius: 50%;
}

/* Main Gear */
.gear-main {
    width: 80px; height: 80px;
    top: 10px; left: 10px;
    animation: spinClockwise 8s linear infinite;
    border: 16px dashed #814DFC;
}
.gear-main::before {
    top: 8px; left: 8px; right: 8px; bottom: 8px;
}

/* Interlocking Second Gear */
.gear-second {
    width: 54px; height: 54px;
    top: 55px; left: 76px;
    animation: spinCounterClockwise 5.4s linear infinite;
    border: 12px dashed #A880FF;
    background: #A880FF;
}
.gear-second::before {
    top: 5px; left: 5px; right: 5px; bottom: 5px;
}

/* Hero Content Formats */
.hero-text { flex-grow: 1; }

.status-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #A880FF;
    background: rgba(129, 77, 252, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
    border: 1px solid rgba(129, 77, 252, 0.2);
}

.pulse-dot {
    width: 6px; height: 6px;
    background: #A880FF;
    border-radius: 50%;
    box-shadow: 0 0 10px #A880FF;
    animation: blink 1.5s ease-in-out infinite;
}

.hero-text .about {
    font-size: 46px;
    font-weight: 900;
    margin: 0 0 12px 0;
    color: #FFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-text .desc {
    font-size: 15px;
    color: #B8BBC7;
    line-height: 1.6;
    margin: 0;
    max-width: 750px;
}

/* ==========================================================================
   7. INTERFACE BUTTONS & BADGES
   ========================================================================== */
.btn-card-list {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-card-list .info-box {
    flex: 1 1 350px;
    margin-top: 0;
}

.info-box:nth-child(1) { animation-delay: 0.3s; }
.info-box:nth-child(2) { animation-delay: 0.4s; }

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: #00E676;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(180deg, #6236FF 0%, #5F2EEA 100%);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 15px rgba(98, 54, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 54, 255, 0.5);
    filter: brightness(1.1);
}

/* Admin Login Button */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #FFF;
    border-radius: 10px;
    background: linear-gradient(135deg, #251849 0%, #130B2B 100%);
    border: 1px solid rgba(129, 77, 252, 0.3);
    padding: 14px;
    margin-top: auto;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #382572 0%, #1C1042 100%);
    box-shadow: 0 0 20px rgba(129, 77, 252, 0.35);
    border-color: rgba(168, 128, 255, 0.5);
}

.hero-img-link {
    width: 230px;
}
/* ==========================================================================
   8. COMPACT MAIN FOOTER (Absolut Ausgesperrt gegen Browser-Riot)
   ========================================================================== */
.main-footer {
    margin-top: 60px;
    background: rgba(13, 16, 23, 0.4);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.02);
    
    will-change: transform, opacity;
    animation: flyInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.5s;
}

.footer-section { flex: 1; }

.main-footer h4 {
    color: #FFF;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.footer-links, .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Safe Override aller Link-Zustände */
.main-footer a, 
.main-footer a:visited, 
.main-footer a:link,
.main-footer a:active {
    color: #8F95A3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-footer a i {
    font-size: 9px;
    margin-right: 8px;
    color: #814DFC;
}

.main-footer a:hover {
    color: #A880FF;
    transform: translateX(2px);
}

.footer-text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-text-center p {
    margin: 4px 0;
    font-size: 13px;
    color: #6C7280;
    line-height: 1.5;
}

.footer-legal {
    text-align: right;
    align-items: flex-end;
}

/* ==========================================================================
   9. HIGH-END KEYFRAMES & RESPONSIVE CONSTRAINTS
   ========================================================================== */
@keyframes flyInLeft {
    0% { transform: translateX(-30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes flyInUp {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spinCounterClockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0px 0px 40px rgba(129, 77, 252, 0.4)); }
    50% { filter: drop-shadow(0px 0px 60px rgba(168, 128, 255, 0.65)); }
}

@media (max-width: 992px) {
    .side-header { position: absolute; width: calc(100% - 40px); bottom: auto; height: auto; }
    .content { margin-left: 20px; padding-top: 140px; }
    .main-footer { flex-direction: column; text-align: center; align-items: center; }
    .footer-legal { text-align: center; align-items: center; }
}