/* ===================================
   Kontakt Page Styles
   Gold colors + envelope particles
   =================================== */

/* ===================================
   Hero Section with Contact Particles
   =================================== */

/* Contact particles container */
#contactParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Hero overlay - subtle golden communication atmosphere */
.hero-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255, 215, 0, 0.06) 0%, transparent 35%),
        linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.04) 50%, transparent 100%);
    animation: subtleGlow 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Bottom glow */
.hero-particles::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.12) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

@keyframes subtleGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===================================
   Contact Methods Grid
   =================================== */

.contact-methods-section {
    padding: 4rem 0;
    background: var(--color-bg-secondary);
}

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

.contact-card {
    background: var(--color-bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--color-accent-gold);
    stroke-width: 2;
}

.contact-card h3 {
    font-family: var(--font-serif);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
}

.contact-link {
    display: inline-block;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-link:hover {
    color: var(--color-accent-gold-light);
    text-decoration: underline;
}

.contact-address {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contact-address strong {
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* ===================================
   Contact Form Section
   =================================== */

.contact-form-section {
    padding: 4rem 0;
    background: var(--color-bg-primary);
}

.contact-form-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Form Container */
.form-container h2 {
    font-family: var(--font-serif);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.form-container > p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: var(--line-height-relaxed);
}

/* Form Messages */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--color-accent-gold);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

/* Checkbox Group */
.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-accent-gold);
}

.checkbox-label a {
    color: var(--color-accent-gold);
    text-decoration: underline;
}

/* Submit Button */
.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-bg-primary);
    background: linear-gradient(135deg,
        var(--color-accent-gold),
        var(--color-accent-gold-light)
    );
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.form-submit svg {
    width: 20px;
    height: 20px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

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

.form-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: -0.5rem;
}

/* ===================================
   Info Boxes (Opening Hours, etc.)
   =================================== */

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

.info-box {
    background: var(--color-bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.info-box h3 {
    font-family: var(--font-serif);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.info-box p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0.75rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box strong {
    color: var(--color-text-primary);
}

/* Opening Hours */
.opening-hours {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-bg-primary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
}

.hours-row.highlight {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.hours-row .day {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}

.hours-row .time {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

.hours-row.highlight .day,
.hours-row.highlight .time {
    color: var(--color-accent-gold);
}

.hours-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Transport List */
.transport-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.transport-list li {
    padding: 0.5rem 0;
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.transport-list li strong {
    color: var(--color-accent-gold);
    min-width: 50px;
    display: inline-block;
}

/* ===================================
   Map Section
   =================================== */

.map-section {
    padding: 4rem 0;
    background: var(--color-bg-secondary);
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
}

/* ===================================
   Phoenix Logo Particles - Emanating from Logo
   =================================== */

.phoenix-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Individual phoenix particle - warm radiating glow */
.phoenix-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    animation: radiateWarmth var(--radiate-duration, 2000ms) ease-out forwards;
    will-change: transform, opacity;
}

/* Phoenix particle appearance - soft glowing orb */
.phoenix-particle::before {
    content: '';
    position: absolute;
    width: var(--particle-size, 8px);
    height: var(--particle-size, 8px);
    background: radial-gradient(
        circle at 35% 35%,
        rgba(255, 235, 200, 0.95) 0%,
        rgba(255, 215, 0, 0.8) 40%,
        rgba(212, 175, 55, 0.5) 70%,
        transparent 100%
    );
    border-radius: 50%;
    box-shadow:
        0 0 calc(var(--particle-size, 8px) * 1.5) rgba(255, 215, 0, 0.6),
        0 0 calc(var(--particle-size, 8px) * 2.5) rgba(212, 175, 55, 0.3);
    filter: blur(0.5px);
}

/* Radiating warmth outward animation */
@keyframes radiateWarmth {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(0.2);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
        transform: translate(-50%, -50%)
                   translate(calc(var(--radiate-x, 50px) * 0.2), calc(var(--radiate-y, 50px) * 0.2))
                   scale(1);
    }
    50% {
        opacity: 0.7;
    }
    75% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%)
                   translate(var(--radiate-x, 50px), var(--radiate-y, 50px))
                   scale(0.6);
        opacity: 0;
    }
}

/* ===================================
   Contact Hero Particles - Warm Glowing Orbs
   =================================== */

/* Glowing orb particles - soft, warm, comforting */
.contact-orb {
    position: absolute;
    pointer-events: none;
    animation: floatOrb var(--float-duration, 10000ms) ease-in-out forwards,
               pulseOrb var(--pulse-speed, 3s) ease-in-out infinite var(--pulse-delay, 0s);
    will-change: transform, opacity;
    z-index: 2;
}

/* Orb appearance - radial gradient glow */
.contact-orb::before {
    content: '';
    position: absolute;
    width: var(--orb-size, 12px);
    height: var(--orb-size, 12px);
    background: radial-gradient(
        circle at 35% 35%,
        var(--color-core, rgba(255, 215, 0, 0.9)) 0%,
        var(--color-mid, rgba(212, 175, 55, 0.6)) 40%,
        var(--color-outer, rgba(255, 193, 7, 0.3)) 70%,
        transparent 100%
    );
    border-radius: 50%;
    box-shadow:
        0 0 calc(var(--orb-size, 12px) * 1.5) var(--color-mid, rgba(212, 175, 55, 0.5)),
        0 0 calc(var(--orb-size, 12px) * 3) var(--color-outer, rgba(255, 193, 7, 0.2));
    filter: blur(0.5px);
}

/* Soft inner glow highlight */
.contact-orb::after {
    content: '';
    position: absolute;
    width: calc(var(--orb-size, 12px) * 0.4);
    height: calc(var(--orb-size, 12px) * 0.4);
    top: calc(var(--orb-size, 12px) * 0.15);
    left: calc(var(--orb-size, 12px) * 0.2);
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(1px);
}

/* Size variants with enhanced glow */
.contact-orb.size-small::before {
    box-shadow:
        0 0 8px var(--color-mid, rgba(212, 175, 55, 0.5)),
        0 0 16px var(--color-outer, rgba(255, 193, 7, 0.2));
}

.contact-orb.size-medium::before {
    box-shadow:
        0 0 15px var(--color-mid, rgba(212, 175, 55, 0.5)),
        0 0 30px var(--color-outer, rgba(255, 193, 7, 0.2));
}

.contact-orb.size-large::before {
    box-shadow:
        0 0 20px var(--color-mid, rgba(212, 175, 55, 0.6)),
        0 0 40px var(--color-outer, rgba(255, 193, 7, 0.25));
}

/* Floating orb animation - gentle upward drift */
@keyframes floatOrb {
    0% {
        transform: translateX(0) translateY(0) scale(0.3);
        opacity: 0;
    }
    10% {
        transform: translateX(var(--drift-1, 20px)) translateY(-50px) scale(0.8);
        opacity: 0.7;
    }
    30% {
        transform: translateX(var(--drift-2, -15px)) translateY(-150px) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateX(var(--drift-1, 20px)) translateY(-250px) scale(1);
        opacity: 0.8;
    }
    70% {
        transform: translateX(var(--drift-3, 25px)) translateY(-350px) scale(0.9);
        opacity: 0.6;
    }
    85% {
        transform: translateX(var(--drift-2, -15px)) translateY(-420px) scale(0.7);
        opacity: 0.3;
    }
    100% {
        transform: translateX(var(--drift-1, 20px)) translateY(-500px) scale(0.5);
        opacity: 0;
    }
}

/* Gentle pulse/breathing animation */
@keyframes pulseOrb {
    0%, 100% {
        filter: blur(0.5px) brightness(1);
    }
    50% {
        filter: blur(0.8px) brightness(1.3);
    }
}

/* ===================================
   FAQ Section Styles
   =================================== */

.faq-section {
    padding: 4rem 0;
    background: var(--color-bg-primary);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .contact-form-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-methods-section,
    .contact-form-section,
    .map-section,
    .faq-section {
        padding: 3rem 0;
    }
}

@media (max-width: 640px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .form-container h2 {
        font-size: var(--font-size-2xl);
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }

    .info-box {
        padding: 1.25rem;
    }

    .map-container iframe {
        height: 350px;
    }

    /* Reduce particles on mobile */
    .contact-orb:nth-child(2n) {
        display: none;
    }
}

/* ===================================
   Light Theme Support
   =================================== */

[data-theme="light"] .contact-methods-section,
[data-theme="light"] .map-section {
    background: #f8f9fa;
}

[data-theme="light"] .contact-card,
[data-theme="light"] .info-box {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #f8f9fa;
    border-color: rgba(212, 175, 55, 0.25);
}

[data-theme="light"] .hours-row {
    background: #f8f9fa;
}

[data-theme="light"] .hours-row.highlight {
    background: rgba(212, 175, 55, 0.08);
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .contact-orb,
    .phoenix-particle,
    .hero-particles::before,
    .hero-particles::after {
        display: none;
    }

    .contact-form-section {
        page-break-inside: avoid;
    }

    .map-container {
        display: none;
    }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .contact-orb,
    .phoenix-particle {
        animation: none;
        opacity: 0.2;
    }

    .hero-particles::before,
    .hero-particles::after {
        animation: none;
    }

    .contact-card:hover {
        transform: none;
    }

    .form-submit:hover {
        transform: none;
    }
}
