/**
 * Registration Forms Styles
 * Zentrales CSS für Expert-Registration und Partner-Registration
 * Version: 1.0.0
 */

/* ================================================
   CSS VARIABLEN (Fallback)
   ================================================ */
:root {
    --registration-primary: #0066cc;
    --registration-secondary: #28a745;
    --registration-bg: #f8f9fa;
    --registration-card-bg: #ffffff;
    --partner-primary: #3b82f6;
    --partner-secondary: #1e40af;
    --partner-button: #3b82f6;
    --partner-button-hover: #1e40af;
}

/* ================================================
   EXPERT REGISTRATION STYLES
   ================================================ */

.expert-registration-wrapper {
    background: #ffffff;
    padding: 2rem 1rem;
    min-height: auto;
}

.registration-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0;
}

/* Registration Header - Dezent & Schmal */
.registration-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f5f0ff 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.registration-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.registration-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.registration-card {
    background: var(--registration-card-bg, #ffffff);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

/* Messages */
.success-message {
    background: #d1fae5;
    border-left: 4px solid var(--registration-secondary, #28a745);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #065f46;
}

.error-message {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #991b1b;
}

/* Form Sections */
.form-section {
    margin-bottom: 1.25rem;
}

.form-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.form-group label {
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group .help-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Benefits Section */
.benefits-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.benefits-section h3 {
    font-size: 0.95rem;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.benefits-list li {
    padding: 0.4rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.85rem;
}

.benefits-list li::before {
    content: "✓";
    color: var(--registration-secondary, #28a745);
    font-weight: bold;
    font-size: 1rem;
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding-top: 1rem;
}

.btn-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.already-registered {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
}

.already-registered a {
    color: var(--registration-primary, #0066cc);
    text-decoration: none;
    font-weight: 600;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.password-strength.hidden {
    display: none;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.strength-text {
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

.password-match {
    font-size: 0.75rem;
    margin-top: 4px;
}

.password-match.hidden {
    display: none;
}

/* ================================================
   PARTNER REGISTRATION STYLES
   ================================================ */

.partner-registration-wrapper {
    background: linear-gradient(135deg, var(--partner-primary) 0%, var(--partner-secondary) 100%);
    min-height: 100vh;
    padding: 3rem 0;
}

.partner-registration-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 2rem);
}

/* Registration Hero - Dezent & Schmal */
.registration-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 1.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f5f0ff 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.registration-hero h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.registration-hero p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Alerts */
.alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Registration Content Layout */
.registration-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.registration-form-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-card-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.form-card-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.form-card-header p {
    color: #6b7280;
    margin: 0;
}

/* Sidebar Info Cards */
.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.info-card h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-grid.full-width {
    grid-template-columns: 1fr;
}

/* Form Labels and Inputs */
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--partner-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button - Partner */
.partner-registration-wrapper .submit-section {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--partner-button), var(--partner-button-hover));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    background: var(--partner-button-hover);
}

/* ================================================
   CHECKBOXES & DSGVO
   ================================================ */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--registration-primary, #0066cc);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* ================================================
   MULTI-SELECT / TAGS
   ================================================ */
.specialization-tags,
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialization-tag,
.skill-tag {
    display: inline-block;
}

.specialization-tag input,
.skill-tag input {
    display: none;
}

.specialization-tag label,
.skill-tag label {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.specialization-tag input:checked + label,
.skill-tag input:checked + label {
    background: var(--registration-primary, #0066cc);
    border-color: var(--registration-primary, #0066cc);
    color: white;
}

.specialization-tag label:hover,
.skill-tag label:hover {
    border-color: var(--registration-primary, #0066cc);
}

/* ================================================
   RESPONSIVE STYLES
   ================================================ */
@media (max-width: 1200px) {
    .registration-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar-info {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .registration-card {
        padding: 25px;
    }
    
    .form-row,
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-info {
        flex-direction: column;
    }
    
    .registration-hero h1,
    .registration-header h1 {
        font-size: 1.5rem;
    }
    
    .registration-hero,
    .registration-header {
        padding: 1.25rem;
    }
    
    .registration-form-card {
        padding: 1.5rem;
    }
    
    .expert-registration-wrapper {
        padding: 40px 15px;
    }
    
    .partner-registration-wrapper {
        padding: 2rem 0;
    }
}

/* ================================================
   COMPACT REGISTRATION STYLES - NEU
   ================================================ */

/* Registration Page Wrapper */
.registration-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md, 1.5rem);
}

/* Slim Hero - Dezent */
.page-hero-slim {
    text-align: center;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f5f0ff 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.page-hero-slim h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.page-hero-slim p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* Registration Layout (Form + Sidebar) */
.registration-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

/* Form Section */
.registration-form-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Compact Form */
.compact-form .form-fieldset {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafbfc;
}

.compact-form .form-fieldset legend {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    padding: 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Grid Layouts */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.compact-form .form-group {
    margin-bottom: 0;
}

.compact-form .form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.25rem;
}

.compact-form .form-group input,
.compact-form .form-group select,
.compact-form .form-group textarea {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.compact-form .form-group input:focus,
.compact-form .form-group select:focus,
.compact-form .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.compact-form .form-group textarea {
    min-height: 60px;
    resize: vertical;
}

.compact-form .form-group input::placeholder,
.compact-form .form-group textarea::placeholder {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Form Footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
}

.checkbox-label a {
    color: #3b82f6;
}

.btn-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Registration Sidebar */
.registration-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 100px;
}

.info-box {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.info-box h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.info-box ul,
.info-box ol {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #475569;
}

.info-box li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.info-box ul li::marker {
    color: #10b981;
}

.info-box ol li::marker {
    color: #3b82f6;
    font-weight: 600;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 3px solid #22c55e;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

/* Responsive Compact Form */
@media (max-width: 900px) {
    .registration-layout {
        grid-template-columns: 1fr;
    }
    
    .registration-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-box {
        flex: 1 1 200px;
    }
}

@media (max-width: 600px) {
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-submit {
        text-align: center;
    }
    
    .page-hero-slim {
        padding: 1rem;
    }
    
    .page-hero-slim h1 {
        font-size: 1.25rem;
    }
}
