/* Begu Bodenbeläge – Entwurf. Räuchereiche, Eiche hell, Messing aus dem Logo. */
:root {
  --rauch: #1d1611;
  --rauch-2: #2a2019;
  --eiche: #efe4d0;
  --hell: #f4ead9;
  --dunkel: #241a12;
  --messing: #d8b24c;
  --expo: cubic-bezier(.19, 1, .22, 1);
  --rand: 20px;
  --luft: 72px;
  --titel: "Anybody", "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
}
@media (min-width: 900px) { :root { --rand: 40px; --luft: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--rauch);
  color: var(--hell);
  font: 400 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, figure, fieldset { margin: 0; padding: 0; }
ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--messing); outline-offset: 3px; }

.rand { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--rand); }

h2 {
  font: 500 clamp(36px, 6vw, 72px)/1 var(--titel);
  font-stretch: 112%;
  letter-spacing: -.03em;
}
.hell { background: var(--eiche); color: var(--dunkel); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--messing); color: var(--dunkel);
  font-weight: 600; text-decoration: none;
  transition: background-color .15s ease-out, transform .15s ease-out;
}
.knopf:hover { background: #e6c468; }
.knopf:active { transform: scale(.98); }
.knopf-leer { background: transparent; color: var(--hell); box-shadow: inset 0 0 0 1px rgba(244, 234, 217, .4); }
.knopf-leer:hover { background: rgba(244, 234, 217, .08); }
.textlink { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Kopf */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 64px; padding-inline: var(--rand);
  display: flex; align-items: center; gap: 24px;
  transition: background-color .25s ease-out, backdrop-filter .25s ease-out;
}
.kopf.fest { background: rgba(29, 22, 17, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.kopf-logo { display: inline-flex; align-items: center; min-height: 44px; }
.kopf-logo img { height: 30px; width: auto; }
.kopf-nav { display: none; margin-left: auto; gap: 24px; font-size: 15px; }
.kopf-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; opacity: .8; transition: opacity .15s ease-out; }
.kopf-nav a:hover { opacity: 1; }
.kopf-tel {
  margin-left: auto; font-size: 15px; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(29, 22, 17, .45); box-shadow: inset 0 0 0 1px rgba(244, 234, 217, .4);
}
@media (min-width: 900px) {
  .kopf { height: 72px; }
  .kopf-logo img { height: 36px; }
  .kopf-nav { display: flex; }
  .kopf-tel { margin-left: 0; }
}

/* Einstieg */
.einstieg {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
}
.einstieg-bild { position: absolute; inset: -22%; }
.einstieg-bild img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  transform: rotate(var(--dreh, 0deg));
  animation: auf 1900ms var(--expo) both;
  will-change: transform;
}
@keyframes auf { from { scale: 1.25; rotate: -10deg; opacity: 0; } to { scale: 1; rotate: 0deg; opacity: 1; } }
.einstieg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20, 14, 9, .7) 0, rgba(20, 14, 9, 0) 160px),
    linear-gradient(to top, rgba(20, 14, 9, .92) 0%, rgba(20, 14, 9, .5) 46%, rgba(20, 14, 9, .22) 100%);
}
.einstieg-inhalt { position: relative; z-index: 1; padding-block: 104px 40px; }
.einstieg-titel {
  font: 500 clamp(44px, 12.6vw, 136px)/.94 var(--titel);
  font-stretch: 96%;
  letter-spacing: -.035em;
}
@media (min-width: 900px) { .einstieg-titel { font-stretch: 114%; } }
.maske { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.maske > span { display: block; animation: steig 1100ms var(--expo) both; }
.maske:nth-child(2) > span { animation-delay: .09s; }
@keyframes steig { from { transform: translateY(110%); } to { transform: none; } }
.einstieg-satz { margin-top: 24px; max-width: 30ch; font-size: 19px; line-height: 1.4; }
.einstieg-knoepfe { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.einstieg-zeichen {
  margin-top: 40px; padding-top: 16px; font-size: 15px; opacity: .78;
  border-top: 1px solid rgba(244, 234, 217, .28);
}
@media (min-width: 900px) {
  .einstieg-inhalt { padding-bottom: 64px; }
  .einstieg-satz { font-size: 22px; }
}

/* Treppen: Fotos steigen diagonal */
.treppen {
  --w: min(58vw, 300px);
  --abst: 24px;
  --sy: calc(var(--w) * .3);
  height: calc(100svh + 7 * (var(--w) + var(--abst)));
}
@media (min-width: 900px) { .treppen { --w: min(300px, 34svh); --abst: 40px; } }
.treppen-halt { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.treppen-kopf { padding-top: 96px; position: relative; z-index: 2; }
.treppen-kopf p { margin-top: 16px; max-width: 30ch; opacity: .78; }
.treppen-fenster { position: absolute; inset: 0; }
.treppen-bahn { position: absolute; left: var(--rand); bottom: 56px; height: 0; width: 0; will-change: transform; }
.stufe {
  position: absolute;
  left: calc(var(--i) * (var(--w) + var(--abst)));
  bottom: calc(var(--i) * var(--sy));
  width: var(--w);
}
.stufe img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: #d9c8a9; }
/* Trittlinie und Setzstufe: zusammen ergibt das die Treppe */
.stufe::after {
  content: ""; position: absolute; left: 0; bottom: -16px;
  width: calc(100% + var(--abst)); height: var(--sy);
  border-bottom: 2px solid #a6812f; border-right: 2px solid #a6812f;
  pointer-events: none;
}
.stufe:last-child::after { border-right: 0; width: 100%; }

/* Licht */
.licht { background: #120d0a; padding-block: var(--luft); transition: background-color 900ms ease-out; }
.licht[data-an="ja"] { background: #25140a; }
.licht-raster { display: grid; gap: 40px; }
.licht-text p { margin-top: 16px; max-width: 40ch; opacity: .78; }
.schalter { margin-top: 24px; display: inline-flex; align-items: center; gap: 16px; text-align: left; }
.schalter-wippe {
  position: relative; width: 56px; height: 88px; border-radius: 8px; flex: none;
  background: #e9dfce; box-shadow: inset 0 0 0 1px #b9ab92;
}
.schalter-wippe::before {
  content: ""; position: absolute; inset: 8px; border-radius: 4px;
  background: linear-gradient(to bottom, #cfc3ad 0 50%, #f7f0e2 50% 100%);
  box-shadow: inset 0 0 0 1px #b9ab92;
  transition: background-position 150ms ease-out;
}
.schalter[aria-pressed="true"] .schalter-wippe::before { background: linear-gradient(to bottom, #f7f0e2 0 50%, #cfc3ad 50% 100%); }
.schalter-wippe::after {
  content: ""; position: absolute; left: 50%; top: 20px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: #8c8069; transition: background-color 150ms ease-out, box-shadow 300ms ease-out;
}
.schalter[aria-pressed="true"] .schalter-wippe::after { background: #ff9b3d; box-shadow: 0 0 12px 3px rgba(255, 155, 61, .8); }
.schalter-wort { font-weight: 500; }
.licht-bild { position: relative; margin-inline: auto; width: 100%; max-width: 460px; }
.licht-bild::before {
  content: ""; position: absolute; inset: -16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 138, 40, .42), rgba(255, 138, 40, 0));
  opacity: 0; transition: opacity 1200ms ease-out;
}
.licht-bild img {
  position: relative; width: 100%; border-radius: 4px;
  filter: brightness(.2) saturate(.25) contrast(1.1);
  transition: filter 1200ms var(--expo);
}
.licht[data-an="ja"] .licht-bild::before { opacity: 1; }
.licht[data-an="ja"] .licht-bild img { filter: none; }
@media (min-width: 900px) {
  .licht-raster { grid-template-columns: 1fr 460px; align-items: center; gap: 104px; }
}

/* Leistungen: vier Dielen */
.leistungen { padding-block: var(--luft); }
.leistungen-kopf p { margin-top: 16px; max-width: 44ch; opacity: .78; }
.dielen { margin-top: 40px; display: grid; gap: 8px; }
.diele { border-radius: 4px; overflow: hidden; }
.diele-1 { background: #cfa56c; color: #241a12; }
.diele-2 { background: #9c6a3c; color: #fbf3e4; }
.diele-3 { background: #8d857a; color: #fbf3e4; }
.diele-4 { background: #3f4447; color: #f4ead9; }
/* feine Maserung, wie eine Diele in der Länge */
.diele { background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 7px, rgba(255, 255, 255, .04) 7px 8px, transparent 8px 19px); }
.diele h3 { font: inherit; }
.diele button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px; text-align: left;
  font: 500 clamp(24px, 3.6vw, 44px)/1.1 var(--titel); font-stretch: 108%; letter-spacing: -.025em;
}
.diele-zeichen { position: relative; flex: none; width: 20px; height: 20px; }
.diele-zeichen::before, .diele-zeichen::after {
  content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 2px; background: currentColor;
  transition: transform 250ms ease-out;
}
.diele-zeichen::after { transform: rotate(90deg); }
.diele.offen .diele-zeichen::after { transform: rotate(0deg); }
.diele-inhalt { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms cubic-bezier(.32, .72, 0, 1); }
.diele.offen .diele-inhalt { grid-template-rows: 1fr; }
.diele-inhalt > div { overflow: hidden; }
.diele-inhalt p { padding: 0 24px 24px; max-width: 56ch; }
.betrieb { margin-top: 64px; max-width: 34ch; font: 500 clamp(21px, 2.4vw, 30px)/1.3 var(--text); letter-spacing: -.015em; }
@media (min-width: 900px) {
  .diele button { padding: 40px; }
  .diele-inhalt p { padding: 0 40px 40px; font-size: 18px; }
}

/* Anfrage */
.anfrage { padding-block: var(--luft); background: var(--rauch); }
.anfrage-raster { display: grid; gap: 40px; }
.anfrage-satz { margin-top: 16px; max-width: 40ch; opacity: .78; }
.wahl { margin-top: 40px; }
.wahl legend { font-size: 15px; opacity: .68; margin-bottom: 16px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 48px; padding: 0 16px; border-radius: 999px; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(244, 234, 217, .32);
  transition: background-color .15s ease-out, color .15s ease-out, box-shadow .15s ease-out;
}
.chip:hover { box-shadow: inset 0 0 0 1px rgba(244, 234, 217, .7); }
.chip[aria-pressed="true"] { background: var(--hell); color: var(--dunkel); box-shadow: none; }
.zaehler { display: flex; align-items: center; gap: 16px; }
.zaehler button {
  width: 48px; height: 48px; border-radius: 50%; font-size: 24px; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(244, 234, 217, .32);
  transition: background-color .15s ease-out;
}
.zaehler button:hover { background: rgba(244, 234, 217, .1); }
.zaehler output { min-width: 2.4ch; text-align: center; font: 500 40px/1 var(--titel); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.zaehler-einheit { opacity: .68; }

.anfrage-zettel { background: var(--rauch-2); border-radius: 8px; padding: 24px; }
.bild-feld { height: 240px; display: grid; place-items: center; }
#faecher { width: 100%; max-width: 340px; height: 100%; overflow: visible; }
#faecher path { transition: transform 700ms var(--expo), opacity 300ms ease-out; transform-box: view-box; transform-origin: 160px 190px; }
.flaeche {
  width: var(--seite, 120px); height: calc(var(--seite, 120px) * .72); border-radius: 2px;
  background-color: #cfa56c;
  background-image:
    repeating-linear-gradient(90deg, rgba(36, 26, 18, .5) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(36, 26, 18, .16) 0 1px, transparent 1px 58px);
  transition: width 700ms var(--expo), height 700ms var(--expo);
}
.nachricht {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(244, 234, 217, .16);
  font-size: 18px; line-height: 1.5;
}
.anfrage-knoepfe { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.anfrage-knoepfe .knopf { flex: 1 1 200px; }
.anfrage-direkt { margin-top: 24px; font-size: 15px; opacity: .78; }
.anfrage-direkt a { display: inline-block; padding-block: 8px; white-space: nowrap; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .anfrage-raster { grid-template-columns: 1fr 1fr; gap: 104px; align-items: start; }
  .anfrage-zettel { padding: 40px; position: sticky; top: 104px; }
}

/* Fuss */
.fuss { background: #120d0a; padding-block: 64px 24px; font-size: 15px; }
.fuss-raster { display: grid; gap: 24px; }
.fuss-logo { width: 180px; }
.fuss address { font-style: normal; opacity: .78; }
.fuss address a { display: inline-block; padding-block: 8px; }
.fuss-gebiet { opacity: .78; max-width: 26ch; }
.entwurf { margin-top: 64px; padding-top: 16px; border-top: 1px solid rgba(244, 234, 217, .16); opacity: .6; font-size: 14px; }
@media (min-width: 900px) { .fuss-raster { grid-template-columns: 1fr auto auto; gap: 104px; align-items: end; } }

/* Ohne Bewegung: alles sichtbar, Fotos als normale Reihe zum Wischen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .einstieg-bild img { transform: none; }
  .treppen { height: auto; padding-bottom: var(--luft); }
  .treppen-halt { position: static; height: auto; overflow: visible; }
  .treppen-fenster { position: static; overflow-x: auto; margin-top: 40px; padding-inline: var(--rand); }
  .treppen-bahn { position: static; width: auto; height: auto; display: flex; gap: var(--abst); transform: none !important; }
  .stufe { position: static; flex: none; }
  .stufe::after { display: none; }
  .licht-bild img { filter: none; }
}
