.nordstein-funnel {
    --ns-funnel-dark: #3f3a3a;
    --ns-funnel-dark-hover: #5a5454;
    --ns-funnel-text: #1f1f21;
    --ns-funnel-muted: #777;
    --ns-funnel-line: #d8d8d8;
    --ns-funnel-soft: #f4f4f4;
    font-family: Montserrat, Arial, sans-serif;
    color: var(--ns-funnel-text);
    max-width: 1336px;
    margin: 120px auto 95px;
    padding: 0 18px;
    box-sizing: border-box;
    text-transform: none;
}

.nordstein-funnel * {
    box-sizing: border-box;
    text-transform: none;
    letter-spacing: 0;
}

.nordstein-funnel__mode {
    border: 1px solid var(--ns-funnel-line);
    background: #f7f7f7;
    color: #333;
    padding: 12px 16px;
    margin: 0 auto 52px;
    max-width: 920px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.nordstein-funnel__mode--staging {
    border-color: #b8c4b8;
    background: #f5f8f5;
}

.nordstein-funnel__mode--production {
    border-color: #d7b9a0;
    background: #fbf5ef;
}

.nordstein-funnel h2 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    margin: 0 0 62px;
    color: #222;
}

.nordstein-funnel__step {
    display: none;
    min-height: 420px;
}

.nordstein-funnel__step.is-active {
    display: block;
}

.nordstein-funnel__products {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 26px;
    align-items: start;
}

.nordstein-funnel button.nordstein-funnel__product {
    appearance: none;
    border: 1px solid #d4d1cc !important;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #111 !important;
    min-height: 172px;
    width: 100%;
    min-width: 0;
    padding: 18px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font: 700 16px/1.25 Montserrat, Arial, sans-serif;
    cursor: pointer;
    text-align: center;
    box-shadow: none !important;
    border-radius: 2px;
    overflow-wrap: anywhere;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.nordstein-funnel button.nordstein-funnel__product:hover {
    background: #f6f6f5 !important;
    background-color: #f6f6f5 !important;
    border-color: #aaa39c !important;
    color: #111 !important;
}

.nordstein-funnel button.nordstein-funnel__product.is-selected {
    background: #f4f4f3 !important;
    background-color: #f4f4f3 !important;
    border-color: var(--ns-funnel-dark) !important;
    color: #111 !important;
    box-shadow: inset 0 0 0 2px var(--ns-funnel-dark) !important;
}

.nordstein-funnel__icon {
    width: 92px;
    height: 78px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    transition: transform .16s ease;
}

.nordstein-funnel__icon img {
    width: 88px;
    height: 78px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.nordstein-funnel__product span:last-child {
    text-align: center;
    max-width: 100%;
    color: #111;
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.nordstein-funnel__product:hover .nordstein-funnel__icon,
.nordstein-funnel__product.is-selected .nordstein-funnel__icon {
    transform: translateY(-2px);
}

.nordstein-funnel__product.is-selected .nordstein-funnel__icon {
    outline: 0 !important;
    outline-offset: 0;
}

.nordstein-funnel__materials {
    max-width: 1068px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

.nordstein-funnel button.nordstein-funnel__material {
    appearance: none;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid #d4d1cc !important;
    height: 90px;
    font: 500 18px/1.2 Montserrat, Arial, sans-serif;
    color: #111 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    border-radius: 2px;
    box-shadow: none !important;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.nordstein-funnel button.nordstein-funnel__material:hover {
    background: #f6f6f5 !important;
    background-color: #f6f6f5 !important;
    border-color: #aaa39c !important;
    color: #111 !important;
}

.nordstein-funnel button.nordstein-funnel__material.is-selected {
    background: #f4f4f3 !important;
    background-color: #f4f4f3 !important;
    border-color: var(--ns-funnel-dark) !important;
    box-shadow: inset 0 0 0 2px var(--ns-funnel-dark) !important;
    color: #111 !important;
}

.nordstein-funnel__date-wrap,
.nordstein-funnel__message,
.nordstein-funnel__upload,
.nordstein-funnel__contact {
    max-width: 1044px;
    margin: 0 auto;
}

.nordstein-funnel__date-input {
    width: 100%;
    height: 46px;
    border: 1px solid #d2d2d2;
    box-shadow: 0 1px 8px rgba(0,0,0,.10);
    text-align: center;
    font: 500 16px/1 Montserrat, Arial, sans-serif;
    color: #333;
    margin-bottom: 18px;
}

.nordstein-funnel__calendar {
    border: 1px solid #d2d2d2;
    margin-bottom: 18px;
}

.nordstein-funnel__cal-head {
    height: 56px;
    background: var(--ns-funnel-dark);
    color: #fff;
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    align-items: center;
    text-align: center;
    font-weight: 700;
}

.nordstein-funnel__cal-nav {
    height: 38px;
    min-width: 38px;
    margin: 0 10px;
    border: 0;
    background: #fff;
    color: var(--ns-funnel-dark);
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.nordstein-funnel__cal-nav:hover {
    background: #f2f2f2;
}

.nordstein-funnel table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    table-layout: fixed;
}

.nordstein-funnel th {
    height: 44px;
    font-weight: 700;
    font-size: 13px;
    color: #555;
}

.nordstein-funnel td {
    height: 46px;
    background: #fafafa;
}

.nordstein-funnel__day {
    width: 100%;
    height: 46px;
    border: 0;
    background: transparent;
    color: #555;
    font: 500 14px Montserrat, Arial, sans-serif;
    cursor: pointer;
}

.nordstein-funnel__day:disabled {
    color: #cfcfcf;
    cursor: not-allowed;
}

.nordstein-funnel__day.is-selected {
    background: var(--ns-funnel-dark);
    color: #fff;
    font-weight: 700;
}

.nordstein-funnel__time-title {
    font-weight: 700;
    margin: 16px 0 10px;
}

.nordstein-funnel__times {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
}

.nordstein-funnel__time {
    min-height: 46px;
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #555;
    font: 500 15px/1.2 Montserrat, Arial, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8px;
}

.nordstein-funnel__time.is-disabled {
    background: #fafafa;
    color: #cfcfcf;
    cursor: not-allowed;
}

.nordstein-funnel__time.is-selected {
    background: var(--ns-funnel-dark);
    color: #fff;
    border-color: var(--ns-funnel-dark);
}

.nordstein-funnel__help {
    text-align: center;
    margin: -42px 0 34px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.nordstein-funnel textarea {
    width: 100%;
    min-height: 168px;
    border: 1px solid #d0d0d0;
    padding: 18px;
    font: 500 16px/1.5 Montserrat, Arial, sans-serif;
    resize: vertical;
}

.nordstein-funnel__drop {
    border: 1px solid #d0d0d0;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    padding: 24px;
}

.nordstein-funnel__upload-icon {
    width: 48px;
    height: 48px;
    display: block;
    background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%233f3a3a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 48V18a6 6 0 0 1 6-6h20l14 14v22a6 6 0 0 1-6 6H18a6 6 0 0 1-6-6Z'/%3E%3Cpath d='M38 12v14h14'/%3E%3Cpath d='M24 39l8-8 8 8'/%3E%3Cpath d='M32 31v17'/%3E%3C/svg%3E");
}

.nordstein-funnel__drop small {
    font-weight: 500;
    color: #777;
}

.nordstein-funnel__file-name {
    font-size: 14px;
    color: #333;
}

.nordstein-funnel__contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 26px;
}

.nordstein-funnel__field label {
    display: block;
    font-weight: 600;
    margin: 0 0 8px;
    color: #111;
    font-size: 15px;
}

.nordstein-funnel__field input,
.nordstein-funnel__field select {
    width: 100%;
    height: 46px;
    border: 1px solid #cfcfcf;
    padding: 0 12px;
    font: 500 15px Montserrat, Arial, sans-serif;
    background: #fff;
    color: #222;
}

.nordstein-funnel__phone-row {
    display: grid;
    grid-template-columns: minmax(150px,190px) 1fr;
    gap: 10px;
}

.nordstein-funnel__privacy {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.nordstein-funnel__privacy input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.nordstein-funnel__privacy a {
    color: #111;
    text-decoration: underline;
}

.nordstein-funnel__error {
    display: none;
    color: #9b1c1c;
    font-size: 14px;
    line-height: 1.4;
    margin: 18px auto 0;
    max-width: 1044px;
    text-align: center;
}

.nordstein-funnel__error.is-visible {
    display: block;
}

.nordstein-funnel__nav {
    display: grid;
    grid-template-columns: 112px 1fr 116px;
    align-items: center;
    gap: 20px;
    margin: 50px 0 0;
}

.nordstein-funnel__back,
.nordstein-funnel__next,
.nordstein-funnel__submit {
    border: 0;
    height: 50px;
    padding: 0 22px;
    font: 600 16px Montserrat, Arial, sans-serif;
    cursor: pointer;
    background: var(--ns-funnel-dark);
    color: #fff;
    transition: background .16s ease, box-shadow .16s ease;
}

.nordstein-funnel__back:hover,
.nordstein-funnel__next:hover,
.nordstein-funnel__submit:hover {
    background: var(--ns-funnel-dark-hover);
    color: #fff;
}

.nordstein-funnel__back:focus-visible,
.nordstein-funnel__next:focus-visible,
.nordstein-funnel__submit:focus-visible,
.nordstein-funnel__cal-nav:focus-visible,
.nordstein-funnel__time:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

.nordstein-funnel__back:disabled,
.nordstein-funnel__next:disabled,
.nordstein-funnel__submit:disabled {
    background: #e1e1e1;
    color: #777;
    cursor: not-allowed;
}

.nordstein-funnel__submit.is-loading {
    min-width: 238px;
}

.nordstein-funnel__submit {
    display: none;
    min-width: 220px;
    justify-self: end;
}

.nordstein-funnel__progress {
    height: 8px;
    background: #e1e1e1;
    border-radius: 9px;
    overflow: hidden;
}

.nordstein-funnel__progress span {
    display: block;
    height: 100%;
    background: var(--ns-funnel-dark);
    width: 0;
    transition: width .2s ease;
}

.nordstein-funnel__success {
    display: none;
    max-width: 880px;
    margin: 36px auto 0;
    border: 1px solid #bfc8bf;
    background: #f5f8f5;
    padding: 22px;
    text-align: center;
    font-weight: 600;
    color: #263526;
}

.nordstein-funnel__success.is-visible {
    display: block;
}

.nordstein-funnel.is-final .nordstein-funnel__next {
    display: none;
}

.nordstein-funnel.is-final .nordstein-funnel__nav {
    grid-template-columns: 112px 1fr;
    row-gap: 30px;
}

.nordstein-funnel.is-final .nordstein-funnel__submit {
    display: block;
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: 4px;
}

.nordstein-funnel__summary {
    display: none;
    max-width: 880px;
    margin: 22px auto 0;
    border: 1px solid #d8d8d8;
    background: #fff;
    padding: 24px;
    color: #222;
}

.nordstein-funnel__summary.is-visible {
    display: block;
}

.nordstein-funnel__summary h3 {
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.25;
    color: #222;
}

.nordstein-funnel__summary dl {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: 10px 18px;
    margin: 0;
}

.nordstein-funnel__summary dt {
    font-weight: 700;
}

.nordstein-funnel__summary dd {
    margin: 0;
}

.nordstein-funnel__debug {
    display: none;
    max-width: 880px;
    margin: 22px auto 0;
    border: 1px solid #d7b9a0;
    background: #fbf5ef;
    padding: 20px 24px;
    color: #222;
    font-size: 14px;
}

.nordstein-funnel__debug.is-visible {
    display: block;
}

.nordstein-funnel__debug h3 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.25;
}

.nordstein-funnel__debug dl {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 8px 16px;
    margin: 0;
}

.nordstein-funnel__debug dt {
    font-weight: 700;
}

.nordstein-funnel__debug dd {
    margin: 0;
}

.nordstein-funnel__admin-link {
    display: inline-flex;
    margin-top: 16px;
    color: #111;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .nordstein-funnel {
        margin-top: 72px;
        padding: 0 22px;
    }

    .nordstein-funnel h2 {
        font-size: 27px;
        margin-bottom: 42px;
    }

    .nordstein-funnel__products {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 22px;
    }

    .nordstein-funnel__times {
        grid-template-columns: repeat(2, 1fr);
    }

    .nordstein-funnel__contact-grid {
        grid-template-columns: 1fr;
    }

    .nordstein-funnel__cal-head {
        grid-template-columns: 72px 1fr 72px;
    }

    .nordstein-funnel__nav {
        grid-template-columns: 96px 1fr 106px;
        gap: 10px;
    }

    .nordstein-funnel.is-final .nordstein-funnel__nav {
        grid-template-columns: 96px 1fr;
        row-gap: 28px;
    }

    .nordstein-funnel__back,
    .nordstein-funnel__next,
    .nordstein-funnel__submit {
        height: 48px;
        padding: 0 14px;
        font-size: 15px;
    }

    .nordstein-funnel__submit {
        min-width: auto;
    }
}

@media (max-width: 520px) {
    .nordstein-funnel {
        margin-top: 46px;
    }

    .nordstein-funnel__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .nordstein-funnel button.nordstein-funnel__product {
        min-height: 146px;
        font-size: 14px;
    }

    .nordstein-funnel__icon,
    .nordstein-funnel__icon img {
        width: 76px;
        height: 66px;
    }

    .nordstein-funnel button.nordstein-funnel__material {
        height: 76px;
        font-size: 16px;
    }

    .nordstein-funnel__times {
        grid-template-columns: 1fr;
    }

    .nordstein-funnel__nav {
        grid-template-columns: 88px 1fr 98px;
    }

    .nordstein-funnel.is-final .nordstein-funnel__nav {
        grid-template-columns: 88px 1fr;
    }

    .nordstein-funnel__phone-row,
    .nordstein-funnel__summary dl,
    .nordstein-funnel__debug dl {
        grid-template-columns: 1fr;
    }

    .nordstein-funnel__summary dt {
        margin-top: 6px;
    }
}
