/* Partner-Portal Dein Glücksort – Design-System „Modernist“ wie Webseite und App */
[hidden] { display: none !important; }
:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --card: #ffffff;
  --text: #201e1d;
  --muted: #605d5d;
  --divider: rgba(32, 30, 29, .4);
  --line: rgba(32, 30, 29, .14);
  --accent: #ec3013;
  --poster: #dd2b0f;            /* Weiß darauf 4,75:1 */
  --accent-hover: #c4260d;
  --accent-text: #ae1800;
  --accent-soft: #fff2ef;
  --ok: #1d6b3a;
  --ok-soft: #e6f2ea;
  --warn: #7a5200;
  --warn-soft: #fdf3dc;
  --ink: #201e1d;
  --on-ink: #f3f2f2;
  --ease: cubic-bezier(.3, 0, .1, 1);
  --side: 240px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1918; --surface: #2d2b2b; --card: #242221; --text: #f3f2f2; --muted: #bab6b6;
    --divider: rgba(243, 242, 242, .35); --line: rgba(243, 242, 242, .14);
    --accent-text: #ff9783; --accent-soft: #4d170e;
    --ok: #8fd3a6; --ok-soft: #173524; --warn: #f2c66d; --warn-soft: #3a2c0c;
    --ink: #2d2b2b;
  }
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--bg); padding: 8px 12px; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .02em; }
.stack > * + * { margin-top: 16px; }

/* Knöpfe: linksbündig, Pfeil rechts */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 48px; padding: 0 18px; border: 2px solid var(--text); background: transparent;
  font-weight: 800; text-decoration: none; text-align: left; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn.primary { background: var(--poster); border-color: var(--poster); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.primary::after, .btn.go::after { content: "→"; font-weight: 400; }
.btn.small { min-height: 44px; padding: 0 12px; font-size: .875rem; }   /* 44 pt: Apple-Mindestgröße für Tippflächen */
.btn.quiet { border-color: transparent; padding-left: 0; text-decoration: underline; font-weight: 600; }
.btn.quiet:hover { background: transparent; color: var(--accent-text); }
.btn.danger { border-color: var(--accent-text); color: var(--accent-text); }
.btn.danger:hover { background: var(--accent-text); color: var(--bg); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Formulare */
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .9375rem; }
.field .hint { font-size: .8125rem; color: var(--muted); }
.field .error { font-size: .875rem; color: var(--accent-text); font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 12px; background: var(--card);
  border: 2px solid var(--divider); outline: none;
}
.input:focus { border-color: var(--text); }
.input[aria-invalid="true"] { border-color: var(--accent-text); }
textarea.input { min-height: 96px; resize: vertical; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .wide { grid-column: 1 / -1; } }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--poster); }
.seg { display: inline-flex; border: 2px solid var(--text); }
.seg button { min-height: 44px; padding: 0 16px; border: 0; background: transparent; font-weight: 700; cursor: pointer; }
.seg button + button { border-left: 2px solid var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 800; font-size: 1.125rem; margin-bottom: 12px; padding: 0; }

/* Hinweise */
.note { padding: 14px 16px; border-left: 4px solid var(--text); background: var(--surface); }
.note.ok { border-color: var(--ok); background: var(--ok-soft); }
.note.warn { border-color: var(--warn); background: var(--warn-soft); }
.note.err { border-color: var(--accent-text); background: var(--accent-soft); }
.tag { display: inline-block; padding: 2px 8px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 2px solid currentColor; }
.tag.ok { color: var(--ok); } .tag.warn { color: var(--warn); } .tag.err { color: var(--accent-text); } .tag.off { color: var(--muted); }

/* Anmelde- und Registrierungsseiten: rotes Poster links */
.auth { min-height: 100vh; display: grid; }
.auth .poster { background: var(--poster); color: #fff; padding: 32px 24px; display: grid; align-content: space-between; gap: 32px; }
.auth .poster .brand { font-weight: 800; font-size: 1.125rem; }
.auth .poster h1 { font-size: clamp(2.25rem, 7vw, 4rem); letter-spacing: -.045em; line-height: .95; max-width: 11ch; }
.auth .poster p { font-size: 1.0625rem; max-width: 34ch; border-top: 2px solid #fff; padding-top: 14px; margin-top: 18px; }
.auth .poster .eyebrow { color: #fff; border: 0; padding: 0; margin: 0; }
.auth .panel { padding: 32px 24px 48px; max-width: 640px; width: 100%; }
.auth .panel h2 { font-size: 1.75rem; margin-bottom: 8px; }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(360px, 1fr) 1.2fr; } .auth .poster { padding: 48px; min-height: 100vh; position: sticky; top: 0; } .auth .panel { padding: 64px 56px; } }

.steps { margin-bottom: 28px; }
.steps-bar { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.steps-bar li { flex: 1; height: 4px; background: var(--line); }
.steps-bar li.done, .steps-bar li.on { background: var(--poster); }
.steps-now { font-size: .875rem; font-weight: 700; margin-top: 10px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--text); }
.timeline li { padding: 0 0 18px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--text); }
.timeline li.done::before { background: var(--text); }
.timeline li.now::before { background: var(--poster); border-color: var(--poster); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 16px; background: var(--card); border: 2px solid var(--text); }

/* App-Rahmen: Seitenleiste (Desktop) / Kopf + Tabs (Handy) */
.shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); }
.shell > * { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--text); }
.topbar .row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 16px; }
.topbar .brand { font-weight: 800; text-decoration: none; margin-right: auto; display: inline-flex; flex-direction: column; line-height: 1.15; min-height: 44px; justify-content: center; }
.topbar .brand small { font-weight: 600; font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.topbar .who { font-size: .8125rem; color: var(--muted); text-align: right; display: none; }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); padding: 0 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 0 12px; text-decoration: none; font-weight: 600; font-size: .9375rem; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { border-color: var(--poster); font-weight: 800; }
.content { padding: 24px 16px 64px; max-width: 1080px; width: 100%; }
@media (min-width: 960px) {
  .shell { grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: 1fr; }
  .topbar { position: sticky; top: 0; height: 100vh; border-bottom: 0; border-right: 2px solid var(--text); display: flex; flex-direction: column; }
  .topbar .row { padding: 20px; min-height: 0; flex-direction: column; align-items: flex-start; }
  .topbar .row .btn { display: none; }
  .topbar .who { display: block; text-align: left; margin-top: 4px; }
  .tabs { flex-direction: column; border-top: 2px solid var(--text); padding: 8px 0; overflow: visible; }
  .tabs a { min-height: 48px; padding: 0 20px; border-bottom: 0; border-left: 4px solid transparent; }
  .tabs a[aria-current="page"] { border-color: var(--poster); background: var(--surface); }
  .side-foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
  .content { padding: 40px 48px 80px; }
}
@media (max-width: 959px) { .side-foot { display: none; } }

.page-head { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; justify-content: space-between; border-bottom: 2px solid var(--text); padding-bottom: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -.035em; }
.section { margin-top: 36px; }
.section > h2 { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 1px solid var(--divider); margin-bottom: 16px; }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--text); }
.kpi { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.kpi:nth-child(2n) { padding-left: 12px; border-left: 1px solid var(--line); }
.kpi .v { font-size: 2.25rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.kpi .l { font-size: .8125rem; color: var(--muted); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpi, .kpi:nth-child(2n) { padding: 20px; border-left: 1px solid var(--line); } .kpi:first-child { padding-left: 0; border-left: 0; } .kpi .v { font-size: 2.75rem; } }

/* Balkendiagramm (CSS, nur echte Werte) */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 160px; border-bottom: 2px solid var(--text); }
.bars .b { background: var(--text); min-height: 2px; position: relative; }
.bars .b.today { background: var(--poster); }
.bars-x { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; font-size: .6875rem; color: var(--muted); margin-top: 6px; }
.bars-x span { text-align: center; }

/* Listen und Karten */
.list { border-top: 2px solid var(--text); }
.row-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.row-item .t { font-weight: 800; }
.row-item .s { font-size: .875rem; color: var(--muted); }
.row-item .val { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
.offer { display: grid; grid-template-columns: 92px 1fr; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.offer .val { grid-row: 1 / 4; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; word-break: break-word; }
.offer .t { font-weight: 800; font-size: 1.0625rem; }
.offer .meta { font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.offer .actions { margin-top: 6px; }
.progress { height: 6px; background: var(--line); margin-top: 6px; max-width: 280px; }
.progress span { display: block; height: 100%; background: var(--text); }
.card { background: var(--card); border: 2px solid var(--text); padding: 20px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.quick { display: grid; gap: 12px; }
@media (min-width: 640px) { .quick { grid-template-columns: 1fr 1fr; } }
.quick a { display: grid; gap: 4px; padding: 18px; border: 2px solid var(--text); text-decoration: none; }
.quick a strong { font-size: 1.125rem; }
.quick a:hover { background: var(--text); color: var(--bg); }
.quick a.main { background: var(--poster); border-color: var(--poster); color: #fff; }
.quick a.main:hover { background: var(--accent-hover); }

/* Stempelkarte Vorschau */
.stamps { display: grid; grid-template-columns: repeat(5, 36px); gap: 6px; }
.stamps span { width: 36px; height: 36px; border: 2px solid var(--divider); display: grid; place-items: center; font-size: .875rem; }
.stamps span.f { background: var(--poster); border-color: var(--poster); color: #fff; }
.stamps span.g { border-color: var(--poster); color: var(--accent-text); }

/* Einlösen */
.codebox { font-family: ui-monospace, Menlo, monospace; font-size: 1.75rem; letter-spacing: .08em; text-transform: uppercase; min-height: 64px; text-align: left; }
.result { border: 2px solid var(--text); padding: 20px; }
.result .val { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.success { background: var(--poster); color: #fff; padding: 28px 20px; }
.success h2 { font-size: 2rem; }
video.scan { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; background: #000; display: block; }

/* Dialog */
dialog { border: 2px solid var(--text); padding: 0; max-width: min(560px, calc(100vw - 24px)); width: 100%; background: var(--bg); color: var(--text); box-shadow: 0 12px 32px rgba(45, 43, 43, .22); }
dialog::backdrop { background: rgba(27, 25, 24, .55); }
dialog .dh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--text); }
dialog .dh h2 { font-size: 1.25rem; }
dialog .db { padding: 18px; max-height: 70vh; overflow: auto; }
dialog .df { padding: 14px 18px; border-top: 1px solid var(--line); }
.x { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; }

.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin: 0 auto; background: var(--ink); color: var(--on-ink); padding: 14px 18px; border-left: 4px solid var(--poster); box-shadow: 0 12px 32px rgba(45, 43, 43, .22); }
.demo-bar { background: var(--warn-soft); color: var(--warn); border-bottom: 2px solid var(--warn); padding: 8px 16px; font-size: .875rem; font-weight: 600; }
.loading { padding: 48px 0; color: var(--muted); }
.empty { padding: 28px 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Logo, Foto und Siegel „Zertifizierter Betrieb“ */
.media-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .media-grid { grid-template-columns: 1fr 1.4fr; } }
.media-grid h3 { font-size: 1.125rem; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.media-prev { border: 2px dashed var(--divider); display: grid; place-items: center; background: var(--surface); overflow: hidden; }
.media-prev.logo { aspect-ratio: 1; max-width: 200px; }
.media-prev.photo { aspect-ratio: 4 / 3; }
.media-prev img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.media-prev.photo img { object-fit: cover; }
.seal { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; border: 2px solid var(--text); padding: 18px; }
.seal.ok { border-color: var(--ok); background: var(--ok-soft); }
.seal-badge { width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.75rem; font-weight: 800; background: var(--ok); color: #fff; border-radius: 50%; }
.seal-badge.off { background: var(--surface); color: var(--muted); border: 2px dashed var(--divider); }

/* So finden Kunden Sie: Vorlagen, Öffnungszeiten, Ausstattung */
.h3 { font-size: 1rem; font-weight: 800; margin: 0; padding: 0; }
.tpl-list { display: grid; gap: 8px; }
.radio-card { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); cursor: pointer; font-weight: 600; }
.radio-card input { width: 22px; height: 22px; margin: 0; accent-color: var(--poster); }
.radio-card:has(input:checked) { border-color: var(--text); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.radio-card input:focus-visible { outline: none; }
.hours-detail[hidden] { display: none; }
.hours-edit { display: grid; border-top: 1px solid var(--divider); margin-top: 10px; }
.hrow { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.hday { align-items: center; font-weight: 700; min-height: 44px; }
.hslots { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.hslots[hidden], .hclosed[hidden], .hslot[hidden] { display: none; }
.hslot { display: inline-flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--muted); }
.hslot .input { width: 120px; min-height: 44px; padding: 0 8px; color: var(--text); }
.feat-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; }
.feat-edit .check { min-height: 44px; align-items: center; }
.input[aria-invalid="true"], .radio-card:has([aria-invalid="true"]) { border-color: var(--accent-text); }
@media (max-width: 560px) { .hrow { grid-template-columns: 1fr; } }
.grid2 > .field { align-content: start; }

/* Team-Einladungen (annehmen / ablehnen) */
.invites { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.invite { display: grid; gap: 10px; border-left: 6px solid var(--poster); }
.invite h3 { font-size: 1.25rem; line-height: 1.2; }
.invite .actions { margin-top: 6px; }

/* Webshops: Verkaufsart, Einlöseort, Codes, Online-Bestellungen */
.error { font-size: .875rem; color: var(--accent-text); font-weight: 600; }
.radio-card .sub { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); margin-top: 2px; }
.radio-card:has(input:disabled) { cursor: not-allowed; opacity: .75; }
fieldset.field > legend { margin-bottom: 6px; }
.online-box { border-left: 4px solid var(--poster); padding-left: 14px; }
.online-meta { font-size: .875rem; margin-top: 6px; overflow-wrap: anywhere; }
.url { overflow-wrap: anywhere; }
textarea.mono { font-size: .9375rem; }
.badge { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; margin-left: 8px; background: var(--poster); color: #fff; font-size: .75rem; font-weight: 800; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 14px; border: 2px solid var(--text); background: transparent; font-weight: 700; cursor: pointer; }
.chips button:hover { background: var(--surface); }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.orders { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 1100px) { .orders { grid-template-columns: 1fr 1fr; } }
.order { display: grid; gap: 12px; align-content: start; min-width: 0; }
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.product-row { border: 2px solid var(--line); padding: 12px 14px; background: var(--card); }
.product-row legend { margin-bottom: 4px; }
.order-head { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; }
.order-head h2 { font-size: 1.125rem; overflow-wrap: anywhere; }
.order dl { margin: 0; display: grid; gap: 8px; }
.order dl > div { display: grid; grid-template-columns: minmax(8em, 11em) 1fr; gap: 4px 12px; }
.order dt { color: var(--muted); font-size: .875rem; }
.order dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .order dl > div { grid-template-columns: 1fr; gap: 0; } }

/* Statistik: Kennzahlen, Verlauf, Tabellen */
.kpi .s { font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.kpis.three { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .kpis.three { grid-template-columns: repeat(3, 1fr); } .kpis.five { grid-template-columns: repeat(5, 1fr); } .kpis.five .kpi .v { font-size: 2.25rem; } }
.stats-range { font-size: .875rem; margin-top: 8px; max-width: 60ch; }
.section-hint { font-size: .875rem; color: var(--muted); margin: -6px 0 14px; max-width: 70ch; }
.bars.mid, .bars-x.mid { gap: 2px; }
.bars.dense, .bars-x.dense { gap: 1px; }
.bars-x.free { grid-auto-columns: minmax(0, 1fr); }
/* Beschriftung darf breiter als ihr Balken sein: mittig, am Rand nach innen (Flex lässt sie zur richtigen Seite überstehen). */
.bars-x.free span { display: flex; justify-content: center; white-space: nowrap; }
.bars-x.free span:first-child { justify-content: flex-start; }
.bars-x.free span:last-child { justify-content: flex-end; }
.bars .b.small { background: repeating-linear-gradient(135deg, var(--text) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--text); }
.bars .b.today.small { background: repeating-linear-gradient(135deg, var(--poster) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--poster); }
.chart-desc { font-size: .9375rem; margin-top: 12px; max-width: 70ch; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 14px; background: var(--text); }
.legend i.small { background: repeating-linear-gradient(135deg, var(--text) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--text); }
.legend i.today { background: var(--poster); }
details.more { margin-top: 16px; border-top: 1px solid var(--line); }
details.more > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸"; font-weight: 400; }
details.more[open] > summary::before { content: "▾"; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap:focus-visible { outline-offset: 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; font-weight: 700; padding: 0 0 10px; }
table.data th, table.data td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
table.data th:first-child, table.data td:first-child { padding-left: 0; text-align: left; }
table.data th:last-child, table.data td:last-child { padding-right: 0; }
table.data thead th { font-size: .8125rem; font-weight: 700; color: var(--muted); border-bottom: 2px solid var(--text); vertical-align: bottom; }
table.data tbody th { font-weight: 700; }
table.data tfoot th, table.data tfoot td { font-weight: 800; border-top: 2px solid var(--text); border-bottom: 0; }
table.data .t { display: block; font-weight: 800; }
table.data .sub { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
table.data .tag { margin-top: 4px; }
@media (max-width: 420px) { table.data { font-size: .875rem; } table.data th, table.data td { padding: 10px 5px; } }
/* Je Gutschein auf dem Handy: jede Zeile als Block mit Beschriftung (Rollen im HTML halten die Tabelle für Screenreader). */
@media (max-width: 640px) {
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack th, table.data.stack td { display: block; }
  table.data.stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.data.stack th, table.data.stack td { border: 0; padding: 3px 0; text-align: left; }
  table.data.stack td { display: flex; justify-content: space-between; gap: 16px; }
  table.data.stack td::before { content: attr(data-label); color: var(--muted); font-size: .875rem; }
  table.data.stack tbody th { padding-bottom: 6px; }
}

/* Shop-Anbindung: Schlüssel, Schritte, Codebeispiel */
.keys { list-style: none; margin: 0; padding: 0; }
.keys .row-item > div { min-width: 0; }
.keys .s { overflow-wrap: anywhere; }
.howto { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; max-width: 44rem; }
p + .howto { margin-top: 12px; }
.revoked { margin-top: 24px; }
.revoked summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; list-style: none; }
.revoked summary::-webkit-details-marker { display: none; }
.revoked summary::before { content: "▸"; font-weight: 400; }
.revoked[open] summary::before { content: "▾"; }
.revoked[open] summary { margin-bottom: 8px; }
.btn.dl { flex-wrap: wrap; gap: 2px 16px; padding-top: 8px; padding-bottom: 8px; }
.btn.dl .muted { font-weight: 600; }
.btn.dl:hover .muted { color: inherit; }
.code-ex { margin: 16px 0 0; display: grid; gap: 8px; min-width: 0; }
.code { margin: 0; padding: 14px 16px; background: var(--card); border: 2px solid var(--line); overflow-x: auto; max-width: 100%;
  font: .8125rem/1.6 ui-monospace, Menlo, monospace; white-space: pre; }
