.download-container {
    min-height: 100vh;
    background: #000000;
    color: #ffffff;
}

.header {
    background: #000000;
    color: #ffffff;
    padding: 40px 30px 30px 30px;
    text-align: center;
}

.header h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.header p {
    font-size: 1.1rem;
    font-weight: bold;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #000000;
    padding: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 15px 30px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.tab-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    background: #f0f0f0;
}

.tab-button.active {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.tab-content {
    display: none;
    padding: 30px;
    min-height: calc(100vh - 300px);
    background: #000000;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- File List --- */
.file-list {
    display: grid;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    /* immer eine Spalte */
}


.file-item {
    display: flex;
    align-items: center;
    padding: 25px;
    background: #000000;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #333333;
    word-break: break-word;
    /* verhindert Überlauf von langen Dateinamen */
}

.file-item:hover {
    transform: translateY(-2px);
    border-color: #555555;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.file-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #000000;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.file-details {
    color: #999999;
    font-size: 0.95rem;
}

.download-btn {
    padding: 15px 30px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    border-radius: 12px;

    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.download-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.loading {
    text-align: center;
    padding: 60px;
    color: #999999;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 3px solid #333333;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999999;
}

.empty-state svg {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    opacity: 0.3;
    color: #ffffff;
}

.empty-state h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-state p {
    font-size: 1.1rem;
}

/* --- Mobile Responsive --- */
@media screen and (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 15px;
    }

    .file-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .file-info {
        text-align: center;
        width: 100%;
    }

    .file-name {
        font-size: 1rem;
    }

    .file-details {
        font-size: 0.85rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 30px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .file-item {
        padding: 15px;
    }

    .file-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .file-name {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .file-details {
        font-size: 0.8rem;
    }

    .download-btn {
        padding: 15px 25px;
        font-size: 0.9rem;
    }

    .header h1 {
        font-size: 3.5rem;
    }


}