/**
 * Shared CSS - Gemeinsame Styles und Animationen
 * Diese Datei konsolidiert wiederverwendbare Styles
 *
 * HINWEIS: Die originalen Keyframes in den einzelnen CSS-Dateien
 * wurden NICHT entfernt, um Feature-Parität zu gewährleisten.
 * Diese Datei dient als zentrale Referenz für zukünftige Entwicklung.
 */

/* ========================================
   GEMEINSAME KEYFRAME ANIMATIONEN
   (konsolidiert aus styles.css, banken.css, etc.)
   ======================================== */

/* fadeIn - verwendet in: styles.css, banken.css, risikoscoring.css */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* slideUp - verwendet in: styles.css */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* slideIn - verwendet in: bestandsuebertragung-vst.css */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* pulse - verwendet in: styles.css, banken.css, bestandsuebertragung-vst.css */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* shimmer - verwendet in: styles.css, banken.css */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* spin - verwendet in: styles.css, banken.css */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* logoPulse - verwendet in: styles.css, banken.css */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ========================================
   GEMEINSAME UTILITY KLASSEN
   ======================================== */

/* Visually Hidden (Screen Reader Only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.loading-spinner--dark {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary, #C8102E);
}

/* Truncate Text */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ========================================
   GEMEINSAME BUTTON STYLES
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md, 8px);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base, 200ms ease);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--primary {
    background: linear-gradient(135deg, var(--brand-gradient-start, #667eea) 0%, var(--brand-gradient-end, #764ba2) 100%);
    color: white;
}

.btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn--secondary {
    background: var(--gray-100, #f1f5f9);
    color: var(--gray-700, #334155);
    border: 1px solid var(--gray-200, #e2e8f0);
}

.btn--secondary:hover:not(:disabled) {
    background: var(--gray-200, #e2e8f0);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary, #475569);
}

.btn--ghost:hover:not(:disabled) {
    background: var(--gray-100, #f1f5f9);
}

/* ========================================
   GEMEINSAME CARD STYLES
   ======================================== */

.card {
    background: var(--surface, #ffffff);
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.card--elevated {
    box-shadow: var(--shadow-md, 0 4px 8px rgba(15, 23, 42, 0.08));
}

.card--interactive {
    cursor: pointer;
    transition: all var(--transition-base, 200ms ease);
}

.card--interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 8px 16px rgba(15, 23, 42, 0.10));
}

/* ========================================
   GEMEINSAME FORM STYLES
   ======================================== */

.input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    background: var(--surface, #ffffff);
    color: var(--text-primary, #0f172a);
    transition: all var(--transition-fast, 150ms ease);
}

.input:focus {
    outline: none;
    border-color: var(--primary, #C8102E);
    box-shadow: 0 0 0 3px var(--primary-subtle, rgba(200, 16, 46, 0.08));
}

.input::placeholder {
    color: var(--text-muted, #94a3b8);
}

/* ========================================
   GEMEINSAME BADGE/TAG STYLES
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full, 9999px);
}

.badge--success {
    background: var(--status-bg-green, rgba(22, 163, 74, 0.08));
    color: var(--status-export-bereit, #16A34A);
}

.badge--warning {
    background: var(--status-bg-yellow, rgba(217, 119, 6, 0.08));
    color: var(--status-wiedervorlage, #D97706);
}

.badge--error {
    background: var(--status-bg-red, rgba(220, 38, 38, 0.08));
    color: var(--status-abgelehnt, #DC2626);
}

.badge--info {
    background: var(--status-bg-blue, rgba(37, 99, 235, 0.08));
    color: var(--status-zu-validieren, #2563EB);
}

/* ========================================
   RESPONSIVE HELPERS
   ======================================== */

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}
