/* =====================================================================================
   page-3d-schilder.css – "3D-Schild bestellen" Konfigurator
   Importiert alle generischen .studio-* Stile aus page-3ddruck-studio.css
   und ergänzt schilderspezifische Klassen und den page-class-Prefix.
   ===================================================================================== */
@import url('page-3ddruck-studio.css');
@import url('page-so-wirds-gemacht.css');

/* ── Elementor-Container-Fix für diese Seite ─────────────────────────────── */
.elementor-3d-schilder .e-con-boxed {
    --display: flex;
}

.elementor-3d-schilder .e-con-boxed>.e-con-inner {
    display: flex;
    flex-direction: column;
}

/* ── Abmessungen-Anzeige (Breite × Höhe wird dynamisch befüllt) ──────────── */
.studio-config-dim-display {
    font-family: var(--e-global-typography-e5f7065-font-family, "Syne"), sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--e-global-color-primary, #fff);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

/* ── Hilfstext unter einer Config-Gruppe ─────────────────────────────────── */
.studio-config-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    line-height: 1.4;
}

/* ── Click-Hint-Overlay auf Canvas ──────────────────────────────────────── */
.studio-click-hint {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 14px 6px 10px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: none;
    white-space: nowrap;
    animation: hint-pulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes hint-pulse {

    0%,
    100% {
        opacity: 0.75;
    }

    50% {
        opacity: 1;
    }
}

/* ── Pfad-Panel Header (Label + Hide-Button) ─────────────────────────────── */
.studio-path-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* ── Label für ausgewählten Pfad ─────────────────────────────────────────── */
.studio-selected-path-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    letter-spacing: 0.03em;
}

/* ── Ausblenden/Einblenden-Button ────────────────────────────────────────── */
.studio-path-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    padding: 3px 8px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.studio-path-remove-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Raster-zu-SVG-Tracer-Dialog ────────────────────────────────────────────── */
.tracer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tracer-overlay[hidden] {
    display: none !important;
}

.tracer-dialog {
    background: #1a1e2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    color: #fff;
}

.tracer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tracer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    font-family: var(--e-global-typography-e5f7065-font-family, "Syne"), sans-serif;
}

.tracer-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.tracer-close:hover {
    color: #fff;
}

.tracer-previews {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.tracer-preview-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tracer-preview-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.tracer-canvas-el,
.tracer-svg-preview {
    width: 100%;
    aspect-ratio: auto;
    min-height: 140px;
    background: #0d1017;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

.tracer-canvas-el {
    max-width: 100%;
    height: auto;
}

.tracer-svg-preview {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.tracer-svg-preview svg {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
}

.tracer-arrow {
    font-size: 1.6rem;
    color: rgba(0, 255, 246, 0.55);
    user-select: none;
}

.tracer-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.tracer-ctrl-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tracer-ctrl-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tracer-ctrl-label span {
    color: #00fff6;
    font-weight: 700;
}

.tracer-ctrl-range {
    width: 100%;
    accent-color: #00fff6;
    cursor: pointer;
}

.tracer-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.32);
    margin: 0 0 20px;
}

.tracer-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.tracer-btn-cancel {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.tracer-btn-cancel:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.tracer-btn-apply {
    background: #00fff6;
    color: #0d1017;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
}

.tracer-btn-apply:hover {
    background: #33fff8;
}

@media (max-width: 540px) {
    .tracer-previews {
        grid-template-columns: 1fr;
    }

    .tracer-arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .studio-viewer-wrap {
        aspect-ratio: 3 / 2;
    }

    .studio-upload-zone {
        width: 90%;
        padding: 20px 16px;
        gap: 8px;
    }

    .studio-upload-icon svg {
        width: 40px;
        height: 40px;
    }

    .studio-upload-title {
        font-size: 1rem;
    }

    .studio-upload-btn {
        padding: 8px 22px;
        font-size: 0.85rem;
    }

    .studio-upload-hint {
        font-size: 0.72rem;
    }
}