/* Heim & Fein — Website Stylesheet
   Design tokens per design_handoff_heim_und_fein_website/README.md */

:root {
  --rich-black: #050000;
  --isabelline: #EFECE9;
  --wheat: #EAD4B2;
  --pale-dogwood: #EDCBC0;
  --rosy-brown: #CB8C79;
  --sage: #B8B995;

  --font-heading: 'Klee One', serif;
  --font-body: 'Work Sans', sans-serif;

  --max-width: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--isabelline);
  color: var(--rich-black);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; margin: 0; }

p { margin: 0; }

a { font-family: var(--font-body); }

ul { font-family: var(--font-body); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  background: var(--rosy-brown);
  color: var(--isabelline);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-dark {
  background: var(--rich-black);
  color: var(--isabelline);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--rosy-brown);
  font-weight: 500;
  margin-bottom: 18px;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.hf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: var(--isabelline);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(5, 0, 0, 0.1);
}

.hf-logo { height: 56px; object-fit: contain; flex-shrink: 0; }

.hf-nav { display: flex; align-items: center; gap: 36px; }

.hf-nav a {
  font-size: 15px;
  color: var(--rich-black);
  text-decoration: none;
  font-weight: 400;
}

.hf-nav a.is-active { color: var(--rosy-brown); font-weight: 500; }

.hf-nav a.hf-pill {
  padding: 10px 22px;
  border-radius: 30px;
  background: var(--rosy-brown);
  color: var(--isabelline);
}

.hf-burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hf-burger span { width: 26px; height: 2px; background: var(--rich-black); display: block; }

.hf-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--isabelline);
  border-bottom: 1px solid rgba(5, 0, 0, 0.1);
  box-shadow: 0 12px 24px rgba(5, 0, 0, 0.08);
}

.hf-mobile-nav.is-open { display: flex; }

.hf-mobile-nav a {
  padding: 18px 48px;
  font-size: 16px;
  color: var(--rich-black);
  text-decoration: none;
  border-bottom: 1px solid rgba(5, 0, 0, 0.06);
}

.hf-mobile-nav a.is-active { color: var(--rosy-brown); }
.hf-mobile-nav a:last-child { border-bottom: none; }

/* ---------- Photo placeholders ---------- */
/* Replace .stripe-ph blocks with real <img> tags once photos are available */

.stripe-ph {
  background-image: repeating-linear-gradient(135deg, rgba(5, 0, 0, 0.06) 0px, rgba(5, 0, 0, 0.06) 2px, transparent 2px, transparent 14px);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border-radius: 6px;
}

.stripe-ph .label {
  font-family: monospace;
  font-size: 12px;
  color: var(--rich-black);
  background: var(--isabelline);
  padding: 6px 10px;
  border-radius: 3px;
}

/* ---------- Hero (Home) ---------- */

.hf-hero {
  background: var(--wheat);
  padding: 44px 48px 0;
  text-align: center;
}

.hf-hero-inner { max-width: 480px; margin: 0 auto; padding-bottom: 36px; }

.hf-hero h1 { margin: 0 0 18px; }
.hf-hero-wordmark { width: 260px; max-width: 100%; height: auto; margin: 0 auto; }

.hf-hero p { font-size: 15.5px; line-height: 1.65; font-weight: 300; margin: 0 0 22px; color: var(--rich-black); }

.hf-hero-strip { display: flex; height: 70px; }
.hf-hero-strip div { flex: 1; background-size: cover; background-position: center; }

@media (max-width: 860px) {
  .hf-hero { padding: 36px 24px 0; }
  .hf-hero-wordmark { width: 160px; }
  .hf-hero-strip { height: 44px; }
}

/* ---------- Split teaser (Home) ---------- */

.hf-split {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hf-split > div {
  background: var(--isabelline);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hf-split > div:nth-child(n+2) { border-left: 1px solid rgba(5, 0, 0, 0.1); }

.hf-split h2 { font-size: 22px; margin: 0 0 14px; }

.hf-polaroid {
  position: relative;
  align-self: center;
  background: #fff;
  padding: 10px 10px 32px;
  box-shadow: 0 14px 28px rgba(5, 0, 0, 0.2), 0 3px 8px rgba(5, 0, 0, 0.1);
  width: 210px;
  max-width: 100%;
  margin: 0 0 20px;
}

.hf-polaroid .stripe-ph { margin: 0; }
.hf-polaroid img { margin: 0; }

.hf-polaroid::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  width: 62px;
  height: 26px;
  background: rgba(239, 236, 233, 0.8);
  box-shadow: 0 2px 5px rgba(5, 0, 0, 0.15);
}

.hf-split > div:nth-child(odd) .hf-polaroid { transform: rotate(-3deg); }
.hf-split > div:nth-child(odd) .hf-polaroid::before { transform: translateX(-50%) rotate(-7deg); }
.hf-split > div:nth-child(even) .hf-polaroid { transform: rotate(2.5deg); }
.hf-split > div:nth-child(even) .hf-polaroid::before { transform: translateX(-50%) rotate(5deg); }

.hf-split p { font-size: 14.5px; line-height: 1.65; margin: 0 0 18px; max-width: 400px; }

.hf-split .btn { align-self: center; margin-top: auto; }

/* ---------- CTA band ---------- */

.hf-cta {
  background: var(--sage);
  padding: 48px 48px;
  text-align: center;
}

.hf-cta-inner { max-width: 560px; margin: 0 auto; }
.hf-cta h2 { font-size: 24px; margin: 0 0 12px; }
.hf-cta p { font-size: 15px; line-height: 1.6; margin: 0 0 24px; }

/* ---------- Footer ---------- */

.hf-footer {
  background: var(--rich-black);
  color: var(--isabelline);
  padding: 72px 48px 40px;
}

.hf-footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 56px;
}

.hf-footer-logo { height: 56px; object-fit: contain; margin-bottom: 18px; }

.hf-footer p { font-size: 14.5px; line-height: 1.7; color: var(--isabelline); max-width: 280px; margin: 0; }

.hf-footer-heading {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rosy-brown);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hf-footer-links { display: flex; flex-direction: column; gap: 12px; }
.hf-footer-links a { color: var(--isabelline); text-decoration: none; font-size: 15px; }

.hf-footer address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.8;
  color: var(--isabelline);
}

.hf-footer-bottom {
  max-width: var(--max-width);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(239, 236, 233, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--wheat);
}

.hf-footer-bottom a { color: var(--wheat); text-decoration: none; }
.hf-footer-bottom-links { display: flex; gap: 20px; }

/* ---------- Title block (inner pages) ---------- */

.hf-title-block { padding: 72px 48px 24px; }
.hf-title-block h1 { font-size: 38px; line-height: 1.15; margin: 0 0 32px; text-align: left; }
.hf-title-block p { font-size: 17.5px; line-height: 1.75; margin: 0 0 24px; text-align: left; max-width: 800px; }
.hf-title-block p:last-child { margin-bottom: 0; }
.hf-title-block ul { font-size: 17.5px; line-height: 1.75; margin: 0 0 40px; padding-left: 22px; max-width: 800px; font-weight: 300; }

.hf-title-block-heading { text-align: center; margin-bottom: 40px; }
.hf-title-block-heading h1 { text-align: center; margin: 0; }
.hf-title-block-heading .eyebrow { margin-bottom: 14px; }

.hf-title-block-row { display: flex; align-items: flex-start; gap: 56px; max-width: 860px; margin: 0 auto; }
.hf-title-block-text { flex: 1; min-width: 0; }

.hf-title-block-photo {
  flex-shrink: 0;
  width: 170px;
  align-self: flex-start;
  transform: rotate(-3deg);
}
.hf-title-block-photo::before { transform: translateX(-50%) rotate(-7deg); }

.hf-title-block-photo--lg { width: 187px; }

/* ---------- Taschen: models ---------- */

.hf-models {
  padding: 56px 48px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.hf-model h3 { font-size: 21px; margin: 0 0 16px; }

.hf-model-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.hf-model-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.hf-model-frame.is-hidden { display: none !important; }

.hf-model-media .stripe-ph { padding: 16px; border-radius: 0; }
.hf-model-media .stripe-ph .label { font-size: 11px; background: var(--rich-black); color: var(--isabelline); padding: 4px 8px; }

.hf-model-dots { display: flex; gap: 6px; justify-content: center; margin: 10px 0 20px; }
.hf-model-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(5, 0, 0, 0.25); display: block; }
.hf-model-dots span.is-active { background: var(--rich-black); }

.hf-model-desc { font-size: 15px; line-height: 1.65; margin: 0 0 8px; }
.hf-model-desc p { margin: 0 0 8px; }
.hf-model-price { font-size: 16px; font-weight: 500; margin: 0; color: var(--rosy-brown); }

/* ---------- Ordering steps band ---------- */

.hf-steps-band { background: var(--wheat); padding: 56px 0; }
.hf-steps-band h2 { font-size: 24px; margin: 0 0 20px; text-align: left; font-weight: 600; }
.hf-steps-band > .wrap > p { font-size: 15px; line-height: 1.6; margin: 0 0 16px; max-width: 640px; }

.hf-fabric-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 300;
  list-style: disc;
  padding-left: 18px;
  margin: 0 0 20px;
  max-width: 640px;
}
.hf-fabric-specs li::marker { color: var(--rosy-brown); }

.hf-steps-subheading { font-size: 19px; font-weight: 600; margin: 40px 0 24px; }

.hf-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.hf-step-num { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--rosy-brown); margin-bottom: 8px; }
.hf-step h3 { font-size: 16px; margin: 0 0 6px; }
.hf-step p { font-size: 14px; line-height: 1.55; }

.hf-b2b-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: center;
  background: var(--isabelline);
  padding: 28px 32px;
  max-width: 820px;
  margin-right: auto;
  box-shadow: 0 14px 28px rgba(5, 0, 0, 0.14);
}

.hf-b2b-card h3 { font-size: 18px; }
.hf-b2b-card p { font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; }

/* ---------- Gallery (scroll-snap) ---------- */

.hf-gallery-section { padding: 96px 0; }
.hf-gallery-section h2 { font-size: 24px; font-weight: 600; margin: 0 0 12px; text-align: left; }
.hf-gallery-section > .wrap > p { font-size: 16px; line-height: 1.7; margin: 0 0 40px; max-width: 640px; }

.hf-scroll-gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.hf-scroll-gallery .stripe-ph {
  scroll-snap-align: start;
  flex: 0 0 320px;
  aspect-ratio: 1 / 1;
  padding: 16px;
}
.hf-scroll-gallery img.stripe-ph { padding: 0; background-image: none; width: 320px; }
.hf-scroll-gallery .stripe-ph .label { font-size: 11px; background: var(--rich-black); color: var(--isabelline); padding: 4px 8px; }

/* ---------- Textildesign ---------- */

.hf-order-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.hf-order-option {
  background: var(--isabelline);
  padding: 28px 32px;
  box-shadow: 0 14px 28px rgba(5, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
}

.hf-order-option h3 { font-size: 18px; margin: 0 0 10px; }
.hf-order-option p { font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; }
.hf-order-option ul { font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; padding-left: 20px; font-weight: 300; }
.hf-order-option-price { font-weight: 500; color: var(--rosy-brown); list-style: none; margin-left: -20px; margin-top: 4px; }
.hf-fabric-specs .hf-order-option-price { grid-column: 1 / -1; margin-left: 0; margin-top: 8px; }
.fine-print { font-style: italic; font-size: 13px; line-height: 1.5; color: rgba(5, 0, 0, 0.55); }
.hf-b2b-card .fine-print, .hf-order-option .fine-print { margin-top: 8px; }
.hf-order-option .btn { align-self: flex-start; margin-top: auto; }
.hf-order-option .hf-fabric-specs { padding-left: 18px; }

.hf-order-option--wide { max-width: 820px; margin-right: auto; margin-top: 8px; margin-bottom: 24px; }

.hf-title-block > .btn { display: block; width: max-content; margin: 0 auto; }

.hf-collection { padding: 56px 48px 120px; }
.hf-collection .eyebrow { margin-bottom: 14px; }

.hf-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}

.hf-photo-grid .stripe-ph { aspect-ratio: 1 / 1; margin-bottom: 14px; padding: 0; }
.hf-photo-grid h3 { font-size: 17px; margin: 0; }

/* ---------- Über mich ---------- */

.hf-title-block-text .signature { font-family: var(--font-heading); font-size: 17px; font-weight: 300; margin: 0; }

.hf-callout-section { padding: 64px 48px 120px; }
.hf-callout {
  background: var(--wheat);
  padding: 48px 56px;
  max-width: 900px;
}
.hf-callout p { font-size: 17px; line-height: 1.75; }

.hf-atelier-gallery { padding: 0 48px 120px; }
.hf-atelier-gallery .eyebrow { margin-bottom: 24px; }
.hf-atelier-gallery .hf-photo-grid { gap: 24px; }
.hf-atelier-gallery .stripe-ph { margin-bottom: 0; }

/* ---------- Kontakt ---------- */

.hf-contact {
  padding: 48px 48px 120px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.hf-contact h3 { font-size: 19px; margin: 0 0 18px; }
.hf-contact address { font-style: normal; font-size: 15.5px; line-height: 1.8; margin: 0 0 28px; }
.hf-contact .socials { font-size: 15.5px; line-height: 1.8; margin: 0; }
.hf-contact .socials a { color: var(--rosy-brown); text-decoration: none; }

.hf-form { display: flex; flex-direction: column; gap: 22px; }
.hf-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.hf-form input, .hf-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(5, 0, 0, 0.25);
  background: var(--isabelline);
  font-size: 15px;
  color: var(--rich-black);
  font-family: var(--font-body);
}
.hf-form textarea { resize: vertical; }
.hf-form input::placeholder, .hf-form textarea::placeholder { color: rgba(5, 0, 0, 0.4); }
.hf-form input:focus, .hf-form textarea:focus { outline: 2px solid var(--rosy-brown); outline-offset: 1px; }
.hf-form button { align-self: flex-start; }
.hf-form button:disabled { opacity: 0.6; cursor: default; }

.hf-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hf-form-error {
  font-size: 14px;
  line-height: 1.6;
  color: #b3261e;
  margin: -8px 0 0;
}
.hf-form-error a { color: inherit; }
.hf-form-error[hidden] { display: none; }

.hf-form-confirm {
  background: var(--sage);
  padding: 48px;
  text-align: center;
}
.hf-form-confirm h3 { font-size: 24px; margin: 0 0 12px; color: var(--isabelline); }
.hf-form-confirm p { font-size: 16px; line-height: 1.7; margin: 0; color: var(--isabelline); }

.hf-form-confirm[hidden], .hf-form[hidden] { display: none; }

/* ---------- Legal pages ---------- */

.hf-legal { padding: 96px 48px 120px; max-width: 900px; margin: 0 auto; }
.hf-legal h1 { font-size: 44px; margin: 0 0 40px; }
.hf-legal h2 { font-size: 20px; margin: 32px 0 12px; }
.hf-legal p, .hf-legal address { font-size: 16px; line-height: 1.75; margin: 0 0 16px; font-style: normal; }
.hf-legal a { color: var(--rosy-brown); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hf-nav { display: none !important; }
  .hf-burger { display: flex !important; }

  .hf-hero-copy { position: static !important; margin: 24px 6% 0 !important; max-width: none !important; }
  .hf-hero-photo { margin-left: 0 !important; }

  .hf-split { grid-template-columns: 1fr !important; }
  .hf-split > div + div { border-left: none !important; border-top: 1px solid rgba(5, 0, 0, 0.1); }

  .hf-footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  .hf-models { grid-template-columns: 1fr !important; }
  .hf-steps { grid-template-columns: 1fr 1fr !important; }
  .hf-b2b-card { grid-template-columns: 1fr !important; }
  .hf-order-options { grid-template-columns: 1fr !important; }

  .hf-contact { grid-template-columns: 1fr !important; }

  .hf-photo-grid { grid-template-columns: 1fr 1fr !important; }

  .hf-title-block h1 { font-size: 30px !important; }
  .hf-hero-copy h1 { font-size: 34px !important; }

  .hf-title-block-row { flex-direction: column; align-items: center; gap: 24px; }
  .hf-title-block-photo { align-self: center; }
}
