/* ==========================================================================
   Modern Decor Th. Huber – Designsystem
   Leitidee: eine digitale Designgalerie mit der Persönlichkeit eines
   erfahrenen, aussergewöhnlichen Einrichters.
   ========================================================================== */

/* ---------- Schriften (lokal, SIL Open Font License 1.1) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-regular-latin.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-style: italic; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-var-latin.woff2") format("woff2");
  font-style: normal; font-weight: 300 700; font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --paper: #f2eee6;        /* warmes Cremeweiss */
  --stone: #e6e0d4;        /* Naturstein */
  --sand: #d5c9b5;         /* Sand */
  --taupe: #8b7e6f;        /* warmes Taupe */
  --olive: #2b3127;        /* dunkles Olivgrün */
  --olive-soft: #3a4235;
  --graphite: #1c1d1a;     /* Graphit */
  --ink: #1f201c;          /* Text */
  --muted: #5b574e;        /* Sekundärtext, AA auf --paper */
  --bronze: #8a5a30;       /* Akzent für Text auf hellem Grund */
  --bronze-light: #c79c6e; /* Akzent auf dunklem Grund */
  --cream-text: #efe9de;
  --cream-muted: #c4bdb0;
  --line: rgba(31, 32, 28, 0.16);
  --line-light: rgba(239, 233, 222, 0.2);

  /* Typografie */
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-display: clamp(3.1rem, 1rem + 6.6vw, 9.25rem);
  --fs-h2: clamp(2.5rem, 1.2rem + 4.4vw, 6rem);
  --fs-h3: clamp(1.6rem, 1.2rem + 1.1vw, 2.25rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Raster & Abstände */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --col-gap: clamp(1rem, 2vw, 2rem);
  --maxw: 1560px;
  --section: clamp(5.5rem, 4rem + 8vw, 12rem);
  --header-h: 4.75rem;

  /* Bewegung */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
em { font-style: italic; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--olive); color: var(--cream-text); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ---------- Typografische Bausteine ---------- */
.label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: 0.7; }
.label--plain::before { display: none; }
.num { font-family: var(--serif); font-style: italic; font-size: 1.05em; letter-spacing: 0; text-transform: none; color: var(--bronze); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); max-width: 34ch; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 0.9rem;
  min-height: 3.25rem; padding: 0.95rem 1.6rem;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--olive); border-color: var(--olive); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--light { background: var(--cream-text); color: var(--graphite); border-color: var(--cream-text); }
.btn--light:hover { background: var(--bronze-light); border-color: var(--bronze-light); color: var(--graphite); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.textlink {
  display: inline-flex; gap: 0.6rem; align-items: center;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 0.2rem; transition: background-size 0.4s var(--ease);
}
.textlink:hover { background-size: 35% 1px; }

/* Galerie-Etikett (wie im Museum) */
.tag {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 238, 230, 0.9);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.75rem; letter-spacing: -0.01em; }
.brand__name em { color: var(--bronze); }
.brand__sub { margin-top: 0.35rem; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.75rem); }
.nav__list { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav__list a { position: relative; font-size: 0.9rem; font-weight: 500; text-decoration: none; padding: 0.5rem 0; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav__list a:hover::after, .nav__list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 2.75rem; padding: 0.6rem 1.2rem; font-size: 0.875rem; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.75rem, 3.5vw, 3.5rem) clamp(3rem, 5vw, 5rem); }
.hero__grid { align-items: end; row-gap: 2.5rem; }
.hero__text { grid-column: 1 / span 7; position: relative; z-index: 2; padding-bottom: clamp(0rem, 3vw, 3rem); }
.hero__title { font-size: var(--fs-display); line-height: 0.9; letter-spacing: -0.03em; margin: 1.5rem 0 1.75rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { color: var(--bronze); }
.hero__title .indent { padding-left: 1.1em; }
.hero__lead { max-width: 30ch; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.hero__figure { grid-column: 8 / span 5; margin: 0; }
.frame { position: relative; overflow: hidden; background: var(--stone); }
.frame picture { width: 100%; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.collections .frame { background: var(--sand); }
.hero__figure .frame { aspect-ratio: 4 / 5.4; }
.caption {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding-top: 0.9rem; border-top: 1px solid var(--line); margin-top: 0.9rem;
  font-size: var(--fs-small); color: var(--muted);
}
.caption strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--ink); }

.index {
  margin-top: clamp(3rem, 6vw, 6rem);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line);
}
.index a {
  display: flex; gap: 0.75rem; align-items: baseline; padding: 1.1rem 0.25rem 0 0;
  text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  transition: color 0.3s var(--ease);
}
.index a:hover { color: var(--bronze); }

/* ---------- Abschnitte allgemein ---------- */
.section { padding-block: var(--section); }
.section__head { margin-bottom: clamp(3rem, 6vw, 6rem); }
.h2 { font-size: var(--fs-h2); line-height: 0.95; letter-spacing: -0.025em; }
.h2 em { color: var(--bronze); }

/* ---------- Philosophie ---------- */
.philosophy .section__head { row-gap: 1.5rem; }
.philosophy .label { grid-column: 1 / span 3; align-self: start; padding-top: 1.2rem; }
.philosophy .h2 { grid-column: 4 / span 9; }
.philosophy__body { align-items: start; row-gap: 3rem; }
.philosophy__figure { grid-column: 1 / span 5; margin: 0; }
.philosophy__figure .frame { aspect-ratio: 1 / 1; }
.philosophy__text { grid-column: 7 / span 5; padding-top: clamp(0rem, 6vw, 7rem); }
.philosophy__text p { color: var(--muted); max-width: 46ch; }
.philosophy__text .lead { color: var(--ink); margin-bottom: 1.5rem; max-width: 32ch; }
.quote { margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; padding: 0; }
.quote p {
  font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem);
  line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 1rem; max-width: 14ch;
}
.quote footer { font-size: var(--fs-small); color: var(--muted); }
.principles {
  grid-column: 1 / -1; margin-top: clamp(4rem, 8vw, 8rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap);
}
.principles div { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.principles dt { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; margin-bottom: 0.6rem; }
.principles dd { color: var(--muted); max-width: 32ch; }

/* ---------- Kollektionen ---------- */
.collections { background: var(--stone); }
.collections .section__head { align-items: end; row-gap: 1.75rem; }
.collections .section__head > div { grid-column: 1 / span 7; }
.collections .section__head .h2 { margin-top: 1.5rem; }
.collections .section__head p { grid-column: 9 / span 4; color: var(--muted); margin: 0; }

.gallery {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-areas:
    "m m m m m . l l l l l l"
    "m m m m m . t t t b b b"
    "s s s s s s s . o o o o";
}
.work { margin: 0; }
.work--moebel { grid-area: m; }
.work--licht { grid-area: l; }
.work--textil { grid-area: t; }
.work--bad { grid-area: b; }
.work--material { grid-area: s; }
.work--outdoor { grid-area: o; }
.work--moebel .frame { aspect-ratio: 4 / 5.6; }
.work--licht .frame { aspect-ratio: 3 / 2; }
.work--textil .frame, .work--bad .frame { aspect-ratio: 3 / 4.2; }
.work--material .frame { aspect-ratio: 16 / 10; }
.work .frame img { transition: transform 1.4s var(--ease); }
.work:hover .frame img { transform: scale(1.035); }
.work figcaption { display: grid; grid-template-columns: auto 1fr auto; gap: 0.25rem 1rem; align-items: baseline; padding-top: 1.1rem; }
.work .num { grid-row: 1; }
.work h3 { font-size: var(--fs-h3); line-height: 1.05; }
.work figcaption p { grid-column: 2 / -1; margin: 0.2rem 0 0; font-size: var(--fs-small); color: var(--muted); max-width: 40ch; }
.work .tag { grid-column: 3; grid-row: 1; }

.work--outdoor {
  align-self: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.work--outdoor .big { font-family: var(--serif); font-size: clamp(2.6rem, 1.6rem + 3.4vw, 5rem); line-height: 0.95; letter-spacing: -0.02em; margin: 1rem 0 1.25rem; }
.work--outdoor .big em { color: var(--bronze); }
.work--outdoor p { color: var(--muted); font-size: var(--fs-small); max-width: 36ch; margin: 0; }

.brands { margin-top: clamp(5rem, 9vw, 9rem); }
.brands__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; margin-bottom: 2.5rem; }
.brands__head h3 { font-size: var(--fs-h3); }
.brands__head p { margin: 0; font-size: var(--fs-small); color: var(--muted); max-width: 52ch; }
.brands__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem var(--col-gap); }
.brands__grid h4 { margin: 0 0 0.9rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.brands__grid li { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; }
.note { margin-top: 3.5rem; font-size: var(--fs-small); color: var(--muted); max-width: 70ch; }

/* ---------- Möglichkeiten (dunkel) ---------- */
.possible { background: var(--olive); color: var(--cream-text); position: relative; }
.possible .label { color: var(--cream-muted); }
.possible .num, .contact .num { color: var(--bronze-light); }
.possible .tag { color: var(--cream-muted); }
.possible__grid { row-gap: 3rem; align-items: start; }
.possible__statement { grid-column: 1 / span 8; }
.possible__statement .h2 { font-size: clamp(2.9rem, 1.2rem + 6.2vw, 8.4rem); line-height: 0.9; margin-top: 2rem; }
.possible__statement .h2 em { color: var(--bronze-light); }
.possible__figure { grid-column: 9 / span 4; margin: clamp(0rem, 4vw, 4rem) 0 0; }
.possible__figure .frame { aspect-ratio: 4 / 5; background: var(--olive-soft); }
.possible__figure .caption { border-color: var(--line-light); color: var(--cream-muted); }
.possible__figure .caption strong { color: var(--cream-text); }
.possible__text { grid-column: 1 / span 6; }
.possible__text p { color: var(--cream-muted); max-width: 48ch; }
.possible__text .lead { color: var(--cream-text); }
.process {
  grid-column: 1 / -1; margin-top: clamp(3rem, 7vw, 7rem);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--col-gap);
  counter-reset: step;
}
.process li { border-top: 1px solid var(--line-light); padding-top: 1.25rem; counter-increment: step; }
.process li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; color: var(--bronze-light); font-size: 1.1rem; margin-bottom: 0.75rem; }
.process h3 { font-size: 1.55rem; line-height: 1.1; margin-bottom: 0.5rem; }
.process p { margin: 0; font-size: var(--fs-small); color: var(--cream-muted); }
.possible__foot { grid-column: 1 / -1; margin-top: clamp(3rem, 5vw, 4.5rem); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-light); padding-top: 1.75rem; }
.possible__foot p { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.2; }

/* ---------- Über uns ---------- */
.about__grid { align-items: center; row-gap: 3rem; }
.about__figure { grid-column: 1 / span 5; margin: 0; }
.about__figure .frame { aspect-ratio: 4 / 5.2; }
.about__text { grid-column: 7 / span 6; }
.about__text .h2 { font-size: clamp(2.3rem, 1.2rem + 3.6vw, 5rem); margin: 1.75rem 0 2.25rem; }
.about__text p { color: var(--muted); max-width: 50ch; }
.about__text .lead { color: var(--ink); max-width: 38ch; }
.signature { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.signature strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.1rem; line-height: 1; }
.signature span { font-size: var(--fs-small); color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 0; margin-top: 2rem; font-size: var(--fs-small); color: var(--muted); }
.facts li:not(:last-child)::after { content: "·"; margin: 0 0.9rem; color: var(--taupe); }

/* ---------- Kontakt ---------- */
.contact { background: var(--graphite); color: var(--cream-text); }
.contact .label { color: var(--cream-muted); }
.contact__grid { row-gap: 3.5rem; align-items: end; }
.contact__intro { grid-column: 1 / span 7; }
.contact__intro .h2 { font-size: clamp(3.2rem, 1.2rem + 8vw, 11rem); line-height: 0.88; margin: 2rem 0 2.25rem; letter-spacing: -0.035em; }
.contact__intro .h2 em { color: var(--bronze-light); }
.contact__intro p { color: var(--cream-muted); max-width: 40ch; margin-bottom: 2.25rem; }
.contact__details { grid-column: 9 / span 4; }
.contact__details div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line-light); }
.contact__details div:last-child { border-bottom: 1px solid var(--line-light); }
.contact__details dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-muted); padding-top: 0.2rem; }
.contact__details dd { font-size: 1.0625rem; }
.contact__details a { text-decoration-color: var(--bronze-light); }
.contact__details a:hover { color: var(--bronze-light); }

/* ---------- Fusszeile ---------- */
.site-footer { background: var(--graphite); color: var(--cream-muted); font-size: var(--fs-small); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 2.25rem 2.75rem; border-top: 1px solid var(--line-light); }
.site-footer .brand__name { color: var(--cream-text); font-size: 1.5rem; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream-text); text-decoration: underline; }
.site-footer address { font-style: normal; }

/* ---------- Rechtsseiten ---------- */
.legal { padding-block: clamp(3rem, 6vw, 6rem) var(--section); }
.legal__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.legal__head .h2 { margin-top: 1.5rem; }
.legal__body { max-width: 72ch; }
.legal__body h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin: 3rem 0 1rem; line-height: 1.1; }
.legal__body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; letter-spacing: 0; }
.legal__body p, .legal__body li { color: var(--muted); }
.legal__body ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 1.1em; }
.legal__body li { margin-bottom: 0.35rem; }
.legal__body a { color: var(--ink); }
.legal__body address { font-style: normal; color: var(--ink); line-height: 1.7; }
.legal__meta { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.notice {
  border: 1px solid var(--line); background: var(--stone); padding: 1.1rem 1.25rem; margin-bottom: 2.5rem;
  font-size: var(--fs-small); color: var(--ink);
}
.notice strong { font-weight: 600; }
.credits td, .credits th { text-align: left; padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: var(--fs-small); color: var(--muted); }
.credits th { color: var(--ink); font-weight: 600; }
.credits { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; }
.table-wrap { overflow-x: auto; }

/* ---------- Bewegung ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span { animation: rise 1.1s var(--ease) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: 0.08s; }
  .hero__title .line:nth-child(3) > span { animation-delay: 0.16s; }
  .hero__title .line:nth-child(4) > span { animation-delay: 0.24s; }
  .hero__lead, .hero__actions, .hero .label { animation: fade 1.2s 0.45s var(--ease) both; }
  .hero__figure .frame { animation: unveil 1.4s 0.1s var(--ease) both; }
  .hero__figure .frame img { animation: fade 1.6s 0.2s var(--ease) both; }

  .reveal-on .reveal:not(.is-visible) { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .reveal-on .reveal { transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .reveal-on .reveal-delay { transition-delay: 0.12s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Grosse Bildschirme ---------- */
@media (min-width: 2000px) {
  :root { --maxw: 1760px; }
  html { font-size: 112.5%; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero__text { grid-column: 1 / span 7; }
  .hero__figure { grid-column: 8 / span 5; }
  .gallery {
    grid-template-areas:
      "m m m m m m l l l l l l"
      "m m m m m m t t t b b b"
      "s s s s s s s s o o o o";
  }
  .brands__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work--textil figcaption, .work--bad figcaption { grid-template-columns: auto 1fr; }
  .work--textil .tag, .work--bad .tag { grid-column: 1 / -1; grid-row: auto; }
  .work--textil figcaption p, .work--bad figcaption p { grid-column: 1 / -1; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .facts { flex-direction: column; gap: 0.35rem; }
  .facts li:not(:last-child)::after { content: none; }
  .contact__intro { grid-column: 1 / span 12; }
  .contact__details { grid-column: 1 / span 8; }
}

/* ---------- Navigation mobil ---------- */
@media (max-width: 900px) {
  :root { --header-h: 4.25rem; }
  /* backdrop-filter würde das fixierte Menü an die Kopfzeile binden */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .brand__name { font-size: 1.5rem; }
  .nav__list, .nav .btn { display: none; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 0.25rem;
    background: none; border: 0; color: var(--ink); font: 500 0.9rem var(--sans); cursor: pointer;
  }
  .menu-toggle__icon { position: relative; width: 22px; height: 10px; }
  .menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
  .menu-toggle__icon::before { top: 0; }
  .menu-toggle__icon::after { top: 8px; }
  .menu-open .menu-toggle__icon::before { top: 4px; transform: rotate(45deg); }
  .menu-open .menu-toggle__icon::after { top: 4px; transform: rotate(-45deg); }

  /* Ohne JavaScript: Navigation als ruhige Zeile unter dem Logo */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; gap: 0.5rem; }
  html:not(.js) .nav { width: 100%; }
  html:not(.js) .nav__list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

  .js .nav__panel {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--paper); padding: 2rem var(--gutter) 3rem;
    display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
    overflow-y: auto;
  }
  .js .menu-open .nav__panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav__panel .nav__list { display: flex; flex-direction: column; gap: 0; }
  .js .nav__panel .nav__list a { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 400; line-height: 1.1; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .js .nav__panel .nav__list a::after { display: none; }
  .js .nav__panel .btn { display: inline-flex; align-self: flex-start; margin-top: 2rem; min-height: 3.25rem; padding: 0.95rem 1.6rem; font-size: 0.9375rem; }
  body.no-scroll { overflow: hidden; }
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  :root { --fs-body: 1rem; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero { padding-top: 1.75rem; }
  .hero__text, .hero__figure { grid-column: 1 / -1; }
  .hero__title { font-size: clamp(2.7rem, 13.5vw, 4.6rem); margin: 1.25rem 0 1.5rem; line-height: 0.92; }
  .hero__title .indent { padding-left: 0.6em; }
  .hero__lead { margin-bottom: 1.75rem; }
  .hero__figure .frame { aspect-ratio: 4 / 4.6; }
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index a { padding-top: 0.9rem; }

  .philosophy .label, .philosophy .h2 { grid-column: 1 / -1; }
  .philosophy .label { padding-top: 0; }
  .philosophy__figure { grid-column: 1 / span 5; }
  .philosophy__text { grid-column: 1 / -1; padding-top: 0; }
  .principles { grid-template-columns: 1fr; row-gap: 2rem; }

  .collections .section__head > div, .collections .section__head p { grid-column: 1 / -1; }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; row-gap: 3rem;
    grid-template-areas: "m m" "l l" "t b" "s s" "o o";
  }
  .work--moebel .frame { aspect-ratio: 4 / 5; }
  .work--textil .frame, .work--bad .frame { aspect-ratio: 3 / 4.4; }
  .work--textil h3, .work--bad h3 { font-size: 1.4rem; }
  .brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands__grid li { font-size: 1.15rem; }

  .possible__statement, .possible__text, .possible__figure { grid-column: 1 / -1; }
  .possible__figure { margin-top: 0; width: 82%; justify-self: end; }
  .process { grid-template-columns: 1fr; row-gap: 2rem; }

  .about__figure { grid-column: 1 / span 5; }
  .about__text { grid-column: 1 / -1; }

  .contact__intro, .contact__details { grid-column: 1 / -1; }
  .contact__details div { grid-template-columns: 6.25rem 1fr; }
  .contact__intro .btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .brand__sub { letter-spacing: 0.16em; }
  .contact__details div { grid-template-columns: 1fr; gap: 0.2rem; }
  .brands__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
