.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-overlay.active { display: flex; }
.modal-window { background-color: var(--bg-dark-base); border: 1px solid var(--border-accent); border-radius: 10px; width: 95%; max-width: 1400px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8); }
.modal-header { background-color: #0c1222; padding: 18px 24px; border-bottom: 1px solid var(--border-accent); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { color: white; font-size: 18px; margin: 0; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: var(--accent-red-bright); }
.modal-body { padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow-y: auto; }
.modal-column h3 { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 8px; }
.modal-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.modal-table th, .modal-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.modal-table th { font-weight: 600; color: var(--text-muted); padding-bottom: 10px; }
.modal-table tbody tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.01); }
.modal-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.03); }
.text-red { color: var(--accent-red-bright); font-weight: 600; }
.code-badge { padding: 3px 8px; border-radius: 4px; font-weight: 700; font-size: 11px; }
.bg-blue { background-color: rgba(37, 99, 235, 0.15); color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.3); }
.bg-red { background-color: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.bg-dark { background-color: rgba(255, 255, 255, 0.1); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.2); }
.custom-textarea { width: 100%; background-color: var(--bg-dark-base); border: 1px solid var(--border-accent); border-radius: 6px; padding: 14px; color: white; font-family: var(--font-stack); font-size: 13px; resize: vertical; transition: border-color 0.2s; }
.custom-textarea:focus { outline: none; border-color: var(--accent-red-bright); }

/* --- NEU: KLEINER SPEICHERN BUTTON OBEN RECHTS --- */
.btn-small-save {
    padding: 6px 15px !important;
    font-size: 12px !important;
    height: 32px !important; /* Passt zur Höhe der Auswähl-Kästchen */
    border-radius: 6px !important;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--main-accent);
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.btn-small-save:hover {
    filter: brightness(1.2);
}