/* ============================================
   Simple Contact Form - DSGVO Edition v2.1
   Zwei-Spalten-Layout mit Kontaktmöglichkeiten
   ============================================ */

:root {
    --primary-purple: #a855f7;
    --primary-purple-light: #c084fc;
    --primary-purple-dark: #7c3aed;
    --bg-dark: #0f0f1e;
    --bg-card: #1a1a2e;
    --bg-card-light: #252540;
    --text-primary: #ffffff;
    --text-secondary: #a78bfa;
    --text-muted: #9ca3af;
    --border-color: rgba(168, 85, 247, 0.3);
    --error-color: #ef4444;
    --success-color: #22c55e;
}

/* Wrapper */
.simple-contact-wrapper {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Grid Layout */
.simple-contact-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar (Kontaktmöglichkeiten) */
.simple-contact-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-header {
    margin-bottom: 25px;
}

.sidebar-header h3 {
    color: var(--text-primary);
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.sidebar-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}

/* Contact Options */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-light));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s;
}

.contact-option:hover::before {
    left: 100%;
}

.contact-option:hover {
    transform: translateX(5px);
    border-color: var(--primary-purple);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.2);
}

.option-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--primary-purple-light);
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 3px;
}

.option-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.option-arrow {
    color: var(--primary-purple);
    font-size: 20px;
    transition: transform 0.3s;
}

.contact-option:hover .option-arrow {
    transform: translateX(3px);
}

/* Spezielle Farben für Dienste */
.contact-option.whatsapp:hover .option-icon {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.contact-option.discord:hover .option-icon {
    background: rgba(114, 137, 218, 0.2);
    color: #7289da;
}

.contact-option.email:hover .option-icon {
    background: rgba(168, 85, 247, 0.2);
}

.contact-option.form-trigger {
    border: 2px dashed var(--border-color);
    background: rgba(168, 85, 247, 0.05);
}

.contact-option.form-trigger:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--primary-purple);
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: 25px;
    padding: 20px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.sidebar-footer p {
    margin: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.sidebar-footer strong {
    color: var(--text-secondary);
}

/* Contact Form */
.simple-contact-form {
    padding: 48px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-light));
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(168, 85, 247, 0.1) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.simple-contact-form.highlight-pulse {
    border-color: var(--primary-purple);
    box-shadow: 
        0 20px 50px rgba(168, 85, 247, 0.3),
        0 0 0 3px rgba(168, 85, 247, 0.3) inset,
        0 0 30px rgba(168, 85, 247, 0.4);
    animation: pulse-glow 1.5s ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 20px 50px rgba(168, 85, 247, 0.3),
            0 0 0 3px rgba(168, 85, 247, 0.3) inset,
            0 0 30px rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 
            0 20px 60px rgba(168, 85, 247, 0.5),
            0 0 0 3px rgba(168, 85, 247, 0.5) inset,
            0 0 50px rgba(168, 85, 247, 0.6);
    }
}

.simple-contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(168, 85, 247, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.simple-contact-form:hover::before {
    left: 100%;
}

/* Form Header */
.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

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

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.required {
    color: var(--primary-purple-light);
    margin-left: 2px;
}

/* Inputs, Select, Textarea */
input:not([type="checkbox"]), 
select, 
textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

input:not([type="checkbox"])::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

input:not([type="checkbox"]):focus, 
select:focus, 
textarea:focus {
    border-color: var(--primary-purple);
    background: rgba(168, 85, 247, 0.08);
    box-shadow: 
        0 0 0 3px rgba(168, 85, 247, 0.15),
        0 4px 12px rgba(168, 85, 247, 0.2);
    outline: none;
    transform: translateY(-1px);
}

/* Custom Select Styling */
select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="%23a78bfa" viewBox="0 0 16 16"><path d="M8 11L3 6h10z"/></svg>');
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 14px;
    cursor: pointer;
    padding-right: 40px;
}

select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Character Counter */
.char-counter {
    margin-top: 6px;
    text-align: right;
    font-size: 13px;
    color: var(--text-muted);
}

.char-count {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Privacy Checkbox Group */
.privacy-group {
    margin: 28px 0 24px 0;
    padding: 18px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
}

.privacy-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.privacy-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

.privacy-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-checkbox input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.privacy-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.privacy-text a {
    color: var(--primary-purple-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.privacy-text a:hover {
    border-bottom-color: var(--primary-purple-light);
}

.privacy-hint {
    margin: 10px 0 0 32px;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.8;
    line-height: 1.5;
}

/* Submit Button */
.simple-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(168, 85, 247, 0.4),
        0 0 0 0 rgba(168, 85, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.simple-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.simple-submit-btn:hover::before {
    left: 100%;
}

.simple-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(168, 85, 247, 0.5),
        0 0 0 4px rgba(168, 85, 247, 0.2);
}

.simple-submit-btn:active {
    transform: translateY(0);
}

.simple-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    display: flex;
    align-items: center;
}

.btn-icon svg {
    transition: transform 0.3s;
}

.simple-submit-btn:hover .btn-icon svg {
    transform: translateX(3px) rotate(5deg);
}

/* Loading Spinner */
.loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    display: block;
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s;
}

.form-group.has-error .error-message {
    opacity: 1;
    transform: translateY(0);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.05);
}

/* Success/Error Messages */
#form-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-message .success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

#form-message .success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

#form-message .error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

#form-message .error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .simple-contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .simple-contact-sidebar {
        position: static;
        order: 2;
    }
    
    .simple-contact-form {
        order: 1;
    }
    
    .sidebar-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .simple-contact-wrapper {
        margin: 40px auto;
    }
    
    .simple-contact-form {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .contact-option {
        padding: 15px 18px;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .simple-contact-form,
    .contact-option {
        border: 2px solid var(--primary-purple);
    }
    
    input:not([type="checkbox"]):focus,
    select:focus,
    textarea:focus {
        outline: 3px solid var(--primary-purple);
        outline-offset: 2px;
    }
}
