/* CyberLex — Registrierung / Auth */

*, *::before, *::after { box-sizing: border-box; }

html.cl-auth-html--checkout {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

.cl-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 36px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.28) 0%, transparent 55%),
        radial-gradient(1200px 500px at 75% -10%, #163a7a 0%, #0b1b3a 45%, #081328 100%);
    color: #f1f5f9;
}

.cl-auth-shell {
    width: 100%;
    max-width: 440px;
}

.cl-auth-shell--checkout {
    max-width: 520px;
}

.cl-auth-page--checkout {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

.cl-auth-checkout-page {
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: clamp(12px, 3svh, 20px) clamp(12px, 3vw, 20px);
    overflow: hidden;
    overscroll-behavior: none;
}

@media (hover: hover) and (pointer: fine) {
    .cl-auth-checkout-page {
        align-items: flex-start;
    }
}

.cl-auth-checkout-page .cl-auth-shell--checkout {
    width: 100%;
    max-width: min(920px, 100%);
    padding: 0;
    margin: 0 auto;
}

.cl-checkout-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 3vw, 36px);
    width: 100%;
}

.cl-checkout-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: min(480px, 100%);
    max-height: calc(100svh - clamp(20px, 4svh, 32px));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(8, 19, 40, 0.38);
    background: #fff;
    flex-shrink: 0;
    overflow-anchor: none;
}

.cl-checkout-side-line {
    flex: 1 1 0;
    min-width: 28px;
    max-width: min(240px, 24vw);
    height: 2px;
    position: relative;
    border-radius: 999px;
    overflow: visible;
}

.cl-checkout-side-line--left {
    background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.08) 35%, rgba(96, 165, 250, 0.45) 100%);
}

.cl-checkout-side-line--right {
    background: linear-gradient(270deg, transparent 0%, rgba(96, 165, 250, 0.08) 35%, rgba(96, 165, 250, 0.45) 100%);
}

.cl-checkout-side-line::before {
    content: "";
    position: absolute;
    inset: -3px 0;
    border-radius: 999px;
    opacity: 0.35;
    filter: blur(4px);
}

.cl-checkout-side-line--left::before {
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.5));
}

.cl-checkout-side-line--right::before {
    background: linear-gradient(270deg, transparent, rgba(37, 99, 235, 0.5));
}

.cl-checkout-side-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 56px;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #93c5fd 45%, #fff 50%, #93c5fd 55%, transparent);
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.85), 0 0 28px rgba(37, 99, 235, 0.45);
}

.cl-checkout-side-line--left::after {
    right: -8px;
    animation: clSecLineSweepLeft 2.8s ease-in-out infinite;
}

.cl-checkout-side-line--right::after {
    left: -8px;
    animation: clSecLineSweepRight 2.8s ease-in-out infinite;
    animation-delay: 0.4s;
}

.cl-checkout-banner {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    line-height: 0;
    background: #f1f5f9;
    border-bottom: 1px solid #e8eef4;
}

.cl-checkout-banner.is-placeholder {
    min-height: 120px;
    background: linear-gradient(145deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
}

.cl-checkout-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(34svh, 52vw, 260px);
    object-fit: contain;
}

.cl-checkout-purchase-icon {
    font-size: 40px;
    line-height: 1;
}

/* —— Kauf-Flow: Kurskarte + Tab-Slider —— */

.cl-auth-brand {
    text-align: center;
    margin-bottom: 18px;
}

.cl-auth-shield.cl-sec-shield-block {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.cl-auth-shield .cl-sec-shield-inner {
    max-width: none;
}

.cl-auth-shield .cl-sec-shield-row {
    gap: 10px;
    max-width: 280px;
}

.cl-auth-shield .cl-sec-shield-line {
    max-width: 56px;
    min-width: 28px;
}

.cl-auth-shield .cl-sec-shield-stage {
    width: 118px;
    height: 118px;
    margin: 0 auto;
}

.cl-auth-brand-title {
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.15;
}

.cl-auth-brand-title-main {
    display: block;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(219, 234, 254, 0.92);
}

.cl-auth-brand-title-sub {
    display: block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #dbeafe 0%, #60a5fa 45%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cl-auth-brand-sub {
    margin: 6px 0 0;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.cl-auth-card {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 24px 22px 20px;
    box-shadow: 0 18px 44px rgba(8, 19, 40, 0.34);
}

.cl-auth-card label {
    display: block;
    color: #334155 !important;
    font-weight: 600;
    font-size: 12.5px;
    margin-bottom: 4px;
}

.cl-auth-card input[type="text"],
.cl-auth-card input[type="email"],
.cl-auth-card input[type="password"],
.cl-auth-card .pw-field > input[type="text"],
.cl-auth-card .pw-field > input[type="password"] {
    display: block;
    width: 100%;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    margin: 0;
    outline: none;
}

.cl-auth-card .pw-field {
    position: relative;
    width: 100%;
}

.cl-auth-card .pw-field > input {
    padding-right: 40px !important;
}

.cl-auth-card .pw-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.cl-auth-card .pw-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}

.cl-auth-card input::placeholder {
    color: #94a3b8;
}

.cl-auth-card input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.cl-auth-card.cl-auth-card--checkout input:focus {
    border-color: #2563eb !important;
    box-shadow: none !important;
    outline: none !important;
}

.cl-auth-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cl-auth-field {
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
}

.cl-auth-name-row .cl-auth-field {
    margin-bottom: 0;
}

.cl-auth-name-row {
    margin-bottom: 10px;
}

.cl-auth-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.cl-auth-error a {
    color: #1d4ed8;
    font-weight: 600;
}

.cl-auth-submit {
    width: 100%;
    margin-top: 4px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.cl-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.cl-auth-hint {
    margin: -4px 0 10px;
    font-size: 11.5px;
    color: #64748b;
}

.cl-auth-privacy {
    margin: 4px 0 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.cl-auth-privacy a {
    color: #2563eb;
    text-decoration: none;
}

.cl-auth-privacy a:hover {
    text-decoration: underline;
}

.cl-auth-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.cl-auth-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.cl-auth-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* —— Kauf-Flow: Kurskarte + Tab-Slider —— */

.cl-auth-card--checkout {
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: #fff;
}

.cl-checkout-content {
    overflow: visible;
    padding: 12px clamp(14px, 3.5vw, 18px) 20px;
}

.cl-checkout-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(14px, 2.2svh, 18px) clamp(16px, 3.5vw, 20px);
    border-bottom: 1px solid #e8edf4;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 55%),
        linear-gradient(180deg, #fafbfd 0%, #fff 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    flex-shrink: 0;
}

.cl-checkout-summary-main {
    min-width: 0;
    flex: 1 1 auto;
}

.cl-checkout-purchase-kicker {
    margin: 0 0 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.cl-checkout-purchase-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.cl-checkout-price-stack {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.cl-checkout-price-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cl-checkout-price-badge {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
    line-height: 1.2;
}

.cl-checkout-purchase-price-old {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #dc2626;
    text-decoration: line-through;
    text-decoration-color: rgba(220, 38, 38, 0.75);
    font-variant-numeric: tabular-nums;
}

.cl-checkout-purchase-price {
    margin: 0;
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    color: #1d4ed8;
    background: linear-gradient(145deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cl-checkout-price-stack .cl-checkout-purchase-price {
    padding: 7px 12px;
    font-size: 17px;
}

.cl-checkout-purchase-note {
    display: none;
}

.cl-auth-card--checkout .cl-auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 0 clamp(8px, 1.5svh, 12px);
    padding: 4px;
    border-radius: 999px;
    background: #e8eef9;
    border: 1px solid #d7e3f8;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.cl-auth-card--checkout .cl-auth-tabs-track {
    position: absolute;
    inset: 4px;
    pointer-events: none;
    z-index: 0;
}

.cl-auth-card--checkout .cl-auth-tabs-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cl-auth-card--checkout button.cl-auth-tab {
    position: relative;
    z-index: 1;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 6px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.cl-auth-card--checkout button.cl-auth-tab.is-active {
    color: #fff;
}

.cl-auth-card--checkout button.cl-auth-tab:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.cl-auth-card--checkout .cl-auth-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: clamp(6px, 1.2svh, 8px);
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
    flex-shrink: 0;
}

.cl-auth-card--checkout .cl-auth-name-row {
    margin-bottom: clamp(6px, 1.2svh, 8px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 14px 42px;
    column-gap: clamp(8px, 2vw, 10px);
    row-gap: 4px;
    align-items: start;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
}

.cl-auth-card--checkout .cl-auth-name-row .cl-auth-field {
    display: contents;
    margin-bottom: 0;
    min-width: 0;
}

.cl-auth-card--checkout .cl-auth-name-row > .cl-auth-field:first-child > label {
    grid-column: 1;
    grid-row: 1;
}

.cl-auth-card--checkout .cl-auth-name-row > .cl-auth-field:first-child > input[type="text"] {
    grid-column: 1;
    grid-row: 2;
}

.cl-auth-card--checkout .cl-auth-name-row > .cl-auth-field:last-child > label {
    grid-column: 2;
    grid-row: 1;
}

.cl-auth-card--checkout .cl-auth-name-row > .cl-auth-field:last-child > input[type="text"] {
    grid-column: 2;
    grid-row: 2;
}

.cl-auth-card--checkout .cl-auth-name-row label {
    display: block;
    margin: 0;
    height: 14px;
    min-height: 14px;
    max-height: 14px;
    line-height: 14px;
    overflow: hidden;
}

.cl-auth-card--checkout .cl-auth-hint {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.cl-auth-card--checkout .cl-auth-field > label {
    display: block;
    margin: 0;
    height: 14px;
    min-height: 14px;
    max-height: 14px;
    line-height: 14px;
    font-size: 11px;
    overflow: hidden;
}

.cl-auth-card--checkout .cl-auth-field > .pw-field {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    flex-shrink: 0;
    overflow: hidden;
}

.cl-auth-card--checkout .cl-checkout-content input[type="text"],
.cl-auth-card--checkout .cl-checkout-content input[type="email"],
.cl-auth-card--checkout .cl-checkout-content .pw-field > input[type="password"],
.cl-auth-card--checkout .cl-checkout-content .pw-field > input[type="text"] {
    display: block;
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 11px;
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    border-radius: 8px;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    box-sizing: border-box;
    transition: none;
    scroll-margin: 0;
    overflow: hidden;
    background: #fff !important;
    color: #0f172a !important;
    outline: none;
}

.cl-auth-card--checkout .cl-checkout-content .pw-field > input {
    padding-right: 40px !important;
}

.cl-auth-card--checkout .cl-checkout-content input[type="text"]:focus,
.cl-auth-card--checkout .cl-checkout-content input[type="email"]:focus,
.cl-auth-card--checkout .cl-checkout-content .pw-field > input:focus {
    border-color: #2563eb !important;
    box-shadow: none !important;
    outline: none !important;
}

.cl-auth-card--checkout .cl-auth-name-row > .cl-auth-field:first-child > input[type="text"],
.cl-auth-card--checkout .cl-auth-name-row > .cl-auth-field:last-child > input[type="text"] {
    min-height: 0;
    align-self: stretch;
}

.cl-auth-card--checkout .cl-auth-forgot {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.2;
}

.cl-auth-card--checkout .cl-auth-submit {
    margin-top: 6px;
    margin-bottom: 2px;
    padding: 12px 16px;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}

.cl-auth-card--checkout .cl-auth-submit:hover,
.cl-auth-card--checkout .cl-auth-submit:focus-visible {
    transform: none;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

.cl-auth-card--checkout .cl-auth-panels {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
}

.cl-auth-card--checkout .cl-auth-panel.is-active form {
    padding-bottom: 4px;
}

.cl-auth-card--checkout .cl-auth-panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cl-auth-card--checkout .cl-auth-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.cl-auth-info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.cl-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
}

.cl-auth-remember input {
    width: auto;
    margin: 0;
    accent-color: #2563eb;
}

.cl-auth-forgot {
    margin: -2px 0 12px;
    text-align: right;
    font-size: 12.5px;
}

.cl-auth-forgot a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.cl-auth-forgot a:hover {
    text-decoration: underline;
}

/* —— Registrierung: Danke-Seite —— */

.cl-auth-shell--success {
    max-width: 480px;
}

.cl-auth-success-card {
    text-align: center;
    padding: 28px 24px 24px;
}

.cl-auth-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.2);
}

.cl-auth-success-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cl-auth-success-lead {
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
}

.cl-auth-success-lead strong {
    color: #1e40af;
    font-weight: 700;
}

.cl-auth-success-list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    text-align: left;
    display: grid;
    gap: 10px;
}

.cl-auth-success-list li {
    position: relative;
    padding: 10px 12px 10px 36px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

.cl-auth-success-list li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cl-auth-success-launch {
    margin: 0 0 20px;
    padding: 10px 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 10px;
    font-size: 13px;
    color: #1e40af;
}

.cl-auth-success-cta {
    display: block;
    text-decoration: none;
    text-align: center;
    margin-bottom: 14px;
}

.cl-auth-success-note {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748b;
}

@media (max-height: 860px) {
    .cl-checkout-banner img {
        max-height: min(28svh, 46vw, 200px);
    }

    .cl-checkout-summary {
        padding: 12px 16px;
        gap: 12px;
    }

    .cl-checkout-purchase-title {
        font-size: 16px;
    }

    .cl-checkout-purchase-price-old {
        font-size: 15px;
    }

    .cl-checkout-purchase-price {
        font-size: 16px;
    }

    .cl-checkout-content {
        padding: 10px 14px 18px;
    }

    .cl-auth-card--checkout .cl-auth-field,
    .cl-auth-card--checkout .cl-auth-name-row {
        margin-bottom: 5px;
    }

    .cl-auth-card--checkout .cl-auth-name-row {
        height: 60px;
        min-height: 60px;
        max-height: 60px;
    }

    .cl-auth-card--checkout .cl-checkout-content input[type="text"],
    .cl-auth-card--checkout .cl-checkout-content input[type="email"],
    .cl-auth-card--checkout .cl-checkout-content .pw-field > input[type="password"],
    .cl-auth-card--checkout .cl-checkout-content .pw-field > input[type="text"] {
        height: 42px;
        min-height: 42px;
        max-height: 42px;
        padding: 0 10px;
    }

    .cl-auth-card--checkout .cl-checkout-content .pw-field > input {
        padding-right: 40px !important;
    }
}

@media (max-height: 700px) {
    .cl-checkout-banner img {
        max-height: min(22svh, 40vw, 160px);
    }

    .cl-auth-card--checkout button.cl-auth-tab {
        padding: 7px 5px;
        font-size: 11.5px;
    }

    .cl-auth-card--checkout .cl-auth-submit {
        padding: 9px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cl-auth-name-row {
        grid-template-columns: 1fr;
    }

    .cl-auth-card--checkout .cl-auth-name-row {
        grid-template-columns: 1fr;
        grid-template-rows: 14px 42px 14px 42px;
        height: 124px;
        min-height: 124px;
        max-height: 124px;
    }

    .cl-auth-card--checkout .cl-auth-name-row > .cl-auth-field:first-child > label {
        grid-column: 1;
        grid-row: 1;
    }

    .cl-auth-card--checkout .cl-auth-name-row > .cl-auth-field:first-child > input[type="text"] {
        grid-column: 1;
        grid-row: 2;
    }

    .cl-auth-card--checkout .cl-auth-name-row > .cl-auth-field:last-child > label {
        grid-column: 1;
        grid-row: 3;
    }

    .cl-auth-card--checkout .cl-auth-name-row > .cl-auth-field:last-child > input[type="text"] {
        grid-column: 1;
        grid-row: 4;
    }

    .cl-checkout-side-line {
        display: none;
    }

    .cl-auth-shield .cl-sec-shield-line {
        display: none;
    }

    .cl-auth-card {
        padding: 20px 16px 18px;
    }

    .cl-auth-success-card {
        padding: 22px 18px 20px;
    }

    .cl-auth-success-title {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cl-auth-shield .cl-sec-shield,
    .cl-auth-shield .cl-sec-ring,
    .cl-auth-shield .cl-sec-orbit,
    .cl-auth-shield .cl-sec-shield-line::after {
        animation: none !important;
    }
}

/* —— Mobile: Checkout/Register immer dokument-scrollbar —— */
@media (max-width: 900px) {
    html.cl-auth-html--checkout,
    html.cl-auth-kb-active,
    html.cl-auth-keyboard-open {
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: auto !important;
        position: static !important;
    }

    body.cl-auth-page,
    body.cl-auth-page--register,
    body.cl-auth-page--checkout,
    html.cl-auth-kb-active body.cl-auth-page {
        display: block !important;
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        overscroll-behavior: auto !important;
        padding: 12px 0 0 !important;
        -webkit-overflow-scrolling: touch;
    }

    .cl-auth-page--register:not(.cl-auth-page--checkout) .cl-auth-shell {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 0 12px 24px;
    }

    .cl-auth-page--checkout {
        position: relative !important;
        inset: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .cl-auth-checkout-page {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        width: 100%;
        padding: 8px 12px 16px !important;
        box-sizing: border-box;
    }

    .cl-auth-checkout-page .cl-auth-shell--checkout {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    .cl-checkout-frame {
        display: block !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .cl-checkout-side-line {
        display: none !important;
    }

    .cl-checkout-stack {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 auto;
    }

    .cl-auth-card--checkout,
    .cl-checkout-content,
    .cl-auth-panels,
    .cl-auth-panel.is-active {
        overflow: visible !important;
        max-height: none !important;
    }

    #clAuthKeyboardSpacer {
        display: block !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        pointer-events: none !important;
    }
}
