.container {
  width: 90%; max-width: var(--max-content); margin: 0 auto;
}
.container--detail { max-width: var(--max-detail); }
.container--cart { max-width: var(--max-cart); }
.container--contact { max-width: var(--max-contact); }
.container--confirm { max-width: 620px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px);
}
.hero__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero__kicker-line { width: 34px; height: 1px; background: var(--accent); }
.hero__title { font-size: clamp(42px, 6vw, 80px); letter-spacing: -0.01em; max-width: 640px; }
.hero__sub { max-width: 440px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--text-secondary); margin: 28px 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__images { display: flex; gap: clamp(10px, 1.6vw, 20px); justify-content: center; align-items: flex-end; }
.hero__img-a { width: 38%; aspect-ratio: 3 / 5; border-radius: 120px 120px 0 0; }
.hero__img-b { width: 44%; aspect-ratio: 3 / 5; margin-bottom: 34px; border-radius: 150px 150px 0 0; }
.hero__img-a img, .hero__img-b img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Works grid ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-bottom: clamp(30px, 4vw, 52px);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head__count { font-size: 13px; letter-spacing: 0.06em; color: var(--text-tertiary); }

.works-section { padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); scroll-margin-top: 90px; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
  column-gap: clamp(20px, 2.6vw, 44px);
  row-gap: clamp(36px, 4.6vw, 68px);
}
@media (max-width: 900px) { .works-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .works-grid { grid-template-columns: 1fr !important; } }

.work-card { cursor: pointer; transition: transform 0.3s ease; display: block; text-align: left; background: none; border: none; padding: 0; width: 100%; }
.work-card:hover { transform: translateY(-4px); }
.work-card__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.work-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.work-card__title { font-family: var(--font-heading); font-weight: 500; font-size: 20px; line-height: 1.15; }
.work-card__price { font-size: 15px; color: var(--text); white-space: nowrap; }
.work-card__meta { margin: 6px 0 0; font-size: 13px; letter-spacing: 0.02em; color: var(--text-tertiary); }

/* ---------- About strip ---------- */
.about-strip { border-top: 1px solid var(--border-faint); background-color: var(--bg-ivory); }
.about-strip__inner {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
}
.about-strip__portrait {
  aspect-ratio: 4 / 5; border-radius: 160px 160px 0 0;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px;
  overflow: hidden;
}
.about-strip__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-strip__title { font-size: clamp(26px, 3.2vw, 40px); margin: 0 0 22px; line-height: 1.1; }
.about-strip__text { max-width: 560px; font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 16px; white-space: pre-line; }
@media (max-width: 760px) { .hero, .about-strip__inner { grid-template-columns: 1fr; } .about-strip__portrait { max-width: 320px; } }

/* ---------- Detail ---------- */
.detail-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 72px); margin-top: 26px; align-items: start;
}
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } .sticky-panel { position: static; } }
.detail-grid__img { position: relative; aspect-ratio: 4 / 5; }
.detail__edition-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.detail__title { font-size: clamp(32px, 4vw, 52px); }
.detail__submeta { font-size: 15px; letter-spacing: 0.02em; color: var(--text-tertiary); margin: 14px 0 0; }
.detail__price { font-family: var(--font-heading); font-size: 30px; margin: 26px 0 22px; }
.detail__dl { margin: 0 0 30px; border-top: 1px solid var(--border-subtle); }
.detail__dl-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border-subtle); }
.detail__dl-row dt { font-size: 13px; letter-spacing: 0.06em; color: var(--text-tertiary); text-transform: uppercase; }
.detail__dl-row dd { margin: 0; font-size: 15px; }
.detail__desc { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 30px; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.detail__actions .btn { flex: 1; min-width: 180px; }
.detail__incart { margin: 14px 0 0; font-size: 13px; color: var(--accent); }

/* ---------- Cart ---------- */
.cart-title { font-size: clamp(30px, 4vw, 44px); margin: 0 0 30px; }
.cart-empty { padding: 56px 0; text-align: center; border-top: 1px solid var(--border-subtle); }
.cart-empty p { font-size: 17px; color: var(--text-secondary); margin: 0 0 24px; }
.cart-list { border-top: 1px solid var(--border-subtle); }
.cart-item { display: flex; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--border); }
.cart-item__thumb { width: 76px; height: 96px; flex: none; overflow: hidden; }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { flex: 1; }
.cart-item__title { font-family: var(--font-heading); font-weight: 500; font-size: 19px; }
.cart-item__meta { margin: 5px 0 0; font-size: 13px; color: var(--text-tertiary); }
.cart-item__remove {
  display: inline-block; margin-top: 9px; cursor: pointer;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-tertiary); text-decoration: underline;
  background: none; border: none; padding: 0;
}
.cart-item__remove:hover { color: var(--accent); }
.qty-stepper { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-control); }
.qty-stepper button {
  width: 34px; height: 34px; background: transparent; border: none; cursor: pointer;
  font-size: 16px; color: var(--text); transition: background 0.12s;
}
.qty-stepper button:hover { background: rgba(34, 31, 28, 0.06); }
.qty-stepper button:active { background: rgba(34, 31, 28, 0.12); }
.qty-stepper span { min-width: 22px; text-align: center; font-size: 14px; }
.cart-item__line { width: 110px; text-align: right; font-size: 16px; }

.cart-summary-wrap { display: flex; justify-content: flex-end; margin-top: 26px; }
.cart-summary { width: min(340px, 100%); }
.cart-summary__row { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-secondary); padding: 6px 0; }
.cart-summary__row--border { border-bottom: 1px solid var(--border-subtle); }
.cart-summary__total { display: flex; justify-content: space-between; font-family: var(--font-heading); font-size: 24px; padding: 16px 0 22px; }
.cart-summary__browse { display: block; text-align: center; margin-top: 14px; cursor: pointer; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); background: none; border: none; width: 100%; }
.cart-summary__browse:hover { color: var(--accent); }

/* ---------- Checkout ---------- */
.checkout-title { font-size: clamp(30px, 4vw, 44px); margin: 18px 0 34px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-grid h2 { font-size: 22px; margin: 0 0 18px; }
.checkout-grid h2 + .form-grid { margin-bottom: 0; }
/* Needs to beat ".checkout-grid h2" (same 0-1-1 specificity tier) unambiguously,
   not just win by source-order proximity. */
.checkout-grid h2.section-gap { margin-top: 36px; }

.pay-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.pay-option--on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.pay-option__radio {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.pay-option__radio-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pay-option__body { flex: 1; }
.pay-option__name { font-size: 15px; }
.pay-option__hint { font-size: 12.5px; color: var(--text-tertiary); margin-top: 2px; }
.pay-option__tag { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.12em; color: #a99e8d; }

.card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: -2px 0 12px; padding: 0 2px 4px; }
.card-fields .field--full { grid-column: 1 / -1; }

#stripe-payment-element { padding: 4px 2px 14px; }

.secure-note { display: flex; align-items: center; gap: 9px; margin-top: 20px; font-size: 12.5px; color: var(--text-tertiary); }

.order-summary {
  position: sticky; top: 100px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-panel);
  padding: 26px; background-color: var(--bg-ivory);
}
.order-summary h2 { font-size: 20px; margin: 0 0 18px; }
.order-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border-faint); }
.order-summary__row-qty { color: var(--text-tertiary); }
.order-summary__ship { display: flex; justify-content: space-between; padding: 12px 0 0; font-size: 14px; color: var(--text-tertiary); }
.order-summary__total { display: flex; justify-content: space-between; font-family: var(--font-heading); font-size: 22px; margin: 14px 0 22px; padding-top: 14px; border-top: 1px solid var(--border); }
.order-summary__legal { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-tertiary); }

/* ---------- Confirm ---------- */
.confirm-check {
  width: 64px; height: 64px; margin: 0 auto 28px;
  border-radius: 50%; border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--accent);
}
.confirm-title { font-size: clamp(30px, 4vw, 44px); margin: 0 0 16px; }
.confirm-lead { font-size: 17px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 8px; }
.confirm-label { font-size: 14px; color: var(--text-tertiary); margin: 0 0 6px; }
.confirm-order-no { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: 0.1em; margin: 0 0 6px; }
.confirm-meta { font-size: 14px; color: var(--text-tertiary); margin: 0 0 36px; }
.confirm-pending-note { font-size: 13.5px; color: var(--text-tertiary); margin: 0 0 24px; }

/* ---------- Contact ---------- */
.contact-title { font-size: clamp(30px, 4vw, 48px); margin: 0 0 18px; line-height: 1.05; }
.contact-lead { margin: 0 0 34px; }
.contact-success {
  padding: 28px; background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel); text-align: center;
}
.contact-success__check { font-size: 24px; color: var(--accent); margin-bottom: 10px; }
.contact-success p { font-size: 16px; margin: 0; color: var(--text-secondary); }
.contact-form { display: grid; gap: 16px; }
.contact-form .btn { justify-self: start; }

.center-note { text-align: center; padding: 60px 0; color: var(--text-tertiary); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-content h2 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 19px; margin: 40px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 20px; }
.legal-content li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 6px; }
.legal-content a { text-decoration: underline; }
.legal-content strong { color: var(--text); font-weight: 500; }
