/* ================= FONTS ================= */
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ================= TOKENS ================= */
:root {
  --cream: #f3eee5;
  --band: #e7e0d3;
  --panel: #ebe4d8;
  --panel-2: #e7e0d3;
  --ink: #1c1a17;
  --ink-soft: #4a4640;
  --muted: #736c62;
  --wine: #672031;
  --wine-soft: #8a3245;
  --line: rgba(28, 26, 23, 0.14);
  --line-soft: rgba(28, 26, 23, 0.08);
  --radius: 28px;
  --radius-sm: 16px;
  --maxw: 1240px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================= RESET ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: 0.005em; }
::selection { background: var(--wine); color: #fff; }

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(236, 230, 219, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-top: 12px;
  padding-bottom: 12px;
}
.header-logo img { height: 34px; width: auto; opacity: 0; transition: opacity 0.4s var(--ease); }
.site-header.scrolled .header-logo img { opacity: 1; }
/* Navigation erst beim Scrollen zeigen – ganz oben bleibt nur der zentrale Logo-Badge (wie im Design) */
.header-nav, .header-cta {
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease);
}
.site-header.scrolled .header-nav, .site-header.scrolled .header-cta {
  opacity: 1; visibility: visible; transform: none;
}
.header-nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.header-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.header-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--wine);
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease);
}
.header-nav a:hover { color: var(--wine); }
.header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 10px 22px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header-cta:hover { background: var(--wine); border-color: var(--wine); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
/* Oben über dem Video: helle Striche. Beim Scrollen / geöffnet: dunkel */
.nav-toggle span { width: 26px; height: 2px; background: #f6f1e9; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease); }
.site-header.scrolled .nav-toggle { filter: none; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open { filter: none; }
.nav-toggle.open span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  animation: fadeIn 0.3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; color: var(--ink); padding: 10px 0; }
.mobile-menu .mobile-cta { font-family: var(--sans); font-size: 0.95rem; margin-top: 20px; border: 1px solid var(--ink); border-radius: 100px; padding: 12px 28px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ================= HERO ================= */
.hero {
  --hero-pad: clamp(14px, 2vw, 26px);
  position: relative;
  padding: var(--hero-pad);
  background: transparent;
}
.hero-frame {
  position: relative;
  height: min(94vh, 1040px);
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #241f1b;
  /* Schatten nur nach unten – oben (am Ausschnitt) bleibt er unsichtbar */
  box-shadow: 0 46px 60px -46px rgba(28, 26, 23, 0.55);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,16,13,0) 45%, rgba(20,16,13,0.28) 100%);
  pointer-events: none;
}
.hero-badge {
  position: absolute; top: var(--hero-pad); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--cream);
  padding: 12px 54px 22px;
  border-radius: 0 0 24px 24px;
  z-index: 5;
}
.hero-badge img { height: clamp(30px, 3.4vw, 44px); width: auto; }
.hero-badge-sub {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.34em; text-transform: uppercase; color: #3f3b37;
  padding-left: 0.34em; margin-top: 3px;
}
.hero-overlay {
  position: absolute; z-index: 3;
  right: clamp(24px, 5vw, 72px);
  top: 50%; transform: translateY(-50%);
  text-align: right;
  max-width: 640px;
}
.hero-title {
  color: #f7f2ea;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.12;
  text-shadow: 0 2px 26px rgba(0,0,0,0.32);
}
.hero-scroll {
  position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1.5px solid rgba(246,241,233,0.7); border-radius: 40px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll span { width: 3px; height: 8px; background: rgba(246,241,233,0.9); border-radius: 3px; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ================= MARQUEE ================= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  margin-top: clamp(10px, 2vw, 22px);
}
.marquee-track {
  display: flex; align-items: center; gap: 44px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span { font-family: var(--sans); font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 400; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; }
.marquee-track img { width: 14px; height: 14px; opacity: 0.75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= SECTION HEADINGS ================= */
.eyebrow { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--wine); margin-bottom: 14px; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; padding: 0 24px; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 18px; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin: 0 auto; }

/* ================= SERVICES ================= */
.services { background: transparent; padding: clamp(72px, 10vw, 150px) clamp(20px, 5vw, 56px); }
.services-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.82fr 1.4fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.services-intro { position: static; }
.services-intro h2 { font-size: clamp(2.6rem, 4.8vw, 4rem); margin-bottom: 22px; }
.services-intro p { color: var(--muted); font-size: 0.95rem; max-width: 38ch; }

.services-list { display: flex; flex-direction: column; }
.service { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-icon { width: 40px; height: 40px; color: #2b2621; margin-top: 2px; }
.service-icon svg { width: 100%; height: 100%; stroke-width: 1.3; }
.service-body h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.35; margin-bottom: 10px; letter-spacing: 0; color: var(--ink); }
.service-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; max-width: 62ch; }

/* ================= ALLE LEISTUNGEN ================= */
.services-all { background: var(--panel); padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 56px); }
.services-all-inner { max-width: var(--maxw); margin: 0 auto; }
.services-all .section-head { margin-bottom: clamp(30px, 4vw, 52px); }
.services-all-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 clamp(30px, 5vw, 64px);
  max-width: 1040px; margin: 0 auto;
}
.services-all-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 17px 2px;
  border-top: 1px solid var(--line);
  font-size: 1.02rem; line-height: 1.5; color: var(--ink);
}
.services-all-list li svg { flex: none; width: 19px; height: 19px; color: var(--wine); margin-top: 3px; }
.services-all-cta { text-align: center; margin-top: clamp(34px, 5vw, 56px); }
.services-all-cta p { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); margin-bottom: 22px; }
.btn-cta {
  display: inline-block; background: var(--wine); color: #fff;
  border-radius: 100px; padding: 15px 34px; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn-cta:hover { background: var(--wine-soft); transform: translateY(-1px); }

/* ================= GALLERY (Interactive Collage) ================= */
.gallery { background: var(--cream); padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 110px); }
.gallery .section-head { padding-left: 24px; padding-right: 24px; }

.collage-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: clip;
  /* Basiseinheit der Collage – alle Maße unten sind in em */
  font-size: 1vw;
  margin-top: clamp(28px, 4vw, 56px);
}

.interactive-collage { width: 63.75em; height: 37em; flex: none; }
.interactive-collage__collection { width: 100%; height: 100%; }
.interactive-collage__list { width: 100%; height: 100%; position: relative; }

/* 7 Plätze, je ein Möbelstück. Breiten: Landscape 20em, Portrait 15em.
   Positionen von links nach rechts gestaffelt, damit die JS-Sortierung
   (nach horizontaler Kartenmitte) der DOM-Reihenfolge entspricht. */
.interactive-collage__item { z-index: 0; position: absolute; top: 0; left: 0; }
.interactive-collage__item.is--1 { top: 7em; left: 0; }
.interactive-collage__item.is--2 { z-index: 1; top: auto; bottom: 0; left: 9.5em; }
.interactive-collage__item.is--3 { top: 2em; left: 15em; }
.interactive-collage__item.is--4 { z-index: 2; top: 0; left: 25em; }
.interactive-collage__item.is--5 { z-index: 3; top: auto; bottom: 0; left: 31.5em; }
.interactive-collage__item.is--6 { z-index: 1; top: 6em; left: 38em; }
.interactive-collage__item.is--7 { top: 2em; left: auto; right: 0; }

.interactive-collage__item-inner { will-change: transform; }
.interactive-collage__item[data-interactive-collage-focus] { z-index: 10; }

.collage-card {
  aspect-ratio: 1;
  width: 16.25em;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #d8d0c2;
  box-shadow: 0 1.4em 3.4em -2.6em rgba(28, 26, 23, 0.7);
}
.collage-card.is--landscape { aspect-ratio: 4 / 3; width: 20em; }
.collage-card.is--portrait { aspect-ratio: 3 / 4; width: 15em; }

.collage-card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.collage-hint {
  margin: clamp(20px, 3vw, 36px) auto 0;
  width: max-content;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  background: rgba(243, 238, 229, 0.72);
  padding: 8px 18px; border-radius: 100px; border: 1px solid var(--line-soft);
}
.collage-hint .is--touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .collage-hint .is--hover { display: none; }
  .collage-hint .is--touch { display: inline; }
}

/* ================= ABOUT ================= */
.about { background: transparent; padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 56px); }
.about-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 70px -45px rgba(28,26,23,0.5); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin-bottom: 24px; }
.about-text p { color: var(--muted); margin-bottom: 18px; max-width: 52ch; }
.about-stats { list-style: none; display: flex; gap: clamp(24px, 4vw, 52px); margin-top: 38px; flex-wrap: wrap; }
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3rem); color: var(--wine); line-height: 1; }
.about-stats span { font-size: 0.85rem; color: var(--muted); margin-top: 8px; letter-spacing: 0.02em; }

/* ================= CONTACT ================= */
.contact { padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 56px); }
.contact-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-info h2 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin-bottom: 20px; }
.contact-info .section-sub { text-align: left; margin: 0 0 40px; }
.contact-rows { display: flex; flex-direction: column; }
.contact-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-value { font-size: 1.1rem; }
.contact-value a { transition: color 0.25s var(--ease); }
.contact-value a:hover { color: var(--wine); }

.contact-form { background: var(--panel); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(103,32,49,0.12); }
.field textarea { resize: vertical; }
.btn-solid {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.02em; cursor: pointer;
  background: var(--wine); color: #fff; border: none; border-radius: 100px; padding: 16px 30px;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn-solid:hover { background: var(--wine-soft); transform: translateY(-1px); }
.form-hint { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 16px; }

/* ================= FOOTER ================= */
.site-footer { background: var(--ink); color: #d9d2c7; padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 56px) 40px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) saturate(100%) invert(85%) sepia(8%) saturate(400%) hue-rotate(350deg); margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; color: #a89f92; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: #d9d2c7; transition: color 0.25s var(--ease); }
.footer-nav a:hover { color: #fff; }
.footer-legal { max-width: var(--maxw); margin: 40px auto 0; }
.footer-legal h3 { font-size: 1.4rem; margin-bottom: 14px; color: #f0eae0; }
.footer-legal p { font-size: 0.88rem; color: #a89f92; margin-bottom: 14px; line-height: 1.7; }
.footer-legal .disclaimer { max-width: 80ch; }
.footer-legal .copyright { font-size: 0.82rem; margin-top: 24px; margin-bottom: 0; }

/* ================= REVEAL ANIM ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .header-nav { display: none; }
  /* In der Mobilversion: Logo raus. Telefon-Button erscheint (wie die Leiste)
     erst beim Scrollen – gesteuert über die Basis-Regeln + .scrolled */
  .header-logo { display: none; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: flex; margin-right: 12px; }
  .services-inner { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .services-all-list { grid-template-columns: 1fr; max-width: 620px; }
  /* Über uns: mobil erst Text, dann Foto */
  .about-text { order: 1; }
  .about-media { order: 2; max-width: 480px; }
  /* Collage skaliert mit; ragt bewusst leicht über den Rand (overflow: clip) */
  .collage-stage { font-size: 1.75vw; }
  .hero-overlay { left: clamp(20px, 6vw, 40px); right: clamp(20px, 6vw, 40px); text-align: center; max-width: none; }
}
@media (max-width: 600px) {
  /* Logo-Badge wie zuvor: an der Videokante, mittig, als Ausschnitt */
  .header-cta { padding: 9px 16px; font-size: 0.8rem; }
  .hero-badge { padding: 10px 22px 15px; border-radius: 0 0 18px 18px; }
  .hero-badge img { height: 29px; }
  .hero-badge-sub { font-size: 0.6rem; letter-spacing: 0.24em; padding-left: 0.24em; margin-top: 3px; }
}
@media (max-width: 560px) {
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
  .hero-frame { min-height: 480px; height: 80vh; }
  .marquee-track span { font-size: 1.3rem; }
  /* Statistik-Zahlen kleiner, damit sie in eine Zeile passen */
  .about-stats { gap: clamp(10px, 4vw, 18px); flex-wrap: nowrap; margin-top: 28px; }
  .about-stats li { flex: 1 1 0; min-width: 0; }
  .about-stats strong { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  .about-stats span { font-size: 0.66rem; margin-top: 4px; }
  .collage-stage { font-size: 2.125vw; }
  .collage-hint { font-size: 0.65rem; letter-spacing: 0.18em; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
