/**
 * Contact Page Styles
 * Layout und Styling für page-contact.php
 */

/* Hero Section - Modernized 2025 */
.contact-hero {
    background: linear-gradient(135deg, #5CB8E9 0%, #1177A0 100%);
    padding: 6rem 0 8rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Wave Divider am unteren Ende */
.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* Hero Title - H1 */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    animation: fadeInDown 0.6s ease-out;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    color: white; /* Explizit weiß, wie hero-title */
    opacity: 0.95;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy Support (falls alte Klassen noch verwendet werden) */
.contact-hero .entry-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-hero .hero-intro {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Helper Class for wrapping the whole page */
.contact-page-wrapper {
    padding-bottom: 4rem;
}

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

/* Tablet (Portrait & small Landscape) */
@media (min-width: 768px) {
    .contact-grid {
        gap: 2.5rem;
    }

    .contact-hero {
        padding: 6rem 0 8rem;
        /* More breathing room on larger screens */
    }
}

/* Desktop */
@media (min-width: 992px) {
    .contact-grid {
        display: grid;
        grid-template-columns: 380px 1fr;
        /* Fixed sidebar width, flexible form */
        gap: 4rem;
        align-items: start;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .contact-hero {
        padding: 3rem 0 4rem;
        /* Reduced padding for mobile */
        margin-bottom: 2rem;
    }

    .contact-hero .entry-title {
        font-size: 2rem;
        /* Slightly smaller title */
    }

    .info-card {
        padding: 1.5rem;
        /* Compact card padding */
    }

    .contact-grid {
        gap: 1.5rem;
        /* Tighter gap between Info and Form */
    }
}

/* Contact Info Column */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInLeft 0.6s ease-out;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Sticky on Desktop - GESAMTE SPALTE sticky (Info + Map zusammen) */
@media (min-width: 992px) {
    .contact-info-column {
        position: sticky;
        top: 2rem;
        align-self: flex-start; /* Wichtig: Verhindert Stretching */
        max-height: calc(100vh - 4rem); /* Maximale Höhe = Viewport - top offset */
        overflow-y: auto; /* Falls Inhalt zu lang, scrollbar machen */
    }

    /* Smooth Scrollbar für Overflow */
    .contact-info-column::-webkit-scrollbar {
        width: 6px;
    }

    .contact-info-column::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .contact-info-column::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    .contact-info-column::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* Fade-in Animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Heading Styles - H2 statt H3 */
.info-card h2,
.info-card .info-card-title {
    color: var(--wp--preset--color--blue-dark, #1177A0);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.info-card h3 {
    color: var(--wp--preset--color--blue-dark, #1177A0);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card p {
    color: var(--wp--preset--color--text-muted, #666);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item .icon {
    font-size: 1.5rem;
    line-height: 1;
    padding-top: 0.2rem;
}

.info-item .details {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    color: var(--wp--preset--color--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.info-item address,
.info-item a,
.info-item span {
    font-style: normal;
    color: var(--wp--preset--color--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.5;
}

.info-item a:hover {
    color: var(--wp--preset--color--primary-blue);
}

/* Map Container */
.map-container {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #f0f0f0;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
}

/* Form Column */
.form-wrapper {
    animation: fadeInRight 0.8s ease-out;
}

/* Fade-in Animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-wrapper h2,
.form-wrapper .form-title {
    margin-bottom: 2rem;
    color: var(--wp--preset--color--text-dark, #1a1a1a);
    font-size: 1.75rem;
    font-weight: 700;
}

.form-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--wp--preset--color--text-dark, #1a1a1a);
}

/* ==========================================================================
   OPTIMIERUNGEN 28.12.2025
   - Quick Call CTA
   - Phosphor Icons Integration
   - Info-Gruppen Hierarchie
   - Map Actions
   - Response Time Notice
   ========================================================================== */

/* --------------------------------------------------------------------------
   QUICK CONTACT CTA - Prominenter Telefon-Button
   -------------------------------------------------------------------------- */

.quick-contact-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #5CB8E9 0%, #1177A0 100%);
    border-radius: 12px;
    text-align: center;
    animation: fadeInLeft 0.5s ease-out;
}

.quick-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: white !important;
    color: var(--wp--preset--color--primary-blue, #5CB8E9) !important;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-height: 52px; /* Touch-Target */
}

.quick-call-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--wp--preset--color--blue-dark, #1177A0) !important;
}

.quick-call-btn:active {
    transform: translateY(0) scale(0.98);
}

.quick-call-btn i {
    font-size: 1.375rem;
}

.cta-availability {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Mobile: Full Width Button */
@media (max-width: 767px) {
    .quick-call-btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   PHOSPHOR ICONS - Info Item Icons
   -------------------------------------------------------------------------- */

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--wp--preset--color--primary-blue, #5CB8E9);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.info-icon i {
    font-size: 1.25rem;
    color: white;
    line-height: 1;
}

/* Secondary Icons - Weniger prominent */
.info-icon--secondary {
    background: rgba(92, 184, 233, 0.15);
}

.info-icon--secondary i {
    color: var(--wp--preset--color--primary-blue, #5CB8E9);
}

/* Hover Effect für Links */
.info-item:has(a):hover .info-icon {
    transform: scale(1.05);
    background: var(--wp--preset--color--blue-dark, #1177A0);
}

.info-item:has(a):hover .info-icon--secondary {
    background: var(--wp--preset--color--primary-blue, #5CB8E9);
}

.info-item:has(a):hover .info-icon--secondary i {
    color: white;
}

/* --------------------------------------------------------------------------
   INFO DETAILS - Ersetzt .details
   -------------------------------------------------------------------------- */

.info-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.info-details strong {
    color: var(--wp--preset--color--text-dark, #1a1a1a);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.info-details a,
.info-details span,
.info-details address {
    font-style: normal;
    color: var(--wp--preset--color--text-muted, #666);
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.5;
}

.info-details a:hover {
    color: var(--wp--preset--color--primary-blue, #5CB8E9);
}

/* --------------------------------------------------------------------------
   INFO GROUPS - Visuelle Hierarchie
   -------------------------------------------------------------------------- */

.info-group {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.info-group:first-of-type {
    padding-top: 0;
}

.info-group:last-of-type,
.info-group--last {
    border-bottom: none;
    padding-bottom: 0;
}

/* Info Items innerhalb einer Gruppe */
.info-group .info-item {
    margin-bottom: 1rem;
}

.info-group .info-item:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   MAP ACTIONS - Routenplanung & Größere Karte
   -------------------------------------------------------------------------- */

/* Map Container anpassen für Actions */
.map-container {
    height: auto;
    overflow: visible;
}

.map-container iframe {
    border-radius: 8px 8px 0 0;
    min-height: 250px;
}

.map-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.map-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wp--preset--color--primary-blue, #5CB8E9);
    background: rgba(92, 184, 233, 0.1);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.map-action-link:hover {
    background: var(--wp--preset--color--primary-blue, #5CB8E9);
    color: white;
    transform: translateY(-1px);
}

.map-action-link i {
    font-size: 1rem;
}

/* Secondary Map Action (Größere Karte) */
.map-action-link--secondary {
    background: transparent;
    color: var(--wp--preset--color--text-muted, #666);
}

.map-action-link--secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--wp--preset--color--text-dark, #1a1a1a);
}

/* --------------------------------------------------------------------------
   RESPONSE TIME NOTICE - Antwortzeit unter Formular
   -------------------------------------------------------------------------- */

.response-time-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(92, 184, 233, 0.08);
    border-left: 3px solid var(--wp--preset--color--primary-blue, #5CB8E9);
    border-radius: 0 8px 8px 0;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.response-time-notice .notice-icon {
    flex-shrink: 0;
    color: var(--wp--preset--color--primary-blue, #5CB8E9);
    font-size: 1.375rem;
    line-height: 1;
    padding-top: 0.125rem;
}

.response-time-notice p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--wp--preset--color--text-muted, #666);
    line-height: 1.5;
}

.response-time-notice strong {
    color: var(--wp--preset--color--text-dark, #1a1a1a);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   RESPONSIVE OPTIMIERUNGEN
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    /* Quick Call CTA kompakter */
    .quick-contact-cta {
        padding: 1.25rem;
    }

    .quick-call-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Info Icons kleiner */
    .info-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .info-icon i {
        font-size: 1.125rem;
    }

    /* Map Actions stapeln */
    .map-actions {
        flex-direction: column;
    }

    .map-action-link {
        justify-content: center;
        width: 100%;
    }

    /* Response Notice */
    .response-time-notice {
        padding: 0.875rem 1rem;
    }

    .response-time-notice .notice-icon {
        font-size: 1.25rem;
    }

    .response-time-notice p {
        font-size: 0.875rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .quick-contact-cta {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION SUPPORT
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .quick-contact-cta,
    .info-card,
    .form-wrapper,
    .response-time-notice {
        animation: none;
    }

    .quick-call-btn:hover,
    .info-icon:hover,
    .map-action-link:hover {
        transform: none;
    }
}