/* Customs-Seite (page-customs.php). Maße vom Figma-Frame "Customs" (1920 px) und dem mobilen Frame. */

.cu {
    --u: min(1vw, 19.2px);
    background: var(--top);
    overflow-x: clip;
}
.cu-purple { color: var(--purple); }
.cu-underline { text-decoration: underline; text-underline-offset: 3px; }

.cu-h1,
.cu-h2 {
    margin: 0;
    font-weight: 700;
    color: var(--white);
}
.cu-h1 {
    font-size: 38.4px;
    line-height: 1.04;
    letter-spacing: -0.035em;
}
.cu-h2 {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* ---------- Hero (mobil zuerst) ---------- */
.cu-hero__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 24px 72px;
}
.cu-hero__lead {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
}
.cu-hero__button { align-self: flex-start; padding: 0 24px; min-width: 0; }
.cu-sparkles { display: none; }

.cu-hero__media {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.cu-hero__media img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 582.7px;
    height: auto;
    max-width: none;
    margin: -218.5px 0 0 -291.35px;
    transform: rotate(-0.82deg);
}
.cu-ring {
    position: absolute;
    left: 50%;
    top: calc(50% + 5.5px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.cu-ring--outer { width: 279px; height: 274px; }
.cu-ring--inner { width: 237px; height: 232px; }

/* ---------- Körper ---------- */
.cu-body {
    position: relative;
    background: var(--deep);
}
.cu-body::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -60px;
    width: 178vw;
    height: 120px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--deep);
}
.cx,
.cu-gal { position: relative; z-index: 1; }
.cx {
    width: min(1106px, calc(100% - 48px));
    margin: 0 auto;
}

.cu-sec {
    padding: 40px 0;
    border-bottom: 1px solid var(--divider);
}
.cu-sec:first-child { padding-top: 56px; }
.cu-sec--form { border-bottom: 0; }

/* So läuft's ab */
.cu-steps {
    display: grid;
    gap: 24px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.cu-steps__no { display: block; font-size: 14px; line-height: 1.2; color: var(--purple); }
.cu-steps h3 { margin: 6px 0 0; font-size: 17.6px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.cu-steps p { margin: 6px 0 0; font-size: 14px; line-height: 1.17; color: var(--muted); }

/* Was ist möglich? */
.cu-specs {
    display: grid;
    gap: 24px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.cu-specs li {
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 14px;
    align-items: start;
}
.cu-specs__icon { grid-row: 1 / span 3; color: var(--purple); width: 24px; line-height: 1; margin-top: 3px; }
.cu-specs__icon--text { font-size: 17.6px; font-weight: 600; }
.cu-specs h3 { margin: 0; font-size: 17.6px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; grid-column: 2; }
.cu-specs p { margin: 4px 0 0; grid-column: 2; font-size: 14px; line-height: 1.17; color: var(--muted); }
.cu-dots { display: flex; gap: 3px; margin-top: 6px !important; }
.cu-dots i { display: block; width: 12px; height: 12px; border-radius: 50%; }

/* Noch kein Modell? */
.cu-links {
    display: grid;
    gap: 20px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.cu-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 155px;
    padding: 16px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: 19px;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.25s cubic-bezier(.2, .8, .2, 1);
}
.cu-link:hover { border-color: #8d85a0; transform: translateY(-2px); }
.cu-link__title { font-size: 17.6px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.cu-link__text { font-size: 14px; line-height: 1.2; color: var(--muted); }
.cu-link__arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 13px;
    height: 13px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13' fill='none' stroke='%23a981ff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 11L11 2M4 2h7v7'/%3E%3C/svg%3E");
}
.cu-link__logo { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); max-width: none; }
.cu-link__logo--printables { width: 232px; height: 122px; bottom: -22px; }
.cu-link__logo--makerworld { width: 84px; height: 84px; bottom: -12px; }
.cu-link__logo--thingiverse { width: 62px; height: 62px; bottom: 14px; }

/* Lizenz */
.cu-license {
    display: grid;
    gap: 20px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.cu-license__card {
    position: relative;
    padding: 16px 16px 18px 24px;
    background: linear-gradient(95deg, var(--c1) 0%, var(--c2) 100%);
}
.cu-license__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bar);
}
.cu-license__card--ok  { --bar: var(--lime);   --c1: rgba(203, 255, 77, 0.05); --c2: rgba(203, 255, 77, 0); }
.cu-license__card--ask { --bar: var(--orange); --c1: rgba(246, 174, 45, 0.09); --c2: rgba(255, 166, 0, 0); }
.cu-license__card--no  { --bar: var(--red);    --c1: rgba(251, 54, 64, 0.08);  --c2: rgba(251, 54, 64, 0); }
.cu-license p { margin: 0; }
.cu-license__tag { position: relative; padding-left: 26px; font-size: 17.6px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--bar); }
.cu-license__tag::before { content: ""; position: absolute; left: 7px; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cu-license__title { margin-top: 6px !important; font-size: 17.6px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.cu-license__text { margin-top: 6px !important; font-size: 14px; line-height: 1.17; color: var(--muted); max-width: 264px; }

/* Anfrage */
.cu-form__title { font-size: 30px; letter-spacing: -0.025em; }
.cu-form__lead {
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--muted);
}
.cu-request {
    position: relative;
    margin-top: 24px;
    padding: 20px 20px 24px;
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: 20px;
}
.cu-request__receipt { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; }
.cu-request__step { margin: 0; font-size: 12px; line-height: 28px; color: var(--muted); }
.cu-request__progress { position: relative; height: 3px; margin-top: 14px; border-radius: 2px; background: var(--divider); }
.cu-request__progress span { position: absolute; left: 0; top: 0; width: 40px; height: 3px; border-radius: 2px; background: var(--lime); }
.cu-request__tabs {
    display: flex;
    justify-content: space-between;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    line-height: 1.2;
    color: var(--muted);
}
.cu-request__tabs [aria-current] { color: var(--white); }
.cu-request__title { margin: 26px 0 0; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; }
.cu-request__hint { margin: 8px 0 0; font-size: 12px; line-height: 1.2; color: var(--muted); }
.cu-request__fields { display: grid; gap: 18px; margin-top: 22px; }
.cu-field label { display: block; margin-bottom: 6px; font-size: 14px; line-height: 1.2; }
.cu-field input,
.cu-field select {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 14px;
    background: var(--field);
    color: var(--white);
    border: 1px solid var(--card-line);
    border-radius: 5px;
    font: inherit;
    font-size: 14px;
}
.cu-field input::placeholder { color: var(--muted); }
.cu-field select {
    appearance: none;
    padding-right: 36px;
    background: var(--field) no-repeat right 14px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23f7f7f8' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
.cu-field input:focus-visible,
.cu-field select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.cu-field.has-error input,
.cu-field.has-error select { border-color: var(--red); }
.cu-request__status { margin: 14px 0 0; min-height: 1.2em; font-size: 13px; color: var(--red); text-align: center; }
.cu-request__next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px auto 0;
    padding: 10px 28px;
    border: 0;
    border-radius: 65px;
    background: var(--lime);
    color: #0d0b12;
    font: inherit;
    font-size: 17.6px;
    font-weight: 600;
    letter-spacing: -0.015em;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.25s cubic-bezier(.2, .8, .2, 1);
}
.cu-request__next:hover { filter: brightness(1.1); transform: translateY(-2px); }
.cu-request__next svg { width: 24px; height: 12px; }
.cu-sec--form .gda { margin-top: 24px; }  /* Formular aus dem Plugin "Gear-Dock Anfrage" */
.cu-form__price { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.cu-form__price a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Galerie ---------- */
.cu-gal {
    padding: 56px 0 48px;
    background: var(--bottom);
}
.cu-gal__title {
    margin: 0 0 28px;
    padding: 0 24px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}
.cu-gal__viewport { position: relative; height: 352px; overflow: hidden; }
.cu-gal__stage {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1018px;
    height: 750px;
    margin-left: -509px;
    transform: translateY(-52px) scale(0.55);
    transform-origin: 509px 0;
}
.cu-card {
    position: absolute;
    transition: left 0.45s ease, top 0.45s ease, width 0.45s ease, height 0.45s ease;
    cursor: pointer;
}
.cu-card.is-center { left: 291px; top: 119px; width: 435px; height: 490px; z-index: 2; cursor: default; }
.cu-card.is-left   { left: 63px;  top: 209px; width: 199px; height: 310px; }
.cu-card.is-right  { left: 753px; top: 209px; width: 199px; height: 310px; }
.cu-card__frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: 20px;
}
.cu-card__art {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none;
    transform: translate(-50%, -50%) scale(var(--s, 1));
    transition: transform 0.45s ease;
}
.cu-card--tray   { --s: 1;   --s-center: 1.9; }
.cu-card--barrel { --s: 1;   --s-center: 1.75; }
.cu-card--tray.is-center .cu-card__art,
.cu-card--barrel.is-center .cu-card__art { --s: var(--s-center); }

.cu-card__art--skull { width: 1000px; height: 750px; margin: 0; --s: 0.55; transform: translate(-50%, calc(-50% + 18px * var(--s))) scale(var(--s)); }
.cu-card--skull.is-center .cu-card__art--skull { --s: 1; }
.cu-skull { position: absolute; left: 0; top: 0; width: 1000px; height: 750px; max-width: none; }
.cu-skull--silver { clip-path: inset(0 calc(1000px - var(--x, 500px)) 0 0); }
.cu-slider {
    position: absolute;
    left: calc(var(--x, 500px) - 22px);
    top: 119px;
    width: 44px;
    height: 490px;
    cursor: ew-resize;
    touch-action: none;
}
.cu-slider::before,
.cu-slider::after { content: ""; position: absolute; top: 0; bottom: 0; }
.cu-slider::before { left: 17.5px; width: 9px; background: #000; }
.cu-slider::after  { left: 20px; width: 4px; background: var(--blue); }
.cu-slider__handle { position: absolute; left: 2.5px; top: 235px; transition: transform 0.2s ease; }
.cu-slider:hover .cu-slider__handle,
.cu-slider:focus-visible .cu-slider__handle { transform: scale(1.12); }
.cu-slider:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.cu-card--skull.is-center .cu-card__frame { cursor: ew-resize; touch-action: pan-y; }
.cu-card--skull.is-dragging .cu-card__frame { user-select: none; }
.cu-card--skull:not(.is-center) .cu-slider { display: none; }

.cu-card__price {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    height: 33px;
    margin: 0;
    padding-top: 6px;
    background: var(--lime);
    border-radius: 0 0 20px 20px;
    color: #000;
    font-size: 17.6px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}
.cu-card.is-center .cu-card__price { bottom: -32px; height: 61px; font-size: 30.4px; line-height: 40px; padding-top: 20px; letter-spacing: -0.025em; }

.cu-gal__dots { display: flex; align-items: center; justify-content: center; gap: 12px; height: 18px; margin-top: 20px; }
.cu-gal__dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; transition: width 0.25s ease, height 0.25s ease; }
.cu-gal__dots button.is-active { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.cu-faq { padding: 56px 0 56px; }
.cu-faq__list { margin-top: 28px; }
.cu-faq details { border-bottom: 1px solid var(--divider); }
.cu-faq details:first-child { border-top: 1px solid var(--divider); }
.cu-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
}
.cu-faq summary::-webkit-details-marker { display: none; }
.cu-faq summary::after { content: "+"; color: var(--muted); font-size: 16px; }
.cu-faq details[open] summary::after { content: "\2212"; }
.cu-faq details p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cu-faq summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

/* ---------- Desktop ab 1200 px (Maße auf Basis 1920 px, 1 u = 1 % davon) ---------- */
@media (min-width: 1200px) {
    .cu-h1 { font-size: calc(var(--u) * 3.375); }
    .cu-h2 { font-size: 30.4px; line-height: 36px; }

    .cu-hero__stage {
        display: block;
        max-width: 1920px;
        height: calc(var(--u) * 27.7);
        padding: 0;
    }
    .cu-sparkles { display: block; left: calc(var(--u) * 26.5); top: calc(var(--u) * 3); width: 90px; height: 90px; }
    .cu-sparkles i:first-child { width: 50px; height: 50px; left: calc(var(--u) * 1.4); top: 0; --star-angle: -14deg; }
    .cu-sparkles i:last-child { width: 22px; height: 22px; left: 0; top: calc(var(--u) * 2.4); }

    .cu-hero .cu-h1 { position: absolute; left: calc(var(--u) * 29.22); top: calc(var(--u) * 6.46); width: calc(var(--u) * 28); }
    .cu-hero__lead { position: absolute; left: calc(var(--u) * 29.22); top: calc(var(--u) * 13.75); width: calc(var(--u) * 17); }
    .cu-hero__button { position: absolute; left: calc(var(--u) * 29.22); top: calc(var(--u) * 18.8); min-width: 163px; }

    .cu-hero__media {
        position: absolute;
        left: calc(var(--u) * 47.34);
        top: calc(var(--u) * 1.2);
        width: calc(var(--u) * 30.7);
        height: calc(var(--u) * 23.2);
        overflow: visible;
    }
    .cu-hero__media img { width: calc(var(--u) * 30.35); margin: calc(var(--u) * -11.38) 0 0 calc(var(--u) * -15.18); }
    .cu-ring--outer { width: calc(var(--u) * 14.53); height: calc(var(--u) * 14.27); }
    .cu-ring--inner { width: calc(var(--u) * 12.34); height: calc(var(--u) * 12.08); }

    .cu-body::before {
        top: 0;
        width: 1045vw;
        height: 2748px;
    }
    .cu-body { background: linear-gradient(var(--deep), var(--deep)) 0 6px / 100% 100% no-repeat; padding-top: 61px; }
    .cx { left: 24px; }

    .cu-sec { padding: 29px 0 0; }
    .cu-sec:first-child { padding-top: 0; }

    .cu-steps {
        grid-template-columns: 253px 262px 317px 1fr;
        gap: 0;
        margin-top: 25px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--divider);
    }
    .cu-sec--steps { border-bottom: 0; }
    .cu-steps__no { line-height: 16px; }
    .cu-steps h3 { margin-top: 3px; line-height: 21px; }
    .cu-steps p { margin-top: 5px; padding-right: 24px; line-height: 16.4px; }

    .cu-sec--specs { border-bottom: 0; }
    .cu-specs {
        grid-template-columns: 216px 197px 171px 248px 1fr;
        gap: 0;
        margin-top: 24px;
        padding-bottom: 39px;
        border-bottom: 1px solid var(--divider);
    }
    .cu-specs li { display: block; }
    .cu-specs__icon { display: block; width: auto; height: 18px; margin: 0; }
    .cu-specs__icon--text { font-size: 17.6px; line-height: 18px; }
    .cu-specs h3 { margin-top: 1px; line-height: 21px; }
    .cu-specs p { margin-top: 5px; padding-right: 12px; line-height: 16.4px; }
    .cu-specs .cu-dots { margin-top: 3px !important; padding: 0; height: 12px; }
    .cu-specs .cu-dots + p { margin-top: 4px; }

    .cu-sec--links { border-bottom: 0; }
    .cu-links {
        grid-template-columns: repeat(3, 259px);
        gap: 31px;
        margin-top: 28px;
        padding-bottom: 44px;
        border-bottom: 1px solid var(--divider);
    }
    .cu-link { height: 111px; padding: 5px 6px 0; gap: 4px; }
    .cu-link__text { margin-top: 0; }
    .cu-link__arrow { top: 12px; right: 8px; }
    .cu-link__logo--printables { bottom: -26px; }
    .cu-link__logo--makerworld { bottom: -9px; }
    .cu-link__logo--thingiverse { bottom: 2px; }

    .cu-sec--license { border-bottom: 0; }
    .cu-license {
        grid-template-columns: repeat(3, 299px);
        gap: 0 60px;
        margin-top: 30px;
        padding-bottom: 46px;
        border-bottom: 1px solid var(--divider);
    }
    .cu-license__card { height: 128px; padding: 3px 0 0 5px; }
    .cu-license__tag { padding-left: 26px; }
    .cu-license__title,
    .cu-license__text { padding-left: 26px; }
    .cu-license__title { margin-top: 8px !important; }

    .cu-sec--form { padding: 97px 0 229px 31px; }
    .cu-form__title { width: 613px; font-size: calc(var(--u) * 3.375); letter-spacing: -0.035em; }
    .cu-form__lead { width: 380px; margin-top: 11px; font-size: 17.6px; line-height: 21px; }
    .cu-request {
        width: 1004px;
        margin-top: 99px;
        padding: 52px 61px 23px 66px;
        border-radius: 20px;
    }
    .cu-sec--form .gda { width: 1004px; max-width: none; margin-top: 99px; }
    .cu-request__receipt { right: 0; top: 3px; width: 54px; height: 54px; }
    .cu-request__step { font-size: 14px; line-height: 16px; }
    .cu-request__progress { margin-top: 17px; }
    .cu-request__progress span { top: -1px; height: 5px; width: 47px; }
    .cu-request__tabs { margin-top: 21px; font-size: 14px; }
    .cu-request__title { margin-top: 39px; margin-left: -3px; font-size: 30.4px; line-height: 36px; }
    .cu-request__hint { margin: 7px 0 0 2px; font-size: 14px; line-height: 16px; }
    .cu-request__fields { grid-template-columns: 361px 372px; gap: 21px 120px; margin-top: 23px; }
    .cu-field label { margin-bottom: 16px; line-height: 16px; padding-left: 5px; }
    .cu-field input,
    .cu-field select { height: 55px; }
    .cu-request__status { margin-top: 12px; }
    .cu-request__next { width: 214px; height: 56px; margin-top: 69px; font-size: 30.4px; letter-spacing: -0.025em; }
    .cu-request__next svg { width: 40px; height: 20px; }
    .cu-form__price { margin: 10px 0 0 17px; }

    .cu-gal { padding: 22px 0 0; height: 753px; }
    .cu-gal__title { position: absolute; left: calc(50% - 127px); top: 22px; margin: 0; padding: 0; font-size: 30.4px; line-height: 36px; width: 640px; }
    .cu-gal__viewport { position: absolute; left: 50%; top: 22px; width: 1018px; height: 750px; margin-left: -481px; overflow: visible; }
    .cu-gal__stage { left: 0; margin-left: 0; transform: none; }
    /* Punkte unter der mittleren Karte (Karte sitzt 28 px rechts der Seitenmitte), nicht unter der Seite */
    .cu-gal__dots { position: absolute; left: calc(50% + 28px); top: 681px; transform: translateX(-50%); margin: 0; }

    .cx--faq { width: min(1106px, calc(100% - 48px)); }
    .cu-faq { padding: 48px 0 179px; }
    .cu-faq__list { margin-top: 38px; margin-left: 16px; }
    .cu-faq .cu-h2 { margin-left: 13px; }
    .cu-faq details { border-bottom: 0; border-top: 0 !important; margin-bottom: 37px; }
    .cu-faq summary { padding: 0 0 23px; line-height: 16px; border-bottom: 1px solid var(--divider); }
    .cu-faq details:last-child { margin-bottom: 0; }
}

@media (min-width: 745px) and (max-width: 1199px) {
    .cu-hero__stage { max-width: 768px; }
    .cu .cx { width: 720px; }
}

@media (prefers-reduced-motion: reduce) {
    .cu-card, .cu-card__art, .cu-gal__dots button { transition: none; }
}
