/* ==========================================================================
   KONTAKT.CSS - Seitenspezifische Styles für "Kontakt"
   Ergänzung zu main.css - keine Überschneidungen
   ========================================================================== */

/* ==========================================================================
   ALERT MESSAGES
   ========================================================================== */

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ==========================================================================
   CONTACT METHODS SECTION
   ========================================================================== */

.contact-methods {
    padding: 80px 0;
    background: white;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-option {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64748b, #94a3b8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-option:hover::before {
    transform: scaleX(1);
}

.contact-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.contact-option.featured {
    border-color: #0B7BBC;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.contact-option.featured::before {
    background: linear-gradient(90deg, #0B7BBC, #3b82f6);
    transform: scaleX(1);
}

.contact-option.featured:hover {
    border-color: #1d4ed8;
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-option h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.contact-option p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.option-details {
    background: rgba(248, 250, 252, 0.8);
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

.option-details strong {
    color: #1e293b;
    display: block;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   CONTACT FORM SECTION
   ========================================================================== */

.contact-form-section {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.item-icon {
    font-size: 1.5rem;
    background: #f1f5f9;
    padding: 0.75rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.item-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.item-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
}

.item-content p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.emergency-contact {
    background: linear-gradient(135deg, #fef2f2 0%, #fdf2f8 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
    margin-top: 2rem;
}

.emergency-contact h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1rem;
}

.emergency-contact p {
    color: #7f1d1d;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.emergency-contact strong {
    color: #991b1b;
    font-size: 1.1rem;
}

.emergency-contact small {
    color: #a87c7c;
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

/* ==========================================================================
   FORM CONTAINER & STYLING
   ========================================================================== */

.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.form-container > p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0B7BBC;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   CHECKBOX STYLING - VOLLSTÄNDIG KORRIGIERT
   ========================================================================== */

.checkbox-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    padding: 8px 0;
}

/* Native Checkbox verstecken */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Custom Checkbox */
.checkmark {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label:hover .checkmark {
    border-color: #0B7BBC;
    background: #f8fafc;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: #0B7BBC;
    border-color: #0B7BBC;
}

/* Checkmark Icon */
.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 2px;
    left: 6px;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

/* Focus-Zustand für Barrierefreiheit */
.checkbox-label input[type="checkbox"]:focus ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(11, 123, 188, 0.2);
    border-color: #0B7BBC;
}

/* Text-Styling */
.checkbox-label span:last-child {
    flex: 1;
}

.checkbox-label a {
    color: #0B7BBC;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   SUBMIT BUTTON STYLING
   ========================================================================== */

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 56px;
}

.btn-loading {
    display: none;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.contact-faq {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
    user-select: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #667EEA;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E4EAF9;
    border-radius: 50%;
    border: none;
    opacity: 0.9;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: #667EEA;
    background: #E4EAF9;
    opacity: 1;
}

.faq-answer {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
    opacity: 1;
}

.faq-answer p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   FORM VALIDATION STYLES
   ========================================================================== */

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN - CONTACT SPECIFIC
   ========================================================================== */

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .contact-methods,
    .contact-form-section,
    .contact-faq {
        padding: 60px 0;
    }
    
    .contact-option {
        padding: 2rem;
    }
    
    .option-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-option h3 {
        font-size: 1.25rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .form-container h2 {
        font-size: 1.75rem;
    }
    
    .contact-info h2 {
        font-size: 1.75rem;
    }
    
    .emergency-contact {
        padding: 1.5rem;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }
    
    .checkmark::after {
        width: 4px;
        height: 8px;
        top: 1px;
        left: 5px;
    }
}

@media (max-width: 480px) {
    .contact-option {
        padding: 1.5rem;
    }
    
    .option-details {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    .item-icon {
        align-self: center;
    }
    
    .faq-question {
        padding: 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 0.75rem;
    }
    
    .emergency-contact {
        padding: 1.25rem;
    }
}