/* Lizenzdrache.ch - KI & Cloud (Startseiten-Regal, Uebersicht, Produktseite)
   Schriften und Grundfarben wie die Startseite (Archivo, InterLD), Produktfarben
   kommen je Familie als --brand / --brand-ink aus dem Markup.
   Leitidee: Softwareschachteln im Ladenregal. Die Box ist das eine laute Element,
   alles drumherum bleibt ruhig. Raster wie der Shop: 1200 px, 15/20 px Rand.
   Kontraste AA: Text-Rot #C42B37, Knopf-Rot #CF2E3B (weiss 5.1:1), Gruen #17703D. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/archivo-latin.woff2) format('woff2'); }
@font-face { font-family: 'InterLD'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); }

.kp {
    --ink: #070A11;
    --ink-2: #121826;
    --paper: #F7F6F3;
    --line: #DCD9D2;
    --tx-strong: #10141F;
    --tx: #3A4152;
    --tx-mute: #5F6779;
    --ember: #E63946;
    --ember-ink: #C42B37;
    --btn: #CF2E3B;
    --btn-hover: #AE2430;
    --sticker: #F5C451;
    --ok: #17703D;
    --font-display: 'Archivo', system-ui, sans-serif;
    --font-body: 'InterLD', system-ui, -apple-system, sans-serif;
    font-family: var(--font-body);
    color: var(--tx);
    line-height: 1.6;
}
.kp *, .kp *::before, .kp *::after { box-sizing: border-box; }
.kp img { display: block; max-width: 100%; height: auto; }
.kp :focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.kp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.kp h1, .kp h2, .kp h3 { font-family: var(--font-display); color: var(--tx-strong); letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
:where(.kp) p { margin: 0; }
.kp a { color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ======================================================================
   Box (CSS 3D). Masse wie eine Softwareschachtel 7 : 10 : 2.
   ====================================================================== */
.kb-holder { position: relative; width: var(--bw, 230px); margin: 0 auto; }
.kb-stage {
    --bh: calc(var(--bw) * 10 / 7);
    --bd: calc(var(--bw) * 2 / 7);
    position: relative;
    width: var(--bw);
    height: var(--bh);
    margin: 0 auto;
    perspective: 1500px;
    perspective-origin: 50% 30%;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 6px;
}
.kb-stage.is-drag { cursor: grabbing; }
.kb-box {
    --rx: -7deg;
    --ry: -26deg;
    --glare: 30%;
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.kb-face {
    position: absolute;
    top: 0; left: 0;
    width: var(--bw);
    height: var(--bh);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    background: var(--brand, #333);
}
.kb-face img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.kb-front { transform: translateZ(calc(var(--bd) / 2)); }
.kb-back  { transform: rotateY(180deg) translateZ(calc(var(--bd) / 2)); }
.kb-right, .kb-left { width: var(--bd); left: calc((var(--bw) - var(--bd)) / 2); }
.kb-right { transform: rotateY(90deg) translateZ(calc(var(--bw) / 2)); }
.kb-left  { transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2)); }
.kb-top, .kb-bottom { height: var(--bd); top: calc((var(--bh) - var(--bd)) / 2); }
.kb-top    { transform: rotateX(90deg) translateZ(calc(var(--bh) / 2)); }
.kb-bottom { transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2)); }
/* Licht: Seiten dunkler, Deckel heller, Glanzkante auf Vorder- und Rueckseite */
.kb-right::after, .kb-left::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.30), rgba(0,0,0,.12)); }
.kb-top::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.14); }
.kb-front::after, .kb-back::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(255,255,255,0) calc(var(--glare) - 22%), rgba(255,255,255,.22) var(--glare), rgba(255,255,255,0) calc(var(--glare) + 22%));
    mix-blend-mode: screen;
    pointer-events: none;
}
.kb-shadow {
    position: absolute;
    left: 50%;
    bottom: calc(var(--bd) * -0.28);
    width: calc(var(--bw) * 1.25);
    height: calc(var(--bd) * 0.7);
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0,0,0,.42), rgba(0,0,0,0) 68%);
    filter: blur(3px);
    pointer-events: none;
}
.kb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.kb-turn {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #C9C6BF;
    border-radius: 999px;
    background: #fff;
    font: 600 0.9rem/1 var(--font-body);
    color: var(--tx-strong);
    text-decoration: none;
    cursor: pointer;
}
.kb-turn:hover { border-color: var(--tx-strong); }
.kb-turn svg { flex: none; }
.kb-hint { font-size: 0.84rem; color: var(--tx-mute); margin-top: 12px; text-align: center; }

/* Packshot (gerendertes Bild) */
.kb-shot { display: block; width: 100%; height: auto; }

/* Ladenaufkleber: Glutrot des Shops, weisser Ring, unten rechts auf der Schachtel */
.kb-sticker {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--btn);
    color: #fff;
    font: 800 1.12rem/0.95 var(--font-display);
    letter-spacing: -0.03em;
    text-align: center;
    transform: rotate(-10deg);
    box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.92), inset 0 0 0 5px var(--btn);
    pointer-events: none;
}
.kb-sticker small { display: block; margin-top: 2px; font: 700 0.62rem/1.1 var(--font-body); letter-spacing: 0; color: #fff; }
.kb-holder .kb-sticker { right: calc(var(--bw) * -0.2); bottom: 9%; }
.kp-pack { position: relative; display: inline-block; }
.kp-pack .kb-sticker { right: 0; bottom: 16%; }

/* ======================================================================
   Startseite: Regal
   ====================================================================== */
.kp-shelf-sec {
    position: relative;
    background: radial-gradient(1200px 520px at 50% -8%, #22304d 0%, rgba(34,48,77,0) 62%), linear-gradient(180deg, #0b1220 0%, #070A11 100%);
    color: #AEB6C7;
    padding: 64px 0 60px;
    overflow: hidden;
}
.kp-shelf-head { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; max-width: 980px; }
.kp-new {
    display: inline-flex; align-self: start; justify-self: start;
    align-items: center; gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: rgba(245,196,81,.12);
    color: var(--sticker);
    font: 600 0.86rem/1 var(--font-body);
}
.kp-new b { background: var(--sticker); color: var(--ink); border-radius: 999px; padding: 4px 8px; font-weight: 800; }
.kp-shelf-sec h2 { color: #fff; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1; letter-spacing: -0.04em; }
.kp-shelf-sec .kp-lead { font-size: 1.08rem; color: #AEB6C7; max-width: 60ch; }

.kp-shelf { position: relative; display: grid; grid-template-columns: 1fr; gap: 26px; }
.kp-slot { position: relative; z-index: 1; display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: start; text-decoration: none; color: inherit; border-radius: 12px; }
.kp-slot-box { position: relative; padding-top: 6px; }
.kp-slot-box .kp-pack { display: block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.kp-slot-box img { width: 100%; height: auto; }
.kp-slot:hover .kp-pack, .kp-slot:focus-visible .kp-pack { transform: translateY(-6px) rotate(-1.5deg); }
.kp-slot .kb-sticker { width: 44px; height: 44px; font-size: 0.8rem; right: -14px; bottom: 4%; box-shadow: 0 4px 10px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.92), inset 0 0 0 3px var(--btn); }
.kp-slot .kb-sticker small { display: none; }
.kp-slot-body { display: flex; flex-direction: column; min-width: 0; }
.kp-slot h3 { color: #fff; font-size: 1.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.kp-slot h3 span { color: #D5DBE7; font-weight: 700; }
.kp-slot-text { font-size: 0.93rem; line-height: 1.5; color: #AEB6C7; margin-bottom: 12px; }
.kp-slot-price { display: grid; gap: 4px; }
.kp-slot-now { display: flex; align-items: baseline; gap: 8px; }
.kp-slot-now span { font-size: 0.9rem; color: #AEB6C7; }
.kp-slot-now strong { font: 800 1.7rem/1 var(--font-display); color: #fff; letter-spacing: -0.03em; }
.kp-slot-was, .kp-slot-term { font: 500 0.82rem/1.3 ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace; letter-spacing: .02em; color: #A3ABBD; }
.kp-slot-was s { color: #A3ABBD; }
.kp-slot-save { color: #FF7C86; margin-left: 6px; }
.kp-slot-term { font-family: var(--font-body); letter-spacing: 0; font-size: 0.86rem; }
.kp-slot-cta { margin-top: 12px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sticker); }
.kp-shelf-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.kp-shelf-foot p { font-size: 0.92rem; color: #A3ABBD; }

/* ======================================================================
   Knoepfe
   ====================================================================== */
.kp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px;
    padding: 0 26px;
    border: 0; border-radius: 10px;
    background: var(--btn);
    color: #fff !important;
    font: 700 1.04rem/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.kp-btn:hover { background: var(--btn-hover); }
.kp-btn:active { transform: translateY(1px); }
.kp-btn[aria-busy="true"] { opacity: .8; cursor: progress; }
.kp-btn--ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.45); }
.kp-btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ======================================================================
   Produktseite
   ====================================================================== */
.kp-page { background: var(--paper); }
.kp-crumbs { font-size: 0.86rem; color: var(--tx-mute); padding: 12px 0 0; }
.kp-crumbs a { color: var(--tx-mute); text-decoration: none; }
.kp-crumbs a:hover { color: var(--tx-strong); text-decoration: underline; }
.kp-crumbs--dark, .kp-crumbs--dark a { color: #A3ABBD; }
.kp-crumbs--dark a:hover { color: #fff; }

.kp-hero { padding: 14px 0 48px; }
.kp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "box" "body"; gap: 20px; align-items: start; }
.kp-hero-head { grid-area: head; }
.kp-hero-box { grid-area: box; }
.kp-hero-body { grid-area: body; }
.kp-plinth {
    position: relative;
    border-radius: 20px;
    padding: 28px 16px 18px;
    background:
        radial-gradient(70% 55% at 50% 18%, color-mix(in srgb, var(--brand) 26%, #fff) 0%, rgba(255,255,255,0) 70%),
        linear-gradient(180deg, #fff 0%, #EFEDE8 100%);
    border: 1px solid var(--line);
    text-align: center;
    overflow: hidden;
}
.kp-plinth .kb-holder { --bw: 150px; }

.kp-kicker { display: inline-block; font-size: 0.95rem; font-weight: 600; color: var(--brand-ink, var(--tx-mute)); margin-bottom: 8px; }
.kp-hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 12px; }
.kp-hero .kp-lead { font-size: 1.04rem; line-height: 1.55; color: var(--tx); max-width: 56ch; }

.kp-tiers { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.kp-tiers legend { font: 700 0.98rem/1.3 var(--font-body); color: var(--tx-strong); margin-bottom: 8px; padding: 0; }
.kp-tier { position: relative; display: block; margin-bottom: 8px; cursor: pointer; }
.kp-tier input { position: absolute; opacity: 0; pointer-events: none; }
.kp-tier-card {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 2px 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.kp-tier-dot { width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid #80868F; display: grid; place-items: center; }
.kp-tier input:checked + .kp-tier-card { border-color: var(--tx-strong); box-shadow: 0 0 0 1px var(--tx-strong); }
.kp-tier input:checked + .kp-tier-card .kp-tier-dot { border-color: var(--tx-strong); }
.kp-tier input:checked + .kp-tier-card .kp-tier-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--tx-strong); }
.kp-tier input:focus-visible + .kp-tier-card { outline: 3px solid var(--ember); outline-offset: 3px; }
.kp-tier:hover .kp-tier-card { border-color: #9AA0AB; }
.kp-tier-name { font-weight: 700; color: var(--tx-strong); font-size: 1.02rem; }
.kp-tier-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--sticker); color: var(--ink); font-size: 0.74rem; font-weight: 700; vertical-align: 2px; }
.kp-tier-desc { grid-column: 2 / 3; font-size: 0.88rem; color: var(--tx-mute); line-height: 1.45; }
.kp-tier-price { grid-row: 1 / 3; grid-column: 3; text-align: right; white-space: nowrap; }
.kp-tier-price strong { display: block; font: 800 1.1rem/1.15 var(--font-display); color: var(--tx-strong); }
.kp-tier-price small { display: block; font-size: 0.76rem; color: var(--tx-mute); }
@media (max-width: 559px) { .kp-tier-price small { white-space: normal; max-width: 7.5em; margin-left: auto; line-height: 1.25; } }

.kp-qty { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.kp-qty label { font-weight: 700; color: var(--tx-strong); }
.kp-qty-ctl { display: inline-flex; justify-self: start; border: 1.5px solid #8A8F98; border-radius: 10px; background: #fff; overflow: hidden; }
.kp-qty-ctl button { width: 44px; height: 44px; border: 0; background: #fff; font: 600 1.3rem/1 var(--font-body); color: var(--tx-strong); cursor: pointer; }
.kp-qty-ctl button:hover { background: #F2F1EE; }
.kp-qty-ctl input { width: 64px; height: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 700 1.05rem/1 var(--font-body); color: var(--tx-strong); -moz-appearance: textfield; }
.kp-qty-ctl input::-webkit-outer-spin-button, .kp-qty-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kp-qty-total { font-size: 0.95rem; color: var(--tx); }
@media (max-width: 479px) { .kp-qty { grid-template-columns: auto 1fr; } .kp-qty-total { grid-column: 1 / -1; } }

.kp-buyline { display: grid; gap: 10px; }
.kp-pricebox { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.kp-pricebox strong { font: 800 clamp(2.3rem, 8vw, 2.8rem)/1 var(--font-display); color: var(--ember); letter-spacing: -0.04em; }
.kp-pricebox .kp-cur { font: 700 1rem/1 var(--font-display); color: var(--ember-ink); }
.kp-per { display: grid; font-size: 0.9rem; line-height: 1.35; color: var(--tx-mute); }
.kp-month[hidden] { display: none; }
.kp-pricebox-was { font-size: 0.92rem; color: var(--tx); }
.kp-pricebox-was[hidden] { display: none; }
.kp-pricebox-was s { color: var(--tx-mute); }
.kp-pricebox-was b { color: var(--ok); }
.kp-save { color: var(--ember-ink); font-weight: 600; white-space: nowrap; }
.kp-buy-row { order: 3; }
.kp-buy-row { display: grid; }
.kb-videolink .kb-vl-long { display: none; }
@media (min-width: 400px) { .kb-videolink .kb-vl-long { display: inline; } }
.kp-buy-row .kp-btn { width: 100%; }
.kp-buy-error { color: var(--ember-ink); font-size: 0.92rem; font-weight: 600; margin-top: 10px; }
.kp-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; color: var(--tx); }
.kp-facts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.kp-facts svg { margin-top: 3px; color: var(--ok); }
.kp-req { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 0.9rem; line-height: 1.5; }
.kp-req b { color: var(--tx-strong); }

/* Rueckseite gross (Dialog) */
.kb-backdlg { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--tx); box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: auto; }
.kb-backdlg::backdrop { background: rgba(7,10,17,.72); }
.kb-backdlg-in { position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; padding: 24px 20px 22px; font-family: var(--font-body); }
.kp .kb-backdlg-img { display: none; }
.kb-backdlg-text h2 { font: 800 1.6rem/1.1 var(--font-display); color: var(--tx-strong); letter-spacing: -0.03em; margin: 0 40px 16px 0; }
.kb-backdlg-text .kp-kicker { margin-bottom: 6px; }
.kb-backdlg-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kb-backdlg-text li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.98rem; line-height: 1.45; }
.kb-backdlg-text li svg { margin-top: 3px; color: var(--ok); }
.kb-backdlg-text li b { display: block; color: var(--tx-strong); }
.kb-backdlg-req { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 0.92rem; }
.kb-backdlg-req b { display: block; color: var(--tx-strong); margin-bottom: 2px; }
.kb-backdlg-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #F2F1EE; color: var(--tx-strong); cursor: pointer; }
.kb-backdlg-close:hover { background: #E4E2DC; }
.kb-backdlg :focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.kp-sec { padding: 56px 0; }
.kp-sec--white { background: #fff; }
.kp-sec--ink { background: var(--ink); color: #AEB6C7; }
.kp-sec--ink h2 { color: #fff; }
.kp-sec h2 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 14px; }
.kp-sec .kp-sec-lead { font-size: 1.04rem; color: var(--tx-mute); max-width: 60ch; margin-bottom: 32px; }
.kp-sec--ink .kp-sec-lead { color: #AEB6C7; }

/* Standbilder */
.kp-sec--shots h2 { margin-bottom: 24px; }
.kp-shots { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: 0 -2px; overscroll-behavior-x: contain; }
.kp-shots figure { margin: 0; scroll-snap-align: start; }
.kp-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.kp-shots figcaption { font-size: 0.92rem; line-height: 1.45; color: var(--tx); margin-top: 10px; }

/* Video */
.kv { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.kv-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; color: #fff; text-decoration: none; }
.kv-play img { width: 100%; height: 100%; object-fit: cover; }
.kv-play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 72%, rgba(0,0,0,.45) 100%); pointer-events: none; }
.kv-play-btn { position: absolute; z-index: 1; left: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--btn); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .2s ease; }
.kv-play:hover .kv-play-btn, .kv-play:focus-visible .kv-play-btn { transform: scale(1.06); }
.kv-play-meta { position: absolute; z-index: 1; left: 84px; bottom: 26px; display: flex; align-items: center; gap: 10px; font: 700 0.95rem/1.2 var(--font-body); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.kv-play-label { padding: 5px 10px; border-radius: 8px; background: rgba(7,10,17,.72); text-shadow: none; }
.kv-play-dur { padding: 5px 8px; border-radius: 8px; background: rgba(7,10,17,.72); font-weight: 600; font-size: 0.82rem; text-shadow: none; }
@media (max-width: 719px) { .kv-play-btn { left: 12px; bottom: 12px; width: 48px; height: 48px; } .kv-play-meta { left: 70px; bottom: 22px; } .kv-play-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; } }
.kv-video { width: 100%; height: 100%; display: block; background: #000; }
.kv-end { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 18px; padding: 20px; text-align: center; background: rgba(7,10,17,.9); color: #fff; }
.kv-end[hidden] { display: none; }
.kv-end p { font: 700 clamp(1.05rem, 2.6vw, 1.5rem)/1.3 var(--font-display); max-width: 30ch; margin: 0 auto; }
.kv-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Faehigkeiten */
.kp-caps { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.kp-cap { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.kp-cap h3 { font-size: 1.12rem; font-weight: 750; line-height: 1.3; }
.kp-cap p { color: var(--tx); font-size: 0.98rem; max-width: 62ch; }
.kp-caps-toggle { margin-top: 18px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--tx-strong); border-radius: 10px; background: #fff; font: 700 0.95rem/1 var(--font-body); color: var(--tx-strong); cursor: pointer; }
.kp-caps.is-collapsed .kp-cap--more { display: none; }

/* Fuer wen: heller Streifen */
.kp-sec--who { background: var(--paper); }
.kp-who { display: grid; grid-template-columns: 1fr; gap: 12px; }
.kp-who-item { padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--tx); font-size: 0.97rem; }
.kp-who-item b { display: block; color: var(--tx-strong); font-size: 1.04rem; margin-bottom: 4px; }

/* Ablauf */
.kp-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.kp-steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 66px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.kp-steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--tx-strong); color: #fff; display: grid; place-items: center; font: 800 1rem/1 var(--font-display); }
.kp-steps b { display: block; color: var(--tx-strong); margin-bottom: 4px; }

/* Stufen-Vergleich */
.kp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.kp-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; table-layout: fixed; }
.kp-table th, .kp-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #ECEAE5; vertical-align: top; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.kp-table thead th { font-family: var(--font-display); font-size: 0.98rem; color: var(--tx-strong); background: #FBFAF8; }
.kp-table tbody th, .kp-table tfoot th { font-weight: 600; color: var(--tx-strong); width: 40%; }
.kp-table td.yes { color: var(--ok); font-weight: 700; }
.kp-table td.no { color: var(--tx-mute); }
.kp-table tfoot td, .kp-table tfoot th { border-bottom: 0; }
.kp-table .is-sel { background: #FBF3DC; }
.kp-table thead th.is-sel { background: #F7E9C0; }
.kp-pick { min-height: 40px; width: 100%; padding: 0 8px; border: 1.5px solid var(--tx-strong); border-radius: 8px; background: #fff; font: 700 0.84rem/1.1 var(--font-body); color: var(--tx-strong); cursor: pointer; }
.kp-pick:hover { background: var(--tx-strong); color: #fff; }
.kp-pick[aria-pressed="true"] { background: var(--tx-strong); color: #fff; }

/* FAQ */
.kp-faq { border-top: 1px solid var(--line); max-width: 860px; }
.kp-faq details { border-bottom: 1px solid var(--line); }
.kp-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 700 1.04rem/1.4 var(--font-body); color: var(--tx-strong); }
.kp-faq summary::-webkit-details-marker { display: none; }
.kp-faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font: 400 1.6rem/1 var(--font-body); color: var(--tx-mute); transition: transform .2s ease; }
.kp-faq details[open] summary::after { transform: rotate(45deg); }
.kp-faq details p { padding: 0 0 20px; max-width: 70ch; color: var(--tx); }
.kp-faq details a { color: var(--brand-ink, var(--tx-strong)); font-weight: 600; }

/* Weitere Produkte */
.kp-more { display: grid; grid-template-columns: 1fr; gap: 14px; }
.kp-more a { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.kp-more a:hover { border-color: var(--tx-strong); }
.kp-more img { width: 84px; height: auto; }
.kp-more b { display: block; color: var(--tx-strong); font-size: 1.04rem; line-height: 1.3; margin-bottom: 4px; }
.kp-more span { font-size: 0.9rem; color: var(--tx-mute); }

/* Klebeleiste unten (bis 979 px): ab Seitenbeginn, solange der Kaufknopf nicht im Bild ist */
.kp-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(0,0,0,.1);
    transform: translateY(110%);
    transition: transform .25s ease;
}
.kp-sticky.is-on { transform: none; }
.kp-sticky-info { flex: 1; min-width: 0; line-height: 1.2; }
.kp-sticky-info b { display: block; font: 800 1.2rem/1.1 var(--font-display); color: var(--tx-strong); white-space: nowrap; }
.kp-sticky-info b span { font: inherit; color: inherit; }
.kp-sticky-name { display: block; font-size: 0.8rem; color: var(--tx-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-sticky .kp-btn { flex: none; min-height: 48px; padding: 0 18px; font-size: 0.98rem; }
.kp-sticky-err { position: absolute; left: 15px; right: 15px; bottom: 100%; margin-bottom: 8px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--ember-ink); color: var(--ember-ink); font-size: 0.88rem; font-weight: 600; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
/* Chat-Knopf und «Nach oben» des Shops ruecken ueber die Leiste, damit der Kaufknopf frei bleibt */
body.kp-sticky-on { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
body.kp-sticky-on .faq-chat { bottom: calc(82px + env(safe-area-inset-bottom)) !important; transition: bottom .25s ease; }
body.kp-sticky-on #backToTop { bottom: calc(150px + env(safe-area-inset-bottom)) !important; }

/* ======================================================================
   Uebersicht
   ====================================================================== */
.kp-ov { background: #fff; }
.kp-ov-hero { background: radial-gradient(1100px 480px at 50% -10%, #22304d 0%, rgba(34,48,77,0) 62%), linear-gradient(180deg, #0b1220 0%, #070A11 100%); color: #AEB6C7; padding: 0 0 48px; overflow: hidden; }
.kp-ov-hero .kp-crumbs { margin-bottom: 24px; }
.kp-ov-hero h1 { color: #fff; font-size: clamp(2.1rem, 5.6vw, 3.9rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; margin: 16px 0 16px; max-width: 22ch; }
.kp-ov-hero .kp-lead { font-size: 1.08rem; max-width: 60ch; margin-bottom: 28px; }
.kp-jump { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.kp-jump a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); text-decoration: none; color: #D5DBE7; transition: border-color .15s ease, background .15s ease; }
.kp-jump a:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.kp-jump b { color: #fff; font: 800 1.1rem/1.2 var(--font-display); }
.kp-jump span { grid-column: 1; font-size: 0.9rem; color: #A3ABBD; }
.kp-jump .kp-jump-price { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #fff; font-weight: 700; white-space: nowrap; }
.kp-ov-sec { padding-top: 8px; }
.kp-ov-list { display: grid; gap: 0; }
.kp-ov-item { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 48px 0; border-bottom: 1px solid var(--line); align-items: center; scroll-margin-top: 90px; }
.kp-ov-item:last-child { border-bottom: 0; }
.kp-ov-shot { position: relative; max-width: 280px; margin: 0 auto; text-align: center; }
.kp-ov-shot .kp-pack { width: 100%; }
.kp-ov-item h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 10px; }
.kp-ov-item .kp-kicker { margin-bottom: 8px; }
.kp-ov-item p.kp-ov-text { font-size: 1.02rem; max-width: 56ch; margin-bottom: 16px; }
.kp-ov-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.kp-ov-points li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.kp-ov-points svg { margin-top: 4px; color: var(--ok); }
.kp-ov-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 18px; }
.kp-ov-price strong { font: 800 2rem/1 var(--font-display); color: var(--ember); letter-spacing: -0.03em; }
.kp-ov-from, .kp-ov-term { color: var(--tx-mute); font-size: 0.95rem; }
.kp-ov-was { flex-basis: 100%; font-size: 0.9rem; color: var(--tx-mute); }
.kp-ov-was s { color: var(--tx-mute); }

/* ======================================================================
   Breiter
   ====================================================================== */
@media (min-width: 720px) {
    .kp-wrap { padding: 0 20px; }
    .kp-caps { grid-template-columns: 1fr 1fr; column-gap: 48px; }
    .kp-caps.is-collapsed .kp-cap--more { display: grid; }
    .kp-caps-toggle { display: none; }
    .kp-who { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .kp-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .kp-more { grid-template-columns: 1fr 1fr; }
    .kp-shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; gap: 20px; padding: 0; margin: 0; }
    .kp-table { font-size: 0.95rem; }
    .kp-table th, .kp-table td { padding: 13px 16px; }
    .kp-table tbody th, .kp-table tfoot th { width: 34%; }
    .kp-pick { width: auto; padding: 0 14px; }
    .kp-plinth .kb-holder { --bw: 190px; }
    .kp-jump { grid-template-columns: repeat(3, 1fr); }
    .kb-backdlg-in { grid-template-columns: 300px 1fr; gap: 32px; padding: 28px; align-items: start; }
    .kp .kb-backdlg-img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
    .kp-buyline { grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; row-gap: 8px; }
    .kp-buy-row { order: 0; }
    .kp-pricebox-was { grid-column: 1 / -1; }
    .kp-buy-row .kp-btn { min-width: 240px; }
}
@media (min-width: 861px) {
    .kp-shelf-sec { padding: 88px 0 80px; }
    .kp-shelf-head { margin-bottom: 52px; }
    .kp-shelf { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .kp-shelf::after {
        /* Regalbrett */
        content: '';
        position: absolute; left: -20px; right: -20px;
        top: 300px;
        height: 18px;
        background: linear-gradient(180deg, #3a4868 0%, #232c44 45%, #10162a 100%);
        border-top: 1px solid rgba(255,255,255,.32);
        box-shadow: 0 18px 40px rgba(0,0,0,.55);
        z-index: 0;
    }
    .kp-slot { display: flex; flex-direction: column; grid-template-columns: none; gap: 0; }
    .kp-slot-box { height: 300px; padding: 0; display: flex; align-items: flex-end; justify-content: center; }
    .kp-slot-box::before { content: ''; position: absolute; left: 50%; bottom: 4%; width: 86%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(160,185,230,.30), rgba(160,185,230,0)); z-index: -1; pointer-events: none; }
    .kp-slot-box .kp-pack { height: 112%; margin-bottom: -6%; }
    .kp-slot-box img { height: 100%; width: auto; max-width: none; }
    .kp-slot:hover .kp-pack, .kp-slot:focus-visible .kp-pack { transform: translateY(-10px) rotate(-1.5deg); }
    .kp-slot .kb-sticker { width: 70px; height: 70px; font-size: 1.1rem; right: -6px; bottom: 16%; box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.92), inset 0 0 0 5px var(--btn); }
    .kp-slot .kb-sticker small { display: block; font-size: 0.6rem; }
    .kp-slot-body { flex: 1; padding: 36px 4px 0; }
    .kp-slot h3 { font-size: 1.4rem; margin-bottom: 8px; }
    .kp-slot-text { flex: 1; font-size: 0.97rem; margin-bottom: 18px; }
    .kp-slot-now strong { font-size: 1.95rem; }
    .kp-slot-cta { margin-top: 16px; }
    .kp-shelf-foot { margin-top: 52px; }
}
@media (min-width: 980px) {
    .kp-hero { padding: 12px 0 72px; }
    .kp-tier { margin-bottom: 6px; }
    .kp-tier-card { padding: 10px 14px; }
    .kp-tiers legend { margin-bottom: 6px; }
    .kp-qty { margin-bottom: 10px; }
    .kp-hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "box head" "box body"; column-gap: 56px; row-gap: 14px; }
    .kp-hero-box { align-self: stretch; }
    .kp-plinth { position: sticky; top: 24px; padding: 44px 20px 26px; }
    .kp-plinth .kb-holder { --bw: 236px; }
    .kp-hero h1 { font-size: clamp(2.1rem, 3vw, 2.6rem); }
    .kp-sec { padding: 88px 0; }
    .kp-sec--shots { padding: 64px 0; }
    .kp-ov-hero h1 { max-width: 20ch; }
    .kp-ov-item { grid-template-columns: 320px 1fr; gap: 64px; padding: 64px 0; }
    .kp-ov-shot { max-width: none; }
    .kp-ov-item:nth-child(even) { grid-template-columns: 1fr 320px; }
    .kp-ov-item:nth-child(even) .kp-ov-shot { order: 2; }
    .kp-sticky { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .kp *, .kp *::before, .kp *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .kp-slot:hover .kp-pack, .kp-slot:focus-visible .kp-pack { transform: none; }
    body.kp-sticky-on .faq-chat { transition: none; }
}
