/* ===================================
   📞 CONTACT SECTION & FORMS - GAMING HUD EDITION
   ===================================== */

/* ===== MAIN CONTACT SECTION ===== */
.contact {
    position: relative;
    padding: 2rem 0 8rem 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 45, 146, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(88, 86, 214, 0.03) 0%, transparent 50%),
        var(--bg-primary);
    overflow: hidden;
}

/* ===== CINEMATIC BACKGROUND ===== */
.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.contact-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: contactOrbFloat 30s ease-in-out infinite;
}

.contact-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.2) 0%, transparent 70%);
    top: 10%;
    right: -250px;
    animation-delay: 0s;
}

.contact-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 45, 146, 0.15) 0%, transparent 70%);
    bottom: 20%;
    left: -200px;
    animation-delay: -10s;
}

.contact-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.12) 0%, transparent 70%);
    top: 60%;
    left: 60%;
    animation-delay: -20s;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 122, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    background: rgba(255, 45, 146, 0.6);
}

.particle:nth-child(2) {
    top: 30%;
    left: 80%;
    animation-delay: -2s;
    background: rgba(0, 122, 255, 0.6);
}

.particle:nth-child(3) {
    top: 70%;
    left: 15%;
    animation-delay: -4s;
    background: rgba(88, 86, 214, 0.6);
}

.particle:nth-child(4) {
    top: 50%;
    left: 60%;
    animation-delay: -6s;
    background: rgba(175, 82, 222, 0.6);
}

.particle:nth-child(5) {
    top: 80%;
    left: 85%;
    animation-delay: -8s;
    background: rgba(255, 45, 146, 0.6);
}

@keyframes contactOrbFloat {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    25% { transform: translateY(-40px) translateX(30px) scale(1.1); }
    50% { transform: translateY(-20px) translateX(-40px) scale(0.9); }
    75% { transform: translateY(-30px) translateX(20px) scale(1.05); }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.3; }
    25% { transform: translateY(-50px) translateX(30px); opacity: 0.8; }
    50% { transform: translateY(-30px) translateX(-40px); opacity: 0.5; }
    75% { transform: translateY(-60px) translateX(20px); opacity: 0.7; }
}

/* ===== EPIC HEADER ===== */
.contact-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 2rem;
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(0, 122, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 122, 255, 0.1) 100%
    );
    animation: statusScan 3s ease-in-out infinite;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #00d084;
    border-radius: 50%;
    position: relative;
}

.status-dot.pulse::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #00d084;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.connection-indicator {
    display: flex;
    gap: 3px;
    align-items: flex-end;
}

.signal-bar {
    width: 3px;
    background: #00d084;
    border-radius: 2px;
    animation: signalStrength 1.5s ease-in-out infinite;
}

.signal-bar:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

.signal-bar:nth-child(2) {
    height: 12px;
    animation-delay: 0.2s;
}

.signal-bar:nth-child(3) {
    height: 16px;
    animation-delay: 0.4s;
}

.contact-title {
    margin-bottom: 3rem;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, 
        #007AFF 0%, 
        #5856D6 30%,
        #AF52DE 60%,
        #FF2D92 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #007AFF;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(0, 122, 255, 0.3);
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.9;
}

.contact-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.contact-stat:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 0.9rem;
}

.stat-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== CONTACT CONTENT GRID ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== CONTACT INFO CARDS ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007AFF, #5856D6, #AF52DE);
    border-radius: 3px 3px 0 0;
}

.contact-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 122, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 122, 255, 0.2);
}

.contact-item[data-contact="email"]:hover {
    box-shadow: 0 25px 50px rgba(0, 122, 255, 0.2);
}

.contact-item[data-contact="phone"]:hover {
    box-shadow: 0 25px 50px rgba(255, 45, 146, 0.2);
}

.contact-item[data-contact="web"]:hover {
    box-shadow: 0 25px 50px rgba(88, 86, 214, 0.2);
}

.contact-icon {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border-radius: 1.5rem;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

.contact-item[data-contact="phone"] .contact-icon {
    background: linear-gradient(135deg, #FF2D92, #FF375F);
    box-shadow: 0 10px 30px rgba(255, 45, 146, 0.3);
}

.contact-item[data-contact="web"] .contact-icon {
    background: linear-gradient(135deg, #5856D6, #AF52DE);
    box-shadow: 0 10px 30px rgba(88, 86, 214, 0.3);
}

.icon-pulse {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid currentColor;
    border-radius: 1.8rem;
    opacity: 0.6;
    animation: iconPulseEffect 2s ease-in-out infinite;
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    word-break: break-all;
}

.contact-action {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.contact-item:hover .contact-action {
    opacity: 1;
    transform: translateY(0);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 1rem;
    color: #007AFF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: rgba(0, 122, 255, 0.5);
    transform: translateX(5px);
}

.contact-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, 
        rgba(0, 122, 255, 0.1) 0%, 
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.contact-item:hover .contact-glow {
    opacity: 1;
}

/* ===== PREMIUM CONTACT FORM CONTAINER ===== */
.contact-form-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px);
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 122, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 45, 146, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== FORM HEADER ===== */
.form-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.form-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border-radius: 50%;
    animation: formIconFloat 6s ease-in-out infinite;
    box-shadow: 0 15px 40px rgba(0, 122, 255, 0.4);
}

.form-icon i {
    font-size: 2rem;
    color: white;
    z-index: 2;
}

.form-icon-glow {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: radial-gradient(circle, 
        rgba(0, 122, 255, 0.4) 0%, 
        transparent 70%
    );
    border-radius: 50%;
    animation: iconGlowPulse 3s ease-in-out infinite;
}

.form-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, 
        #007AFF 0%, 
        #5856D6 50%,
        #AF52DE 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #007AFF;
    margin-bottom: 1rem;
}

.form-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    opacity: 0.9;
}

/* ===== FORMULAR STYLES WERDEN AUS forms.css GELADEN ===== */
/* Das Kontaktformular verwendet jetzt ausschließlich die forms.css für die Styling-Regeln */

/* ===== ANIMATIONEN ===== */
@keyframes statusScan {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes signalStrength {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes iconPulseEffect {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes formIconFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

@keyframes iconGlowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes successPop {
    0% { transform: scale(0) rotate(180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes errorPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-stats {
        gap: 1rem;
    }
    
    .contact-stat {
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }
    
    .contact-header {
        margin-bottom: 4rem;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .contact-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-header h3 {
        font-size: 2rem;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
    }
    
    .form-icon i {
        font-size: 1.5rem;
    }
    
    .contact-form-simple {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .textarea-wrapper {
        grid-column: span 1;
    }
    
    .btn-submit {
        grid-column: span 1;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-details p {
        word-break: break-word;
    }
    
    .input-wrapper input,
    .textarea-wrapper textarea {
        padding: 1.3rem 1rem 1.3rem 3rem;
        font-size: 0.95rem;
    }
    
    .field-icon {
        top: 2.8rem;
        left: 1.1rem;
    }
    
    .btn-submit {
        padding: 1.4rem 2rem;
        font-size: 1rem;
    }
    
    .char-counter {
        bottom: -1.5rem;
        font-size: 0.7rem;
    }
} 