/* KOMY Phone shop — the checkout, the thank-you page and the cancellation page.
   Sits on top of style.css and reuses its tokens (paper, ink, blue, pink, radius, display/body fonts). */

.shop-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.shop-header .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.shop-header .brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; color: var(--ink); text-decoration: none; }
.shop-header .secure { font-size: 14px; white-space: nowrap; color: var(--ink-2, #5b5a7a); display: inline-flex; align-items: center; gap: 8px; }
.shop-header .secure svg { width: 16px; height: 16px; }

.shop-main { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.shop-title { font-family: var(--display); font-size: clamp(30px, 4.6vw, 44px); line-height: 1.05; margin: 0 0 6px; color: var(--ink); }
.shop-sub { margin: 0 0 28px; color: var(--ink-2, #5b5a7a); font-size: 17px; }

.checkout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout .col-product { order: 0; } .checkout .col-form { order: 1; } }

.checkout, .panel, .col-product, .col-form { min-width: 0; }
.panel { overflow-wrap: anywhere; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: clamp(18px, 3vw, 28px); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-family: var(--display); font-size: 24px; margin: 0 0 14px; color: var(--ink); }
.panel h3 { font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: .01em; margin: 22px 0 10px; color: var(--ink); }
.panel h3:first-of-type { margin-top: 0; }

/* the product */
.product { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.product img { width: 120px; height: auto; display: block; }
.product .name { font-family: var(--display); font-size: 26px; line-height: 1.05; margin: 0 0 4px; }
.product .pill-tag { display: inline-block; background: var(--gold-soft); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.product .price { margin: 8px 0 0; font-size: 22px; font-weight: 700; }
.product .price s { color: var(--ink-2, #5b5a7a); font-weight: 500; margin-right: 8px; }

.option { margin-top: 20px; }
.option .label { font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.option .hint { font-size: 13px; color: var(--ink-2, #5b5a7a); font-weight: 400; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice .box { display: block; min-width: 0; overflow-wrap: anywhere; border: 2px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; transition: border-color .15s, background .15s; }
.choice input:checked + .box { border-color: var(--blue); background: var(--blue-soft); }
.choice input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice .t { font-weight: 700; display: block; }
.choice .d { font-size: 13px; color: var(--ink-2, #5b5a7a); display: block; margin-top: 2px; }
.choice .p { font-weight: 700; display: block; margin-top: 6px; }

.promo { display: flex; gap: 8px; }
.promo input { flex: 1; }
.promo .btn { white-space: nowrap; }

.summary { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 14px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.summary .row.muted { color: var(--ink-2, #5b5a7a); font-size: 14px; }
.summary .row.total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 20px; font-weight: 700; }
.summary .row .r { text-align: right; white-space: nowrap; }
.summary .note { font-size: 13px; color: var(--ink-2, #5b5a7a); margin: 10px 0 0; }

/* the form */
.field { display: block; margin-bottom: 14px; }
.field span.l { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line);
  border-radius: var(--radius-s); background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } .choices { grid-template-columns: 1fr; } .product { grid-template-columns: 96px 1fr; } .product img { width: 96px; } }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.check a { color: var(--blue); }

#payment-element, #address-element, #billing-address-element { margin-top: 6px; }
.stripe-box { border: 2px solid var(--line); border-radius: var(--radius-s); padding: 12px; background: #fff; }

.btn.order { width: 100%; justify-content: center; font-size: 18px; padding: 16px 22px; margin-top: 18px; }
.btn.order[disabled] { opacity: .6; cursor: progress; }
.btn.order.is-busy { opacity: 1; cursor: progress; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid rgba(36,35,59,.25); border-top-color: var(--ink); animation: komy-spin .8s linear infinite; display: inline-block; }
@keyframes komy-spin { to { transform: rotate(360deg); } }
.order-veil { position: fixed; inset: 0; z-index: 1000; background: rgba(255,246,233,.82); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.order-veil[hidden] { display: none; }
.order-veil-box { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-ink); padding: 28px 32px; max-width: 420px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.order-veil-box .spin { width: 44px; height: 44px; border-width: 5px; }
.order-veil-box b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.order-veil-box span:last-child { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
html.order-busy { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.error { color: #B3261E; background: #FCEBEA; border: 1px solid #F3B4AF; border-radius: var(--radius-s); padding: 10px 12px; margin-top: 12px; font-size: 14px; }
.error:empty { display: none; }
.fine { font-size: 13px; color: var(--ink-2, #5b5a7a); margin-top: 12px; text-align: center; }

.trust { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 18px; font-size: 13px; color: var(--ink-2, #5b5a7a); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }

/* thank-you / cancel */
.centered { max-width: 640px; margin: 0 auto; text-align: center; }
.centered .komy { width: 180px; height: auto; margin: 0 auto 10px; display: block; }
.steps { text-align: left; margin: 22px auto 0; max-width: 520px; padding-left: 20px; }
.steps li { margin: 8px 0; }
.order-no { font-family: var(--display); font-size: 28px; color: var(--blue); margin: 6px 0 0; }

.shop-footer { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 14px; color: var(--ink-2, #5b5a7a); }
.shop-footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.shop-footer a { color: inherit; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; line-height: 1.6; }
.legal h1 { font-family: var(--display); font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 8px; }
.legal h2 { font-family: var(--display); font-size: 24px; margin: 32px 0 10px; }
.legal .draft { background: var(--gold-soft); border-radius: var(--radius-s); padding: 10px 14px; font-size: 14px; margin: 0 0 22px; }
.legal pre { white-space: pre-wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; font-family: var(--body); }

@media (max-width: 480px) { .shop-header .secure { display: none; } .summary .row { font-size: 14px; } }


/* ---------- Visual pass 2026-09-08: Papierwelt-Look wie die Startseite ---------- */
.shop-header { background: rgba(255, 246, 233, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.shop-header .brand { font-size: 24px; }
.shop-header .secure { font-family: var(--display); color: var(--ink-2); }
.shop-sub { max-width: 46em; }

.panel { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-ink); }
.col-product .panel + .panel { transform: rotate(-.8deg); }
.product img { filter: drop-shadow(0 8px 10px rgba(36, 35, 59, .18)); }
.product .pill-tag { font-family: var(--display); font-weight: 400; border: 2px solid var(--ink); background: var(--gold); transform: rotate(-2deg); display: inline-block; margin-bottom: 6px; }
.product .price { font-family: var(--display); font-weight: 400; font-size: 30px; }
.product .price s { font-size: .6em; text-decoration-thickness: 3px; }
.option .label { font-family: var(--display); font-weight: 400; font-size: 18px; }
.choice .box { border: 2px solid var(--ink); background: #fff; box-shadow: 0 3px 0 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.choice:hover .box { transform: translateY(1px); box-shadow: 0 2px 0 0 var(--ink); }
.choice input:checked + .box { border-color: var(--ink); background: var(--blue-soft); transform: translateY(3px); box-shadow: none; }
.choice input:focus-visible + .box { outline: 3px solid var(--blue); outline-offset: 3px; }
.choice .t { font-family: var(--display); font-weight: 400; font-size: 17px; }
.choice .p { font-family: var(--display); font-weight: 400; }
.summary { border-top: 2px dashed var(--line); }
.summary .row.total { font-family: var(--display); font-weight: 400; font-size: 22px; }
.panel h3 { font-family: var(--display); font-weight: 400; font-size: 18px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .promo input { border: 2px solid var(--ink); border-radius: 999px; padding: 13px 16px; }
.field input:focus, .promo input:focus { box-shadow: 0 0 0 4px var(--blue-soft); border-color: var(--ink); }
.stripe-box { border: 2px solid var(--ink); border-radius: var(--radius-s); }
.check input { accent-color: var(--blue); }
.error { border: 2px solid var(--pink); background: var(--pink-soft); color: #8A1C46; border-radius: var(--radius-s); }
.trust { justify-content: center; font-family: var(--display); color: var(--ink-2); }
.trust span::before { content: '✦'; color: var(--orange); margin-right: 2px; }
.steps li::marker { font-family: var(--display); color: var(--orange); }

/* Danke / Kündigen */
.centered .komy { width: 220px; }
.centered .steps-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-ink); padding: 20px 26px; margin-top: 26px; transform: rotate(-.8deg); text-align: left; }
.centered .steps-card .steps { margin: 0; max-width: none; }
.order-no { font-family: var(--display); font-size: 30px; color: var(--ink); display: inline-block; background: var(--gold); border: 2px solid var(--ink); border-radius: 12px; padding: 4px 14px; margin: 10px 0 10px; }

/* Rechtstexte des Shops */
.legal h1 { font-family: var(--display); }
.legal .draft { border: 2px dashed #A56B00; background: var(--gold-soft); }

/* Fußzeile wie auf der Startseite (Nacht, kompakt) */
.shop-footer { margin-top: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, var(--night), var(--night-2)); color: #fff; border-top: 0; padding: 36px 0 44px; font-size: 14.5px; }
.shop-footer .links { align-items: center; gap: 10px 22px; }
.shop-footer .links .brand { color: #fff; font-family: var(--display); font-size: 20px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.shop-footer .links .brand img { width: 30px; height: 30px; border-radius: 9px; }
.shop-footer a { color: rgba(255, 255, 255, .85); }
.shop-footer a:hover { color: #fff; }
.shop-footer .copy { width: 100%; margin: 14px 0 0; color: rgba(255, 255, 255, .6); font-size: 13px; }
.order-no:empty { display: none; }

/* Pflichtangaben */
.legal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.legal-list b { color: var(--ink); }
.product .vat { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }

/* Gerät in der Kasse: Modellzeile, EU-Energielabel direkt neben dem Preis (VO 2023/1669 verlangt es
   beim Fernabsatz in der Nähe des Preises), darunter die Links auf Label und Datenblatt. */
.product { grid-template-columns: 120px 1fr auto; }
.product .model { margin: 0; font-size: 14.5px; color: var(--ink-2, #5b5a7a); }
.product .eu-label { align-self: start; display: block; }
.product .eu-label img { width: 54px; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; filter: none; }
.label-links { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2, #5b5a7a); }
.choice .s { font-size: 13px; color: var(--ink-2, #5b5a7a); display: block; margin-top: 2px; }
@media (max-width: 560px) { .product { grid-template-columns: 96px 1fr auto; } .product .eu-label img { width: 44px; } }

/* Zahlungsart (2026-10-09): PayPal sichtbar machen, Stripe nennen, Auswahl als Liste mit Logos (Stripe-Akkordeon). */
.pay-head { margin: 0 0 12px; }
.pay-lead { margin: 0 0 10px; font-size: 15.5px; color: var(--ink); }
.pay-marks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-marks .pm { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); }
.pay-marks .pm-paypal { font-family: Verdana, Arial, sans-serif; font-style: italic; font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.pay-marks .pp1 { color: #003087; } .pay-marks .pp2 { color: #009CDE; }
.pay-marks .pm-soft { border-style: dashed; border-color: rgba(36, 35, 59, .35); font-weight: 500; color: var(--ink-2, #5b5a7a); }
.pay-box { padding: 14px; }
.pay-stripe { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 6px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--blue-soft, #DCEBFB); font-size: 14px; line-height: 1.5; color: var(--ink); }
.pay-stripe svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
@media (max-width: 480px) { .pay-marks .pm { font-size: 13px; min-height: 30px; padding: 3px 10px; } }

/* Kasse schlanker (2026-10-09): Stripe bringt eigene Felder mit – kein zweiter Rahmen darum. Gerätedetails zugeklappt. */
.stripe-box, .pay-box { border: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.col-form h3 { margin-top: 22px; }
.pay-head { margin: 0 0 10px; }
.pay-lead { margin: 0; font-size: 15px; color: var(--ink-2, #5b5a7a); }
.pay-lead b { color: var(--ink); }
.pay-stripe { background: none; padding: 0; margin: 10px 0 4px; font-size: 13.5px; color: var(--ink-2, #5b5a7a); }
.pay-stripe svg { width: 15px; height: 15px; margin-top: 1px; }
details.legal-info { padding: 0; transform: none !important; }
details.legal-info > summary { cursor: pointer; list-style: none; padding: 16px clamp(18px, 3vw, 28px); font-family: var(--display); font-size: 17px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.legal-info > summary::-webkit-details-marker { display: none; }
details.legal-info > summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--ink-2, #5b5a7a); }
details.legal-info[open] > summary::after { content: '–'; }
details.legal-info > .legal-list { padding: 0 clamp(18px, 3vw, 28px) 20px; }
.centered .steps-card h2 { font-family: var(--display); font-size: 22px; margin: 0 0 10px; color: var(--ink); }
