/* Retourenportal – Endkunden-Oberfläche
   Systemschriften (kein Nachladen externer Fonts → DSGVO-freundlich, schnell). */

:root {
  --brand: #ff5656;           /* Akzent (Fortschritt, Auswahl, Icons) – Mandantenfarbe oder logiful-Koralle */
  --brand-ink: #ffffff;       /* Schrift auf Akzentfläche (automatisch per Kontrast) */
  --btn: #131316;             /* Primärbutton */
  --btn-ink: #ffffff;
  --bg: #f6f6f8;
  --surface: #ffffff;
  --surface-2: #f3f3f6;
  --ink: #111114;
  --ink-2: #3b3b44;
  --muted: #6d6d79;
  --line: #e6e6ec;
  --line-strong: #d4d4dc;
  --ok: #16a34a;
  --ok-soft: #e9f8ef;
  --warn-soft: #fff6e5;
  --warn-ink: #8a5300;
  --err: #d92d20;
  --err-soft: #fdeceb;
  --brand-soft: color-mix(in oklab, var(--brand) 11%, var(--surface));
  --shadow-sm: 0 1px 2px rgb(16 16 24 / 0.05);
  --shadow: 0 1px 2px rgb(16 16 24 / 0.04), 0 8px 24px -6px rgb(16 16 24 / 0.08);
  --shadow-lg: 0 2px 4px rgb(16 16 24 / 0.04), 0 24px 48px -12px rgb(16 16 24 / 0.14);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --btn: #f4f4f6;
    --btn-ink: #0c0c0f;
    --bg: #0c0c0f;
    --surface: #16161b;
    --surface-2: #1d1d23;
    --ink: #f4f4f6;
    --ink-2: #d2d2d9;
    --muted: #9a9aa7;
    --line: #2a2a32;
    --line-strong: #393943;
    --ok-soft: #10281a;
    --warn-soft: #2b2110;
    --warn-ink: #f3c06b;
    --err-soft: #2e1513;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -6px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 24px 48px -12px rgb(0 0 0 / 0.55);
    color-scheme: dark;
  }
  /* Standardlogo (schwarze Wortmarke) im Dunkelmodus hell darstellen, Koralle bleibt erhalten */
  .brand img.is-default { filter: invert(1) hue-rotate(180deg) saturate(1.3); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -8%, color-mix(in oklab, var(--brand) 14%, transparent), transparent 70%),
    radial-gradient(700px 420px at 100% 0%, color-mix(in oklab, var(--brand) 7%, transparent), transparent 70%);
}

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ------------------------------------------------------------------ Kopf */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 720px; width: 100%; margin: 0 auto; padding: 22px 20px 6px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; min-height: 36px; }
.brand img { height: 46px; width: auto; max-width: 200px; margin: -6px 0 -6px -4px; object-fit: contain; display: block; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.help-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 550; padding: 8px 12px; border-radius: 99px; transition: background 0.2s, color 0.2s;
}
.help-link:hover { background: var(--surface); color: var(--ink); }
.help-link svg { width: 18px; height: 18px; }
.topbar-end { display: flex; align-items: center; gap: 6px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.lang-switch[hidden] { display: none; }
.lang-switch button {
  border: 0; background: none; font: inherit; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em;
  color: var(--muted); padding: 5px 10px; border-radius: 99px; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg, #fff); }

/* ------------------------------------------------------------------ Gerüst */

.shell { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 14px 20px 40px; }

.progress { margin: 6px 0 18px; }
.progress-meta { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 10px; color: var(--muted); font-size: 0.88rem; font-weight: 550; }
.back {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink); cursor: pointer; transition: transform 0.2s var(--ease), border-color 0.2s;
}
.back:hover { border-color: var(--line-strong); transform: translateX(-2px); }
.back[disabled] { visibility: hidden; }
.progress-track { display: flex; gap: 6px; }
.progress-track span { flex: 1; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.progress-track span::after {
  content: ''; position: absolute; inset: 0; background: var(--brand); border-radius: inherit;
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.progress-track span.done::after, .progress-track span.current::after { transform: scaleX(1); }
.progress-track span.current::after { opacity: 0.5; }

.view { animation: enter 0.45s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

h1 { font-size: clamp(1.65rem, 4.5vw, 2.15rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 720; margin: 0 0 8px; }
h2 { font-size: 1.05rem; letter-spacing: -0.01em; font-weight: 650; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 1.04rem; margin: 0 0 24px; max-width: 56ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; }
.card + .card, .card + .items, .items + .card, .notice + .card, .card + .notice { margin-top: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ------------------------------------------------------------------ Formulare */

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.field .opt { font-weight: 450; color: var(--muted); }
.input {
  font: inherit; color: var(--ink); background: var(--surface); width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 14px 15px; min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s; appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px;
}
textarea.input { min-height: 92px; resize: vertical; }
.input:hover { border-color: color-mix(in oklab, var(--ink) 30%, var(--line-strong)); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }
.input.invalid { border-color: var(--err); box-shadow: 0 0 0 4px color-mix(in oklab, var(--err) 14%, transparent); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; }

.btn {
  font: inherit; font-weight: 650; font-size: 1rem; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 99px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-primary[disabled] { opacity: 0.38; cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-block { width: 100%; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); cursor: pointer; }
.link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ------------------------------------------------------------------ Startseite */

.hero { padding: 18px 0 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.badges li {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 550; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px 7px 9px;
}
.badges svg { width: 17px; height: 17px; color: var(--brand); }

/* ------------------------------------------------------------------ Artikel */

.items { display: flex; flex-direction: column; gap: 12px; }
.item {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); transition: border-color 0.2s, box-shadow 0.25s;
}
.item:not(.blocked):hover { border-color: var(--line-strong); }
.item.selected { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.item.blocked { opacity: 0.62; }
.item-head {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: left;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer; border-radius: var(--r-md);
}
.item.blocked .item-head { cursor: default; }
.thumb {
  width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; object-fit: cover; background: var(--surface-2);
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; color: var(--muted); border: 1px solid var(--line);
}
.item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-title { font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.item-sub { color: var(--muted); font-size: 0.88rem; }
.item-note { color: var(--warn-ink); background: var(--warn-soft); font-size: 0.82rem; border-radius: 8px; padding: 4px 8px; margin-top: 6px; align-self: flex-start; }
.check {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex-shrink: 0;
  display: grid; place-items: center; transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.check svg { width: 15px; height: 15px; stroke-width: 3; color: var(--brand-ink); opacity: 0; transform: scale(0.6); transition: 0.2s var(--ease); }
.item.selected .check { background: var(--brand); border-color: var(--brand); transform: scale(1.05); }
.item.selected .check svg { opacity: 1; transform: none; }

.item-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 16px; border-top: 1px dashed var(--line); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.label-sm { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.req { color: var(--brand); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 99px; overflow: hidden; background: var(--surface); }
.stepper button { width: 42px; height: 40px; border: 0; background: none; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.stepper button:disabled { color: var(--line-strong); cursor: default; }
.stepper button:not(:disabled):hover { background: var(--surface-2); }
.stepper output { min-width: 28px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.9rem; font-weight: 550; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 99px; padding: 9px 14px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.chip:hover { border-color: var(--ink-2); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip.chip-accent[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ------------------------------------------------------------------ Optionskarten */

.options { display: grid; gap: 12px; }
.option {
  position: relative; display: flex; gap: 16px; align-items: flex-start; text-align: left; width: 100%;
  font: inherit; color: inherit; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); padding: 18px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease);
}
.option:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.option[aria-checked='true'] { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.option-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.option-icon svg { width: 22px; height: 22px; }
.option-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.option-title { font-weight: 680; font-size: 1.04rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.option-desc { color: var(--muted); font-size: 0.92rem; }
.option-amount { font-weight: 720; font-variant-numeric: tabular-nums; margin-top: 8px; font-size: 1.1rem; letter-spacing: -0.01em; }
.option-amount s { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 0.92rem; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex-shrink: 0; margin-top: 2px; transition: border 0.2s var(--ease); }
.option[aria-checked='true'] .radio { border-color: var(--brand); border-width: 7px; }
.pill { display: inline-flex; align-items: center; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); }
.pill.soft { background: var(--ok-soft); color: var(--ok); }

.exchange-item { display: flex; flex-direction: column; gap: 14px; }
.exchange-item + .exchange-item { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 6px; }
.exchange-head { display: flex; gap: 12px; align-items: center; }
.exchange-head .thumb { width: 48px; height: 48px; font-size: 1rem; border-radius: 10px; }

/* ------------------------------------------------------------------ Hinweise */

.alert {
  display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-sm); padding: 13px 15px;
  margin-bottom: 14px; font-size: 0.94rem; background: var(--err-soft); color: var(--err); animation: enter 0.3s var(--ease);
}
.alert svg { margin-top: 1px; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: var(--r-sm); padding: 14px 16px; font-size: 0.92rem; color: var(--ink-2); }
.notice svg { color: var(--brand); margin-top: 1px; }
.notice.warn { background: var(--warn-soft); color: var(--warn-ink); }
.notice.warn svg { color: currentColor; }

.open-return { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ Zusammenfassung */

.summary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.summary-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-list li:last-child { border-bottom: 0; }
.summary-list .thumb { width: 44px; height: 44px; font-size: 0.95rem; border-radius: 10px; }
.tag { font-size: 0.78rem; font-weight: 650; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.exchange { background: color-mix(in oklab, #6366f1 14%, var(--surface)); color: color-mix(in oklab, #6366f1 75%, var(--ink)); }
.tag.store_credit { background: var(--brand-soft); color: color-mix(in oklab, var(--brand) 75%, var(--ink)); }
.tag.refund { background: var(--ok-soft); color: var(--ok); }
.totals { margin: 14px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 0.95rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 1.06rem; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 0.95rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
.edit-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* ------------------------------------------------------------------ Fertig */

.done-hero { text-align: center; padding: 10px 0 8px; }
.done-hero .lead { margin: 0 auto 22px; }
.success { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; animation: pop 0.6s var(--ease); }
.success svg { width: 44px; height: 44px; color: var(--ok); stroke-width: 2.6; }
.check-draw { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.55s 0.25s var(--ease) forwards; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.label-card { text-align: center; }
.label-card .btn { margin-top: 14px; }
.tracking { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); text-decoration: none; padding: 7px 13px; background: var(--surface-2); border-radius: 99px; font-size: 0.92rem; }
.tracking:hover { background: var(--line); }
.tracking svg { width: 16px; height: 16px; }
.qr { display: grid; grid-template-columns: 124px 1fr; gap: 18px; align-items: center; text-align: left; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.qr img { width: 124px; height: 124px; border-radius: 12px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.howto { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.howto li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; font-size: 0.9rem; color: var(--muted); }
.howto li::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 750; font-size: 0.85rem; margin-bottom: 10px;
}
.howto strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: 0.95rem; }

/* ------------------------------------------------------------------ Aktionsleiste */

.actionbar {
  position: sticky; bottom: 0; z-index: 10; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--bg) 80%, transparent); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line);
}
.actionbar-inner { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.actionbar-info { font-size: 0.92rem; color: var(--muted); min-width: 0; }
.actionbar-info strong { color: var(--ink); font-weight: 650; }
.actionbar .btn { min-width: 210px; }

/* ------------------------------------------------------------------ Footer */

.footer { max-width: 720px; width: 100%; margin: 0 auto; padding: 10px 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 0.82rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer-quick, .footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer-quick a { font-weight: 600; font-size: 0.88rem; color: var(--ink-2, var(--ink)); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.footer-social a:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.footer-social svg { width: 18px; height: 18px; }
/* Original-Logos sind gefüllt; dezent in Textfarbe, beim Überfahren in Markenfarbe */
.footer-social svg.brand { fill: currentColor; stroke: none; }
.footer-social a { color: var(--ink-2); }
.footer-social a:hover { color: var(--brand-c, var(--ink)); }

/* Quicklinks in der Kopfzeile – auf schmalen Bildschirmen nur im Footer */
.quick-links { display: flex; gap: 2px; }
.quick-links[hidden] { display: none; }
.quick-links a {
  color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 550; padding: 8px 10px; border-radius: 99px;
  white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.quick-links a:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 720px) { .quick-links { display: none; } }

/* ------------------------------------------------------------------ Mobil */

@media (max-width: 600px) {
  .topbar { padding: 16px 16px 4px; }
  .shell { padding: 8px 16px 28px; }
  .card { padding: 18px; border-radius: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .col-6, .col-4 { grid-column: span 2; } .col-3, .col-2 { grid-column: span 1; }
  .howto { grid-template-columns: 1fr; gap: 8px; }
  .howto li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 14px; }
  .howto li::before { grid-row: span 2; margin: 0; }
  .actionbar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .actionbar-info { display: none; }
  .actionbar .btn { width: 100%; min-width: 0; }
  .qr { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .option { padding: 16px; gap: 14px; }
  .option-icon { width: 40px; height: 40px; border-radius: 12px; }
  /* Gründe als ruhiges 2-Spalten-Raster statt Fließtext-Kette */
  .chips.reasons { display: grid; grid-template-columns: 1fr 1fr; }
  .chips.reasons .chip { text-align: left; padding: 11px 13px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .check-draw { stroke-dashoffset: 0; }
}

/* Mengenanzeige: gelieferte Stückzahl am Bild, „1 von 3“ im Wähler, „Alle“-Abkürzung */
.thumb-wrap { position: relative; flex-shrink: 0; display: inline-flex; }
.qty-badge {
  position: absolute; right: -6px; bottom: -6px; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 99px;
  background: var(--ink); color: var(--surface); font-size: 0.74rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--surface); font-variant-numeric: tabular-nums;
}
.qty-controls { display: flex; align-items: center; gap: 12px; }
.stepper output { min-width: 64px; white-space: nowrap; }
.stepper output .of { color: var(--muted); font-weight: 500; font-size: 0.85rem; }

/* ------------------------------------------------------------------ Eigener Schritt */
.custom-text { white-space: normal; }
.custom-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; text-decoration: none; }
.custom-action svg { width: 18px; height: 18px; }
