/* Zigerli + Iff · pitch site · "Das Schaufenster bei Nacht" */

:root {
  --ground: #0D0C0A;
  --surface: #161411;
  --ivory: #F2EDE3;
  --muted: #9A938A;
  --gold: #C0A468;
  --hairline: rgba(242, 237, 227, 0.14);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ground);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--ground); }

/* ---------- typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.display-small {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  margin-top: 1.6rem;
}

.body-copy {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 52ch;
  color: var(--ivory);
  margin-top: 1.2rem;
}
.body-copy.muted { color: var(--muted); }

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 72px;
  background: linear-gradient(to bottom, rgba(13, 12, 10, 0.85), rgba(13, 12, 10, 0));
  transition: background 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(13, 12, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wordmark-plus { color: var(--gold); padding: 0 0.1em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--ivory);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.55rem 1.1rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-cta:hover { background: var(--gold); color: var(--ground); }

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- film track ---------- */

.film-track {
  position: relative;
  /* Der Scroll-Weg wird in js/main.js ungleich verteilt: Kapitel bekommen
     viel davon (langsamer Film), die Übergänge wenig (zügiger Film).
     Deshalb ist die Bahn länger als bei linearem Scrubbing. */
  height: 640vh;
}

.film-stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
}

.film-video, .film-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-video { opacity: 0; transition: opacity 0.5s ease; }
.film-video.ready { opacity: 1; }

.film-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(13,12,10,0) 45%, rgba(13,12,10,0.55) 100%),
    linear-gradient(to top, rgba(13,12,10,0.6), rgba(13,12,10,0) 30%),
    linear-gradient(to right, rgba(13,12,10,0.5), rgba(13,12,10,0) 45%);
  pointer-events: none;
}

/* chapters */

.chapter {
  position: absolute;
  z-index: 5;
  max-width: 560px;
  pointer-events: none;
  will-change: transform, opacity;
}
.chapter a { pointer-events: auto; }

.chapter h1, .chapter h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 1rem;
}

.chapter-sub {
  margin-top: 1.1rem;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--ivory);
  opacity: 0.85;
  max-width: 40ch;
}

.chapter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* with JS active, later chapters wait for the scrub choreography (no flash) */
.js .chapter-2, .js .chapter-3, .js .chapter-4 { opacity: 0; }

.chapter-1 { left: clamp(1.5rem, 7vw, 6rem); top: 50%; transform: translateY(-50%); }
.chapter-2 { left: clamp(1.5rem, 7vw, 6rem); bottom: clamp(3rem, 12vh, 7rem); }
.chapter-3 { right: clamp(1.5rem, 7vw, 6rem); top: clamp(6rem, 18vh, 10rem); text-align: right; }
.chapter-3 .chapter-tags { justify-content: flex-end; }
.chapter-3 .chapter-sub { margin-left: auto; }
.chapter-4 { left: 50%; bottom: clamp(3.5rem, 14vh, 8rem); transform: translateX(-50%); text-align: center; }
.chapter-4 .chapter-sub { margin-left: auto; margin-right: auto; }

@media (max-width: 760px) {
  .chapter { left: 1.25rem !important; right: 1.25rem !important; max-width: none; text-align: left !important; transform: none !important; }
  .chapter-1 { top: auto; bottom: 18vh; }
  .chapter-3 .chapter-tags { justify-content: flex-start; }
  .chapter-3 .chapter-sub, .chapter-4 .chapter-sub { margin-left: 0; }
  .chapter-4 { bottom: 14vh; text-align: left !important; }
}

/* ---------- CTA garments ---------- */

.cta-frame {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--ivory);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease;
}
.cta-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.cta-frame:hover { color: var(--ground); }
.cta-frame:hover::before { transform: translateY(0); }
.cta-frame:active { transform: scale(0.98); }

.cta-underline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding-bottom: 0.35rem;
}
.cta-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-underline:hover::after { transform: scaleX(1); }
.cta-arrow { color: var(--gold); transition: transform 0.35s ease; display: inline-block; }
.cta-underline:hover .cta-arrow { transform: translateX(6px); }

.cta-atelier {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.cta-square {
  width: 8px; height: 8px;
  background: var(--gold);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-atelier:hover .cta-square { transform: rotate(135deg); }

/* ---------- sections shared ---------- */

.section {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 6vw, 5rem);
}

.reveal {
  transform: translateY(28px);
  opacity: 0.35;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}
.reveal.in { transform: translateY(0); opacity: 1; }

/* ---------- uhren ---------- */

.uhren-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.uhren-figure img { aspect-ratio: 4 / 3; object-fit: cover; }

.brand-rows {
  max-width: 1280px;
  margin: clamp(4rem, 9vh, 7rem) auto 0;
  border-top: 1px solid var(--hairline);
}
.brand-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0.25rem;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand-row:hover { padding-left: 1.25rem; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  transition: color 0.3s ease;
}
.brand-row:hover .brand-name { color: var(--gold); }
.brand-note {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- schmuck ---------- */

.section-schmuck {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--surface);
}
.schmuck-figure {
  margin-left: calc(-1 * clamp(1.25rem, 6vw, 5rem));
}
.schmuck-figure img { aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.1rem 0;
}
.marquee-inner {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-inner span:nth-child(even) { color: var(--gold); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; }
}

/* ---------- atelier diptych ---------- */

.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
}
.diptych-cell figure img { aspect-ratio: 16 / 10; object-fit: cover; }
.diptych-cell:nth-child(2) { transform: translateY(clamp(1rem, 4vh, 3rem)); }

/* ---------- maison ---------- */

.section-maison {
  text-align: center;
  overflow: hidden;
}
.giant-year {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(8rem, 26vw, 22rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(192, 164, 104, 0.4);
  user-select: none;
  margin: 1rem 0 0;
}
.maison-copy {
  max-width: 640px;
  margin: -1.5em auto 0;
  position: relative;
  z-index: 2;
}
.maison-copy .body-copy { margin-left: auto; margin-right: auto; }

/* ---------- besuch ---------- */

.section-besuch {
  padding: 0;
  position: relative;
  min-height: 88dvh;
  display: flex;
  align-items: flex-end;
}
.besuch-canvas {
  position: absolute;
  inset: 0;
}
.besuch-canvas img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.besuch-copy {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 6vw, 5rem);
}
.besuch-address {
  font-style: normal;
  margin-top: 1.4rem;
  line-height: 1.9;
  color: var(--ivory);
}
.besuch-address a { border-bottom: 1px solid var(--hairline); transition: border-color 0.3s ease; }
.besuch-address a:hover { border-color: var(--gold); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem clamp(1.25rem, 6vw, 5rem) 3.5rem;
  text-align: center;
}
.footer-line { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.06em; }
.footer-note { margin-top: 0.5rem; font-size: 0.6875rem; color: var(--muted); opacity: 0.7; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .uhren-grid, .section-schmuck, .diptych { grid-template-columns: 1fr; }
  .schmuck-figure { margin-left: 0; }
  .diptych-cell:nth-child(2) { transform: none; }
  .film-track { height: 500vh; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; opacity: 1; transition: none; }
  .film-video { display: none; }
  .film-track { height: auto; }
  .film-stage { position: relative; height: 100dvh; }
  .chapter { position: relative; inset: auto; transform: none !important; opacity: 1 !important; padding: 2rem clamp(1.25rem, 6vw, 5rem); }
  .film-stage { height: auto; padding-bottom: 3rem; }
  .film-poster { position: absolute; }
}

/* ============ Journal (CMS-Inhalte) ============ */
.announcement-bar {
  position: relative;
  z-index: 40;
  background: #C0A468;
  color: #0D0C0A;
  font-family: "Archivo", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.55rem 1rem;
}
.journal {
  max-width: 72rem;
  margin: 0 auto;
  padding-top: clamp(7rem, 14vh, 10rem);
}
.journal-empty { margin-top: 2rem; }
.journal-grid {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 2.5rem;
}
.journal-card a { text-decoration: none; color: inherit; display: block; }
.journal-card-figure { margin: 0 0 1rem; overflow: hidden; }
.journal-card-figure img { width: 100%; height: 14rem; object-fit: cover; display: block; }
.journal-card-date {
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C0A468;
  margin: 0 0 0.5rem;
}
.journal-tags { margin-top: 1rem; }
.journal-article { max-width: 46rem; }
.journal-hero { margin: 2.5rem 0; }
.journal-hero img { width: 100%; display: block; }
.journal-body { margin-top: 2rem; }
.journal-body p { margin: 0 0 1.2em; }
.journal-body h2, .journal-body h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  margin: 1.8em 0 0.6em;
}
.journal-body blockquote {
  border-left: 2px solid #C0A468;
  margin: 1.5em 0;
  padding-left: 1.2em;
  font-style: italic;
}
.journal .eyebrow a { color: inherit; text-decoration: none; }

/* ============ Theme: Stebler Gstaad · "Alpines Tageslicht" ============ */
/* Gleiche Familie, eigene Handschrift: Der Film bleibt Nacht, danach öffnet
   sich die Seite in Schneelicht — helle Flächen, Tinte statt Elfenbein,
   Stahlblau statt Gold, Marcellus statt Cormorant. */
body.theme-gstaad {
  --ground: #0B1016;                       /* Nacht nur noch im Film & Besuch */
  --paper: #F3F4F1;
  --ink: #1B242E;
  --surface: #E9ECE8;
  --muted: #5E6B78;
  --gold: #52708A;                         /* Akzent auf hellem Grund */
  /* Akzent auf dunklem Grund (Film). Der Gstaad-Film ist warmes Gold auf
     Nahschwarz — deshalb hier ein helles Champagner statt Eisblau. Das
     kühle Alpenklima bleibt den hellen Sektionen unterhalb des Films
     vorbehalten (--gold: Stahlblau). */
  --ice: #D8C4A0;
  --hairline: rgba(27, 36, 46, 0.16);
  --font-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
}
body.theme-gstaad ::selection { background: #52708A; color: #F3F4F1; }

/* Film-Hero bleibt dunkel; Text darüber hell, Akzente eisblau */
body.theme-gstaad .film-track { background: var(--ground); color: #EEF2F6; }
body.theme-gstaad .chapter-sub { color: #EEF2F6; }
body.theme-gstaad .chapter-tags { color: var(--ice); }
body.theme-gstaad .chapter .cta-frame { border-color: var(--ice); color: #EEF2F6; }
body.theme-gstaad .chapter .cta-frame::before { background: var(--ice); }
body.theme-gstaad .chapter .cta-frame:hover { color: var(--ground); }

/* Navigation: über dem Film hell auf dunkel, gescrollt Frost auf Schnee */
body.theme-gstaad .site-nav { color: #EEF2F6; }
body.theme-gstaad .site-nav.scrolled {
  background: rgba(243, 244, 241, 0.92);
  color: var(--ink);
}
body.theme-gstaad .site-nav.scrolled .nav-links a { color: var(--ink); }
body.theme-gstaad .site-nav.scrolled .nav-cta { border-color: var(--gold); color: var(--gold); }
body.theme-gstaad .site-nav.scrolled .nav-cta:hover { background: var(--gold); color: var(--paper); }

/* Helle Sektionen */
body.theme-gstaad .announcement-bar { background: #52708A; color: #F3F4F1; }
body.theme-gstaad .cta-frame { color: var(--ink); }
body.theme-gstaad .cta-frame:hover { color: var(--paper); }
body.theme-gstaad .giant-year { -webkit-text-stroke-color: rgba(82, 112, 138, 0.45); }
body.theme-gstaad .besuch-copy { color: #F2EDE3; }
body.theme-gstaad .besuch-copy .cta-frame { color: #F2EDE3; }
body.theme-gstaad .besuch-copy .cta-frame:hover { color: var(--ground); }
body.theme-gstaad .besuch-address { color: #F2EDE3; }

/* Markenkacheln statt Markenzeilen */
body.theme-gstaad .brand-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
body.theme-gstaad .brand-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--paper);
  border-bottom: none;
}
body.theme-gstaad .brand-row:hover { padding-left: clamp(1.6rem, 3vw, 2.6rem); background: #FFFFFF; }
@media (max-width: 860px) {
  body.theme-gstaad .brand-rows { grid-template-columns: 1fr; }
}

/* Intro-Band nach dem Film */
.gstaad-intro {
  text-align: center;
  padding-bottom: 0;
}
.gstaad-intro .display { max-width: 20ch; margin: 1.2rem auto 0; }
.gstaad-intro .body-copy { max-width: 52ch; margin: 1.4rem auto 0; }
.gstaad-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-top: 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Fakten-Band vor dem Besuch */
.gstaad-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2.5rem, 6vh, 4rem);
}
.gstaad-fact-label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
@media (max-width: 860px) {
  .gstaad-facts { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* Journal im Tageslicht */
body.theme-gstaad .journal-card-date { color: var(--gold); }
body.theme-gstaad .journal-body blockquote { border-left-color: var(--gold); }
body.theme-gstaad .journal-card:hover a { color: var(--gold); }

/* ---------- Sprachumschalter ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
}
.lang-switch a {
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.lang-switch a:hover { color: var(--ivory); }
.lang-switch a.active { color: var(--gold); border-bottom-color: var(--gold); }
body.theme-gstaad .lang-switch a.active { color: var(--ice); border-bottom-color: var(--ice); }
body.theme-gstaad .site-nav.scrolled .lang-switch a { color: var(--muted); }
body.theme-gstaad .site-nav.scrolled .lang-switch a.active { color: var(--gold); border-bottom-color: var(--gold); }

.journal-fallback-note {
  margin-top: 1.2rem;
  padding: 0.7rem 1rem;
  border-left: 2px solid var(--gold);
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .lang-switch { display: none; }
}
