/* Fellnasenjahr. Palette taken from the calendar cover painting: dusk lavender sky, night blue,
   lamplight gold. Papier is the printed calendar paper; Beere is the order button only. */
@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --papier: #FBF7F0;
  --lila: #E8E2F1;
  --lila-tief: #CFC4E3;
  --nacht: #26233A;
  --nacht-2: #3A3654;
  --gold: #EDB04A;
  --beere: #B3243B;
  --beere-dunkel: #921A2E;
  --grau: #6B6577;
  --linie: #E1DAE6;
  --display: "Young Serif", Georgia, serif;
  --sans: "Figtree", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--nacht); font: 400 17px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--beere); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 9.6vw, 4.9rem); }
h2 { font-size: clamp(2rem, 6.4vw, 3.1rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--grau); }
.small { font-size: .875rem; }
.paw { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* wordmark: letter-spaced capitals over a thin rule, exactly like the calendar cover */
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--nacht); }
.brand b { font: 400 1.05rem/1 Georgia, serif; letter-spacing: .32em; margin-right: -.32em; }
.brand i { display: block; width: 36px; height: 1px; background: currentColor; margin-top: 6px; }
.top { padding: 18px 0; text-align: center; }
body > .top { border-bottom: 1px solid var(--linie); }

/* Christmas deadline bar */
.xmas { background: var(--nacht); color: #fff; font-size: .9rem; line-height: 1.35; }
.xmas p { margin: 0; padding: 10px 16px; display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; }
.xmas .paw { color: var(--gold); width: 1.15em; height: 1.15em; }
.xmas strong { color: var(--gold); font-weight: 700; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; cursor: pointer;
  text-decoration: none; text-align: center; background: var(--beere); color: #fff;
  font: 700 1.15rem/1.2 var(--sans); padding: 18px 30px; border-radius: 14px; min-height: 60px;
  box-shadow: 0 6px 0 var(--beere-dunkel); transition: transform .08s, box-shadow .08s;
}
.btn:hover { background: #A61F35; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--beere-dunkel); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { display: flex; width: 100%; }
.cta-note { font-size: .82rem; color: var(--grau); margin: 14px 0 0; line-height: 1.45; }
.cta-note a { color: inherit; }
.price-line { font-size: .95rem; margin: 12px 0 0; }
.price-line b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }

section { padding: 64px 0; }

/* hero: the dusk sky of the cover, fading into the paper */
.hero { padding: 0 0 48px; background: linear-gradient(180deg, var(--lila) 0%, #EFEAF4 55%, var(--papier) 100%); }
.hero-grid { display: grid; gap: 18px; grid-template-areas: "title" "img" "buy"; }
.hero h1 { grid-area: title; margin: 8px 0 0; }
.hero-img { grid-area: img; margin: 0 -8px; }
.hero-img img { aspect-ratio: 5 / 4; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 48px -18px rgba(38, 35, 58, .45); width: 100%; }
.hero-buy { grid-area: buy; }
.hero .lead { font-size: 1.1rem; margin-bottom: 16px; }

/* the hook: photo -> painted July, with the likeness checklist written onto the painting */
.hook { text-align: center; overflow: hidden; }
.hook-line { font-family: var(--display); font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.hook-grid { display: grid; justify-items: center; gap: 6px; }
.polaroid { margin: 22px 0 0; background: #fff; padding: 12px 12px 14px; width: min(62vw, 260px); transform: rotate(-3deg);
  box-shadow: 0 14px 30px -12px rgba(38, 35, 58, .35); position: relative; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(2deg);
  background: rgba(237, 176, 74, .55); }
.polaroid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.polaroid figcaption { font-family: var(--display); font-size: 1rem; color: var(--grau); margin-top: 8px; }
.arrow { color: var(--gold); width: 110px; height: auto; }
.arrow-h { display: none; }
.annotated { position: relative; width: 100%; margin-top: 18px; background: #fff; padding: 8px; border-radius: 10px;
  box-shadow: 0 18px 36px -18px rgba(38, 35, 58, .5); }
.annotated img { width: 100%; border-radius: 4px; }
.annotated svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); pointer-events: none; }
.annotated svg line { stroke: var(--beere); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.annotated svg circle { fill: var(--beere); }
.note { position: absolute; font-size: .74rem; line-height: 1.2; color: var(--beere); font-weight: 700; white-space: nowrap;
  background: rgba(255, 255, 255, .9); padding: 2px 6px; border-radius: 6px; }
.note.n1 { left: 3%; top: 5%; }
.note.n2 { right: 3%; top: 9%; }
.note.n3 { left: 3%; top: 83%; }
.hook .after-note { max-width: 34rem; margin: 26px auto 0; color: var(--grau); }

/* steps: a real sequence, so numbered */
.steps-sec { background: #fff; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 26px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); font: 400 3.2rem/1 var(--display); color: var(--lila-tief); grid-row: span 2; }
.steps h3 { margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--grau); }

/* month gallery: a wall calendar you flip; pages lift up over the Wire-O like the real one */
.months { background: var(--lila); }
.months .intro { max-width: 40rem; }
.months-grid > * { min-width: 0; }
.index { list-style: none; margin: 18px -16px 0; padding: 0 16px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.index::-webkit-scrollbar { display: none; }
.index button { font: 400 1.05rem var(--display); background: none; border: 0; padding: 8px 12px; cursor: pointer; color: var(--grau);
  white-space: nowrap; border-radius: 999px; min-height: 40px; }
.index button[aria-current="true"] { background: var(--nacht); color: #fff; }
.index button:focus-visible, .calnav button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wallcal { margin: 30px 0 0; width: 100%; max-width: 760px; }
.binding { height: 22px; margin: 0 5%; position: relative; z-index: 20;
  background: repeating-linear-gradient(90deg, transparent 0 5px, var(--nacht-2) 5px 7px, transparent 7px 9px, var(--nacht-2) 9px 11px, transparent 11px 16px); }
.binding::after { content: ""; position: absolute; left: 50%; top: -12px; width: 26px; height: 22px; transform: translateX(-50%);
  border: 2px solid var(--nacht-2); border-bottom: 0; border-radius: 14px 14px 0 0; }
.sheets { position: relative; aspect-ratio: 4 / 3.62; perspective: 1800px; margin-top: -8px; }
.sheet { position: absolute; inset: 0; margin: 0; background: #fff; padding: 4.5% 4% 0; border-radius: 4px 4px 10px 10px; transform-origin: 50% 0;
  transition: transform .8s cubic-bezier(.45, .05, .3, 1), opacity .2s linear; backface-visibility: hidden;
  box-shadow: 0 18px 34px -20px rgba(38, 35, 58, .55); cursor: pointer; }
.sheet img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.sheet .label { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 2px 0; }
.sheet .label span:first-child { font-family: var(--display); font-size: clamp(1.35rem, 4vw, 1.9rem); }
.sheet .label span:last-child { font-family: var(--display); font-size: 1.1rem; color: var(--grau); }
.sheet.up { transform: rotateX(-118deg); opacity: 0; pointer-events: none;
  transition: transform .8s cubic-bezier(.45, .05, .3, 1), opacity .2s linear .6s; } /* the page stays visible while it swings up */
.calnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.calnav button { font: 600 .95rem var(--sans); background: #fff; border: 1px solid var(--lila-tief); color: var(--nacht);
  min-height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer; }
.calnav #next { background: var(--nacht); border-color: var(--nacht); color: #fff; }
.calnav button:disabled { opacity: .4; cursor: default; }
.calnav output { font-size: .9rem; color: var(--grau); text-align: center; }
.swipe-hint { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .85rem; color: var(--grau); margin: 12px 0 0; }
.swipe-hint .paw { color: var(--nacht-2); }

/* one full page, large */
.page-sec .grid { display: grid; gap: 30px; align-items: start; }
.page-shot { background: #fff; padding: 10px; border-radius: 6px; box-shadow: 0 22px 44px -22px rgba(38, 35, 58, .5); }
.toggle { display: inline-flex; border: 1px solid var(--lila-tief); border-radius: 999px; overflow: hidden; margin: 0 0 14px; background: #fff; }
.toggle button { border: 0; background: none; padding: 9px 18px; cursor: pointer; font: 600 .95rem var(--sans); color: var(--nacht); min-height: 44px; }
.toggle button[aria-pressed="true"] { background: var(--nacht); color: #fff; }
.toggle button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.spec-list { list-style: none; padding: 0; margin: 0 0 26px; }
.spec-list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.spec-list li span:first-child { color: var(--grau); }

/* lifestyle */
.life h2 { max-width: 20ch; }
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.strip img { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.strip img:last-child { grid-column: span 2; aspect-ratio: 16 / 10; }

/* faq */
.faq { background: #fff; }
.faq .wrap { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 1.08rem/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--beere);
  border-bottom: 2px solid var(--beere); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details p { color: #4a4558; }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* final call: night sky */
.final { background: var(--nacht); color: #fff; text-align: center; position: relative; overflow: hidden; }
.final h2 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.final .price-line, .final .cta-note { color: #CFC9DC; }
.final .btn { min-width: min(100%, 340px); box-shadow: 0 6px 0 #5E1020; }
.final .trail { color: var(--gold); display: flex; justify-content: center; gap: 18px; margin-bottom: 18px; opacity: .9; }
.final .trail .paw:nth-child(odd) { transform: translateY(6px) rotate(-12deg); }
.final .trail .paw:nth-child(even) { transform: rotate(12deg); }

footer { padding: 32px 0 120px; font-size: .9rem; color: var(--grau); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer a { color: var(--nacht); }

/* sticky CTA on mobile */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 240, .97); border-top: 1px solid var(--linie); transform: translateY(110%); transition: transform .25s; }
.sticky.show { transform: none; }
.sticky form { margin: 0; }
.sticky .btn { min-height: 54px; padding: 14px 20px; }

/* forms (Bestellung abschließen) */
.card { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 22px 18px; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .85rem; color: var(--grau); margin: 4px 0 0; }
.field .err { font-size: .85rem; color: var(--beere); margin: 4px 0 0; }
input[type=text], select {
  width: 100%; font: inherit; color: var(--nacht); background: var(--papier); border: 1px solid #CBC2D6;
  border-radius: 10px; padding: 12px; min-height: 48px;
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); border-color: var(--nacht); }
.row { display: grid; grid-template-columns: 7rem 1fr; gap: 10px; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; border: 1px solid #CBC2D6; border-radius: 10px; padding: 12px; text-align: center; cursor: pointer; font-weight: 400; background: var(--papier); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { font-weight: 700; }
.seg label:has(input:checked) { border-color: var(--nacht); background: var(--lila); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--gold); }
.drop { display: block; border: 2px dashed #CBC2D6; border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; background: var(--papier); }
.drop:hover { border-color: var(--nacht); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop img { max-height: 260px; margin: 0 auto 10px; border-radius: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--beere); }
.notice { border-left: 3px solid var(--lila-tief); background: #fff; padding: 14px 16px; border-radius: 0 12px 12px 0; margin-bottom: 18px; }
.notice.ok { border-color: #5d8a5a; }
.notice.bad { border-color: var(--beere); }
[hidden] { display: none !important; }

/* legal pages */
.legal { max-width: 760px; padding-bottom: 40px; }
.legal h1 { font-size: 2.2rem; margin-top: 32px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal .spec-list li { grid-template-columns: 9rem 1fr; }
.draft { background: #FFF3C4; border: 1px solid #E6C65C; padding: 12px 14px; border-radius: 8px; font-size: .9rem; }
mark.todo { background: #FFE066; padding: 0 3px; }

@media (min-width: 760px) {
  body { font-size: 18px; }
  section { padding: 96px 0; }
  .wrap { padding: 0 32px; }
  .hero { padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1.08fr 1fr; grid-template-areas: "title img" "buy img"; gap: 0 64px; align-items: end; }
  .hero h1 { font-size: clamp(3.4rem, 5.6vw, 4.6rem); }
  .hero-img img { aspect-ratio: 1; }
  .hero h1 { align-self: end; margin-top: 24px; }
  .hero-buy { align-self: start; padding-top: 18px; }
  .hero-img { margin: 0; }
  .btn-block { width: auto; display: inline-flex; min-width: 340px; }

  .hook-line { font-size: clamp(2.2rem, 3vw, 2.8rem); }
  .hook-grid { grid-template-columns: 1.1fr auto 1.6fr; align-items: center; gap: 12px 24px; text-align: left; }
  .hook-grid .hook-line.a { grid-column: 1; grid-row: 1; justify-self: center; }
  .hook-grid .hook-line.b { grid-column: 3; grid-row: 1; justify-self: center; }
  .polaroid { grid-column: 1; grid-row: 2; width: 280px; }
  .arrow-v { display: none; }
  .arrow-h { display: block; grid-column: 2; grid-row: 2; width: 130px; }
  .annotated { grid-column: 3; grid-row: 2; margin: 0; padding: 10px; }
  .annotated svg { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .note { font-size: .88rem; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; font-size: 4rem; margin-bottom: 6px; }

  .months-grid { display: grid; grid-template-columns: 1fr 1.75fr; gap: 0 64px; align-items: start; }
  .months-head { position: sticky; top: 40px; }
  .index { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin: 26px 0 0; padding: 0; overflow: visible; }
  .index button { text-align: left; font-size: 1.2rem; padding: 6px 14px; width: 100%; }
  .wallcal { margin: 8px 0 0 auto; }
  .swipe-hint { display: none; }

  .page-sec .grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .strip { grid-template-columns: 1fr 1fr 1.6fr; gap: 16px; }
  .strip img:last-child { grid-column: auto; aspect-ratio: 4 / 5; }

  .sticky { display: none; }
  footer { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky, .btn { transition: none; }
  .sheet { transition: opacity .2s; }
  .sheet.up { transform: none; }
}

/* "Bald verfügbar" page shown until launch */
.soon { min-height: 100vh; }

/* cookie consent: both choices equally prominent; above the sticky order button */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; max-width: 560px; margin: 0 auto;
  background: #fff; color: var(--nacht); border: 1px solid var(--linie); border-radius: 14px; padding: 16px;
  box-shadow: 0 18px 40px -18px rgba(38, 35, 58, .5); font-size: .9rem; line-height: 1.45; }
.consent p { margin: 0 0 12px; }
.consent a { color: var(--beere); }
.consent-actions { display: flex; gap: 10px; }
.consent-btn { flex: 1; min-height: 46px; border-radius: 999px; border: 2px solid var(--nacht); background: #fff; color: var(--nacht);
  font: 700 .95rem var(--sans); cursor: pointer; }
.consent-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* mobile: one slim row at the very bottom, short text, both buttons the same size; keeps the hero order
   button clear. The sticky order button moves up above it (--consent-h is set by consent.js) */
.consent-short { display: none; }
@media (max-width: 759px) {
  .consent { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; border-width: 1px 0 0;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px;
    font-size: .74rem; line-height: 1.25; box-shadow: 0 -10px 24px -14px rgba(38, 35, 58, .45); }
  .consent[hidden] { display: none; }
  .consent p { margin: 0; flex: 1; min-width: 0; }
  .consent-long { display: none; }
  .consent-short { display: inline; }
  .consent-actions { flex: 0 0 64%; gap: 6px; }
  .consent-btn { flex: 1 1 0; min-width: 0; min-height: 34px; padding: 0 6px; font-size: .74rem; border-width: 1.5px; }
  .sticky { bottom: var(--consent-h, 0px); }
}

