:root {
  --wall: #dfe3e6;
  --wall-deep: #cfd5da;
  --paper: #ffffff;
  --ink: #171a1f;
  --slate: #56606c;
  --line: #c4cbd2;
  --accent: #2446d8;
  --accent-ink: #ffffff;
  --good: #1f7a4d;
  --bad: #b3261e;
  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Avenir Next Condensed", "Segoe UI Variable Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 1rem/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
[hidden] { display: none !important; }

.top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 3rem) 0; }
.brand { font: 700 1.15rem/1 var(--display); letter-spacing: 0.02em; text-decoration: none; }
.top-note { margin: 0; color: var(--slate); font-size: 0.9rem; text-align: right; }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; max-width: 86rem; margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 4vw, 3rem) 4rem; }

.intro h1 { font-size: clamp(2.6rem, 7vw, 5.25rem); font-weight: 700; }
.intro p { margin: 0.6rem 0 0; color: var(--slate); max-width: 38rem; font-size: 1.08rem; }

/* Der Kalender hängt an der Wand: Drahtbindung oben, Blatt darunter */
.hang { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(0.25rem, 1.5vw, 1rem); margin-top: clamp(1.75rem, 4vw, 3rem); }
.sheet { margin: 0; background: var(--paper); border-radius: 3px; position: relative; box-shadow: 0 1px 0 #fff inset, 0 2px 3px rgba(23, 26, 31, .12), 0 22px 40px -18px rgba(23, 26, 31, .45); }
.binding { height: 22px; margin: 0 5%; position: relative; top: -11px; margin-bottom: -14px;
  background: repeating-linear-gradient(90deg, transparent 0 7px, #2b3038 7px 10px, transparent 10px 13px, #2b3038 13px 16px, transparent 16px 24px);
  -webkit-mask: linear-gradient(#000, #000) top / 100% 100% no-repeat; opacity: .92; }
.sheet-view { display: block; width: 100%; padding: clamp(0.5rem, 1.4vw, 1rem); padding-top: 0.35rem; border: 0; background: none; cursor: zoom-in; }
.sheet-view img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.sheet.turn .sheet-view { animation: turn .28s ease-out; transform-origin: top center; }
@keyframes turn { from { opacity: 0; transform: perspective(900px) rotateX(-14deg); } to { opacity: 1; transform: none; } }
.blank { display: grid; place-content: center; gap: 0.25rem; aspect-ratio: 3 / 2; background: linear-gradient(160deg, #f3f5f7, #e6eaee); text-align: center; cursor: default; }
.blank b { font: 700 clamp(2rem, 6vw, 4rem)/1 var(--display); }
.blank i { font-style: normal; color: var(--slate); }
.sheet figcaption { display: flex; justify-content: space-between; padding: 0 clamp(0.75rem, 1.6vw, 1.1rem) 0.8rem; font-size: 0.95rem; }
#pageLabel { font-weight: 600; }
#pageCount { color: var(--slate); font-variant-numeric: tabular-nums; }

.nav { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; flex: none; }
.nav svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav:hover { border-color: var(--ink); }

/* Jahresleiste: jede Seite ein Feld */
.year { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: 0.5rem; }
.year button { width: 100%; padding: 0.3rem 0.3rem 0.35rem; border: 1px solid transparent; border-radius: 4px; background: rgba(255, 255, 255, .55); cursor: pointer; text-align: left; font-size: 0.8rem; color: var(--slate); }
.year button:hover { background: var(--paper); }
.year button[aria-current="true"] { background: var(--paper); border-color: var(--ink); color: var(--ink); font-weight: 600; }
.year .thumb { display: block; aspect-ratio: 3 / 2; background: var(--wall-deep) center / cover no-repeat; border-radius: 2px; margin-bottom: 0.3rem; }
.about { margin: 2rem 0 0; max-width: 40rem; color: var(--slate); white-space: pre-line; }

/* Bestellkarte */
.order { position: sticky; top: 1.25rem; }
.card { background: var(--paper); border-radius: 6px; padding: clamp(1.15rem, 2.5vw, 1.75rem); box-shadow: 0 2px 3px rgba(23, 26, 31, .1), 0 18px 36px -22px rgba(23, 26, 31, .4); }
.card h2 { font-size: 1.7rem; font-weight: 700; }
.price { margin: 0.5rem 0 1.1rem; color: var(--slate); }
.price strong { color: var(--ink); font-size: 1.15rem; }
.qty-row { display: flex; justify-content: space-between; align-items: center; }
.qty-row label { font-weight: 600; }
.stepper { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stepper button { width: 2.75rem; height: 2.75rem; border: 0; background: #f1f3f5; font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: var(--wall); }
.stepper input { width: 3.5rem; border: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.sum { margin: 1.1rem 0; padding: 0.85rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; font-variant-numeric: tabular-nums; }
.sum dt { color: var(--slate); }
.sum dd { margin: 0; text-align: right; }
.sum .total { color: var(--ink); font-weight: 700; font-size: 1.15rem; padding-top: 0.45rem; }
.sum .minus { color: var(--good); }

.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: 0.6rem 1.1rem; border-radius: 6px; border: 1px solid var(--ink); background: var(--paper); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: #f1f3f5; }
.btn.primary { width: 100%; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 1.05rem; }
.btn.primary:hover { background: #1b37b4; }
.btn.small { min-height: 2.75rem; white-space: nowrap; }
.btn[disabled] { opacity: .6; cursor: progress; }
.hint { margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--slate); }
.back { border: 0; background: none; padding: 0; margin: 0 0 0.9rem; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.9rem; }

.field { margin-top: 0.85rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.25rem; }
.opt { font-weight: 400; color: var(--slate); }
.field input, .field textarea { width: 100%; min-height: 2.75rem; padding: 0.55rem 0.7rem; border: 1px solid #99a3ae; border-radius: 6px; background: #fff; }
.field textarea { resize: vertical; }
.field input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; }
.coupon { display: flex; gap: 0.5rem; }
#coupon { text-transform: uppercase; }
.err { margin: 0.25rem 0 0; color: var(--bad); font-size: 0.88rem; }
.err:empty, .ok:empty { display: none; }
.ok { margin: 0.25rem 0 0; color: var(--good); font-size: 0.88rem; font-weight: 600; }
.form-err { margin-bottom: 0.6rem; font-weight: 600; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; margin-top: 1rem; font-size: 0.9rem; align-items: start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tick { width: 3rem; height: 3rem; border-radius: 50%; background: var(--good); display: grid; place-items: center; margin-bottom: 0.9rem; }
.tick svg { width: 1.6rem; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#stepDone p { color: var(--slate); margin: 0.6rem 0 0; }

.foot { display: flex; gap: 1.5rem; justify-content: center; padding: 1.5rem 1rem 2.5rem; font-size: 0.9rem; color: var(--slate); }
.mobile-bar { display: none; }

dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(23, 26, 31, .82); }
.lightbox { background: none; width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 1fr auto; align-items: center; gap: 0.5rem; padding: 3.25rem clamp(0.5rem, 2vw, 1.5rem) 1rem; }
.lightbox img { max-height: calc(100dvh - 7rem); margin: 0 auto; object-fit: contain; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox p { grid-column: 1 / -1; margin: 0; text-align: center; color: #fff; }
.lb-close { position: absolute; top: 0.6rem; right: 0.8rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.text-dialog { width: min(44rem, calc(100vw - 2rem)); max-height: 85dvh; border-radius: 6px; padding: 2rem clamp(1.1rem, 4vw, 2.25rem); overflow: auto; }
.text-dialog .lb-close { position: sticky; float: right; top: 0; background: var(--wall); }
.text-dialog h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.text-dialog div { white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 60rem) {
  .stage { grid-template-columns: minmax(0, 1fr); padding-bottom: 6rem; }
  .order { position: static; }
  .hang { grid-template-columns: minmax(0, 1fr); }
  .hang .nav { display: none; }
  .year { grid-auto-flow: column; grid-auto-columns: 5rem; grid-template-columns: none; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x proximity; }
  .year li { scroll-snap-align: start; }
  .mobile-bar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 5; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); font-weight: 600; }
  .mobile-bar .btn { width: auto; min-height: 2.75rem; }
  .mobile-bar.off { display: none; }
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); }
  .lightbox .nav { position: absolute; bottom: 0.75rem; }
  .lightbox .prev { left: 1rem; } .lightbox .next { right: 1rem; }
  .top-note { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sheet.turn .sheet-view { animation: none; } }
