/* Gott3D Frontend Styles */

.gott3d-configurator {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tabs */
.gott3d-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
}
.gott3d-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gott3d-tab:hover { color: #333; }
.gott3d-tab.active {
    color: #ff6600;
    border-bottom-color: #ff6600;
}
.gott3d-tab-icon { font-size: 18px; }

.gott3d-tab-content { display: none; }
.gott3d-tab-content.active { display: block; }

/* Layout: 3 columns */
.gott3d-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(300px, 3fr) minmax(220px, 1fr);
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 1024px) {
    .gott3d-layout {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .gott3d-viewer-panel {
        grid-column: 1 / -1;
        order: -1;
    }
    .gott3d-3d-viewer,
    .gott3d-three-viewer {
        min-height: 50vw;
        max-height: 500px;
    }
}
@media (max-width: 768px) {
    .gott3d-layout {
        grid-template-columns: 1fr;
    }
    .gott3d-3d-viewer,
    .gott3d-three-viewer {
        min-height: 60vw;
        max-height: 400px;
    }
    .gott3d-tabs {
        overflow-x: auto;
    }
    .gott3d-tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* Upload Zone */
.gott3d-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
.gott3d-upload-zone .gott3d-file-input {
    display: none;
}
.gott3d-upload-inner {
    padding: 30px 20px;
    cursor: pointer;
    display: block;
}
.gott3d-upload-zone:hover,
.gott3d-upload-zone.gott3d-dragover {
    border-color: #ff6600;
    background: #fff8f0;
}
.gott3d-upload-zone .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #999;
    margin-bottom: 8px;
}
.gott3d-upload-hint {
    font-size: 12px;
    color: #999;
}

/* Progress Bar */
.gott3d-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 12px 16px;
}
.gott3d-progress-fill {
    height: 100%;
    background: #ff6600;
    border-radius: 3px;
    width: 0;
    transition: width 0.3s;
}

/* File Info */
.gott3d-file-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.gott3d-file-name {
    font-size: 14px;
    margin: 0 0 8px 0;
    word-break: break-all;
}
.gott3d-model-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

/* Options */
.gott3d-option-group {
    margin-bottom: 16px;
}
.gott3d-option-group > label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
}
.gott3d-option-group select,
.gott3d-option-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Radio Groups */
.gott3d-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gott3d-radio-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.gott3d-radio-group label:has(input:checked) {
    border-color: #ff6600;
    background: #fff8f0;
}
.gott3d-radio-group small {
    color: #999;
    font-size: 11px;
}

/* Color Picker */
.gott3d-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.gott3d-color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}
.gott3d-color-option:hover {
    transform: scale(1.15);
}
.gott3d-color-option.selected {
    border-color: #333;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}
.gott3d-color-option.gott3d-out-of-stock {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 3D Viewer Layout — Stage haelt Toolbar + Canvas zusammen (Toolbar position:absolute referenziert Stage) */
.gott3d-viewer-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}
.gott3d-viewer-stage {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.gott3d-3d-viewer,
.gott3d-three-viewer,
.gott3d-kiri-viewer {
    width: 100%;
    flex: 1;
    min-height: 600px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.gott3d-3d-viewer canvas,
.gott3d-three-viewer canvas {
    border-radius: 12px;
}
.gott3d-viewer-placeholder {
    text-align: center;
    color: #999;
    padding-top: 200px;
}

/* Price Panel */
.gott3d-price-panel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    min-width: 0;
    word-break: break-word;
}
.gott3d-price-summary h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
}
.gott3d-price-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    gap: 8px;
}
.gott3d-price-line span:first-child {
    flex: 1;
    min-width: 0;
}
.gott3d-price-line span:last-child {
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}
.gott3d-price-bold {
    font-weight: 600;
}
.gott3d-price-total {
    font-size: 18px;
    font-weight: 700;
    color: #ff6600;
    padding-top: 8px;
}
.gott3d-price-divider {
    border-top: 1px solid #ddd;
    margin: 8px 0;
}

/* Lead Times */
.gott3d-lead-times {
    margin-top: 20px;
}
.gott3d-lead-times h3 {
    font-size: 14px;
    margin: 0 0 12px 0;
}
.gott3d-lead-time-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    min-width: 0;
}
.gott3d-lead-time-option:has(input:checked) {
    border-color: #ff6600;
    background: #fff8f0;
}
.gott3d-lt-name {
    font-weight: 600;
    flex: 1 1 100%;
    min-width: 0;
    word-break: break-word;
}
.gott3d-lt-days {
    color: #666;
    white-space: nowrap;
    font-size: 12px;
}
.gott3d-lt-price {
    font-weight: 700;
    white-space: nowrap;
}
.gott3d-delivery-date {
    text-align: center;
    margin-top: 12px;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 14px;
}

/* Add to Cart */
.gott3d-add-to-cart {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 16px;
    background: #ff6600 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s;
}
.gott3d-add-to-cart:hover:not(:disabled) {
    background: #e55500 !important;
}
.gott3d-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* DFM Panel */
.gott3d-dfm-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}
.gott3d-dfm-panel h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}
.gott3d-dfm-item {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.gott3d-dfm-item:last-child { border-bottom: none; }
.gott3d-dfm-warning { color: #e65100; }
.gott3d-dfm-error { color: #c62828; }
.gott3d-dfm-info { color: #1565c0; }

/* Features Panel */
.gott3d-features-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.gott3d-features-panel h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: #222;
}
.gott3d-feature-item {
    padding: 6px 8px;
    font-size: 12px;
    color: #333;
    border-radius: 6px;
    margin: 2px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    transition: background 0.15s;
}
.gott3d-feature-item:hover {
    background: #f5f7fa;
}
.gott3d-features-confirm {
    margin: 10px 0 0 0;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #888;
}
.gott3d-features-confirm label { cursor: pointer; }
.gott3d-features-confirm input[type="checkbox"] { margin-right: 6px; }

/* Gewinde-Dropdown Styling */
.gott3d-thread-select {
    font-size: 11px !important;
    padding: 3px 6px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: #fafafa !important;
    color: #555 !important;
    cursor: pointer;
    outline: none !important;
    margin-left: auto;
    min-width: 110px;
}
.gott3d-thread-select:hover { border-color: #bbb !important; background: #f0f0f0 !important; }
.gott3d-thread-select:focus { border-color: #1565c0 !important; box-shadow: 0 0 0 2px rgba(21,101,192,0.1) !important; }

/* Setup-Header im Features-Panel */
.gott3d-setup-header {
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.gott3d-setup-header:empty { display: none; }
.gott3d-setup-badge {
    display: inline-flex;
    align-items: center;
    background: #eef5ff;
    border: 1px solid #d0dfff;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.gott3d-setup-badge.is-4axis {
    background: #e0f7fa;
    border-color: #80deea;
    color: #006064;
}
.gott3d-setup-badge.is-5axis {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #bf360c;
}
.gott3d-setup-count {
    color: #888;
    font-size: 11px;
}
.gott3d-setup-rotary-btn {
    font-size: 11px !important;
    padding: 3px 10px !important;
    height: auto !important;
    line-height: 1.4 !important;
    border-radius: 6px !important;
    border: 1px solid #80deea !important;
    background: #e0f7fa !important;
    color: #006064 !important;
    cursor: pointer;
    margin-left: auto;
}
.gott3d-setup-rotary-btn:hover {
    background: #b2ebf2 !important;
}

/* Feature-Gruppen pro Aufspannung */
.gott3d-setup-group {
    margin: 0 0 8px 0;
    padding: 8px 10px;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px solid #eee;
}
.gott3d-setup-group.is-4axis { background: #f0fafb; border-color: #d4eff2; }
.gott3d-setup-group.is-5axis { background: #fdf8f0; border-color: #f0e4d0; }
.gott3d-setup-group-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1565c0;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.gott3d-setup-group.is-4axis .gott3d-setup-group-title { color: #006064; }
.gott3d-setup-group.is-5axis .gott3d-setup-group-title { color: #bf360c; }
.gott3d-setup-group-ungrouped {
    margin-top: 6px;
}
.gott3d-setup-group-ungrouped .gott3d-setup-group-title { color: #999; }

/* Gruppen-Überschriften im Preis-Breakdown */
.gott3d-price-group-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 10px 0 4px 0;
    padding-bottom: 2px;
    border-bottom: 1px solid #eee;
}
.gott3d-price-group-header:first-child { margin-top: 2px; }

/* Laser */
.gott3d-size-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gott3d-size-inputs input {
    width: 80px !important;
}
.gott3d-laser-preview-large {
    width: 100%;
    min-height: 400px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gott3d-laser-preview-large img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Viewer Toolbar — floating bottom-center inside viewer (MakerWorld-Stil) */
.gott3d-viewer-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    max-width: 95%;
}
.gott3d-toolbar-sep {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.12);
    margin: 0 3px;
    flex-shrink: 0;
}
.gott3d-toolbar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: #444;
    transition: all 0.15s ease;
    line-height: 1;
    font-family: inherit;
}
.gott3d-btn-axis {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: #ff6600;
    border-radius: 3px;
    padding: 1px 3px;
    line-height: 1;
    pointer-events: none;
}
.gott3d-toolbar-btn svg {
    flex-shrink: 0;
}
.gott3d-toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}
.gott3d-toolbar-btn:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(0.97);
}
.gott3d-toolbar-btn-accent {
    color: #ff6600;
    font-weight: 600;
}
.gott3d-toolbar-btn-accent:hover {
    background: rgba(255, 102, 0, 0.08);
}
.gott3d-toolbar-separator {
    display: none;
}

/* Toolbar Active State (toggleable buttons) */
.gott3d-toolbar-btn-active {
    background: #333 !important;
    color: #fff !important;
    border-color: #333 !important;
}
.gott3d-toolbar-btn-active:hover {
    background: #444 !important;
}

/* Druckanalyse-/DFM-Host: lebt im price-panel oben, automatisch eingeblendet nach Berechnung */
.gott3d-analysis-host {
    display: block;
    margin-bottom: 16px;
}
.gott3d-analysis-host:empty {
    display: none;
}
.gott3d-analysis-host .gott3d-analysis-overlay {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
}
.gott3d-analysis-host .gott3d-analysis-overlay h3 {
    font-size: 15px;
    margin: 0 0 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gott3d-analysis-host .gott3d-analysis-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 4px;
}
.gott3d-analysis-host .gott3d-analysis-close:hover {
    color: #333;
}

/* Clip Plane Slider — schwebt unten im Viewer, damit er nicht mit der oben liegenden Toolbar kollidiert */
.gott3d-clip-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 500;
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 10;
}
.gott3d-clip-slider label {
    white-space: nowrap;
    color: #555;
}
.gott3d-clip-range {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}
.gott3d-clip-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.gott3d-clip-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Dimensions Overlay */
.gott3d-dimensions-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    pointer-events: none;
}
.gott3d-dim-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.gott3d-dim-label {
    color: #888;
    font-weight: 600;
    display: inline-block;
    width: 20px;
}

/* ==================== Analysis Overlay ==================== */
/* (alte absolute-overlay-Regeln entfernt — Druckanalyse lebt jetzt im price-panel via .gott3d-analysis-host) */
.gott3d-analysis-close:hover {
    color: #333;
}

/* Analysis Check Items */
.gott3d-analysis-section {
    margin-bottom: 16px;
}
.gott3d-analysis-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gott3d-check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 13px;
    background: #f8f9fa;
    transition: background 0.15s;
}
.gott3d-check-item:hover {
    background: #f0f1f3;
}
.gott3d-check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.gott3d-check-ok { background: #4caf50; }
.gott3d-check-warn { background: #ff9800; }
.gott3d-check-error { background: #f44336; }
.gott3d-check-info { background: #2196f3; }
.gott3d-check-text {
    flex: 1;
    min-width: 0;
}
.gott3d-check-text strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}
.gott3d-check-text small {
    color: #777;
    font-size: 11px;
}

/* Feature List (clickable) */
.gott3d-analysis-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.gott3d-analysis-feature:hover {
    background: #fff3e0;
    border-color: #ff6600;
}
.gott3d-analysis-feature.active {
    background: #fff3e0;
    border-color: #ff6600;
}
.gott3d-feature-icon {
    flex-shrink: 0;
    font-size: 16px;
}
.gott3d-feature-info {
    flex: 1;
    min-width: 0;
}
.gott3d-feature-info strong {
    display: block;
    font-size: 13px;
}
.gott3d-feature-info small {
    color: #777;
    font-size: 11px;
}
.gott3d-feature-arrow {
    color: #ccc;
    font-size: 14px;
}

/* Overhang Slider (3D Print Analysis) */
.gott3d-overhang-slider {
    margin-top: 12px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 8px;
}
.gott3d-overhang-slider label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.gott3d-overhang-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #4caf50, #ff9800, #f44336);
    border-radius: 3px;
    outline: none;
}
.gott3d-overhang-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 2px solid #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.gott3d-overhang-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 2px solid #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Support Estimate */
.gott3d-support-estimate {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff3e0;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}
.gott3d-support-percent {
    font-size: 22px;
    font-weight: 700;
    color: #e65100;
}

/* Analysis Legend */
.gott3d-analysis-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}
.gott3d-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
}
.gott3d-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Slicer Info Box */
.gott3d-slicer-info {
    margin-top: 12px;
    padding: 10px 12px;
    background: #e3f2fd;
    border-radius: 8px;
    font-size: 12px;
}
.gott3d-slicer-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

/* Responsive Analysis Overlay */
@media (max-width: 768px) {
    /* (alte responsive-overlay Regel entfernt) */
}

/* Fullscreen adjustments */
.gott3d-viewer-panel:fullscreen {
    background: #f0f0f0;
}
.gott3d-viewer-panel:fullscreen .gott3d-3d-viewer {
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
}
.gott3d-viewer-panel:fullscreen .gott3d-viewer-toolbar {
    border-radius: 0;
}
.gott3d-viewer-panel:fullscreen .gott3d-3d-viewer canvas {
    border-radius: 0;
}

/* Filament Color Mapping (MakerWorld-Stil) */
.gott3d-filament-slots {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gott3d-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.15s;
}
.gott3d-color-row:hover {
    background: #f0f1f3;
}
.gott3d-color-orig,
.gott3d-color-target {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
    display: inline-block;
}
.gott3d-color-target {
    cursor: pointer;
    border-color: #bbb;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.gott3d-color-target:hover {
    transform: scale(1.15);
    border-color: #ff6600;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff6600;
}
.gott3d-color-arrow {
    flex-shrink: 0;
}

/* Farb-Popup */
.gott3d-color-popup {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: 1px solid #e0e0e0;
    width: 260px;
    max-height: 340px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.gott3d-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}
.gott3d-popup-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 0 2px;
    line-height: 1;
}
.gott3d-popup-close:hover { color: #333; }
.gott3d-popup-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 8px;
}
.gott3d-popup-tab {
    padding: 8px 12px;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}
.gott3d-popup-tab:hover { color: #333; }
.gott3d-popup-tab.active {
    color: #ff6600;
    border-bottom-color: #ff6600;
}
.gott3d-popup-content {
    padding: 10px 14px;
    overflow-y: auto;
    flex: 1;
}
.gott3d-popup-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.gott3d-popup-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-block;
}
.gott3d-popup-dot:hover {
    transform: scale(1.15);
    border-color: #333;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #333;
}
.gott3d-popup-dot.gott3d-out-of-stock {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==================== ViewCube ==================== */
.gott3d-viewcube-wrap {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 15;
    width: 56px;
    height: 56px;
    perspective: 250px;
    cursor: pointer;
}
.gott3d-viewcube {
    width: 56px;
    height: 56px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.05s linear;
}
.gott3d-vc-face {
    position: absolute;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: #555;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.15);
    backface-visibility: visible;
    user-select: none;
    transition: background 0.15s;
}
.gott3d-vc-face:hover {
    background: #fff3e0;
    color: #ff6600;
    border-color: #ff6600;
}
.gott3d-vc-front  { transform: translateZ(28px); }
.gott3d-vc-back   { transform: rotateY(180deg) translateZ(28px); }
.gott3d-vc-right  { transform: rotateY(90deg) translateZ(28px); }
.gott3d-vc-left   { transform: rotateY(-90deg) translateZ(28px); }
.gott3d-vc-top    { transform: rotateX(90deg) translateZ(28px); }
.gott3d-vc-bottom { transform: rotateX(-90deg) translateZ(28px); }

/* ==================== Filament Slots (Multicolor) ==================== */
.gott3d-filament-slot {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.gott3d-slot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}
.gott3d-slot-header strong {
    font-size: 12px;
}
.gott3d-slot-material {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 6px;
}
.gott3d-slot-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.gott3d-slot-colors .gott3d-color-option {
    width: 26px;
    height: 26px;
}

/* Slice-Status Spinner */
.gott3d-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('/wp-content/uploads/2026/02/Logo-1.png') center/contain no-repeat;
    animation: gott3d-spin 2s ease-in-out infinite, gott3d-pulse 1.5s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes gott3d-spin {
    to { transform: rotate(360deg); }
}
