/**
 * Tornado Preispakete - Frontend Styles
 */

.tornado-preispakete-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Tabs */
.tornado-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}

.tornado-tab {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f3f4f6;
    color: #6b7280;
}

.tornado-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.tornado-tab.active {
    background: #3b82f6;
    color: #ffffff;
}

.tornado-tab-content {
    display: none;
}

.tornado-tab-content.active {
    display: grid;
}

/* Pakete Grid */
.tornado-pakete-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .tornado-pakete-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .tornado-pakete-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Paket Card */
.tornado-paket-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.tornado-paket-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.tornado-paket-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tornado-paket-card.is-bestseller {
    border-color: #3b82f6;
    border-width: 3px;
}

/* Bestseller Badge */
.bestseller-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #fbbf24;
    color: #1f2937;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Paket Header */
.paket-header {
    text-align: center;
    margin-bottom: 24px;
}

.paket-icon-wrapper {
    margin-bottom: 16px;
}

.paket-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #eff6ff;
    border-radius: 12px;
}

.paket-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #3b82f6;
}

.paket-icon .custom-icon {
    font-size: 32px;
    line-height: 1;
}

.paket-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.paket-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.paket-preis {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.preis-betrag {
    font-size: 48px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.preis-waehrung {
    font-size: 20px;
    font-weight: 600;
    color: #6b7280;
}

.paket-hinweis {
    font-size: 11px;
    color: #6b7280;
    margin: 12px 0 0 0;
    padding: 8px 12px;
    background: #f9fafb;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
    line-height: 1.5;
    text-align: left;
}

/* Paket Leistungen */
.paket-leistungen {
    flex: 1;
}

.paket-leistungen ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paket-leistungen li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
}

.paket-leistungen .checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.paket-leistungen .leistung-text {
    flex: 1;
}

/* Extras Section */
.tornado-extras-section {
    margin-bottom: 40px;
}

.extras-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.tornado-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    .tornado-extras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .tornado-extras-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Card */
.tornado-extra-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    padding-top: 28px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.extra-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    line-height: 1.2;
}

.tornado-extra-card:hover {
    border-color: #3b82f6;
    background: #f9fafb;
}

.tornado-extra-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.tornado-extra-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tornado-extra-card.disabled .extra-badge {
    background: #9ca3af;
}

.extra-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.extra-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 10px;
    flex-shrink: 0;
}

.extra-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.extra-icon .emoji-icon {
    font-size: 28px;
    line-height: 1;
}

.extra-info {
    flex: 1;
}

.extra-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.extra-preis {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin: 0;
}

/* Extra Checkbox */
.extra-checkbox {
    position: relative;
}

.extra-toggle {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.extra-toggle:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.extra-toggle:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.extra-toggle:hover {
    border-color: #3b82f6;
}

/* Preis Footer */
.tornado-preis-footer {
    background: #1f2937;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .tornado-preis-footer {
        flex-direction: column;
        text-align: center;
    }
}

.preis-info {
    flex: 1;
}

.preis-label {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preis-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .preis-display {
        justify-content: center;
    }
}

.preis-betrag-gross {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.preis-waehrung-gross {
    font-size: 28px;
    font-weight: 600;
    color: #9ca3af;
}

.preis-mwst {
    font-size: 13px;
    color: #9ca3af;
    margin: 4px 0 12px 0;
    font-style: italic;
}

.paket-name {
    font-size: 16px;
    color: #d1d5db;
    margin: 0;
}

/* CTA Button */
.cta-button-wrapper {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tornado-cta-button {
    background: #3b82f6;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tornado-cta-button svg {
    flex-shrink: 0;
}

.tornado-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tornado-cta-button:active {
    transform: translateY(0);
}

.tornado-cta-button:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
}

/* WhatsApp Button */
.tornado-whatsapp-button {
    background: #25d366;
}

.tornado-whatsapp-button:hover {
    background: #20ba5a;
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
}

/* E-Mail Button */
.tornado-email-button {
    background: #3b82f6;
}

.tornado-email-button:hover {
    background: #2563eb;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

/* Deaktivierte Buttons */
.tornado-cta-button.disabled,
.tornado-cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.tornado-cta-button.disabled:hover,
.tornado-cta-button:disabled:hover {
    box-shadow: none;
}

/* Modal */
.tornado-modal {
    display: none;
    position: fixed;
    z-index: 9999999 !important;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85) !important;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Body wenn Modal offen ist */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Überschreibe alle möglichen Z-Index Konflikte */
#tornado-modal.tornado-modal {
    z-index: 2147483647 !important;
}

#tornado-modal .tornado-modal-content {
    z-index: 2147483647 !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tornado-modal-content {
    background-color: #ffffff !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: calc(100% - 40px);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    z-index: 10000000 !important;
    isolation: isolate;
    contain: content;
    -webkit-overflow-scrolling: touch;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tornado-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    z-index: 10;
}

.tornado-modal-close:hover {
    color: #1f2937;
}

.tornado-modal-content h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.modal-paket-info {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    margin-bottom: 24px;
}

.form-notice svg {
    flex-shrink: 0;
    color: #3b82f6;
    margin-top: 2px;
}

.form-notice span {
    font-size: 14px;
    color: #1e40af;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.tornado-submit-button {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tornado-submit-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.tornado-submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.tornado-cancel-button {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tornado-cancel-button:hover {
    background: #e5e7eb;
    color: #374151;
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Responsive Anpassungen */
@media (max-width: 767px) {
    .tornado-preispakete-wrapper {
        padding: 24px 16px;
    }
    
    .tornado-pakete-grid {
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .tornado-paket-card {
        padding: 24px 20px;
    }
    
    .paket-title {
        font-size: 20px;
    }
    
    .preis-betrag {
        font-size: 40px;
    }
    
    .extras-title {
        font-size: 24px;
    }
    
    .preis-betrag-gross {
        font-size: 48px;
    }
    
    .cta-button-wrapper {
        flex-direction: column;
        width: 100%;
    }
    
    .tornado-cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .tornado-modal-content {
        padding: 24px 20px;
        width: calc(100% - 32px);
        max-height: 95vh;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .tornado-modal-content h2 {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .modal-paket-info {
        font-size: 14px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
}

