/* ======================================
   Produktkonfigurator Pro Frontend Styles
   Verbesserte Version mit modernem Design
   ====================================== */

.produktkonfigurator-pro {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
    background: #fff;
    padding: 20px;
}

/* Hauptpreis-Bereich mit Produktdetails */
.hauptpreis {
    text-align: left;
    margin-bottom: 30px;
    line-height: 1.3;
}

.ab-label {
    font-size: 16px;
    color: #666;
}

.preis-wert {
    font-size: 32px;
    font-weight: bold;
    margin: 5px 0;
}

.mwst-hinweis {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.produkt-bewertung {
    margin: 10px 0;
}

.bewertungen-anzahl {
    color: #666;
    font-size: 14px;
}

.artikelnummer, 
.kategorien {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.kategorien a {
    color: #d12500;
    text-decoration: none;
}

.kategorien a:hover {
    text-decoration: underline;
}

/* Konfigurator-Schritte mit modernem Design */
.konfigurator-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.konfigurator-step {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.konfigurator-step.active {
    border-color: #d12500;
    box-shadow: 0 4px 16px rgba(209, 37, 0, 0.1);
}

.konfigurator-step-header,
.schritt-header {
    padding: 16px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
}

.konfigurator-step-header:hover,
.schritt-header:hover {
    background: #f0f0f0;
}

.konfigurator-step.active .konfigurator-step-header,
.schritt-header.active {
    background: linear-gradient(135deg, #d12500, #ff8c00);
    color: #fff;
}

.konfigurator-step-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.step-number,
.schritt-nummer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    text-align: center;
    line-height: 1;
    font-size: 16px;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.konfigurator-step.active .step-number,
.schritt-header.active .schritt-nummer {
    background: #fff;
    color: #d12500;
    border-color: #fff;
}

.step-toggle-icon,
.schritt-status {
    font-size: 20px;
    transition: transform 0.3s ease;
    color: #666;
}

.konfigurator-step.active .step-toggle-icon {
    transform: rotate(180deg);
    color: #fff;
}

.konfigurator-step-content,
.schritt-inhalt {
    padding: 24px;
    background-color: #fff;
    display: none;
}

.konfigurator-step.active .konfigurator-step-content,
.schritt-header.active + .schritt-inhalt {
    display: block;
}

/* Farbauswahl - modernes Card-Layout */
.pkonfig-pro-farben-auswahl,
.farb-auswahl {
    margin-bottom: 24px;
}

.pkonfig-pro-farben-auswahl h3 {
    margin-bottom: 16px;
    font-size: 18px;
    color: #333;
    position: relative;
}

.pkonfig-pro-farben-auswahl h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #d12500, #ff8c00);
    margin-top: 8px;
}

.pkonfig-pro-color-list,
.farb-auswahl {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.pkonfig-pro-color-item,
.farb-option {
    position: relative;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    width: calc(33.33% - 16px);
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pkonfig-pro-color-item input[type="radio"] {
    display: none;
}

.pkonfig-pro-color-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.pkonfig-pro-color-item:hover,
.farb-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #ccc;
}

.pkonfig-pro-color-item input[type="radio"]:checked + .pkonfig-pro-color-label,
.pkonfig-pro-color-item.active .pkonfig-pro-color-label,
.farb-option.active {
    border-color: #d12500 !important;
    box-shadow: 0 0 0 2px rgba(209, 37, 0, 0.2), 0 4px 12px rgba(0,0,0,0.08);
    background-color: #fff9f7;
}

.color-option,
.farb-bild {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.pkonfig-pro-color-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.pkonfig-pro-color-image,
.farb-bild img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.color-swatch {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.pkonfig-pro-color-name {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    color: #333;
}

.pkonfig-pro-out-of-stock {
    color: #dc3545;
    font-size: 12px;
    font-weight: 500;
    background: #f8d7da;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

/* Mengenauswahl - modernes Card-Layout */
.quantity-selection,
.mengen-auswahl {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 24px;
}

.quantity-option,
.menge-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.quantity-option:hover,
.menge-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #ccc;
}

.quantity-option.selected,
.menge-option.active {
    border-color: #d12500 !important;
    box-shadow: 0 0 0 2px rgba(209, 37, 0, 0.2), 0 4px 12px rgba(0,0,0,0.08);
    background-color: #fff9f7;
}

.quantity-option .quantity,
.menge-zahl {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.quantity-option .unit-price {
    color: #555;
    font-size: 15px;
    font-weight: 500;
}

.menge-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menge-rabatt {
    color: #d12500;
    font-weight: bold;
    background: rgba(209, 37, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.meist-gekauft-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(to right, #d12500, #ff8c00);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.custom-quantity,
.benutzerdefinierte-menge {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.custom-quantity p {
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 500;
    color: #333;
}

.custom-quantity input,
#benutzerdefinierte-menge-input,
#custom-quantity-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-right: 12px;
    font-size: 16px;
}

.custom-quantity input:focus,
#benutzerdefinierte-menge-input:focus,
#custom-quantity-input:focus {
    border-color: #d12500;
    box-shadow: 0 0 0 2px rgba(209, 37, 0, 0.1);
    outline: none;
}

.menge-eingabe-container {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

#custom-quantity-confirm,
#menge-bestaetigen,
.button-secondary {
    background-color: #333 !important;
    color: white;
    border: none;
    border-radius: 0;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    width: 100% !important;
}


.button-confirm {
    background-color: #333 !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    width: 100% !important;
}



#custom-quantity-confirm:hover,
#menge-bestaetigen:hover,
.button-secondary:hover {
    background: linear-gradient(to right, #d12500, #ff8c00) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* VEREDELUNGSOPTIONEN - VERBESSERTE VERSION */
.konfigurator-position-container,
.position-selection {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0 24px;
}

.position-option {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: #fff;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.position-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #bbb;
}

.position-option.selected {
    border-color: #d12500 !important;
    border-width: 3px !important;
    background: linear-gradient(135deg, #fff9f7, #fff5f0);
    box-shadow: 0 0 0 3px rgba(209, 37, 0, 0.2), 0 6px 20px rgba(209, 37, 0, 0.15);
    color: #d12500;
    transform: translateY(-3px);
}

/* SPEZIELLE BEHANDLUNG FÜR "KEIN AUFDRUCK" */
.position-option[data-position="no-imprint"] {
    background: #333;
    color: #fff;
    border: 2px solid #333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.position-option[data-position="no-imprint"]:hover {
    background: #444;
    border-color: #444;
    color: #fff;
}

.position-option[data-position="no-imprint"].selected {
    background: linear-gradient(135deg, #d12500, #ff8c00) !important;
    color: #fff !important;
    border-color: #d12500 !important;
    box-shadow: 0 0 0 3px rgba(209, 37, 0, 0.3), 0 6px 20px rgba(209, 37, 0, 0.25);
}

.position-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.technique-count {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.position-option.selected .technique-count {
    color: #d12500;
    font-weight: 500;
}

.position-option[data-position="no-imprint"] .technique-count {
    display: none;
}

/* TECHNIK-AUSWAHL - MIT JAVASCRIPT-KOMPATIBILITÄT */
.technique-selection {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* JavaScript-Steuerung respektieren */
.technique-selection[style*="display: none"] {
    display: none !important;
}

.technique-selection[style*="display: block"] {
    display: block !important;
}

/* Standard versteckt, außer JavaScript zeigt es explizit */
.technique-selection:not([style*="display: block"]) {
    display: none;
}

.technique-selection h4 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    text-align: center;
}

.technique-selection h4:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #d12500, #ff8c00);
    margin: 10px auto 0;
    border-radius: 2px;
}

.technique-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.technique-option {
    flex: 1;
    min-width: 200px;
    padding: 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.technique-option:hover {
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.technique-option.selected {
    border-color: #d12500 !important;
    border-width: 3px !important;
    background: linear-gradient(135deg, #fff9f7, #fff5f0);
    box-shadow: 0 0 0 2px rgba(209, 37, 0, 0.2), 0 4px 12px rgba(209, 37, 0, 0.1);
    transform: translateY(-2px);
}

.technique-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.technique-option.selected .technique-name {
    color: #d12500;
}

.size-info {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    display: block;
    margin-top: 4px;
}

.technique-option.selected .size-info {
    color: #d12500;
    font-weight: 500;
}

/* AUSWAHL-INDIKATOR */
.technique-option.selected:before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #d12500;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(209, 37, 0, 0.3);
}

.position-option.selected:before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #d12500;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(209, 37, 0, 0.3);
    z-index: 2;
}

.position-option[data-position="no-imprint"].selected:before {
    background: #fff;
    color: #d12500;
}

/* FARBEN-AUSWAHL - MIT JAVASCRIPT-KOMPATIBILITÄT */
.colors-selection {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* JavaScript-Steuerung respektieren */
.colors-selection[style*="display: none"] {
    display: none !important;
}

.colors-selection[style*="display: block"] {
    display: block !important;
}

/* Standard versteckt, außer JavaScript zeigt es explizit */
.colors-selection:not([style*="display: block"]) {
    display: none;
}

.colors-selection h4 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.colors-selection h4:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #d12500, #ff8c00);
    margin-top: 8px;
}

#color-count-select {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    width: 100%;
    margin-bottom: 15px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    font-size: 14px;
}

#color-count-select:focus {
    border-color: #d12500;
    box-shadow: 0 0 0 2px rgba(209, 37, 0, 0.1);
    outline: none;
}

.color-input-row {
    margin-bottom: 12px;
}

.color-input-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.color-input {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.2s;
    font-size: 14px;
}

.color-input:focus {
    border-color: #d12500;
    box-shadow: 0 0 0 2px rgba(209, 37, 0, 0.1);
    outline: none;
}

/* Hinweise und Info-Boxen */
.technik-hinweis {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 6px;
    position: relative;
    padding-left: 40px;
    font-size: 14px;
    line-height: 1.5;
}

.technik-hinweis:before {
    content: '!';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: currentColor;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Farbe je nach Hinweistyp */
.technik-hinweis.info {
    background-color: #fff5f0;
    color: #d12500;
    border-left: 3px solid #ff8c00;
}

.technik-hinweis.warning {
    background-color: #fff3e0;
    color: #e65100;
    border-left: 3px solid #ff9800;
}

.technik-hinweis.success {
    background-color: #fff9f7;
    color: #d12500;
    border-left: 3px solid #ff8c00;
}

/* Datei-Upload */
.upload-section {
    margin: 20px 0;
    padding: 24px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    background: #f8f9fa;
}

.upload-section.has-file {
    border-color: #ff8c00;
    background: #fff9f7;
}

.upload-instructions {
    margin-bottom: 20px;
    color: #555;
}

.allowed-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.allowed-types li {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.upload-area {
    margin: 20px 0;
}

.upload-button {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
}

.upload-button:hover {
    background: linear-gradient(to right, #d12500, #ff8c00);
    box-shadow: 0 4px 12px rgba(209, 37, 0, 0.4);
    transform: translateY(-2px);
}

.drag-drop-area {
    margin-top: 16px;
    padding: 30px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    color: #777;
    transition: all 0.3s ease;
}

.drag-drop-area.drag-active {
    border-color: #d12500;
    background: #fff9f7;
    color: #d12500;
}

.upload-status {
    margin-top: 16px;
    min-height: 20px;
}

.upload-status .success {
    color: #ff8c00;
    background: #fff9f7;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

.upload-status .error {
    color: #dc3545;
    background: #feeef0;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Zusammenfassung - verbessert */
.konfigurator-summary,
.konfigurator-zusammenfassung {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
}

.summary-section h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #d12500, #ff8c00);
    margin-top: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #555;
}

.summary-value {
    color: #333;
    font-weight: 500;
}

.liefertermin {
    margin-bottom: 20px;
    font-weight: bold;
    color: #ff8c00;
}

.price-summary {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e0e0e0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #555;
}

.price-row.price-total {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.einzelpreis-info {
    font-size: 20px;
    font-weight: 700;
    color: #d12500;
}

.gesamtpreis {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #d12500;
}

.preis-mwst {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.brutto-preis {
    font-size: 18px;
    font-weight: bold;
    color: #d12500;
}

.brutto-preis span {
    font-size: 28px;
}

.delivery-info {
    margin-top: 30px;
    padding: 15px;
    border-radius: 6px;
    background: #fee1bc;
    text-align: center;
    color: #ff8516;
    border: 1px solid #e0e0e0;
}

.delivery-date {
    font-weight: 600;
}

/* Aktionsbuttons */
.konfigurator-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.button-primary,
.in-warenkorb-button,
.add-to-cart-button {
    padding: 16px 30px !important;
    background: linear-gradient(to right, #d12500, #ff8c00) !important;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 280px !important;
    height: 48px !important;
    text-align: center;
    box-shadow: 0 4px 12px rgba(209, 37, 0, 0.3);
}

.button-primary:hover,
.in-warenkorb-button:hover,
.add-to-cart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(209, 37, 0, 0.5);
}

.button-secondary,
.angebot-button,
.request-quote-button {
    padding: 16px 30px;
    background: #a8a6a6 !important;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.button-secondary:hover,
.angebot-button:hover,
.request-quote-button:hover {
    background: linear-gradient(to right, #d12500, #ff8c00) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(209, 37, 0, 0.3);
}

.price-details-link {
    display: block;
    margin: 16px 0;
    margin-top: 5px;
    color: #fff;
    background-color: #a1a0a0 !important;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
}

.price-details-link:hover {
    text-decoration: underline;
}

/* Preisdetails Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(4px);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 10000;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #d12500;
    background: #f8f9fa;
}

.modal-body {
    padding: 24px;
}

.price-details-table {
    width: 100%;
    border-collapse: collapse;
}

.price-details-table th,
.price-details-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.price-details-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.price-details-table tr:last-child td {
    border-bottom: none;
}

.price-details-total {
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(135deg, #fff9f7, #fff);
    color: #d12500;
}

.price-subtotal td {
    background: #f8f9fa;
    font-weight: 500;
}

/* Navigation zwischen Schritten */
.step-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.step-button,
.step-continue-button,
.step-back-button {
    padding: 14px 28px;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 280px;
    width: auto;
    max-width: 400px;
    text-align: center;
}

.step-continue-button {
    background: #333;
    color: #fff;
    border: none;
}

.step-continue-button:hover {
    background: linear-gradient(to right, #d12500, #ff8c00);
    box-shadow: 0 4px 12px rgba(209, 37, 0, 0.4);
    transform: translateY(-2px);
}

.step-back-button {
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
}

.step-back-button:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Button Container Fix */
.konfigurator-step-content .step-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Spezifische Button-Stile für die Navigation */
button[type="button"]:contains("ZURÜCK"),
button:contains("ZURÜCK"),
.zurueck-button {
    order: 1;
}

button[type="button"]:contains("WEITER"),
button:contains("WEITER"),
.weiter-button {
    order: 2;
}

/* Sicherstellen, dass alle Navigation-Buttons die gleiche Breite haben */
.konfigurator-step-content button[type="button"] {
    min-width: 350px;
    width: auto;
    max-width: 400px;
}

@media (max-width: 768px) {
    .produktkonfigurator-pro {
        padding: 15px;
    }
    
    .pkonfig-pro-color-list {
        justify-content: center;
    }
    
    .color-option,
    .farb-bild {
        width: 100%;
        height: 100px;
        padding: 0;
    }
    
    .pkonfig-pro-color-item,
    .farb-option {
        width: calc(50% - 10px);
    }
    
    .quantity-selection {
        justify-content: center;
    }
    
    .position-option {
        padding: 15px;
        font-size: 14px;
    }
    
    .technique-section {
        flex-direction: column;
    }
    
    .technique-option {
        min-width: 100%;
    }
    
    .konfigurator-actions {
        flex-direction: column;
    }
    
    .button-primary,
    .button-secondary {
        width: 100%;
    }
    
    .modal {
        width: 95%;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .step-button,
    .step-continue-button,
    .step-back-button {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .konfigurator-step-header {
        padding: 12px 15px;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .pkonfig-pro-color-item,
    .farb-option {
        width: 30%;
    }
    
    .color-option,
    .farb-bild {
        width: 100%;
        height: 80px;
        padding: 0;
    }
    
    .position-option {
        padding: 12px;
        font-size: 13px;
    }
    
    .technique-selection,
    .colors-selection {
        padding: 15px;
    }
    
    .step-button {
        padding: 12px 20px;
        font-size: 13px;
    }
}