/* Wiemer & Brandes · premium customer experience */
:root {
  --premium-petrol: #0d242c;
  --premium-petrol-deep: #08191f;
  --premium-petrol-soft: #173942;
  --premium-gold: #b99a62;
  --premium-gold-bright: #d7bd88;
  --premium-ivory: #f4f0e8;
  --premium-paper: #fffdf8;
  --premium-ink: #17262b;
  --premium-muted: #66757a;
  --premium-rule: #d9d1c3;
  --premium-success: #315f4b;
  --premium-danger: #8c3e39;
  --premium-serif: Georgia, "Times New Roman", serif;
  --premium-sans: Inter, "Segoe UI", Arial, sans-serif;
  --premium-shadow: 0 22px 70px rgba(13, 36, 44, .1);
  --premium-shadow-hover: 0 30px 90px rgba(13, 36, 44, .17);
}

html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 5%, rgba(185, 154, 98, .12), transparent 27rem),
    linear-gradient(180deg, #ece7de 0, var(--premium-ivory) 31rem, #f8f6f1 100%);
  color: var(--premium-ink);
  font: 1rem/1.65 var(--premium-sans);
  text-rendering: optimizeLegibility;
}

.catalog-header {
  position: relative;
  isolation: isolate;
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 4rem max(1.5rem, calc((100vw - 82rem) / 2)) 4.75rem;
  background:
    linear-gradient(110deg, rgba(8, 25, 31, .98) 0%, rgba(13, 36, 44, .96) 54%, rgba(22, 56, 65, .9) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(215, 189, 136, .65);
}
.catalog-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 68%, rgba(215, 189, 136, .09) 68% 68.08%, transparent 68.08%),
    radial-gradient(circle at 84% 32%, rgba(215, 189, 136, .14), transparent 15rem);
  pointer-events: none;
}
.catalog-header::after {
  content: "";
  position: absolute;
  left: max(1.5rem, calc((100vw - 82rem) / 2));
  bottom: 2.1rem;
  width: min(13rem, 38vw);
  height: 1px;
  background: var(--premium-gold);
}
.catalog-brand-row { align-items: flex-start; margin-bottom: clamp(2.5rem, 7vw, 5rem); }
.catalog-brand-row > span {
  width: clamp(17rem, 36vw, 31rem);
  height: clamp(3.4rem, 7vw, 5.8rem);
  display: block;
  overflow: hidden;
  background: url('/brand/wiemer-brandes-logo.png') left center / contain no-repeat;
  color: transparent;
  font-size: 1px;
  user-select: none;
}
.catalog-header h1 {
  max-width: 15ch;
  margin: 0 0 .65rem;
  font: 400 clamp(3.25rem, 7.7vw, 7rem)/.95 var(--premium-serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.catalog-header > p {
  max-width: 43rem;
  margin: .75rem 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  letter-spacing: .01em;
}
.locale-switch { padding: .25rem; border: 1px solid rgba(215, 189, 136, .34); }
.locale-switch button {
  min-width: 2.75rem;
  min-height: 2.5rem;
  border: 0;
  color: rgba(255,255,255,.75);
  letter-spacing: .08em;
}
.locale-switch button[aria-pressed="true"] { background: var(--premium-gold); color: var(--premium-petrol-deep); }
.customer-nav { gap: .75rem; margin-top: 2.25rem; }
.customer-nav a,
.button-link {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.15rem;
  border: 1px solid var(--premium-gold);
  background: transparent;
  color: inherit;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.customer-nav a:first-child { background: var(--premium-gold); color: var(--premium-petrol-deep); }
.customer-nav a:hover, .button-link:hover { transform: translateY(-1px); background: var(--premium-gold-bright); color: var(--premium-petrol-deep); }

main#catalogContent { width: min(82rem, calc(100% - 3rem)); max-width: none; padding: clamp(2.5rem, 6vw, 5.5rem) 0 6rem; }
main#catalogContent > section,
.account-entry,
.customer-portal,
.terms-panel,
.aftercare-panel {
  border: 1px solid var(--premium-rule);
  border-radius: 0;
  background: rgba(255, 253, 248, .94);
  box-shadow: var(--premium-shadow);
}

.bidder-panel {
  position: relative;
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.bidder-panel::before,
.auction-directory::before,
.lot::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 4.5rem;
  height: 2px;
  background: var(--premium-gold);
}
.bidder-panel h2,
.aftercare-panel h2,
.terms-panel summary strong,
.customer-portal > summary strong {
  color: var(--premium-ink);
  font: 400 clamp(1.7rem, 3vw, 2.35rem)/1.15 var(--premium-serif);
  letter-spacing: -.02em;
}
.auction-state {
  margin-bottom: .5rem;
  color: #8a6b37 !important;
  font-size: .72rem;
  letter-spacing: .18em;
}
.bidder-fields, .billing-fields { gap: 1rem; margin: 1.5rem 0; }
label { color: #405158; font-size: .88rem; font-weight: 680; }
input, select, textarea {
  min-height: 3rem;
  margin-top: .45rem;
  padding: .72rem .85rem;
  border: 1px solid #cfc7b9;
  border-radius: 0;
  background: #fff;
  color: var(--premium-ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 7rem; }
input:focus, select:focus, textarea:focus {
  border-color: var(--premium-gold);
  box-shadow: 0 0 0 3px rgba(185, 154, 98, .16);
  outline: 0;
}
button {
  min-height: 2.85rem;
  border: 1px solid var(--premium-petrol);
  border-radius: 0;
  background: var(--premium-petrol);
  color: #fff;
  font-family: var(--premium-sans);
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .035em;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
button:hover:not(:disabled) { transform: translateY(-1px); background: var(--premium-petrol-soft); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--premium-gold); outline-offset: 3px; }
.bidder-actions { gap: .75rem; }
.bidder-actions button:first-child { border-color: var(--premium-gold); background: var(--premium-gold); color: var(--premium-petrol-deep); }
.bidder-panel details { border-color: var(--premium-rule); }
.bidder-panel summary { color: var(--premium-petrol-soft); font-family: var(--premium-serif); font-size: 1.05rem; }
.portal-note { color: var(--premium-muted); }

.auction-directory {
  position: relative;
  grid-template-columns: minmax(15rem, .6fr) minmax(0, 1.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin: 3.5rem 0;
  padding: clamp(1.7rem, 4vw, 3rem);
  border-color: var(--premium-rule);
  background: var(--premium-paper);
  box-shadow: var(--premium-shadow);
}
.auction-directory h2 { font: 400 clamp(2rem, 4vw, 3.1rem)/1.05 var(--premium-serif); letter-spacing: -.03em; }
.auction-directory-card {
  min-height: 12rem;
  padding: 1.35rem;
  border-color: var(--premium-rule);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.auction-directory-card:hover { transform: translateY(-3px); border-color: var(--premium-gold); box-shadow: 0 18px 40px rgba(13,36,44,.1); }
.auction-directory-card[data-state="live"] { border-color: var(--premium-gold); box-shadow: inset 3px 0 0 var(--premium-gold); }
.auction-directory-card h3 { font: 400 1.5rem/1.15 var(--premium-serif); }

.auction-heading { align-items: flex-start; margin: clamp(3rem, 7vw, 5rem) 0 2rem; }
.auction-heading h2 { font: 400 clamp(2.3rem, 5vw, 4.25rem)/1 var(--premium-serif); letter-spacing: -.035em; }
.auction-heading p { color: var(--premium-muted); }
.auction-heading select { min-width: 17rem; }
.catalog-tools {
  align-items: end;
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--premium-rule);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
}
.catalog-tools label { flex: 1; color: var(--premium-ink); }
.catalog-tools input, .catalog-tools select { width: 100%; }
.live-update-status { color: var(--premium-muted); }

.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.lot {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-color: var(--premium-rule);
  background: var(--premium-paper);
  box-shadow: 0 14px 44px rgba(13,36,44,.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lot:hover { transform: translateY(-5px); border-color: #c5b48f; box-shadow: var(--premium-shadow-hover); }
.lot-gallery { overflow: hidden; background: #ece8e1; }
.lot-gallery > .gallery-open { overflow: hidden; }
.lot img { aspect-ratio: 4/3; transition: transform .45s ease; }
.lot:hover .lot-gallery > .gallery-open img { transform: scale(1.018); }
.lot-body { display: flex; flex: 1; flex-direction: column; padding: 1.45rem; }
.lot-meta { padding-bottom: .85rem; border-bottom: 1px solid var(--premium-rule); }
.lot-meta strong { color: var(--premium-petrol); font: 400 1.15rem/1 var(--premium-serif); }
.lot-category { color: #8a6b37; letter-spacing: .15em; }
.lot h3 { margin: 1rem 0 .55rem; font: 400 clamp(1.45rem, 2.2vw, 1.8rem)/1.12 var(--premium-serif); letter-spacing: -.018em; }
.lot h3 a { text-decoration-color: transparent; }
.lot h3 a:hover { color: #785b2f; text-decoration-color: var(--premium-gold); }
.lot .subtitle, .lot-footnote { color: var(--premium-muted); }
.lot-description-preview { color: #3e4e53; line-height: 1.65; }
.estimate { margin-top: auto; padding-top: 1.1rem; border-color: var(--premium-rule); color: var(--premium-petrol); font-family: var(--premium-serif); font-size: 1.05rem; }
.bid-box { padding: 1rem; border-color: var(--premium-rule); background: #f2eee6; }
.bid-box button { border-color: var(--premium-gold); background: var(--premium-gold); color: var(--premium-petrol-deep); }
.watchlist-button { border-color: var(--premium-rule); color: var(--premium-petrol); }
.watchlist-button[aria-pressed="true"] { border-color: var(--premium-gold); background: #efe5d2; }
.gallery-thumbnails { background: #e9e4dc; }
.image-gallery { border: 1px solid var(--premium-gold); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.image-gallery::backdrop { background: rgba(3, 14, 18, .88); backdrop-filter: blur(4px); }

.terms-panel, .customer-portal, .aftercare-panel { overflow: hidden; }
.terms-panel summary, .customer-portal > summary { padding: 1.4rem 1.6rem; }
.terms-content, .notification-item, .aftercare-card, .portal-document { background: #f2eee6; border-color: var(--premium-rule); }
.customer-portal-nav { gap: .55rem; }
.customer-portal-nav button[aria-pressed="true"] { background: var(--premium-gold); border-color: var(--premium-gold); color: var(--premium-petrol-deep); }
.notification-item.unread { border-left-color: var(--premium-gold); }
.notification-count, .aftercare-badge, .bid-activity-status { background: var(--premium-petrol); }
.bid-confirmation, .aftercare-payment { border-color: var(--premium-gold); }
.catalog-empty-state { padding: clamp(2rem, 5vw, 4.5rem); border-color: var(--premium-rule); box-shadow: var(--premium-shadow); }
.catalog-empty-state h3 { font-family: var(--premium-serif); }

footer {
  padding: 3.5rem 1.5rem;
  background: var(--premium-petrol-deep);
  color: rgba(255,255,255,.66);
  border-top: 1px solid var(--premium-gold);
  font-family: var(--premium-serif);
  letter-spacing: .04em;
}

@media (max-width: 62rem) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bidder-fields, .billing-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auction-directory { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
  .catalog-header { min-height: 29rem; padding: 2rem 1.25rem 3.75rem; }
  .catalog-brand-row { margin-bottom: 3rem; }
  .catalog-brand-row > span { width: 15.5rem; height: 3.4rem; }
  .catalog-header h1 { max-width: 10ch; font-size: clamp(3rem, 15vw, 4.7rem); }
  .catalog-header > p { max-width: 28rem; }
  .customer-nav { display: grid; grid-template-columns: 1fr; width: 100%; }
  main#catalogContent { width: min(100% - 1.5rem, 82rem); padding-top: 1.75rem; }
  .auction-heading, .catalog-tools { display: grid; gap: 1rem; }
  .auction-heading select { min-width: 0; width: 100%; }
  .catalog-grid, .bidder-fields, .billing-fields { grid-template-columns: 1fr; }
  .lot-body { padding: 1.2rem; }
  .bidder-actions { display: grid; grid-template-columns: 1fr; }
  .bidder-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .catalog-header, footer, .bidder-panel, .auction-directory, .lot,
  .account-entry, .customer-portal, .terms-panel, .aftercare-panel {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    box-shadow: none;
  }
  .catalog-header::before, .catalog-header::after, .bidder-panel::before,
  .auction-directory::before, .lot::before { display: none; }
  .catalog-brand-row > span {
    width: auto;
    height: auto;
    background-image: none;
    color: CanvasText;
    font-size: 1.1rem;
    font-weight: 750;
  }
  button, .button-link, .customer-nav a {
    border: 2px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
  button:focus-visible, a:focus-visible, summary:focus-visible { outline-color: Highlight; }
}
