/* ==========================================================================
   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;
}

.ti {
    font-size: 42px;
}
/* ==========================================================================
   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) >> aside.css
   ========================================================================== */


/* ==========================================================================
   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; }
}

.app-card {
    position: relative;

    padding: 24px;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(95, 46, 234, .10),
            transparent 50%
        ),
        rgba(17, 22, 31, .60);

    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 16px;

    backdrop-filter: blur(14px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);

    transition: .4s cubic-bezier(.16, 1, .3, 1);
}

.app-card:hover {
    transform: translateY(-5px);

    border-color: rgba(129, 77, 252, .30);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, .45),
        0 0 25px rgba(129, 77, 252, .10);
}


/* ==========================================================================
   APP HEADER
   ========================================================================== */

.app-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    border-radius: 13px;
    overflow: hidden;

    background: rgba(129, 77, 252, .12);

    border: 1px solid rgba(129, 77, 252, .20);

    box-shadow: 0 0 18px rgba(129, 77, 252, .12);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info h3 {
    margin: 0;

    color: #FFF;

    font-size: 19px;
    font-weight: 800;
}

.app-author {
    display: block;

    margin-top: 4px;

    color: #777D8A;
    font-size: 11px;
}


/* ==========================================================================
   DESCRIPTION
   ========================================================================== */

.app-description {
    margin: 18px 0;

    color: #9A9FAA;

    font-size: 13px;
    line-height: 1.6;
}


/* ==========================================================================
   DOWNLOAD AREA
   ========================================================================== */

.app-download {
    position: relative;

    display: flex;
    flex-direction: column;

    gap: 8px;

    padding-top: 17px;

    border-top: 1px solid rgba(255, 255, 255, .05);
}

.download-label {
    margin-bottom: 2px;

    color: #666C78;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.3px;
}


/* ==========================================================================
   SELECT
   ========================================================================== */

.download-select {
    position: relative;
}

.select-button {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 13px;

    color: #DEE0E9;

    background: rgba(255, 255, 255, .025);

    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;

    cursor: pointer;

    text-align: left;

    transition: .2s ease;
}

.select-button:hover {
    background: rgba(129, 77, 252, .07);

    border-color:
        rgba(129, 77, 252, .35);
}

.select-button > span {
    display: flex;
    flex-direction: column;
}

.select-button small {
    color: #666C78;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .8px;
}

.select-button strong {
    margin-top: 2px;

    color: #FFF;

    font-size: 13px;
}

.select-button > i {
    color: #777D8A;

    font-size: 10px;
}


/* ==========================================================================
   DROPDOWN
   ========================================================================== */

.select-dropdown {
    position: absolute;

    left: 0;
    right: 0;

    top: calc(100% + 7px);

    padding: 6px;

    background: rgba(13, 16, 23, .97);

    border: 1px solid rgba(129, 77, 252, .20);
    border-radius: 11px;

    backdrop-filter: blur(20px);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, .55),
        0 0 20px rgba(129, 77, 252, .08);

    z-index: 100;

    visibility: hidden;

    transform:
        translateY(-5px)
        scale(.98);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}


/* Öffnen */

.download-select:hover .select-dropdown {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* ==========================================================================
   DROPDOWN ITEM
   ========================================================================== */

.select-item {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 10px;

    color: #DEE0E9;

    background: transparent;

    border: 0;
    border-radius: 8px;

    text-align: left;

    cursor: pointer;

    transition: .18s ease;
}

.select-item:hover:not(:disabled) {
    background: rgba(129, 77, 252, .11);
}


/* SELECTED */

.select-item.selected {
    background:
        linear-gradient(
            90deg,
            rgba(129, 77, 252, .15),
            rgba(129, 77, 252, .04)
        );
}

.select-item.selected > i {
    color: #A880FF;
}


/* TEXT */

.select-item strong {
    display: block;

    color: #FFF;

    font-size: 12px;
}

.select-item small {
    display: block;

    margin-top: 2px;

    color: #6F7582;

    font-size: 9px;
}


/* ==========================================================================
   PLATFORMS
   ========================================================================== */

.platform-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-name > i {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #A880FF;

    background: rgba(129, 77, 252, .10);

    border-radius: 7px;

    font-size: 14px;
}


/* ==========================================================================
   DISABLED
   ========================================================================== */

.select-item.disabled,
.select-item:disabled {
    opacity: .32;

    cursor: not-allowed;
}

.select-item.disabled:hover {
    background: transparent;
}

.select-item.disabled .platform-name > i {
    filter: grayscale(1);
}


/* ==========================================================================
   DOWNLOAD BUTTON
   ========================================================================== */

.download-button {
    width: 100%;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 5px;

    color: #FFF;

    background:
        linear-gradient(
            180deg,
            #6236FF 0%,
            #5F2EEA 100%
        );

    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 9px;

    box-shadow:
        0 4px 15px rgba(98, 54, 255, .25);

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: .25s ease;
}

.download-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.1);

    box-shadow:
        0 7px 22px rgba(98, 54, 255, .45);
}