/**
 * Modern Contact Page Styles
 * Professional, sleek design with animations
 */

/* Reset and Base Styles */
.contact-page {
    overflow-x: hidden;
    background: #ffffff;
}

/* Hero Section */
.contact-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #74b72a 0%, #5a9023 50%, #3d6b1f 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.animated-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: float-up 20s infinite linear;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.95);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Info Cards Section */
.contact-info-section {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent, #f8f9fa);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #74b72a, #5a9023);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(116, 183, 42, 0.15);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #74b72a, #5a9023);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #74b72a, #5a9023);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.info-label {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.info-link {
    display: inline-block;
    color: #74b72a;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.info-link:hover {
    color: #5a9023;
    transform: scale(1.05);
}

.info-text {
    color: #374151;
    line-height: 1.6;
    font-style: normal;
    margin-bottom: 15px;
}

.availability {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(116, 183, 42, 0.1);
    color: #5a9023;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.map-link {
    color: #74b72a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-link:hover {
    color: #5a9023;
    transform: translateX(5px);
}

/* Contact Form Section */
.contact-form-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #74b72a, #5a9023);
    border-radius: 2px;
}

.form-header {
    text-align: center;
    margin-bottom: 60px;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.form-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
}

.modern-contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

/* =====================================================
   Kontaktformular — Eigenes Styling (ersetzt WPForms)
   ===================================================== */

.contact-form {
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Zeilen-Layout (2-spaltig) */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 24px;
    flex: 1;
}

/* Labels */
.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Rotes Pflichtfeld-Sternchen per CSS (kein portal-forms.css auf öffentlicher Seite) */
.contact-form .form-label:has(+ [required])::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

/* Inputs, Select, Textarea */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #f9fafb;
    color: #1f2937;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #74b72a;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(116, 183, 42, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

/* Fehler-State */
.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Select Dropdown-Pfeil */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    cursor: pointer;
    padding-right: 44px;
}

/* Textarea */
.form-textarea {
    min-height: 150px;
    max-height: 300px;
    resize: vertical;
}

/* Feld-Fehlermeldung */
.field-error {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* DSGVO Checkbox */
.gdpr-checkbox {
    margin: 30px 0 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fdf4 0%, #e8f5e2 100%);
    border: 2px solid #74b72a;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(116, 183, 42, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    line-height: 1.6;
    color: #1f2937;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border: 2px solid #74b72a;
    border-radius: 5px;
    margin: 2px 0 0 0;
    padding: 0;
    background: white;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: #5a9023;
    box-shadow: 0 0 0 4px rgba(116, 183, 42, 0.2);
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(116, 183, 42, 0.15);
}

.checkbox-label input[type="checkbox"]:checked {
    background: #74b72a;
    border-color: #74b72a;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '\2713';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-text a {
    color: #74b72a;
    font-weight: 600;
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: #5a9023;
}

/* Submit Button */
.form-submit-wrapper {
    margin-top: 32px;
    text-align: center;
}

.form-submit-btn {
    background: linear-gradient(135deg, #74b72a, #5a9023);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 220px;
    position: relative;
    overflow: hidden;
}

.form-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(116, 183, 42, 0.3);
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading .spinner {
    animation: spin 0.8s linear infinite;
}

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

/* Erfolgsmeldung */
.form-success {
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success .success-icon {
    margin-bottom: 20px;
}

.form-success h3 {
    color: #1f2937;
    font-size: 1.4rem;
    margin: 0 0 10px;
}

.form-success p {
    color: #6b7280;
    font-size: 1.05rem;
    margin: 0;
}

/* Fehlermeldung (global) */
.form-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    color: #dc2626;
    font-size: 0.95rem;
}

.form-error-message p {
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-container {
        padding: 30px 20px;
    }
}

/* FAQ Section */
.faq-section.modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.faq-toggle {
    width: 100%;
    padding: 25px 30px;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-card.active .faq-toggle {
    background: linear-gradient(135deg, rgba(116, 183, 42, 0.05), rgba(90, 144, 35, 0.05));
}

.faq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #74b72a, #5a9023);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.faq-question {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.faq-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #74b72a;
    transition: transform 0.3s ease;
}

.faq-card.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-card.active .faq-content {
    max-height: 500px;
}

.faq-answer {
    padding: 0 30px 25px 90px;
    color: #4b5563;
    line-height: 1.8;
}

/* CTA Section */
.contact-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #74b72a 0%, #5a9023 100%);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #74b72a;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #74b72a;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 60px;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .faq-answer {
        padding: 0 20px 20px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-info-section,
    .contact-form-section,
    .faq-section.modern,
    .contact-cta {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .faq-toggle {
        padding: 20px;
    }
    
    .faq-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}