@charset "UTF-8";

/* ==============================================
   CSS VARIABLES - VOM THEME ÜBERNOMMEN
   ============================================== */

:root {
    /* Farbvariablen */
    --primary-color: #2271b1;
    --primary-dark: #135e96;
    --primary-light: #e3f2fd;
    --primary-border: #bbdefb;
    --background-color: #fff;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --light-bg: #f8f9fa;
    --light-hover: #e9ecef;
    --success-color: #00a32a;
    --error-color: #d63638;
    --warning-color: #dba617;
    
    /* Effekt-Variablen */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-sm: 4px;
}

/* ==============================================
   DIWIDU USER AREA STYLES - MIT CSS VARIABLEN
   ============================================== */

/* ==============================================
   1. BASIS-STYLES & RESET
   ============================================== */

.diwidu-user-login,
.diwidu-user-register,
.diwidu-user-lost-password,
.diwidu-user-profile,
.diwidu-user-change-password,
.diwidu-user-settings,
.diwidu-user-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* ==============================================
   2. LAYOUT CONTAINER
   ============================================== */

/* Form Container */
.diwidu-user-login,
.diwidu-user-register,
.diwidu-user-lost-password,
.diwidu-user-profile,
.diwidu-user-change-password,
.diwidu-user-settings {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.diwidu-user-login h2,
.diwidu-user-register h2,
.diwidu-user-lost-password h2,
.diwidu-user-profile h2,
.diwidu-user-change-password h2,
.diwidu-user-settings h2 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
}

/* Dashboard Container */
.diwidu-user-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==============================================
   3. DASHBOARD STYLES - RESPONSIVE GRID
   ============================================== */

.dashboard-grid {
    display: grid;
    /* Desktop: 3 Spalten wenn genug Platz */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Größere Screens: 3 Cards nebeneinander */
@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets: 2 Cards nebeneinander */
@media (min-width: 768px) and (max-width: 1199px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 Card pro Reihe (default) */
@media (max-width: 767px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.dashboard-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.card-icon {
    font-size: 2.5em;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
}

.dashboard-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.3em;
    font-weight: 600;
}

.card-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-content p {
    margin: 0.5rem 0;
    color: var(--text-light);
    line-height: 1.5;
}

.card-content strong {
    color: var(--text-color);
}

.card-actions {
    margin-top: auto;
}

.dashboard-actions {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* ==============================================
   4. FORMULAR-STYLES
   ============================================== */

/* Allgemeine Form-Elemente */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group input[type="url"],
.form-group select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    box-sizing: border-box;
    transition: var(--transition);
    background: var(--background-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.form-group input:disabled {
    background-color: var(--light-bg);
    color: var(--text-light);
    cursor: not-allowed;
}

.field-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
    font-style: italic;
}

/* ==============================================
   5. PROFIL-SPEZIFISCHE STYLES
   ============================================== */

/* Profile Sections */
.profile-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.profile-section:first-of-type {
    margin-top: 0;
}

.profile-section:last-of-type {
    margin-bottom: 0;
}

/* Section Header */
.profile-section-header {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-header::before {
    content: "▸";
    color: var(--primary-color);
    font-size: 1.1em;
}

/* Section Farben - Grautöne statt bunt */
.profile-section.personal-data {
    border-top: 3px solid #8c8c8c; /* Mittelgrau */
}

.profile-section.profile-picture {
    border-top: 3px solid #a6a6a6; /* Hellgrau */
}

.profile-section.language {
    border-top: 3px solid #737373; /* Dunkelgrau */
}

/* Profile Fields in Sections */
.profile-section .profile-field {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--border-color);
    transition: var(--transition);
}

.profile-section .profile-field:hover {
    background: var(--light-hover);
    border-left-color: var(--primary-color);
}

.profile-section .profile-field:last-child {
    margin-bottom: 0;
}

.profile-section .profile-field label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
}

.profile-section .profile-field input[type="text"],
.profile-section .profile-field input[type="email"],
.profile-section .profile-field input[type="password"],
.profile-section .profile-field input[type="url"],
.profile-section .profile-field textarea,
.profile-section .profile-field select {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.profile-section .profile-field input:focus,
.profile-section .profile-field textarea:focus,
.profile-section .profile-field select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
    outline: none;
}

.profile-section .field-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
    font-style: normal;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border-color);
}

/* Profilbild Container */
.profile-section.profile-picture .profile-picture-container {
    margin-top: 1rem;
}

/* Sprachauswahl Container */
.profile-section.language .language-selection {
    margin-top: 1rem;
}

/* Actions Section */
.profile-actions-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
}

/* ==============================================
   6. PROFILBILD-STYLES
   ============================================== */

.profile-picture-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.current-picture {
    flex-shrink: 0;
    text-align: center;
}

.profile-picture-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.picture-indicator {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.picture-indicator.has-custom {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.picture-indicator.is-default {
    background: var(--light-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.picture-actions {
    flex: 1;
    min-width: 250px;
}

.file-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--background-color);
    box-sizing: border-box;
    transition: var(--transition);
}

.file-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.field-description.warning {
    color: var(--warning-color);
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid #ffeaa7;
    margin-top: 0.75rem;
}

/* ==============================================
   7. SPRACHAUSWAHL-STYLES
   ============================================== */

.language-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.language-selection {
    margin-top: 1rem;
}

.language-select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    background: var(--background-color);
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: var(--transition);
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.language-select option {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.current-language-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--primary-border);
}

.current-language-info p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Sprachauswahl Status-Messages */
.language-loading {
    color: var(--warning-color);
    font-weight: 600;
    margin-left: 0.5rem;
    animation: pulse 1.5s infinite;
}

.language-success {
    color: var(--success-color);
    font-weight: 600;
    margin-left: 0.5rem;
    background: #d4edda;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid #c3e6cb;
}

.language-error {
    color: var(--error-color);
    font-weight: 600;
    margin-left: 0.5rem;
    background: #f8d7da;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid #f5c6cb;
}

.language-select:disabled {
    background-color: var(--light-bg);
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==============================================
   8. BUTTON-STYLES
   ============================================== */

.dashboard-button,
.save-button,
.submit-button,
.logout-button,
.cancel-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none !important;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    box-sizing: border-box;
}

.dashboard-button:hover,
.save-button:hover,
.submit-button:hover,
.logout-button:hover,
.cancel-button:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* Secondary Button Variante */
.dashboard-button.secondary,
.cancel-button {
    background: var(--light-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    text-decoration: none !important;
}

.dashboard-button.secondary:hover,
.cancel-button:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none !important;
}

/* Spezifische Button-Anpassungen */
.dashboard-button {
    width: 100%;
    margin-top: 0.75rem;
    text-decoration: none !important;
}

.logout-button {
    background: #6c757d;
    padding: 0.75rem 1.5rem;
    text-decoration: none !important;
}

.logout-button:hover {
    background: #545b62;
    text-decoration: none !important;
}

.save-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.submit-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    text-decoration: none !important;
}

/* ==============================================
   9. MESSAGE & STATUS-STYLES
   ============================================== */

.user-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid #c3e6cb;
}

.user-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid #f5c6cb;
}

.user-info {
    background: var(--primary-light);
    color: var(--text-color);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid var(--primary-border);
}

.user-warning {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid #ffeaa7;
}

.user-message {
    background: #d1ecf1;
    color: #0c5460;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #bee5eb;
    text-align: center;
    margin: 1.5rem 0;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* ==============================================
   10. LINK-STYLES
   ============================================== */

.user-links,
.profile-links,
.settings-links {
    margin-top: 1.5rem;
    text-align: center;
}

.user-links a,
.profile-links a,
.settings-links a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: var(--transition);
}

.user-links a:hover,
.profile-links a:hover,
.settings-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.profile-links {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* KOMPLETTE ENTFERNUNG ALLER LINK-UNTERSTREICHUNGEN */
.diwidu-user-login a,
.diwidu-user-register a,
.diwidu-user-lost-password a,
.diwidu-user-profile a,
.diwidu-user-change-password a,
.diwidu-user-settings a,
.diwidu-user-dashboard a,
.user-links a,
.profile-links a,
.settings-links a,
.dashboard-card a,
.card-actions a,
.dashboard-actions a {
    text-decoration: none !important;
}

.diwidu-user-login a:hover,
.diwidu-user-register a:hover,
.diwidu-user-lost-password a:hover,
.diwidu-user-profile a:hover,
.diwidu-user-change-password a:hover,
.diwidu-user-settings a:hover,
.diwidu-user-dashboard a:hover,
.user-links a:hover,
.profile-links a:hover,
.settings-links a:hover,
.dashboard-card a:hover,
.card-actions a:hover,
.dashboard-actions a:hover {
    text-decoration: none !important;
}

/* ==============================================
   11. ANIMATIONS & EFFECTS
   ============================================== */

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

.language-loading {
    animation: pulse 1.5s infinite;
}

/* ==============================================
   12. RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
    /* Layout Container */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1.25rem;
    }
    
    .card-icon {
        font-size: 2em;
    }
    
    .diwidu-user-login,
    .diwidu-user-register,
    .diwidu-user-lost-password,
    .diwidu-user-profile,
    .diwidu-user-change-password,
    .diwidu-user-settings {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Profile Sections */
    .profile-section {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }
    
    .profile-section-header {
        font-size: 1.1em;
    }
    
    .profile-section .profile-field {
        padding: 0.75rem;
    }
    
    .profile-actions-section {
        padding: 1.25rem;
    }
    
    /* Profile Actions */
    .profile-actions,
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cancel-button {
        text-align: center;
        margin-left: 0;
        margin-top: 0;
    }
    
    /* Profilbild Responsive */
    .profile-picture-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-picture-preview {
        width: 120px;
        height: 120px;
    }
    
    /* Sprachauswahl Responsive */
    .language-select {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .diwidu-user-dashboard {
        padding: 1rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .dashboard-button,
    .save-button,
    .submit-button,
    .logout-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .diwidu-user-login,
    .diwidu-user-register,
    .diwidu-user-lost-password,
    .diwidu-user-profile,
    .diwidu-user-change-password,
    .diwidu-user-settings {
        padding: 1.25rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
}

/* ==============================================
   ERWEITERTE LOGIN & REGISTRIERUNG STYLES
   ============================================== */

/* Header Styles */
.login-header,
.register-header,
.password-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-subtitle,
.register-subtitle,
.password-subtitle {
    color: var(--text-light);
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

/* Message Styles */
.user-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.user-message.success {
    background: #f0f9f4;
    border-color: #b8e6b8;
    color: #2d5016;
}

.user-message.error {
    background: #fdf2f2;
    border-color: #feb2b2;
    color: #c53030;
}

.message-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-content p {
    margin: 0;
    font-weight: 500;
}

/* Form Improvements */
.login-form,
.register-form,
.password-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    z-index: 2;
    color: var(--text-light);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background-color);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Form Options */
.form-options {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Submit Button Improvements */
.form-submit {
    margin-top: 2rem;
}

.submit-button.primary {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.button-icon {
    font-size: 1.1rem;
}

/* Footer Styles */
.login-footer,
.register-footer,
.password-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-link.accent {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-link.accent:hover {
    color: var(--primary-dark);
}

.link-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-text {
    text-align: center;
    color: var(--text-light);
    margin: 0;
}

/* Animation Improvements */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diwidu-user-login,
.diwidu-user-register,
.diwidu-user-lost-password {
    animation: slideIn 0.3s ease-out;
}

/* Focus States für bessere Zugänglichkeit */
.form-input:focus,
.submit-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading State */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Verbesserungen */
@media (max-width: 480px) {
    .login-header,
    .register-header,
    .password-header {
        margin-bottom: 1.5rem;
    }
    
    .user-message {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-links {
        gap: 0.5rem;
    }
    
    .submit-button.primary {
        padding: 0.875rem 1.25rem;
    }
}


/* ==============================================
   RAHMEN ENTFERNEN FÜR PROFIL-BEARBEITUNG
   ============================================== */

.diwidu-user-profile {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Optional: Auch die inneren Sections anpassen */
.diwidu-user-profile .profile-section {
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.diwidu-user-profile .profile-section:first-child {
    margin-top: 0;
}

.card-sorter-admin {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.sorter-header {
    margin-bottom: 10px;
}

.sorter-title {
    font-weight: bold;
    color: #495057;
}

.sorter-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 5px;
}

.sorter-handle {
    margin-right: 10px;
    cursor: move;
    color: #6c757d;
}

.sorter-buttons {
    margin-left: auto;
}

.sorter-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 12px;
}

.sorter-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sorter-btn:hover:not(:disabled) {
    background: #005a87;
}