/* Schenkibox – ein Stil für alle Seiten.
   Große Schrift, hoher Kontrast, Zettel aus Papier, die dunkelgrüne Bühne für den Aufdeck-Moment. */
:root {
  --bg: #EDF1EC; --paper: #FFFFFF; --ink: #0E2A20; --muted: #3D564C; --line: #C9D3CC;
  --pine: #165A41; --on-pine: #FFFFFF; --berry: #B4232F; --send: #25D366; --on-send: #06281C;
  --stage: #134A37; --on-stage: #FFFFFF; --on-stage-muted: #D5E8DD;
  --slip: #FFFFFF; --slip-ink: #0E2A20; --shadow: rgba(14,42,32,.14); --error: #B4232F;
  --gold: #C98A1B;
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', Verdana, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1F19; --paper: #1B3028; --ink: #EDF4EF; --muted: #A9BDB2; --line: #34503F;
    --pine: #7FD1A8; --on-pine: #06281C; --stage: #0A2A1F; --on-stage-muted: #BFD8CB;
    --slip: #F6FAF7; --slip-ink: #0E2A20; --shadow: rgba(0,0,0,.45); --error: #FFA8A8; --gold: #E8B04B;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.1875rem; line-height: 1.35; }
body.stage { background: var(--stage); color: var(--on-stage); }

.app { max-width: 28rem; min-height: 100%; margin-inline: auto; padding: 1.5rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; color: inherit; text-decoration: none; }
.brand svg { color: var(--pine); flex: none; }
body.stage .brand svg { color: var(--on-stage); }
.brand small { font-family: var(--font-body); font-weight: 400; font-size: .9375rem; color: var(--muted); margin-left: auto; }

.screen { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }
.bottom { margin-top: auto; display: flex; flex-direction: column; gap: .75rem; padding-top: .5rem; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: 2.2rem; line-height: 1.08; } h1:focus { outline: none; }
h2 { font-size: 1.5rem; line-height: 1.15; } h3 { font-size: 1.25rem; }
p { margin: 0; } .muted { color: var(--muted); } .center { text-align: center; } .small { font-size: 1.0625rem; }
a { color: var(--pine); } body.stage a { color: var(--on-stage); }
body.stage .muted { color: var(--on-stage-muted); }

button, input, select { font: inherit; color: inherit; }
.btn { min-height: 4.25rem; padding: .5rem 1.25rem; border: 0; border-radius: 1rem; display: flex; align-items: center; justify-content: center; gap: .7rem; font-size: 1.4rem; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; width: 100%; }
.btn-primary { background: var(--pine); color: var(--on-pine); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); min-height: 3.75rem; font-size: 1.25rem; }
.btn-light { background: var(--slip); color: var(--slip-ink); }
.btn-quiet { background: transparent; color: var(--muted); min-height: 3rem; font-size: 1.125rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.btn-send { background: var(--send); color: var(--on-send); min-height: 3.25rem; padding: .25rem 1rem; border-radius: .75rem; font-size: 1.1875rem; width: auto; flex: none; }
.btn-done { background: transparent; color: var(--pine); min-height: 3.25rem; padding: .25rem .5rem; font-size: 1.1875rem; width: auto; flex: none; }
.btn[disabled] { opacity: .55; cursor: wait; }
body.stage .btn-quiet { color: var(--on-stage-muted); }
body.stage .btn-outline { color: var(--on-stage); border-color: var(--on-stage); }
.iconbtn { width: 3rem; height: 3rem; flex: none; border: 0; border-radius: .875rem; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 0 var(--line); text-decoration: none; }
.iconbtn.plain { background: transparent; box-shadow: none; color: var(--muted); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
body.stage :focus-visible { outline-color: var(--on-stage); }
.toprow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Startseite: drei Kacheln */
.tiles-home { display: flex; flex-direction: column; gap: .9rem; }
.home-tile { display: flex; align-items: center; gap: 1rem; min-height: 6.5rem; padding: 1rem 1.25rem; background: var(--paper); color: var(--ink); border-radius: 1.25rem; box-shadow: 0 1px 0 var(--line), 0 .4rem 1rem var(--shadow); text-decoration: none; position: relative; }
.home-tile.primary { background: var(--pine); color: var(--on-pine); }
.home-tile .ico { flex: none; width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center; border-radius: 1rem; background: rgba(255,255,255,.18); }
.home-tile:not(.primary) .ico { background: var(--bg); color: var(--pine); }
.home-tile b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.home-tile span.sub { display: block; font-size: 1.0625rem; opacity: .85; margin-top: .2rem; }
.home-tile .soon { position: absolute; top: -.6rem; right: 1rem; background: var(--gold); color: #1a1200; font-size: .9375rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; }
.hero { position: relative; height: 9rem; }
.hero .slip { position: absolute; width: 10rem; height: 4.2rem; padding-inline: 1.2rem; display: flex; align-items: center; font-size: 1.9rem; }
.hero .a { left: .3rem; top: 2.6rem; transform: rotate(-9deg); }
.hero .b { right: .8rem; top: .2rem; transform: rotate(6deg); }
.hero .c { left: 5.2rem; top: 5rem; width: 11rem; transform: rotate(-2deg); color: var(--berry); }
.slip { background: var(--slip); color: var(--slip-ink); border-radius: .25rem; box-shadow: 0 1px 0 var(--line), 0 .6rem 1.4rem var(--shadow); font-family: var(--font-display); font-weight: 800; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .75rem; font-size: 1.25rem; line-height: 1.25; }
.steps li { display: flex; align-items: center; gap: .9rem; }
.steps .n { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--pine); background: var(--paper); color: var(--pine); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: 1.125rem; font-weight: 700; }
.addrow { display: flex; gap: .6rem; }
.textin { width: 100%; height: 4rem; padding-inline: 1.1rem; border: 2px solid var(--ink); border-radius: .875rem; background: var(--paper); font-size: 1.3rem; }
.textin::placeholder { color: var(--muted); opacity: 1; }
.addrow .textin { flex: 1; min-width: 0; width: auto; }
.addrow .btn { min-height: 4rem; padding-inline: 1.1rem; font-size: 1.25rem; background: var(--ink); color: var(--bg); border-radius: .875rem; width: auto; flex: none; }
.error { color: var(--error); font-weight: 700; font-size: 1.125rem; }
.note { padding: .75rem 1rem; border: 2px dashed var(--line); border-radius: .75rem; font-size: 1.0625rem; color: var(--muted); }
.rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.row { min-height: 3.5rem; padding: .25rem .25rem .25rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: var(--paper); border-radius: .25rem; box-shadow: 0 1px 0 var(--line); }
.row .name { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.row.send { min-height: 4.25rem; padding-right: .5rem; }
.row .state { font-size: 1rem; color: var(--muted); display: block; font-family: var(--font-body); font-weight: 400; }
.budget { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.budget .lbl { font-size: 1.1875rem; font-weight: 700; line-height: 1.2; }
.stepper { display: flex; align-items: center; gap: .4rem; }
.stepper button { width: 3.25rem; height: 3.25rem; border: 2px solid var(--ink); border-radius: .875rem; background: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.stepper output { width: 5rem; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.progress { display: flex; flex-direction: column; gap: .5rem; }
.segs { display: flex; gap: .35rem; } .segs span { flex: 1; height: .625rem; border-radius: .3rem; background: var(--line); } .segs span.on { background: var(--pine); }
.confirm { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border: 2px solid var(--ink); border-radius: 1rem; }
.bubble { align-self: flex-start; max-width: 100%; padding: 1rem 1.1rem; background: var(--paper); border-radius: .25rem 1.1rem 1.1rem 1.1rem; box-shadow: 0 1px 0 var(--line); font-size: 1.1875rem; overflow-wrap: anywhere; }
.bubble .link { color: var(--pine); text-decoration: underline; font-weight: 700; }

/* Chips und Kacheln */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 2.75rem; padding: .3rem 1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 1.0625rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.tile { position: relative; min-height: 5.75rem; padding: .75rem .5rem; border: 2px solid var(--line); border-radius: .875rem; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; font-size: 1.1875rem; font-weight: 700; text-align: center; cursor: pointer; }
.tile[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.tile .tick { position: absolute; top: .45rem; right: .5rem; display: none; }
.tile[aria-pressed="true"] .tick { display: block; }
.tile .emoji { font-size: 1.75rem; line-height: 1; }

/* Bühne: der Zettel */
.stagehead .hi { font-size: 1.5rem; color: var(--on-stage-muted); overflow-wrap: anywhere; }
.bigslip { align-self: center; width: min(100%, 20rem); padding: 1.6rem 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; border-radius: .375rem; box-shadow: 0 1.1rem 2.5rem rgba(0,0,0,.32); transform: rotate(-2deg); animation: drawn .6s cubic-bezier(.2,.9,.25,1.15) both; }
.bigslip .who { font-size: 5.5rem; line-height: 1; letter-spacing: -.03em; color: var(--berry); overflow-wrap: anywhere; }
.bigslip .who.m { font-size: 4rem; } .bigslip .who.l { font-size: 3rem; } .bigslip .who.xl { font-size: 2.25rem; }
.bigslip .rule { border-top: 2px dashed #C9D3CC; }
.bigslip .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-family: var(--font-body); font-weight: 400; font-size: 1.2rem; }
.bigslip .meta b { font-weight: 700; }
@keyframes drawn { from { opacity: 0; transform: translateY(3.5rem) rotate(7deg) scale(.86); } to { opacity: 1; transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .bigslip { animation: none; } }
.secret { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--on-stage-muted); }
.panel { display: flex; flex-direction: column; gap: .75rem; padding: 1.4rem 1.25rem 1.25rem; background: var(--bg); color: var(--ink); border-radius: 1.5rem; }
.panel .head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.panel .ad { font-size: .9375rem; color: var(--muted); flex: none; }
body.stage .panel .btn-outline { color: var(--ink); border-color: var(--ink); }
body.stage .panel :focus-visible { outline-color: var(--ink); }
body.stage .panel a:not(.amz) { color: var(--pine); }
body.stage .panel .muted { color: var(--muted); }

/* Geschenkideen */
.idea { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; background: var(--paper); color: var(--ink); border-radius: .875rem; box-shadow: 0 1px 0 var(--line); }
.idea b { font-size: 1.25rem; overflow-wrap: anywhere; }
.idea .why { font-size: 1.0625rem; color: var(--muted); }
.idea .price { font-weight: 700; }
.idea .actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.idea .amz { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .3rem .9rem; border-radius: .75rem; background: var(--pine); color: var(--on-pine); font-weight: 700; text-decoration: none; font-size: 1.0625rem; }
.idea .local { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .3rem .6rem; font-size: 1.0625rem; color: var(--muted); }
.disclosure { font-size: .9375rem; color: var(--muted); }
.spinner { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-weight: 700; }
.spinner i { width: 1.4rem; height: 1.4rem; border: 3px solid var(--line); border-top-color: var(--pine); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ladenzettel / Druck */
.sheet { background: #fff; color: #0E2A20; border-radius: .5rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 1px 0 var(--line), 0 .4rem 1rem var(--shadow); }
.sheet .qr { align-self: center; background: #fff; padding: .5rem; }
.sheet .big { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.kv { display: flex; flex-direction: column; gap: .4rem; font-size: 1.1875rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.kv b { text-align: right; }
.print-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media print {
  body { background: #fff; color: #000; }
  .no-print, .brand small { display: none !important; }
  .app { max-width: none; padding: 0; }
  .sheet { box-shadow: none; border: 1px dashed #999; break-inside: avoid; }
  .print-grid { grid-template-columns: repeat(2, 1fr); }
}
footer.legal { font-size: .9375rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; padding-top: .5rem; }
footer.legal a { color: inherit; }
