/* Bestellübersicht vor der Bezahlung */
body.kco-open { overflow: hidden; }

.kco-overlay {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(4, 6, 12, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    animation: kcoIn 0.2s ease;
}
@keyframes kcoIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes kcoUp { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.kco-box {
    position: relative;
    width: min(540px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    display: grid;
    gap: 16px;
    padding: 22px 24px 18px;
    border-radius: 22px;
    border: 1px solid rgba(130, 150, 255, 0.22);
    background:
        radial-gradient(120% 70% at 0% 0%, rgba(88, 101, 242, 0.2), transparent 60%),
        radial-gradient(90% 60% at 100% 100%, rgba(124, 77, 255, 0.12), transparent 60%),
        rgba(16, 18, 30, 0.97);
    color: #e6e8ef;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-family: Inter, system-ui, sans-serif;
    animation: kcoUp 0.22s ease;
}

/* Kopf */
.kco-head { display: grid; gap: 4px; padding-right: 36px; }
.kco-steps { display: flex; gap: 6px; margin-bottom: 6px; }
.kco-step {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(220, 224, 240, 0.55);
    background: rgba(255, 255, 255, 0.05);
}
.kco-step--on { color: #fff; background: rgba(88, 101, 242, 0.35); }
.kco-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(230, 232, 239, 0.8);
    cursor: pointer;
}
.kco-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.kco-box h2 { margin: 0; font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.kco-lead { margin: 0; color: rgba(220, 224, 240, 0.62); font-size: 0.88rem; }

/* Bestellung */
.kco-order {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 10, 20, 0.55);
}
.kco-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kco-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}
.kco-row__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fde68a;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(124, 77, 255, 0.25));
}
.kco-row__name { display: grid; font-weight: 700; font-size: 0.92rem; color: #fff; min-width: 0; }
.kco-row__name small { font-weight: 500; font-size: 0.75rem; color: rgba(220, 224, 240, 0.55); }
.kco-row__price { white-space: nowrap; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.kco-muted { color: rgba(220, 224, 240, 0.55); font-weight: 500; font-size: 0.8rem; }

.kco-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
    color: rgba(230, 232, 239, 0.85);
}
.kco-total strong { font-size: 1.45rem; color: #fff; font-variant-numeric: tabular-nums; }
.kco-total--sub { border-top: 0; padding-top: 0; }
.kco-total--sub strong { font-size: 0.95rem; color: rgba(220, 224, 240, 0.85); }

.kco-fine { margin: 0; font-size: 0.75rem; line-height: 1.5; color: rgba(220, 224, 240, 0.55); }
.kco-fine--tax { padding: 0 6px; }
.kco-fine a, .kco-check a, .kco-trust a { color: #aab4ff; }

/* E-Mail */
.kco-field { display: grid; gap: 6px; }
.kco-field__label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(220, 224, 240, 0.85);
}
.kco-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 700;
    color: #c7d2fe;
    background: rgba(88, 101, 242, 0.22);
}
.kco-field__wrap { position: relative; display: block; }
.kco-field__wrap > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(220, 224, 240, 0.45);
    pointer-events: none;
}
.kco-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 12px 12px 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 10, 18, 0.65);
    color: #fff;
    font: 500 0.92rem Inter, system-ui, sans-serif;
}
.kco-field input:focus { outline: none; border-color: #5865f2; box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25); }

/* Rechtliches */
.kco-legal { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.kco-legal legend {
    margin-bottom: 6px;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(220, 224, 240, 0.85);
}
.kco-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(230, 232, 239, 0.82);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.kco-check:hover { border-color: rgba(88, 101, 242, 0.4); }
.kco-check:has(input:checked) { border-color: rgba(88, 101, 242, 0.55); background: rgba(88, 101, 242, 0.08); }
.kco-check input { margin-top: 2px; width: 17px; height: 17px; accent-color: #5865f2; flex-shrink: 0; }
.kco-check--optional { border-style: dashed; background: transparent; }

.kco-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(218, 55, 60, 0.14); border: 1px solid rgba(218, 55, 60, 0.4); color: #ffb3b5; font-size: 0.85rem; }
.kco-error[hidden] { display: none; }

/* Knöpfe */
.kco-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.kco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #fff;
    font: 700 0.95rem Inter, system-ui, sans-serif;
    cursor: pointer;
}
.kco-btn:disabled { opacity: 0.6; cursor: progress; }
.kco-btn:focus-visible { outline: 2px solid #8b98ff; outline-offset: 2px; }
.kco-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }
.kco-btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #5865f2, #7c4dff);
    box-shadow: 0 10px 28px rgba(88, 101, 242, 0.45);
    font-size: 1rem;
}
.kco-btn--primary:hover:not(:disabled) { filter: brightness(1.08); }

/* Vertrauen */
.kco-trust {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.74rem;
    text-align: center;
    color: rgba(220, 224, 240, 0.55);
}
.kco-trust > span:first-child { font-weight: 700; color: #9de8bc; }
.kco-trust__methods { letter-spacing: 0.02em; }

@media (max-width: 520px) {
    .kco-box { padding: 18px 16px 14px; border-radius: 18px; }
    .kco-actions { grid-template-columns: 1fr; }
    .kco-actions .kco-btn--ghost { order: 2; }
}

/* Rechtslinks unter den FAQ */
.sub-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 28px auto 12px;
    font-size: 0.85rem;
}
.sub-legal-links a { color: rgba(220, 224, 240, 0.7); text-decoration: none; }
.sub-legal-links a:hover { color: #fff; text-decoration: underline; }
.sub-legal-links__cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(218, 55, 60, 0.45);
    color: #ffc2c4 !important;
    font-weight: 600;
}
