/* ==========================================================================
   AHLER — Design System
   Warmer architektonischer Minimalismus.
   Basis: AHLER_Markenkonzept.md — Farben, Typografie, Spacing, Buttons.
   ========================================================================== */

:root {
  /* Farben (Master-Prompt 6.3) */
  --c-bg:            #F5F3EE;   /* Warm White */
  --c-ink:           #1C1C1B;   /* Anthrazit / Haupttext */
  --c-line:          #E5E2DC;   /* Soft Grey / Linien & Flächen */
  --c-muted:         #77736C;   /* Warm Grey / Sekundärtext */
  --c-white:         #FFFFFF;

  --c-ink-90: rgba(28,28,27,0.9);
  --c-ink-70: rgba(28,28,27,0.7);
  --c-ink-40: rgba(28,28,27,0.4);
  --c-ink-15: rgba(28,28,27,0.15);
  --c-ink-08: rgba(28,28,27,0.08);

  /* Frontfarben — offizielle NCS-Farbcodes:
     Weiß = NCS S 0502-G, Anthrazit = NCS S 7502-G, Caratbeige = NCS S 1505-Y40R
     Hex-Werte von ncscolour.com (offizieller NCS-Shop) übernommen. */
  --c-front-anthrazit:  #4B4E4D;
  --c-front-weiss:      #E9ECE8;
  --c-front-caratbeige: #DACDBB;

  /* Materialwelt — aus echten Produktfotos abgetastet (keine offiziellen
     Herstellerwerte; für F416 konnte EGGER keinen öffentlichen Hex-/RAL-Code
     liefern, siehe Update-Dokument). */
  --c-eiche:    #B58C69;
  --c-nussbaum: #473427;
  --c-f416:     #7A6858;

  /* Typografie */
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing-Skala */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 100px;
  --sp-7: 160px;

  --max-width: 1360px;
  --radius: 2px;
  --dur: 0.4s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

/* ==========================================================================
   Typografie
   ========================================================================== */

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

.h1, h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.h2, h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.h3, h3 { font-size: clamp(1.375rem, 1.8vw, 2rem); }

p { margin: 0; }
.body-lg { font-size: 1.1875rem; line-height: 1.65; }
.body-sm { font-size: 0.9375rem; line-height: 1.6; }

.label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
  display: block;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

@media (min-width: 900px) {
  .container { padding: 0 var(--sp-5); }
}

.section { padding: var(--sp-6) 0; }
@media (max-width: 700px) {
  .section { padding: var(--sp-5) 0; }
}
.section-tight { padding: var(--sp-4) 0; }

.section-head { max-width: 640px; margin-bottom: var(--sp-5); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 16px 32px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary { background: var(--c-ink); color: var(--c-bg); }
.btn--primary:hover { background: #34332f; }
.btn--primary:disabled { background: var(--c-ink-15); color: var(--c-muted); cursor: not-allowed; }

.btn--outline { background: transparent; border-color: var(--c-ink-40); color: var(--c-ink); }
.btn--outline:hover { border-color: var(--c-ink); background: var(--c-ink-08); }

.btn--on-dark { background: var(--c-bg); color: var(--c-ink); }
.btn--on-dark:hover { background: var(--c-white); }

.btn--block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--c-ink-40);
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.link-arrow:hover { border-color: var(--c-ink); gap: 12px; }
.link-arrow--on-dark { color: var(--c-bg); border-color: rgba(245,243,238,0.4); }
.link-arrow--on-dark:hover { border-color: var(--c-bg); }

/* ==========================================================================
   Bilder / Bild-Platzhalter
   ========================================================================== */

.ph {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ph-ratio, 4/3);
  background: linear-gradient(160deg, #E9E5DB 0%, #D8D2C4 55%, #C3BBA7 100%);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ph__label {
  margin: var(--sp-2);
  padding: 6px 12px;
  background: rgba(28,28,27,0.75);
  color: var(--c-bg);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--m-ratio, 4/3);
  overflow: hidden;
  background: var(--c-line);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Karten
   ========================================================================== */

.card { display: flex; flex-direction: column; gap: var(--sp-2); }
.card__title { margin-top: var(--sp-1); }
.card__meta { color: var(--c-muted); }

/* Produktkarte (Shop) */
.product-card { display: block; }
.product-card .media { margin-bottom: var(--sp-2); }
.product-card__cat { font-size: 0.8125rem; color: var(--c-muted); }
.product-card__name { font-size: 1.375rem; margin-top: 2px; }
.product-card__price { font-size: 0.9375rem; color: var(--c-ink-70); margin-top: 6px; }
.product-card__swatches { display: flex; gap: 6px; margin-top: var(--sp-2); }
.swatch-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--c-ink-15);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-ink-08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) 0;
}
.logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
}
.logo__img {
  height: 19px;
  width: auto;
  display: block;
}
.nav {
  display: none;
  align-items: center;
  gap: var(--sp-4);
}
.nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ink-70);
  transition: color var(--dur) var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--c-ink); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.icon-btn {
  background: none; border: none; padding: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.icon-btn svg { width: 19px; height: 19px; stroke: var(--c-ink); }
.cart-badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--c-ink); color: var(--c-bg);
  font-size: 0.625rem; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--c-ink); margin: 5px 0; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--sp-2) var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-ink-08);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: var(--sp-2) 0; font-size: 1rem; border-bottom: 1px solid var(--c-ink-08); }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  /* Verlauf dunkelt den oberen Bildbereich ab, damit die Headline nicht auf dem
     Möbelstück selbst liegt — die Produktfotos zeigen LINEA typischerweise im
     unteren Bildbereich, der Header/Content-Bereich oben bleibt frei. */
  background: linear-gradient(180deg, rgba(20,19,17,0.55) 0%, rgba(20,19,17,0.08) 45%, rgba(20,19,17,0) 68%);
}
.hero__content {
  position: absolute;
  left: 0; right: 0; top: 0;
  padding: var(--sp-6) 0 var(--sp-4);
  color: var(--c-bg);
}
.hero__eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.85; margin-bottom: var(--sp-2); display: block;
}
.hero__title { font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--c-bg); }
.hero__title--keywords { letter-spacing: -0.005em; }
.hero__sub { font-family: var(--font-sans); font-size: 1.0625rem; margin-top: var(--sp-2); max-width: 420px; opacity: 0.92; }

/* ==========================================================================
   Produktseite: Kaufbereich
   ========================================================================== */

.buy-box { display: flex; flex-direction: column; gap: var(--sp-3); }
.price { font-family: var(--font-sans); font-size: 1.75rem; font-weight: 700; }
.price-note { font-size: 0.8125rem; color: var(--c-muted); }
.price-note + .price-note { margin-top: 2px; }

.option-group { display: flex; flex-direction: column; gap: 10px; }
.option-group__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 12px 18px;
  border: 1px solid var(--c-ink-15);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  color: var(--c-ink-70);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--c-ink-40); }
.chip.is-selected { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-bg); }
.chip__sub { display: block; font-size: 0.6875rem; font-weight: 500; opacity: 0.75; margin-top: 2px; }

.material-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--c-ink-15);
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; color: var(--c-ink-70);
  transition: border-color var(--dur) var(--ease);
}
.material-chip__swatch { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--c-ink-15); background-size: cover; background-position: center; }
.material-chip:hover { border-color: var(--c-ink-40); }
.material-chip.is-selected { border-color: var(--c-ink); }
.material-chip.is-selected .material-chip__swatch { box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 3px var(--c-ink); }

.delivery-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--c-ink-70); }

/* Sticky mobile add-to-cart */
.sticky-buy {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--c-bg);
  border-top: 1px solid var(--c-ink-15);
  padding: 12px var(--sp-3);
  align-items: center; justify-content: space-between; gap: var(--sp-2);
}
.sticky-buy__price { font-weight: 700; font-size: 1.0625rem; }
.sticky-buy__price small { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--c-muted); }
@media (max-width: 900px) {
  .sticky-buy.is-visible { display: flex; }
  body { padding-bottom: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--c-ink); color: var(--c-bg); padding: var(--sp-6) 0 var(--sp-3); }
.site-footer a { color: var(--c-bg); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(245,243,238,0.15);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,243,238,0.55); margin-bottom: var(--sp-2);
}
.footer-grid li { margin-bottom: 10px; font-size: 0.9375rem; }
.footer-grid li a:hover { text-decoration: underline; }
.newsletter-form { display: flex; gap: 8px; margin-top: var(--sp-2); max-width: 340px; }
.newsletter-form input {
  flex: 1; background: transparent; border: 1px solid rgba(245,243,238,0.3);
  border-radius: var(--radius); padding: 12px 14px; color: var(--c-bg); font-size: 0.875rem;
}
.newsletter-form input::placeholder { color: rgba(245,243,238,0.5); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2);
  padding-top: var(--sp-3); font-size: 0.8125rem; color: rgba(245,243,238,0.55);
}

/* ==========================================================================
   Lifestyle-Section (Startseite) — „Designed for living.“
   Reduziert, bildstark, editorial. Kein Fließtext außer der Headline.
   ========================================================================== */

.lifestyle-head { max-width: 640px; margin: 0 auto var(--sp-6); text-align: center; }
.lifestyle-head h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }

.lifestyle__gallery { display: flex; flex-direction: column; gap: var(--sp-3); }
.lifestyle__row { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-3); }
.lifestyle__row > *:last-child { margin-top: var(--sp-5); }
@media (max-width: 700px) {
  .lifestyle__row { grid-template-columns: 1fr; }
  .lifestyle__row > *:last-child { margin-top: 0; }
}

/* ==========================================================================
   Qualität-Section (Startseite) — „Built to last.“
   Gegenstück zur Lifestyle-Section: ruhiger, technischer Dreiklang aus
   Material, Beschlägen und Präzisionsdetail.
   ========================================================================== */

.quality { background: var(--c-white); }
.quality-head { max-width: 640px; margin: 0 auto var(--sp-6); text-align: center; }
.quality-head h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.quality__caption {
  margin-top: var(--sp-2);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-muted); text-align: center;
}

/* ==========================================================================
   Hero-Raumfoto mit Produkt-Hotspots (Startseite)
   ========================================================================== */

.room-hero {
  position: relative;
  width: 100%;
  height: 94vh;
  min-height: 600px;
  max-height: 960px;
  overflow: hidden;
}
.room-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,17,0.45) 0%, rgba(20,19,17,0.06) 30%, rgba(20,19,17,0) 55%);
  pointer-events: none;
}
.room-hero__content {
  position: absolute; left: 0; right: 0; top: 0;
  padding: var(--sp-6) 0 var(--sp-4);
  color: var(--c-bg);
  text-align: center;
  pointer-events: none;
}
.room-hero__content .container { pointer-events: none; }
.room-hero__brand {
  font-family: var(--font-sans);
  font-size: 1.1875rem; font-weight: 800; letter-spacing: 0.14em;
  margin: 0 0 var(--sp-1);
}
.room-hero__claim {
  font-family: var(--font-sans);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.03em;
  opacity: 0.92; margin: 0;
}

/* Hotspots — bewusst extrem reduziert, kein Shop-Look */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(245,243,238,0.28);
  border: 1px solid rgba(245,243,238,0.85);
  backdrop-filter: blur(2px);
  color: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 400; line-height: 1;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hotspot:hover, .hotspot:focus-visible, .hotspot.is-active {
  background: rgba(28,28,27,0.75);
  border-color: var(--c-bg);
}
.hotspot:focus-visible { outline: 2px solid var(--c-bg); outline-offset: 3px; }
.hotspot__label {
  position: absolute;
  left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  background: rgba(28,28,27,0.85);
  color: var(--c-bg);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: var(--radius);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hotspot:hover .hotspot__label,
.hotspot:focus-visible .hotspot__label,
.hotspot.is-active .hotspot__label {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
@media (max-width: 700px) {
  .room-hero { height: 82vh; }
  .hotspot { width: 24px; height: 24px; }
}

/* ==========================================================================
   Materialwelt (Startseite) — Eiche / Nussbaum / F416 Textil Beige
   ========================================================================== */

.material-world__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.material-world__item { text-align: center; }
.material-world__swatch {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto var(--sp-3);
  border: 1px solid var(--c-ink-15);
}
.material-world__item h3 { font-size: 1.0625rem; }
.material-world__item p { color: var(--c-muted); margin-top: 4px; }
@media (max-width: 700px) {
  .material-world__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ==========================================================================
   Produkt-Teaser (Startseite) — großes Bild, wenig Text, "fühlen vor
   verstehen". Bewusst keine klassischen Shop-Kacheln mit Preis/Badge.
   ========================================================================== */

.product-teaser { display: flex; flex-direction: column; gap: var(--sp-6); }
.product-teaser__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.product-teaser__row--reverse .product-teaser__media { order: 2; }
.product-teaser__row--reverse .product-teaser__text { order: 1; }
.product-teaser__text h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.product-teaser__text p { color: var(--c-ink-70); margin-top: var(--sp-2); max-width: 420px; }
.product-teaser__price { margin-top: var(--sp-2); font-size: 0.9375rem; color: var(--c-muted); }
@media (max-width: 900px) {
  .product-teaser__row { grid-template-columns: 1fr; gap: var(--sp-3); }
  .product-teaser__row--reverse .product-teaser__media,
  .product-teaser__row--reverse .product-teaser__text { order: initial; }
}

/* ==========================================================================
   Produktgalerie — Karussell (Hauptbild + Thumbnail-Leiste)
   Keine Bildbeschriftungen im Verkaufsbereich — nur klickbare Vorschaubilder
   und Pfeile. Wird von den Material-Chips mitgesteuert (siehe main.js).
   ========================================================================== */

.gallery-carousel__main { position: relative; }
.gallery-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(245, 243, 238, 0.85);
  color: var(--c-ink);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}
.gallery-carousel__arrow:hover,
.gallery-carousel__arrow:focus-visible { background: var(--c-bg); }
.gallery-carousel__arrow--prev { left: var(--sp-2); }
.gallery-carousel__arrow--next { right: var(--sp-2); }
.gallery-carousel__thumbs {
  display: flex;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
  overflow-x: auto;
  padding-bottom: 2px;
}
.gallery-carousel__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 2px;
  border: 1px solid var(--c-line);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.5;
  padding: 0;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery-carousel__thumb:hover { opacity: 0.8; }
.gallery-carousel__thumb.is-active { opacity: 1; border-color: var(--c-ink); }
.gallery-carousel__thumb:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }

/* Produkt-Hero: auf kleinen Displays nie anschneiden — lieber contain mit
   neutralem Hintergrund als das Möbel per object-fit:cover zu beschneiden. */
@media (max-width: 700px) {
  #galleryMain img { object-fit: contain; background: var(--c-bg); }
}

/* ==========================================================================
   Produktinformationen — reduziertes Accordion (Produktseiten)
   Natives <details>/<summary>: barrierefrei und tastaturbedienbar ohne JS.
   Keine Boxen/Cards — nur feine Trennlinien und Weißraum.
   ========================================================================== */

.info-accordion { border-top: 1px solid var(--c-line); }
.info-accordion__item { border-bottom: 1px solid var(--c-line); }
.info-accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink);
  list-style: none;
}
.info-accordion__item summary::-webkit-details-marker { display: none; }
.info-accordion__item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-muted);
  transition: transform var(--dur) var(--ease);
}
.info-accordion__item[open] summary::after { content: '–'; }
.info-accordion__item summary:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; }
.info-accordion__body {
  padding: 0 0 var(--sp-3);
  max-width: 640px;
  color: var(--c-ink-70);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.info-accordion__body p + p { margin-top: var(--sp-2); }
.info-accordion__body ul { list-style: disc; padding-left: 1.2em; }
.info-accordion__body li + li { margin-top: 6px; }

/* ==========================================================================
   FAQ — vollflächiger dunkler Abschnitt (Produktseiten)
   Bewusster Kontrast zur hellen Seite: tiefes Anthrazit, Warm White.
   ========================================================================== */

.faq { background: var(--c-ink); color: var(--c-bg); }
.faq-head { max-width: 640px; margin-bottom: var(--sp-5); }
.faq-head h2 { color: var(--c-bg); }
.faq-list { border-top: 1px solid rgba(245,243,238,0.14); }
.faq-item { border-bottom: 1px solid rgba(245,243,238,0.14); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-bg);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.375rem;
  font-weight: 300;
  color: rgba(245,243,238,0.65);
}
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:focus-visible { outline: 2px solid var(--c-bg); outline-offset: 4px; }
.faq-item__body {
  padding: 0 0 var(--sp-3);
  max-width: 620px;
  color: rgba(245,243,238,0.75);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.faq-item__body p + p { margin-top: var(--sp-2); }

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-1{margin-top:var(--sp-1);} .mt-2{margin-top:var(--sp-2);} .mt-3{margin-top:var(--sp-3);}
.mt-4{margin-top:var(--sp-4);} .mt-5{margin-top:var(--sp-5);}
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1{gap:var(--sp-1);} .gap-2{gap:var(--sp-2);} .gap-3{gap:var(--sp-3);}

.tbd {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(28,28,27,0.06);
  border: 1px dashed var(--c-ink-40);
  color: var(--c-muted);
  font-size: 0.8125rem;
  border-radius: var(--radius);
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   Brand Journey (Startseite)
   ========================================================================== */

.journey { background: var(--c-bg); }

.journey-number {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  color: var(--c-ink-15);
  margin-bottom: var(--sp-2);
}

/* 01 — Die Idee: reines Statement, sehr viel Weißraum */
.journey-idee {
  padding: var(--sp-7) 0;
  text-align: center;
}
@media (max-width: 700px) { .journey-idee { padding: var(--sp-6) 0; } }
.journey-idee__label {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted); display: block; margin-bottom: var(--sp-3);
}
.journey-idee h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 900px;
  margin: 0 auto;
}
.journey-idee__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--c-ink-70);
  max-width: 560px;
  margin: var(--sp-4) auto 0;
}
.journey-idee p {
  max-width: 560px;
  margin: var(--sp-3) auto 0;
  color: var(--c-ink-70);
}

/* 02–05 — alternierende Schritte */
.journey-step {
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--c-line);
}
.journey-step__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.journey-step--reverse .journey-step__grid { direction: rtl; }
.journey-step--reverse .journey-step__grid > * { direction: ltr; }
@media (max-width: 900px) {
  .journey-step__grid { grid-template-columns: 1fr; direction: ltr !important; }
  .journey-step__grid > * { direction: ltr !important; }
}
.journey-step__text .eyebrow { color: var(--c-muted); }
.journey-step__text h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.journey-step__text p { color: var(--c-ink-70); margin-top: var(--sp-2); max-width: 440px; }

.journey-step__media { position: relative; overflow: hidden; }
.journey-step__media--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-2); }
.journey-step__media--split .media:last-child { margin-top: var(--sp-5); }
@media (max-width: 600px) {
  .journey-step__media--split { grid-template-columns: 1fr 1fr; }
  .journey-step__media--split .media:last-child { margin-top: var(--sp-3); }
}

.journey-parallax { will-change: transform; }

/* Platzhalter für noch fehlendes, echtes Bildmaterial.
   .img-placeholder ist der generische Name für Sections außerhalb der Journey;
   .journey-placeholder bleibt als Alias für bestehende Journey-Markup-Stellen erhalten. */
.journey-placeholder, .img-placeholder {
  aspect-ratio: 4/3;
  border: 1px dashed var(--c-ink-40);
  background: var(--c-line);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--sp-3);
}
.journey-placeholder span, .img-placeholder span {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-muted); max-width: 220px;
}

/* 06 — Das Möbel: großformatiger Abschluss */
.journey-finale { position: relative; border-top: 1px solid var(--c-line); }
.journey-finale__media { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.journey-finale__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .journey-finale__media { aspect-ratio: 4/5; } }
.journey-finale__text { padding: var(--sp-5) 0 var(--sp-6); text-align: center; }
.journey-finale__text .eyebrow { color: var(--c-muted); }
.journey-finale__text h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.journey-finale__text .serif-sub { font-family: var(--font-serif); font-size: clamp(1.375rem, 2vw, 1.75rem); color: var(--c-ink-70); margin-top: 6px; }
.journey-finale__text p { max-width: 480px; margin: var(--sp-3) auto 0; color: var(--c-ink-70); }

/* ==========================================================================
   Bestellformular-Modal
   ========================================================================== */
.order-modal {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28,28,27,0.55);
  align-items: flex-start; justify-content: center;
  padding: var(--sp-3);
  overflow-y: auto;
}
.order-modal.is-open { display: flex; }
.order-modal__panel {
  background: var(--c-bg);
  max-width: 480px; width: 100%;
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--radius);
  position: relative;
}
.order-modal__close {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  background: none; border: none; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--c-ink-70);
  padding: 8px;
}
.order-modal__close:hover { color: var(--c-ink); }
.order-modal__summary { color: var(--c-ink-70); font-size: 0.9375rem; margin: 4px 0 var(--sp-3); }
.order-form__row { display: flex; gap: var(--sp-2); }
.order-form__row > * { flex: 1; }
.order-form label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 4px; margin-top: var(--sp-2);
  color: var(--c-ink-70);
}
.order-form input, .order-form textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--c-ink-15); border-radius: var(--radius);
  background: var(--c-white); color: var(--c-ink);
  font-family: var(--font-sans); font-size: 0.9375rem;
}
.order-form input:focus, .order-form textarea:focus {
  outline: none; border-color: var(--c-ink-40);
}
.order-form textarea { resize: vertical; min-height: 70px; }
.order-form button[type="submit"] { margin-top: var(--sp-3); }
.order-form__status { margin-top: var(--sp-2); font-size: 0.875rem; min-height: 1.2em; }
.order-form__status.is-success { color: #2E6B3E; }
.order-form__status.is-error { color: #B3401E; }
.order-form__hint { font-size: 0.75rem; color: var(--c-muted); margin-top: var(--sp-1); }
