/* susewind.shop: one stylesheet. Calm like a textile catalogue: one typeface (Figtree, self-hosted),
   one brand colour (Navy #002060), warm paper tones, hairlines instead of boxes.
   Colours, spacing and radii live only as tokens in :root. */
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #002060;
  --navy-700: #00174a;
  --navy-050: #eef1f8;
  --ink: #16181d;
  --muted: #61656f;
  --line: #e4e0d7;
  --paper: #fbfaf7;
  --cream: #f3efe7;
  --surface: #ffffff;
  --ok-bg: #eaf3ec;
  --ok-fg: #1d5a35;
  --warn-bg: #fdf3e0;
  --warn-fg: #6f4500;
  --err-bg: #fbeaea;
  --err-fg: #8a1d1d;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 56px;
  --r: 6px;
  --page: 1160px;
  --tap: 48px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* grid/flex rules would otherwise beat the attribute */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 2px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: 1.85rem; font-weight: 550; margin: 0 0 var(--s-3); }
h2 { font-size: 1.25rem; font-weight: 600; margin: var(--s-6) 0 var(--s-3); }
p { margin: 0 0 var(--s-3); }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--s-4); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--s-4); top: var(--s-4); background: var(--surface); padding: var(--s-2); z-index: 20; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* frame */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand img { width: 84px; }
.head-nav { display: none; gap: var(--s-5); font-size: 0.95rem; }
.head-nav a { color: var(--muted); text-decoration: none; }
.head-nav a:hover { color: var(--navy); }
.head-end { display: flex; align-items: center; gap: var(--s-5); }
.head-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); color: var(--navy); }
.head-cart-count { position: absolute; top: 3px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
main { padding-bottom: var(--s-7); }
.site-foot { border-top: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: 0.9rem; padding: var(--s-6) 0; }
.foot-grid { display: grid; gap: var(--s-5); }
.foot-grid img { width: 72px; margin-bottom: var(--s-3); }
.site-foot nav { display: flex; flex-direction: column; gap: var(--s-2); }
.site-foot a { color: var(--muted); }
.foot-withdraw { font-weight: 600; color: var(--ink) !important; }

/* product */
.product { display: grid; gap: var(--s-5); padding-top: var(--s-5); }
.stage { position: relative; margin: 0; aspect-ratio: 1; background: var(--cream); border-radius: var(--r); overflow: hidden; }
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mockup-logo { position: absolute; left: 62%; top: 31%; width: 11%; max-height: 11%; object-fit: contain; transform: translate(-50%, -50%); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15)); }
/* left chest on the hoodie packshots (tools/bilder, calibrated 22.10.2026) */
.mockup-hoodie { left: 62%; top: 37%; width: 10%; max-height: 10%; }
/* the check shirt: on the black shoulder panel of the left chest */
.mockup-hemd { left: 66.5%; top: 16%; width: 6.5%; max-height: 6.5%; }
.eu-notice { display: block; width: 100%; max-width: 640px; height: auto; margin-block: var(--s-5); }
.stage-note { position: absolute; left: var(--s-3); top: var(--s-3); padding: 2px var(--s-2); background: rgba(255, 255, 255, 0.85); color: var(--muted); font-size: 0.75rem; border-radius: var(--r); }
.thumbs { display: flex; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-3) 0 0; overflow-x: auto; }
.thumb { padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); cursor: pointer; overflow: hidden; width: 64px; height: 64px; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }

.switch { grid-column: 1 / -1; justify-self: start; display: inline-flex; gap: 2px; padding: 3px; background: var(--cream); border-radius: var(--r); }
.switch a { padding: var(--s-2) var(--s-4); border-radius: var(--r); color: var(--muted); text-decoration: none; font-weight: 600; }
.switch a[aria-current="page"] { background: var(--surface); color: var(--navy); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.price-from { font-size: 1.35rem; font-weight: 600; color: var(--navy); margin-bottom: var(--s-1); }
.price-from span { display: block; font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.facts-line { color: var(--muted); margin-bottom: var(--s-4); }

.opt { border: 0; padding: var(--s-4) 0; margin: 0; border-top: 1px solid var(--line); min-width: 0; }
.opt legend { float: left; width: 100%; padding: 0; margin-bottom: var(--s-3); font-weight: 600; }
.opt legend + * { clear: both; }
.opt-value { font-weight: 400; color: var(--muted); margin-left: var(--s-2); }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3) var(--s-2); }
.swatch { display: grid; justify-items: center; gap: var(--s-1); font-size: 0.8rem; color: var(--muted); cursor: pointer; text-align: center; }
.swatch input, .segment input, .drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch svg { width: 40px; height: 40px; border-radius: 50%; }
.swatch circle { stroke: rgba(0, 0, 0, 0.12); stroke-width: 1; }
.swatch:has(input:checked) svg { outline: 2px solid var(--navy); outline-offset: 2px; }
.swatch:has(input:checked) { color: var(--ink); font-weight: 600; }
.swatch:has(input:focus-visible) svg { outline: 3px solid var(--navy); }

.tier-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin: 0 0 var(--s-3); padding: 0; list-style: none; font-size: 0.78rem; text-align: center; font-variant-numeric: tabular-nums; }
.tier-strip li { display: grid; gap: 1px; padding: var(--s-2) 2px; background: var(--cream); color: var(--muted); }
.tier-strip li:first-child { border-radius: var(--r) 0 0 var(--r); }
.tier-strip li:last-child { border-radius: 0 var(--r) var(--r) 0; }
.tier-strip strong { color: var(--ink); font-size: 0.85rem; }
.tier-strip .is-active { background: var(--navy); color: #fff; }
.tier-strip .is-active strong { color: #fff; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.size { display: grid; gap: var(--s-1); text-align: center; font-weight: 600; }
.size input { width: 100%; min-width: 0; height: 56px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: center; font: 500 1.2rem var(--font); color: var(--ink); -moz-appearance: textfield; }
.size input:focus { border-color: var(--navy); }
.size input::-webkit-outer-spin-button, .size input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-chart { margin-top: var(--s-3); font-size: 0.9rem; }
.size-chart summary { cursor: pointer; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.size-chart table { width: 100%; margin-top: var(--s-2); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.size-chart th, .size-chart td { padding: var(--s-1) var(--s-2); border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; }
.size-chart th:first-child { text-align: left; font-weight: 600; }
.size-chart thead th { color: var(--muted); font-size: 0.82rem; }
.drop-preview { width: 72px; height: 72px; margin: 0 auto var(--s-2); object-fit: contain; }

.drop { position: relative; display: grid; gap: 2px; padding: var(--s-4); border: 1.5px dashed #c9c3b6; border-radius: var(--r); background: var(--surface); cursor: pointer; text-align: center; }
.drop:hover, .drop:has(input:focus-visible) { border-color: var(--navy); }
.drop-title { font-weight: 600; color: var(--navy); }
.drop-hint { font-size: 0.85rem; color: var(--muted); }
.file-chosen { margin: var(--s-2) 0 0; padding: var(--s-2) var(--s-3); background: var(--navy-050); border-radius: var(--r); font-size: 0.9rem; overflow-wrap: anywhere; }
.link-btn { margin-top: var(--s-2); padding: 0; border: 0; background: none; color: var(--navy); font: inherit; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.later { padding: var(--s-3) var(--s-4); background: var(--cream); border-radius: var(--r); }
.onfile { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); background: var(--navy-050); border-radius: var(--r); }
.onfile p { margin: 0; }
.onfile-logo { width: 64px; height: 64px; object-fit: contain; background: var(--surface); border-radius: var(--r); padding: var(--s-1); }
.hint, .fine { color: var(--muted); font-size: 0.875rem; }
.fine { font-size: 0.82rem; margin-top: var(--s-3); }

.total { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.total-empty { color: var(--muted); }
.total-lines { margin: 0 0 var(--s-4); }
.total-lines > div { display: flex; justify-content: space-between; gap: var(--s-3); padding: 3px 0; }
.total-lines dt { color: var(--muted); }
.total-lines dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.total-sum { margin-top: var(--s-2); padding-top: var(--s-2) !important; border-top: 1px solid var(--line); }
.total-sum dt, .total-sum dd { color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.total-vat dt, .total-vat dd, .total-each dt, .total-each dd { font-size: 0.82rem; color: var(--muted); }
.tier-hint { padding: var(--s-2) var(--s-3); background: var(--navy-050); border-radius: var(--r); font-size: 0.9rem; }
.delivery { font-weight: 600; }
.promise { font-size: 0.9rem; margin-bottom: var(--s-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 var(--s-5); border: 1px solid var(--navy); border-radius: var(--r); background: var(--navy); color: #fff; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-700); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-block { width: 100%; min-height: 54px; font-size: 1.05rem; }
.btn-ghost { background: var(--surface); color: var(--navy); }
.btn-ghost:hover { background: var(--navy-050); }
.btn-danger { background: var(--err-fg); border-color: var(--err-fg); }
.link { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; font: inherit; cursor: pointer; }

.buybar { display: none; }
@media (max-width: 899px) {
  body:has(.buybar) { padding-bottom: 80px; }
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .buybar-total { display: grid; font-weight: 700; font-variant-numeric: tabular-nums; }
  .buybar-total small { font-weight: 400; color: var(--muted); }
}

/* information below the product */
.info { margin-top: var(--s-6); }
.info details { border-top: 1px solid var(--line); }
.info details:last-child { border-bottom: 1px solid var(--line); }
.info summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: var(--s-4) 0; font-weight: 600; font-size: 1.05rem; cursor: pointer; }
.info summary::-webkit-details-marker { display: none; }
.info summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; color: var(--muted); }
.info details[open] summary::after { content: "−"; }
.info details > :not(summary) { max-width: 760px; }
.info details > :last-child { margin-bottom: var(--s-5); }
.steps { padding-left: 1.2em; margin: 0; }
.steps li { margin: 0 0 var(--s-2); }
table.tiers { width: 100%; max-width: 420px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tiers th, .tiers td { text-align: left; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.tiers th { color: var(--muted); font-size: 0.875rem; }
.tiers th:last-child, .tiers td:last-child { text-align: right; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.faq dt { font-weight: 600; margin-top: var(--s-3); }
.faq dd { margin: var(--s-1) 0 0; color: var(--muted); }

.uses { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.uses figure { margin: 0; }
.uses img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.uses figcaption { margin-top: var(--s-2); font-weight: 600; }
.uses-note { color: var(--muted); font-size: 0.75rem; }

/* checkout */
.checkout { padding-top: var(--s-5); }
.back { margin-bottom: var(--s-3); font-size: 0.9rem; }
.checkout-grid { display: grid; gap: var(--s-5); }
.checkout-form .opt:first-child { border-top: 0; padding-top: 0; }
.segment { display: grid; gap: var(--s-2); }
.segment label { position: relative; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.segment label::before { content: ""; width: 18px; height: 18px; flex: none; border: 1.5px solid #b8b2a5; border-radius: 50%; }
.segment label:has(input:checked) { border-color: var(--navy); background: var(--navy-050); }
.segment label:has(input:checked)::before { border: 5px solid var(--navy); }
.fields { display: grid; gap: var(--s-3); margin-bottom: var(--s-3); }
.field { display: grid; gap: var(--s-1); }
.field > span { font-weight: 500; font-size: 0.95rem; }
.field em { font-weight: 400; font-style: normal; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 7em 1fr; gap: var(--s-3); }
.has-error input, .has-error textarea { border-color: var(--err-fg); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, input[type="file"] { width: 100%; font: 400 1rem var(--font); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); }
input[type="file"] { padding: var(--s-2); }
.confirm { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.confirm h2 { margin-top: 0; }
.confirm-total { font-size: 1.05rem; }
.summary { align-self: start; padding: var(--s-4); background: var(--cream); border-radius: var(--r); }
.summary-item { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-1) var(--s-3); align-items: center; margin-bottom: var(--s-3); }
.summary-item img { grid-row: span 2; width: 56px; border-radius: var(--r); background: var(--surface); }
.summary-item p { margin: 0; }
.summary-item .summary-title { display: flex; justify-content: space-between; gap: var(--s-3); }
.summary-item .summary-title span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-title { font-weight: 600; margin-bottom: var(--s-1); }
.summary-sub { color: var(--muted); font-size: 0.9rem; }
.cart-items { list-style: none; margin: 0 0 var(--s-4); padding: 0; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 88px; border-radius: var(--r); background: var(--cream); }
.cart-item p { margin-bottom: var(--s-1); }
.cart-line { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-item form { margin: 0; }
.cart-item .link-btn { margin-top: 0; min-height: var(--tap); }
.cart-logo { display: flex; gap: var(--s-3); align-items: center; }
.back-motif { display: flex; gap: var(--s-3); align-items: center; }
.back-motif img { width: 72px; height: auto; }
/* only the field that belongs to the choice; without :has both stay visible */
#ruecken form:not(:has(input[value="text"]:checked)) .back-text,
#ruecken form:not(:has(input[value="logo"]:checked)) .back-file { display: none; }
.cart-logo img { width: 72px; height: 72px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-1); }
.cart-logo p { margin: 0; }

/* messages */
.alert, .notice { padding: var(--s-3) var(--s-4); border-radius: var(--r); margin: var(--s-3) 0; }
.alert { background: var(--err-bg); color: var(--err-fg); }
.alert ul { margin: var(--s-2) 0 0; padding-left: 1.2em; }
.notice { background: var(--navy-050); }
.notice.ok { background: var(--ok-bg); color: var(--ok-fg); }
.notice.warn { background: var(--warn-bg); color: var(--warn-fg); }

/* order page */
.page { padding-top: var(--s-5); }
.narrow { max-width: 560px; }
.status-line { color: var(--muted); }
.status-line strong { color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-4); margin: var(--s-4) 0; }
.panel h2 { margin-top: 0; }
.stack { display: grid; gap: var(--s-3); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-1); padding: 0; margin: var(--s-4) 0; list-style: none; font-size: 0.8rem; text-align: center; color: var(--muted); }
.progress li { padding-top: var(--s-2); border-top: 3px solid var(--line); }
.progress li.done { border-top-color: var(--navy); color: var(--ink); font-weight: 600; }
.proof img { border-radius: var(--r); margin-bottom: var(--s-3); }
.note { background: var(--navy-050); padding: var(--s-3); border-radius: var(--r); }
.change { margin-top: var(--s-3); }
.change summary { cursor: pointer; color: var(--navy); }
blockquote { margin: var(--s-3) 0; padding-left: var(--s-3); border-left: 3px solid var(--line); color: var(--muted); }
.order-summary { display: grid; gap: var(--s-4); }
.order-logo { width: 120px; max-height: 120px; object-fit: contain; background: var(--cream); padding: var(--s-2); border-radius: var(--r); }
.legal p, .legal li { max-width: 72ch; }

/* workshop */
.row-between { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.cards { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.card a { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.card-todo a { border-color: var(--navy); }
.card-head strong { color: var(--navy); margin-right: var(--s-2); }
.card-foot { color: var(--muted); font-size: 0.9rem; }
.plain { padding-left: 1.2em; }
.history { padding-left: 1.2em; font-size: 0.9rem; }
.history .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.danger summary { color: var(--err-fg); }
.sheet h1 { font-size: 2.4rem; margin-top: var(--s-4); }
.sheet-company { font-size: 1.3rem; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.sheet-table th, .sheet-table td { text-align: left; vertical-align: top; padding: var(--s-2); border: 1px solid var(--line); }
.sheet-table th { width: 7em; }
.sheet-proof { max-height: 420px; margin: var(--s-4) 0; border: 1px solid var(--line); }
.sheet-checks { list-style: none; padding: 0; font-size: 1.1rem; }
.sheet-checks li::before { content: "☐ "; font-size: 1.3rem; }

@media (min-width: 900px) {
  h1 { font-size: 2.4rem; }
  .wrap { padding: 0 var(--s-5); }
  .head-nav { display: flex; }
  .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-4) var(--s-7); padding-top: var(--s-6); }
  .gallery { position: sticky; top: var(--s-4); align-self: start; }
  .thumb { width: 76px; height: 76px; }
  .checkout-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-7); }
  .checkout-grid > .summary { order: 2; }
  .summary { position: sticky; top: var(--s-4); }
  .uses { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr; }
  .order-summary { grid-template-columns: auto 1fr; align-items: start; }
  .facts > div { grid-template-columns: 10em 1fr; }
}

@media print {
  .site-head, .site-foot, .skip { display: none; }
  body { background: #fff; }
  main { padding: 0; }
}
