/* Vereinfachter Sonnenschirm-Konfigurator CSS */
#product-configurator {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* ===========================================
   LAYOUT CONTAINER
   ========================================== */

.configurator-container {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
    position: relative;
}

.configurator-form {
    flex: 1;
    max-width: 500px;
}

.configurator-preview {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    z-index: 100;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* ===========================================
   PRICE DISPLAY
   ========================================== */

.price-display {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    
    border: 2px solid #e9ecef;
}

/* ===========================================
   ACCORDION STYLING
   ========================================== */

.accordion-group {
    margin-bottom: 15px;
    
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.accordion-title {
    padding: 15px 20px;
    cursor: pointer;
    background-color: #b1b2b8;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.accordion-title:hover {
    background-color: #9a9ba1;
}

.accordion-title h3 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

.accordion-title.active {
    background-color: #8a8b91;
    font-weight: bold;
}

.accordion-icon {
    width: 8px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.accordion-icon.open {
    transform: rotate(-135deg);
}

.accordion-content {
    padding: 20px;
    display: none;
    background: #ffffff;
    border-left: 3px solid #b1b2b8;
}

/* ===========================================
   SIZE PICKER
   ========================================== */

.size-picker {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.size-option {
    cursor: pointer;
    text-align: center;
    padding: 15px;
    border: 2px solid #ddd;
    
    transition: all 0.3s ease;
    background: #ffffff;
    flex: 1;
    min-width: 120px;
}

.size-option:hover {
    border-color: #5DC1E9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.2);
}

.size-option img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    object-fit: contain;
}

.size-option span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.size-option.selected {
    border-color: #5DC1E9;
    background-color: #e7f1ff;
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.3);
}

/* ===========================================
   MOUNTING OPTIONS
   ========================================== */

.mounting-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.mounting-option {
    cursor: pointer;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid #ddd;
    
    transition: all 0.3s ease;
    background: #ffffff;
}

.mounting-option:hover {
    border-color: #5DC1E9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.2);
}

.mounting-option img {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    object-fit: contain;
    
}

.mounting-option span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.mounting-option.selected {
    border-color: #5DC1E9;
    background-color: #e7f1ff;
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.3);
}

/* ===========================================
   CONFIG SUBSECTIONS
   ========================================== */

.config-subsection {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    
    border: 1px solid #e9ecef;
}

.config-subsection h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #5DC1E9;
    padding-bottom: 5px;
}

.config-subsection label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #333;
}

/* ===========================================
   LIGHTING OPTIONS
   ========================================== */

.lighting-options {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
}

.lighting-option {
    cursor: pointer;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid #ddd;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    background: #ffffff;
}

.lighting-option:hover {
    border-color: #5DC1E9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.2);
}

.lighting-option img {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    object-fit: contain;
}

.lighting-option span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.lighting-option.selected {
    border-color: #5DC1E9;
    background-color: #e7f1ff;
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.3);
}

/* ===========================================
   TABLE OPTIONS - KOMPAKTER
   ========================================== */

.table-option-group {
    margin-bottom: 12px;
}

.table-option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 12px;
}

.option-buttons {
    display: flex;
    gap: 8px;
}

.option-btn {
    flex: 1;
    padding: 6px 10px;
    border: 2px solid #ddd;
    
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.option-btn:hover {
    border-color: #5DC1E9;
    transform: translateY(-1px);
}

.option-btn.selected {
    border-color: #5DC1E9;
    background-color: #e7f1ff;
    color: #5DC1E9;
}

/* ===========================================
   BRANDING SYSTEM - KOMPAKTER
   ========================================== */

.branding-position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.branding-position-option {
    padding: 8px 6px;
    border: 2px solid #ddd;
    ;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.branding-position-option:hover {
    border-color: #5DC1E9;
    transform: translateY(-2px);
}

.branding-position-option.selected {
    border-color: #5DC1E9;
    background: #e7f1ff;
}

.branding-position-option.active {
    border-color: #28a745;
    background: #d4edda;
    opacity: 0.7;
    cursor: not-allowed;
}

.position-preview {
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.position-icon {
    width: 20px;
    height: 20px;
    background: #5DC1E9;
    
}

.position-name {
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.active-indicator {
    position: absolute;
    top: 3px;
    right: 3px;
    color: #28a745;
    font-size: 14px;
}

.branding-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.add-branding-btn,
.clear-branding-btn {
    padding: 6px 12px;
    border: none;
    
    cursor: pointer;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.add-branding-btn {
    background: #5DC1E9;
    color: white;
    flex: 1;
}

.add-branding-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.add-branding-btn:hover:not(:disabled) {
    background: #04a4e4;
    transform: translateY(-1px);
}

.clear-branding-btn {
    background: #dc3545;
    color: white;
}

.clear-branding-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* ===========================================
   QUANTITY SELECTOR
   ========================================== */

.quantity-selector {
    text-align: center;
    padding: 20px;
}

.quantity-selector label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

#quantity_display {
    font-size: 24px;
    font-weight: bold;
    color: #5DC1E9;
}

.quantity-slider {
    width: 100%;
    height: 8px;
    
    background: #ddd;
    outline: none;
    margin: 15px 0;
    -webkit-appearance: none;
    cursor: pointer;
}

.quantity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5DC1E9;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.quantity-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5DC1E9;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.quantity-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* ===========================================
   PREVIEW CONTAINER - KRITISCH FÜR LAYER
   ========================================== */

#preview-container {
    position: relative;
    width: 100%;
    max-width: none;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #ddd;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0 auto;
    min-height: 200px;
    /* 3D-Transform Support */
    perspective: 1000px;
    transform-style: preserve-3d;
}

.preview-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: auto;
}

/* Layer-spezifische Z-Index Werte */
#preview-base { z-index: 1; }
#preview-mounting { z-index: 2; }
#preview-lighting { z-index: 3; }
#preview-footrest { z-index: 5; }
#preview-barstool { z-index: 6; }



.branding-element {
    pointer-events: auto;
    transition: all 0.3s ease;
}

.branding-element:hover {
    filter: drop-shadow(0 0 5px rgba(122, 181, 29, 0.5));
    transform: scale(1.05);
}

.preview-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.export-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #5DC1E9;
    ;
    background-color: transparent;
    color: #5DC1E9;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.export-btn:hover {
    background-color: #5DC1E9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.3);
}

/* ===========================================
   CONFIGURATOR ACTIONS
   ========================================== */

.configurator-actions {
    margin-top: 30px;
    text-align: center;
}

.add-to-quote-btn {
    background: linear-gradient(135deg, #5DC1E9, #04a4e4);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.3);
}

.add-to-quote-btn:hover {
    background: linear-gradient(135deg, #04a4e4, #09a5e4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 193, 233, 0.4);
}

/* ===========================================
   QUOTE SYSTEM STYLES
   ========================================== */

.quote-section {
    margin-top: 40px;
    padding: 25px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.quote-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.clear-quote-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.clear-quote-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.quote-list {
    min-height: 100px;
}

.no-items {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

.quote-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.quote-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.quote-item-summary {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.quote-item-actions {
    display: flex;
    gap: 8px;
}

.remove-quote-item {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    background: #dc3545;
    color: white;
}

.remove-quote-item:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.quote-summary {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #5DC1E9, #04a4e4);
    color: white;
    
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.summary-item {
    font-size: 14px;
    font-weight: 600;
}

/* ===========================================
   QUOTE NOTIFICATIONS
   ========================================== */

.quote-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    ;
    font-weight: 600;
    z-index: 9999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.quote-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* ===========================================
   FORM STYLES
   ========================================== */

#quote-form-container {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#quote-form-container h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    text-align: center;
}

.quote-form-info {
    margin-bottom: 25px;
    padding: 15px;
    background: #e7f1ff;
    border-left: 4px solid #5DC1E9;
    
}

.quote-form-info p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #5DC1E9;
    margin: 30px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #5DC1E9;
    text-transform: uppercase;
}

.form-section-title:first-child {
    margin-top: 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label {
    font-size: 14px !important;
    line-height: 1.4;
    margin: 0 !important;
    cursor: pointer;
}

.checkbox-label a {
    color: #5DC1E9;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-section input::placeholder,
.form-section textarea::placeholder {
    color: #999;
    font-style: italic;
}

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

.form-section input,
.form-section textarea,
.form-section select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    ;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
    outline: none;
    border-color: #5DC1E9;
    box-shadow: 0 0 0 2px rgba(93, 193, 233, 0.2);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-col {
    flex: 1;
}

.submit-quote-btn {
    background: linear-gradient(135deg, #5DC1E9, #04a4e4);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.3);
    width: 100%;
}

.submit-quote-btn:hover {
    background: linear-gradient(135deg, #04a4e4, #5a8a03)!important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 193, 233, 0.4);
}

.submit-quote-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* File Upload */
.file-info {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    background: #f8f9fa;
    ;
}

input[type="file"]:hover {
    border-color: #5DC1E9;
    background: #e7f1ff;
}

/* ===========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .configurator-preview {
        min-width: 280px;
        top: 15px;
    }
    
    .configurator-form {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .configurator-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .configurator-preview {
        position: relative !important;
        top: auto !important;
        flex: none !important;
        width: 100% !important;
        order: -1;
        margin-bottom: 20px;
        max-height: none !important;
        min-width: auto;
    }
    
    .configurator-form {
        max-width: 100%;
        order: 1;
    }
    
    #preview-container {
        width: 100%;
        min-height: 150px;
    }
    
    .mounting-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .quote-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quote-item-actions {
        align-self: flex-end;
    }
    
    .quote-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .branding-position-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #product-configurator {
        padding: 15px;
    }
    
    .quote-section,
    #quote-form-container {
        padding: 20px;
    }
    
    .mounting-options {
        grid-template-columns: 1fr;
    }
    
    .branding-position-grid {
        grid-template-columns: 1fr;
    }
    
    .option-buttons {
        flex-direction: column;
    }
    
    .quote-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .quote-notification.show {
        transform: translateY(0);
    }
    
    .preview-buttons {
        flex-direction: column;
    }
    
    .configurator-preview {
        position: static !important;
        transform: none !important;
    }
}

/* ===========================================
   BACKGROUND SYSTEM STYLES
   ========================================== */

.background-selector {
    padding: 15px 0;
}

.background-selector h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.background-option {
    cursor: pointer;
    text-align: center;
    padding: 10px;
    border: 2px solid #ddd;
    
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

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

.background-option.active {
    border-color: #5DC1E9;
    background-color: #e7f1ff;
    box-shadow: 0 2px 8px rgba(93, 193, 233, 0.3);
}

.background-preview {
    width: 100%;
    height: 80px;
    
    overflow: hidden;
    margin-bottom: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.background-option:hover .background-preview img {
    transform: scale(1.05);
}

.no-background-icon {
    font-size: 24px;
    color: #999;
}

.background-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    display: block;
}

/* Kein Hintergrund Option */
.background-none .background-preview {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

/* Upload-Bereich - KOMPAKTER */
.background-upload-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.upload-info {
    background: #f8f9fa;
    padding: 10px;
    ;
    margin-bottom: 15px;
    border-left: 3px solid #5DC1E9;
}

.upload-info p {
    margin: 0 0 6px 0;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.upload-info ul {
    margin: 0;
    padding-left: 15px;
}

.upload-info li {
    margin-bottom: 3px;
    font-size: 12px;
    color: #666;
}

.upload-area {
    margin-bottom: 15px;
}

.upload-dropzone {
    border: 2px dashed #ddd;
    ;
    padding: 20px 15px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-dropzone:hover {
    border-color: #5DC1E9;
    background: #f0f8e7;
}

.upload-dropzone.dragover {
    border-color: #5DC1E9;
    background: #e7f1ff;
    transform: scale(1.01);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #5DC1E9;
}

.upload-dropzone p {
    margin: 3px 0;
    color: #333;
    font-size: 13px;
}

.upload-note {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

/* Custom Background Preview */
.custom-background-preview {
    background: #e7f1ff;
    border: 1px solid #5DC1E9;
    
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-bg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.custom-bg-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.remove-custom-bg {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-custom-bg:hover {
    background: #c82333;
}

/* Loading-State für Upload */
.upload-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.upload-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #5DC1E9;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Erfolg-State */
.upload-success {
    border-color: #28a745;
    background: #d4edda;
}

.upload-success .upload-icon {
    color: #28a745;
}

/* Animation für Upload-Erfolg */
.upload-success {
    animation: uploadSuccess 0.5s ease-out;
}

@keyframes uploadSuccess {
    0% {
        background: #d4edda;
        border-color: #28a745;
    }
    100% {
        background: #e7f1ff;
        border-color: #5DC1E9;
    }
}

/* Responsive Design für Background System */
@media (max-width: 768px) {
    .background-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .background-preview {
        height: 60px;
    }
    
    .upload-dropzone {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 24px;
    }
    
    .custom-bg-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .remove-custom-bg {
        align-self: flex-end;
    }
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.font-weight-bold {
    font-weight: 600;
}

/* ===========================================
   LOADING STATES
   ========================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #5DC1E9;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================================
   ANIMATIONS
   ========================================== */

.configurator-preview {
    animation: slideInFromRight 0.6s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth Transitions */
.size-option,
.mounting-option,
.lighting-option,
.branding-position-option,
.option-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================================
   PRINT STYLES
   ========================================== */

@media print {
    .preview-buttons,
    .configurator-actions,
    .quote-item-actions,
    .clear-quote-btn,
    .branding-actions {
        display: none;
    }
    
    .configurator-container {
        flex-direction: column;
    }
    
    .quote-section {
        page-break-before: always;
    }
    
    .configurator-preview {
        position: relative !important;
        top: auto !important;
        page-break-inside: avoid;
    }
}

/* ===========================================
   ACCESSIBILITY
   ========================================== */

.size-option:focus,
.mounting-option:focus,
.lighting-option:focus,
.branding-position-option:focus,
.option-btn:focus {
    outline: 2px solid #5DC1E9;
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid #5DC1E9;
    outline-offset: 2px;
}

/* ===========================================
   HIGH PERFORMANCE MODE
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .configurator-preview,
    .size-option,
    .mounting-option,
    .lighting-option,
    .branding-position-option,
    .option-btn,
    .quote-item,
    .branding-element {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===========================================
   MOBILE DEVICE SPECIFIC
   ========================================== */

.mobile-device .configurator-preview {
    position: relative !important;
    top: auto !important;
    position: static !important;
    transform: none !important;
}

/* ===========================================
   IMPROVED UI FLOW - CSS ERGÄNZUNGEN
   ========================================== */

/* Navigation Breadcrumbs */
.quote-navigation {
    background: #f8f9fa;
    padding: 15px 20px;
    
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
}

.breadcrumb-item.active {
    color: #5DC1E9;
    font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: #999;
    font-weight: bold;
}

/* Minimierte Quote Section */
.quote-section {
    margin-top: 40px;
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.quote-section.has-items {
    border-color: #5DC1E9;
    background: linear-gradient(135deg, #f8fdf4, #ffffff);
}

.quote-mini-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #333;
}

.count-badge {
    background: #5DC1E9;
    color: white;
    padding: 4px 8px;
    
    font-size: 12px;
    font-weight: 600;
}

.start-quote-btn {
    background: linear-gradient(135deg, #04a4e4, #09a5e4);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    ;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(93, 193, 233, 0.3);
    width: 100%;
}

.start-quote-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #04a4e4, #09a5e4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.4);
}

.start-quote-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mini-quote-item {
    background: #f8f9fa;
    padding: 8px 12px;
    
    font-size: 12px;
    margin-bottom: 5px;
    border-left: 3px solid #5DC1E9;
}

.mini-quote-more {
    color: #666;
    font-style: italic;
    font-size: 12px;
    text-align: center;
    padding: 5px;
}

/* Quote Overview */
.quote-overview {
    display: none;
    background: #ffffff;
    border: 2px solid #e9ecef;
    
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quote-overview.active {
    display: block;
    animation: slideInFromBottom 0.5s ease-out;
}

.quote-overview-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #5DC1E9;
}

.quote-overview-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.quote-overview-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.quote-items-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.quote-item-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.quote-item-card:hover {
    border-color: #5DC1E9;
    box-shadow: 0 4px 12px rgba(122, 181, 29, 0.15);
    transform: translateY(-2px);
}

.quote-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.quote-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #5DC1E9;
    margin: 0;
}

.quote-item-quantity {
    background: #5DC1E9;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.quote-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.quote-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.edit-config-btn,
.remove-config-btn {
    padding: 8px 16px;
    border: none;
    ;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.edit-config-btn {
    background: #17a2b8;
    color: white;
    flex: 1;
}

.edit-config-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.remove-config-btn {
    background: #dc3545;
    color: white;
}

.remove-config-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.quote-overview-summary {
    background: linear-gradient(135deg, #5DC1E9, #04a4e4);
    color: white;
    padding: 20px;
    
    margin-bottom: 25px;
    text-align: center;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.stat-item h4 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
}

.stat-item p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    font-weight: 500;
}

.quote-overview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.back-to-config-btn {
    background: transparent;
    color: #5DC1E9;
    border: 2px solid #5DC1E9;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    ;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.back-to-config-btn:hover {
    background: #5DC1E9;
    color: white;
    transform: translateY(-2px);
}

.proceed-to-form-btn {
    background: linear-gradient(135deg, #04a4e4, #09a5e4);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.3);
}

.proceed-to-form-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #04a4e4, #09a5e4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 193, 233, 0.4);
}

.proceed-to-form-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Section - versteckt bis aktiviert */
#quote-form-section {
    display: none;
    animation: slideInFromBottom 0.5s ease-out;
}

#quote-form-section.active {
    display: block;
}

.form-back-button {
    background: transparent;
    color: #5DC1E9;
    border: 2px solid #5DC1E9;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    ;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.form-back-button:hover {
    background: #5DC1E9;
    color: white;
}

/* Main Configurator - verstecken wenn nicht aktiv */
.configurator-main.hidden {
    display: none;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5DC1E9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-overview {
        padding: 20px;
    }
    
    .quote-items-grid {
        gap: 15px;
    }
    
    .quote-item-details {
        grid-template-columns: 1fr;
    }
    
    .quote-item-actions {
        flex-direction: column;
    }
    
    .quote-overview-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quote-mini-summary {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .quote-overview-header h2 {
        font-size: 20px;
    }
    
    .quote-item-card {
        padding: 15px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .start-quote-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Integration mit bestehenden Styles */
.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.quote-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

/* ===========================================
   BREADCRUMB FIX - Doppelte Breadcrumbs verstecken
   ========================================== */

/* Verstecke Breadcrumbs in den Sektionen, aber behalte sie für JavaScript */
#quote-overview-section .quote-navigation,
#quote-form-section .quote-navigation {
    display: none !important;
}

/* Hauptnavigation sichtbar lassen */
#product-configurator > .quote-navigation:first-child {
    display: block !important;
}

/* ===========================================
   SUCCESS MODAL SYSTEM
   ========================================== */

/* Success Modal Overlay */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.success-modal-overlay.active {
    display: flex;
}

.success-modal {
    background: white;
    border-radius: 0px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.8);
    animation: modalSlideIn 0.4s ease-out forwards;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.success-modal-header {
    background: linear-gradient(135deg, #5DC1E9, #04a4e4);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.success-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.success-modal-body {
    padding: 30px;
    text-align: center;
}

.success-message {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 20px 0;
}

.countdown-section {
    background: #e7f1ff;
    padding: 0px;
    border-radius: 0px;
    margin: 20px 0;
    border: 1px solid #5DC1E9;
}

.countdown-timer {
    font-weight: 700;
    color: #5DC1E9;
    font-size: 18px;
}

.success-modal-actions {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.success-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.success-btn-primary {
    background: linear-gradient(135deg, #5DC1E9, #04a4e4);
    color: white;
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.3);
}

.success-btn-primary:hover {
    background: linear-gradient(135deg, #04a4e4, #5a8a03);
    transform: translateY(-2px);
}

.success-btn-secondary {
    background: transparent;
    color: #5DC1E9;
    border: 2px solid #5DC1E9;
}

.success-btn-secondary:hover {
    background: #5DC1E9;
    color: white;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

/* ===========================================
   CSS-VERBESSERUNGEN FÜR MOBILE UND NAVIGATION
   Fügen Sie diese Regeln zu Ihrer configurator.css hinzu
   ========================================== */

/* ===========================================
   NAVIGATION FIXES - IMMER OBEN IM CONTAINER
   ========================================== */

.quote-navigation {
    background: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 998;
    border-radius: 0px;
}

/* Navigation in allen Sektionen einheitlich */
#product-configurator .quote-navigation {
    order: -1; /* Immer als erstes Element */
    flex-basis: 100%;
}

/* Stelle sicher dass Navigation immer oben steht */
#product-configurator {
    display: flex;
    flex-direction: column;
}

.configurator-main,
.quote-overview,
#quote-form-section {
    order: 1;
}

/* ===========================================
   MOBILE GRID IMPROVEMENTS - NEBENEINANDER
   ========================================== */

/* Befestigungsoptionen - Mobile nebeneinander */
@media (max-width: 768px) {
    .mounting-options {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .mounting-option {
        padding: 10px 6px;
    }
    
    .mounting-option img {
        width: 50px;
        height: 50px;
    }
    
    .mounting-option span {
        font-size: 10px;
        line-height: 1.2;
    }
}

/* Beleuchtungsoptionen - Mobile nebeneinander */
@media (max-width: 768px) {
    .lighting-options {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        flex-direction: column;
    }
    
    .lighting-option {
        min-width: auto;
        flex: none;
        padding: 8px 4px;
        width: 100%;
    }
    
    .lighting-option img {
        width: 35px;
        height: 35px;
    }
    
    .lighting-option span {
        font-size: 10px;
    }
}

/* Größenauswahl - Mobile nebeneinander */
@media (max-width: 768px) {
    .size-picker {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .size-option {
        min-width: auto;
        flex: none;
        padding: 10px;
    }
}

/* Background-Grid - Mobile nebeneinander */
@media (max-width: 768px) {
    .background-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
    
    .background-preview {
        height: 50px !important;
    }
    
    .background-name {
        font-size: 10px;
    }
}

/* Branding-Positionen - Mobile nebeneinander */
@media (max-width: 768px) {
    .branding-position-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .branding-position-option {
        padding: 6px 4px;
    }
    
    .position-preview {
        height: 25px;
    }
    
    .position-icon {
        width: 15px;
        height: 15px;
    }
    
    .position-name {
        font-size: 10px;
    }
}

/* ===========================================
   MOBILE OPTIMIERUNGEN FÜR SEHR KLEINE BILDSCHIRME
   ========================================== */

@media (max-width: 480px) {
    /* Befestigung - 2 Spalten beibehalten */
    .mounting-options {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .mounting-option {
        padding: 8px 4px;
    }
    
    .mounting-option img {
        width: 40px;
        height: 40px;
    }
    
    .mounting-option span {
        font-size: 9px;
        line-height: 1.1;
    }
    
    /* Beleuchtung - 3 Spalten beibehalten */
    .lighting-options {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
    }
    
    .lighting-option {
        padding: 6px 3px;
    }
    
    .lighting-option img {
        width: 30px;
        height: 30px;
    }
    
    .lighting-option span {
        font-size: 9px;
    }
    
    /* Größen - 1 Spalte auf sehr kleinen Bildschirmen */
    .size-picker {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================================
   NAVIGATION BREADCRUMB MOBILE OPTIMIERUNG
   ========================================== */

@media (max-width: 768px) {
    .quote-navigation {
        padding: 12px 15px;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .quote-navigation {
        padding: 10px 12px;
    }
    
    .breadcrumb-item {
        font-size: 11px;
    }
    
    /* Breadcrumb auf sehr kleinen Bildschirmen vertikal stapeln */
    .breadcrumb {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        content: none;
    }
    
    .breadcrumb-item {
        position: relative;
        padding-left: 15px;
    }
    
    .breadcrumb-item:not(:first-child)::before {
        content: '↳';
        position: absolute;
        left: 0;
        color: #999;
    }
}

/* ===========================================
   ACCORDION MOBILE OPTIMIERUNG
   ========================================== */

@media (max-width: 768px) {
    .accordion-title {
        padding: 12px 15px;
    }
    
    .accordion-title h3 {
        font-size: 14px;
    }
    
    .accordion-content {
        padding: 15px;
    }
    
    .config-subsection {
        padding: 12px;
        margin-top: 15px;
    }
    
    .config-subsection h4 {
        font-size: 13px;
    }
}

/* ===========================================
   CONTAINER UND LAYOUT FIXES
   ========================================== */

/* Stelle sicher dass der Container korrekt fließt */
#product-configurator {
    display: block; /* Überschreibt flex wenn nötig */
}

.quote-navigation:first-child {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Für alle Sektionen */
.configurator-main,
.quote-overview,
#quote-form-section {
    margin-top: 0;
}

/* Navigation in versteckten Sektionen */
.quote-overview .quote-navigation,
#quote-form-section .quote-navigation {
    display: none !important; /* Verstecke duplizierte Navigation */
}

/* ===========================================
   IMPROVED TOUCH TARGETS FÜR MOBILE
   ========================================== */

@media (max-width: 768px) {
    .mounting-option,
    .lighting-option,
    .size-option,
    .background-option,
    .branding-position-option {
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Buttons größer für bessere Bedienbarkeit */
    .option-btn,
    .add-branding-btn,
    .clear-branding-btn,
    .export-btn {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    /* Accordion Titles größer */
    .accordion-title {
        min-height: 50px;
        display: flex;
        align-items: center;
    }
}

/* ===========================================
   ZUSÄTZLICHE MOBILE SPACING FIXES
   ========================================== */

@media (max-width: 768px) {
    #product-configurator {
        padding: 15px 10px;
    }
    
    .configurator-container {
        gap: 15px;
    }
    
    .config-section {
        margin-bottom: 12px;
    }
    
    .accordion-group {
        margin-bottom: 10px;
    }
}

/* ===========================================
   PERFORMANCE OPTIMIERUNG FÜR MOBILE
   ========================================== */

@media (max-width: 768px) {
    /* Reduziere Animationen auf mobilen Geräten */
    .mounting-option,
    .lighting-option,
    .size-option {
        transition: border-color 0.2s ease, background-color 0.2s ease;
    }
    
    /* Entferne aufwendige Transform-Animationen */
    .mounting-option:hover,
    .lighting-option:hover,
    .size-option:hover {
        transform: none;
    }
    
    /* Vereinfachte Hover-Effekte */
    .mounting-option:hover,
    .lighting-option:hover,
    .size-option:hover {
        border-color: #5DC1E9;
        background-color: #f0f8e7;
    }
}

/* ===========================================
   NEUE BELEUCHTUNGS-SEKTION CSS
   Diese Regeln zu configurator.css hinzufügen
   ========================================== */

/* Beleuchtungs-Sektion Container */
.lighting-section {
    padding: 0;
}

.lighting-info {
    background: #e7f1ff;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #5DC1E9;
    border-radius: 0px 5px 5px 0px;
}

.lighting-description {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* Beleuchtungsoptionen - Neues Design */


.lighting-option:hover {
    border-color: #5DC1E9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 193, 233, 0.2);
}

.lighting-option.selected {
    border-color: #5DC1E9;
    background-color: #e7f1ff;
    box-shadow: 0 4px 15px rgba(93, 193, 233, 0.3);
}

.lighting-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #5DC1E9;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Beleuchtungs-Vorschau */
.lighting-preview {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.lighting-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lighting-option:hover .lighting-preview img {
    transform: scale(1.1);
}

.no-lighting-icon {
    font-size: 28px;
    color: #999;
    font-weight: bold;
}

/* Beleuchtungs-Name und Details */
.lighting-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.lighting-details {
    margin-top: auto;
}

.lighting-details small {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    display: block;
    text-align: center;
}

/* Ausgewählte Beleuchtung Info-Box */
.lighting-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.lighting-info-box h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #5DC1E9;
    border-bottom: 2px solid #5DC1E9;
    padding-bottom: 8px;
}

.selected-lighting-list {
    margin-bottom: 15px;
}

.selected-lighting-item {
    background: #e7f1ff;
    border: 1px solid #5DC1E9;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-lighting-item:last-child {
    margin-bottom: 0;
}

.lighting-item-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.lighting-item-badge {
    background: #5DC1E9;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.lighting-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 10px;
    border-left: 4px solid #f39c12;
}

.lighting-note small {
    color: #856404;
    font-size: 12px;
    line-height: 1.4;
}

/* Beleuchtungs-Mehrfachauswahl Hinweis */
.lighting-multi-select-hint {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #17a2b8;
}

.lighting-multi-select-hint small {
    color: #0c5460;
    font-size: 12px;
    line-height: 1.4;
    display: block;
}

/* Deaktivierte Beleuchtungsoptionen */
.lighting-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.lighting-option.disabled::before {
    content: '🚫';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    z-index: 2;
}

/* Responsive Design für Beleuchtung */
@media (max-width: 768px) {
    .lighting-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .lighting-option {
        padding: 15px 10px;
        min-height: 120px;
    }
    
    .lighting-preview {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .lighting-name {
        font-size: 12px;
    }
    
    .lighting-details small {
        font-size: 10px;
    }
    
    .lighting-info-box {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .lighting-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .lighting-option {
        padding: 12px 8px;
        min-height: 100px;
    }
    
    .lighting-preview {
        width: 40px;
        height: 40px;
    }
    
    .no-lighting-icon {
        font-size: 20px;
    }
}

/* Animation für Beleuchtungs-Selektion */
.lighting-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lighting-option.selected {
    animation: lightingSelected 0.5s ease-out;
}

@keyframes lightingSelected {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(93, 193, 233, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(93, 193, 233, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(93, 193, 233, 0.3);
    }
}

/* Hover-Effekt für bessere UX */
.lighting-option:not(.disabled):hover .lighting-name {
    color: #5DC1E9;
}

.lighting-option:not(.disabled):hover .lighting-preview {
    border-color: #5DC1E9;
    box-shadow: 0 2px 8px rgba(93, 193, 233, 0.2);
}

/* Integration mit dem bestehenden Accordion */
.config-section .lighting-section {
    padding: 0;
}

.config-section .lighting-section .lighting-info:first-child {
    margin-top: 0;
}

/* Spezielle Styles für "Keine Beleuchtung" Option */
.lighting-option[data-lighting="none"] {
    border-style: dashed;
}

.lighting-option[data-lighting="none"] .lighting-preview {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

/* Tooltips für Beleuchtungsoptionen */
.lighting-option[title] {
    position: relative;
}

.lighting-option[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease-out forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* CSS-Ergänzungen für erweiterte Formular-Felder */
/* Diese Styles zu configurator.css hinzufügen */

/* ===========================================
   ERWEITERTE FORMULAR-STYLES
   ========================================== */

/* Field Help Text */
.field-help {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.3;
}

/* Select Dropdown Styling */
.form-section select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="5" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-section select:focus {
    outline: none;
    border-color: #5DC1E9;
    box-shadow: 0 0 0 2px rgba(93, 193, 233, 0.2);
}

.form-section select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

/* Radio Button Group */
.radio-group {
    margin-top: 10px;
}

.radio-option {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.radio-option:last-child {
    margin-bottom: 0;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    gap: 10px;
    margin: 0 !important;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.3s ease;
    background: white;
}

.radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5DC1E9;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-label .radio-custom {
    border-color: #5DC1E9;
    background: white;
}

.radio-option input[type="radio"]:checked + .radio-label .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label:hover .radio-custom {
    border-color: #5DC1E9;
    box-shadow: 0 0 0 2px rgba(122, 181, 29, 0.1);
}

/* Transport Details Box */
.transport-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    border-left: 4px solid #5DC1E9;
}

.transport-info-box h5 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #5DC1E9;
}

/* Service Options Layout */
.service-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.service-option-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-option-card:hover {
    border-color: #5DC1E9;
    box-shadow: 0 4px 12px rgba(122, 181, 29, 0.1);
}

.service-option-card.selected {
    border-color: #5DC1E9;
    background: #e7f1ff;
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.2);
}

/* Form Section Dividers */
.form-section-title {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    color: #5DC1E9;
    margin: 30px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #5DC1E9;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #5DC1E9;
    border-radius: 2px;
}

/* Enhanced Input Focus States */
.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
    outline: none;
    border-color: #5DC1E9;
    box-shadow: 0 0 0 2px rgba(93, 193, 233, 0.2);
    transform: translateY(-1px);
}

/* Required Field Indicators */
.form-section label[for] {
    position: relative;
}

.form-section label[for]::after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
    font-weight: bold;
}

.form-section label:not([for*="required"])::after {
    content: none;
}

/* Date Input Styling */
.form-section input[type="date"] {
    position: relative;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23666" d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Error States */
.form-section input.error,
.form-section textarea.error,
.form-section select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.form-section .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Success States */
.form-section input.success,
.form-section textarea.success,
.form-section select.success {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

/* Loading States für Formular */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #5DC1E9;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-col {
        margin-bottom: 15px;
    }
    
    .transport-info-box {
        padding: 15px;
    }
    
    .service-options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .radio-label {
        font-size: 13px;
    }
    
    .form-section-title {
        font-size: 16px;
        margin: 25px 0 15px 0;
    }
}

@media (max-width: 480px) {
    .form-section {
        margin-bottom: 15px;
    }
    
    .form-section input,
    .form-section textarea,
    .form-section select {
        padding: 10px;
        font-size: 13px;
    }
    
    .transport-info-box {
        padding: 12px;
    }
    
    .form-section-title {
        font-size: 15px;
        margin: 20px 0 12px 0;
    }
    
    .radio-custom {
        width: 16px;
        height: 16px;
    }
    
    .radio-custom::after {
        width: 6px;
        height: 6px;
    }
}

/* Animation für conditional Fields */
#transport_details {
    overflow: hidden;
    transition: all 0.3s ease;
}

#transport_details.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 300px;
        transform: translateY(0);
    }
}

/* Improved Focus Management */
.form-section input:focus-visible,
.form-section textarea:focus-visible,
.form-section select:focus-visible {
    outline: 2px solid #5DC1E9;
    outline-offset: 2px;
}

/* Better Typography Hierarchy */
.form-section label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    margin-top: 12px;
    display: block;
    line-height: 1.4;
}

.form-section small {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* Enhanced Button Styling */
.submit-quote-btn {
    position: relative;
    overflow: hidden;
color: #FFF !important;
  border-color: #FFF !important;
}

.submit-quote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-quote-btn:hover::before {
    left: 100%;
}

/* Gruppierte Branding-Position Controls */
.position-controls {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.add-logo-btn, .remove-logo-btn {
    padding: 4px 8px;
    font-size: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 28px;
    white-space: nowrap;
}

.add-logo-btn {
    background: #5DC1E9;
    color: white;
    border-color: #5DC1E9;
}

.add-logo-btn:hover {
    background: #04a4e4;
    transform: translateY(-1px);
}

.remove-logo-btn {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.remove-logo-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

/* Branding Position Cards */
.branding-position-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    background: white;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.branding-position-option:hover {
    border-color: #5DC1E9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 193, 233, 0.2);
}

.branding-position-option.active {
    border-color: #28a745;
    background-color: #d4edda;
}

.branding-position-option.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #28a745;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Position Preview und Icons */
.position-preview {
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.position-icon {
    width: 20px;
    height: 20px;
    background: #5DC1E9;
    border-radius: 4px;
}

/* Gruppierte Icons - zeigen mehrere Elemente */
.position-icon.group-icon {
    position: relative;
    background: #5DC1E9;
}

.position-icon.group-icon::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #04a4e4;
    border-radius: 3px;
    border: 1px solid white;
}

.position-icon.group-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 14px;
    height: 14px;
    background: #0392d1;
    border-radius: 2px;
    border: 1px solid white;
    z-index: 1;
}

.position-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    line-height: 1.2;
}

/* Grid Layout für Positionen */
.branding-position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

/* Verstecke die alten branding-actions */
.branding-actions {
    display: none !important;
}

/* Spezielle Styling für verschiedene Befestigungstypen */
.branding-position-option[data-type="group"] {
    border-style: dashed;
    border-width: 2px;
}

.branding-position-option[data-type="group"]:hover {
    border-style: solid;
}

.branding-position-option[data-type="group"].active {
    border-style: solid;
    border-color: #28a745;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .branding-position-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .branding-position-option {
        padding: 12px 8px;
        min-height: 100px;
    }
    
    .position-preview {
        height: 25px;
        margin-bottom: 6px;
    }
    
    .position-icon {
        width: 16px;
        height: 16px;
    }
    
    .position-icon.group-icon::after {
        top: 2px;
        left: 2px;
        width: 12px;
        height: 12px;
    }
    
    .position-icon.group-icon::before {
        top: 4px;
        left: 4px;
        width: 10px;
        height: 10px;
    }
    
    .position-name {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .add-logo-btn, .remove-logo-btn {
        padding: 3px 6px;
        font-size: 9px;
        min-height: 24px;
    }
    
    .position-controls {
        margin-top: 8px;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .branding-position-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    
    .branding-position-option {
        padding: 10px 6px;
        min-height: 90px;
    }
    
    .position-controls {
        flex-direction: column;
        gap: 3px;
    }
    
    .add-logo-btn, .remove-logo-btn {
        width: 100%;
        min-height: 22px;
        font-size: 8px;
    }
}

/* Hover-Effekte für bessere UX */
.branding-position-option[data-type="group"]:hover .position-icon.group-icon {
    animation: groupIconPulse 0.6s ease-in-out;
}

@keyframes groupIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Tooltip für Gruppierungen */
.branding-position-option[data-type="group"] .position-name::after {
    content: ' (4-Seitig)';
    font-size: 10px;
    color: #666;
    font-weight: normal;
    font-style: italic;
}

@media (max-width: 480px) {
    .branding-position-option[data-type="group"] .position-name::after {
        content: '';
    }
}

/* Elegante Symbol-Buttons für Branding-Positionen */
.position-controls {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.add-logo-btn, .remove-logo-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.add-logo-btn:hover, .remove-logo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.add-logo-btn {
    border-color: #5DC1E9;
    color: #5DC1E9;
}

.add-logo-btn:hover {
    background: #5DC1E9;
    color: white;
}

.remove-logo-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.remove-logo-btn:hover {
    background: #dc3545;
    color: white;
}

.btn-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    user-select: none;
}

.hidden {
    display: none !important;
}

/* Verbesserte Branding-Position Cards */
.branding-position-option {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: default;
}

.branding-position-option:hover {
    border-color: #5DC1E9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 193, 233, 0.15);
}

.branding-position-option.active {
    border-color: #28a745;
    background-color: #f8fff9;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.branding-position-option.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Position Preview und Icons */
.position-preview {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.position-icon {
    width: 24px;
    height: 24px;
    background: #5DC1E9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.branding-position-option:hover .position-icon {
    background: #04a4e4;
    transform: scale(1.1);
}

/* Gruppierte Icons - zeigen mehrere Elemente */
.position-icon.group-icon {
    position: relative;
    background: #5DC1E9;
}

.position-icon.group-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    background: #04a4e4;
    border-radius: 4px;
    border: 2px solid white;
}

.position-icon.group-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 14px;
    height: 14px;
    background: #0392d1;
    border-radius: 3px;
    border: 2px solid white;
    z-index: 1;
}

.position-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
    line-height: 1.3;
}

/* Spezielle Styling für Gruppierungen */
.branding-position-option[data-type="group"] {
    border-style: dashed;
    background: linear-gradient(135deg, #fafafa, #ffffff);
}

.branding-position-option[data-type="group"]:hover {
    border-style: solid;
    background: linear-gradient(135deg, #f0f8ff, #ffffff);
}

.branding-position-option[data-type="group"].active {
    border-style: solid;
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9, #ffffff);
}

/* Tooltip für Gruppen */
.branding-position-option[data-type="group"] .position-name::after {
    content: ' (4-Seitig)';
    font-size: 11px;
    color: #666;
    font-weight: normal;
    font-style: italic;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .branding-position-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .branding-position-option {
        padding: 15px 10px;
        min-height: 120px;
    }
    
    .position-preview {
        height: 30px;
        margin-bottom: 8px;
    }
    
    .position-icon {
        width: 20px;
        height: 20px;
    }
    
    .position-icon.group-icon::after {
        top: 3px;
        left: 3px;
        width: 14px;
        height: 14px;
    }
    
    .position-icon.group-icon::before {
        top: 6px;
        left: 6px;
        width: 10px;
        height: 10px;
    }
    
    .position-name {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .add-logo-btn, .remove-logo-btn {
        width: 28px;
        height: 28px;
    }
    
    .btn-icon {
        font-size: 16px;
    }
    
    .position-controls {
        margin-top: 8px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .branding-position-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .branding-position-option {
        padding: 12px 8px;
        min-height: 100px;
    }
    
    .add-logo-btn, .remove-logo-btn {
        width: 26px;
        height: 26px;
    }
    
    .btn-icon {
        font-size: 14px;
    }
    
    .branding-position-option[data-type="group"] .position-name::after {
        content: '';
    }
}

/* Hover-Animationen für bessere UX */
.branding-position-option[data-type="group"]:hover .position-icon.group-icon {
    animation: groupIconPulse 0.6s ease-in-out;
}

@keyframes groupIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Sanfte Einblend-Animation für neue Buttons */
.position-controls {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   BRANDING-LOGO ZENTRIERUNG - HAUPTKORREKTUR
   Diese CSS-Regeln zu configurator.css hinzufügen
   ===================================================== */

/* Branding Elements - zentrale Positionierung */
.branding-element {
    position: absolute;
    z-index: 2;
    cursor: pointer;
    
    /* HAUPTKORREKTUR: Zentrierung für alle Logos */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Transform-Origin auf center setzen */
    transform-origin: center center;
    transform-style: preserve-3d;
    
    /* Transition für sanfte Animationen */
    transition: all 0.3s ease;
}

/* Logo-Bild innerhalb des Branding-Elements */
.branding-element img {
    /* KRITISCH: max-width/max-height statt feste width/height */
    max-width: 100%;
    max-height: 100%;
    
    /* Automatische Größenanpassung bei unterschiedlichen Seitenverhältnissen */
    width: auto;
    height: auto;
    
    /* Zentrierte Ausrichtung */
    object-fit: contain;
    object-position: center;
    
    /* Verhindere Verzerrung */
    aspect-ratio: auto;
}

/* Hover-Effekt für Branding-Elemente */
.branding-element:hover {
    filter: drop-shadow(0 0 8px rgba(122, 181, 29, 0.6));
    transform: scale(1.05);
}

/* Spezifische Anpassungen für verschiedene Logo-Formate */
.branding-element[data-format="square"] img {
    /* Quadratische Logos (300x300) */
    max-width: 100%;
    max-height: 100%;
}

.branding-element[data-format="wide"] img {
    /* Breite Logos (300x100) - begrenzte Höhe */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.branding-element[data-format="tall"] img {
    /* Hohe Logos (100x300) - begrenzte Breite */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Responsive Anpassungen für Branding */
@media (max-width: 768px) {
    .branding-element {
        /* Auf mobilen Geräten etwas kleinere Hover-Effekte */
        transition: all 0.2s ease;
    }
    
    .branding-element:hover {
        transform: scale(1.02);
        filter: drop-shadow(0 0 5px rgba(122, 181, 29, 0.5));
    }
}

/* Verbesserte Branding-Overlay Zentrierung */
.branding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    
    /* Verbesserte Darstellung für 3D-Transforms */
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Debug-Hilfe - kann entfernt werden nach Tests */
.branding-element.debug {
    border: 1px dashed red;
    background: rgba(255, 0, 0, 0.1);
}

.branding-element.debug::before {
    content: 'Logo-Container';
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 10px;
    color: red;
    background: white;
    padding: 2px;
}