/**
 * Generate Zertifikat Screen CSS
 * Styling für den "Generiere Zertifikat" Screen
 */

/* Body Premium Background */
body {
    background: 
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.03), transparent 40%),
        radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.03), transparent 40%),
        linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
}

/* Container - Premium */
.generate-zertifikat-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    min-height: 80vh;
}

/* Form Section - Premium Luxury */
.form-section {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 254, 247, 0.98) 100%),
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.08), transparent 50%),
        radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.08), transparent 50%);
    backdrop-filter: blur(10px);
    padding: 60px 70px;
    border-radius: 24px;
    margin-bottom: 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 1px rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.form-headline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.form-info-text {
    font-size: 17px;
    line-height: 1.7;
    color: #2c2c2c;
    margin-bottom: 40px;
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Form Styling */
.zertifikat-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 500;
    color: #000000;
    background: #FFFFFF;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-input::placeholder {
    color: #9e9e9e;
    font-weight: 400;
}

.form-input:hover {
    border-color: #D4AF37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.form-input:focus {
    outline: none;
    border-color: #D4AF37;
    background: #FFFEF7;
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.submit-button {
    width: 100%;
    margin-top: 20px;
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Messages - Enhanced Readability */
.error-message {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 6px solid #f44336;
    color: #b71c1c;
    padding: 20px 24px;
    margin-bottom: 30px;
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

.error-message a {
    color: #b71c1c;
    text-decoration: underline;
    font-weight: 700;
    text-decoration-thickness: 2px;
}

.success-message {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 6px solid #4caf50;
    color: #1b5e20;
    padding: 20px 24px;
    margin-bottom: 30px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Success Section */
.success-section {
    margin-top: 40px;
}

.certificate-info {
    text-align: center;
    margin-bottom: 40px;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 254, 247, 0.98) 100%),
        radial-gradient(circle at center, rgba(255, 215, 0, 0.05), transparent 60%);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.certificate-info p {
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 500;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.print-button,
.pdf-button {
    min-width: 280px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ff9f3d 0%, #f39324 100%);
    color: #FFFFFF;
    box-shadow: 
        0 4px 16px rgba(243, 147, 36, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: gentle-pulse 2.5s ease-in-out infinite;
}

/* Gentle Pulse Animation */
@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 4px 16px rgba(243, 147, 36, 0.25),
            0 2px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 
            0 6px 20px rgba(243, 147, 36, 0.35),
            0 3px 12px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

.print-button:hover,
.pdf-button:hover {
    animation-play-state: paused;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(243, 147, 36, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Certificate Wrapper - Premium */
.certificate-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEF7 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Print Styles */
@media print {
    /* Hide everything except certificate */
    .no-print {
        display: none !important;
    }
    
    /* Hide Header and Navigation */
    .layout-header,
    header,
    .widget-navigation,
    .widget-logo,
    .hamburger-menu-button,
    #main-header,
    #header-content-wrapper,
    #header-logo-container,
    #mobile-navigation,
    #navigation-menu-list {
        display: none !important;
    }
    
    /* Hide Footer */
    footer,
    .layout-footer,
    .widget-footer {
        display: none !important;
    }
    
    /* Hide Main Layout Wrapper */
    .layout-main,
    .layout-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body {
        margin: 0;
        padding: 0;
        background: white !important;
    }
    
    .generate-zertifikat-container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .certificate-wrapper {
        margin: 0;
        padding: 0;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .success-section {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #certificate-container,
    .certificate-container {
        width: 210mm;
        height: 297mm;
        page-break-after: avoid;
        margin: 0 auto;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-section {
        padding: 24px;
    }
    
    .form-headline {
        font-size: 24px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .print-button,
    .back-button {
        width: 100%;
    }
}

