/* Wizard Styles für Bestattungsrechner Plugin */

.bestattungsrechner-wizard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wizard-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wizard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.wizard-header-content {
    position: relative;
}

.wizard-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 300;
}

.wizard-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: background 0.3s ease;
}

.progress-step.active .step-number {
    background: rgba(255,255,255,0.9);
    color: #667eea;
}

.step-name {
    font-size: 12px;
    text-align: center;
}

.wizard-content {
    padding: 40px;
}

.wizard-step h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 300;
}

/* Welcome Step */
.welcome-step {
    text-align: center;
}

.step-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.step-info h3 {
    color: #495057;
    margin-bottom: 15px;
}

.step-info ul {
    list-style: none;
    padding: 0;
}

.step-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 25px;
}

.step-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.step-info li:last-child {
    border-bottom: none;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.2);
}

.option-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.option-content img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.option-content h3,
.option-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
}

.option-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.8;
}

.price-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.option-card:not(.selected) .price-info {
    border-top-color: #e9ecef;
}

.price-internal,
.price-external {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}

.option-card:not(.selected) .price-internal,
.option-card:not(.selected) .price-external {
    background: #f8f9fa;
    color: #495057;
}

/* Pricing Components Styles */
.price-breakdown {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid #007cba;
}

.price-breakdown.internal {
    border-left-color: #0073aa;
    background: rgba(0, 115, 170, 0.05);
}

.price-breakdown.external {
    border-left-color: #00a32a;
    background: rgba(0, 163, 42, 0.05);
}

.price-breakdown small {
    display: block;
    line-height: 1.4;
    color: #666;
    margin: 2px 0;
}

.price-breakdown small:first-child {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.price-info {
    margin-top: 10px;
}

.price-info .price-breakdown {
    margin-top: 5px;
}

/* Option Sections */
.option-section {
    margin-bottom: 40px;
}

.option-section h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 400;
}

/* Form Elements */
.wizard-form .form-row {
    margin-bottom: 20px;
}

.wizard-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.wizard-form input[type="text"],
.wizard-form input[type="email"],
.wizard-form input[type="tel"],
.wizard-form input[type="number"],
.wizard-form select,
.wizard-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.wizard-form input:focus,
.wizard-form select:focus,
.wizard-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.wizard-form input[type="checkbox"] {
    margin-right: 8px;
}

/* Summary Step */
.summary-content {
    display: grid;
    gap: 5px;
}

.selected-items,
.customer-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.selected-items h3,
.customer-info h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.summary-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    color: #495057;
}

.item-value {
    color: #6c757d;
}

.item-price {
    font-weight: bold;
    color: #28a745;
    text-align: right;
}

/* Dual pricing display for summary items */
.item-pricing {
    display: flex;
    flex-direction: row;
    gap: 4px;
    text-align: left;
    font-size: 14px;
    justify-content: flex-start;
}

.item-pricing .price-internal,
.item-pricing .price-external {
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    width:100%;
}

.item-pricing .price-internal {
    color: #0073aa;
    background: rgba(0, 115, 170, 0.1);
}

.item-pricing .price-external {
    color: #00a32a;
    background: rgba(0, 163, 42, 0.1);
}

.total-cost {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.total-cost h3 {
    margin: 0 0 15px 0;
    font-weight: 300;
}

.total-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.total-line.internal {
    background: rgba(0, 115, 170, 0.2);
}

.total-line.external {
    background: rgba(0, 163, 42, 0.2);
}

.total-line.combined {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 8px;
    font-weight: bold;
}

.total-label {
    font-size: 16px;
}

.total-amount {
    font-size: 18px;
    font-weight: 600;
}

.total-amount.main {
    font-size: 24px;
    font-weight: bold;
}

.total-cost small {
    opacity: 0.8;
    font-size: 12px;
}

/* Navigation */
.wizard-navigation,
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.button-secondary {
    background: #6c757d;
    color: white;
}

.button-secondary:hover {
    background: #5a6268;
}

/* Thank You Step */
.thank-you-step {
    text-align: center;
}

.thank-you-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 40px;
    margin: 30px 0;
}

.thank-you-content p {
    font-size: 16px;
    color: #495057;
    margin-bottom: 20px;
}

/* Checkbox-Stil für Zusatzleistungen */
.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.checkbox-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 2px;
    transform: scale(1.2);
}

.checkbox-label input[type="checkbox"]:checked + .leistung-info {
    color: #667eea;
}

.checkbox-label:has(input:checked) {
    border-color: #667eea;
    background: #f8f9ff;
}

.leistung-info {
    flex: 1;
}

.leistung-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.leistung-info p {
    margin: 5px 0 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.leistung-info .price-info {
    margin-top: 8px;
}

.leistung-info .price-external {
    font-weight: bold;
    color: #27ae60;
    font-size: 16px;
}

/* Debug-Boxen */
.debug-box {
    background: #e7f3ff;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
}

.debug-box strong {
    display: block;
    margin-bottom: 5px;
    font-family: inherit;
}

/* Info-Boxen */
.info-box {
    background: #fff3cd;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
}

.info-box p {
    margin: 0;
    color: #856404;
}

.warning-box {
    background: #f8d7da;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

.warning-box p {
    margin: 0;
    color: #721c24;
}

/* New grouped summary styles */
.summary-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.summary-category h2 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 22px;
    font-weight: 500;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.category-item {
    margin-bottom: 5px;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.category-item h2 {
    margin:0;
    margin-top:0px;
    margin-bottom:5px;
    font-weight: bold;
}

.category-item p {
    font-size:16px;
    margin:0
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-item h3 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
}

.component-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.component-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f1f3f4;
    color: #6c757d;
    font-size: 14px;
}

.component-list li:before {
    content: "• ";
    color: #667eea;
    font-weight: bold;
    margin-right: 8px;
}

.component-list li:last-child {
    border-bottom: none;
}

/* Pricing summary section */
.pricing-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 25px;
}

.internal-costs-section {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.internal-costs-section h3 {
    margin: 0 0 15px 0;
    font-weight: 300;
    font-size: 20px;
}

.cost-amount {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.external-costs-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border: 2px solid #e9ecef;
}

.external-costs-section h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 20px;
    font-weight: 500;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.external-components-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.external-component-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 180px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.external-component-item:hover {
    border-color: #00a32a;
    box-shadow: 0 2px 5px rgba(0,163,42,0.15);
}

.component-title {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.component-price {
    font-weight: bold;
    color: #00a32a;
    font-size: 15px;
}

.no-external-costs {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px dashed #ced4da;
}

.summary-note {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bestattungsrechner-wizard {
        padding: 10px;
    }
    
    .wizard-content {
        padding: 20px;
    }
    
    .wizard-progress {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .progress-step {
        flex-direction: row;
        gap: 8px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        margin-bottom: 0;
    }
    
    .step-name {
        font-size: 11px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }      .summary-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .item-price {
        text-align: left;
    }
    
    .total-breakdown {
        gap: 8px;
    }
    
    .total-line {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .total-label {
        font-size: 14px;
    }
    
    .total-amount {
        font-size: 16px;
    }
      .total-amount.main {
        font-size: 20px;
    }
    
    .item-pricing {
        text-align: left;
        gap: 6px;
    }
    
    .item-pricing .price-internal,
    .item-pricing .price-external {
        font-size: 12px;
        padding: 2px 6px;
    }
    
    .wizard-navigation,
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .button {
        width: 100%;
    }
    
    .pricing-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .external-components-flex {
        gap: 10px;
    }
    
    .external-component-item {
        flex-direction: column;
        text-align: center;
        min-width: auto;
        width: 100%;
    }
    
    .cost-amount {
        font-size: 28px;
    }
    
    .summary-category {
        padding: 20px;
    }
    
    .category-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .wizard-header {
        padding: 20px;
    }
    
    .wizard-header h1 {
        font-size: 22px;
    }
    
    .total-amount {
        font-size: 28px;
    }
}
