/* ═══════════════════════════════════════════════════════════════════════════
   DTF Designer – Premium UI  ·  Glassmorphism / Apple-Style
   Brand: #E8590C  ·  Backdrop-blur · Soft shadows · Ultra-rounded
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --dtf-brand:          #E8590C;
    --dtf-brand-dark:     #c44b08;
    --dtf-brand-light:    rgba(232, 89, 12, .12);
    --dtf-brand-glow:     rgba(232, 89, 12, .35);

    /* Glass */
    --dtf-glass:          rgba(255, 255, 255, .72);
    --dtf-glass-border:   rgba(255, 255, 255, .55);
    --dtf-glass-dark:     rgba(255, 255, 255, .45);
    --dtf-blur:           blur(20px);
    --dtf-blur-sm:        blur(10px);

    /* Text */
    --dtf-text:           #111111;
    --dtf-text-muted:     rgba(60, 60, 67, .55);
    --dtf-text-secondary: #3c3c43;

    /* Backgrounds */
    --dtf-bg-page:        #f2f2f7;  /* iOS-grau */
    --dtf-bg-card:        rgba(255, 255, 255, .80);
    --dtf-bg-input:       rgba(120, 120, 128, .08);

    /* Borders */
    --dtf-border:         rgba(60, 60, 67, .12);
    --dtf-border-strong:  rgba(60, 60, 67, .22);

    /* Shadows */
    --dtf-shadow-sm:      0 2px 8px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
    --dtf-shadow:         0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
    --dtf-shadow-lg:      0 20px 60px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.08);
    --dtf-shadow-brand:   0 8px 24px var(--dtf-brand-glow);

    /* Radius */
    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  20px;
    --r-xl:  28px;
    --r-full: 999px;

    /* Transitions */
    --ease:   cubic-bezier(.4, 0, .2, 1);
    --t-fast: 150ms var(--ease);
    --t-med:  250ms var(--ease);
    --t-slow: 400ms var(--ease);
}

/* ── Seiten-Hintergrund (nur innerhalb des Wrappers) ─────────────────────── */
.dtf-designer-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--dtf-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    background: var(--dtf-bg-page);
    border-radius: var(--r-xl);
    box-sizing: border-box;
    position: relative;

    /* Subtiler Hintergrund-Gradient */
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(232,89,12,.07) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(100,100,220,.05) 0%, transparent 60%);
}

.dtf-designer-wrap *, .dtf-designer-wrap *::before, .dtf-designer-wrap *::after {
    box-sizing: border-box;
}

.dtf-hidden { display: none !important; }

/* ── Modus-Umschalter (Pill-Tabs) ────────────────────────────────────────── */
.dtf-mode-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--dtf-bg-input);
    border-radius: var(--r-full);
    padding: 5px;
    margin-bottom: 32px;
    border: 1px solid var(--dtf-border);
    backdrop-filter: var(--dtf-blur-sm);
    -webkit-backdrop-filter: var(--dtf-blur-sm);
}

.dtf-mode-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border: none;
    background: transparent;
    color: var(--dtf-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--r-full);
    transition: all var(--t-med);
    white-space: nowrap;
    font-family: inherit;
}

.dtf-mode-btn svg { flex-shrink: 0; opacity: .6; transition: opacity var(--t-fast); }
.dtf-mode-btn:hover { color: var(--dtf-text); }
.dtf-mode-btn:hover svg { opacity: 1; }

.dtf-mode-btn--active {
    background: white;
    color: var(--dtf-brand);
    font-weight: 600;
    box-shadow: var(--dtf-shadow-sm);
}
.dtf-mode-btn--active svg { opacity: 1; }

/* ── Schritt-Anzeige ─────────────────────────────────────────────────────── */
.dtf-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.dtf-steps::-webkit-scrollbar { display: none; }

.dtf-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dtf-text-muted);
    white-space: nowrap;
    position: relative;
    transition: color var(--t-med);
}

/* Pfeil zwischen Schritten */
.dtf-step:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--dtf-border-strong);
    border-top: 1.5px solid var(--dtf-border-strong);
    transform: rotate(45deg);
    margin-left: 8px;
    flex-shrink: 0;
}

.dtf-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--dtf-bg-input);
    color: var(--dtf-text-muted);
    font-weight: 700;
    font-size: 12px;
    border: 1.5px solid var(--dtf-border);
    transition: all var(--t-med);
    flex-shrink: 0;
}

.dtf-step--active { color: var(--dtf-brand); }
.dtf-step--active .dtf-step__num {
    background: var(--dtf-brand);
    color: white;
    border-color: var(--dtf-brand);
    box-shadow: 0 0 0 4px var(--dtf-brand-light);
}

.dtf-step--completed { color: #34c759; }
.dtf-step--completed .dtf-step__num {
    background: #34c759;
    color: white;
    border-color: #34c759;
}
/* Checkmark für abgeschlossene Schritte */
.dtf-step--completed .dtf-step__num::after {
    content: '✓';
    font-size: 11px;
}
.dtf-step--completed .dtf-step__num { font-size: 0; }
.dtf-step--completed .dtf-step__num::after { font-size: 12px; }

/* ── Schritt-Titel ───────────────────────────────────────────────────────── */
.dtf-step-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.4px;
    margin: 0 0 6px;
    color: var(--dtf-text);
}

.dtf-subtitle {
    font-size: 15px;
    color: var(--dtf-text-muted);
    margin: 0 0 24px;
    font-weight: 400;
}

/* ── Produkt-Grid ────────────────────────────────────────────────────────── */
.dtf-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.dtf-product-card {
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-lg);
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: all var(--t-med);
    background: var(--dtf-bg-card);
    backdrop-filter: var(--dtf-blur);
    -webkit-backdrop-filter: var(--dtf-blur);
    box-shadow: var(--dtf-shadow-sm);
    position: relative;
    overflow: hidden;
}

/* Glasshimmer-Effekt oben */
.dtf-product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,.6) 0%, transparent 100%);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    pointer-events: none;
}

.dtf-product-card:hover {
    border-color: var(--dtf-brand);
    box-shadow: var(--dtf-shadow), 0 0 0 1px var(--dtf-brand);
    transform: translateY(-3px) scale(1.01);
}

.dtf-product-card:focus {
    outline: none;
    box-shadow: var(--dtf-shadow), 0 0 0 3px var(--dtf-brand-light);
}

.dtf-product-card--selected {
    border-color: var(--dtf-brand);
    background: rgba(232, 89, 12, .06);
    box-shadow: var(--dtf-shadow-brand), 0 0 0 1px var(--dtf-brand);
}

.dtf-product-card img {
    width: 100%;
    height: 145px;
    object-fit: contain;
    border-radius: var(--r-md);
    margin-bottom: 10px;
}

.dtf-product-placeholder {
    width: 100%;
    height: 145px;
    background: var(--dtf-bg-input);
    border-radius: var(--r-md);
    margin-bottom: 10px;
}

.dtf-product-title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    color: var(--dtf-text);
}

.dtf-product-colors {
    display: block;
    font-size: 11px;
    color: var(--dtf-text-muted);
    margin-top: 4px;
}

/* ── Glass-Card (allgemeines Muster) ─────────────────────────────────────── */
.dtf-glass-card {
    background: var(--dtf-glass);
    backdrop-filter: var(--dtf-blur);
    -webkit-backdrop-filter: var(--dtf-blur);
    border: 1px solid var(--dtf-glass-border);
    border-radius: var(--r-lg);
    box-shadow: var(--dtf-shadow);
}

/* ── Farb-Swatches ───────────────────────────────────────────────────────── */
.dtf-color-section, .dtf-size-section, .dtf-position-section {
    background: var(--dtf-bg-card);
    backdrop-filter: var(--dtf-blur);
    -webkit-backdrop-filter: var(--dtf-blur);
    border: 1px solid var(--dtf-border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: var(--dtf-shadow-sm);
}

.dtf-color-section h3,
.dtf-size-section h3,
.dtf-position-section h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--dtf-text-muted);
    margin: 0 0 12px;
}

.dtf-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 8px;
}

.dtf-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.8);
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    flex-shrink: 0;
}

.dtf-swatch:hover { transform: scale(1.18); box-shadow: 0 2px 8px rgba(0,0,0,.25); }

.dtf-swatch--active {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px white, 0 0 0 5px var(--dtf-brand), 0 2px 8px rgba(0,0,0,.2);
}

.dtf-color-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--dtf-text-secondary);
    min-height: 18px;
    margin: 0;
}

/* ── Größen + Positions-Buttons ──────────────────────────────────────────── */
.dtf-size-btns,
.dtf-position-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dtf-size-btn,
.dtf-pos-btn {
    padding: 8px 16px;
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-full);
    background: var(--dtf-bg-input);
    color: var(--dtf-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t-fast);
    font-family: inherit;
    line-height: 1;
}

.dtf-size-btn:hover,
.dtf-pos-btn:hover {
    border-color: var(--dtf-brand);
    color: var(--dtf-brand);
    background: var(--dtf-brand-light);
}

.dtf-size-btn--active,
.dtf-pos-btn--active,
.dtf-size-btn--active:hover,
.dtf-pos-btn--active:hover,
.dtf-size-btn--active:focus,
.dtf-pos-btn--active:focus {
    background: var(--dtf-brand);
    border-color: var(--dtf-brand);
    color: #fff;
    box-shadow: var(--dtf-shadow-brand);
    font-weight: 600;
}

.dtf-size-btn small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: .75;
    margin-top: 2px;
}

/* ── Designer-Layout ─────────────────────────────────────────────────────── */
.dtf-designer-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 840px) {
    .dtf-designer-layout { grid-template-columns: 1fr; }
}

/* ── Position-Tabs ───────────────────────────────────────────────────────── */
.dtf-position-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.dtf-pos-tab {
    padding: 8px 16px;
    border: 1.5px solid var(--dtf-border);
    border-bottom: none;
    border-radius: var(--r-md) var(--r-md) 0 0;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--dtf-text-muted);
    transition: all var(--t-fast);
    font-family: inherit;
    position: relative;
}

.dtf-pos-tab:hover { color: var(--dtf-brand); border-color: rgba(232,89,12,.3); }

.dtf-pos-tab--active {
    background: white;
    border-color: var(--dtf-border);
    color: var(--dtf-brand);
    font-weight: 600;
    z-index: 1;
}

.dtf-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #34c759;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
}

/* ── Canvas-Wrapper ──────────────────────────────────────────────────────── */
.dtf-canvas-wrapper {
    position: relative;
    border: 1.5px solid var(--dtf-border);
    border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
    overflow: hidden;
    background:
        linear-gradient(135deg, #f8f8f8 0%, #efefef 100%);
    box-shadow: var(--dtf-shadow);
    min-height: 420px;
}

.dtf-canvas-wrapper canvas {
    display: block;
    max-width: 100%;
}

/* Druckbereich-Overlay */
.dtf-print-zone-overlay {
    position: absolute;
    border: 1.5px dashed rgba(232, 89, 12, .5);
    border-radius: var(--r-sm);
    pointer-events: none;
    background: rgba(232, 89, 12, .03);
    transition: all var(--t-med);
}

.dtf-print-zone-overlay::before {
    content: 'Druckbereich';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(232, 89, 12, .6);
    white-space: nowrap;
    background: rgba(255,255,255,.7);
    padding: 2px 8px;
    border-radius: var(--r-full);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Canvas-Steuerung ────────────────────────────────────────────────────── */
.dtf-canvas-controls {
    display: flex;
    gap: 6px;
    padding: 12px 0 4px;
    flex-wrap: wrap;
}

.dtf-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-md);
    background: var(--dtf-glass);
    backdrop-filter: var(--dtf-blur-sm);
    -webkit-backdrop-filter: var(--dtf-blur-sm);
    cursor: pointer;
    color: var(--dtf-text-secondary);
    transition: all var(--t-fast);
    font-size: 16px;
    padding: 0;
    box-shadow: var(--dtf-shadow-sm);
    font-family: inherit;
}

.dtf-ctrl-btn:hover {
    border-color: var(--dtf-brand);
    color: var(--dtf-brand);
    background: white;
    transform: translateY(-1px);
    box-shadow: var(--dtf-shadow);
}

.dtf-ctrl-btn:active { transform: scale(.95); }

.dtf-ctrl-btn--danger:hover {
    border-color: #ff3b30;
    color: #ff3b30;
    background: rgba(255, 59, 48, .06);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.dtf-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Upload-Bereich ──────────────────────────────────────────────────────── */
.dtf-upload-area {
    border: 1.5px dashed var(--dtf-border-strong);
    border-radius: var(--r-lg);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--t-med);
    background: var(--dtf-glass);
    backdrop-filter: var(--dtf-blur);
    -webkit-backdrop-filter: var(--dtf-blur);
    position: relative;
    overflow: hidden;
}

/* Subtiler Glasshimmer */
.dtf-upload-area::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, transparent 100%);
    pointer-events: none;
}

.dtf-upload-area:hover,
.dtf-upload-area:focus {
    border-color: var(--dtf-brand);
    background: rgba(232, 89, 12, .04);
    box-shadow: 0 0 0 3px var(--dtf-brand-light), var(--dtf-shadow);
    outline: none;
    transform: translateY(-2px);
}

.dtf-upload-area--dragover {
    border-color: var(--dtf-brand);
    background: rgba(232, 89, 12, .06);
    box-shadow: 0 0 0 4px var(--dtf-brand-light), var(--dtf-shadow-brand);
    transform: scale(1.01);
}

.dtf-upload-icon {
    margin-bottom: 10px;
    color: var(--dtf-brand);
    position: relative;
}

.dtf-upload-area p {
    margin: 4px 0;
    font-size: 14px;
    color: var(--dtf-text-secondary);
    position: relative;
    line-height: 1.5;
}

.dtf-upload-hint {
    font-size: 12px !important;
    color: var(--dtf-text-muted) !important;
}

.dtf-file-input { display: none; }

/* ── Upload-Fortschritt ──────────────────────────────────────────────────── */
.dtf-upload-progress {
    background: var(--dtf-glass);
    backdrop-filter: var(--dtf-blur-sm);
    -webkit-backdrop-filter: var(--dtf-blur-sm);
    border: 1px solid var(--dtf-border);
    border-radius: var(--r-lg);
    padding: 16px 20px;
}

.dtf-progress-bar {
    height: 5px;
    background: var(--dtf-bg-input);
    border-radius: var(--r-full);
    overflow: hidden;
    margin-bottom: 10px;
}

.dtf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dtf-brand), #ff8c42);
    border-radius: var(--r-full);
    width: 0;
    transition: width 0.3s var(--ease);
}

.dtf-upload-status {
    font-size: 12px;
    color: var(--dtf-text-muted);
    text-align: center;
    margin: 0;
}

/* ── Notices ─────────────────────────────────────────────────────────────── */
.dtf-notice {
    padding: 14px 16px;
    border-radius: var(--r-md);
    font-size: 13px;
    line-height: 1.6;
    backdrop-filter: var(--dtf-blur-sm);
    -webkit-backdrop-filter: var(--dtf-blur-sm);
}

.dtf-notice--warning {
    background: rgba(255, 196, 0, .12);
    border: 1px solid rgba(255, 196, 0, .3);
    color: #7a5c00;
}

.dtf-notice--info {
    background: rgba(0, 122, 255, .08);
    border: 1px solid rgba(0, 122, 255, .2);
    color: #003d99;
}

.dtf-notice ul {
    margin: 8px 0 0 16px;
    padding: 0;
}

/* ── Checkbox-Labels ─────────────────────────────────────────────────────── */
.dtf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--r-md);
    transition: background var(--t-fast);
    border: 1px solid transparent;
}

.dtf-checkbox-label:hover {
    background: var(--dtf-bg-input);
    border-color: var(--dtf-border);
}

.dtf-checkbox-label input[type="checkbox"] {
    margin-top: 1px;
    accent-color: var(--dtf-brand);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    border-radius: 5px;
    cursor: pointer;
}

.dtf-checkbox-label small {
    display: block;
    color: var(--dtf-text-muted);
    font-weight: 400;
    font-size: 12px;
    margin-top: 2px;
}

/* ── Preisbox ────────────────────────────────────────────────────────────── */
.dtf-price-box {
    background: var(--dtf-glass);
    backdrop-filter: var(--dtf-blur);
    -webkit-backdrop-filter: var(--dtf-blur);
    border: 1px solid var(--dtf-glass-border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    box-shadow: var(--dtf-shadow);
    position: relative;
    overflow: hidden;
}

/* Glasshimmer */
.dtf-price-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 35%;
    background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, transparent 100%);
    pointer-events: none;
}

.dtf-price-box h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--dtf-text-muted);
    margin: 0 0 14px;
    position: relative;
}

/* ── Sidebar-Preistabelle (Schritt 3) ─────────────────────────────────────── */
.dtf-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dtf-price-table td {
    padding: 9px 4px;
    border-bottom: 1px solid rgba(60,60,67,.07);
    line-height: 1.4;
    font-size: 13px;
    color: var(--dtf-text-secondary);
    vertical-align: middle;
}

.dtf-price-table td small {
    font-size: 11px;
    color: var(--dtf-text-muted);
    display: block;
    margin-top: 1px;
}

.dtf-price-val {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--dtf-text);
}

.dtf-price-row--textile td { color: var(--dtf-text-muted); }
.dtf-price-row--dtf td { color: var(--dtf-text); font-weight: 500; }
.dtf-price-row--sub td { color: var(--dtf-text-muted); font-size: 12px; border-bottom: none; }

.dtf-price-row--total td {
    border-top: 2px solid var(--dtf-border-strong) !important;
    border-bottom: none !important;
    padding-top: 12px;
    font-size: 14px;
    color: var(--dtf-text);
}

.dtf-price-row--total .dtf-price-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--dtf-brand);
}

.dtf-price-note {
    font-size: 11px;
    color: var(--dtf-text-muted);
    margin-top: 10px;
}

/* ── Einheitlicher Preis-Breakdown (.dtf-pb) ─────────────────────────────── */
.dtf-pb {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    min-width: 180px;
}

.dtf-pb-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(60,60,67,.06);
    color: var(--dtf-text-secondary);
}

.dtf-pb-row span:last-child,
.dtf-pb-row strong:last-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--dtf-text);
    font-weight: 500;
}

.dtf-pb-row--total {
    border-top: 2px solid var(--dtf-border-strong);
    border-bottom: none;
    padding-top: 8px;
    margin-top: 4px;
    font-size: 14px;
    color: var(--dtf-text);
}

.dtf-pb-row--total strong:last-child {
    font-size: 16px;
    color: var(--dtf-brand);
    font-weight: 700;
}

.dtf-pb-row--note { color: var(--dtf-brand); font-style: italic; }

.dtf-pb-note {
    font-size: 11px;
    color: var(--dtf-text-muted);
    margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BESTELLLISTE (Schritt 4)
══════════════════════════════════════════════════════════════════════════════ */
.dtf-order-list {
    margin: 20px 0;
    background: var(--dtf-bg-card);
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    backdrop-filter: var(--dtf-blur-sm);
}

.dtf-order-list-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--dtf-text-muted);
    margin: 0;
    padding: 14px 20px;
    border-bottom: 1px solid var(--dtf-border);
    background: rgba(60,60,67,.03);
}

.dtf-order-items { display: flex; flex-direction: column; }

.dtf-order-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--dtf-border);
    position: relative;
    transition: background var(--t-fast);
}

.dtf-order-item:last-child { border-bottom: none; }
.dtf-order-item:hover { background: rgba(60,60,67,.025); }

.dtf-order-item__left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.dtf-order-item__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--dtf-brand-light);
    color: var(--dtf-brand);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dtf-order-item__info { flex: 1; min-width: 0; }

.dtf-order-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dtf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dtf-order-item__meta {
    font-size: 12px;
    color: var(--dtf-text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dtf-swatch-mini {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.15);
    flex-shrink: 0;
}

.dtf-order-item__price {
    flex-shrink: 0;
    min-width: 190px;
}

.dtf-order-item__remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(60,60,67,.08);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--dtf-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    line-height: 1;
}

.dtf-order-item__remove:hover {
    background: rgba(255,59,48,.12);
    color: #ff3b30;
}

.dtf-order-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--dtf-brand-light);
    border-top: 2px solid var(--dtf-brand);
    font-size: 15px;
    color: var(--dtf-text);
}

.dtf-order-grand-total strong {
    font-size: 18px;
    color: var(--dtf-brand);
    font-weight: 700;
}

/* ── Weitere Variante Button ─────────────────────────────────────────────── */
.dtf-add-variant-row {
    margin: 12px 0 20px;
}

.dtf-btn-add-variant {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--dtf-bg-card);
    border: 2px dashed var(--dtf-border-strong);
    border-radius: var(--r-md);
    color: var(--dtf-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast);
    font-family: inherit;
}

.dtf-btn-add-variant:hover {
    border-color: var(--dtf-brand);
    color: var(--dtf-brand);
    background: var(--dtf-brand-light);
}

.dtf-btn-add-variant svg { color: inherit; flex-shrink: 0; }

.dtf-add-variant-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--dtf-text-muted);
    margin-left: auto;
}

/* ── Variante-Formular ───────────────────────────────────────────────────── */
.dtf-variant-form {
    margin-bottom: 20px;
    animation: dtfSlideDown var(--t-med) var(--ease);
}

.dtf-variant-form-inner {
    padding: 22px;
    background: var(--dtf-bg-card);
    border: 1.5px solid var(--dtf-brand);
    border-radius: var(--r-lg);
    backdrop-filter: var(--dtf-blur-sm);
}

.dtf-variant-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dtf-variant-form-header h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--dtf-text);
}

.dtf-variant-form-header h4 span {
    font-weight: 400;
    color: var(--dtf-text-muted);
    font-size: 13px;
}

.dtf-variant-form-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--dtf-bg-input);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--dtf-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    line-height: 1;
}

.dtf-variant-form-close:hover {
    background: rgba(255,59,48,.12);
    color: #ff3b30;
}

.dtf-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--dtf-border-strong);
    border-radius: var(--r-md);
    background: var(--dtf-bg-input);
    color: var(--dtf-text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.dtf-select:focus {
    border-color: var(--dtf-brand);
    box-shadow: 0 0 0 3px var(--dtf-brand-light);
}

/* ══════════════════════════════════════════════════════════════════════════════
   SCHRITT 3 – Druckgröße-Eingabe
══════════════════════════════════════════════════════════════════════════════ */
.dtf-dims-section {
    padding: 20px 22px;
    background: var(--dtf-bg-card);
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-lg);
    margin: 16px 0;
    backdrop-filter: var(--dtf-blur-sm);
}

.dtf-dims-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--dtf-text);
}

.dtf-dims-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dtf-dim-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dtf-dim-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--dtf-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dtf-dim-field small {
    font-size: 11px;
    color: var(--dtf-text-muted);
    margin-top: 3px;
}

.dtf-dim-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--dtf-border-strong);
    border-radius: var(--r-md);
    background: var(--dtf-bg-input);
    overflow: hidden;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.dtf-dim-input-wrap:focus-within {
    border-color: var(--dtf-brand);
    box-shadow: 0 0 0 3px var(--dtf-brand-light);
    background: #fff;
}

.dtf-dim-input-wrap input {
    width: 80px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    color: var(--dtf-text);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.dtf-dim-input-wrap input::-webkit-outer-spin-button,
.dtf-dim-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }

.dtf-dim-unit {
    padding: 0 12px 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dtf-text-muted);
}

.dtf-dim-sep {
    font-size: 24px;
    font-weight: 300;
    color: var(--dtf-text-muted);
    padding-bottom: 20px;
}

/* Folie-Ergebnis */
.dtf-foil-result {
    margin-top: 14px;
}

.dtf-foil-result--ok {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(52,199,89,.10);
    border: 1.5px solid rgba(52,199,89,.3);
    border-radius: var(--r-md);
    font-size: 13px;
    color: #1a7a30;
}

.dtf-foil-result--ok svg { stroke: #2fb344; flex-shrink: 0; }
.dtf-foil-result--ok strong { color: #1a7a30; }

.dtf-foil-combo {
    font-size: 12px;
    color: var(--dtf-brand);
    font-weight: 500;
}

.dtf-foil-result--error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255,59,48,.08);
    border: 1.5px solid rgba(255,59,48,.25);
    border-radius: var(--r-md);
    font-size: 13px;
    color: #c0392b;
}

/* Vorschau-Hinweis über Canvas */
.dtf-preview-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 12px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SCHRITT 4 – Profi-Datencheck
══════════════════════════════════════════════════════════════════════════════ */
.dtf-datacheck-section {
    margin-bottom: 20px;
}

.dtf-datacheck-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--dtf-bg-card);
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    backdrop-filter: var(--dtf-blur-sm);
}

.dtf-datacheck-label:hover {
    border-color: var(--dtf-brand);
    box-shadow: var(--dtf-shadow-sm);
}

.dtf-datacheck-check-wrap {
    padding-top: 2px;
    flex-shrink: 0;
}

.dtf-datacheck-check-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--dtf-brand);
    cursor: pointer;
}

.dtf-datacheck-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dtf-datacheck-text strong {
    font-size: 14px;
    color: var(--dtf-text);
}

.dtf-datacheck-text span {
    font-size: 12px;
    color: var(--dtf-text-muted);
    line-height: 1.5;
}

.dtf-datacheck-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--dtf-brand);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Qty-Stepper in Bestellliste ─────────────────────────────────────────── */
.dtf-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--dtf-border-strong);
    border-radius: var(--r-full);
    overflow: hidden;
    background: var(--dtf-bg-card);
}

.dtf-qty-step {
    width: 30px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--dtf-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
    line-height: 1;
    padding: 0;
}

.dtf-qty-step:hover { background: var(--dtf-brand-light); color: var(--dtf-brand); }

.dtf-qty-val {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--dtf-text);
    border-left: 1px solid var(--dtf-border);
    border-right: 1px solid var(--dtf-border);
    padding: 0 4px;
    line-height: 28px;
}

/* ── Summary-Card Sleeve ─────────────────────────────────────────────────── */
.dtf-summary-sleeve {
    background: var(--dtf-brand-light);
    border: 1px solid rgba(232,89,12,.25) !important;
}

.dtf-price-total td { /* legacy compat */ }

/* ── Options-Box ─────────────────────────────────────────────────────────── */
.dtf-options-box {
    background: var(--dtf-glass);
    backdrop-filter: var(--dtf-blur);
    -webkit-backdrop-filter: var(--dtf-blur);
    border: 1px solid var(--dtf-glass-border);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    box-shadow: var(--dtf-shadow-sm);
}

.dtf-options-box h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--dtf-text-muted);
    margin: 0 0 8px;
}

/* ── Navigation-Row ──────────────────────────────────────────────────────── */
.dtf-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--dtf-border);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.dtf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--r-full);
    border: 1.5px solid transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-med);
    text-decoration: none;
    line-height: 1;
    font-family: inherit;
    letter-spacing: -.1px;
}

.dtf-btn-primary {
    background: linear-gradient(135deg, var(--dtf-brand) 0%, #ff7a2e 100%);
    color: white;
    box-shadow: var(--dtf-shadow-brand);
    border-color: transparent;
}

.dtf-btn-primary:hover {
    background: linear-gradient(135deg, var(--dtf-brand-dark) 0%, var(--dtf-brand) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--dtf-brand-glow);
    outline: none;
}

.dtf-btn-primary:active { transform: scale(.97); }

.dtf-btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dtf-btn-back {
    background: var(--dtf-glass);
    backdrop-filter: var(--dtf-blur-sm);
    -webkit-backdrop-filter: var(--dtf-blur-sm);
    color: var(--dtf-text-secondary);
    border-color: var(--dtf-border);
    box-shadow: var(--dtf-shadow-sm);
}

.dtf-btn-back:hover {
    border-color: var(--dtf-border-strong);
    color: var(--dtf-text);
    background: white;
}

/* ── Add-to-Cart Row ─────────────────────────────────────────────────────── */
.dtf-atc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.dtf-qty-input {
    width: 68px;
    padding: 12px 10px;
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    background: var(--dtf-glass);
    backdrop-filter: var(--dtf-blur-sm);
    -webkit-backdrop-filter: var(--dtf-blur-sm);
    font-family: inherit;
    color: var(--dtf-text);
    transition: border-color var(--t-fast);
}

.dtf-qty-input:focus {
    border-color: var(--dtf-brand);
    outline: none;
    box-shadow: 0 0 0 3px var(--dtf-brand-light);
}

.dtf-atc-btn {
    flex: 1;
    min-width: 180px;
    justify-content: center;
    font-size: 16px;
    padding: 14px 28px;
}

/* ── Zusammenfassung ─────────────────────────────────────────────────────── */
.dtf-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.dtf-summary-card {
    background: var(--dtf-glass);
    backdrop-filter: var(--dtf-blur);
    -webkit-backdrop-filter: var(--dtf-blur);
    border: 1px solid var(--dtf-glass-border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    box-shadow: var(--dtf-shadow-sm);
    position: relative;
    overflow: hidden;
}

.dtf-summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, transparent 100%);
    pointer-events: none;
}

.dtf-summary-card h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--dtf-text-muted);
    margin: 0 0 10px;
    position: relative;
}

.dtf-summary-card p,
.dtf-summary-card li {
    font-size: 14px;
    margin: 4px 0;
    color: var(--dtf-text-secondary);
    position: relative;
}

.dtf-summary-card ul { margin: 0; padding-left: 14px; }

.dtf-summary-price {
    border-color: rgba(232,89,12,.25);
    background: rgba(232,89,12,.06);
}

.dtf-summary-total {
    font-size: 32px;
    font-weight: 800;
    color: var(--dtf-brand);
    margin: 4px 0 0;
    letter-spacing: -.5px;
    line-height: 1;
    position: relative;
}

/* ── Loading / Empty ─────────────────────────────────────────────────────── */
.dtf-loading {
    text-align: center;
    padding: 48px 24px;
    color: var(--dtf-text-muted);
    font-size: 14px;
}

.dtf-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--dtf-text-muted);
    font-size: 14px;
}

.dtf-hint {
    font-size: 13px;
    color: var(--dtf-text-muted);
    margin: -8px 0 14px;
    line-height: 1.5;
}

/* ── Toast-Benachrichtigungen ────────────────────────────────────────────── */
.dtf-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    padding: 14px 20px 14px 16px;
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 500;
    color: white;
    max-width: 360px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(16px) scale(.96);
    transition: opacity var(--t-slow), transform var(--t-slow);
    pointer-events: none;
    backdrop-filter: var(--dtf-blur);
    -webkit-backdrop-filter: var(--dtf-blur);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--dtf-shadow-lg);
}

.dtf-toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dtf-toast--success  { background: rgba(52, 199, 89, .92); }
.dtf-toast--error    { background: rgba(255, 59, 48, .92); }
.dtf-toast--warning  { background: rgba(255, 149, 0, .92); }
.dtf-toast--info     { background: rgba(0, 122, 255, .92); }

/* ── Sheet-Canvas ────────────────────────────────────────────────────────── */
.dtf-sheet-canvas-wrapper {
    background: white;
    border: 1px solid var(--dtf-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--dtf-shadow);
}

.dtf-sheet-size-selector { margin-bottom: 14px; }

.dtf-sheet-size-selector h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--dtf-text-muted);
    margin-bottom: 10px;
}

.dtf-sheet-sizes { flex-wrap: wrap; }

.dtf-sheet-dimensions {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--r-full);
    pointer-events: none;
    font-family: inherit;
}

/* ── Express-Preis Label ─────────────────────────────────────────────────── */
.dtf-express-price {
    font-size: 12px;
    color: var(--dtf-text-muted);
    font-weight: 400;
    margin-left: 4px;
}

/* ── WooCommerce Order Meta ──────────────────────────────────────────────── */
.dtf-order-meta {
    margin: 8px 0 0;
    font-size: 12px;
    color: #555;
}

.dtf-order-meta dt { font-weight: 600; display: inline; }
.dtf-order-meta dt::after { content: ': '; }
.dtf-order-meta dd { display: inline; margin: 0; }
.dtf-order-meta dd::after { content: '\A'; white-space: pre; }
.dtf-order-meta a { color: var(--dtf-brand); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .dtf-designer-wrap { padding: 16px 14px; border-radius: var(--r-lg); }

    .dtf-product-grid { grid-template-columns: repeat(2, 1fr); }

    .dtf-step__label { display: none; }
    .dtf-step { padding: 7px 10px; }
    .dtf-step-title { font-size: 21px; }

    .dtf-canvas-wrapper { min-height: 300px; }

    .dtf-toast {
        left: 14px; right: 14px; bottom: 14px;
        max-width: none;
    }

    .dtf-nav-row { flex-direction: column; gap: 10px; }
    .dtf-btn { width: 100%; justify-content: center; }
    .dtf-summary-grid { grid-template-columns: 1fr; }

    .dtf-mode-switcher { width: 100%; justify-content: center; }
}

/* ── Scrollbar (Webkit) ──────────────────────────────────────────────────── */
.dtf-designer-wrap ::-webkit-scrollbar { width: 6px; height: 6px; }
.dtf-designer-wrap ::-webkit-scrollbar-track { background: transparent; }
.dtf-designer-wrap ::-webkit-scrollbar-thumb {
    background: rgba(60,60,67,.2);
    border-radius: 3px;
}

/* ── Fabric.js Controls anpassen ─────────────────────────────────────────── */
.canvas-container { border-radius: inherit; }

/* ══════════════════════════════════════════════════════════════════════════════
   ÄRMEL-CHECKBOX (Schritt 2)
══════════════════════════════════════════════════════════════════════════════ */
.dtf-sleeve-section {
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--dtf-bg-card);
    border: 1px solid var(--dtf-border);
    border-radius: var(--r-md);
}

.dtf-sleeve-check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.dtf-sleeve-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--dtf-brand);
    cursor: pointer;
    flex-shrink: 0;
}

.dtf-sleeve-check-label span {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dtf-sleeve-badge {
    display: inline-block;
    background: var(--dtf-brand-light);
    color: var(--dtf-brand);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-full);
    letter-spacing: .3px;
    font-style: normal;
}

.dtf-sleeve-hint {
    margin-top: 10px;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SCHRITT 4 – PDF-Button
══════════════════════════════════════════════════════════════════════════════ */
.dtf-pdf-row {
    display: flex;
    justify-content: flex-end;
    margin: 16px 0;
}

.dtf-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dtf-bg-card);
    border: 1.5px solid var(--dtf-border-strong);
    color: var(--dtf-text);
    padding: 10px 18px;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t-fast);
    backdrop-filter: var(--dtf-blur-sm);
}

.dtf-btn-pdf:hover {
    border-color: var(--dtf-brand);
    color: var(--dtf-brand);
    background: var(--dtf-brand-light);
}

/* ══════════════════════════════════════════════════════════════════════════════
   SCHRITT 4 – Zwei Wege (Warenkorb / Anfrage)
══════════════════════════════════════════════════════════════════════════════ */
.dtf-order-paths {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    margin: 24px 0;
    align-items: stretch;
}

.dtf-order-path {
    padding: 24px;
    background: var(--dtf-bg-card);
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: var(--dtf-blur-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.dtf-order-path:hover {
    border-color: var(--dtf-brand);
    box-shadow: var(--dtf-shadow);
}

.dtf-order-path__icon {
    font-size: 28px;
    line-height: 1;
}

.dtf-order-path h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--dtf-text);
}

.dtf-order-path p {
    margin: 0;
    font-size: 13px;
    color: var(--dtf-text-muted);
    line-height: 1.5;
    flex: 1;
}

.dtf-order-paths__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: var(--dtf-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.dtf-order-paths__divider::before,
.dtf-order-paths__divider::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: calc(50% - 18px);
    background: var(--dtf-border);
}

.dtf-order-paths__divider::before { top: 0; }
.dtf-order-paths__divider::after  { bottom: 0; }

.dtf-order-paths__divider span {
    background: var(--dtf-bg-page);
    padding: 4px 0;
    position: relative;
    z-index: 1;
}

/* Sekundär-Button (Anfrage) */
.dtf-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--dtf-brand);
    color: var(--dtf-brand);
    padding: 11px 22px;
    border-radius: var(--r-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast);
    align-self: flex-start;
    margin-top: auto;
}

.dtf-btn-secondary:hover {
    background: var(--dtf-brand);
    color: #fff;
    box-shadow: var(--dtf-shadow-brand);
}

/* ══════════════════════════════════════════════════════════════════════════════
   ANFRAGE-FORMULAR
══════════════════════════════════════════════════════════════════════════════ */
.dtf-inquiry-form {
    margin-top: 24px;
    padding: 28px;
    background: var(--dtf-bg-card);
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-lg);
    backdrop-filter: var(--dtf-blur-sm);
    animation: dtfSlideDown var(--t-med) var(--ease);
}

@keyframes dtfSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dtf-inquiry-form h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dtf-text);
    margin: 0 0 20px;
}

.dtf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.dtf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dtf-field--full {
    grid-column: 1 / -1;
}

.dtf-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dtf-text);
}

.dtf-required {
    color: var(--dtf-brand);
}

.dtf-field input[type="text"],
.dtf-field input[type="email"],
.dtf-field input[type="tel"],
.dtf-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--dtf-border-strong);
    border-radius: var(--r-md);
    background: var(--dtf-bg-input);
    color: var(--dtf-text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    -webkit-appearance: none;
}

.dtf-field input:focus,
.dtf-field textarea:focus {
    border-color: var(--dtf-brand);
    box-shadow: 0 0 0 3px var(--dtf-brand-light);
    background: #fff;
}

.dtf-field textarea {
    resize: vertical;
    min-height: 80px;
}

.dtf-field .dtf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    color: var(--dtf-text-secondary);
    cursor: pointer;
    line-height: 1.5;
}

.dtf-field .dtf-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--dtf-brand);
    width: 16px;
    height: 16px;
}

.dtf-field .dtf-checkbox-label a {
    color: var(--dtf-brand);
    text-decoration: none;
}

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

.dtf-inq-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    border-radius: var(--r-md);
}

/* Erfolgs-Nachricht */
.dtf-inquiry-success {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(52, 199, 89, .10);
    border: 1.5px solid rgba(52, 199, 89, .35);
    border-radius: var(--r-md);
    color: #1a7a30;
    font-size: 14px;
    margin-top: 16px;
}

.dtf-inquiry-success svg {
    stroke: #2fb344;
    flex-shrink: 0;
}

/* ── Preis-Notiz im Summary (Ärmel) ────────────────────────────────────────── */
.dtf-sleeve-price-note {
    font-size: 12px;
    color: var(--dtf-brand);
    margin: 6px 0 0;
    font-weight: 500;
}

/* ── Responsive (mobile) ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .dtf-order-paths {
        grid-template-columns: 1fr;
    }

    .dtf-order-paths__divider {
        padding: 12px 0;
        flex-direction: row;
        gap: 10px;
    }

    .dtf-order-paths__divider::before,
    .dtf-order-paths__divider::after {
        top: 50%;
        left: 0;
        right: 0;
        bottom: auto;
        transform: translateY(-50%);
        width: calc(50% - 20px);
        height: 1px;
    }

    .dtf-order-paths__divider::before { left: 0; }
    .dtf-order-paths__divider::after  { right: 0; left: auto; }

    .dtf-form-grid {
        grid-template-columns: 1fr;
    }

    .dtf-pdf-row {
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   MODE B – Typ-Auswahl (Profi vs. Motiv)
══════════════════════════════════════════════════════════════════════════════ */
.dtf-sheet-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.dtf-sheet-type-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--dtf-bg-card);
    border: 2px solid var(--dtf-border);
    border-radius: var(--r-lg);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all var(--t-fast);
    backdrop-filter: var(--dtf-blur-sm);
}

.dtf-sheet-type-card:hover {
    border-color: var(--dtf-brand);
    box-shadow: var(--dtf-shadow);
}

.dtf-sheet-type-card.selected {
    border-color: var(--dtf-brand);
    background: var(--dtf-brand-light);
    box-shadow: var(--dtf-shadow-brand);
}

.dtf-sheet-type-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.dtf-sheet-type-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dtf-sheet-type-body strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--dtf-text);
}

.dtf-sheet-type-body span {
    font-size: 12px;
    color: var(--dtf-text-muted);
    line-height: 1.5;
}

.dtf-sheet-type-body em {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    color: var(--dtf-brand);
    background: var(--dtf-brand-light);
    padding: 2px 8px;
    border-radius: var(--r-full);
    display: inline-block;
    width: fit-content;
}

@media (max-width: 600px) {
    .dtf-sheet-type-selector { grid-template-columns: 1fr; }
}

/* ── Schritt-2-Hinweis ───────────────────────────────────────────────────── */
.dtf-step2-hint {
    margin-bottom: 16px;
    font-size: 13px;
}

/* ── Summary Vorschau-Grid ───────────────────────────────────────────────── */
.dtf-summary-previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.dtf-summary-preview-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dtf-summary-preview-label {
    font-size: 12px;
    color: var(--dtf-text-secondary);
    line-height: 1.4;
}

/* ── DPI-Indikator (Mode A + B) ──────────────────────────────────────────── */
.dtf-dpi-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: var(--r-sm);
    line-height: 1.4;
}

.dtf-dpi-note.dpi-good { background: rgba(52,199,89,.10); color: #1a7a30; }
.dtf-dpi-note.dpi-ok   { background: rgba(255,149,0,.10); color: #a05000; }
.dtf-dpi-note.dpi-low  { background: rgba(255,59,48,.08); color: #c0392b; }

/* ══════════════════════════════════════════════════════════════════════════════
   MODE B – Sheet-Size-Cards
══════════════════════════════════════════════════════════════════════════════ */
.dtf-sheet-size-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 4px;
}

.dtf-sheet-size-card {
    position: relative; /* Für absolutes EMPFOHLEN-Badge */
    padding: 14px 16px;
    background: var(--dtf-bg-card);
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--t-fast);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dtf-sheet-size-card:hover {
    border-color: var(--dtf-brand);
    box-shadow: var(--dtf-shadow-sm);
}

.dtf-sheet-size-card--disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(0.3);
}

.dtf-sheet-size-card.selected {
    border-color: var(--dtf-brand);
    background: var(--dtf-brand-light);
    box-shadow: var(--dtf-shadow-brand);
}

.dtf-sheet-size-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.dtf-sheet-size-card__recommended {
    position: absolute;
    top: -10px;
    left: 12px;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #fff;
    background: var(--dtf-brand);   /* solide Farbe — deckt die Randlinie ab */
    border: none;
    padding: 2px 10px;
    border-radius: var(--r-full);
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(232,89,12,.3);
}

/* Die Karten-Gruppe braucht oben Platz damit das Badge nicht abgeschnitten wird */
.dtf-sheet-size-cards {
    padding-top: 14px;
}

.dtf-sheet-size-card__dims {
    font-size: 15px;
    font-weight: 700;
    color: var(--dtf-text);
}

.dtf-sheet-size-card__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--dtf-brand);
    white-space: nowrap;
}

.dtf-sheet-size-card__dpi {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: var(--r-sm);
    padding: 4px 8px;
}

.dtf-sheet-size-card__dpi.dpi-good {
    background: rgba(52,199,89,.10);
    color: #1a7a30;
}

.dtf-sheet-size-card__dpi.dpi-ok {
    background: rgba(255,149,0,.10);
    color: #a05000;
}

.dtf-sheet-size-card__dpi.dpi-low {
    background: rgba(255,59,48,.08);
    color: #c0392b;
}

/* Nest-Anzahl in Sheet-Karte */
.dtf-sheet-nest {
    font-size: 12px;
    color: var(--dtf-text);
    padding: 6px 8px;
    background: var(--dtf-brand-light);
    border-radius: var(--r-sm);
    line-height: 1.5;
}

.dtf-sheet-size-card.selected .dtf-sheet-nest {
    background: rgba(255,255,255,.5);
}

/* Datei-Info Karte */
.dtf-sheet-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--dtf-bg-card);
    border: 1.5px solid var(--dtf-border);
    border-radius: var(--r-md);
}

.dtf-sheet-file-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.dtf-sheet-file-details {
    flex: 1;
    min-width: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   TEXT-TOOL
══════════════════════════════════════════════════════════════════════════════ */
.dtf-ctrl-btn--text {
    color: var(--dtf-brand);
    font-weight: 700;
}

.dtf-text-tool {
    margin-top: 12px;
    padding: 20px;
    background: var(--dtf-bg-card);
    border: 1.5px solid var(--dtf-brand);
    border-radius: var(--r-lg);
    backdrop-filter: var(--dtf-blur-sm);
    animation: dtfSlideDown var(--t-med) var(--ease);
}

.dtf-text-tool__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dtf-text-tool__header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--dtf-text);
}

.dtf-text-tool__close {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--dtf-bg-input);
    border: none; cursor: pointer;
    font-size: 16px; font-weight: 700;
    color: var(--dtf-text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t-fast);
}
.dtf-text-tool__close:hover { background: rgba(255,59,48,.12); color: #ff3b30; }

.dtf-text-input-field {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--dtf-border-strong);
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.dtf-text-input-field:focus {
    border-color: var(--dtf-brand);
    box-shadow: 0 0 0 3px var(--dtf-brand-light);
}

/* Style-Buttons (B / I / AA) */
.dtf-text-style-btn {
    width: 34px; height: 34px;
    border: 1.5px solid var(--dtf-border-strong);
    border-radius: var(--r-sm);
    background: var(--dtf-bg-input);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: var(--dtf-text);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t-fast);
}
.dtf-text-style-btn.active {
    background: var(--dtf-brand);
    border-color: var(--dtf-brand);
    color: #fff;
}
.dtf-text-style-btn:hover:not(.active) {
    border-color: var(--dtf-brand);
    color: var(--dtf-brand);
}

/* Farbpicker */
.dtf-color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dtf-color-native {
    width: 36px; height: 36px;
    border: 1.5px solid var(--dtf-border-strong);
    border-radius: var(--r-sm);
    cursor: pointer;
    padding: 2px;
    background: var(--dtf-bg-input);
}
.dtf-color-hex-input {
    width: 90px;
    padding: 8px 10px;
    border: 1.5px solid var(--dtf-border-strong);
    border-radius: var(--r-sm);
    font-family: monospace;
    font-size: 13px;
    outline: none;
}
.dtf-color-hex-input:focus { border-color: var(--dtf-brand); }

.dtf-color-safe-badge {
    font-size: 11px;
    font-weight: 600;
    color: #c44b08;
    background: rgba(232,89,12,.08);
    padding: 2px 8px;
    border-radius: var(--r-full);
}

/* Farb-Presets */
.dtf-color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dtf-color-preset-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--t-fast), border-color var(--t-fast);
    padding: 0;
}
.dtf-color-preset-btn:hover { transform: scale(1.2); }
.dtf-color-preset-btn.active { border-color: var(--dtf-text); transform: scale(1.15); }

/* Bogen-Slider */
.dtf-arch-slider {
    width: 100%;
    accent-color: var(--dtf-brand);
    cursor: pointer;
}

/* Layer-Zähler */
.dtf-layer-count {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--dtf-text-muted);
    padding: 4px 8px;
    background: var(--dtf-bg-input);
    border-radius: var(--r-sm);
}

/* Bogen-Richtungs-Buttons (Text-Tool) */
.dtf-arch-dir { display: flex; gap: 6px; }
.dtf-arch-dir-btn {
    flex: 1; padding: 8px 6px; border: 1.5px solid var(--dtf-border-strong);
    border-radius: var(--r-sm); background: var(--dtf-bg-input);
    cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600;
    color: var(--dtf-text); transition: all var(--t-fast);
}
.dtf-arch-dir-btn.active { background: var(--dtf-brand); border-color: var(--dtf-brand); color: #fff; }
.dtf-arch-dir-btn:hover:not(.active) { border-color: var(--dtf-brand); color: var(--dtf-brand); }

/* ── Preview-Port: Text-Layer, Ebenen-Panel, Preset-Buttons ───────────────── */
.dtf-text-layer { transition: border-color .12s; }
.dtf-text-layer:hover { border-color: rgba(232,89,12,.4) !important; }
.dtf-text-layer.selected { border-color: #E8590C !important; border-style: solid !important; }
.dtf-text-layer__tools { position: absolute; top: -14px; right: -14px; display: none; gap: 4px; z-index: 20; }
.dtf-text-layer.selected .dtf-text-layer__tools { display: flex; }
.dtf-tl-btn { width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); color: #fff; }
.dtf-tl-edit { background: #E8590C; }
.dtf-tl-edit:hover { background: #c44b08; }
.dtf-tl-del { background: #ff3b30; }
.dtf-tl-del:hover { background: #d92c22; }

.dtf-layers-panel { margin-top: 10px; padding: 12px 14px; background: var(--dtf-bg-card); border: 1.5px solid var(--dtf-border); border-radius: var(--r-md); max-width: 360px; }
.dtf-layers-panel__head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--dtf-text-muted); margin-bottom: 10px; }
.dtf-layers-panel__head small { font-weight: 400; text-transform: none; letter-spacing: 0; }
.dtf-layers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dtf-layer-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--dtf-bg-input); border: 1.5px solid transparent; border-radius: var(--r-sm); cursor: grab; transition: all .12s; font-size: 13px; }
.dtf-layer-row:hover { border-color: var(--dtf-border-strong); }
.dtf-layer-row.dragging { opacity: .5; cursor: grabbing; }
.dtf-layer-row.drop-target { border-color: var(--dtf-brand); background: var(--dtf-brand-light); }
.dtf-layer-row__grip { color: var(--dtf-text-muted); flex-shrink: 0; cursor: grab; }
.dtf-layer-row__thumb { width: 30px; height: 30px; border-radius: 5px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--dtf-border); overflow: hidden; font-size: 14px; }
.dtf-layer-row__label { flex: 1; min-width: 0; font-weight: 500; color: var(--dtf-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtf-layer-row__pos { font-size: 11px; color: var(--dtf-text-muted); flex-shrink: 0; }

.dtf-preset-btn { display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; background: rgba(60,60,67,.06); border: 1.5px solid transparent; border-radius: 10px; cursor: pointer; font-size: 13px; text-align: left; width: 100%; transition: all .15s; font-family: inherit; color: inherit; }
.dtf-preset-btn:hover { background: rgba(60,60,67,.10); }
.dtf-preset-btn--active { border-color: var(--dtf-brand); background: rgba(232,89,12,.08); font-weight: 600; }
.dtf-preset-btn--active strong { color: var(--dtf-brand); }
