/* ============================================================
   SERAYA COFFEE · Kasse & Danke
   ============================================================ */
.co { padding: 140px var(--gutter) 96px; max-width: 1240px; margin: 0 auto; }
.co-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 64px); margin-top: 14px; }
.co-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 44px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.co-steps li { display: flex; align-items: center; gap: 8px; }
.co-steps li + li::before { content: ""; width: 26px; height: 1px; background: var(--line); }
.co-steps .is-done { color: var(--gold-soft); }
.co-steps .is-current { color: var(--text); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

.co-form fieldset { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-bottom: 36px; }
.co-form legend { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); }
.field .opt { color: #7e7466; }
.field input, .coupon input {
  width: 100%; padding: 15px 16px; border-radius: 10px; border: 1px solid rgba(227,189,110,.22); background: #0d0a07; color: var(--text);
  font: inherit; font-size: 16px; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .coupon input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,189,110,.15); }
.field input[disabled] { opacity: .6; }
.field input[aria-invalid="true"] { border-color: #ff7a5c; }
.err { color: #ff9a80; font-size: 12px; min-height: 0; }
.hint { font-size: 12px; color: #857a6b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.co-sum { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: linear-gradient(160deg, rgba(227,189,110,.06), transparent 55%), #0a0806; }
.co-sum h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 16px; }
.co-lines { display: grid; gap: 4px; margin-bottom: 18px; }
.co-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-line__img { width: 56px; height: 68px; border-radius: 6px; background: #1a120c center / cover; }
.co-line b { font-family: var(--serif); font-weight: 500; font-size: 17px; display: block; }
.co-line small { color: var(--muted); font-size: 12px; }
.co-empty { color: var(--muted); }
.coupon { margin-bottom: 18px; }
.coupon label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; }
.coupon__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.coupon__row .btn { padding: 12px 18px; font-size: 11px; }
#couponMsg { font-size: 12px; display: block; margin-top: 6px; }
#couponMsg.ok { color: #7ddc9b; } #couponMsg.bad { color: #ff9a80; }
.co-totals { display: grid; gap: 8px; margin: 8px 0 16px; }
.co-totals div { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.co-totals dd { color: var(--text); }
.co-total { padding-top: 12px; border-top: 1px solid var(--line); }
.co-total dt { color: var(--text); font-size: 16px; }
.co-total dt small { color: var(--muted); font-size: 11px; margin-left: 6px; }
.co-total dd { font-family: var(--serif); font-size: 28px; color: var(--gold); }
.co-eta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gold-soft); margin-bottom: 12px; }
.co-legal, .co-next { font-size: 12px; color: #9a8f80; line-height: 1.55; margin-bottom: 14px; }
.co-legal a { text-decoration: underline; color: var(--gold-soft); }
.co-next { margin: 12px 0 0; }
.co-error { color: #ff9a80; font-size: 14px; margin-top: 10px; min-height: 1em; }
.co-secure { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.co-secure svg { width: 18px; color: var(--gold); }
#orderBtn[aria-busy="true"] { opacity: .7; }

/* Danke */
.thx { min-height: 100svh; display: grid; place-items: center; padding: 140px var(--gutter) 80px; }
.thx__card { width: min(620px, 100%); text-align: center; border: 1px solid var(--line); border-radius: 18px; padding: clamp(32px, 5vw, 64px); background: radial-gradient(ellipse at 50% 0%, rgba(227,189,110,.14), transparent 60%), #0a0806; }
.thx__card .eyebrow { justify-content: center; }
.thx h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 54px); margin: 14px 0 12px; line-height: 1.05; }
.thx p { color: var(--muted); font-weight: 300; }
.thx__icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(227,189,110,.4); }
.thx__icon svg { width: 40px; color: var(--gold); }
.thx__icon svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 1s var(--ease-out) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(227,189,110,.2); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.thx__items { list-style: none; margin: 22px 0 0; display: grid; gap: 6px; color: var(--gold-soft); }
.thx__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-sum { position: static; }
  .co-form fieldset { grid-template-columns: 1fr; }
}
.co-totals [hidden] { display: none; }

/* Widerrufsfunktion */
.wr-lead { color: var(--muted); max-width: 640px; margin: 18px 0 40px; font-weight: 300; }
.wr-grid { max-width: 640px; }
.wr .co-form fieldset { grid-template-columns: 1fr; }
.wr-done { text-align: left; }
.wr-done .thx__icon { margin: 0 0 18px; }
.wr-done h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 12px 0; }
.wr-done p { color: var(--muted); }

/* ---------- Bewertung schreiben ---------- */
.rv .wr-grid { align-items: start; }
.rv-hello { color: var(--muted); margin: 0 0 14px; }
.rv select, .rv textarea { width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 14px 16px; font: inherit; }
.rv select:focus, .rv textarea:focus { outline: none; border-color: var(--gold); }
.rv .lbl { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rv-stars { display: flex; align-items: center; gap: 6px; }
.rv-stars button { width: 44px; height: 44px; padding: 6px; border: 0; background: none; cursor: pointer; color: rgba(227,189,110,.25); transition: transform .3s var(--ease-out), color .2s; }
.rv-stars button svg { width: 100%; height: 100%; fill: currentColor; }
.rv-stars button.on { color: var(--gold); filter: drop-shadow(0 0 8px rgba(227,189,110,.45)); }
.rv-stars button:hover { transform: scale(1.12) rotate(-6deg); }
.rv-stars__txt { margin-left: 10px; color: var(--gold); font-size: 14px; }
.rv-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 6px; }
.rv-consent input { accent-color: var(--gold); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.rv-info { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: linear-gradient(160deg, rgba(227,189,110,.06), transparent 70%); }
.rv-info h2 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0 0 12px; }
.rv-info ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
.rv-info { margin-top: 24px; }
