/* Modernes, sauberes Design für den Tools-Ordner */
/* Farbvariablen für Hell- und Dunkelmodus */
body {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --theme-btn-bg: #e2e8f0;
    --modal-overlay: rgba(15, 23, 42, 0.6);
    --text-modal: #1e293b;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Wenn die Klasse .dark-theme aktiv ist, überschreiben wir die Farben */
body.dark-theme {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --theme-btn-bg: #334155;
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --text-modal: #f1f5f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
/* ... der restliche CSS-Code von vorhin bleibt genau so, wie er war ... */

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding: 40px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 24px;
    color: var(--text-main);
    font-weight: 600;
}

.admin-btn {
    display: inline-block;
    background-color: #475569;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s;
}

.admin-btn:hover {
    background-color: #334155;
}

/* Dateiliste Styling */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.file-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.file-icon {
    font-size: 28px;
    color: var(--primary-color);
}

.file-name {
    font-weight: 600;
    font-size: 16px;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: var(--text-muted);
}

/* Modal / Infobox Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-title {
    margin-bottom: 15px;
    font-size: 20px;
    padding-right: 20px;
    color: var(--text-main); /* Nutzt die Haupttextfarbe (wird automatisch hell) */
}

.modal-desc {
    color: var(--text-modal);
    margin-bottom: 25px;
    font-size: 15px;
    white-space: pre-line;
}

.download-btn {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.download-btn:hover {
    background-color: var(--primary-hover);
}

/* Admin Form Styling */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.admin-table th, .admin-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: #f1f5f9;
    font-weight: 600;
}

textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.save-btn {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.save-btn:hover {
    background-color: #059669;
}

.alert {
    padding: 12px;
    background-color: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    margin-bottom: 20px;
}
