.dtfdk,
.dtfdk * {
    box-sizing: border-box;
}

.dtfdk {
    --dtfdk-dark: #101828;
    --dtfdk-muted: #667085;
    --dtfdk-line: #e4e7ec;
    --dtfdk-soft: #f8fafc;
    --dtfdk-accent: #111827;
    font-family: inherit;
    color: var(--dtfdk-dark);
    width: 100%;
}

.dtfdk-shell {
    width: min(var(--dtfdk-max-width, 1920px), 100vw);
    max-width: 100%;
    margin: 0 auto;
    padding: 42px 24px;
}

.dtfdk-head {
    margin-bottom: 22px;
    padding: 26px 28px;
    border-radius: 26px;
    background: var(--dtfdk-intro-bg, #f8fafc);
    border: 1px solid rgba(16, 24, 40, 0.06);
}


.dtfdk-kicker {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--dtfdk-accent) 10%, #ffffff);
    color: var(--dtfdk-accent);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.dtfdk-head h2 {
    margin: 0 0 10px;
    font-size: clamp(32px, 3.5vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: var(--dtfdk-headline-color, var(--dtfdk-dark)) !important;
    font-weight: 900;
}

.dtfdk-head p {
    margin: 0;
    color: var(--dtfdk-intro-color, var(--dtfdk-muted)) !important;
    font-size: clamp(16px, 1.1vw, 19px);
    max-width: 980px;
}

.dtfdk-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 0 22px;
}

.dtfdk-progress span {
    border-radius: 999px;
    border: 1px solid var(--dtfdk-line);
    color: var(--dtfdk-muted);
    background: #ffffff;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.dtfdk-progress span.is-active {
    background: var(--dtfdk-accent);
    border-color: var(--dtfdk-accent);
    color: #ffffff;
}

.dtfdk-grid {
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.dtfdk-panel {
    background: #ffffff;
    border: 1px solid var(--dtfdk-line);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.dtfdk-panel-controls {
    padding: 18px;
}

.dtfdk-step {
    padding: 18px 0;
    border-bottom: 1px solid var(--dtfdk-line);
}

.dtfdk-step:first-child {
    padding-top: 0;
}

.dtfdk-step:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dtfdk-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 16px;
}

.dtfdk-step-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--dtfdk-accent);
    color: #ffffff;
    font-size: 14px;
}

.dtfdk-field {
    margin-bottom: 13px;
}

.dtfdk-field label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
    color: #344054;
}

.dtfdk-field input,
.dtfdk-field select,
.dtfdk-field textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    min-height: 46px;
    padding: 10px 12px;
    font: inherit;
    background: #ffffff;
    color: var(--dtfdk-dark);
}

.dtfdk-field input:focus,
.dtfdk-field select:focus,
.dtfdk-field textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--dtfdk-accent) 28%, transparent);
    border-color: var(--dtfdk-accent);
}

.dtfdk-field input[type="color"] {
    padding: 3px;
}

.dtfdk-field input[type="range"] {
    padding: 0;
    min-height: 38px;
}

.dtfdk-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
}

.dtfdk-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dtfdk-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #d0d5dd, 0 4px 12px rgba(16,24,40,0.10);
    background: var(--swatch);
    cursor: pointer;
}

.dtfdk-swatch.is-active {
    box-shadow: 0 0 0 3px var(--dtfdk-accent), 0 4px 12px rgba(16,24,40,0.14);
}

.dtfdk-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dtfdk-checkline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #344054;
    margin: 10px 0;
}

.dtfdk-checkline input {
    margin-top: 3px;
}

.dtfdk-privacy a {
    color: inherit;
    text-decoration: underline;
}

.dtfdk-upload {
    border: 1px dashed #98a2b3;
    border-radius: 16px;
    background: var(--dtfdk-soft);
    padding: 18px;
    text-align: center;
}

.dtfdk-upload input {
    width: 100%;
    margin-bottom: 10px;
}

.dtfdk-upload label {
    display: block;
    font-weight: 900;
    margin-bottom: 4px;
}

.dtfdk-upload small,
.dtfdk-note {
    color: var(--dtfdk-muted);
    font-size: 13px;
}

.dtfdk-quality {
    display: grid;
    gap: 3px;
    background: #fff8eb;
    border: 1px solid #fedf89;
    color: #7a2e0e;
    border-radius: 14px;
    padding: 12px;
    font-size: 13px;
}

.dtfdk-quality strong {
    font-weight: 900;
}

.dtfdk-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.dtfdk-tools button,
.dtfdk-preview-top button,
.dtfdk-submit {
    border: 0;
    border-radius: 12px;
    min-height: 42px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.dtfdk-tools button,
.dtfdk-preview-top button {
    background: #f2f4f7;
    color: #101828;
}

.dtfdk-tools button:hover,
.dtfdk-preview-top button:hover {
    background: #e4e7ec;
}

.dtfdk-submit {
    width: 100%;
    background: var(--dtfdk-accent);
    color: #ffffff;
    margin-top: 10px;
}

.dtfdk-submit:disabled {
    opacity: 0.55;
    cursor: progress;
}

.dtfdk-pricebox {
    display: grid;
    gap: 3px;
    padding: 16px;
    background: var(--dtfdk-accent);
    color: #ffffff;
    border-radius: 16px;
    margin-bottom: 14px;
}

.dtfdk-pricebox small,
.dtfdk-pricebox span {
    color: rgba(255,255,255,0.72);
}

.dtfdk-pricebox strong {
    font-size: 30px;
    letter-spacing: -0.03em;
}

.dtfdk-preview-wrap {
    padding: 22px;
    position: sticky;
    top: 24px;
}

.dtfdk-preview-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.dtfdk-preview-top span {
    display: block;
    font-size: 18px;
    font-weight: 900;
}

.dtfdk-preview-top small {
    color: var(--dtfdk-muted);
}

.dtfdk-preview-top small span {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
}

.dtfdk-stage {
    width: 100%;
    min-height: 720px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    border-radius: 20px;
    overflow: hidden;
    padding: 34px;
}

.dtfdk-garment {
    --garment-color: #ffffff;
    width: 420px;
    height: 560px;
    position: relative;
    background: var(--garment-color);
    border: 1px solid rgba(16, 24, 40, 0.12);
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.16);
}

.dtfdk-garment-tshirt,
.dtfdk-garment-polo {
    border-radius: 22px 22px 34px 34px;
    clip-path: polygon(22% 0, 36% 0, 42% 9%, 58% 9%, 64% 0, 78% 0, 100% 18%, 88% 36%, 78% 29%, 78% 100%, 22% 100%, 22% 29%, 12% 36%, 0 18%);
}

.dtfdk-garment-hoodie,
.dtfdk-garment-sweatshirt {
    border-radius: 50px 50px 34px 34px;
    clip-path: polygon(28% 0, 72% 0, 92% 14%, 100% 42%, 86% 50%, 78% 34%, 78% 100%, 22% 100%, 22% 34%, 14% 50%, 0 42%, 8% 14%);
}

.dtfdk-garment-bag {
    width: 390px;
    height: 490px;
    border-radius: 14px 14px 26px 26px;
    clip-path: none;
}

.dtfdk-garment-bag:before {
    content: "";
    position: absolute;
    left: 94px;
    right: 94px;
    top: -58px;
    height: 95px;
    border: 14px solid var(--garment-color);
    border-bottom: 0;
    border-radius: 90px 90px 0 0;
    filter: drop-shadow(0 2px 0 rgba(16,24,40,0.10));
}

.dtfdk-garment-cap {
    width: 420px;
    height: 315px;
    border-radius: 190px 190px 80px 80px;
    clip-path: ellipse(50% 42% at 50% 54%);
}

.dtfdk-garment.has-product-image {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    clip-path: none;
}

.dtfdk-product-image {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.dtfdk-neck {
    position: absolute;
    left: 50%;
    top: 12px;
    width: 74px;
    height: 38px;
    transform: translateX(-50%);
    background: rgba(16, 24, 40, 0.09);
    border-radius: 0 0 60px 60px;
}

.dtfdk-garment-bag .dtfdk-neck,
.dtfdk-garment-cap .dtfdk-neck,
.dtfdk-garment.has-product-image .dtfdk-neck {
    display: none;
}

.dtfdk-print-area {
    position: absolute;
    left: 50%;
    top: 136px;
    width: 235px;
    height: 285px;
    transform: translateX(-50%);
    border: 1px dashed rgba(16, 24, 40, 0.48);
    border-radius: 8px;
    overflow: visible;
    z-index: 3;
}

.dtfdk-print-area > span {
    position: absolute;
    left: 50%;
    top: -26px;
    transform: translateX(-50%);
    color: rgba(16, 24, 40, 0.68);
    background: rgba(255,255,255,0.78);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    pointer-events: none;
    white-space: nowrap;
}

.dtfdk-object {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    cursor: move;
    user-select: none;
    touch-action: none;
    max-width: none;
}

.dtfdk-object img {
    display: block;
    width: 140px;
    height: auto;
    pointer-events: none;
}

.dtfdk-object-text {
    min-width: 70px;
    padding: 4px;
    font-weight: 900;
    font-size: 28px;
    line-height: 1.1;
    white-space: nowrap;
}

.dtfdk-object.is-selected {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
}

.dtfdk-help {
    margin-top: 14px;
    color: var(--dtfdk-muted);
    font-size: 14px;
}

.dtfdk-response {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.dtfdk-response.is-error {
    color: #b42318;
}

.dtfdk-response.is-success {
    color: #067647;
}

.dtfdk-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}


@media (min-width: 1400px) {
    .dtfdk-panel-controls {
        padding: 22px;
    }

    .dtfdk-stage {
        min-height: 780px;
    }
}

@media (max-width: 980px) {
    .dtfdk-shell {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 24px 0;
    }

    .dtfdk-head {
        padding: 22px 18px;
    }

    .dtfdk-grid {
        grid-template-columns: 1fr;
    }

    .dtfdk-preview-wrap {
        position: relative;
        top: auto;
    }

    .dtfdk-stage {
        min-height: 540px;
        padding: 20px;
    }
}

@media (max-width: 620px) {
    .dtfdk-progress {
        grid-template-columns: 1fr 1fr;
    }

    .dtfdk-tools {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .dtfdk-two {
        grid-template-columns: 1fr;
    }

    .dtfdk-stage {
        min-height: 470px;
    }

    .dtfdk-garment {
        width: 292px;
        height: 410px;
    }

    .dtfdk-garment-bag {
        width: 292px;
        height: 380px;
    }

    .dtfdk-garment-cap {
        width: 292px;
        height: 230px;
    }
}

/* Gang-Sheet Builder */
.dtfdk-gang .dtfdk-gang-grid {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dtfdk-gang .dtfdk-gang-preview-panel {
    position: sticky;
    top: 24px;
}

.dtfdk-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dtfdk-preview-actions button {
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #111827;
    min-height: 36px;
    padding: 0 12px;
    font-weight: 800;
    cursor: pointer;
}

.dtfdk-gang-canvas-wrap {
    width: 100%;
    overflow: auto;
    background: #e5e7eb;
    border: 1px solid rgba(16, 24, 40, 0.10);
    border-radius: 18px;
    padding: 12px;
}

.dtfdk-gang-canvas-wrap canvas {
    display: block;
    width: 100%;
    max-height: 78vh;
    background: #f8fafc;
    border-radius: 12px;
}

.dtfdk-gang-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.dtfdk-gang-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px 78px auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid rgba(16, 24, 40, 0.10);
    border-radius: 14px;
    background: #ffffff;
}

.dtfdk-gang-item strong,
.dtfdk-gang-item small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dtfdk-gang-item small {
    color: #64748b;
    margin-top: 3px;
}

.dtfdk-gang-item label {
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: #475467;
}

.dtfdk-gang-item input {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(16, 24, 40, 0.16);
    border-radius: 10px;
    padding: 6px 8px;
}

.dtfdk-gang-item button {
    min-height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #111827;
    padding: 0 10px;
    cursor: pointer;
}

.dtfdk-gang-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


@media (min-width: 1400px) {
    .dtfdk-panel-controls {
        padding: 22px;
    }

    .dtfdk-stage {
        min-height: 780px;
    }
}

@media (max-width: 980px) {
    .dtfdk-gang .dtfdk-gang-grid {
        grid-template-columns: 1fr;
    }

    .dtfdk-gang .dtfdk-gang-preview-panel {
        position: static;
    }

    .dtfdk-gang-item {
        grid-template-columns: 1fr 1fr;
    }

    .dtfdk-gang-item > div {
        grid-column: 1 / -1;
    }
}

.dtfdk-gang-warnings {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.dtfdk-alert {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.35;
}

.dtfdk-alert.is-ok {
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
}

.dtfdk-alert.is-warning {
    background: #fffaeb;
    color: #93370d;
    border: 1px solid #fedf89;
}

.dtfdk-alert.is-error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.dtfdk-gang-production {
    margin-top: 14px;
    border: 1px solid rgba(16, 24, 40, 0.10);
    border-radius: 16px;
    padding: 14px;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

.dtfdk-gang-production h3 {
    margin: 0 0 8px;
    font-size: 16px;
}


/* Version 1.5.0, UI Feinschliff */
.dtfdk {
    --dtfdk-radius-lg: 28px;
    --dtfdk-radius-md: 18px;
    --dtfdk-shadow-card: 0 20px 60px rgba(16, 24, 40, 0.08);
    --dtfdk-shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.dtfdk-head {
    position: relative;
    overflow: hidden;
    box-shadow: var(--dtfdk-shadow-soft);
}

.dtfdk-head:after {
    content: "";
    position: absolute;
    right: -90px;
    top: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--dtfdk-accent) 12%, transparent);
    pointer-events: none;
}

.dtfdk-kicker {
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
    border: 1px solid color-mix(in srgb, var(--dtfdk-accent) 16%, #ffffff);
}

.dtfdk-head h2,
.dtfdk-head p {
    position: relative;
    z-index: 1;
}

.dtfdk-progress {
    background: #ffffff;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 10px 34px rgba(16, 24, 40, 0.06);
}

.dtfdk-progress span {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.dtfdk-progress span.is-active {
    box-shadow: 0 10px 24px color-mix(in srgb, var(--dtfdk-accent) 26%, transparent);
}

.dtfdk-panel {
    border-radius: var(--dtfdk-radius-lg);
    box-shadow: var(--dtfdk-shadow-card);
}

.dtfdk-panel-controls {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.dtfdk-step {
    padding: 22px 0;
}

.dtfdk-step-title {
    font-size: 18px;
}

.dtfdk-step-title span {
    width: 32px;
    height: 32px;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--dtfdk-accent) 28%, transparent);
}

.dtfdk-field input,
.dtfdk-field select,
.dtfdk-field textarea {
    border-radius: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dtfdk-field input:hover,
.dtfdk-field select:hover,
.dtfdk-field textarea:hover {
    border-color: #98a2b3;
}

.dtfdk-field input:focus,
.dtfdk-field select:focus,
.dtfdk-field textarea:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--dtfdk-accent) 11%, transparent);
}

.dtfdk-swatch {
    width: 38px;
    height: 38px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.dtfdk-swatch:hover {
    transform: translateY(-1px);
}

.dtfdk-upload {
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.28)),
        color-mix(in srgb, var(--dtfdk-accent) 4%, #f8fafc);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dtfdk-upload:hover {
    border-color: var(--dtfdk-accent);
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

.dtfdk-tools button,
.dtfdk-preview-top button,
.dtfdk-submit,
.dtfdk-preview-actions button,
.dtfdk-gang-item button {
    position: relative;
    border-radius: 14px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.dtfdk-tools button,
.dtfdk-preview-top button,
.dtfdk-preview-actions button,
.dtfdk-gang-item button {
    background: #eef2f7;
    color: #101828;
}

.dtfdk-tools button:hover,
.dtfdk-preview-top button:hover,
.dtfdk-preview-actions button:hover,
.dtfdk-gang-item button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.10);
    background: #e4e7ec;
}

.dtfdk-submit {
    min-height: 50px;
    box-shadow: 0 14px 34px color-mix(in srgb, var(--dtfdk-accent) 30%, transparent);
}

.dtfdk-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px color-mix(in srgb, var(--dtfdk-accent) 36%, transparent);
}

.dtfdk-pricebox {
    border-radius: 20px;
    box-shadow: 0 16px 38px color-mix(in srgb, var(--dtfdk-accent) 28%, transparent);
}

.dtfdk-preview-top {
    padding: 4px 2px;
}

.dtfdk-preview-top > div:first-child {
    min-width: 0;
}

.dtfdk-preview-top span {
    letter-spacing: -0.02em;
}

.dtfdk-stage {
    position: relative;
    border: 1px solid rgba(16, 24, 40, 0.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.80);
}

.dtfdk-stage:before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 18px;
    border: 1px solid rgba(16, 24, 40, 0.05);
    pointer-events: none;
}

.dtfdk-garment {
    transform: translateZ(0);
}

.dtfdk-print-area {
    border-color: color-mix(in srgb, var(--dtfdk-accent) 54%, rgba(16, 24, 40, 0.4));
    background: rgba(255,255,255,0.08);
}

.dtfdk-help {
    background: #f8fafc;
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 16px;
    padding: 12px 14px;
}

/* Gang-Sheet Feinschliff */
.dtfdk-gang .dtfdk-gang-grid {
    grid-template-columns: minmax(340px, 520px) minmax(0, 1fr);
}

.dtfdk-gang-canvas-wrap {
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.70);
}

.dtfdk-gang-item {
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
}

/* Mobile Optimierung */
@media (max-width: 980px) {
    .dtfdk {
        overflow-x: hidden;
    }

    .dtfdk-shell {
        padding: 20px 12px;
    }

    .dtfdk-head {
        border-radius: 22px;
    }

    .dtfdk-progress {
        border-radius: 22px;
        grid-template-columns: repeat(2, 1fr);
    }

    .dtfdk-progress span {
        border-radius: 16px;
        min-height: 42px;
        font-size: 12px;
    }

    .dtfdk-panel {
        border-radius: 22px;
    }

    .dtfdk-preview-top {
        align-items: flex-start;
    }

    .dtfdk-preview-actions {
        justify-content: flex-start;
    }

    .dtfdk-gang .dtfdk-gang-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .dtfdk-shell {
        padding-left: 8px;
        padding-right: 8px;
    }

    .dtfdk-head {
        padding: 20px 16px;
    }

    .dtfdk-head h2 {
        font-size: clamp(28px, 10vw, 38px);
        letter-spacing: -0.03em;
    }

    .dtfdk-head p {
        font-size: 15px;
    }

    .dtfdk-grid,
    .dtfdk-gang .dtfdk-gang-grid {
        gap: 16px;
    }

    .dtfdk-panel-controls,
    .dtfdk-preview-wrap,
    .dtfdk-gang-preview-panel {
        padding: 14px;
    }

    .dtfdk-step {
        padding: 18px 0;
    }

    .dtfdk-step-title {
        font-size: 16px;
    }

    .dtfdk-step-title span {
        width: 30px;
        height: 30px;
    }

    .dtfdk-preview-top {
        flex-direction: column;
        gap: 10px;
    }

    .dtfdk-preview-top button,
    .dtfdk-preview-actions button {
        width: 100%;
    }

    .dtfdk-stage {
        min-height: 460px;
        padding: 16px;
    }

    .dtfdk-stage:before {
        inset: 10px;
    }

    .dtfdk-tools {
        grid-template-columns: 1fr;
    }

    .dtfdk-tools button {
        min-height: 46px;
    }

    .dtfdk-gang-canvas-wrap {
        padding: 8px;
        border-radius: 18px;
    }

    .dtfdk-gang-item {
        grid-template-columns: 1fr;
    }

    .dtfdk-gang-item > div {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .dtfdk-progress {
        grid-template-columns: 1fr;
    }

    .dtfdk-garment {
        width: 270px;
        height: 380px;
    }

    .dtfdk-garment-bag {
        width: 270px;
        height: 350px;
    }

    .dtfdk-garment-cap {
        width: 270px;
        height: 215px;
    }

    .dtfdk-print-area {
        top: 98px;
        width: 160px;
        height: 205px;
    }
}


/* Version 1.5.1, echter Divi-Fullwidth-Breakout */
.dtfdk--fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    position: relative;
    left: 0;
    right: 0;
}

.dtfdk--fullwidth .dtfdk-shell {
    width: min(var(--dtfdk-max-width, 1920px), 100vw);
    max-width: 100vw;
}

.et_pb_section .dtfdk--fullwidth,
.et_pb_row .dtfdk--fullwidth,
.et_pb_column .dtfdk--fullwidth,
.et_pb_module .dtfdk--fullwidth,
.et_pb_code .dtfdk--fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
}

.et_pb_section .dtfdk--fullwidth .dtfdk-shell,
.et_pb_row .dtfdk--fullwidth .dtfdk-shell,
.et_pb_column .dtfdk--fullwidth .dtfdk-shell,
.et_pb_module .dtfdk--fullwidth .dtfdk-shell,
.et_pb_code .dtfdk--fullwidth .dtfdk-shell {
    width: min(var(--dtfdk-max-width, 1920px), 100vw) !important;
    max-width: 100vw !important;
}

@media (min-width: 1200px) {
    .dtfdk--fullwidth .dtfdk-shell {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 980px) {
    .dtfdk--fullwidth {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .dtfdk--fullwidth .dtfdk-shell {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* Version 1.6.0, Wizard und produktgenaue Druckflächen */
.dtfdk-wizard .dtfdk-step[data-step] {
    display: none;
    border-bottom: 0;
    padding-bottom: 0;
}

.dtfdk-wizard .dtfdk-step[data-step].is-current {
    display: block;
}

.dtfdk-progress span.is-done {
    color: var(--dtfdk-accent);
    background: color-mix(in srgb, var(--dtfdk-accent) 8%, #ffffff);
}

.dtfdk-wizard-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.dtfdk-wizard-nav button {
    border: 0;
    border-radius: 14px;
    min-height: 48px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    background: #eef2f7;
    color: #101828;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.dtfdk-wizard-nav button:last-child {
    background: var(--dtfdk-accent);
    color: #ffffff;
    box-shadow: 0 14px 34px color-mix(in srgb, var(--dtfdk-accent) 24%, transparent);
}

.dtfdk-wizard-nav button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(16,24,40,0.12);
}

.dtfdk-wizard-nav button:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 520px) {
    .dtfdk-wizard-nav {
        grid-template-columns: 1fr;
    }
}


/* Version 1.7.0, Gang-Sheet Bedienung */
.dtfdk-gang-item {
    grid-template-columns: 72px minmax(0, 1fr) 92px 92px 78px auto;
    align-items: center;
}

.dtfdk-gang-thumb {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background-color: #f1f5f9;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid rgba(16,24,40,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #475467;
}

.dtfdk-gang-info {
    min-width: 0;
}

.dtfdk-gang-row-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.dtfdk-gang-row-actions button {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .dtfdk-gang-item {
        grid-template-columns: 64px minmax(0, 1fr) 1fr 1fr;
    }
    .dtfdk-gang-row-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .dtfdk-gang-item {
        grid-template-columns: 56px minmax(0, 1fr);
    }
    .dtfdk-gang-item label,
    .dtfdk-gang-row-actions {
        grid-column: 1 / -1;
    }
    .dtfdk-gang-row-actions {
        flex-direction: column;
    }
}

/* Version 1.9.0, Teamwear */
.dtfdk-wizard .dtfdk-progress {
    grid-template-columns: repeat(5, 1fr);
}

.dtfdk-teamwear {
    display: grid;
    gap: 14px;
}

.dtfdk-team-toggle {
    padding: 14px;
    border: 1px solid rgba(16, 24, 40, 0.10);
    border-radius: 16px;
    background: #f8fafc;
    font-weight: 800;
}

.dtfdk-team-panel {
    display: grid;
    gap: 12px;
}

.dtfdk-team-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dtfdk-team-actions button,
.dtfdk-team-table button {
    border: 0;
    border-radius: 12px;
    min-height: 38px;
    padding: 8px 12px;
    background: #eef2f7;
    color: #101828;
    font-weight: 900;
    cursor: pointer;
}

.dtfdk-team-actions button:hover,
.dtfdk-team-table button:hover {
    background: #e4e7ec;
}

.dtfdk-team-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(16, 24, 40, 0.10);
    border-radius: 16px;
    background: #ffffff;
}

.dtfdk-team-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.dtfdk-team-table th,
.dtfdk-team-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
    text-align: left;
    font-size: 13px;
}

.dtfdk-team-table th {
    background: #f8fafc;
    color: #344054;
    font-weight: 900;
}

.dtfdk-team-table input {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(16, 24, 40, 0.16);
    border-radius: 10px;
    padding: 6px 8px;
}

@media (max-width: 620px) {
    .dtfdk-team-actions button {
        width: 100%;
    }
}


/* Outdoor Shop Bridge */
.dtfdk-cart-submit {
    margin-top: 10px;
    background: #0f766e !important;
    color: #ffffff !important;
}
.dtfdk-response a { color: inherit; font-weight: 900; text-decoration: underline; }
.dtfdk-os-design-wrap { margin-top: 1rem; display: grid; gap: .35rem; }
.dtfdk-os-design-wrap small { color: #667085; font-size: .82rem; }
.dtfdk-os-design-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(16, 24, 40, .18);
}
.dtfdk-os-design-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(16,24,40,.22); }
.dtfdk-shop-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.dtfdk-shop-card { background: #fff; border: 1px solid rgba(16,24,40,.08); border-radius: 22px; padding: 16px; box-shadow: 0 14px 34px rgba(16,24,40,.07); }
.dtfdk-shop-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; background: #f8fafc; }
.dtfdk-shop-card h3 { margin: 12px 0; font-size: 18px; line-height: 1.2; }
@media (max-width: 980px) { .dtfdk-shop-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dtfdk-shop-catalog { grid-template-columns: 1fr; } }


/* Version 2.4.0, DTF-World-artiger Gang-Sheet Editor */
.dtfdk-gang-app {
    background: #f3f7fb;
    color: #16415c;
}

.dtfdk-gang-app .dtfdk-gang-editor {
    min-height: 920px;
    background: #f3f7fb;
    border-top: 1px solid #dbe8f2;
}

.dtfdk-gang-topbar {
    height: 88px;
    display: grid;
    grid-template-columns: 300px 1fr auto;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border-bottom: 1px solid #d9e8f3;
    padding: 0 18px;
}

.dtfdk-gang-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #173e56;
}

.dtfdk-gang-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff, #edf7ff);
    border: 1px solid #d8e9f6;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #111827;
    box-shadow: 0 8px 20px rgba(31, 116, 170, .10);
}

.dtfdk-gang-project {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #244d67;
    font-size: 15px;
}

.dtfdk-gang-project strong {
    color: #2797d8;
    font-size: 18px;
}

.dtfdk-gang-project button,
.dtfdk-gang-top-actions button,
.dtfdk-gang-toolbar button,
.dtfdk-gang-viewport-head button {
    border: 0;
    background: transparent;
    color: #234f68;
    font: inherit;
    cursor: pointer;
}

.dtfdk-gang-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dtfdk-gang-close {
    background: #fff5f5 !important;
    color: #d22f2f !important;
    border: 1px solid #ffd5d5 !important;
    border-radius: 999px !important;
    padding: 11px 18px !important;
    font-weight: 800 !important;
}

.dtfdk-gang-link {
    color: #567187 !important;
}

.dtfdk-gang-order {
    background: #4ed75e !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 13px 26px !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 28px rgba(78, 215, 94, .28);
}

.dtfdk-gang-toolbar {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px 0 326px;
    background: #f7fbff;
    border-bottom: 1px solid #d7e7f1;
    color: #315c76;
}

.dtfdk-gang-toolbar button {
    min-height: 36px;
    border-radius: 10px;
    padding: 0 10px;
}

.dtfdk-gang-toolbar button:hover {
    background: #e8f4fb;
}

.dtfdk-gang-toolbar .is-danger {
    color: #c51f2f;
    font-weight: 800;
}

.dtfdk-gang-toolbar-spacer {
    flex: 1;
}

.dtfdk-gang-layout {
    display: grid;
    grid-template-columns: 326px minmax(0, 1fr);
    min-height: 774px;
}

.dtfdk-gang-sidebar {
    background: #ffffff;
    border-right: 1px solid #d8e7f1;
    overflow: auto;
    max-height: calc(100vh - 146px);
}

.dtfdk-gang-side-section {
    padding: 18px 18px 22px;
    border-bottom: 1px solid #edf3f7;
}

.dtfdk-gang-side-section h3 {
    margin: 0 0 16px;
    color: #17425c;
    font-size: 18px;
    line-height: 1.2;
}

.dtfdk-gang-control-row {
    display: grid;
    grid-template-columns: 1fr 108px;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dtfdk-gang-control-row label {
    color: #17425c;
    font-size: 15px;
    line-height: 1.2;
}

.dtfdk-gang-control-row input,
.dtfdk-gang-control-row select,
.dtfdk-gang-app .dtfdk-field input,
.dtfdk-gang-app .dtfdk-field select,
.dtfdk-gang-order-panel input,
.dtfdk-gang-order-panel textarea {
    min-height: 48px;
    border: 1px solid #d2e2ec;
    border-radius: 8px;
    background: #ffffff;
    color: #17425c;
    padding: 10px 12px;
    font-size: 16px;
}

.dtfdk-gang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: #17425c;
    font-size: 14px;
}

.dtfdk-gang-switch input {
    position: absolute;
    opacity: 0;
}

.dtfdk-gang-switch span {
    width: 46px;
    height: 24px;
    border-radius: 999px;
    background: #d7e8f4;
    position: relative;
    box-shadow: inset 0 0 0 1px #b8d9ec;
}

.dtfdk-gang-switch span:before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    left: 2px;
    top: 2px;
    transition: transform .18s ease;
    box-shadow: 0 3px 8px rgba(21, 78, 111, .20);
}

.dtfdk-gang-switch input:checked + span {
    background: #39aee8;
}

.dtfdk-gang-switch input:checked + span:before {
    transform: translateX(22px);
}

.dtfdk-gang-primary {
    width: 160px;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #2da9e8;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(45, 169, 232, .30);
    cursor: pointer;
}

.dtfdk-gang-app .dtfdk-upload {
    border-color: #b7d7ea;
    background: #f5fbff;
}

.dtfdk-gang-app .dtfdk-gang-list {
    max-height: 330px;
    overflow: auto;
}

.dtfdk-gang-app .dtfdk-gang-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border-color: #d8e7f1;
    border-radius: 12px;
}

.dtfdk-gang-app .dtfdk-gang-item label,
.dtfdk-gang-app .dtfdk-gang-row-actions {
    grid-column: 1 / -1;
}

.dtfdk-gang-app .dtfdk-gang-row-actions {
    display: flex;
    gap: 8px;
}

.dtfdk-gang-workspace {
    min-width: 0;
    display: grid;
    grid-template-rows: 44px minmax(0, 1fr) auto;
    background: #f6f9fc;
}

.dtfdk-gang-viewport-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    color: #17425c;
    font-size: 14px;
}

.dtfdk-gang-viewport-head button {
    background: #2da9e8;
    color: #ffffff;
    border-radius: 8px;
    padding: 5px 9px;
    margin-left: 6px;
}

.dtfdk-gang-stage-shell {
    min-width: 0;
    min-height: 0;
    padding: 0 18px 18px;
}

.dtfdk-gang-app .dtfdk-gang-canvas-wrap {
    height: calc(100vh - 235px);
    min-height: 690px;
    overflow: auto;
    position: relative;
    background: #f7f9fb;
    border: 1px solid #d6e6f0;
    border-radius: 0;
    padding: 0;
}

.dtfdk-gang-app .dtfdk-gang-canvas-wrap canvas {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    background: #f7f9fb;
    border-radius: 0;
}

.dtfdk-gang-floating-fill {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    border: 0;
    border-radius: 999px;
    background: #2da9e8;
    color: #ffffff;
    padding: 13px 22px;
    font-weight: 900;
    box-shadow: 0 15px 34px rgba(45, 169, 232, .35);
    cursor: pointer;
}

.dtfdk-gang-bottom-panels {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 14px;
    padding: 0 18px 18px;
}

.dtfdk-gang-bottom-panels .dtfdk-gang-production,
.dtfdk-gang-bottom-panels .dtfdk-gang-warnings {
    margin: 0;
}

.dtfdk-gang-order-panel .dtfdk-form {
    display: grid;
    gap: 10px;
}

.dtfdk-gang-order-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    color: #17425c;
    font-size: 14px;
}

.dtf-hidden,
.dtfdk-hidden-tools {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 1180px) {
    .dtfdk-gang-topbar {
        grid-template-columns: 1fr;
        height: auto;
        padding: 14px;
        gap: 10px;
    }

    .dtfdk-gang-toolbar {
        padding-left: 14px;
        overflow-x: auto;
    }

    .dtfdk-gang-layout {
        grid-template-columns: 1fr;
    }

    .dtfdk-gang-sidebar {
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid #d8e7f1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dtfdk-gang-side-section {
        border-right: 1px solid #edf3f7;
    }

    .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
        height: auto;
        min-height: 540px;
    }
}

@media (max-width: 760px) {
    .dtfdk-gang-sidebar,
    .dtfdk-gang-bottom-panels {
        grid-template-columns: 1fr;
    }

    .dtfdk-gang-top-actions {
        flex-wrap: wrap;
    }

    .dtfdk-gang-control-row {
        grid-template-columns: 1fr;
    }

    .dtfdk-gang-toolbar {
        gap: 6px;
    }

    .dtfdk-gang-toolbar button,
    .dtfdk-gang-toolbar span {
        white-space: nowrap;
    }
}


/* Version 2.4.1, Bestellformular erst nach Klick anzeigen */
.dtfdk-gang-fullscreen .dtfdk-form,
.dtfdk-gang-editor .dtfdk-form,
.dtfdk-gang .dtfdk-step[data-step="order"],
.dtfdk-gang .dtfdk-step.is-order-step {
    display: none;
}

.dtfdk-order-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dtfdk-order-modal.is-open {
    display: flex;
}

.dtfdk-order-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.dtfdk-order-modal__panel {
    position: relative;
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.60);
}

.dtfdk-order-modal__head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    padding: 26px 28px 18px;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.dtfdk-order-modal__head h2 {
    margin: 8px 0 6px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.05;
    color: #101828;
}

.dtfdk-order-modal__head p {
    margin: 0;
    color: #667085;
}

.dtfdk-order-modal__close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #eef2f7;
    color: #101828;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.dtfdk-order-modal__body {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 22px;
    padding: 24px 28px 28px;
}

.dtfdk-order-summary {
    background: #f8fafc;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 20px;
    padding: 16px;
}

.dtfdk-order-summary h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.dtfdk-order-form-slot .dtfdk-form {
    display: block !important;
}

.dtfdk-order-form-slot .dtfdk-pricebox {
    display: none;
}

.dtfdk-gang .dtfdk-submit[data-gang-open-order],
.dtfdk-gang [data-gang-open-order] {
    background: #45d35f;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(69, 211, 95, 0.32);
}

.dtfdk-gang .dtfdk-submit[data-gang-open-order]:hover,
.dtfdk-gang [data-gang-open-order]:hover {
    background: #31bd4b;
    box-shadow: 0 18px 42px rgba(49, 189, 75, 0.38);
}

@media (max-width: 820px) {
    .dtfdk-order-modal {
        padding: 12px;
    }

    .dtfdk-order-modal__panel {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 22px;
    }

    .dtfdk-order-modal__head {
        padding: 22px 18px 16px;
    }

    .dtfdk-order-modal__body {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

/* Version 2.4.2, sichtbare Blattbreite im Gang-Sheet */
.dtfdk-gang-sheet-quick {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7fbff;
    border: 1px solid #d7e7f1;
    border-radius: 16px;
    padding: 8px 10px;
    color: #17425c;
}

.dtfdk-gang-sheet-quick label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.dtfdk-gang-sheet-quick input {
    width: 74px;
    min-height: 36px;
    border: 1px solid #cfe2ee;
    border-radius: 10px;
    padding: 6px 8px;
    color: #17425c;
    font: inherit;
    background: #ffffff;
}

.dtfdk-sheet-size-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.dtfdk-sheet-size-modal.is-open {
    display: flex;
}

.dtfdk-sheet-size-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.dtfdk-sheet-size-modal__panel {
    position: relative;
    width: min(520px, calc(100vw - 30px));
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.dtfdk-sheet-size-modal__head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.dtfdk-sheet-size-modal__head h2 {
    margin: 8px 0 6px;
    color: #101828;
    font-size: 32px;
    line-height: 1.08;
}

.dtfdk-sheet-size-modal__head p {
    margin: 0;
    color: #667085;
}

.dtfdk-sheet-size-modal__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #eef2f7;
    color: #101828;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.dtfdk-sheet-size-modal__body {
    display: grid;
    gap: 16px;
    padding: 22px 26px 26px;
}

.dtfdk-sheet-size-modal__body label {
    display: grid;
    gap: 7px;
    color: #17425c;
    font-weight: 900;
}

.dtfdk-sheet-size-modal__body input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #cfe2ee;
    border-radius: 14px;
    padding: 10px 12px;
    font: inherit;
    font-size: 18px;
    color: #17425c;
}

.dtfdk-sheet-size-note {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.dtfdk-sheet-size-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.dtfdk-sheet-size-actions button {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 900;
    cursor: pointer;
}

.dtfdk-sheet-size-actions button:first-child {
    background: #eef2f7;
    color: #101828;
}

@media (max-width: 1180px) {
    .dtfdk-gang-topbar {
        grid-template-columns: 260px 1fr;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .dtfdk-gang-sheet-quick {
        grid-column: 1 / -1;
        justify-content: flex-start;
        width: fit-content;
    }

    .dtfdk-gang-top-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .dtfdk-gang-sheet-quick {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .dtfdk-gang-sheet-quick label {
        justify-content: space-between;
    }

    .dtfdk-gang-sheet-quick input {
        width: 120px;
    }

    .dtfdk-sheet-size-actions {
        flex-direction: column-reverse;
    }

    .dtfdk-sheet-size-actions button {
        width: 100%;
    }
}


/* Version 2.4.3, Projektfunktionen */
.dtfdk-gang-project [data-gang-project-title] {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.dtfdk-gang-project [data-gang-edit-project] {
    min-width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    background: #eef2f7;
    color: #145386;
    cursor: pointer;
}

.dtfdk-gang-project [data-gang-edit-project]:hover {
    background: #dbeafe;
}

.dtfdk-gang-link {
    min-width: 130px;
}


/* Version 2.4.4, Standalone Gang-Sheet Editor */
html.dtfdk-standalone-html,
html.dtfdk-standalone-html body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #f3f7fb !important;
}

body.dtfdk-standalone-editor-body {
    min-height: 100vh !important;
}

body.dtfdk-standalone-editor-body #wpadminbar {
    display: none !important;
}

.dtfdk-gang-standalone {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.dtfdk-gang-standalone .dtfdk-gang-editor {
    min-height: 100vh !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    border-top: 0;
}

.dtfdk-gang-standalone .dtfdk-gang-topbar {
    height: 78px;
}

.dtfdk-gang-standalone .dtfdk-gang-toolbar {
    height: 52px;
}

.dtfdk-gang-standalone .dtfdk-gang-layout {
    height: calc(100vh - 130px);
    min-height: 0 !important;
    overflow: hidden;
}

.dtfdk-gang-standalone .dtfdk-gang-sidebar {
    max-height: calc(100vh - 130px) !important;
    height: calc(100vh - 130px) !important;
    overflow: auto;
}

.dtfdk-gang-standalone .dtfdk-gang-workspace {
    height: calc(100vh - 130px);
    min-height: 0;
    overflow: hidden;
}

.dtfdk-gang-standalone .dtfdk-gang-stage-shell {
    min-height: 0;
    height: 100%;
}

.dtfdk-gang-standalone .dtfdk-gang-app .dtfdk-gang-canvas-wrap,
.dtfdk-gang-standalone.dtfdk-gang-app .dtfdk-gang-canvas-wrap {
    height: calc(100vh - 205px) !important;
    min-height: 0 !important;
}

.dtfdk-standalone-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #45d35f;
    color: #ffffff !important;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 14px 34px rgba(69, 211, 95, 0.32);
}

.dtfdk-standalone-launcher:hover {
    background: #31bd4b;
    color: #ffffff !important;
}

@media (max-width: 980px) {
    html.dtfdk-standalone-html,
    html.dtfdk-standalone-html body {
        overflow: auto !important;
    }

    .dtfdk-gang-standalone,
    .dtfdk-gang-standalone .dtfdk-gang-editor,
    .dtfdk-gang-standalone .dtfdk-gang-layout,
    .dtfdk-gang-standalone .dtfdk-gang-workspace {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .dtfdk-gang-standalone .dtfdk-gang-sidebar {
        height: auto !important;
        max-height: none !important;
    }
}


/* Version 2.4.5, Gang-Sheet Layout ohne Überlappungen */
.dtfdk-gang-app .dtfdk-gang-editor {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: calc(100vh - 1px);
    height: auto;
    overflow: hidden;
}

.dtfdk-gang-app .dtfdk-gang-topbar {
    height: auto !important;
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(160px, 260px) minmax(240px, 1fr) minmax(220px, auto) max-content;
    gap: 14px;
    align-items: center;
    padding: 12px 18px;
    position: relative;
    z-index: 5;
}

.dtfdk-gang-app .dtfdk-gang-brand,
.dtfdk-gang-app .dtfdk-gang-project,
.dtfdk-gang-app .dtfdk-gang-sheet-quick,
.dtfdk-gang-app .dtfdk-gang-top-actions {
    min-width: 0;
}

.dtfdk-gang-app .dtfdk-gang-project {
    flex-wrap: wrap;
    row-gap: 4px;
}

.dtfdk-gang-app .dtfdk-gang-project strong {
    white-space: nowrap;
}

.dtfdk-gang-app .dtfdk-gang-sheet-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dtfdk-gang-app .dtfdk-gang-sheet-quick label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 130px;
    justify-content: flex-end;
    white-space: nowrap;
}

.dtfdk-gang-app .dtfdk-gang-sheet-quick input {
    width: 74px;
    min-height: 38px;
    border-radius: 10px;
}

.dtfdk-gang-app .dtfdk-gang-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.dtfdk-gang-app .dtfdk-gang-top-actions button {
    white-space: nowrap;
    min-height: 40px;
}

.dtfdk-gang-app .dtfdk-gang-close,
.dtfdk-gang-app .dtfdk-gang-link,
.dtfdk-gang-app .dtfdk-gang-order {
    position: static !important;
    transform: none !important;
}

.dtfdk-gang-app .dtfdk-gang-toolbar {
    height: auto !important;
    min-height: 52px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 8px 18px;
    position: relative;
    z-index: 4;
}

.dtfdk-gang-app .dtfdk-gang-toolbar button {
    min-height: 34px;
    white-space: nowrap;
}

.dtfdk-gang-app .dtfdk-gang-toolbar-spacer {
    flex: 1 1 auto;
    min-width: 20px;
}

.dtfdk-gang-app .dtfdk-gang-layout {
    min-height: 0 !important;
    height: auto;
    overflow: hidden;
}

.dtfdk-gang-app .dtfdk-gang-sidebar {
    max-height: none;
    height: 100%;
    overflow: auto;
}

.dtfdk-gang-app .dtfdk-gang-workspace {
    min-height: 0;
    overflow: hidden;
}

.dtfdk-gang-app .dtfdk-gang-stage-shell {
    min-height: 0;
    overflow: hidden;
}

.dtfdk-gang-app .dtfdk-gang-canvas-wrap {
    min-height: 520px;
    height: calc(100vh - 245px);
}

/* Standalone genauer auf variable Topbar abstimmen */
.dtfdk-gang-standalone .dtfdk-gang-editor {
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100vh !important;
}

.dtfdk-gang-standalone .dtfdk-gang-layout {
    height: auto !important;
    min-height: 0 !important;
}

.dtfdk-gang-standalone .dtfdk-gang-sidebar,
.dtfdk-gang-standalone .dtfdk-gang-workspace {
    height: auto !important;
    min-height: 0 !important;
}

.dtfdk-gang-standalone .dtfdk-gang-canvas-wrap {
    height: calc(100vh - 220px) !important;
    min-height: 480px !important;
}

/* normale Shop-/Theme-Seiten, wenn der Designer nicht im echten Standalone-Tab läuft */
body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-editor {
    min-height: calc(100vh - 110px);
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
    height: calc(100vh - 310px);
}

@media (max-width: 1500px) {
    .dtfdk-gang-app .dtfdk-gang-topbar {
        grid-template-columns: minmax(150px, 230px) minmax(260px, 1fr) max-content;
    }

    .dtfdk-gang-app .dtfdk-gang-sheet-quick {
        grid-column: 2 / 3;
        justify-content: flex-start;
    }

    .dtfdk-gang-app .dtfdk-gang-top-actions {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
        align-self: center;
    }
}

@media (max-width: 1180px) {
    .dtfdk-gang-app .dtfdk-gang-topbar {
        grid-template-columns: 1fr;
    }

    .dtfdk-gang-app .dtfdk-gang-top-actions,
    .dtfdk-gang-app .dtfdk-gang-sheet-quick {
        grid-column: auto;
        grid-row: auto;
        justify-content: flex-start;
    }

    .dtfdk-gang-app .dtfdk-gang-top-actions {
        flex-wrap: wrap;
    }

    .dtfdk-gang-app .dtfdk-gang-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
        height: calc(100vh - 360px);
    }
}

@media (max-width: 760px) {
    .dtfdk-gang-app .dtfdk-gang-layout {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .dtfdk-gang-app .dtfdk-gang-sidebar {
        max-height: none;
    }

    .dtfdk-gang-app .dtfdk-gang-workspace {
        min-height: 620px;
    }

    .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
        height: 560px;
    }

    .dtfdk-gang-app .dtfdk-gang-top-actions button {
        flex: 1 1 auto;
    }
}


/* Version 2.4.6, Abstand bei festem Shop-Header */
body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app {
    position: relative;
    z-index: 1;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-editor {
    margin-top: 44px;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-topbar {
    position: sticky;
    top: 44px;
    z-index: 50;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-toolbar {
    position: sticky;
    top: 126px;
    z-index: 49;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
    height: calc(100vh - 360px);
}

/* Wenn oben keine feste Shop-Leiste existiert, per Klasse wieder neutral. */
body.dtfdk-no-fixed-shop-header .dtfdk-gang-app .dtfdk-gang-editor {
    margin-top: 0;
}

body.dtfdk-no-fixed-shop-header .dtfdk-gang-app .dtfdk-gang-topbar {
    top: 0;
}

body.dtfdk-no-fixed-shop-header .dtfdk-gang-app .dtfdk-gang-toolbar {
    top: 82px;
}

/* Echte Standalone-Ansicht bleibt komplett frei von Offset. */
body.dtfdk-standalone-editor-body .dtfdk-gang-app .dtfdk-gang-editor {
    margin-top: 0 !important;
}

body.dtfdk-standalone-editor-body .dtfdk-gang-app .dtfdk-gang-topbar,
body.dtfdk-standalone-editor-body .dtfdk-gang-app .dtfdk-gang-toolbar {
    position: relative !important;
    top: auto !important;
}

body.dtfdk-standalone-editor-body .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
    height: calc(100vh - 220px) !important;
}

/* Shop-Header mit hoher Z-Index-Stufe darf die Buttons nicht verdecken. */
body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-top-actions {
    position: relative;
    z-index: 55;
}

@media (max-width: 1180px) {
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-toolbar {
        top: 170px;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
        height: calc(100vh - 420px);
    }
}

@media (max-width: 760px) {
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-editor {
        margin-top: 20px;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-topbar,
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-toolbar {
        position: relative;
        top: auto;
    }
}


/* Version 2.4.7, Zoom-Steuerung */
.dtfdk-gang-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.dtfdk-gang-zoom-controls select {
    min-height: 36px;
    border: 1px solid #d2e2ec;
    border-radius: 9px;
    background: #ffffff;
    color: #17425c;
    padding: 4px 8px;
    font: inherit;
    font-weight: 700;
}

.dtfdk-gang-zoom-controls [data-gang-zoom-label] {
    min-width: 46px;
    text-align: right;
    font-weight: 800;
    color: #17425c;
}

.dtfdk-gang-zoom-controls button {
    min-width: 36px;
    min-height: 36px;
    border-radius: 9px;
}

@media (max-width: 760px) {
    .dtfdk-gang-zoom-controls {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


/* Version 2.4.8, mehr Abstand zur grauen Shop-Leiste */
body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app {
    padding-top: 18px;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-editor {
    margin-top: calc(var(--dtfdk-fixed-header-height, 44px) + 18px) !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-topbar {
    top: calc(var(--dtfdk-fixed-header-height, 44px) + 18px) !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-toolbar {
    top: calc(var(--dtfdk-fixed-header-height, 44px) + 100px) !important;
}

body.dtfdk-no-fixed-shop-header .dtfdk-gang-app {
    padding-top: 0;
}

body.dtfdk-no-fixed-shop-header .dtfdk-gang-app .dtfdk-gang-editor {
    margin-top: 18px !important;
}

body.dtfdk-no-fixed-shop-header .dtfdk-gang-app .dtfdk-gang-topbar {
    top: 18px !important;
}

body.dtfdk-no-fixed-shop-header .dtfdk-gang-app .dtfdk-gang-toolbar {
    top: 100px !important;
}

body.dtfdk-standalone-editor-body .dtfdk-gang-app {
    padding-top: 0 !important;
}

@media (max-width: 1180px) {
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-toolbar {
        top: calc(var(--dtfdk-fixed-header-height, 44px) + 144px) !important;
    }
}

@media (max-width: 760px) {
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app {
        padding-top: 8px;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-editor {
        margin-top: calc(var(--dtfdk-fixed-header-height, 44px) + 8px) !important;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-topbar,
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-toolbar {
        top: auto !important;
    }
}


/* Version 2.4.9, echter Abstandshalter statt Header-Erkennung */
body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-shop-spacer {
    display: block !important;
    height: 72px !important;
    min-height: 72px !important;
    width: 100% !important;
    flex: 0 0 72px !important;
    background: #f3f7fb;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-editor {
    margin-top: 0 !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-topbar,
body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-toolbar {
    position: relative !important;
    top: auto !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
    height: calc(100vh - 345px) !important;
}

body.dtfdk-standalone-editor-body .dtfdk-gang-app .dtfdk-gang-shop-spacer {
    display: none !important;
    height: 0 !important;
}

@media (max-width: 1180px) {
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-shop-spacer {
        height: 92px !important;
        min-height: 92px !important;
    }
}

@media (max-width: 760px) {
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-shop-spacer {
        height: 56px !important;
        min-height: 56px !important;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
        height: 560px !important;
    }
}


/* Version 2.5.0, harter Abstand direkt am Gang-Sheet Root */
.dtfdk-gang-shop-page {
    padding-top: var(--dtfdk-shop-offset, 96px) !important;
}

.dtfdk-gang-shop-page .dtfdk-gang-shop-spacer {
    display: none !important;
}

.dtfdk-gang-shop-page .dtfdk-gang-editor {
    margin-top: 0 !important;
    position: relative !important;
}

.dtfdk-gang-shop-page .dtfdk-gang-topbar,
.dtfdk-gang-shop-page .dtfdk-gang-toolbar {
    position: relative !important;
    top: auto !important;
}

body.dtfdk-standalone-editor-body .dtfdk-gang-shop-page,
.dtfdk-gang-standalone {
    padding-top: 0 !important;
}

@media (max-width: 760px) {
    .dtfdk-gang-shop-page {
        padding-top: 72px !important;
    }
}


/* Version 2.5.1, graue Shop-Leiste im Gang-Sheet Modus ausblenden */
body.dtfdk-hide-shop-bars .dtfdk-gang-shop-page {
    padding-top: 0 !important;
}

body.dtfdk-hide-shop-bars .dtfdk-gang-shop-page .dtfdk-gang-editor {
    margin-top: 0 !important;
}

body.dtfdk-hide-shop-bars .dtfdk-gang-shop-page .dtfdk-gang-topbar,
body.dtfdk-hide-shop-bars .dtfdk-gang-shop-page .dtfdk-gang-toolbar {
    position: relative !important;
    top: auto !important;
}

body.dtfdk-hide-shop-bars [data-dtfdk-hidden-shop-bar="1"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}


/* Version 2.5.2, Gang-Sheet als echtes Fullscreen-Overlay */
html.dtfdk-gang-overlay-active,
html.dtfdk-gang-overlay-active body {
    overflow: hidden !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f3f7fb !important;
    overflow: hidden !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-shop-spacer {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-editor {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f3f7fb !important;
    border: 0 !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-topbar,
body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-toolbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 3 !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-topbar {
    min-height: 78px !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-toolbar {
    min-height: 52px !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-layout {
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-sidebar {
    height: calc(100vh - 130px) !important;
    max-height: calc(100vh - 130px) !important;
    overflow: auto !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-workspace {
    height: calc(100vh - 130px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-canvas-wrap {
    height: calc(100vh - 205px) !important;
    min-height: 0 !important;
    overflow: auto !important;
}

/* Schließen-Button als echte Editor-Schließen Aktion hervorheben */
body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-close {
    background: #fff4f4 !important;
    color: #b42318 !important;
    border: 1px solid #fecdca !important;
}

@media (max-width: 1180px) {
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-sidebar,
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-workspace {
        height: calc(100vh - 170px) !important;
        max-height: calc(100vh - 170px) !important;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-canvas-wrap {
        height: calc(100vh - 245px) !important;
    }
}

@media (max-width: 760px) {
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page {
        overflow: auto !important;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-editor {
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-sidebar,
    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-workspace {
        height: auto !important;
        max-height: none !important;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page .dtfdk-gang-canvas-wrap {
        height: 560px !important;
    }
}


/* Version 2.5.3, Outdoor-Shop Topbar gezielt entfernen */
html.dtfdk-gang-overlay-active .os-site-topbar,
body.dtfdk-gang-overlay-active .os-site-topbar,
html.dtfdk-gang-overlay-active body .os-site-topbar,
body.dtfdk-gang-overlay-active .os-site-topbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transform: translateY(-200%) !important;
    z-index: -1 !important;
}

body.dtfdk-gang-overlay-active {
    padding-top: 0 !important;
}

body.dtfdk-gang-overlay-active .dtfdk-gang-shop-page {
    top: 0 !important;
}


/* Version 2.5.4, Zurück-zur-Startseite Button */
.dtfdk-gang-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 10px;
    background: #eef2f7;
    color: #234f68 !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none !important;
    border: 1px solid #d8e7f1;
    white-space: nowrap;
}

.dtfdk-gang-home-link:hover {
    background: #dbeafe;
    color: #145386 !important;
}

.dtfdk-gang-project {
    align-items: center;
}


/* Version 2.5.5, mobile Gang-Sheet Ansicht */
@media (max-width: 900px) {
    html.dtfdk-gang-overlay-active,
    html.dtfdk-gang-overlay-active body {
        overflow: hidden !important;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page,
    .dtfdk-gang-standalone {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #f3f7fb !important;
    }

    .dtfdk-gang-app .dtfdk-gang-editor {
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        display: grid !important;
        grid-template-rows: auto auto minmax(0, 1fr) !important;
        overflow: hidden !important;
    }

    .dtfdk-gang-app .dtfdk-gang-topbar {
        min-height: 0 !important;
        height: auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #d9e8f3 !important;
    }

    .dtfdk-gang-app .dtfdk-gang-brand {
        display: flex !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-logo {
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-brand strong {
        font-size: 15px !important;
        line-height: 1.1 !important;
    }

    .dtfdk-gang-app .dtfdk-gang-project {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        font-size: 13px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-project strong {
        width: 100% !important;
        font-size: 16px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-project button,
    .dtfdk-gang-app .dtfdk-gang-project a {
        min-height: 34px !important;
        padding: 7px 9px !important;
        font-size: 12px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-sheet-quick {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-sheet-quick label {
        min-width: 0 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        justify-content: stretch !important;
        font-size: 12px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-sheet-quick input {
        width: 100% !important;
        min-height: 36px !important;
        font-size: 14px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-top-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 8px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-top-actions button {
        width: 100% !important;
        min-height: 38px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-toolbar {
        min-height: 0 !important;
        height: auto !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #d9e8f3 !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .dtfdk-gang-app .dtfdk-gang-toolbar span:not(.dtfdk-gang-toolbar-spacer) {
        display: none !important;
    }

    .dtfdk-gang-app .dtfdk-gang-toolbar button {
        flex: 0 0 auto !important;
        min-height: 36px !important;
        padding: 8px 11px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
        background: #eef2f7 !important;
    }

    .dtfdk-gang-app .dtfdk-gang-toolbar-spacer {
        display: none !important;
    }

    .dtfdk-gang-app .dtfdk-gang-layout {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .dtfdk-gang-app .dtfdk-gang-workspace {
        order: 1 !important;
        height: 52dvh !important;
        min-height: 360px !important;
        max-height: 52dvh !important;
        display: grid !important;
        grid-template-rows: 40px minmax(0, 1fr) !important;
        overflow: hidden !important;
    }

    .dtfdk-gang-app .dtfdk-gang-viewport-head {
        height: 40px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        background: #f6f9fc !important;
        border-bottom: 1px solid #d9e8f3 !important;
    }

    .dtfdk-gang-app .dtfdk-gang-viewport-head > div:first-child {
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    .dtfdk-gang-app .dtfdk-gang-zoom-controls {
        gap: 4px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-zoom-controls select,
    .dtfdk-gang-app .dtfdk-gang-zoom-controls button {
        min-height: 30px !important;
        min-width: 30px !important;
        font-size: 12px !important;
        padding: 4px 6px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-zoom-controls [data-gang-zoom-label] {
        display: none !important;
    }

    .dtfdk-gang-app .dtfdk-gang-stage-shell {
        height: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
        height: 100% !important;
        min-height: 0 !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .dtfdk-gang-app .dtfdk-gang-canvas-wrap canvas {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
    }

    .dtfdk-gang-app .dtfdk-gang-floating-fill {
        bottom: 12px !important;
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-bottom-panels {
        display: none !important;
    }

    .dtfdk-gang-app .dtfdk-gang-sidebar {
        order: 2 !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        background: #ffffff !important;
        border-top: 1px solid #d9e8f3 !important;
        border-right: 0 !important;
    }

    .dtfdk-gang-app .dtfdk-gang-side-section {
        padding: 12px !important;
        border-bottom: 1px solid #edf3f7 !important;
    }

    .dtfdk-gang-app .dtfdk-gang-side-section h3 {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-control-row {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-control-row label {
        font-size: 13px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-control-row input,
    .dtfdk-gang-app .dtfdk-gang-control-row select,
    .dtfdk-gang-app .dtfdk-field input,
    .dtfdk-gang-app .dtfdk-field select {
        min-height: 40px !important;
        font-size: 14px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-list {
        display: grid !important;
        gap: 8px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-item {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-upload {
        padding: 12px !important;
    }

    .dtfdk-gang-app .dtfdk-gang-order-panel {
        max-height: none !important;
    }

    .dtfdk-order-modal__panel,
    .dtfdk-sheet-size-modal__panel {
        width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 20px) !important;
        border-radius: 18px !important;
    }

    .dtfdk-order-modal__head,
    .dtfdk-sheet-size-modal__head {
        padding: 16px !important;
    }

    .dtfdk-order-modal__body,
    .dtfdk-sheet-size-modal__body {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
    }
}

@media (max-width: 430px) {
    .dtfdk-gang-app .dtfdk-gang-workspace {
        height: 48dvh !important;
        min-height: 320px !important;
        max-height: 48dvh !important;
    }

    .dtfdk-gang-app .dtfdk-gang-top-actions {
        grid-template-columns: 1fr !important;
    }

    .dtfdk-gang-app .dtfdk-gang-sheet-quick {
        grid-template-columns: 1fr !important;
    }

    .dtfdk-gang-app .dtfdk-gang-project button,
    .dtfdk-gang-app .dtfdk-gang-project a {
        flex: 1 1 auto !important;
    }
}


/* Version 2.5.6, Mobile Scroll repariert */
@media (max-width: 900px) {
    html.dtfdk-gang-overlay-active,
    html.dtfdk-gang-overlay-active body {
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    body:not(.dtfdk-standalone-editor-body) .dtfdk-gang-shop-page,
    .dtfdk-gang-standalone {
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        touch-action: auto !important;
    }

    .dtfdk-gang-app .dtfdk-gang-editor {
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: grid !important;
        grid-template-rows: auto auto minmax(0, 1fr) !important;
    }

    .dtfdk-gang-app .dtfdk-gang-layout {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .dtfdk-gang-app .dtfdk-gang-workspace {
        flex: 0 0 auto !important;
        height: 52dvh !important;
        min-height: 340px !important;
        max-height: 52dvh !important;
        overflow: hidden !important;
    }

    .dtfdk-gang-app .dtfdk-gang-sidebar {
        flex: 0 0 auto !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .dtfdk-gang-app .dtfdk-gang-side-section,
    .dtfdk-gang-app .dtfdk-gang-order-panel,
    .dtfdk-gang-app .dtfdk-gang-sheet-settings {
        overflow: visible !important;
    }

    .dtfdk-gang-app .dtfdk-gang-canvas-wrap {
        touch-action: pan-x pan-y !important;
        overscroll-behavior: contain !important;
    }

    .dtfdk-gang-app input,
    .dtfdk-gang-app select,
    .dtfdk-gang-app textarea,
    .dtfdk-gang-app button,
    .dtfdk-gang-app a {
        touch-action: manipulation !important;
    }
}

@media (max-width: 430px) {
    .dtfdk-gang-app .dtfdk-gang-workspace {
        height: 46dvh !important;
        min-height: 300px !important;
        max-height: 46dvh !important;
    }

    .dtfdk-gang-app .dtfdk-gang-layout {
        padding-bottom: 28px !important;
    }
}
