/* ============================================================================
   VexPhoenixHost - Kaufstrecke (Konfigurator + Warenkorb)
   ----------------------------------------------------------------------------
   Links wird entschieden (Schritte bzw. Artikel), rechts steht immer, was es
   kostet. Die Zusammenfassung klebt beim Scrollen mit - der Preis ist nie
   aus dem Blick, und der orange Knopf ist immer erreichbar.
   ========================================================================== */

.sh-head { padding-bottom: clamp(24px, 4vw, 40px); }
.sh-head h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); }

.sh-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}
.sh-steps { display: grid; gap: 18px; min-width: 0; }

/* ---- Schritte ---------------------------------------------------------- */
.sh-step {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--nx-line-2);
    border-radius: var(--nx-r-lg);
    background: var(--nx-steel);
}
.sh-step h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    font-size: 1.3rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}
.sh-num {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 162, 255, 0.45);
    color: var(--nx-ice-soft);
    font: 700 0.85rem/1 var(--nx-tech);
}
.sh-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sh-note { margin: 12px 0 0; color: var(--nx-text-3); font-size: var(--nx-fs-xs); line-height: 1.55; }
.sh-note strong { color: var(--nx-ash); }

/* Auswahllisten bekommen einen eigenen Pfeil */
.nx-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%238693aa' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.nx-field select option, .nx-field select optgroup { background: #0e1626; color: var(--nx-ash); }

/* ---- Regler: die Spur fuellt sich von Blau nach Orange ------------------ */
.sh-range + .sh-range { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--nx-line); }
.sh-range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sh-range__top label { font-weight: 600; font-size: var(--nx-fs-sm); }
.sh-range__top output { font: 800 1.35rem/1 var(--nx-tech); color: var(--nx-ash); font-variant-numeric: tabular-nums; }
.sh-range__scale { display: flex; justify-content: space-between; margin-top: 10px; color: var(--nx-text-3); font-size: var(--nx-fs-xs); }

input[type="range"].sh-slider {
    --fill: 0%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background:
        linear-gradient(90deg, var(--nx-ice), var(--nx-ember)) 0 0 / var(--fill) 100% no-repeat,
        rgba(160, 190, 235, 0.12);
    cursor: pointer;
}
input[type="range"].sh-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--nx-ash);
    border: 4px solid var(--nx-night);
    box-shadow: 0 0 0 1px rgba(160, 190, 235, 0.4), 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: transform var(--nx-t-small) var(--nx-ease);
}
input[type="range"].sh-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--nx-ash);
    border: 4px solid var(--nx-night);
    box-shadow: 0 0 0 1px rgba(160, 190, 235, 0.4);
}
input[type="range"].sh-slider:active::-webkit-slider-thumb { transform: scale(1.15); }
.sh-slider:focus-visible { outline: 2px solid var(--nx-ice); outline-offset: 6px; }

/* ---- Zusammenfassung (rechts, klebt mit) -------------------------------- */
.sh-summary {
    position: sticky;
    top: 96px;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid var(--nx-line-2);
    border-radius: var(--nx-r-lg);
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(255, 107, 0, 0.10), transparent 70%),
        var(--nx-steel);
}
.sh-summary__kicker { margin: 0 0 6px; color: var(--nx-text-2); font-weight: 600; }
.sh-summary__price strong {
    font-size: clamp(2.4rem, 2rem + 1.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.sh-summary__price span { margin-left: 6px; color: var(--nx-text-3); }
.sh-summary__vat { margin: 8px 0 0; color: var(--nx-text-3); font-size: var(--nx-fs-xs); }

.sh-summary__list { margin: 22px 0; display: grid; }
.sh-summary__list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-top: 1px solid var(--nx-line);
    font-size: var(--nx-fs-sm);
}
.sh-summary__list div:last-child { border-bottom: 1px solid var(--nx-line); }
.sh-summary__list dt { color: var(--nx-text-3); }
.sh-summary__list dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sh-summary__list .savings dd, .sh-summary__list .savings dt { color: #7bd88f; }
.sh-summary__list--totals { margin-top: 0; }

.sh-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.sh-summary__total span { color: var(--nx-text-2); font-size: var(--nx-fs-sm); }
.sh-summary__total strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }

.sh-balance {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(160, 190, 235, 0.05);
    font-size: var(--nx-fs-sm);
}
.sh-balance span { color: var(--nx-text-2); }
.sh-balance i { color: var(--nx-ice-soft); margin-right: 6px; }
.sh-balance strong { font-variant-numeric: tabular-nums; }
.sh-balance a { color: var(--nx-ice-soft); text-decoration: underline; text-underline-offset: 3px; }

.sh-pay-title { margin: 18px 0 10px; font-weight: 600; font-size: var(--nx-fs-sm); }
.sh-pay { display: grid; gap: 8px; }
.sh-pay__btn {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: var(--nx-ember);
    color: var(--nx-on-ember);
    font: 650 var(--nx-fs-sm)/1.2 var(--nx-sans);
    text-align: left;
    cursor: pointer;
    transition: background var(--nx-t-small) ease, box-shadow var(--nx-t-med) var(--nx-ease);
}
.sh-pay__btn + .sh-pay__btn { background: transparent; color: var(--nx-ash); box-shadow: inset 0 0 0 1px var(--nx-line-2); }
.sh-pay__btn small { font-weight: 500; opacity: 0.75; }
@media (hover: hover) {
    .sh-pay__btn:hover { background: #ff7d1f; box-shadow: 0 10px 30px -10px rgba(255, 107, 0, 0.6); }
    .sh-pay__btn + .sh-pay__btn:hover { background: rgba(160, 190, 235, 0.06); box-shadow: inset 0 0 0 1px rgba(160, 190, 235, 0.36); }
}

.sh-promises { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; color: var(--nx-text-2); font-size: var(--nx-fs-xs); }
.sh-promises i { width: 18px; color: #7bd88f; }
.sh-legal { margin: 16px 0 0; color: var(--nx-text-3); font-size: var(--nx-fs-xs); line-height: 1.55; }
.sh-legal a { color: var(--nx-text-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Artikel im Warenkorb ----------------------------------------------- */
.sh-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nx-line-2); }
.sh-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 28px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--nx-line-2);
}
.sh-item h3 { margin: 0; font-size: 1.2rem; font-weight: 750; letter-spacing: -0.025em; }
.sh-item__sub { margin: 4px 0 0; color: var(--nx-text-3); font-size: var(--nx-fs-sm); }
.sh-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.sh-chips li {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(160, 190, 235, 0.06);
    color: var(--nx-text-2);
    font-size: var(--nx-fs-xs);
}
.sh-chips i { color: var(--nx-text-4); font-size: 0.8em; }
.sh-item__side { display: flex; align-items: center; gap: 22px; }
.sh-item__price { display: grid; justify-items: end; gap: 3px; text-align: right; }
.sh-item__price strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.sh-item__price span { color: var(--nx-text-3); font-size: var(--nx-fs-xs); }
.sh-qty { display: grid; gap: 4px; color: var(--nx-text-3); font-size: var(--nx-fs-xs); }
.sh-qty input {
    width: 72px; height: 40px; padding: 0 10px;
    border: 1px solid var(--nx-line-2); border-radius: 10px;
    background: #0a101d; color: var(--nx-ash); font: 600 var(--nx-fs-sm) var(--nx-sans);
}
.sh-remove {
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 10px; color: var(--nx-text-3);
    transition: color var(--nx-t-micro) ease, background var(--nx-t-micro) ease;
}
@media (hover: hover) { .sh-remove:hover { color: #ff8585; background: rgba(255, 92, 92, 0.1); } }
.sh-items__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 8px; }
.sh-clear { color: var(--nx-text-3); font-size: var(--nx-fs-sm); text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .sh-clear:hover { color: #ff8585; } }

/* ---- Laufzeit ----------------------------------------------------------- */
.sh-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.sh-periods .period-btn {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--nx-line-2);
    border-radius: 14px;
    background: transparent;
    color: var(--nx-ash);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color var(--nx-t-small) ease, background var(--nx-t-small) ease;
}
.sh-periods .period-name { font-weight: 650; font-size: var(--nx-fs-sm); }
.sh-periods .period-sum { color: var(--nx-text-3); font-size: var(--nx-fs-xs); font-variant-numeric: tabular-nums; }
.sh-periods .period-rabatt {
    position: absolute; top: 12px; right: 12px;
    padding: 2px 7px; border-radius: 999px;
    background: rgba(61, 220, 132, 0.14); color: #7bd88f;
    font-size: 0.72rem; font-weight: 700;
}
.sh-periods .period-btn.active { border-color: var(--nx-ash); background: rgba(232, 237, 245, 0.06); box-shadow: inset 0 0 0 1px var(--nx-ash); }
@media (hover: hover) { .sh-periods .period-btn:not(.active):hover { border-color: rgba(160, 190, 235, 0.36); } }

/* ---- Leer -------------------------------------------------------------- */
.sh-empty { max-width: 560px; padding: clamp(32px, 5vw, 56px); text-align: center; margin-inline: auto; }
.sh-empty i { font-size: 2rem; color: var(--nx-text-4); }
.sh-empty h2 { margin: 18px 0 8px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.035em; }
.sh-empty p { margin: 0 0 24px; color: var(--nx-text-2); }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 960px) {
    .sh-layout { grid-template-columns: 1fr; }
    .sh-summary { position: static; }
}
@media (max-width: 600px) {
    .sh-grid-2 { grid-template-columns: 1fr; }
    .sh-item { grid-template-columns: 1fr; }
    .sh-item__side { justify-content: space-between; }
    .sh-item__price { justify-items: start; text-align: left; margin-right: auto; }
    .sh-items__foot { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
   GUTHABEN (wallet.php)
   ========================================================================== */
.wl-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wl-quick .quick-btn {
    min-height: 52px;
    border: 1px solid var(--nx-line-2);
    border-radius: 12px;
    background: transparent;
    color: var(--nx-ash);
    font: 800 1.1rem/1 var(--nx-sans);
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: border-color var(--nx-t-small) ease, background var(--nx-t-small) ease;
}
.wl-quick .quick-btn:hover { border-color: rgba(160, 190, 235, 0.36); }
.wl-quick .quick-btn.active { border-color: var(--nx-ash); background: rgba(232, 237, 245, 0.06); box-shadow: inset 0 0 0 1px var(--nx-ash); }

.wl-methods { display: grid; gap: 8px; }
.wl-method {
    display: grid;
    grid-template-columns: auto 22px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--nx-line-2);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color var(--nx-t-small) ease, background var(--nx-t-small) ease;
}
.wl-method input { width: 18px; height: 18px; accent-color: var(--nx-ember); margin: 0; }
.wl-method > i { color: var(--nx-text-3); text-align: center; }
.wl-method__body strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 650; font-size: var(--nx-fs-sm); }
.wl-method__body em { font-style: normal; font-size: var(--nx-fs-xs); font-weight: 600; color: #ffcf7a; }
.wl-method__body small { display: block; margin-top: 3px; color: var(--nx-text-3); font-size: var(--nx-fs-xs); line-height: 1.45; }
.wl-method:has(input:checked) { border-color: var(--nx-ash); background: rgba(232, 237, 245, 0.05); }
.wl-method:has(input:checked) > i { color: var(--nx-ember-soft); }
.wl-method.unavailable { opacity: 0.5; cursor: not-allowed; }

.wl-code { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.wl-tx__icon { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: rgba(61, 220, 132, 0.12); color: #7bd88f; }
.wl-tx__icon.is-minus { background: rgba(160, 190, 235, 0.08); color: var(--nx-text-2); }
.wl-plus { color: #7bd88f; }
.wl-minus { color: var(--nx-ash); }

@media (max-width: 600px) {
    .wl-quick { grid-template-columns: 1fr 1fr; }
    .wl-code { grid-template-columns: 1fr; }
}

/* Gitter-Kinder duerfen schrumpfen - sonst druecken lange Woerter die Spalte breit */
.sh-steps > *, .sh-item__main, .sh-item__main > div { min-width: 0; }
.sh-item__sub { overflow-wrap: anywhere; }
