/* ============================================================
   Thering Holzhandwerk — Homepage
   Visuelles System: Cormorant Garamond (Display) + Hanken Grotesk (Text)
   Farben: Anthrazit #3c4042 · Gold #e3c28a · Weiß #ffffff
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --anthracite: #3c4042;
  --anthracite-deep: #2e3133;
  --anthracite-soft: #4a4f51;
  --gold: #e3c28a;
  --gold-deep: #b08a4f;      /* lesbares Gold auf Weiß */
  --gold-bright: #efd6a6;
  --white: #ffffff;
  --cream: #f6f1e8;          /* warmer heller Ton aus dem Gold */
  --cream-deep: #ece3d3;
  --ink: #2a2d2f;
  --ink-soft: #5c6163;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(5rem, 11vw, 10rem);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { 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(--white);
  line-height: 1.65;
  font-weight: 400;
  font-size: 1.0625rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
ul { list-style: none; }

/* ---------- Typografie-Helfer ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.on-dark .eyebrow { color: var(--gold); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  color: var(--anthracite);
}
.on-dark .display { color: var(--white); }

.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.34;
  color: var(--ink);
}
.on-dark .lead { color: rgba(255,255,255,0.86); }

.body-text { color: var(--ink-soft); max-width: 56ch; }
.on-dark .body-text { color: rgba(255,255,255,0.68); }
.body-text p + p { margin-top: 1.1rem; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

section.band { padding-block: var(--section-y); position: relative; }
.band.bg-white { background: var(--white); }
.band.bg-cream { background: var(--cream); }
.band.bg-anthracite { background: var(--anthracite); }
#arbeiten.band.bg-anthracite,
#innen.band.bg-anthracite {
  background-image: linear-gradient(rgba(60,64,66,0.85), rgba(60,64,66,0.85)), url('../assets/menu-baumstamm.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#kontakt { position: relative; overflow: hidden; isolation: isolate; }
#kontakt > .wrap { position: relative; z-index: 1; }
.kontakt__media {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(60,64,66,0.8), rgba(60,64,66,0.8)), url('../assets/baumstamm.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.2);
  transform-origin: center center;
  will-change: transform;
  z-index: 0;
}
.band.bg-anthracite.on-dark,
.band.bg-anthracite { color: var(--white); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(46,49,51,0.94);
  backdrop-filter: blur(10px);
  padding-block: 0.7rem;
  box-shadow: 0 1px 0 rgba(227,194,138,0.18);
}
.nav__spacer { display: block; }
.nav__brand {
  grid-column: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 0.7rem; cursor: pointer;
  opacity: 0; transform: translateY(-30px); pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.nav.scrolled .nav__brand { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav__brand img { height: 76px; width: auto; transition: height 0.5s var(--ease); }
.nav.scrolled .nav__brand img { height: 60px; }
.nav__brand-fallback {
  font-family: var(--serif); color: var(--white);
  text-align: center; line-height: 1; letter-spacing: 0.02em;
}
.nav__brand-fallback b { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.nav__brand-fallback span { display: block; font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.burger {
  grid-column: 3; justify-self: end;
  display: inline-flex; flex-direction: column; gap: 12px;
  background: none; border: 0; cursor: pointer; padding: 20px 4px;
  opacity: 0; transform: translateY(-30px); pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.nav.scrolled .burger { opacity: 1; transform: translateY(0); pointer-events: auto; }
.burger span { display: block; width: 60px; height: 4px; background: var(--gold); transition: transform 0.4s var(--ease), opacity 0.3s, background 0.3s; }
.burger:hover span { background: var(--gold-bright); }

/* ---------- Overlay-Menü ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background:
    linear-gradient(rgba(46,49,51,0.75), rgba(46,49,51,0.75)),
    url('../assets/menu-baumstamm.png') center/cover no-repeat;
  background-color: var(--anthracite-deep);
  display: grid; grid-template-columns: 1fr; align-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu__close {
  position: absolute; top: 1.4rem; right: var(--gutter);
  background: none; border: 0; color: var(--white); cursor: pointer;
  font-size: 8rem; line-height: 1; width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s, transform 0.5s var(--ease);
}
.menu__close:hover { color: var(--gold); transform: rotate(90deg); }
.menu__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; display: grid; gap: 3rem; }
.menu__nav { display: flex; flex-direction: column; gap: 0.2rem; }
.menu__nav a {
  font-family: var(--serif); font-size: clamp(1.4rem, 3.85vw, 2.38rem) !important;
  font-weight: 500; color: rgba(255,255,255,0.85); line-height: 1.18;
  width: max-content; max-width: 100%;
  display: flex; align-items: baseline; gap: 1.1rem;
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
  opacity: 0; transform: translateY(18px);
}
.menu.open .menu__nav a { opacity: 1; transform: translateY(0); }
.menu__nav a .num { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; color: var(--gold); transform: translateY(-0.4em); }
.menu__nav a:hover { color: var(--gold); transform: translateX(10px); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.menu__foot a:hover { color: var(--gold); }
.menu__foot strong { color: var(--white); font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100svh; min-height: 600px; width: 100%; overflow: hidden; display: grid; place-items: center; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster {
  background:
    radial-gradient(120% 90% at 50% 20%, #565b5d 0%, var(--anthracite) 55%, var(--anthracite-deep) 100%);
}
.hero__poster::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(91deg, rgba(0,0,0,0.10) 0 2px, transparent 2px 26px);
  opacity: 0.5;
}
.hero__curtain { position: absolute; inset: 0; z-index: 1; background: rgba(60,64,66,0.75); }
.hero__content { position: relative; z-index: 2; display: grid; place-items: center; text-align: center; padding: 2rem; }
.hero__logo { will-change: transform, opacity; }
.hero__logo img { width: auto; height: auto; max-width: min(440px, 76vw); margin-inline: auto; }
.hero__logo-fallback { color: var(--white); }
.hero__logo-fallback .mark { font-family: var(--serif); font-size: clamp(2.6rem, 9vw, 5.5rem); font-weight: 500; letter-spacing: 0.04em; line-height: 1; }
.hero__logo-fallback .sub { font-family: var(--sans); font-size: clamp(0.7rem, 2vw, 0.95rem); letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); margin-top: 1.1rem; padding-left: 0.5em; }
.hero__logo-fallback .rule { width: 64px; height: 1px; background: var(--gold); margin: 1.6rem auto 0; opacity: 0.7; }

.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 3;
  color: rgba(255,255,255,0.7); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  display: grid; justify-items: center; gap: 0.6rem;
}
.hero__scroll .line { width: 1px; height: 40px; background: linear-gradient(rgba(227,194,138,0.9), transparent); animation: scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* ============================================================
   SEKTION-HEADER + GENERELL
   ============================================================ */
.sec-head { max-width: 64ch; }
.sec-head .display { margin-top: 1.4rem; }
.sec-head .lead { margin-top: 1.6rem; }

.two-col {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 1.05fr 1fr; } }

/* Liste „Verarbeitet werden bevorzugt" */
.matlist { margin-top: 2rem; display: grid; gap: 0.1rem; }
.matlist .label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.9rem; }
.on-dark .matlist .label { color: var(--gold); }
.matlist li:not(.label) {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--anthracite);
  padding: 0.55rem 0; border-bottom: 1px solid rgba(60,64,66,0.12);
  display: flex; align-items: center; gap: 0.9rem;
}
.matlist li:not(.label)::before {
  content: "—";
  width: 1.45rem;
  height: auto;
  background: none;
  color: var(--gold-deep);
  transform: none;
  flex: none;
}
.on-dark .matlist li:not(.label) { color: var(--white); border-color: rgba(255,255,255,0.16); }
.on-dark .matlist li:not(.label)::before { background: none; color: var(--gold); }

/* Feature-Bullets (Die Arbeiten / Außen / Innen) */
.feat-list { margin-top: 1.8rem; display: grid; gap: 0; }
.feat-list li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; border-top: 1px solid rgba(60,64,66,0.12);
  font-size: 1.05rem; color: var(--ink);
}
.feat-list li:last-child { border-bottom: 1px solid rgba(60,64,66,0.12); }
.feat-list .fnum { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-deep); flex: none; transform: translateY(2px); }
.on-dark .feat-list li { color: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.16); }
.on-dark .feat-list .fnum { color: var(--gold); }
#arbeiten .feat-list li {
  font-weight: 500 !important;
}
#objekt-ladenbau .feat-list li {
  font-weight: 500 !important;
}
#aussen .feat-list li {
  font-weight: 500 !important;
}

/* Poetische Holz-Zeilen */
.poem { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.32; color: var(--anthracite); }
.poem .accent { color: var(--gold-deep); font-style: italic; }
.poem .last { display: inline-block; margin-top: 0.4em; color: var(--gold-deep); font-style: italic; }

/* ============================================================
   GALERIEN (Masonry via CSS columns)
   ============================================================ */
.gallery { margin-top: clamp(2.5rem, 6vw, 4.5rem); columns: 3 280px; column-gap: 1.1rem; }
@media (max-width: 640px) { .gallery { columns: 2 150px; column-gap: 0.7rem; } }
.gallery .figure { break-inside: avoid; margin-bottom: 1.1rem; }
@media (max-width: 640px) { .gallery .figure { margin-bottom: 0.7rem; } }

.object-gallery {
  align-items: stretch;
  columns: initial !important;
  display: grid;
  gap: 1.1rem;
  grid-auto-rows: clamp(150px, 17vw, 230px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3cm;
}
.object-gallery .figure,
.object-gallery .figure.r-tall,
.object-gallery .figure.r-port,
.object-gallery .figure.r-land,
.object-gallery .figure.r-sq,
.object-gallery .figure.r-wide {
  aspect-ratio: auto;
  break-inside: auto;
  height: 100%;
  margin: 0;
  min-height: 0;
  min-width: 0;
}
.object-gallery .shot {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 640px) {
  .object-gallery {
    gap: 0.7rem;
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
    margin-top: clamp(2rem, 10vw, 3rem);
  }
  .object-gallery .figure,
  .object-gallery .figure.r-tall,
  .object-gallery .figure.r-port,
  .object-gallery .figure.r-land,
  .object-gallery .figure.r-sq,
  .object-gallery .figure.r-wide {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

.planning-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2cm;
}
.planning-gallery .planning-gallery__item { margin: 0; }
.planning-gallery .planning-gallery__item--left { aspect-ratio: 3 / 4; }
.planning-gallery .planning-gallery__item--right { aspect-ratio: 1 / 2; }
.planning-gallery .planning-gallery__item--full {
  grid-column: 1 / -1;
  aspect-ratio: 1600 / 700;
}
.planning-gallery .planning-gallery__item--full .shot { object-position: center center; }
@media (max-width: 640px) {
  .planning-gallery {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .planning-gallery .planning-gallery__item--right { aspect-ratio: 3 / 4; }
  .planning-gallery .planning-gallery__item--full { aspect-ratio: 1600 / 700; }
  .planning-gallery .planning-gallery__item--full { grid-column: auto; }
}

.outdoor-gallery {
  columns: initial !important;
  display: grid;
  gap: 1.1rem;
}
.outdoor-gallery .figure {
  break-inside: auto;
  margin: 0;
}
.outdoor-gallery .outdoor-gallery__hero,
.outdoor-gallery .outdoor-gallery__wide {
  width: 100%;
}
.outdoor-gallery .outdoor-gallery__wide--tall {
  aspect-ratio: 8 / 5;
}
.outdoor-gallery .outdoor-gallery__wide--woodhouse {
  aspect-ratio: 984 / 558;
}
.outdoor-gallery .outdoor-gallery__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 1.1rem;
  align-items: stretch;
}
.outdoor-gallery .outdoor-gallery__row .figure {
  height: auto;
  min-width: 0;
}
.outdoor-gallery .outdoor-gallery__row .figure + .figure {
  border-left: 1.1rem solid var(--cream);
}
@media (max-width: 640px) {
  .outdoor-gallery {
    gap: 0.7rem;
  }
  .outdoor-gallery .outdoor-gallery__row {
    grid-template-columns: 1fr;
    column-gap: 0.7rem;
    row-gap: 0.7rem;
  }
  .outdoor-gallery .outdoor-gallery__row .figure + .figure {
    border-left: 0;
  }
}

.indoor-gallery {
  columns: initial !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1.15fr 1.05fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
  height: clamp(760px, 76vw, 980px);
}
.indoor-gallery .figure {
  aspect-ratio: auto;
  break-inside: auto;
  height: 100%;
  margin: 0;
  min-height: 0;
}
.indoor-gallery .figure.r-tall,
.indoor-gallery .figure.r-port,
.indoor-gallery .figure.r-land,
.indoor-gallery .figure.r-wide {
  aspect-ratio: auto;
}
@media (max-width: 640px) {
  .indoor-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.7rem;
    height: auto;
  }
  .indoor-gallery .figure { height: auto; }
  .indoor-gallery .figure.r-tall { aspect-ratio: 3 / 4; }
  .indoor-gallery .figure.r-port { aspect-ratio: 4 / 5; }
  .indoor-gallery .figure.r-land { aspect-ratio: 4 / 3; }
  .indoor-gallery .figure.r-wide { aspect-ratio: 3 / 2; }
}

.gallery--balanced {
  columns: initial;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 1.1rem;
  align-items: stretch;
  height: clamp(560px, 65vw, 820px);
}
.gallery--balanced .gallery__col {
  display: grid;
  gap: 1.1rem;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.gallery--balanced .gallery__col--left {
    grid-template-rows: 1.25fr 0.75fr !important;
}
.gallery--balanced .gallery__col--middle { grid-template-rows: 0.7fr 1.3fr; }
.gallery--balanced .gallery__col--right { grid-template-rows: 0.75fr 1.25fr; }
.gallery--balanced .figure {
  aspect-ratio: auto;
  height: 100%;
  margin: 0;
  min-height: 0;
}
.gallery--balanced .figure.r-tall,
.gallery--balanced .figure.r-port,
.gallery--balanced .figure.r-land,
.gallery--balanced .figure.r-sq,
.gallery--balanced .figure.r-wide {
  aspect-ratio: auto;
}
.gallery--balanced .shot {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 640px) {
  .gallery--balanced {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gallery--balanced .gallery__col { grid-template-rows: none; }
  .gallery--balanced .figure { height: auto; }
  .gallery--balanced .figure.r-tall { aspect-ratio: 3 / 4; }
  .gallery--balanced .figure.r-port { aspect-ratio: 4 / 5; }
  .gallery--balanced .figure.r-land { aspect-ratio: 4 / 3; }
  .gallery--balanced .figure.r-sq { aspect-ratio: 1 / 1; }
  .gallery--balanced .figure.r-wide { aspect-ratio: 3 / 2; }
}

.figure { position: relative; overflow: hidden; background: var(--cream-deep); }
.figure .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure:hover .shot { transform: scale(1.05); }

/* Seitenverhältnisse für lebendiges Masonry */
.figure { aspect-ratio: 3 / 4; }
.figure.r-tall { aspect-ratio: 2 / 3; }
.figure.r-port { aspect-ratio: 3 / 4; }
.figure.r-land { aspect-ratio: 4 / 3; }
.figure.r-sq   { aspect-ratio: 1 / 1; }
.figure.r-wide { aspect-ratio: 1 / 1; }

/* Platzhalter (elegant; verschwindet, sobald echtes Bild lädt) */
.figure .ph {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 0.7rem;
  background:
    linear-gradient(155deg, #efe7d8 0%, #e4d8c2 100%);
  color: rgba(60,64,66,0.5);
}
.figure .ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(102deg, rgba(60,64,66,0.045) 0 3px, transparent 3px 22px);
}
.figure .ph .ico { width: 34px; height: 34px; opacity: 0.55; }
.figure .ph .name { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; max-width: 80%; text-align: center; word-break: break-word; }
.figure .ph .frame { position: absolute; inset: 12px; border: 1px solid rgba(176,138,79,0.4); }
.figure.loaded .ph { display: none; }

/* ============================================================
   PLANUNG — Ablauf-Schritte
   ============================================================ */
.steps { display: grid; gap: 0; margin-top: 1.5rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.6rem 0; border-top: 1px solid rgba(60,64,66,0.14); align-items: baseline; }
.step:last-child { border-bottom: 1px solid rgba(60,64,66,0.14); }
.step .n { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--gold-deep); line-height: 0.9; min-width: 1.6em; }
.step h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--anthracite); font-weight: 600; }
.step p { color: var(--ink-soft); margin-top: 0.3rem; max-width: 46ch; }
.on-dark .step { border-color: rgba(255,255,255,0.16); }
.on-dark .step .n { color: var(--gold); }
.on-dark .step h3 { color: var(--white); }
.on-dark .step p { color: rgba(255,255,255,0.66); }

/* Einheitlicher Aufzählungsstrich */
.matlist li:not(.label)::before {
  content: "—";
  width: 1.45rem;
  height: auto;
  background: none;
  color: var(--gold-deep);
  flex: none;
  font-family: var(--sans);
  font-size: var(--fs-sm, 0.82rem) !important;
  font-weight: 700;
  line-height: 1;
  transform: none;
}
.feat-list .fnum,
.steps .step .n {
  display: inline-block;
  min-width: 1.45rem;
  font-family: var(--sans);
  font-size: var(--fs-sm, 0.82rem) !important;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: var(--gold-deep);
  flex: none;
  text-align: left;
  transform: none;
}
.steps .step {
  grid-template-columns: 1.45rem 1fr;
  gap: 1.2rem;
}
.on-dark .matlist li:not(.label)::before,
.on-dark .feat-list .fnum,
.on-dark .steps .step .n {
  background: none;
  color: var(--gold);
}

/* ============================================================
   ZWISCHENSEKTOR — Parallax-Spruch
   ============================================================ */
.interlude {
  position: relative; min-height: 58vh; display: grid; place-items: center;
  background-color: var(--anthracite-deep);
  overflow: hidden;
  isolation: isolate;
}
.interlude__media {
  position: absolute; inset: 0;
  background-image: url('../assets/zwischensektor-spruch.jpg');
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.18);
  transform-origin: center center;
  will-change: transform;
  z-index: 0;
}
.interlude__veil { position: absolute; inset: 0; background: linear-gradient(rgba(46,49,51,0.6), rgba(46,49,51,0.78)); z-index: 1; }
.interlude__inner { position: relative; z-index: 2; text-align: center; max-width: 60rem; padding: 4rem var(--gutter); }
.interlude__quote { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--white); font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.28; }
.interlude__quote .em { color: var(--gold); font-style: normal; }
.interlude__mark { font-family: var(--serif); font-size: 5rem; color: var(--gold); line-height: 0.4; opacity: 0.7; display: block; margin-bottom: 0.4rem; }
.interlude__who { margin-top: 2rem; font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* ============================================================
   ÜBER DEN TISCHLER
   ============================================================ */
.tischler-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .tischler-grid { grid-template-columns: 0.9fr 1.1fr; } }
.tischler-imgs { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.tischler-imgs .figure { aspect-ratio: 4 / 3; }
.tischler-imgs .figure:nth-child(2) .shot { object-position: center top; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.addr { font-style: normal; font-size: 1.15rem; line-height: 1.7; }
.addr .nm { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--white); display: block; margin-bottom: 0.2rem; }
.addr .person { color: var(--gold); font-weight: 500; display: block; margin-bottom: 0.9rem; }
.addr .l { color: rgba(255,255,255,0.78); }
.contact-links { display: grid; gap: 0.9rem; }
.contact-links a { display: inline-flex; align-items: center; gap: 0.8rem; color: rgba(255,255,255,0.85); transition: color 0.3s; width: max-content; }
.contact-links a:hover { color: var(--gold); }
.contact-links .k { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); min-width: 5.5rem; }
.map { position: relative; min-height: 420px; background: var(--anthracite-soft); border: 1px solid rgba(227,194,138,0.25); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.02); pointer-events: none; }
.map.is-active iframe { pointer-events: auto; }
.map__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(46,49,51,0.35);
  color: var(--white);
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.4s var(--ease), background 0.4s var(--ease);
}
.map__overlay:hover { background: rgba(46,49,51,0.5); }
.map__overlay span { padding: 0.6rem 1.2rem; border: 1px solid rgba(255,255,255,0.55); }
.map.is-active .map__overlay { opacity: 0; pointer-events: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--anthracite-deep); color: rgba(255,255,255,0.6); padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2.5rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 2.4rem; }
.footer__top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: end; }
.footer__brand { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--white); letter-spacing: 0.02em; }
.footer__brand span { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-top: 0.3rem; }
.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__links button { background: none; border: 0; color: rgba(255,255,255,0.7); cursor: pointer; font-family: var(--sans); font-size: 0.92rem; letter-spacing: 0.04em; padding: 0.3rem 0; position: relative; }
.footer__links button::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.4s var(--ease); }
.footer__links button:hover { color: var(--gold); }
.footer__links button:hover::after { width: 100%; }
.footer__rule { height: 1px; background: rgba(255,255,255,0.12); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.plain-link, .plain-link:hover, .plain-link:visited { color: inherit; text-decoration: none; cursor: inherit; }

/* ============================================================
   MODAL (Impressum / Datenschutz)
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1.2rem; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(30,32,33,0.7); backdrop-filter: blur(4px); }
.modal__panel { position: relative; z-index: 2; background: var(--white); max-width: 720px; width: 100%; max-height: 86vh; overflow-y: auto; padding: clamp(2rem, 5vw, 3.5rem); box-shadow: 0 30px 80px rgba(0,0,0,0.4); transform: translateY(20px); transition: transform 0.5s var(--ease); }
.modal.open .modal__panel { transform: translateY(0); }
.modal__panel h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; color: var(--anthracite); margin-bottom: 0.4rem; }
.modal__panel .ey { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.modal__panel h3 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--anthracite); margin: 1.8rem 0 0.5rem; font-weight: 700; }
.modal__panel p, .modal__panel address { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7; font-style: normal; }
.modal__panel p + p { margin-top: 0.7rem; }
.modal__note { margin-top: 2rem; padding: 0.9rem 1.1rem; background: var(--cream); border-left: 3px solid var(--gold); font-size: 0.82rem; color: var(--ink-soft); }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border: 0; background: var(--cream); color: var(--anthracite); border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; transition: background 0.3s, transform 0.4s var(--ease); }
.modal__close:hover { background: var(--gold); transform: rotate(90deg); }

/* ============================================================
   SCROLL-ANIMATIONEN
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .interlude { background-attachment: scroll; }
  .hero__scroll .line { animation: none; }
}

/* ============================================================
   RESPONSIVE — iPad (≤ 900px) und iPhone (≤ 640px)
   ============================================================ */
@media (max-width: 900px) {
  /* Navigation */
  .nav { padding: 0.8rem var(--gutter); }
  .nav__brand img { height: 56px; }
  .nav.scrolled .nav__brand img { height: 44px; }
  .burger { gap: 10px; padding: 14px 4px; }
  .burger span { width: 46px; height: 3px; }

  /* Menü-Overlay */
  .menu__close { font-size: 5rem; width: 90px; height: 90px; }
  .menu__inner { gap: 2rem; }
  .menu__foot { gap: 0.4rem 1.5rem; font-size: 0.82rem; }

  /* Hero */
  .hero__logo img { max-width: min(360px, 72vw); }

  /* Sektoren */
  .interlude__quote { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .interlude__mark { font-size: 4rem; }

  /* Tischler-Bilder: jetzt 1 großes + 2 kleine darunter ist OK,
     aber auf Tablet sicherheitshalber etwas Luft */
  .tischler-imgs { gap: 0.8rem; }

  /* Karte etwas niedriger */
  .map { min-height: 360px; }
}

@media (max-width: 640px) {
  /* Globale Gutter etwas tighter */
  :root { --section-y: clamp(3.5rem, 11vw, 7rem); }

  /* Navigation */
  .nav__brand img { height: 44px; }
  .nav.scrolled .nav__brand img { height: 36px; }
  .burger { gap: 7px; padding: 12px 4px; }
  .burger span { width: 36px; height: 3px; }

  /* Menü */
  .menu__close { font-size: 3.6rem; width: 64px; height: 64px; top: 0.8rem; }
  .menu__nav a { gap: 0.8rem; }
  .menu__nav a .num { font-size: 0.68rem; }
  .menu__foot { flex-direction: column; gap: 0.4rem; }

  /* Hero */
  .hero { min-height: 520px; }
  .hero__logo img { max-width: min(300px, 78vw); }
  .hero__scroll { bottom: 1.2rem; font-size: 0.62rem; }

  /* Galerie: kleinere Abstände */
  .gallery { column-gap: 0.6rem; }
  .gallery .figure { margin-bottom: 0.6rem; }

  /* Poem etwas kompakter */
  .poem { font-size: clamp(1.4rem, 6.5vw, 1.9rem); line-height: 1.36; }

  /* Mat-Liste */
  .matlist li:not(.label) { font-size: 1.2rem; padding: 0.45rem 0; }

  /* Feature-Listen */
  .feat-list li { padding: 0.85rem 0; font-size: 0.95rem; }

  /* Planungs-Schritte */
  .steps { margin-top: 1rem; }
  .step { gap: 1rem; padding: 1.2rem 0; }
  .step .n { font-size: 1.8rem; min-width: 1.3em; }
  .step h3 { font-size: 1.35rem; }
  .step p { font-size: 0.95rem; }

  /* Interlude */
  .interlude { min-height: 46vh; }
  .interlude__inner { padding: 2.5rem var(--gutter); }
  .interlude__mark { font-size: 3.2rem; }
  .interlude__who { margin-top: 1.4rem; font-size: 0.7rem; letter-spacing: 0.22em; }

  /* Tischler */
  .tischler-imgs { gap: 0.6rem; }

  /* Kontakt */
  .addr { font-size: 1.05rem; }
  .addr .nm { font-size: 1.55rem; }
  .contact-info { gap: 1.4rem; }
  .contact-links .k { min-width: 4.4rem; font-size: 0.65rem; letter-spacing: 0.2em; }
  .map { min-height: 280px; }
  .map__overlay { font-size: 0.66rem; letter-spacing: 0.18em; }

  /* Footer */
  .footer__brand { font-size: 1.4rem; }
  .footer__top { gap: 1.2rem; }
  .footer__bottom { font-size: 0.72rem; }

  /* Modals */
  .modal__panel { padding: 1.6rem 1.4rem 2rem; max-height: 90vh; }
  .modal__close { width: 36px; height: 36px; font-size: 1.2rem; }
}

