@font-face {
  font-family: 'Familjen Grotesk';
  src: url(fonts/familjen-grotesk-latin.woff2) format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --see: #0f3b5a;
  --see-2: #0a72b5;
  --orange: #f39200;
  --paper: #fff;
  --mist: #eef7fc;
  --sky: #d3edfb;
  --mint: #d2f2e2;
  --lemon: #fff2b3;
  --peach: #ffe2c2;
  --line: #cbdde8;
  --muted: #476277;
  --good: #14734a;
  --ok: #8f6000;
  --bad: #b8321f;
  --wall: #e3f0f7;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --bar-h: 76px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Ohne Scroll-Verankerung: Sie sprang beim Neuaufbau eines Bereichs in Safari ans Seitenende. */
html { overflow-anchor: none; -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--see);
  font: 400 1.0625rem/1.5 'Familjen Grotesk', system-ui, sans-serif;
  overflow-wrap: break-word;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: 1.3125rem; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--see); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
main:focus { outline: none; }

.mock-note {
  background: var(--lemon);
  font-size: .875rem;
  line-height: 1.3;
  padding: 5px var(--gutter);
  text-align: center;
}

.away-note { background: var(--see); color: #fff; font-size: .9375rem; line-height: 1.35; padding: 8px var(--gutter); text-align: center; margin: 0; }

.top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px var(--gutter);
  background: var(--paper);
}
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 44px; width: auto; }
/* Klein: Das Menü klappt unter der Kopfzeile auf. Ab 900 px steht es in der Zeile. */
.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 4px var(--gutter) 12px; background: var(--paper); box-shadow: 0 16px 24px -14px rgba(10, 30, 45, .4); border-top: 1px solid var(--line); }
.main-nav.open { display: grid; }
.main-nav a { display: flex; align-items: center; min-height: 46px; text-decoration: none; font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--line); }
.main-nav a:last-of-type { border-bottom: 0; }
.main-nav a[hidden] { display: none; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.top-icons { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.icon-link { position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--see); text-decoration: none; cursor: pointer; }
.icon-link:hover { background: var(--mist); }
.icon-link svg { display: block; width: 26px; height: 26px; }
.menu-btn .m-close, .menu-btn[aria-expanded='true'] .m-open { display: none; }
.menu-btn[aria-expanded='true'] .m-close { display: block; }
.count { position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--orange); color: var(--see); font-size: .75rem; font-weight: 700; }
.count[hidden] { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--see);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:hover { background: #ffa31a; }
.btn:active { transform: scale(.97); }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--see); }
.link { background: none; border: 0; min-height: 44px; padding: 10px 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link.small { font-size: .9375rem; color: var(--muted); text-align: left; justify-self: start; }
.link:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* Bühne: Raum, Wandfarbe, Bild */
.stage, .stage *, .vstage, .vstage * { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.stage {
  position: relative;
  overflow: hidden;
  background: var(--wall);
  transition: background-color 1s ease;
  touch-action: pan-y;
  isolation: isolate;
}
.plate { position: absolute; transition: opacity .35s ease; }
.plate img { width: 100%; height: 100%; display: block; max-width: none; }
.plate.back { z-index: 0; }
.plate.front { z-index: 3; pointer-events: none; }
.tint {
  position: absolute;
  inset: 0;
  background: var(--wall);
  mix-blend-mode: multiply;
  transition: background-color 1s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--floor, 72%), transparent calc(var(--floor, 72%) + .4%));
  mask-image: linear-gradient(to bottom, #000 var(--floor, 72%), transparent calc(var(--floor, 72%) + .4%));
}
.hang { position: absolute; left: 0; top: 0; z-index: 2; perspective: 1500px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.wallshadow { position: absolute; background: rgba(10, 25, 35, .34); filter: blur(var(--sb, 14px)); transition: width .5s, height .5s, left .5s, top .5s, opacity .3s, transform .5s; }
/* Flach an der Wand, drei Lagen wie in echt: Nah an der Kante dunkel und scharf, gegen aussen weicher und heller. Die Farbe ist die der Wand im Schatten. */
.wallshadow.flat { background: none; filter: none; box-shadow: calc(var(--c, 2px) * 1.4) calc(var(--c, 2px) * 1.1) calc(var(--c, 2px) * 1.6) rgba(14, 24, 44, .5), calc(var(--c, 2px) * 3) calc(var(--c, 2px) * 2.4) calc(var(--c, 2px) * 4.5) rgba(14, 24, 44, .34), calc(var(--c, 2px) * 6) calc(var(--c, 2px) * 5) calc(var(--c, 2px) * 12) rgba(14, 24, 44, .2); }
.hang.turning .wallshadow { transition: none; }
.contact { position: absolute; background: rgba(8, 20, 30, .42); filter: blur(2px); transition: opacity .3s, transform .5s; }
@property --lx { syntax: '<percentage>'; inherits: true; initial-value: 28%; }
@property --ly { syntax: '<percentage>'; inherits: true; initial-value: 22%; }
@property --spec { syntax: '<number>'; inherits: true; initial-value: .1; }
@property --dim { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --lit { syntax: '<number>'; inherits: true; initial-value: 0; }
.box, .kcback { --ease: cubic-bezier(.2, .8, .2, 1); }
.box { position: absolute; transform-style: preserve-3d; transition: transform .5s var(--ease), --lx .5s var(--ease), --ly .5s var(--ease), --spec .5s var(--ease), --dim .5s var(--ease), --lit .5s var(--ease); }
.box.dragging { transition: none; }
.kcback { transition: --lx .5s var(--ease), --ly .5s var(--ease), --spec .5s var(--ease), --dim .5s var(--ease), --lit .5s var(--ease); }
.box .edge, .box .fle, .kcw, .kcl.f, .kcl.b { transition: filter .5s var(--ease); }
.box.dragging .edge, .box.dragging .fle, .box.dragging .kcw, .box.dragging .kcl, .box.dragging .kcback { transition: none; }
/* Grundlicht von oben links, dazu Abdunkeln oder Aufhellen je nach Lage zur Lampe */
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 44%, rgba(6, 18, 28, .13)); }
.shade::before, .shade::after { content: ''; position: absolute; inset: 0; }
.shade::before { background: rgba(6, 18, 28, var(--dim)); }
.shade::after { background: rgba(255, 255, 255, var(--lit)); }
.sheen { position: absolute; inset: 0; pointer-events: none; opacity: var(--spec); background: radial-gradient(ellipse 58% 74% at var(--lx) var(--ly), rgba(255, 255, 255, .95), rgba(255, 255, 255, .36) 40%, rgba(255, 255, 255, 0) 74%); }
.look-acrylic .sheen, .look-keychain .sheen { background: radial-gradient(ellipse 34% 52% at var(--lx) var(--ly), #fff, rgba(255, 255, 255, .34) 42%, rgba(255, 255, 255, 0) 76%); }
.look-print .shade { background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 44%, rgba(6, 18, 28, .08)); }
/* Kanten: Die obere linke Kante fängt Licht, die untere rechte liegt im Schatten */
.deco { box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .2), inset -2px -2px 0 rgba(0, 0, 0, .16); }
/* Im Rahmen liegt das Bild tiefer, die Leiste wirft ihren Schatten darauf */
.look-frame .deco { box-shadow: inset 9px 12px 22px rgba(0, 0, 0, .34), inset -3px -3px 9px rgba(0, 0, 0, .14); }
/* Studiolicht auf der Wand in der Nahansicht */
.stage::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(90% 85% at 24% 8%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 62%), radial-gradient(110% 80% at 82% 100%, rgba(8, 20, 30, .17), rgba(8, 20, 30, 0) 62%); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.stage.nah::before { opacity: 1; }
.face { position: absolute; left: 0; top: 0; display: block; max-width: none; backface-visibility: hidden; }
.face.front { width: 100%; height: 100%; }
.weave { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px); }
.stage.nah .weave.on { opacity: 1; }
.stage.nah .plate { opacity: 0; pointer-events: none; }
.stage.nah { cursor: grab; }
.stage.nah:active { cursor: grabbing; }

.fl { position: absolute; display: none; backface-visibility: hidden; }
.fl.on { display: block; }
.fli { backface-visibility: visible; }
/* Die Kante wirft ihren Schatten in die Fuge. Auf hellem Grund zeigt erst das die Tiefe. */
.flback::after { content: ''; position: absolute; inset: var(--bw, 0); box-shadow: inset calc(var(--g, 0px) * .5) calc(var(--g, 0px) * .6) calc(var(--g, 0px) * .9) rgba(10, 15, 25, .32); pointer-events: none; }
.flring { border-style: solid; background: transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .12); pointer-events: none; }
.flring::after { content: ''; position: absolute; inset: calc(-1 * var(--bw, 0px)); pointer-events: none; border: var(--bw, 0px) solid transparent; background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, .24)) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.look-acrylic .gloss, .look-frame .gloss { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .5) 0 18%, rgba(255, 255, 255, 0) 34%); }
.look-frame .gloss { opacity: .3; }
/* Acrylglas: Vorne nur Glas mit Lichtreflexen, die beim Drehen wandern. Die Wände spiegeln das Foto auch von innen. */
.look-acrylic .edge { backface-visibility: visible; }
.look-acrylic .gloss {
  background:
    radial-gradient(ellipse 38% 3.6% at var(--glare, 50%) 13.6%, rgba(255, 255, 255, .48), rgba(255, 255, 255, .24) 50%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 22% 2.6% at calc(100% - var(--glare, 50%)) 60.8%, rgba(255, 255, 255, .32), rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(112deg, rgba(255, 255, 255, .24) 0 12%, rgba(255, 255, 255, 0) 38%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6), inset 0 0 46px rgba(255, 255, 255, .14);
}
/* Anhänger: Produktbild in Schichten, das Foto liegt vorne und hinten vertieft im Fenster */
.look-keychain .edge, .look-keychain .wallshadow, .look-keychain .contact { display: none; }
.look-keychain .hang, .look-frame .hang, .look-acrylic .hang { perspective: 1000px; }
.look-keychain .drag-hint { top: auto; bottom: 16px; left: 12px; right: auto; width: 26%; text-align: left; line-height: 1.25; }
.look-keychain .deco, .kcback::after { box-shadow: inset 0 26px 46px rgba(0, 0, 0, .42), inset 0 0 16px rgba(0, 0, 0, .3); }
.kcback { width: 100%; height: 100%; }
.kcback canvas { display: block; width: 100%; height: 100%; }
.kcback::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.kc { position: absolute; transform-origin: 0 0; transform-style: preserve-3d; pointer-events: none; }
.kcl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.kcl.f, .kcl.b { backface-visibility: hidden; }
.kcw { position: absolute; background: linear-gradient(90deg, #7f878d, #dfe3e6 50%, #7f878d); }
.kcshine {
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .6) 50%, transparent 60%) var(--shine, 50%) 0 / 300% 100% no-repeat;
  -webkit-mask: url(img/anhaenger-front.webp) center / 100% 100% no-repeat;
  mask: url(img/anhaenger-front.webp) center / 100% 100% no-repeat;
}
.kcshadow { position: absolute; background: url(img/anhaenger-edge.webp) center / 100% 100% no-repeat; filter: brightness(0) blur(10px); opacity: .26; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.box.spin { transition: transform 2s cubic-bezier(.45, .05, .25, 1), --lx 2s, --ly 2s, --spec 2s, --dim 2s, --lit 2s; }

.printhead { position: absolute; left: -2%; right: -2%; height: 4px; top: 0; background: var(--orange); box-shadow: 0 0 14px 2px rgba(243, 146, 0, .7); opacity: 0; pointer-events: none; }
.box.reveal .face.front { animation: print 1s cubic-bezier(.4, 0, .3, 1) both; }
.box.reveal .printhead { animation: head 1s cubic-bezier(.4, 0, .3, 1) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes head { 0% { top: 0; opacity: 1; } 96% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.stage-tools { position: absolute; z-index: 5; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.chip {
  border: 0;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-weight: 500;
  font-size: .9375rem;
  cursor: pointer;
}
.chip.line { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scale-note { position: absolute; z-index: 5; left: 10px; bottom: 10px; display: flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 700; background: rgba(255, 255, 255, .92); padding: 4px 14px; border-radius: 999px; }
.drag-hint { position: absolute; z-index: 5; top: 12px; left: 0; right: 0; text-align: center; font-size: .9375rem; color: var(--see); pointer-events: none; }

/* Foto-Auswahl */
.motifs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo { width: 58px; height: 48px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.demo img { width: 100%; height: 100%; object-fit: cover; }
.demo[aria-pressed='true'] { outline: 3px solid var(--orange); outline-offset: 1px; }
.demo:focus-visible { outline-color: var(--see); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.own {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 16px 6px 8px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--see);
  font-weight: 700;
  cursor: pointer;
}
.own i { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-style: normal; font-size: 1.375rem; line-height: 1; }
/* Das eigene Foto ist etwas grösser als die Beispielbilder, damit man es sofort wiedererkennt. */
.own:has(img) { padding: 5px 14px 5px 5px; border-radius: 14px; }
.own img { width: 68px; height: 56px; border-radius: 10px; object-fit: cover; }
.own[aria-pressed='true'] { box-shadow: inset 0 0 0 3px var(--orange); }
.own.main { background: var(--orange); box-shadow: none; min-height: 54px; padding: 8px 24px 8px 12px; font-size: 1.0625rem; }
.own.main i { background: #fff; }

/* Startseite */
.hero-stage { height: 42svh; min-height: 240px; max-height: 620px; }
.hero-stage .stage { height: 100%; }
.hero-copy { padding: 22px var(--gutter) 30px; display: grid; gap: 14px; }
.hero-copy h1 { font-size: clamp(2.45rem, 11vw, 3.1rem); }
.hero-copy .sub { color: var(--muted); max-width: 34em; }
.hero-actions { display: grid; gap: 10px; justify-items: start; }
.hero-actions .btn { width: 100%; }
.hero-actions .own.main { flex: 1 1 100%; justify-content: center; }

.range { padding: 34px var(--gutter) 42px; display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.range h2 { grid-column: 1 / -1; margin-bottom: 8px; }
.tile { position: relative; text-decoration: none; display: block; grid-column: span 6; background: var(--mist); overflow: hidden; border-radius: 20px; transition: transform .18s ease; }
a.tile:hover { transform: translateY(-3px); }
.tile > img { width: 100%; height: 200px; object-fit: contain; background: #fff; }
.tile.lemon > img, .tile.sky > img, .tile.mint > img { object-fit: cover; }
.tile.mint > img { object-position: 50% 30%; }
.cart-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.tile .cap { padding: 12px 18px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.tile .cap span { color: var(--muted); }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.tile.voucher::after { display: none; }
.tile.sky { background: var(--sky); }
.tile.mint { background: var(--mint); }
.tile.lemon { background: var(--lemon); grid-column: span 3; }
.tile.peach { background: var(--peach); grid-column: span 3; }
.tile.lemon > img, .tile.peach > img { height: 140px; }
.tile.voucher { background: var(--orange); padding: 22px 20px; display: grid; gap: 18px; align-content: space-between; min-height: 280px; }
.tile.voucher h3 { font-size: clamp(2rem, 7.4vw, 3rem); letter-spacing: -.025em; line-height: 1.02; }
.tile.voucher p { max-width: 26em; margin-top: 10px; }
/* Zwei Gutscheine, leicht gefächert: hinten der Wertgutschein, vorne ein Angebot. */
.vfan { display: grid; justify-items: center; padding: 5% 0 9%; }
.vfan .vcard { grid-area: 1 / 1; width: min(74%, 350px); pointer-events: none; transition: transform .25s ease; }
.vfan .vcard:first-child { transform: translate(-13%, -5%) rotate(-7deg); }
.vfan .vcard:nth-child(2) { transform: translate(12%, 8%) rotate(5deg); }
.vfan .vcard:only-child { transform: rotate(-3deg); }
.vfan[data-front='0'] .vcard:first-child { z-index: 1; }
.vpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.vpick a { display: grid; place-items: center; min-height: 52px; padding: 8px 6px; background: #fff; border-radius: 12px; font-size: clamp(.875rem, 3.9vw, 1.0625rem); font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none; }
.vpick a + a { background: var(--see); color: #fff; }
.also { grid-column: 1 / -1; margin-top: 12px; display: grid; gap: 4px; }
.also a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.also a span { color: var(--muted); font-weight: 400; white-space: nowrap; }

.promise { display: grid; background: var(--sky); }
.promise img { width: 100%; height: 240px; object-fit: cover; }
.promise div { padding: 30px var(--gutter) 38px; display: grid; gap: 12px; }
.promise p { max-width: 34em; }

.pickup { background: var(--see-2); color: #fff; padding: 42px var(--gutter); display: grid; gap: 26px; }
.pickup h2 { max-width: 14em; }
.pickup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pickup li strong { display: block; font-size: 1.1875rem; }

.foot { padding: 22px var(--gutter) 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; font-size: .9375rem; line-height: 1.35; background: var(--mist); }
.foot-col { display: grid; align-content: start; justify-items: start; }
.foot-col:first-child { grid-column: 1 / -1; }
.foot-col strong { margin-bottom: 4px; }
.foot a { display: inline-flex; align-items: center; min-height: 36px; }
body:has(.bar) .foot { padding-bottom: calc(var(--bar-h) + 40px + env(safe-area-inset-bottom)); }

/* Wizard */
.wiz { display: grid; grid-template-rows: auto 1fr; padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
.wiz-stage { position: sticky; top: 0; z-index: 8; height: 30svh; min-height: 190px; }
.wiz-stage:has(.look-keychain) { height: 36svh; min-height: 230px; }
/* Die Bühne klebt oben. Ein Feld mit Fokus darf nicht darunter verschwinden. */
@media (max-width: 899px) and (min-height: 501px) {
  html:has(.wiz-stage) { scroll-padding-top: calc(max(36svh, 230px) + 12px); }
}
.wiz-stage .stage { height: 100%; }
.wiz-panel { padding: 16px var(--gutter) 28px; display: grid; gap: 20px; align-content: start; min-width: 0; container-type: inline-size; }
.wiz-panel h1 { font-size: 1.875rem; }
.wiz-panel h1:focus { outline: none; box-shadow: none; }
.claim { color: var(--muted); }
.pinfo { margin-top: 6px; color: var(--muted); font-size: .9375rem; white-space: pre-line; }

.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strip button { width: 100%; min-height: 44px; background: none; border: 0; padding: 0 0 2px; text-align: left; font-size: .875rem; cursor: pointer; color: var(--muted); }
.strip button:disabled { cursor: default; }
.strip i { display: block; height: 10px; margin-bottom: 5px; border-radius: 5px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.strip .on button { color: var(--see); font-weight: 700; }
.strip .seen button { color: var(--see); }
.strip .seen i { opacity: .4; }
.strip li:nth-child(1):is(.on, .seen) i { background: #00a3da; box-shadow: none; }
.strip li:nth-child(2):is(.on, .seen) i { background: #e6007e; box-shadow: none; }
.strip li:nth-child(3):is(.on, .seen) i { background: #ffd200; box-shadow: none; }
.strip .on:nth-child(4) i { background: var(--see); box-shadow: none; }

.drop {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 30px 18px;
  background: var(--mist);
  border: 2px dashed var(--see-2);
  border-radius: 16px;
  cursor: pointer;
  width: 100%;
}
.drop strong { font-size: 1.25rem; }
.drop span { color: var(--muted); }

.group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; border: 0; margin: 0; padding: 0; min-width: 0; }
.group > legend, .group > .lg { font-weight: 700; padding: 0; margin-bottom: 8px; font-size: 1.125rem; }
.hint { color: var(--muted); font-size: 1rem; }

.fmt { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(150px, calc((100% - 16px) / 3))), 1fr)); gap: 8px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt .in { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: center; min-height: 58px; padding: 8px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); }
.opt .mini { grid-row: span 2; justify-self: center; background: var(--see-2); opacity: .5; }
.opt b { font-weight: 700; line-height: 1.15; }
.opt small { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .9375rem; }
.opt input:checked + .in { box-shadow: inset 0 0 0 3px var(--orange), inset 0 0 0 4px var(--see); background: #fff8ec; }
.opt input:checked + .in .mini { opacity: 1; }
.opt input:focus-visible + .in { outline: 3px solid var(--see); outline-offset: 2px; }
/* Zeigt beim Überfahren, dass hier noch anderes zur Wahl steht. Nur mit Maus: Auf dem Handy bliebe der Effekt nach dem Tippen hängen. */
@media (hover: hover) {
  .opt .in { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
  .opt:hover input:not(:checked):not(:disabled) + .in { transform: translateY(-2px); background: var(--mist); box-shadow: inset 0 0 0 2px var(--see-2), 0 10px 18px -12px rgba(15, 59, 90, .55); }
  .opt:hover input:checked:not(:disabled) + .in { transform: translateY(-1px); }
  .swatches .opt:hover input:not(:checked):not(:disabled) + .in { transform: scale(1.12); background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), 0 6px 12px -6px rgba(15, 59, 90, .6); }
}
.dot { width: 17px; height: 17px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff; font: 700 .75rem/1 'Familjen Grotesk', sans-serif; }
.dot::after { content: '!'; }
.dot.q2 { background: var(--good); }
.dot.q2::after { content: '✓'; }
.dot.q1 { background: var(--ok); }
.dot.q1::after { content: '~'; }
.dot.q0 { background: var(--bad); }

.choice { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.choice.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.choice.cols .opt { display: grid; }
.choice.cols .in { align-content: center; }
.choice .in { grid-template-columns: minmax(0, 1fr); min-height: 52px; padding: 10px 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches .in { display: block; width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.swatches input:checked + .in { background: var(--c); box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--see); }

.seg { display: inline-flex; flex-wrap: wrap; box-shadow: inset 0 0 0 1px var(--line); border-radius: 26px; padding: 3px; width: max-content; max-width: 100%; }
.seg button, .seg a { display: inline-flex; align-items: center; border: 0; background: none; min-height: 44px; padding: 4px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.seg button[aria-pressed='true'], .seg a[aria-current] { background: var(--see); color: #fff; }
.seg.shape { width: 100%; flex-wrap: nowrap; }
.seg.shape button { flex: 1 1 auto; justify-content: center; gap: 7px; padding: 4px 8px; }
.shp { display: inline-block; box-sizing: border-box; border: 2px solid currentColor; border-radius: 2px; }
.shp.quer { width: 17px; height: 12px; }
.shp.hoch { width: 12px; height: 17px; }
.shp.quadrat { width: 14px; height: 14px; }
@container (max-width: 459px) { .seg.shape .wide { display: none; } }
.fmt .opt .in { grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; padding: 8px; }
.fmt .opt small { gap: 4px; white-space: nowrap; }

.cropbox { display: grid; gap: 10px; }
.cropframe { position: relative; justify-self: center; line-height: 0; margin: 12px; }
.cropframe canvas { touch-action: none; cursor: move; background: var(--mist); }
.cropframe::before, .cropframe::after, .cropframe span::before, .cropframe span::after { content: ''; position: absolute; width: 14px; height: 14px; border: 0 solid var(--see); pointer-events: none; }
.cropframe::before { left: -9px; top: -9px; border-width: 2px 0 0 2px; }
.cropframe::after { right: -9px; top: -9px; border-width: 2px 2px 0 0; }
.cropframe span::before { left: -9px; bottom: -9px; border-width: 0 0 2px 2px; }
.cropframe span::after { right: -9px; bottom: -9px; border-width: 0 2px 2px 0; }
.croptools { display: flex; gap: 12px; align-items: center; }
.croptools input[type='range'] { flex: 1; accent-color: var(--orange); height: 44px; min-width: 0; }
.croptools button { min-height: 44px; }

.quality { display: grid; grid-template-columns: 17px 1fr; gap: 2px 10px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--mist); }
.quality b.q2 { color: var(--good); }
.quality b.q1 { color: var(--ok); }
.quality b.q0 { color: var(--bad); }
.quality small { grid-column: 2; color: var(--muted); font-size: .9375rem; }

#q { scroll-margin-top: calc(max(36svh, 220px) + 12px); }
.lowres { display: grid; gap: 8px; }
.lowres .quality { background: #fdeae6; }
.lowres .quality small { color: var(--see); }
.lowres .in { grid-template-columns: 1fr; padding: 10px 14px; }
.lr { display: grid; gap: 2px; text-align: left; min-height: 52px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.lr b { line-height: 1.15; }
.lr small { color: var(--muted); font-size: .9375rem; }

.upsell { background: var(--mist); border-radius: 16px; padding: 14px; }
.upsell > legend { float: left; width: 100%; margin-bottom: 6px; }
.upsell > legend + * { clear: both; }

.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--mist); font-size: 1.25rem; cursor: pointer; }
.qty output { min-width: 34px; text-align: center; font-weight: 700; }

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 -1px 0 var(--line);
}
.bar .sum { line-height: 1.15; flex: 999 1 auto; min-width: max-content; }
.bar .sum b { display: block; font-size: 1.3125rem; white-space: nowrap; }
.bar .sum small { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.bar .btn { flex: 1 0 auto; padding: 12px 18px; white-space: nowrap; }
.bar .back { flex: 0 0 auto; }

/* Kontaktbogen */
.sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sheet figure { margin: 0; display: grid; gap: 6px; min-width: 0; align-content: start; }
.sheet .thumb { background: var(--wall); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 10px; aspect-ratio: 1; min-width: 0; min-height: 0; border-radius: 12px; }
.sheet canvas { box-shadow: 0 2px 8px rgba(10, 30, 45, .28); max-width: 100%; max-height: 100%; }
.sheet .row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.sheet .row .dot { margin-left: auto; }
.sheet .qty { gap: 0; }
.sheet .qty button { width: 38px; }
.sheet .qty output { min-width: 26px; }
.sheet .thumb { user-select: none; -webkit-user-select: none; }
.sheet canvas.pan { cursor: grab; }
.sheet canvas.pan:active { cursor: grabbing; }
/* Liegt über dem unsichtbaren Radioknopf der Auswahl, sonst käme der Klick nicht an. */
.fitlink { position: relative; z-index: 1; justify-self: start; min-height: 30px; padding: 4px 0; font-size: .875rem; color: var(--muted); text-align: left; }
.sheet .warn { color: var(--bad); font-size: .9375rem; font-weight: 700; }
.sheet .fitnote { color: var(--muted); font-size: .9375rem; line-height: 1.25; }
.cropdlg { border: 0; border-radius: 16px; padding: 18px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; scroll-padding-bottom: 96px; background: var(--paper); color: inherit; }
.cropdlg[open] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cropdlg::backdrop { background: rgba(10, 30, 45, .55); }
.cropdlg h2:focus { outline: none; box-shadow: none; }
/* Lange Formulare: Die Knöpfe bleiben sichtbar, der Inhalt läuft darunter durch. */
.dlg-actions { position: sticky; bottom: -18px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -18px -18px; padding: 8px 18px 18px; background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
.mini-choice .in { min-height: 44px; padding: 6px 10px; }

/* Gutschein */
.vstage { background: var(--wall); display: grid; place-items: center; padding: 16px var(--gutter); height: 100%; transition: background-color .6s; }
.vcard {
  position: relative;
  width: min(100%, 560px, calc((36svh - 32px) * 1.55));
  aspect-ratio: 1.55;
  overflow: hidden;
  border-radius: 10px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #fff;
  box-shadow: 0 16px 36px -14px rgba(10, 30, 45, .5);
  container-type: inline-size;
}
.vmain { position: relative; background: var(--see-2) center / cover; color: #fff; padding: 5cqw 6cqw; display: flex; flex-direction: column; gap: 1.4cqw; min-height: 0; overflow: hidden; }
.vcard.see .vmain { background-image: url(img/gutschein-see.webp); }
.vcard.fest .vmain { background-color: #0d7a59; background-image: url(img/gutschein-fest.webp); }
.vcard.geburi .vmain { background-color: #d3246d; background-image: url(img/gutschein-geburi.webp); }
.vcard.hochzeit .vmain { background-color: #6d5a4b; background-image: url(img/gutschein-hochzeit.webp); }
.vcard.geburt .vmain { background-color: #5f7468; background-image: url(img/gutschein-geburt.webp); }
.vmain::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 30, 45, .66), rgba(10, 30, 45, .06) 78%); }
.vmain > * { position: relative; flex: none; }
.vcard .kind { font-size: 8.6cqw; font-weight: 700; letter-spacing: -.02em; line-height: 1; max-width: 66%; }
.vcard .pre { font-size: 3cqw; line-height: 1.1; }
.pickhint svg { display: inline-block; width: 1.1em; height: 1.1em; margin-left: .25em; vertical-align: -.2em; animation: pick-nudge 1.3s ease-in-out infinite; }
@keyframes pick-nudge { 50% { transform: translateX(.35em); } }
/* Im Hochformat liegt die Liste unter der Karte, der Pfeil zeigt dann nach unten. */
@media (max-width: 899px) and (min-height: 501px) { .pickhint svg { rotate: 90deg; } }
.vcard .kind.offer { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 4.7cqw; letter-spacing: -.01em; line-height: 1.12; }
.vcard .kind.offer.pickhint { display: block; overflow: visible; }
.vcard .to { font-size: 3.7cqw; line-height: 1.25; max-width: 60%; min-height: 1.25em; }
/* Nur der Gruss gibt Platz her: Titel und Betrag stehen immer auf der Karte. Vollständig steht alles im PDF. */
.vcard .msg { flex: 0 1 auto; min-height: 0; overflow: hidden; font-size: 3.2cqw; line-height: 1.3; max-width: 58%; white-space: pre-line; }
.vcard .msg:not(:empty) { min-height: 1.3em; }
.vcard .val { font-size: 6.6cqw; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 1.2cqw; }
/* Die Adresszeile bestimmt die Breite der rechten Spalte, das Kleingedruckte passt sich ihr an. So stehen beide links bündig. */
.vfoot { display: grid; grid-template-columns: 1fr max-content; gap: 1.5cqw 3cqw; padding: 1.8cqw 4cqw 1.6cqw; color: var(--see); align-items: start; }
.vaddr { grid-row: 1 / span 2; align-self: center; }
.vaddr img { display: block; height: 5.4cqw; width: auto; max-width: none; }
.vfine { grid-column: 2; width: 0; min-width: 100%; }
.vfine small { display: block; font-size: 1.6cqw; line-height: 1.3; color: var(--muted); }
.vline { grid-column: 2; font-size: 1.5cqw; font-weight: 600; color: var(--muted); white-space: nowrap; }
.vfine.long small { font-size: 1.4cqw; }
.vmain > .vcode { position: absolute; right: 2.6cqw; bottom: 2.2cqw; padding: 1cqw 1.5cqw; border-radius: .9cqw; background: rgba(10, 30, 45, .62); color: #fff; line-height: 1.3; }
.vcode small { display: block; font-size: max(8px, 1.3cqw); }
.vcode b { display: block; font-size: max(10px, 2.1cqw); letter-spacing: .02em; white-space: nowrap; }
/* Auf kleinen Karten wäre die Schrift nicht mehr lesbar. Vollständig steht alles im PDF. */
/* 440 px deckt auch die grossen Handys ab, ihre Karte ist rund 400 px breit. */
@container (max-width: 440px) {
  .vfoot { grid-template-columns: 1fr; align-items: center; padding: 1.8cqw 4cqw; }
  .vline, .vfine { display: none; }
  .vaddr { grid-row: auto; }
  .vaddr img { height: 8cqw; margin: 0; }
}
.offer-desc { padding: 12px 14px; border-radius: 10px; background: var(--mist); font-size: .9375rem; line-height: 1.45; white-space: pre-line; }
.offered { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin-bottom: 8px; }
.offered summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; min-height: 44px; cursor: pointer; }
.offered summary b { min-width: 0; }
.offered summary span { flex: none; color: var(--muted); }
.offered .grid2 { margin-top: 10px; align-items: end; }
.offered .full { grid-column: 1 / -1; }
.offered .formrow { justify-content: space-between; margin-top: 8px; }
.vals-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vals-pick .in { grid-template-columns: 1fr; text-align: center; min-height: 52px; }
/* Breite Felder schwellen schwächer an, sonst ragen sie über den Rand oder berühren die Nachbarn. */
.swell { --swell: 1.07; }
.swell.choice { --swell: 1.025; }
.swell.cols, .swell.fmt { --swell: 1.035; }
.swell .in { animation: swell .62s ease-in-out calc(.3s + var(--i, 0) * 95ms); }
@keyframes swell { 45% { transform: scale(var(--swell)); filter: drop-shadow(0 6px 10px rgba(15, 59, 90, .24)); } }
.field { display: grid; gap: 4px; }
.field label { font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #7d93a3; background: #fff; border-radius: 10px; font-size: 1.0625rem; }
.field textarea { min-height: 84px; resize: vertical; }
.field input[readonly] { background: var(--mist); }
.field .err { color: var(--bad); font-size: .9375rem; }
.field [aria-invalid='true'] { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.grid2 { display: grid; gap: 12px; }

/* Warenkorb und Kasse */
.page { max-width: 1040px; margin: 0 auto; padding: 22px var(--gutter) calc(var(--bar-h) + 40px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.page h1 { font-size: clamp(2.1rem, 7.5vw, 3.25rem); }
.lines { list-style: none; margin: 0; padding: 0; display: grid; }
.lines li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.lines img { width: auto; height: auto; max-width: 76px; max-height: 96px; justify-self: center; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); grid-row: span 2; }
.vthumb { width: 76px; height: 76px; background: var(--orange); border-radius: 10px; grid-row: span 2; display: grid; place-items: center; font-weight: 700; }
.lines small { color: var(--muted); font-size: .9375rem; display: block; }
.lines .rm { grid-column: 2; justify-self: start; padding: 2px 0; font-size: .9375rem; }
.agree { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 4px 0; cursor: pointer; }
.agree input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--see-2); }
.agree a { text-decoration: underline; text-underline-offset: 3px; }
.plz { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; }
.totals { display: grid; gap: 4px; padding-top: 12px; border-top: 2px solid var(--see); }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: clamp(1.1875rem, 6vw, 1.375rem); font-weight: 700; }
.totals span:last-child { white-space: nowrap; }
@media (max-width: 399px) {
  .lines li { grid-template-columns: 76px minmax(0, 1fr); }
  .lines li > b { grid-column: 2; }
}
.totals small { color: var(--muted); }
.freehint .link { min-height: 0; padding: 0; font: inherit; font-weight: 700; }
.freehint { background: var(--lemon); padding: 8px 12px; border-radius: 10px; margin: 6px 0; }
.redeem { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.redeem .btn { min-height: 48px; padding: 8px 14px; font-size: 1rem; }
.redeem .applied { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.redeem .err { grid-column: 1 / -1; }
.empty { display: grid; gap: 14px; justify-items: start; }
.co { display: grid; gap: 28px; min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.timeline li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; }
.timeline li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-weight: 700; grid-row: span 2; }
.timeline li:first-child::before { background: var(--orange); }
.timeline span { color: var(--muted); }

/* Verwaltung */
.page.admin { max-width: 1180px; padding-bottom: 60px; }
#tab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; min-width: 0; }
.xt-wrap { overflow: auto; max-height: 70svh; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.xt { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.xt th, .xt td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.xt thead th { position: sticky; top: 0; z-index: 2; background: #fff; font-size: .8125rem; font-weight: 700; white-space: normal; min-width: 64px; vertical-align: bottom; }
.xt thead th:first-child { left: 0; z-index: 3; }
.xt thead i { display: block; width: 18px; height: 18px; border-radius: 50%; margin: 0 auto 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.xt tbody th { position: sticky; left: 0; background: #fff; text-align: left; font-weight: 700; }
.xt tbody th small { display: block; font-weight: 400; color: var(--muted); white-space: normal; }
.xt tr:last-child th, .xt tr:last-child td { border-bottom: 0; }
.xt input[data-k], .xt input[data-cat], .xt input[data-fl], .xt input[data-p] { width: 76px; min-height: 44px; padding: 4px 8px; border: 1px solid #7d93a3; border-radius: 8px; text-align: right; background: #fff; font-size: 16px; }
.xt input[data-o] { width: 62px; min-height: 44px; padding: 4px 6px; border: 1px solid #7d93a3; border-radius: 8px; text-align: right; background: #fff; font-size: 16px; }
.xt input[type='checkbox'] { width: 26px; height: 26px; accent-color: var(--see-2); margin: 0; cursor: pointer; }
.xt input.ph, .field input.ph { background: var(--lemon); }
.plainlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
/* Erklärung der Bildcheck-Punkte */
.dot[data-tip] { position: relative; cursor: help; }
.dot[data-tip]::before { content: ''; position: absolute; inset: -10px; }
.qtip { position: fixed; z-index: 60; max-width: min(280px, calc(100vw - 16px)); padding: 9px 12px; border-radius: 10px; background: var(--see); color: #fff; font-size: .9375rem; line-height: 1.35; pointer-events: none; }
.qlegend summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--muted); font-size: .9375rem; text-decoration: underline; text-underline-offset: 4px; }
.qlegend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9375rem; }
.qlegend li { display: grid; grid-template-columns: 17px 1fr; gap: 10px; align-items: baseline; }

/* Gutschein-Motive */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.themes .opt .in { grid-template-columns: 1fr; gap: 6px; padding: 6px; text-align: center; }
.themes img, .theme-own { display: block; width: 100%; aspect-ratio: 1.86; object-fit: cover; border-radius: 8px; }
.theme-own { display: grid; place-items: center; background: var(--mist); font: 700 1.5rem/1 inherit; font-style: normal; color: var(--see); }

/* Meine Bestellungen */
.admin-link { display: none; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 700; text-decoration: none; }
details.acct { border-top: 1px solid var(--line); }
details.acct > summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; font-size: 1.125rem; cursor: pointer; }
details.acct > form { padding-bottom: 16px; }
.ordercard { display: grid; gap: 12px; padding: 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.ordercard header { display: flex; justify-content: space-between; gap: 12px; }
.ordercard header div { display: grid; }
.ordercard header .r { text-align: right; }
.ordercard small { color: var(--muted); }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: .8125rem; line-height: 1.25; color: var(--muted); }
.track i { display: block; height: 8px; margin-bottom: 5px; border-radius: 4px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.track .on { color: var(--see); }
.track .on i { background: var(--see-2); box-shadow: none; }
.track [aria-current] { font-weight: 700; }
.track-off { color: var(--bad); font-weight: 500; }

.page.admin.auth { max-width: 460px; }
.page.admin.auth h1:focus { outline: none; box-shadow: none; }
.err { color: var(--bad); font-weight: 500; }
.err:empty { display: none; }
.pw { display: flex; align-items: center; gap: 10px; }
.pw input { flex: 1; min-width: 0; }
.pw .link { flex: none; font-size: .9375rem; }
.field input.otp { letter-spacing: .3em; font-variant-numeric: tabular-nums; font-size: 1.375rem; text-align: center; }
.auth-steps { display: grid; gap: 18px; padding-left: 22px; }
.auth-steps li { padding-left: 4px; }
.auth-steps form { margin-top: 10px; }
.qr { width: min(240px, 100%); margin: 12px 0; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.auth-steps summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
code.secret, .codes code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.0625rem; font-weight: 600; }
code.secret { display: block; padding: 10px 12px; border-radius: 10px; background: var(--mist); word-break: break-word; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 18px; padding: 14px 14px 14px 36px; border-radius: 12px; background: var(--mist); }
.switch { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }
.switch input { width: 26px; height: 26px; margin: 0; accent-color: var(--see-2); }
.seg.subnav { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; margin: 4px 0 2px; }
.seg.subnav a { flex: none; white-space: nowrap; }
.pricecols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px clamp(44px, 6vw, 96px); }
.pricecols h3 { font-size: 1.0625rem; margin: 0 0 4px; }
.pricelist { list-style: none; margin: 0; padding: 0; display: grid; }
.pricelist li { display: grid; grid-template-columns: 5.4em 92px 40px; align-items: center; gap: 4px; padding: 3px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .9375rem; }
.pricelist input { width: 92px; min-height: 44px; padding: 4px 8px; border: 1px solid #7d93a3; border-radius: 8px; text-align: right; background: #fff; font-size: 16px; }
.pricelist input::placeholder { color: #5f7382; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.iconbtn:hover, .iconbtn:focus-visible { color: var(--see); background: var(--mist); }
.iconbtn[data-del]:hover, .iconbtn[data-sx]:hover, .iconbtn[data-ax]:hover, .iconbtn[data-dd]:hover { color: var(--bad); }
.iconbtn:disabled { opacity: .3; background: none; cursor: default; }
.awaylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.awaylist li { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--mist); }
.awaylist textarea { min-height: 64px; }
.awayhead { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.awayhead b { flex: 1 1 200px; }
.optlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.optlist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.optlist input[type='checkbox'] { width: 26px; height: 26px; margin: 0; accent-color: var(--see-2); }
.optlist .field { grid-column: 2; }
.optlist .field:first-of-type { grid-column: 2; }
.rowacts { grid-column: 2; display: flex; align-items: center; gap: 2px; }
.colorpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 16px; }
.colorpick .switch { font-weight: 500; }
.colorpick i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); flex: none; }
.formrow { display: flex; align-items: center; gap: 16px; }
.xt.orders td.acts { white-space: nowrap; padding-left: 0; padding-right: 0; }
.xt.orders tbody th .link { white-space: nowrap; }
.xt-wrap .iconbtn:focus-visible { outline-offset: -3px; }
.xt .dot { width: 22px; height: 22px; font-size: .875rem; }
.dot.st-done { background: none; color: var(--muted); box-shadow: inset 0 0 0 2px var(--muted); }
.dot.st-done::after { content: '✓'; }
.dot.st-wait { background: var(--ok); }
.dot.st-wait::after { content: '…'; }
.dot.st-off, .dot.st-no { background: var(--bad); }
.dot.st-off::after { content: '–'; }
.dot.st-no::after { content: '✕'; }
.qlegend.icons li { grid-template-columns: 22px 1fr; align-items: center; }
.journal { width: min(640px, calc(100vw - 24px)); }
.journal td { vertical-align: top; }
.journal .xt-wrap { overflow: visible; max-height: none; }
.journal .xt thead th { top: -18px; }
.journal .xt.orders .amt { text-align: right; white-space: nowrap; }
.files { list-style: none; margin: 0; padding: 0; display: grid; }
.files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.files li > div { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.files small { display: block; color: var(--muted); font-size: .875rem; }
.files .btn { min-height: 44px; padding: 6px 14px; font-size: .9375rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.kpi { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: 12px; background: var(--mist); color: inherit; text-decoration: none; }
.kpi small { color: var(--muted); font-size: .8125rem; }
.kpi b { font-size: clamp(1.125rem, 4.6vw, 1.375rem); line-height: 1.2; overflow-wrap: anywhere; }
.kpi span { color: var(--muted); font-size: .8125rem; }
a.kpi:hover { box-shadow: inset 0 0 0 1px var(--see-2); }
.chart { margin: 0; display: grid; gap: 4px; min-width: 0; }
.plot { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 180px auto; gap: 4px 8px; }
.yaxis { display: flex; flex-direction: column; justify-content: space-between; text-align: right; color: var(--muted); font-size: .75rem; line-height: 1; margin: -.375em 0; font-variant-numeric: tabular-nums; }
.area { position: relative; }
.area .gl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); opacity: .6; }
.area .gl:last-of-type { opacity: 1; }
.area .limit { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--bad); z-index: 1; }
.area .limit span { position: absolute; right: 0; top: 2px; font-size: .75rem; font-style: normal; color: var(--bad); background: rgba(255, 255, 255, .85); padding: 0 3px; }
.ccols { position: absolute; inset: 0; display: flex; align-items: stretch; gap: 2px; z-index: 2; }
.ccol { flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: none; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.ccol b { display: block; width: 100%; max-width: 40px; background: var(--see-2); border-radius: 4px 4px 0 0; }
.ccol:hover b, .ccol:focus-visible b { background: var(--see); }
.xaxis { display: flex; gap: 2px; color: var(--muted); font-size: .75rem; }
.xaxis span { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; white-space: nowrap; }
.charttip { min-height: 1.4em; margin: 2px 0 0; font-size: .875rem; font-weight: 500; }
.chartdata summary { min-height: 32px; display: flex; align-items: center; cursor: pointer; font-size: .875rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; }
.meter { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.meter li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; }
.meter i { grid-column: 1 / -1; grid-row: 2; display: block; height: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.meter i b { display: block; height: 100%; border-radius: 4px; background: var(--see-2); }
.meter small { grid-column: 1 / -1; color: var(--muted); font-size: .8125rem; }
.gauge { height: 14px; border-radius: 7px; background: var(--mist); overflow: hidden; margin-top: 6px; }
.gauge b { display: block; height: 100%; background: var(--see-2); }
.gauge b.near { background: var(--orange); }
.gauge b.over { background: var(--bad); }
.addrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.addrow .btn { grid-column: 1 / -1; }
.addrow.text { grid-template-columns: minmax(0, 1fr); }
.xt td.pp input { vertical-align: middle; }
.xt td.pp input[type='checkbox'] { margin-right: 6px; }
.xt input:disabled { background: var(--mist); color: var(--muted); }
.xt.orders small { display: block; color: var(--muted); }
.ord-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px; }
.flow li { flex: 1 1 104px; }
.flow button { width: 100%; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--mist); color: var(--see); font: inherit; font-weight: 500; cursor: pointer; }
.flow li.on button { background: var(--see-2); color: #fff; }
.flow [aria-current] { font-weight: 700; box-shadow: inset 0 -4px 0 var(--orange); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.lines .amt { white-space: nowrap; text-align: right; }
.page.admin .totals { justify-self: end; width: min(100%, 360px); }
.page.admin .totals small { color: var(--muted); text-align: right; }
.ord-danger { display: flex; justify-content: flex-end; gap: 22px; color: var(--bad); }
.adm-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.adm-head .link { margin-left: auto; }
.adm-h { font-size: 1.5rem; }
.field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #7d93a3; background: #fff; border-radius: 10px; font: inherit; }
.xt.orders td, .xt.orders th { text-align: left; white-space: normal; }
/* Auf dem Handy wären Status und Icons weit rechts versteckt, darum wird jede Zeile zur Karte. Auch im Querformat. */
@media (max-width: 760px) {
  .xt-wrap:has(> .cards) { overflow: visible; max-height: none; box-shadow: none; }
  .cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cards, .cards tbody { display: block; }
  .cards tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px 6px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; }
  .xt.cards th, .xt.cards td { position: static; padding: 0; border: 0; background: none; }
  .xt.cards td { grid-column: 1 / -1; }
  .xt.cards td.st { grid-column: 2; grid-row: 1; }
  .xt.cards td.acts { display: flex; justify-content: flex-end; }
  .cards td[data-l]::before { content: attr(data-l) ' '; color: var(--muted); }
}
/* Das Journal braucht keine Spalte für das Datum, es steht über dem Vorgang. So bleibt auch der Rest sichtbar. */
@media (max-width: 560px) {
  .journal .xt-wrap { box-shadow: none; }
  .journal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .journal table, .journal tbody { display: block; }
  .journal tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .journal .xt td { padding: 0; border: 0; }
  .journal td:nth-child(1) { grid-column: 1 / -1; color: var(--muted); font-size: .8125rem; }
  .journal td:nth-child(2) { grid-row: 2 / span 2; }
  .journal td[data-l]::before { content: attr(data-l) ' '; color: var(--muted); }
}
.legal { max-width: 720px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.375rem; margin: 18px 0 6px; }
.legal p, .legal ul { margin: 0 0 10px; }
.shiptable { width: 100%; border-collapse: collapse; margin: 4px 0 14px; }
.shiptable th, .shiptable td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.shiptable thead th { font-size: .9375rem; color: var(--muted); }
.shiptable th:last-child, .shiptable td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }

.dropveil { position: fixed; inset: 0; z-index: 50; background: rgba(10, 114, 181, .86); display: grid; place-items: center; color: #fff; font-size: 2rem; font-weight: 700; }
.toast { position: fixed; z-index: 40; left: var(--gutter); right: var(--gutter); bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom)); background: var(--see); color: #fff; padding: 12px 16px; border-radius: 12px; text-align: center; }

@media (min-width: 620px) {
  .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .addrow { grid-template-columns: repeat(3, minmax(0, 130px)) auto; justify-content: start; }
  .addrow.text { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; justify-content: stretch; }
  .optlist li { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: end; }
  .optlist .field { grid-column: auto; }
  .optlist .field:first-of-type { grid-column: auto; }
  .rowacts { grid-column: auto; }
  .optlist input[type='checkbox'] { margin-bottom: 11px; }
  .addrow .btn { grid-column: auto; }
  .tile.lemon > img, .tile.peach > img { height: 200px; }
  .hero-actions .btn { width: auto; }
  .hero-actions .own.main { flex: 0 1 auto; }
  .foot { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: space-between; gap: 18px 40px; }
  .foot-col:first-child { grid-column: auto; }
}

@media (min-width: 900px) {
  :root { --gutter: max(40px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .main-nav { display: flex; position: static; padding: 0; background: none; box-shadow: none; border-top: 0; gap: clamp(12px, 1.6vw, 24px); margin-left: 4px; }
  .main-nav a { min-height: 44px; border-bottom: 0; }
  .main-nav a.menu-only, .menu-btn { display: none; }
  .admin-link:not([hidden]) { display: inline-flex; }
  .logo img { height: 48px; }
  .hero { position: relative; }
  .hero-stage { height: min(84svh, 62vw); max-height: 860px; min-height: 560px; }
  .hero-copy { position: absolute; z-index: 6; left: var(--gutter); top: clamp(26px, 6vh, 70px); width: min(44vw, 620px); padding: 0; }
  .hero-copy h1 { font-size: clamp(3.1rem, 5.2vw, 5rem); }
  .hero-copy .sub { color: var(--see); }
  .range { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding-top: 72px; padding-bottom: 72px; max-width: 1400px; margin: 0 auto; }
  .tile.voucher { grid-column: span 5; grid-row: span 2; padding: 34px; }
  .tile.sky { grid-column: span 4; }
  .tile.mint { grid-column: span 3; }
  .tile.lemon { grid-column: span 4; }
  .tile.peach { grid-column: span 3; }
  .tile > img, .tile.lemon > img, .tile.peach > img { height: 230px; }
  .also { grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
  .promise { grid-template-columns: 1fr 1fr; align-items: center; }
  .promise img { height: 100%; min-height: 400px; }
  .promise div { padding: 60px; }
  .pickup { grid-template-columns: 1fr 1.2fr; padding-top: 72px; padding-bottom: 72px; }
  .foot { justify-content: start; gap: 18px clamp(60px, 9vw, 130px); }
  .foot a { min-height: 26px; }
  .wiz { grid-template-columns: minmax(0, 1.5fr) minmax(400px, 1fr); grid-template-rows: 1fr; min-height: calc(100svh - 96px); padding-bottom: 0; }
  .wiz-stage, .wiz-stage:has(.look-keychain) { position: static; height: auto; min-height: 0; background: var(--wall); transition: background-color 1s ease; }
  .wiz-stage > .stage, .wiz-stage > .vstage { position: sticky; top: 0; height: calc(100svh - 100px); }
  .wiz-panel { padding: 30px 34px calc(var(--bar-h) + 40px); background: #fff; }
  /* Prozent statt 100vw: Sonst zählt die Bildlaufleiste mit, und der Balken steht über die Spalte hinaus. */
  .bar { left: auto; width: 40%; min-width: 400px; right: 0; padding-left: 34px; padding-right: 34px; }
  .bar.wide { left: 0; right: 0; width: auto; min-width: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
  .vcard { width: min(82%, 640px); }
  .co { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .co aside { position: sticky; top: 16px; }
}

@media (max-width: 399px) {
  :root { --bar-h: 128px; }
}

@media (max-width: 899px) and (max-height: 500px) {
  .wiz { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: 1fr; padding-bottom: 0; }
  .wiz-stage { height: calc(100svh - var(--bar-h)); min-height: 0; }
  .wiz-panel { padding-bottom: calc(var(--bar-h) + 24px); }
  .vstage { padding: 10px; }
  .vcard { width: 100%; }
  .scale-note { bottom: 60px; }
}

/* Alles Bedienbare reagiert auf die Maus, damit man merkt: Hier lässt sich etwas tun. */
@media (hover: hover) {
  .seg button, .seg a, .qty button, .own, .drop, .lr, .demo, .field input, .field textarea, .field select { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease; }
  .seg button:not([aria-pressed='true']):hover, .seg a:not([aria-current]):hover { background: var(--mist); box-shadow: inset 0 0 0 2px var(--see-2); }
  .qty button:hover { transform: translateY(-2px); background: var(--sky); box-shadow: 0 8px 14px -10px rgba(15, 59, 90, .6); }
  .qty button:active { transform: scale(.94); }
  .own:hover, .lr:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--see-2), 0 10px 18px -12px rgba(15, 59, 90, .55); }
  .own[aria-pressed='true']:hover { box-shadow: inset 0 0 0 3px var(--orange), 0 10px 18px -12px rgba(15, 59, 90, .55); }
  .own.main:hover { background: #ffa31a; box-shadow: 0 10px 18px -10px rgba(15, 59, 90, .6); }
  .drop:hover { transform: translateY(-2px); background: var(--sky); border-style: solid; box-shadow: 0 10px 18px -12px rgba(15, 59, 90, .55); }
  .demo:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 14px -8px rgba(15, 59, 90, .6); }
  .btn.ghost:not([disabled]):hover { background: var(--mist); }
  .tile.voucher:hover .vfan .vcard:first-child { transform: translate(-16%, -7%) rotate(-10deg); }
  .tile.voucher:hover .vfan .vcard:nth-child(2) { transform: translate(15%, 10%) rotate(7deg); }
  .vpick a { transition: transform .16s ease, box-shadow .16s ease; }
  .vpick a:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(15, 59, 90, .7); }
  .field input:not(:focus):not(:disabled):not([readonly]):hover,
  .field textarea:not(:focus):not(:disabled):not([readonly]):hover,
  .field select:not(:focus):not(:disabled):hover { border-color: var(--see-2); box-shadow: 0 0 0 3px rgba(10, 114, 181, .14); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile.voucher .vfan.fly .vcard:first-child { transform: translate(-26%, -16%) rotate(-14deg) scale(1.03); }
  .tile.voucher .vfan.fly .vcard:nth-child(2) { transform: translate(25%, 18%) rotate(11deg) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
