/* Contact Protection System CSS */

.contact-field {
    display: inline-block;
    position: relative;
}

/* Grundlegende Button-Styles */
.contact-field .contact-hidden button {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #93c5fd;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
}

.contact-field .contact-hidden button {
    gap: 0.25rem;
}

/* Footer-spezifische Buttons (auf dunklem Hintergrund) */
footer .contact-field .contact-hidden button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #e5e7eb;
    border-color: #3b82f6;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

footer .contact-field .contact-hidden button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: #60a5fa;
    transform: translateY(-1px);
}

.contact-field .contact-hidden button:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.25);
    border-color: #60a5fa;
}

.contact-field .contact-hidden button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
}

/* REVEALED TEXT STYLES - Mit maximaler Spezifität */
.contact-field .contact-revealed {
    animation: contactReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Standard revealed text (Impressum, Datenschutz) - SCHWARZ */
body .contact-field .contact-revealed strong {
    color: #000000 !important; /* Schwarzer Text für helle Hintergründe */
    font-weight: 600 !important;
}

/* Footer-spezifische revealed Farbe - WEISS */
body footer .contact-field .contact-revealed strong {
    color: #ffffff !important; /* Weißer Text für dunklen Footer */
    font-weight: 600 !important;
}

@keyframes contactReveal {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hidden {
    display: none !important;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .contact-field .contact-hidden button {
        background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
        color: #e5e7eb;
        border-color: #3b82f6;
    }
    
    .contact-field .contact-hidden button:hover {
        background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
        border-color: #60a5fa;
    }
    
    body .contact-field .contact-revealed strong {
        color: #000000 !important; /* Helle Farbe für Dark Theme - maximale Priorität */
    }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .contact-field .contact-hidden button {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .contact-field .contact-hidden button {
        border-width: 2px;
        font-weight: 600;
    }
}