/* =====================================================
   MODERNE MODAL-DIALOG STYLES FÜR GANZTAGSPLANER 2.0
   Glassmorphismus & moderne Effekte
   ===================================================== */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content Container */
.modal-content {
    position: relative;
    background: #ffffff;
    margin: 2% auto;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    min-height: 400px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    padding: 2rem 2.5rem 1.75rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Specific Modal Headers - Matching Pricing Card Colors */
/* Order Modal (Vollversion) - Blau */
#orderModal .modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

/* Upgrade Modal - Rosa/Pink */
#upgradeModal .modal-header {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}

/* Yearly Modal (1-Jahres-Lizenz) - Orange */
#yearlyModal .modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* Download Modal (Testversion) - Blau */
#downloadModal .modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(35deg);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
    position: relative;
    z-index: 1;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Modal Body */
.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    background: #f8fafc;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    scroll-behavior: smooth;
}

.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8, #cbd5e1);
    border-radius: 30px;
    border: none;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.25rem;
    font-size: 2rem;
    font-weight: 300;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Form Styling */
.order-form,
.download-form {
    margin-top: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: 18px;
    background: #f8fafc;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Order Info Box */
.order-info,
.download-highlight {
    background: white;
    border: none;
    border-radius: 40px;
    padding: 1.5rem;
    margin: 0 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.order-price {
    text-align: center;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
    display: block;
}

.price-detail {
    font-size: 0.875rem;
    color: #64748b;
}

/* Privacy Checkbox */
.form-privacy {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.privacy-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 0.125rem;
    accent-color: #3b82f6;
}

.privacy-text {
    font-size: 0.875rem;
    color: #1e40af;
}

.privacy-text a {
    color: #2563eb;
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.form-actions .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Secondary Button */
.form-actions .btn-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-actions .btn-secondary:hover {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Primary Button */
.form-actions .btn-primary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.form-actions .btn-primary:hover {
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

/* Ripple Effect */
.form-actions .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.form-actions .btn-primary::after {
    background: rgba(59, 130, 246, 0.1);
}

.form-actions .btn-secondary::after {
    background: rgba(100, 116, 139, 0.1);
}

.form-actions .btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Icon in Buttons */
.form-actions .btn i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Special Styles for Trial Button */
.btn-trial {
    background: white !important;
    color: #3b82f6 !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1) !important;
}

.btn-trial:hover {
    background: #f0f9ff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15) !important;
}

.btn-trial::after {
    background: rgba(16, 185, 129, 0.1) !important;
}

/* Download Features List */
.download-features {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.download-features h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #1e293b;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.feature-item i {
    color: #10b981;
    font-size: 1rem;
}

/* Upgrade Modal Specific */
.upgrade-info {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.savings-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 600;
    margin-top: 0.5rem;
}

.license-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.license-help i {
    color: #3b82f6;
}

/* Yearly Modal Specific */
.yearly-info {
    background: #fffbeb;
    border: 1px solid #f59e0b;
}

.yearly-highlight {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.yearly-highlight i {
    color: #d97706;
    margin-right: 0.5rem;
}

.yearly-highlight p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
} 