/* Maison Démon Souriant – Garderobe nach Ladenschluss */

@font-face { font-family: "Maison Display"; src: url("/fonts/roman-display.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Maison Text"; src: url("/fonts/roman-text.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Maison Text"; font-style: italic; src: url("/fonts/roman-italic.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Maison Mono"; src: url("/fonts/mono.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Maison Mono"; font-weight: 700; src: url("/fonts/mono-bold.woff") format("woff"); font-display: swap; }

:root {
  --walnut: #2b201b;
  --walnut-deep: #1c1512;
  --brass: #b4945e;
  --linen: #ece3d3;
  --linen-dim: #b9ad9a;
  --ink: #1e2431;
  --oxblood: #6d1f25;
  --paper: #f3ece0;
  --paper-line: #d8ccb8;

  --display: "Maison Display", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Maison Text", Georgia, serif;
  --mono: "Maison Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--text); color: var(--ink); background: var(--paper); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.small { font-size: .85rem; }
.error { color: var(--oxblood); font-family: var(--mono); font-size: .9rem; min-height: 1.2em; margin: 0; }

/* ---------- Garderobe (Startseite) ---------- */
body.wardrobe {
  background: var(--walnut-deep);
  color: var(--linen);
}
.room {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 60% 55% at 50% 30%, rgba(236, 200, 140, .16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 2px, transparent 2px 140px),
    linear-gradient(var(--walnut), var(--walnut-deep));
}

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px clamp(16px, 4vw, 48px);
}
.logotype { font-family: var(--display); font-size: 1.15rem; letter-spacing: .02em; text-decoration: none; }
.order-slip-btn {
  white-space: nowrap;
  font: 15px var(--mono); color: var(--linen); background: none; cursor: pointer;
  border: 1px solid rgba(236, 227, 211, .35); border-radius: 2px; padding: 7px 12px;
}
.order-slip-btn:hover { border-color: var(--brass); }

.drop-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  padding: 2vh clamp(16px, 4vw, 48px) 0;
}
.drop-title {
  font-family: var(--display); font-weight: 400; margin: 0; line-height: .9;
  font-size: clamp(3.4rem, 11vw, 9rem); letter-spacing: -.02em;
  color: var(--linen);
  text-shadow: 0 0 40px rgba(236, 200, 140, .25);
}
.drop-sub { font-style: italic; color: var(--linen-dim); margin: .5em 0 0; padding-top: .4em; max-width: 34ch; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.filters button {
  font: 14px var(--mono); color: var(--linen-dim); background: rgba(0,0,0,.25); cursor: pointer;
  border: 1px solid rgba(236, 227, 211, .2); border-radius: 999px; padding: 6px 12px;
}
.filters button[aria-pressed="true"] { color: var(--walnut-deep); background: var(--linen); border-color: var(--linen); }
.filters sup { font-size: .7em; margin-left: 3px; }

/* Stange */
.rail-wrap { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 4vh 0 2vh; }
.rail-bar {
  position: absolute; left: 0; right: 0; top: calc(4vh + 26px); height: 7px;
  background: linear-gradient(#e2c891, var(--brass) 45%, #6f5631);
  box-shadow: 0 4px 10px rgba(0,0,0,.5);
}
.rail {
  position: relative;
  display: flex; gap: 0;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0 clamp(16px, 8vw, 120px) 24px;
  cursor: grab;
  touch-action: pan-x;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; }
.rail.dragging .garment { pointer-events: none; }

.garment {
  flex: 0 0 auto;
  width: clamp(180px, 22vw, 280px);
  margin-right: clamp(-70px, -5vw, -40px);
  background: none; border: 0; padding: 0; cursor: pointer;
  transform-origin: 50% 8px;
  transition: transform .35s cubic-bezier(.3,.7,.3,1), opacity .35s, filter .35s;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.45));
}
.garment svg { display: block; width: 100%; height: auto; }
.garment:hover, .garment:focus-visible { transform: rotate(-2.5deg) translateY(-4px); z-index: 2; }
.garment[hidden] { display: none; }
.garment.taken { transform: translateY(60px) rotate(4deg); opacity: 0; pointer-events: none; }
.rail.has-open .garment:not(.taken) { filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)) brightness(.55); }

.rail-hint { font: 14px var(--mono); color: var(--linen-dim); text-align: center; margin: 0; }

/* Laufband */
.ticker { background: var(--oxblood); color: var(--linen); overflow: hidden; border-top: 1px solid #8a333a; }
.ticker-track { display: flex; width: max-content; animation: ticker 50s linear infinite; }
.ticker span { font: 15px/1 var(--mono); padding: 12px 0; white-space: nowrap; }
.ticker span::after { content: "✕"; margin: 0 22px; color: var(--brass); font-size: .8em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Datenblatt */
.sheet {
  position: fixed; z-index: 20;
  right: clamp(16px, 4vw, 48px); top: 50%; transform: translateY(-50%);
  width: min(460px, calc(100vw - 32px)); max-height: calc(100svh - 40px); overflow-y: auto;
  background: rgba(28, 21, 18, .78);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(180, 148, 94, .55); border-radius: 6px;
  color: var(--linen); font-family: var(--mono); font-size: 15px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.sheet[hidden] { display: none; }
.sheet-inner { padding: 22px 24px 24px; }
.sheet-tag { display: flex; justify-content: space-between; color: var(--brass); font-size: 13px; margin-bottom: 14px; }
.sheet h2 { font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1; margin: 0 0 6px; }
.sheet .motto { font-family: var(--text); font-style: italic; color: var(--linen-dim); margin: 0 0 18px; font-size: 1.05rem; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; }
.sheet dt { color: var(--linen-dim); }
.sheet dd { margin: 0; text-align: right; }
.sheet .desc { font-family: var(--text); font-size: 1rem; line-height: 1.55; margin: 0 0 18px; color: var(--linen); }
.choice { margin: 0 0 14px; border: 0; padding: 0; }
.choice legend { color: var(--linen-dim); margin-bottom: 6px; padding: 0; }
.choice div { display: flex; flex-wrap: wrap; gap: 6px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-block; min-width: 44px; text-align: center; padding: 7px 10px; cursor: pointer;
  border: 1px solid rgba(236, 227, 211, .3); border-radius: 2px;
}
.choice input:checked + span { background: var(--linen); color: var(--walnut-deep); border-color: var(--linen); }
.choice input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.fit-help { margin: -4px 0 16px; color: var(--linen-dim); font-size: 14px; }
.fit-help p { margin: 0 0 4px; }
.fit-help summary { cursor: pointer; color: var(--linen); margin-top: 6px; }
.fit-help table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.fit-help th, .fit-help td { text-align: left; padding: 4px 6px; border-bottom: 1px solid rgba(236,227,211,.15); }
.fit-help th { color: var(--linen-dim); font-weight: 400; }
.fit-help td { color: var(--linen); }
#sheet-chart[hidden], #sheet-model[hidden] { display: none; }
.sheet-price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed rgba(236,227,211,.3); padding-top: 14px; margin-bottom: 14px; }
.sheet-price strong { font-family: var(--display); font-weight: 400; font-size: 1.8rem; }
.sheet-actions { display: grid; gap: 8px; }
.btn {
  font: 700 15px var(--mono); background: var(--oxblood); color: var(--linen); border: 1px solid #8a333a;
  padding: 13px 16px; cursor: pointer; border-radius: 2px;
}
.btn:hover { background: #7f262d; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-quiet { font: 15px var(--mono); background: none; color: var(--linen-dim); border: 1px solid rgba(236,227,211,.25); padding: 11px 16px; cursor: pointer; border-radius: 2px; }
.added { color: var(--brass); margin: 10px 0 0; min-height: 1.2em; }

/* Geschichte + Fuß */
.story { max-width: 640px; margin: 0 auto; padding: 96px clamp(16px, 4vw, 48px); }
.story p { font-size: 1.3rem; line-height: 1.6; margin: 0 0 1em; }
.story p:first-child::first-letter { font-family: var(--display); font-size: 3.4em; float: left; line-height: .85; margin: 6px 10px 0 0; color: var(--brass); }
footer.site { border-top: 1px solid rgba(180,148,94,.3); padding: 28px clamp(16px, 4vw, 48px) 40px; font: 14px var(--mono); color: var(--linen-dim); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--linen); text-decoration: underline; }

/* ---------- Bestellzettel ---------- */
dialog.slip {
  border: 0; padding: 0; width: min(480px, calc(100vw - 24px)); max-height: calc(100svh - 24px);
  background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 15px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(30,36,49,.06) 27px 28px);
}
dialog.slip::backdrop { background: rgba(20, 14, 12, .7); }
.slip-inner { padding: 26px 26px 22px; }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 12px; }
.slip-head h2 { font: 700 18px var(--mono); margin: 0; }
.slip-close { background: none; border: 0; font: 22px var(--mono); cursor: pointer; color: var(--ink); }
.slip-line { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.slip-line .what { flex: 1; min-width: 0; display: flex; align-items: baseline; }
.slip-line .what::after { content: ""; flex: 1; min-width: 12px; margin-left: 8px; border-bottom: 1px dotted #9d927f; }
.slip-line button { background: none; border: 0; color: var(--oxblood); cursor: pointer; font: 15px var(--mono); }
.slip-total { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 8px; }
.slip-total div { display: flex; justify-content: space-between; }
.slip-total .sum { font-weight: 700; font-size: 17px; }
.slip-empty { color: #6f6a62; }
form.checkout { display: grid; gap: 8px; margin-top: 18px; }
form.checkout input[type=text], form.checkout input[type=email], form.checkout input:not([type]) {
  font: 15px var(--mono); padding: 9px 10px; border: 0; border-bottom: 1px solid var(--ink); background: rgba(255,255,255,.5); width: 100%; border-radius: 0;
}
form.checkout .row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
form.checkout label.terms { font-size: 13px; line-height: 1.45; display: flex; gap: 8px; align-items: flex-start; }
form.checkout label.terms input { margin-top: 3px; }
.slip .btn { margin-top: 6px; }
.slip-note { font-family: var(--text); font-size: 1rem; line-height: 1.5; margin: 18px 0 4px; }
.slip-note.invited { margin: 0 0 6px; }
.slip-done { font-family: var(--text); font-size: 1.05rem; line-height: 1.5; margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--oxblood); background: rgba(255,255,255,.5); }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.have-invite { margin-top: 16px; font-size: 14px; }
.have-invite summary { cursor: pointer; color: var(--oxblood); }
.invite-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.invite-form input { font: 15px var(--mono); padding: 9px 10px; border: 0; border-bottom: 1px solid var(--ink); background: rgba(255,255,255,.5); text-transform: uppercase; border-radius: 0; min-width: 0; }
.invite-form .btn-quiet { color: var(--ink); border-color: var(--ink); }
#interest-box[hidden], #checkout-form[hidden], #interest-form[hidden] { display: none; }
.slip .btn-quiet { color: var(--ink); border-color: var(--paper-line); }

/* ---------- Textseiten (Rechtliches, Danke) ---------- */
.page { max-width: 720px; margin: 48px auto; padding: 0 16px; }
.page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.05; }
.page h2 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; margin-top: 2em; }
.page h3 { font-size: 1rem; margin-top: 1.5em; }
.page p { max-width: 68ch; }
.page form.checkout { max-width: 440px; }
.page .btn { color: var(--paper); }
.gap { background: #fff6d6; border-bottom: 2px dashed #c9a400; padding: 0 4px; }
.box { border: 1px solid var(--paper-line); background: #fff; padding: 16px 20px; }
.stand { color: #6f6a62; font-size: .9rem; margin-top: 3em; }

/* ---------- Handy ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .logotype { font-size: 1rem; }
  .order-slip-btn { font-size: 13px; padding: 6px 9px; }
  .drop-head { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .garment { width: 62vw; margin-right: -22vw; }
  .rail { scroll-snap-type: x mandatory; padding: 0 19vw 20px; cursor: auto; }
  .garment { scroll-snap-align: center; }
  .sheet { top: auto; bottom: 0; right: 0; left: 0; transform: none; width: 100%; max-height: 82svh; border-radius: 10px 10px 0 0; }
  .story p { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .garment { transition: none; }
}
