/* ============================================
   HENX3D - Calculator Styles
   ============================================ */

/* Progress Steps */
.calc-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.calc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.calc-step.active,
.calc-step.completed {
    opacity: 1;
}

.calc-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    border: 2px solid var(--line);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.calc-step.active .calc-step-number {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-color: transparent;
    color: var(--bg);
    box-shadow: 0 0 20px rgba(103, 232, 249, 0.3);
}

.calc-step.completed .calc-step-number {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.calc-step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
}

.calc-step.active .calc-step-label {
    color: var(--text);
}

.calc-step-connector {
    flex-shrink: 0;
    width: 80px;
    height: 2px;
    background: var(--line);
    margin: 0 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .calc-progress {
        flex-direction: column;
        gap: 1rem;
    }

    .calc-step-connector {
        width: 2px;
        height: 30px;
        margin: 0;
    }

    .calc-step-label {
        display: none;
    }
}

/* Calculator Container */
.calc-container {
    max-width: 900px;
    margin: 0 auto;
}

.calc-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.calc-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-panel-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text);
}

/* Upload Section */
.calc-upload-section {
    margin-bottom: 2rem;
}

.calc-upload-box {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calc-upload-box:hover,
.calc-upload-box.drag-over {
    border-color: var(--glow);
    background: linear-gradient(180deg, rgba(103,232,249,.08), rgba(103,232,249,.02));
}

.calc-upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.calc-upload-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.calc-upload-box p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.calc-file-info {
    background: linear-gradient(180deg, rgba(0,229,255,.08), rgba(0,229,255,.02));
    border: 1px solid var(--glow);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.calc-file-info .calc-upload-icon {
    color: var(--secondary);
    font-size: 2.5rem;
}

.calc-file-info h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.calc-file-info p {
    color: var(--muted);
    margin-bottom: 1rem;
}

/* Divider */
.calc-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.calc-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.calc-divider span {
    position: relative;
    background: var(--bg);
    padding: 0 1rem;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form Sections */
.calc-form-section {
    margin-bottom: 3rem;
}

.calc-form-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.calc-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

/* Material Grid */
.calc-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.calc-material-category {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
}

.calc-material-category:first-child {
    margin-top: 0;
}

.calc-material-category h4 {
    font-size: 1rem;
    color: var(--glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Material Cards */
.calc-material-card {
    display: block;
    position: relative;
    background: var(--card, rgba(255,255,255,0.03));
    border: 2px solid var(--line, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-material-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.calc-material-card:hover {
    border-color: rgba(103,232,249,.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103,232,249,.15);
}

.calc-material-card:has(input[type="radio"]:checked),
.calc-material-card.active {
    border-color: rgba(103,232,249,.25) !important;
    background: linear-gradient(180deg, rgba(103,232,249,.15), rgba(103,232,249,.05)) !important;
    box-shadow: 0 4px 12px rgba(103,232,249,.15) !important;
    transform: translateY(-2px) !important;
}

.calc-material-card:has(input[type="radio"]:checked):hover,
.calc-material-card.active:hover {
    border-color: rgba(103,232,249,.35) !important;
    box-shadow: 0 4px 12px rgba(103,232,249,.25) !important;
    transform: translateY(-3px) !important;
}

.calc-material-card input[type="radio"]:checked ~ .calc-material-content,
.calc-material-card.active .calc-material-content {
    color: var(--accent, #67e8f9);
}

.calc-material-card input[type="radio"]:checked ~ .calc-material-content .calc-material-header h4,
.calc-material-card.active .calc-material-content .calc-material-header h4 {
    color: var(--accent, #67e8f9);
}

.calc-material-content {
    /* Wrapper - gleich wie calc-radio-content */
}

.calc-material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.calc-material-header h4 {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #e2e8f0);
    margin: 0;
}

.calc-material-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--glow);
}

.calc-material-description {
    font-size: 0.875rem;
    color: var(--muted, #94a3b8);
    margin: 0;
}

.calc-material-properties {
    margin-top: 0.75rem;
}

.calc-material-properties small {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Option Cards */
.calc-option-card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(103,232,249,.25);
    box-shadow: 0 4px 12px rgba(103,232,249,.15);
}

.calc-option-card.active {
    border-color: rgba(103,232,249,.25) !important;
    background: linear-gradient(180deg, rgba(103,232,249,.15), rgba(103,232,249,.05)) !important;
    box-shadow: 0 4px 12px rgba(103,232,249,.15) !important;
    transform: translateY(-2px) !important;
}

.calc-option-card.active:hover {
    border-color: rgba(103,232,249,.35) !important;
    box-shadow: 0 4px 12px rgba(103,232,249,.25) !important;
    transform: translateY(-3px) !important;
}

.calc-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.calc-option-header h4 {
    font-size: 1.125rem;
    color: var(--text);
    margin: 0;
}

.calc-option-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--glow);
}

.calc-option-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg);
}

.calc-option-description {
    color: var(--text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.calc-option-detail {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0;
}

.calc-option-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.calc-option-properties span {
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,.05);
    border-radius: 4px;
}

/* Quality Grid */
.calc-quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* Shipping Grid */
.calc-shipping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Post-processing Grid */
.calc-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

/* Price Summary */
.calc-price-summary {
    background: linear-gradient(180deg, rgba(0,229,255,.08), rgba(0,229,255,.02));
    border: 1px solid var(--glow);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 3rem;
}

.calc-price-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.calc-price-breakdown {
    background: rgba(0,0,0,.2);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.calc-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text);
}

.calc-price-row span:first-child {
    color: var(--muted);
}

.calc-price-row span:last-child {
    font-weight: 700;
    font-size: 1rem;
}

.calc-price-positive {
    color: var(--secondary) !important;
}

.calc-price-divider {
    height: 1px;
    background: var(--line);
    margin: 0.5rem 0;
}

.calc-price-subtotal {
    font-size: 1.125rem;
    padding-top: 1rem;
}

.calc-price-total {
    font-size: 1.5rem;
    padding-top: 1rem;
}

.calc-price-total span:last-child {
    color: var(--glow);
    font-size: 2rem;
}

.calc-price-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.calc-price-info p {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.calc-price-info span {
    color: var(--glow);
    font-weight: 600;
}

.calc-price-note {
    font-size: 0.875rem;
    color: var(--muted) !important;
    font-style: italic;
    margin-top: 1rem;
}

/* Actions */
.calc-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .calc-panel-title {
        font-size: 1.5rem;
    }

    .calc-form-grid {
        grid-template-columns: 1fr;
    }

    .calc-materials-grid,
    .calc-quality-grid,
    .calc-shipping-grid,
    .calc-option-grid {
        grid-template-columns: 1fr;
    }

    .calc-actions {
        flex-direction: column;
    }

    .calc-actions .btn {
        width: 100%;
    }

    .calc-price-summary {
        padding: 1.5rem;
    }

    .calc-price-breakdown {
        padding: 1rem;
    }

    .calc-price-total {
        font-size: 1.25rem;
    }

    .calc-price-total span:last-child {
        font-size: 1.5rem;
    }
}

/* ============================================
   Phase 3: Design-Verbesserungen
   ============================================ */

/* Loading States */
.calc-loading {
    position: relative;
    
    opacity: 0.6;
}

.calc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse Animation für wichtige Buttons */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(103, 232, 249, 0);
    }
}

/* Tooltips */
.calc-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.calc-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 39, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    
    transition: opacity 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(103, 232, 249, 0.2);
}

.calc-tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(10, 14, 39, 0.95);
    opacity: 0;
    
    transition: opacity 0.3s ease;
}

.calc-tooltip:hover::before,
.calc-tooltip:hover::after {
    opacity: 1;
}

/* Smooth Value Changes */
.calc-price-animate {
    animation: priceChange 0.3s ease;
}

@keyframes priceChange {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: var(--accent);
    }
}

/* Better Input Focus States */
.calc-input:focus,
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.1);
    transform: translateY(-1px);
}

/* Quality Card Hover (Material Card uses definition above at line 279) */
.calc-quality-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(103, 232, 249, 0.2);
}

.calc-quality-card:hover h3 {
    color: var(--accent);
}

/* Radio & Material Card Active State Animation */
.calc-radio-card input:checked ~ .calc-radio-content,
.calc-material-card input:checked ~ .calc-material-content {
    animation: selectBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes selectBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Success/Error States */
.calc-input.success {
    border-color: var(--color-success, #10b981);
}

.calc-input.error {
    border-color: var(--color-error, #ef4444);
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Better Checkbox Styling */
.calc-checkbox-card input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

/* Divider Improvements */
.calc-divider {
    position: relative;
    text-align: center;
    margin: 3rem 0;
}

.calc-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.calc-divider span {
    position: relative;
    background: var(--bg);
    padding: 0 1.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* File Info Success State */
.calc-file-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.calc-file-info .calc-upload-icon {
    color: var(--color-success, #10b981);
    font-size: 3rem;
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progress Bar für Uploads */
.calc-upload-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.calc-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.3s ease;
    position: relative;
}

.calc-upload-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Reset Button Styling */
.btn-reset {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--color-error, #ef4444);
}

/* Save/Load Config Buttons */
.calc-config-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-config {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-config:hover {
    background: rgba(103, 232, 249, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* Summary Improvements */
.calc-summary {
    position: static;
    top: auto;
}

.calc-summary-row {
    transition: all 0.3s ease;
}

.calc-summary-row:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 1.5rem;
}

/* Mobile Improvements */
@media (max-width: 768px) {
    .calc-tooltip::before {
        bottom: auto;
        top: 125%;
        white-space: normal;
        max-width: 200px;
    }

    .calc-tooltip::after {
        bottom: auto;
        top: 115%;
        border-top-color: transparent;
        border-bottom-color: rgba(10, 14, 39, 0.95);
    }

    .btn-reset {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    .calc-summary {
        position: static;
    }
}

/* ============================================
   Delivery Time Integration Styles
   Hinzugefügt: 2025-01-31
   ============================================ */

/* Delivery Time Section */
.delivery-time-section {
    margin-top: 2rem;
    animation: slideInUp 0.4s ease;
    position: static !important;
    z-index: auto !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delivery Time Card */
.delivery-time-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(103, 232, 249, 0.05));
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative !important;
    overflow: hidden;
    z-index: 1 !important;
}

.delivery-time-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.1) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.delivery-time-card h3 {
    color: var(--glow);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.delivery-time-text {
    font-size: 1.125rem;
    color: var(--text);
    margin: 1rem 0;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.delivery-time-text strong {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-top: 0.5rem;
}

.delivery-details {
    color: var(--muted);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.75rem;
}

.delivery-disclaimer {
    color: var(--color-text-subtle, #64748b);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 1.25rem;
    display: block;
    position: relative;
    z-index: 1;
}

/* Delivery Icon */
.delivery-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block;
    animation: deliveryBounce 2s ease-in-out infinite;
}

@keyframes deliveryBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Loading State */
.delivery-time-text .loading {
    color: var(--muted);
    font-style: italic;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.delivery-time-text .loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(103, 232, 249, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Warning State */
.delivery-warning {
    color: var(--color-warning, #fbbf24);
    font-weight: 600;
}

.delivery-time-card.warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    border-color: rgba(251, 191, 36, 0.3);
}

/* Error State */
.delivery-error {
    color: var(--color-error-light, #fca5a5);
    font-weight: 600;
}

.delivery-time-card.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.3);
}

/* Capacity Indicator (Optional) */
.capacity-indicator {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.capacity-label {
    font-size: 0.875rem;
    color: var(--muted);
    display: block;
    margin-bottom: 0.75rem;
    text-align: left;
}

.capacity-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 999px;
    transition: width 0.6s ease;
    position: relative;
}

.capacity-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.capacity-fill.high {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.capacity-fill.medium {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.capacity-fill.low {
    background: linear-gradient(90deg, #10b981, #059669);
}

.capacity-text {
    font-size: 0.875rem;
    color: var(--text);
    margin-top: 0.5rem;
    display: block;
    text-align: right;
    font-weight: 600;
}

/* Machine Info Badge */
.machine-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 1rem;
}

.machine-info-badge .icon {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .delivery-time-section {
        margin-top: 1.5rem;
    }

    .delivery-time-card {
        padding: 1.5rem;
    }

    .delivery-time-card h3 {
        font-size: 1.125rem;
    }

    .delivery-time-text {
        font-size: 1rem;
    }

    .delivery-time-text strong {
        font-size: 1.125rem;
    }

    .delivery-icon {
        font-size: 1.5rem;
    }

    .capacity-indicator {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* Dark Mode Optimization */
@media (prefers-color-scheme: dark) {
    .delivery-time-card {
        background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(103, 232, 249, 0.03));
    }

    .delivery-disclaimer {
        color: var(--color-text-muted, #475569);
    }
}

/* Print Styles */
@media print {
    .delivery-time-section {
        page-break-inside: avoid;
    }

    .delivery-time-card::before {
        display: none;
    }
}
/* ============================================
   HENX3D - Calculator Design Fixes
   Behebt Design-Probleme mit Hero und Layout
   ============================================ */

/* Hero Section Fix - Stellt sicher dass Hero richtig dargestellt wird */
.hero {
    position: relative;
    background: transparent;
    color: var(--text, #e2e8f0);
    padding: 3rem 0 2rem 0 !important;
    overflow: hidden;
    min-height: 200px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(103, 232, 249, 0.03) 0%,
        rgba(84, 200, 240, 0.02) 50%,
        transparent 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    color: var(--text, #e2e8f0) !important;
    margin-bottom: 1rem !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    background: linear-gradient(90deg, var(--text, #e2e8f0), #bfe0ff, #b3d8ff, var(--text, #e2e8f0));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem) !important;
    color: var(--muted, #94a3b8) !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* Section Fix */
.section {
    padding: 2rem 0 3rem 0;
}

/* Container Fix */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Calculator Container */
.calc-container {
    background: var(--card, rgba(255,255,255,0.03));
    border: 1px solid var(--line, rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

/* Panel Title Fix */
.calc-panel-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--text, #e2e8f0) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.3 !important;
}

/* Form Group Fix */
.calc-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text, #e2e8f0);
    margin-bottom: 0.5rem;
}

.calc-form-group small {
    display: block;
    font-size: 0.75rem;
    color: var(--muted, #94a3b8);
    margin-top: 0.25rem;
}

/* Input Fix */
.calc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg, rgba(255,255,255,0.05));
    border: 1px solid var(--line, rgba(255,255,255,0.1));
    border-radius: 8px;
    color: var(--text, #e2e8f0);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.calc-input:focus {
    outline: none;
    border-color: var(--accent, #67e8f9);
    background: var(--input-bg-focus, rgba(255,255,255,0.08));
    box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.1);
}

/* Select/Dropdown Fix - Kein weißer Hintergrund! */
select.calc-input,
.calc-input select,
select {
    background: var(--input-bg, rgba(255,255,255,0.05)) !important;
    color: var(--text, #e2e8f0) !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367e8f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1.25rem !important;
    padding-right: 2.5rem !important;
}

select.calc-input:hover,
.calc-input select:hover,
select:hover {
    border-color: var(--accent, #67e8f9);
    background: var(--input-bg-focus, rgba(255,255,255,0.08)) !important;
}

select.calc-input:focus,
.calc-input select:focus,
select:focus {
    outline: none;
    border-color: var(--accent, #67e8f9);
    background: var(--input-bg-focus, rgba(255,255,255,0.08)) !important;
    box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.1);
}

/* Option Elements - Dunkler Hintergrund */
select.calc-input option,
.calc-input select option,
select option {
    background: #1a1f3a !important;
    color: var(--color-text, #e2e8f0) !important;
    padding: 0.75rem !important;
}

select.calc-input option:hover,
.calc-input select option:hover,
select option:hover {
    background: #252b4a !important;
}

/* Material Card Fix - REMOVED DUPLICATE DEFINITION */

.calc-material-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #e2e8f0);
    margin-bottom: 0.5rem;
}

.calc-material-content p {
    font-size: 0.875rem;
    color: var(--muted, #94a3b8);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.calc-material-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent, #67e8f9);
}

/* Upload Section Fix */
.calc-upload-section {
    margin-bottom: 2rem;
}

.calc-upload-box {
    background: var(--card, rgba(255,255,255,0.03));
    border: 2px dashed var(--line, rgba(255,255,255,0.2));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.calc-upload-box:hover {
    border-color: var(--accent, #67e8f9);
    background: var(--card-hover, rgba(255,255,255,0.05));
}

.calc-upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.calc-upload-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text, #e2e8f0);
    margin-bottom: 0.5rem;
}

.calc-upload-box p {
    color: var(--muted, #94a3b8);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Divider Fix */
.calc-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--muted, #94a3b8);
}

.calc-divider::before,
.calc-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--line, rgba(255,255,255,0.1));
}

.calc-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Radio Group Fix */
.calc-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.calc-radio-card {
    display: block;
    background: var(--card, rgba(255,255,255,0.03));
    border: 2px solid var(--line, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-radio-card:hover {
    border-color: rgba(103,232,249,.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103,232,249,.15);
}

.calc-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;

}

.calc-radio-card:has(input[type="radio"]:checked),
.calc-radio-card.active {
    border-color: rgba(103,232,249,.25) !important;
    background: linear-gradient(180deg, rgba(103,232,249,.15), rgba(103,232,249,.05)) !important;
    box-shadow: 0 4px 12px rgba(103,232,249,.15) !important;
    transform: translateY(-2px) !important;
}

.calc-radio-card:has(input[type="radio"]:checked):hover,
.calc-radio-card.active:hover {
    border-color: rgba(103,232,249,.35) !important;
    box-shadow: 0 4px 12px rgba(103,232,249,.25) !important;
    transform: translateY(-3px) !important;
}

.calc-radio-card input[type="radio"]:checked ~ .calc-radio-content,
.calc-radio-card.active .calc-radio-content {
    color: var(--accent, #67e8f9);
}

.calc-radio-card input[type="radio"]:checked ~ .calc-radio-content strong,
.calc-radio-card.active .calc-radio-content strong {
    color: var(--accent, #67e8f9);
}

.calc-radio-content strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #e2e8f0);
    margin-bottom: 0.25rem;
}

.calc-radio-content p {
    font-size: 0.875rem;
    color: var(--muted, #94a3b8);
    margin: 0;
}

/* ============================================
   STEP 3: Optionen & Preis
   ============================================ */

/* Options Grid */
.calc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* Checkbox Cards */
.calc-checkbox-card {
    display: block;
    position: relative;
    background: var(--card, rgba(255,255,255,0.03));
    border: 2px solid var(--line, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-checkbox-card:hover {
    border-color: var(--accent, #67e8f9);
    background: var(--card-hover, rgba(255,255,255,0.05));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 232, 249, 0.15);
}

.calc-checkbox-card:has(input[type="checkbox"]:checked) {
    border-color: rgba(103,232,249,.25) !important;
    background: linear-gradient(180deg, rgba(103,232,249,.15), rgba(103,232,249,.05)) !important;
    box-shadow: 0 4px 12px rgba(103,232,249,.15) !important;
    transform: translateY(-2px) !important;
}

.calc-checkbox-card:has(input[type="checkbox"]:checked):hover {
    border-color: rgba(103,232,249,.35) !important;
    box-shadow: 0 4px 12px rgba(103,232,249,.25) !important;
    transform: translateY(-3px) !important;
}

.calc-checkbox-card input[type="checkbox"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent, #67e8f9);
}

.calc-checkbox-card input[type="checkbox"]:checked {
    background: var(--accent, #67e8f9);
}

.calc-checkbox-content {
    padding-right: 2rem;
    transition: all 0.2s ease;
}

.calc-checkbox-content strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text, #e2e8f0);
    margin-bottom: 0.5rem;
}

.calc-checkbox-content p {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent, #67e8f9);
    margin: 0;
}

/* Price Summary Box */
.calc-summary {
    background: linear-gradient(135deg,
        rgba(103, 232, 249, 0.08) 0%,
        rgba(84, 200, 240, 0.04) 50%,
        rgba(255,255,255,0.02) 100%);
    border: 2px solid var(--accent, #67e8f9);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(103, 232, 249, 0.15);
}

.calc-summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text, #e2e8f0);
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(90deg, var(--accent), #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    margin: 0.5rem 0;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.calc-summary-row:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(4px);
}

.calc-summary-row span:first-child {
    font-size: 0.9375rem;
    color: var(--muted, #94a3b8);
    font-weight: 500;
}

.calc-summary-row span:last-child {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text, #e2e8f0);
}

.calc-summary-row .text-success {
    color: var(--color-success, #10b981) !important;
}

.calc-summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent, #67e8f9), transparent);
    margin: 1.5rem 0;
    opacity: 0.5;
}

.calc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg,
        rgba(103, 232, 249, 0.15),
        rgba(84, 200, 240, 0.08));
    border-radius: 12px;
    border: 1px solid var(--accent, #67e8f9);
}

.calc-summary-total span:first-child {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text, #e2e8f0);
}

.calc-summary-total span:last-child {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent, #67e8f9);
    text-shadow: 0 0 20px rgba(103, 232, 249, 0.5);
}

.calc-summary-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    text-align: center;
}

.calc-summary-note p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted, #94a3b8);
}

.calc-summary-note strong {
    color: var(--text, #e2e8f0);
    font-weight: 600;
}

.calc-summary-note span {
    color: var(--accent, #67e8f9);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Actions (Buttons at bottom) */
.calc-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.calc-actions .btn {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.calc-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--line, rgba(255,255,255,0.2));
    color: var(--text, #e2e8f0);
}

.calc-actions .btn-outline:hover {
    border-color: var(--accent, #67e8f9);
    background: rgba(103, 232, 249, 0.1);
    transform: translateY(-2px);
}

.calc-actions .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.calc-actions .btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.calc-actions .btn-primary {
    background: linear-gradient(135deg, var(--accent, #67e8f9), var(--accent2, #54c8f0));
    border: none;
    color: var(--bg, #0a0e27);
    box-shadow: 0 4px 12px rgba(103, 232, 249, 0.3);
}

.calc-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 232, 249, 0.4);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 1.5rem 0 !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    .calc-container {
        padding: 1.5rem;
    }

    .calc-radio-group {
        grid-template-columns: 1fr;
    }

    .calc-options-grid {
        grid-template-columns: 1fr;
    }

    .calc-actions {
        flex-direction: column;
    }

    .calc-actions .btn {
        width: 100%;
    }

    .calc-summary {
        padding: 1.5rem;
    }

    .calc-summary-total span:last-child {
        font-size: 1.5rem;
    }
}
/**
 * Calculator Step-by-Step Navigation CSS
 * Wiederverwendbar für alle Kalkulatoren
 */

/* Step Progress Container */
.calc-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 3rem;
    max-width: 800px;
    padding: 0 1rem;
}

/* Individual Step */
.calc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.calc-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.calc-step-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 120px;
    transition: all 0.3s ease;
}

/* Active Step */
.calc-step.active .calc-step-number {
    background: linear-gradient(135deg, #00e5ff, #7b2ff7);
    border-color: var(--color-primary, #00e5ff);
    color: white;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: scale(1.1);
}

.calc-step.active .calc-step-label {
    color: var(--color-primary, #00e5ff);
    font-weight: 600;
}

/* Completed Step */
.calc-step.completed .calc-step-number {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--color-primary, #00e5ff);
    color: var(--color-primary, #00e5ff);
}

.calc-step.completed .calc-step-label {
    color: rgba(0, 229, 255, 0.8);
}

.calc-step.completed .calc-step-number::after {
    content: "✓";
    position: absolute;
    font-size: 1.5rem;
    color: var(--color-primary, #00e5ff);
}

/* Clickable Steps (completed or previous) */
.calc-step.clickable {
    cursor: pointer;
}

.calc-step.clickable:hover .calc-step-number {
    transform: scale(1.05);
    border-color: var(--color-primary, #00e5ff);
    background: rgba(0, 229, 255, 0.1);
}

.calc-step.clickable:hover .calc-step-label {
    color: var(--color-primary, #00e5ff);
}

/* Step Connector */
.calc-step-connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1rem;
    position: relative;
    max-width: 150px;
}

.calc-step.completed ~ .calc-step-connector {
    background: linear-gradient(90deg, #00e5ff, rgba(0, 229, 255, 0.2));
}

/* Panel Transitions */
.calc-panel {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.calc-panel.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calc-progress {
        flex-direction: column;
        gap: 1.5rem;
    }

    .calc-step-connector {
        width: 2px;
        height: 40px;
        max-width: none;
        margin: 0;
    }

    .calc-step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .calc-step-label {
        font-size: 0.85rem;
        max-width: 100px;
    }
}

/* Step Validation States */
.calc-panel .calc-validation-error {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: var(--color-error-light, #ff4d4d);
    display: none;
}

.calc-panel .calc-validation-error.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Buttons Enhancement */
.calc-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-actions .btn {
    min-width: 150px;
}

.calc-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Percentage */
.calc-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.calc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e5ff, #7b2ff7);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Step Info Badge */
.calc-step-info {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4d4d;
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.calc-step.has-error .calc-step-info {
    display: flex;
}
