/* ==========================================================================
   Nachklang — Checkout (Referenz-Stil, mobile-first, minimalistisch)
   Nutzt Tokens/Fonts aus styles.css. Layout: 1 Spalte mobil, 2 Spalten ≥900px.
   ========================================================================== */

.co-body { background-color: var(--color-white); color: var(--color-text); }

/* ---------- Kopf (sticky) ---------- */
.co-header { position: sticky; top: 0; z-index: 40; background-color: var(--color-white); border-bottom: 1px solid var(--color-border); }
.co-logo-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.co-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--color-green-deepest); }
.co-logo .logo-word { font-family: var(--font-serif-display); font-size: 19px; }

.co-trust-banner { background-color: var(--color-peach-band); text-align: center; font-family: var(--font-sans); font-size: 12.5px; color: var(--color-green-deepest); padding: 6px 12px; }

.co-pricerow { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; border-top: 1px solid var(--color-border); }
.co-price { font-family: var(--font-sans); font-size: 16px; }
.co-price s { color: var(--color-text-muted); font-weight: 400; margin-right: 6px; }
.co-price strong { font-weight: 700; }
.co-review-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--color-teal-link); font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: .03em; cursor: pointer; }

.co-progress { height: 4px; background-color: var(--color-smoke); }
.co-progress-fill { display: block; height: 100%; width: 0; background-color: var(--color-green-mid); transition: width .3s ease; }

/* ---------- Layout ---------- */
.co-main { max-width: 1100px; margin-inline: auto; padding: 0 16px; }
.co-grid { display: block; }
.co-steps { padding: 26px 0 130px; }
.co-step { max-width: 560px; }

.co-eyebrow { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-green-mid); margin: 0 0 8px; }
.co-h1 { font-family: var(--font-serif-display); font-weight: 400; font-size: 27px; line-height: 1.18; margin: 0 0 16px; }
.co-sub { font-size: 15px; line-height: 1.5; color: var(--color-text-muted); margin: 0 0 20px; }

/* Kopf mit kleiner Illustration (Referenz-Stil) */
.co-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.co-head-row .co-h1 { flex: 1 1 auto; }
.co-illus { flex: 0 0 auto; width: 60px; height: auto; margin-top: 2px; }

.co-anmelden { font-size: 13px; color: var(--color-text-muted); margin: 14px 0 0; }
.co-anmelden a { color: var(--color-teal-link); }
.co-zusatz { display: flex; gap: 8px; font-size: 13.5px; margin-bottom: 7px; }

/* Bezahl-Schritt */
.co-bezahl-total { font-family: var(--font-sans); font-size: 18px; margin: 0 0 4px; }
.co-bezahl-total strong { font-weight: 700; }
.co-pay-placeholder { background-color: var(--color-smoke); border: 1px dashed var(--color-border); border-radius: 12px; padding: 22px; text-align: center; font-size: 14px; color: var(--color-text-muted); }

/* ---------- Felder ---------- */
.co-field { margin-bottom: 16px; }
.co-label { display: block; font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.co-input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--color-border); border-radius: 10px; font-family: var(--font-sans); font-size: 16px; color: var(--color-text); background-color: var(--color-white); }
.co-input:focus { outline: none; border-color: var(--color-green-dark); }
.co-input.is-invalid { border-color: var(--color-peach-deep); }
textarea.co-input { min-height: 120px; resize: vertical; line-height: 1.5; }
select.co-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2312473a' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.co-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-error { color: var(--color-peach-deep); font-size: 12.5px; margin: 5px 0 0; }
.co-hint { font-size: 12.5px; color: var(--color-text-muted); margin: 5px 0 0; }

/* ---------- Auswahl-Karten (Radio) ---------- */
.co-choices { display: grid; gap: 12px; margin-bottom: 4px; }
.co-choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--color-border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.co-choice:hover { border-color: var(--color-green-sage); }
.co-choice.is-selected { border-color: var(--color-green-dark); background-color: #f3f8f5; }
.co-choice input { position: absolute; opacity: 0; pointer-events: none; }
.co-radio { flex: 0 0 auto; width: 20px; height: 20px; border: 1.5px solid var(--color-green-dark); border-radius: 50%; margin-top: 1px; position: relative; }
.co-choice.is-selected .co-radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background-color: var(--color-green-dark); }
.co-choice-title { font-family: var(--font-sans); font-weight: 600; font-size: 15px; }
.co-choice-sub { display: block; font-family: var(--font-sans); font-size: 13px; color: var(--color-text-muted); margin-top: 2px; line-height: 1.4; }
.co-empfohlen { color: var(--color-green-mid); font-size: 12px; font-weight: 700; }

/* Honest reassurance / social-proof slot (TODO: echte Kundenstimmen) */
.co-reassure { background-color: #eef5f1; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; color: var(--color-green-deepest); margin-top: 18px; }
.co-reassure strong { font-weight: 700; }

/* Einverständnis-/Opt-in-Checkbox */
.co-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; cursor: pointer; border: 1.5px solid var(--color-border); border-radius: 10px; padding: 13px 14px; }
.co-check input { margin-top: 2px; flex: 0 0 auto; }
.co-legal { font-size: 12px; color: var(--color-text-muted); margin-top: 14px; line-height: 1.5; }
.co-legal a { color: var(--color-teal-link); }

/* ---------- Sticky Bottom-Nav ---------- */
.co-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background-color: var(--color-white); border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.co-back { flex: 0 0 auto; width: 46px; height: 46px; border: 1.5px solid var(--color-teal-link); border-radius: 50%; background: none; color: var(--color-teal-link); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.co-continue { flex: 1 1 auto; min-height: 48px; border: 0; border-radius: var(--radius-pill); background-color: var(--color-sienna); color: #fff; font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.co-continue:hover { background-color: var(--color-sienna-hover); }
.co-continue:disabled { background-color: var(--color-green-sage); cursor: not-allowed; }

/* ---------- Übersicht (Modal mobil / Sidebar desktop) ---------- */
.co-uebersicht h3 { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-green-mid); margin: 0 0 12px; }
.co-uebersicht .co-cover { width: 100%; border-radius: 12px; margin-top: 16px; }
.co-incl { list-style: none; margin: 0 0 14px; padding: 0; }
.co-incl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; margin-bottom: 9px; }
.co-incl li::before { content: '✓'; color: var(--color-green-mid); font-weight: 700; flex: 0 0 auto; }
.co-deliver { border-top: 1px solid var(--color-border); padding-top: 14px; margin-top: 4px; }
.co-deliver div { display: flex; gap: 8px; font-size: 13.5px; margin-bottom: 7px; color: var(--color-text); }
.co-deliver .co-d-ico { flex: 0 0 18px; }
.co-summe { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--color-border); padding-top: 12px; margin-top: 12px; font-family: var(--font-sans); }
.co-summe .co-summe-total { font-size: 19px; font-weight: 700; }

/* Modal (mobil) */
.co-modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(4,42,33,.45); display: flex; align-items: flex-end; }
.co-modal-backdrop[hidden] { display: none; }
.co-modal { background-color: var(--color-white); width: 100%; max-height: 90vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
.co-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.co-modal-head .co-price { font-size: 18px; }
.co-modal-close { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--color-text-muted); cursor: pointer; }

/* Sidebar (desktop) standardmäßig versteckt */
.co-sidebar { display: none; }

[hidden] { display: none !important; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .co-review-btn { display: none; }
  .co-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
  .co-steps { padding-bottom: 40px; }
  .co-step { max-width: none; }
  .co-nav { position: static; border: 0; padding: 24px 0 0; background: none; max-width: 560px; }
  .co-sidebar { display: block; position: sticky; top: 130px; background-color: #fbfaf8; border: 1px solid var(--color-border); border-radius: 16px; padding: 22px; margin-top: 26px; }
  .co-trust-banner { font-size: 13px; }
}
