/* Mobile Contact Page Optimization CSS */

/* Contact Form Section */
.contact-form-section {
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 1.5rem 1rem;
    }
    
    .contact-form-section .container {
        max-width: 100%;
        padding: 0;
    }
    
    .contact-form-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .contact-form-section p {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Contact Form Grid */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Contact Info Cards */
.contact-info {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

/* Schnell-Kontakt Cards - Mobile Optimization */
@media (max-width: 768px) {
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .gallery-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .gallery-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .gallery-card p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Icon container mobile optimization */
    .gallery-card > div:first-child {
        margin-bottom: 1rem !important;
    }
    
    .gallery-card img {
        width: 48px !important;
        height: 48px !important;
    }
}

/* Extra small screens optimization */
@media (max-width: 480px) {
    .gallery-card {
        padding: 1rem !important;
    }
    
    .gallery-card h3 {
        font-size: 1.1rem !important;
    }
    
    .gallery-card p {
        font-size: 0.85rem !important;
    }
    
    .gallery-card img {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Button optimization for small screens */
    .gallery-card span {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 768px) {
    .contact-info {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .contact-info .contact-item {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .contact-info .contact-item i {
        font-size: 1.25rem;
        margin-right: 1rem;
        color: var(--bordeaux);
        min-width: 24px;
    }
    
    .contact-info .contact-item span {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Contact Form Styling */
.contact-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .form-row.two-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* Team Section */
.team-section {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

@media (max-width: 768px) {
    .team-section {
        padding: 2rem 1rem;
    }
    
    .team-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .team-section p {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Team Member Cards */
.team-member {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .team-member {
        padding: 1rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        margin: 0 auto 1rem;
        object-fit: cover;
    }
    
    .team-member h4 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        color: var(--bordeaux);
    }
    
    .team-member .position {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 1rem;
        font-style: italic;
    }
    
    .team-member p {
        font-size: 0.85rem;
        line-height: 1.5;
        color: #555;
    }
}

/* FAQ Section */
.faq-section {
    padding: 3rem 1rem;
    background: white;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 1rem;
    }
    
    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .faq-section p {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: white;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    min-height: 60px;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question.active {
    background-color: var(--bordeaux);
    color: white;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
        min-height: 56px;
    }
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8f9fa;
}

.faq-answer.active {
    max-height: 500px;
    padding: 1.25rem;
}

@media (max-width: 768px) {
    .faq-answer.active {
        padding: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }
}

/* Opening Hours Section */
.opening-hours {
    background: linear-gradient(135deg, var(--bordeaux) 0%, var(--rosa) 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .opening-hours {
        padding: 1rem;
        text-align: center;
    }
    
    .opening-hours h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .opening-hours .hours-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .opening-hours .hours-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        font-size: 0.9rem;
    }
    
    .opening-hours .hours-item:last-child {
        border-bottom: none;
    }
    
    .opening-hours .day {
        font-weight: 600;
    }
    
    .opening-hours .time {
        opacity: 0.9;
    }
}

/* Map Section */
.map-section {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .map-section {
        margin-top: 1.5rem;
        border-radius: 8px;
    }
    
    .map-section iframe {
        width: 100%;
        height: 250px;
        border: none;
    }
}

/* Call-to-Action in Contact */
.contact-cta {
    background: linear-gradient(135deg, var(--bordeaux) 0%, var(--rosa) 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .contact-cta {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
    }
    
    .contact-cta h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-cta p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        opacity: 0.9;
    }
    
    .contact-cta .btn {
        display: inline-block;
        background: white;
        color: var(--bordeaux);
        padding: 0.75rem 2rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        min-height: 48px;
        line-height: 1.5;
    }
    
    .contact-cta .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .team-member,
    .faq-icon,
    .faq-answer,
    .contact-cta .btn {
        transition: none;
    }
}

/* Focus states for better accessibility */
.faq-question:focus {
    outline: 2px solid var(--bordeaux);
    outline-offset: 2px;
}

.contact-cta .btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}