/**
 * Developer Signature Styles
 * Erstellt von Steffen Striekert
 */

/* Developer Signature Basis-Styles */
.developer-signature {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    width: 100%;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
    font-weight: normal;
    text-align: center;
    cursor: pointer;
    user-select: none;
    z-index: 5;
    opacity: 0.8;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 2px 4px;
    margin: 2px 0;
    outline: none;
    pointer-events: auto !important;
}

.developer-signature:hover {
    /* Keine Hover-Effekte mehr */
}

.developer-signature:focus-visible {
    /* Minimaler Fokus-Indikator ohne Hintergrundfarbe */
    outline: 1px solid rgba(255, 255, 255, 0.3);
    outline-offset: 1px;
}

.developer-signature:active {
    /* Keine Active-Effekte mehr */
}

/* Dark Mode Anpassungen */
@media (prefers-color-scheme: dark) {
    .developer-signature:hover {
        /* Keine Hover-Effekte im Dark Mode */
    }
    
    .developer-signature:focus-visible {
        /* Minimaler Fokus-Indikator im Dark Mode */
        outline: 1px solid rgba(255, 255, 255, 0.4);
        outline-offset: 1px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .developer-signature {
        transition: none;
    }
    
    .developer-signature:hover {
        /* Keine Hover-Effekte bei reduzierter Bewegung */
    }
    
    .developer-signature:active {
        /* Keine Active-Effekte bei reduzierter Bewegung */
    }
}

/* Modal Styles */
.developer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.developer-modal.modal-open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 16px;
}

.developer-modal.modal-open .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 20px 28px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 30%, #60a5fa 70%, #93c5fd 100%);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-close:focus-visible {
    background-color: rgba(255, 255, 255, 0.3);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.modal-body {
    padding: 28px 28px 24px 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
    z-index: 1;
}

.modal-body p {
    margin: 0 0 16px 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e293b;
    font-weight: 600;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.2px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.paypal-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.paypal-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    text-align: center;
}

.paypal-main {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.paypal-sub {
    font-size: 0.7rem;
    font-weight: 400;
    font-style: italic;
    opacity: 0.85;
    line-height: 1.2;
}

.email-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.email-hint {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    font-style: italic;
    text-align: center;
    font-weight: 600;
    padding: 6px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.1px;
}

.contact-links a:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-links a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    background-color: #f3f4f6;
    border-color: #3b82f6;
}

.contact-links a:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-links .icon {
    font-size: 1.3rem;
    min-width: 24px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.paypal-link {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    color: white;
    border-color: #dc2626;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.paypal-link:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
    border-color: #b91c1c;
    color: white;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.paypal-link:focus-visible {
    background: linear-gradient(135deg, #005ea6 0%, #123d8a 100%);
    border-color: #3b82f6;
    color: white;
}

.email-link {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    border-color: #1e40af;
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.email-link:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    border-color: #1e3a8a;
    color: white;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.email-link:focus-visible {
    background: linear-gradient(135deg, #0d9488 0%, #047857 100%);
    border-color: #3b82f6;
    color: white;
}

/* Dark Mode Modal Anpassungen */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: #111827;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 8px 32px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .modal-body {
        background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    }
    
    .modal-body p {
        color: #f3f4f6;
    }
    
    .contact-links a {
        background-color: #1f2937;
        border-color: #374151;
        color: #f9fafb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .contact-links a:hover {
        background-color: #374151;
        border-color: #4b5563;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .contact-links a:focus-visible {
        background-color: #374151;
        border-color: #3b82f6;
    }
    
    .email-hint {
        color: #d1d5db;
    }
    
    .paypal-link {
        box-shadow: 0 4px 12px rgba(0, 112, 186, 0.4);
    }
    
    .paypal-link:hover {
        box-shadow: 0 8px 25px rgba(0, 112, 186, 0.5);
    }
    
    .email-link {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    
    .email-link:hover {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    }
}

/* Reduced Motion Support für Modal */
@media (prefers-reduced-motion: reduce) {
    .developer-modal,
    .modal-content,
    .contact-links a {
        transition: none;
    }
    
    .contact-links a:hover {
        transform: none;
    }
    
    .contact-links a:active {
        transform: none;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 16px;
        max-width: 420px;
    }
    
    .modal-header {
        padding: 16px 20px 12px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 16px 20px 16px 20px;
    }
    
    .contact-links {
        gap: 12px;
    }
    
    .contact-links a {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .paypal-main {
        font-size: 0.95rem;
    }
    
    .paypal-sub {
        font-size: 0.65rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .developer-signature:hover {
        /* Keine Hover-Effekte im High Contrast Mode */
    }
    
    .modal-content {
        border: 2px solid #000000;
    }
    
    .contact-links a {
        border-width: 3px;
    }
}
