/**
 * Fabre Breton Management Tool - Grundlegende Styles
 * 
 * Diese Datei stellt grundlegende CSS-Styles bereit.
 */

/* Grundlegende FBM-Styles */
.fbm-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    width: 100%;
}

/* Container-Breite korrigieren */
.fbm-container,
.fbm-form-container,
.fbm-modal-content,
.fbm-dashboard-content {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 300px;
}

/* Responsive Container */
@media (min-width: 768px) {
    .fbm-container,
    .fbm-form-container,
    .fbm-modal-content,
    .fbm-dashboard-content {
        max-width: 800px !important;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .fbm-container,
    .fbm-form-container,
    .fbm-modal-content,
    .fbm-dashboard-content {
        max-width: 1000px !important;
    }
}

/* Button-Styles */
.fbm-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.fbm-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.fbm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fbm-btn.loading {
    position: relative;
    color: transparent;
}

.fbm-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: fbm-spin 1s linear infinite;
}

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

/* Accordion-Styles für rechtliche Inhalte */
.fbm-accordion {
    margin: 20px 0;
}

.fbm-accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.fbm-accordion-header {
    background: #f8fafc;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.fbm-accordion-header:hover {
    background: #f1f5f9;
}

.fbm-accordion-header h3 {
    margin: 0;
    font-size: 16px;
    color: #374151;
    font-weight: 600;
}

.fbm-accordion-header i {
    color: #6b7280;
    transition: transform 0.3s ease;
}

.fbm-accordion-content {
    display: none;
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    line-height: 1.6;
}

.fbm-accordion-content p {
    margin-bottom: 15px;
    color: #374151;
}

.fbm-accordion-content ul {
    margin: 10px 0 15px 20px;
    color: #374151;
}

.fbm-accordion-content li {
    margin-bottom: 8px;
}

/* Rechtliche Inhalte */
.fbm-terms-of-service,
.fbm-privacy-policy {
    max-width: 100%;
    padding: 20px;
}

/* Neue rechtliche Inhalte (Modal) */
.fbm-legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.fbm-legal-content h2 {
    color: #2d3748;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.fbm-legal-content h3 {
    color: #4a5568;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
}

.fbm-legal-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f7fafc;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.fbm-legal-section p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.fbm-terms-intro,
.fbm-privacy-intro {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.fbm-terms-footer,
.fbm-privacy-footer {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
}

.fbm-terms-footer p,
.fbm-privacy-footer p {
    margin: 5px 0;
}

/* Rechtliche Links - Button-Styling wiederherstellen */
.fbm-custom-legal-section {
    margin-top: 20px;
    text-align: center;
}

.fbm-custom-legal-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.fbm-custom-legal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 14px;
}

.fbm-custom-legal-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.fbm-custom-legal-link i {
    font-size: 16px;
}

/* Message-Styles */
.fbm-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border-left: 4px solid;
}

.fbm-message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.fbm-message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.fbm-message.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Loading-Styles */
.fbm-loading {
    text-align: center;
    padding: 40px;
}

.fbm-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: fbm-spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Utility-Klassen */
.fbm-text-center { text-align: center; }
.fbm-text-left { text-align: left; }
.fbm-text-right { text-align: right; }

.fbm-mt-1 { margin-top: 0.25rem; }
.fbm-mt-2 { margin-top: 0.5rem; }
.fbm-mt-3 { margin-top: 1rem; }
.fbm-mt-4 { margin-top: 1.5rem; }
.fbm-mt-5 { margin-top: 3rem; }

.fbm-mb-1 { margin-bottom: 0.25rem; }
.fbm-mb-2 { margin-bottom: 0.5rem; }
.fbm-mb-3 { margin-bottom: 1rem; }
.fbm-mb-4 { margin-bottom: 1.5rem; }
.fbm-mb-5 { margin-bottom: 3rem; }

.fbm-p-1 { padding: 0.25rem; }
.fbm-p-2 { padding: 0.5rem; }
.fbm-p-3 { padding: 1rem; }
.fbm-p-4 { padding: 1.5rem; }
.fbm-p-5 { padding: 3rem; }

/* ========================================
   FEHLERSEITE
   ======================================== */
.fbm-error-message {
    text-align: center;
    padding: 40px 20px;
}

.fbm-error-icon {
    font-size: 4em;
    color: #e74c3c;
    margin-bottom: 20px;
}

.fbm-error-message h2 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.fbm-error-message p {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 1.1em;
    line-height: 1.6;
}

.fbm-error-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: left;
}

.fbm-error-details h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.fbm-error-details ul {
    list-style: none;
    padding: 0;
}

.fbm-error-details li {
    color: #7f8c8d;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.fbm-error-details li:before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.fbm-error-actions {
    margin: 30px 0;
}

.fbm-error-actions .fbm-btn {
    margin: 10px;
    min-width: 150px;
}

.fbm-error-help {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
}

.fbm-error-help p {
    margin-bottom: 10px;
}

.fbm-error-help strong {
    color: #2c3e50;
}

/* ========================================
   REGISTRIERUNGSABSCHLUSS
   ======================================== */
.fbm-completion-message {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.fbm-completion-icon {
    font-size: 4em;
    color: #27ae60;
    margin-bottom: 20px;
}

.fbm-completion-message h3 {
    color: #27ae60;
    margin: 20px 0;
    font-size: 1.5em;
}

.fbm-completion-message p {
    color: #7f8c8d;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 15px 0;
}

.fbm-completion-actions {
    text-align: center;
    margin: 30px 0;
}

.fbm-completion-actions .fbm-btn {
    margin: 10px;
    min-width: 150px;
    padding: 12px 30px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.fbm-status-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.fbm-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin: 10px 0;
}

/* Inactive User Actions */
.fbm-inactive-actions {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
}

.fbm-inactive-actions p {
    margin-bottom: 15px;
    color: #fff;
    font-size: 16px;
}

.fbm-inactive-actions .fbm-btn {
    margin: 0 10px;
}

.fbm-status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.fbm-status-inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.fbm-status-suspended {
    background: #fff5ee;
    color: #a0522d;
    border: 1px solid #ffdab9;
}

.fbm-status-admin {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Status-Badges für User-Management */
.status-active {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-suspended {
    background: #ffeaa7;
    color: #a0522d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-rejected {
    background: #f8d7da !important;
    color: #dc3545 !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #dc3545;
}

.fbm-completion-help {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.fbm-btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    transition: all 0.3s ease;
}

.fbm-btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Already Logged In Template */
.fbm-already-logged-in-message {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.fbm-message-icon {
    font-size: 4em;
    color: #28a745;
    margin-bottom: 20px;
}

.fbm-already-logged-in-message h3 {
    color: #28a745;
    margin: 20px 0;
    font-size: 1.5em;
}

.fbm-already-logged-in-message p {
    color: #7f8c8d;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 15px 0;
}

.fbm-admin-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.fbm-admin-info h4 {
    color: #1976d2;
    margin-bottom: 10px;
}

.fbm-already-logged-in-actions {
    text-align: center;
    margin: 30px 0;
}

.fbm-already-logged-in-actions .fbm-btn {
    margin: 10px;
    min-width: 150px;
    padding: 12px 30px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.fbm-user-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.fbm-user-info h4 {
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
}

.fbm-user-details {
    text-align: left;
}

.fbm-user-details p {
    margin: 8px 0;
    color: #6c757d;
}

.fbm-user-details strong {
    color: #495057;
    min-width: 80px;
    display: inline-block;
}

/* Form Steps für Multi-Step Forms */
.fbm-form-step {
    display: none !important;
}

.fbm-form-step.active {
    display: block !important;
}

/* Progress Bar für Multi-Step Forms */
.fbm-progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.fbm-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 10px;
    color: #ccc;
    transition: color 0.3s ease;
}

.fbm-progress-step.active {
    color: #667eea;
    font-weight: bold;
}

.fbm-step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.fbm-progress-step.active .fbm-step-number {
    background: #667eea;
    color: white;
}

.fbm-step-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
