/* Tischlerei Almer · Entwurf 05.11.2026
   Farben ausschließlich aus Farbpalette.jpg ("Luxe")
   Schrift: Manrope (SIL OFL 1.1), lokal eingebunden, 2 Schnitte */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  /* Palette */
  --c-espresso: #322D29;  /* Text */
  --c-dunkel:   #475151;  /* dunkle Flächen (Kundenwunsch 05.11.2026, statt Espresso) */
  --c-bordeaux: #72383D;  /* Akzent (sparsam) */
  --c-taupe:    #AC9C8D;  /* Linien auf hell, Text auf dunkel */
  --c-sand:     #D1C7BD;  /* Flächen */
  --c-grau:     #D9D9D9;  /* feine Linien */
  --c-kalk:     #EFE9E1;  /* Flächen hell */
  --c-kalk-hell: #F7F4EF; /* Hintergrund: Kalk aus der Palette, aufgehellt */

  --bg: var(--c-kalk-hell);
  --text: var(--c-espresso);
  --accent: var(--c-bordeaux);
  --line: rgba(50, 45, 41, .18);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1440px;
  --space-1: clamp(4rem, 9vw, 9rem);
  --space-2: clamp(2.5rem, 5vw, 5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 1.2s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.placeholder { color: var(--accent); }
.draft-badge {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60; white-space: nowrap;
  background: var(--c-dunkel); color: var(--c-kalk); padding: .45rem .9rem; border-radius: 99px;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .85;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .5s var(--ease), transform .6s var(--ease), box-shadow .5s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 112px; transition: height .5s var(--ease); }
.site-header.is-solid .wrap { height: 92px; }
.site-header.is-solid { background: rgba(247, 244, 239, .95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.logo { display: block; background: var(--c-kalk-hell); padding: .6rem .9rem; border-radius: 2px; }
.logo img { height: 78px; width: auto; transition: height .5s var(--ease); }
.is-solid .logo img { height: 64px; }
.is-solid .logo { padding-left: 0; }

.nav { display: flex; gap: 2.2rem; font-size: .9rem; }
.nav a { position: relative; padding: .3rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.site-header:not(.is-solid) .nav { color: var(--c-kalk); }

.menu-btn { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: inherit; font: inherit; }
.menu-btn span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .4s var(--ease); }
.site-header:not(.is-solid) .menu-btn { color: var(--c-kalk); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .logo img, .is-solid .logo img { height: 56px; }
  .site-header .wrap, .site-header.is-solid .wrap { height: 84px; }
  .nav {
    position: fixed; inset: 0; background: var(--c-dunkel); color: var(--c-kalk) !important;
    flex-direction: column; justify-content: center; padding: var(--gutter); gap: 1.4rem;
    font-size: 1.75rem; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
  }
  /* backdrop-filter und transform machen den Header zum Bezugsrahmen für position: fixed,
     das Menü wäre dann nur so hoch wie der Header. Bei offenem Menü deshalb beides aus. */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .nav-open .menu-btn { color: var(--c-kalk); position: relative; z-index: 2; }
  .nav-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--c-kalk); background: var(--c-dunkel); }
.hero__media, .hero__media picture, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media picture { display: block; will-change: transform; }
.hero__media img { animation: drift 24s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(50,45,41,.45) 0%, rgba(50,45,41,0) 28%, rgba(50,45,41,0) 50%, rgba(50,45,41,.62) 100%);
}
.hero__content { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 5.4rem); max-width: 14ch; }
.hero__sub { margin: 1.2rem 0 0; font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem); color: var(--c-sand); }
.hero .label { display: block; margin-bottom: 1.4rem; color: var(--c-sand); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 7vh, 5rem); z-index: 2; writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-sand); }
.hero__scroll::after { content: ""; display: inline-block; width: 1px; height: 56px; margin-top: .8rem; background: currentColor; animation: line 2.4s var(--ease) infinite; transform-origin: top; }

@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Intro ---------- */
.intro { padding: var(--space-1) 0; }
.intro__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.intro .label { grid-column: 1 / span 3; padding-top: .9rem; }
.intro__text { grid-column: 4 / span 8; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1.28; letter-spacing: -.015em; }
.intro__text em { font-style: normal; color: var(--accent); }
@media (max-width: 860px) { .intro .label, .intro__text { grid-column: 1 / -1; } }

/* ---------- Projekte ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: 1.4rem; margin-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.4rem); }
.link-arrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform .5s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

.projects { padding-bottom: var(--space-1); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3rem) 1.5rem; }
.project-card { grid-column: span 12; }
.project-card:nth-child(1) { grid-column: 1 / span 8; }
.project-card:nth-child(2) { grid-column: 9 / span 4; align-self: end; padding-left: clamp(0rem, 3vw, 3rem); }
.project-card:nth-child(3) { grid-column: 1 / span 5; }
.project-card:nth-child(4) { grid-column: 7 / span 6; margin-top: clamp(0rem, 10vw, 9rem); }
@media (max-width: 860px) {
  .project-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; padding-left: 0; }
  .hero__scroll { display: none; }
}

.frame { overflow: hidden; background: var(--c-sand); position: relative; }
.frame picture { display: block; width: 100%; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-wide { aspect-ratio: 3 / 2; }
.ratio-tall { aspect-ratio: 4 / 5; }
.project-card__meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .2rem 1rem; padding-top: 1rem; }
.project-card h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.4rem); }
.project-card .label { color: var(--c-espresso); opacity: .62; padding-top: .35rem; }

/* Balken Projektübersicht (Startseite, 16.11.2026) */
.projects { padding-bottom: var(--space-2); }
.uebersicht-balken { background: var(--c-sand); }
.uebersicht-balken__link { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.uebersicht-balken__text { display: flex; flex-direction: column; gap: .9rem; }
.uebersicht-balken__titel { font-size: clamp(2rem, 1.3rem + 3vw, 4.4rem); line-height: 1.05; letter-spacing: -.02em; }
.uebersicht-balken__pfeil { display: inline-block; color: var(--accent); transition: transform .6s var(--ease); }
.uebersicht-balken__info { font-size: clamp(.95rem, .9rem + .2vw, 1.1rem); opacity: .75; }
.uebersicht-balken__bilder { display: flex; flex-shrink: 0; }
.uebersicht-balken__bilder .frame { width: clamp(90px, 9vw, 150px); aspect-ratio: 4 / 5; border: 4px solid var(--c-sand); transition: transform .6s var(--ease); }
.uebersicht-balken__bilder .frame + .frame { margin-left: -1.5rem; }
.uebersicht-balken__bilder .frame:nth-child(2) { transform: translateY(-.8rem); }
.uebersicht-balken__link:hover .uebersicht-balken__pfeil { transform: translateX(.5em); }
.uebersicht-balken__link:hover .frame:nth-child(1) { transform: translateX(-.4rem); }
.uebersicht-balken__link:hover .frame:nth-child(3) { transform: translateX(.4rem); }
.uebersicht-balken__link:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; }
@media (max-width: 860px) {
  .uebersicht-balken__link { flex-direction: column; align-items: flex-start; }
  .uebersicht-balken__bilder .frame { width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .uebersicht-balken__pfeil, .uebersicht-balken__bilder .frame { transition: none; }
}

/* ---------- Leistung ---------- */
.process { background: var(--c-dunkel); color: var(--c-kalk); padding: var(--space-1) 0; }
.process .section-head { border-color: rgba(239,233,225,.2); }
.process__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); list-style: none; margin: 0; padding: 0; }
.process__item .frame { aspect-ratio: 4 / 5; background: #000; margin-bottom: 1.6rem; }
.process__num { color: var(--c-sand); font-size: .8rem; font-weight: 600; letter-spacing: .14em; }
.process__item h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: .4rem 0 .8rem; }
.process__item p { color: var(--c-sand); max-width: 34ch; }
@media (max-width: 860px) {
  .process__list { grid-template-columns: 1fr; gap: 3.5rem; }
  .process__item .frame { aspect-ratio: 3 / 2; }
}

/* ---------- Archiv ---------- */
.archive { padding: var(--space-1) 0; }
.archive__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.archive__link { display: block; padding: 2.2rem 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease), background .6s; }
.archive__link:first-child { border-right: 1px solid var(--line); padding-right: 2rem; }
.archive__link:last-child { padding-left: 2rem; }
.archive__link h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: .5rem 0; }
.archive__link p { margin: 0; opacity: .75; max-width: 40ch; }
.archive__link:hover h3 { color: var(--accent); }
.archive__bild { aspect-ratio: 7 / 5; margin-bottom: 1.6rem; background: var(--c-kalk); }
.archive__bild img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .archive__grid { grid-template-columns: 1fr; }
  .archive__link:first-child { border-right: 0; padding-right: 0; }
  .archive__link:last-child { padding-left: 0; }
}

/* ---------- Kontakt CTA ---------- */
.cta { background: var(--c-sand); padding: var(--space-1) 0; }
.cta__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: end; }
.cta h2 { font-size: clamp(2rem, 1.3rem + 3vw, 4.4rem); max-width: 13ch; }
.cta__contact { display: grid; gap: .3rem; font-size: 1.1rem; }
.cta__contact a:hover { color: var(--accent); }
.button {
  display: inline-block; margin-top: 1.6rem; padding: 1rem 1.8rem; background: var(--c-dunkel); color: var(--c-kalk);
  font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; justify-self: start;
  transition: background .5s var(--ease);
}
.button:hover { background: var(--accent); }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dunkel); color: var(--c-sand); padding: var(--space-2) 0 2rem; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: var(--space-2); }
.footer__grid h4 { margin: 0 0 .8rem; color: var(--c-sand); opacity: .8; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer__grid a:hover { color: var(--c-kalk); }
.footer__bottom { border-top: 1px solid rgba(239,233,225,.15); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--c-sand); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Projekt-Detail ---------- */
.p-hero { position: relative; height: 88svh; min-height: 520px; overflow: hidden; background: var(--c-dunkel); }
.p-hero picture { position: absolute; inset: 0; display: block; will-change: transform; }
.p-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s var(--ease) both; }
/* Kopfbild ganz zeigen, ohne Beschnitt (Feld heroGanz, z. B. Bad und Ankleide, 16.11.2026) */
.p-hero--ganz { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
.p-hero--ganz picture { transform: none !important; }
.p-hero--ganz img { animation: none; }
@media (max-width: 860px) {
  .p-hero--ganz { margin-top: 84px; }
  body:not(.nav-open):has(.p-hero--ganz) .site-header:not(.is-solid) .menu-btn { color: var(--c-espresso); }
}
.p-head { padding: var(--space-2) 0 var(--space-1); }
.p-head__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.p-head .back { grid-column: 1 / -1; margin-bottom: 2rem; font-size: .85rem; font-weight: 600; }
.p-head .back:hover { color: var(--accent); }
.p-head h1 { grid-column: 1 / span 7; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem); }
.p-facts { grid-column: 9 / span 4; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.4rem; align-content: start; padding-top: .6rem; font-size: .95rem; }
.p-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .62; padding-top: .2rem; }
.p-facts dd { margin: 0; }
.p-text { grid-column: 4 / span 6; margin-top: var(--space-2); font-size: 1.15rem; }
@media (max-width: 860px) { .p-head h1, .p-facts, .p-text { grid-column: 1 / -1; } .p-facts { margin-top: 1.5rem; } }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.5rem); padding-bottom: var(--space-1); }
.gallery figure { margin: 0; }
.g-voll { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.g-links { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.g-rechts { grid-column: 8 / span 5; aspect-ratio: 4 / 5; align-self: end; }
.g-mitte { grid-column: 3 / span 8; aspect-ratio: 3 / 2; margin-top: var(--space-2) !important; }
@media (max-width: 860px) { .gallery figure { grid-column: 1 / -1 !important; aspect-ratio: 3 / 2 !important; } }

.next-project { display: block; background: var(--c-dunkel); color: var(--c-kalk); padding: var(--space-1) 0; }
.next-project .label { color: var(--c-sand); }
.next-project h2 { font-size: clamp(2rem, 1.3rem + 3vw, 4.4rem); margin-top: .8rem; transition: color .5s var(--ease); }
.next-project:hover h2 { color: var(--c-sand); }

/* ---------- Bewegung ---------- */
/* Text: weich von unten einblenden */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .12s; }
.reveal:nth-child(3) { transition-delay: .24s; }

/* Drei Stufen, damit nicht jedes Bild gleich auftritt (Kundenwunsch 06.11.):
   .reveal-img   große Leitbilder: wischen von unten auf, Bild zoomt leicht zurück
   .reveal-weich kleine Bilder und Projektkacheln: nur weich einblenden
   ohne Klasse   Bild steht ruhig */
.reveal-img::before {
  content: ""; position: absolute; inset: -1px; z-index: 3; pointer-events: none;
  background: var(--cover, var(--bg)); transform-origin: top; transition: transform 1.6s cubic-bezier(.77, 0, .18, 1);
}
.reveal-img.is-in::before { transform: scaleY(0); }
.process { --cover: var(--c-dunkel); }
.cta { --cover: var(--c-sand); }
.reveal-img img { transform: scale(1.07); transition: transform 2.4s var(--ease), filter .9s var(--ease); }
.reveal-weich { opacity: 0; transition: opacity 1.6s var(--ease); }
.reveal-weich.is-in { opacity: 1; }
.reveal-img.is-in img { transform: scale(1); }

/* Parallaxe im Rahmen: Bild ist höher als der Rahmen und wandert beim Scrollen */
.frame.has-parallax picture { position: absolute; left: 0; right: 0; top: -9%; height: 118%; transform: translate3d(0, var(--py, 0), 0); will-change: transform; }

/* Ebenen mit eigenem Tempo (Überlappungen) */
[data-speed] { transform: translate3d(0, var(--ly, 0), 0); will-change: transform; }

/* Hover über Bildern */
[data-cursor] .frame img { transition: transform 1.4s var(--ease), filter .9s var(--ease); }
[data-cursor] .frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--c-dunkel); opacity: 0; transition: opacity .9s var(--ease);
}
@media (hover: hover) {
  [data-cursor]:hover .frame img { transform: scale(1.04); }
  [data-cursor]:hover .frame::after { opacity: .14; }
  .project-card h3 { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .8s var(--ease); padding-bottom: 2px; }
  .project-card:hover h3 { background-size: 100% 1px; }
}

/* Ansehen-Cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 0; height: 0;
}
.cursor span {
  position: absolute; left: -52px; top: -52px; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-kalk-hell); color: var(--c-espresso);
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transform: scale(0); transition: transform .55s var(--ease);
}
.cursor.is-active span { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { [data-cursor] { cursor: none; } }

/* ---------- Überlappende Bildpaare ---------- */
.duo { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; padding-bottom: var(--space-1); }
.duo__gross { grid-column: 1 / span 8; grid-row: 1; aspect-ratio: 3 / 2; }
.duo__klein { grid-column: 8 / span 4; grid-row: 1; align-self: end; aspect-ratio: 4 / 5; margin-bottom: -14%; z-index: 2; box-shadow: 0 30px 60px -30px rgba(50,45,41,.45); }
.duo__text { grid-column: 1 / span 5; grid-row: 2; padding-top: 2rem; max-width: 38ch; }
.duo--rechts .duo__gross { grid-column: 5 / span 8; }
.duo--rechts .duo__klein { grid-column: 2 / span 4; }
.duo--rechts .duo__text { grid-column: 8 / span 5; }
@media (max-width: 860px) {
  .duo__gross, .duo--rechts .duo__gross { grid-column: 1 / -1; }
  .duo__klein, .duo--rechts .duo__klein { grid-column: 6 / -1; margin-top: -30%; margin-bottom: 0; grid-row: 2; }
  .duo__text, .duo--rechts .duo__text { grid-column: 1 / -1; grid-row: 3; }
}

/* Bildband: vollflächig mit starker Parallaxe */
.bildband { position: relative; height: 92svh; min-height: 480px; color: var(--c-kalk); }
.bildband .frame { position: absolute; inset: 0; background: var(--c-dunkel); }
.bildband .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(50,45,41,0) 40%, rgba(50,45,41,.55)); }
.bildband__text { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.bildband__text p { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; max-width: 18ch; margin: 0; }

/* Galerie: rechtes Bild schiebt sich über das linke */
.g-rechts { margin-left: -12%; z-index: 2; box-shadow: 0 30px 60px -30px rgba(50,45,41,.45); }
@media (max-width: 860px) { .g-rechts { margin-left: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img::before { display: none; }
  .reveal-img img { transform: none; }
  .reveal-weich { opacity: 1; }
  [data-speed] { transform: none; }
  @view-transition { navigation: none; }
}

/* Footer-Feinheiten */
.site-footer .placeholder { color: var(--c-sand); }
main:has(> .next-project:last-child) + .site-footer { border-top: 1px solid rgba(239,233,225,.15); }

/* Lenis (weiches Scrollen) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.bildband .frame.has-parallax picture { top: -25%; height: 150%; }

/* =========================================================
   Unterseiten
   ========================================================= */
.page-head { padding: calc(112px + var(--space-2)) 0 var(--space-2); }
.page-head__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem 1.5rem; }
.page-head .label { grid-column: 1 / -1; opacity: .62; }
.page-head h1 { grid-column: 1 / span 9; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 6rem); }
.page-head__intro { grid-column: 6 / span 6; margin-top: 1.6rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.5; }
.page-head__bild { aspect-ratio: 21 / 9; margin-bottom: var(--space-1); }
@media (max-width: 860px) {
  .page-head { padding-top: calc(84px + 2.5rem); }
  .page-head h1, .page-head__intro { grid-column: 1 / -1; }
  .page-head__bild { aspect-ratio: 4 / 3; }
}

/* Abschnitt mit Bild und Text, abwechselnd */
.zeile { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: center; padding-bottom: var(--space-1); }
.zeile__bild { grid-column: 1 / span 6; aspect-ratio: 4 / 5; }
.zeile__text { grid-column: 8 / span 4; }
.zeile--rechts .zeile__bild { grid-column: 7 / span 6; grid-row: 1; }
.zeile--rechts .zeile__text { grid-column: 2 / span 4; grid-row: 1; }
.zeile__text h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.8rem); margin: .6rem 0 1.2rem; }
.zeile__text .process__num { color: var(--accent); }
.zeile__klein { grid-column: 5 / span 3; grid-row: 1; align-self: end; aspect-ratio: 3 / 4; margin-bottom: -10%; z-index: 2; box-shadow: 0 30px 60px -30px rgba(50,45,41,.45); }
.zeile--rechts .zeile__klein { grid-column: 6 / span 3; }
@media (max-width: 860px) {
  .zeile__bild, .zeile--rechts .zeile__bild, .zeile__text, .zeile--rechts .zeile__text { grid-column: 1 / -1; grid-row: auto; }
  .zeile__bild { aspect-ratio: 4 / 3; }
  .zeile__klein, .zeile--rechts .zeile__klein { grid-column: 6 / -1; grid-row: auto; margin: -30% 0 0; }
}

/* Liste mit Linien (Bereiche, Partner, Downloads) */
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.liste li { border-bottom: 1px solid var(--line); }
.liste a, .liste .liste__zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.4rem 0; font-size: clamp(1.15rem, 1rem + .7vw, 1.7rem); transition: padding .6s var(--ease), color .4s; }
.liste a:hover { padding-left: 1rem; color: var(--accent); }
.liste small { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .6; white-space: nowrap; }
.block { padding-bottom: var(--space-1); }
.block__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.block__grid > .label { grid-column: 1 / span 3; padding-top: 1.6rem; }
.block__grid > .block__inhalt { grid-column: 4 / span 9; }
@media (max-width: 860px) { .block__grid > .label, .block__grid > .block__inhalt { grid-column: 1 / -1; padding-top: 0; } }

.partner { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; font-size: clamp(1.2rem, 1rem + 1vw, 2rem); color: var(--c-espresso); opacity: .8; }

/* Projektübersicht */
.uebersicht { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2.5rem, 5vw, 5rem) 1.5rem; padding-bottom: var(--space-1); }
.uebersicht .project-card:nth-child(odd) { grid-column: 1 / span 6; }
.uebersicht .project-card:nth-child(even) { grid-column: 8 / span 5; margin-top: clamp(0rem, 14vw, 12rem); }
.uebersicht .project-card { padding-left: 0; align-self: start; }
@media (max-width: 860px) { .uebersicht .project-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; } }
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: var(--space-2); }
.filter button { font: inherit; font-size: .85rem; padding: .55rem 1.1rem; border: 1px solid var(--line); background: none; color: inherit; border-radius: 99px; cursor: pointer; transition: background .4s, color .4s; }
.filter button[aria-pressed="true"], .filter button:hover { background: var(--c-dunkel); color: var(--c-kalk); border-color: var(--c-dunkel); }

/* Standorte */
.standort { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; padding-bottom: var(--space-1); }
.standort__bild { grid-column: 1 / span 7; aspect-ratio: 3 / 2; }
.standort__info { grid-column: 9 / span 4; align-self: center; }
.standort--rechts .standort__bild { grid-column: 6 / span 7; grid-row: 1; }
.standort--rechts .standort__info { grid-column: 1 / span 4; grid-row: 1; }
.standort h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); margin: .5rem 0 1.4rem; }
.standort dl { margin: 0 0 1.6rem; display: grid; gap: 1rem; }
.standort dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .62; }
.standort dd { margin: .2rem 0 0; }
.standort dd a:hover { color: var(--accent); }
.karte { grid-column: 1 / -1; position: relative; aspect-ratio: 21 / 8; background: var(--c-sand); display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6) sepia(.15); }
.karte p { max-width: 46ch; font-size: .9rem; margin: .8rem auto 0; opacity: .8; }
.karte .button { margin-top: 0; border: 0; cursor: pointer; font-family: inherit; }
@media (max-width: 860px) {
  .standort__bild, .standort__info, .standort--rechts .standort__bild, .standort--rechts .standort__info { grid-column: 1 / -1; grid-row: auto; }
  .karte { aspect-ratio: 4 / 3; }
}

/* Jobs */
.stelle { border-top: 1px solid var(--line); }
.stelle:last-of-type { border-bottom: 1px solid var(--line); }
.stelle summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.8rem 0; font-size: clamp(1.3rem, 1rem + 1.2vw, 2.2rem); }
.stelle summary::-webkit-details-marker { display: none; }
.stelle summary::after { content: "+"; font-size: 1.6rem; transition: transform .5s var(--ease); }
.stelle[open] summary::after { transform: rotate(45deg); }
.stelle__inhalt { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; padding-bottom: 2.5rem; }
.stelle__inhalt > * { grid-column: span 4; }
.stelle__inhalt h3 { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .62; margin-bottom: .8rem; }
.stelle__inhalt ul { margin: 0; padding-left: 1.1rem; }
.stelle__inhalt li { margin-bottom: .4rem; }
.stelle__lohn { grid-column: 1 / -1 !important; background: var(--c-kalk); padding: 1.2rem 1.4rem; }
@media (max-width: 860px) { .stelle__inhalt > * { grid-column: 1 / -1; } }

/* Rechtstexte */
.rechtstext { grid-column: 4 / span 7; }
.rechtstext h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext p, .rechtstext li { max-width: 68ch; }
.rechtstext a { text-decoration: underline; text-underline-offset: 3px; }
.hinweis { background: var(--c-kalk); border-left: 3px solid var(--accent); padding: 1rem 1.3rem; margin-bottom: 2rem; }
@media (max-width: 860px) { .rechtstext { grid-column: 1 / -1; } }

.kontakt-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; padding-bottom: var(--space-1); }
.kontakt-grid__haupt { grid-column: 1 / span 6; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1.3; }
.kontakt-grid__haupt a { display: block; transition: color .4s; }
.kontakt-grid__haupt a:hover { color: var(--accent); }
.kontakt-grid__orte { grid-column: 8 / span 5; display: grid; gap: 2rem; }
@media (max-width: 860px) { .kontakt-grid__haupt, .kontakt-grid__orte { grid-column: 1 / -1; } }

/* Kontaktformular */
.formular-block { padding-bottom: var(--space-1); }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.5rem; }
.formular__feld { display: grid; gap: .45rem; }
.formular__feld--breit { grid-column: 1 / -1; }
.formular label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.formular label span { font-weight: 400; letter-spacing: .04em; text-transform: none; opacity: .6; }
.formular input, .formular select, .formular textarea {
  font: inherit; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid rgba(50,45,41,.35);
  padding: .7rem 0; border-radius: 0; transition: border-color .4s; width: 100%;
}
.formular textarea { resize: vertical; min-height: 9rem; }
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: none; border-bottom-color: var(--accent); }
.formular :focus-visible { box-shadow: 0 2px 0 var(--accent); }
.formular__falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular__fuss { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.formular__fuss p { margin: 0; font-size: .9rem; opacity: .75; max-width: 46ch; }
.formular__fuss .button { margin: 0; border: 0; cursor: pointer; font-family: inherit; }
.formular__fehler { background: var(--c-kalk); border-left: 3px solid var(--accent); padding: 1rem 1.3rem; color: var(--accent); }
@media (max-width: 860px) { .formular { grid-template-columns: 1fr; } }

/* ---------- Änderungen 05.11.2026 ---------- */
/* Projektdetail: Weg zurück zur Übersicht */
/* Planungsskizzen als kleines, überlappendes Bild, farbig aber gedeckt, wischt auf wie die Leitbilder (07.11.2026) */
.skizze { position: relative; margin: 0; background: #fff; padding: clamp(4px, .5vw, 8px); box-shadow: 0 30px 60px -30px rgba(50,45,41,.55); }
.skizze picture, .skizze img { display: block; width: 100%; height: auto; }
.skizze picture { overflow: hidden; }
.skizze.reveal-img::before { transition-delay: .35s; }
.skizze img { filter: saturate(.45) contrast(.86) brightness(1.06); }
.skizze:hover img { filter: none; }
.skizze .label, .skizze figcaption { display: block; padding: .55rem .2rem .15rem; font-size: .65rem; }
.p-head__grid { position: relative; }
.skizze--hero { --sk-w: clamp(210px, 28vw, 440px); position: absolute; z-index: 3; right: var(--gutter); top: calc(-1 * var(--space-2)); width: var(--sk-w); transform: translateY(-58%); }
.p-head--skizze { --sk-w: clamp(210px, 28vw, 440px); }
/* Galerie: Skizze liegt in der Ecke des Fotos, Foto bleibt unverändert */
.frame .skizze--klein { position: absolute; z-index: 2; left: clamp(.6rem, 1.5vw, 1.4rem); bottom: clamp(.6rem, 1.5vw, 1.4rem); width: 40%; max-width: 320px; }
.frame .skizze--klein picture, .frame.has-parallax .skizze--klein picture { position: static; height: auto; transform: none; }
.frame .skizze--klein img { position: static; height: auto; object-fit: contain; }
[data-cursor]:hover .frame .skizze--klein.is-in img { transform: scale(1); }
/* Handy (Änderungen 14.11.2026): Skizzen liegen nicht mehr auf den Fotos, sondern darunter */
@media (max-width: 860px) {
  .skizze--hero { position: static; transform: none; grid-column: 1 / -1; order: 10; width: min(75%, 360px); margin: 1.5rem 0 0 auto; }
  .p-head--skizze { padding-top: var(--space-2); }
  .gallery figure.has-skizze { aspect-ratio: auto !important; overflow: visible; background: none; }
  .gallery figure.has-skizze > picture { aspect-ratio: 3 / 2; height: auto; overflow: hidden; background: var(--c-sand); }
  .frame .skizze--klein { position: static; width: min(75%, 360px); max-width: none; margin: 1rem 0 0 auto; }
}
/* Messehinweis auf der Startseite (temporär, Änderungen 14.11.2026) */
.messe { background: var(--c-dunkel); color: var(--c-kalk); }
.messe[hidden] { display: none; }
.messe summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
.messe summary::-webkit-details-marker { display: none; }
.messe summary:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
.messe__kopf { display: flex; flex-direction: column; gap: .5rem; }
.messe__titel { font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2.2rem); line-height: 1.2; }
.messe__plus { flex: none; position: relative; width: 2.6rem; height: 2.6rem; border: 1px solid rgba(239, 233, 225, .5); border-radius: 50%; transition: transform .5s var(--ease), background .3s; }
.messe__plus::before, .messe__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.messe__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.messe summary:hover .messe__plus { background: rgba(239, 233, 225, .12); }
.messe__box[open] .messe__plus { transform: rotate(45deg); }
.messe__inhalt { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; padding: 1.8rem 0 clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(239, 233, 225, .2); }
.messe__logo img { display: block; width: clamp(96px, 10vw, 140px); height: auto; }
.messe__daten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; margin: 0; }
.messe__daten dt { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .62; margin-bottom: .3rem; }
.messe__daten dd { margin: 0; }
.messe__link { font-weight: 600; border-bottom: 1px solid currentColor; white-space: nowrap; align-self: end; }
@media (max-width: 860px) {
  .messe__inhalt { grid-template-columns: 1fr; align-items: start; }
  .messe__daten { grid-template-columns: 1fr; }
  .messe__link { justify-self: start; }
}
/* Handy quer (Änderungen 14.11.2026): Menüleiste scrollt ruhig mit der Seite weg statt ein- und auszufahren */
@media (max-height: 520px) and (orientation: landscape) {
  .site-header { position: absolute; transition: background .5s var(--ease), box-shadow .5s; }
  .site-header.is-hidden { transform: none; }
}

.alle-projekte { display: flex; justify-content: center; padding-bottom: var(--space-1); }
.alle-projekte .button { margin-top: 0; }

/* Video in einer Bildzeile (Leistungen) */
.zeile__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Link unter dem Bildband-Satz (Kontakt) */
.bildband__link { margin-top: 1.4rem; color: var(--c-kalk); }
.bildband__link:hover { color: var(--c-sand); }

/* Kopfbild: Bildausschnitt pro Seite (kopfbildPosition im Seitenkopf) */
.page-head__bild img { object-position: var(--bildpos, 50% 50%); }

/* Bildzeilen: Bild und Text immer in derselben Rasterzeile wie das kleine Bild (Desktop) */
@media (min-width: 861px) { .zeile__bild, .zeile__text { grid-row: 1; } }

/* Über uns: Einleitung zum Ablauf */
.ablauf-intro { margin: 0 0 var(--space-1) auto; max-width: 34rem; }
@media (max-width: 860px) { .ablauf-intro { margin-left: 0; } }

/* =========================================================
   Kataloge (Blätterkatalog, /katalog/…/)
   Seiten sind quadratisch (21 × 21 cm). Bilder erzeugt tools/katalog.sh.
   ========================================================= */
.katalog-cover { background: var(--c-kalk); }
.katalog-cover img { position: absolute; inset: 0; margin: auto; width: auto !important; height: 76% !important; aspect-ratio: 1; box-shadow: 0 24px 50px -24px rgba(50,45,41,.5); }

.katalog { padding-bottom: var(--space-2); }
.katalog__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid var(--line); margin-bottom: 1.5rem; }
.katalog__meta .label { opacity: .62; }
.katalog__pdf { font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: color .4s; }
.katalog__pdf:hover { color: var(--accent); }
.katalog__pdf small { font-weight: 400; opacity: .6; margin-left: .4em; }

.buch { --hoehe: min(calc(100svh - 300px), 760px); }
.buch__buehne { position: relative; display: grid; place-items: center; background: var(--c-kalk); padding: clamp(1rem, 3vw, 2.5rem); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.buch__spread { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, calc(var(--hoehe) * 2)); }
.buch__spread > * { grid-row: 1; }
.buch__seite { margin: 0; aspect-ratio: 1; position: relative; background: #fff; }
.buch__seite--links { grid-column: 1; box-shadow: -18px 22px 40px -28px rgba(50,45,41,.55); }
.buch__seite--rechts { grid-column: 2; box-shadow: 18px 22px 40px -28px rgba(50,45,41,.55); }
.buch__seite--leer { background: none; box-shadow: none; }
/* feiner Falz in der Mitte */
.buch__seite--links::after, .buch__seite--rechts::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; pointer-events: none; }
.buch__seite--links::after { right: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.09)); }
.buch__seite--rechts::after { left: 0; background: linear-gradient(270deg, rgba(0,0,0,0), rgba(0,0,0,.07)); }
.buch__seite img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }

/* Einzelseite (Handy, schmale Fenster) */
.buch.is-einzeln .buch__spread { grid-template-columns: 1fr; width: min(100%, var(--hoehe)); }
.buch.is-einzeln .buch__seite { grid-column: 1; box-shadow: 0 22px 40px -28px rgba(50,45,41,.55); }
.buch.is-einzeln .buch__seite::after { display: none; }

.buch__leiste { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 0; }
.buch__leiste[hidden] { display: none; }
.buch__stand { min-width: 15em; text-align: center; opacity: .75; }
.buch__knopf { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: none; color: inherit; font: inherit; font-size: 1.15rem; cursor: pointer; transition: background .4s var(--ease), color .4s, border-color .4s; }
.buch__knopf:hover:not(:disabled) { background: var(--c-dunkel); border-color: var(--c-dunkel); color: var(--c-kalk); }
.buch__knopf:disabled { opacity: .3; cursor: default; }
.buch__knopf:focus-visible, .buch__kapitel a:focus-visible, .seitenraster a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.buch__knopf--voll { margin-left: 1rem; }

.buch__kapitel { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding-top: .5rem; }
.buch__kapitel a { padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 99px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; transition: background .4s var(--ease), color .4s, border-color .4s; }
.buch__kapitel a:hover { border-color: var(--c-dunkel); }
.buch__kapitel a[aria-current="true"] { background: var(--c-dunkel); border-color: var(--c-dunkel); color: var(--c-kalk); }

/* Vollbild: Katalog füllt das Fenster */
.buch.is-voll { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--c-dunkel); color: var(--c-kalk); --hoehe: calc(100svh - 140px); }
.buch.is-voll .buch__buehne { flex: 1; background: none; }
.buch.is-voll .buch__knopf { border-color: rgba(239,233,225,.3); }
.buch.is-voll .buch__knopf:hover:not(:disabled) { background: var(--c-kalk); color: var(--c-dunkel); }
.buch.is-voll .buch__kapitel { display: none; }
body.katalog-voll .site-header, body.katalog-voll .draft-badge, body.katalog-voll .cursor { visibility: hidden; }

/* Raster aller Seiten */
.seiten-block { padding-bottom: var(--space-1); }
.seitenraster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1.4rem 1rem; }
.seitenraster a { display: block; }
.seitenraster img { width: 100%; aspect-ratio: 1; background: var(--c-kalk); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.seitenraster a:hover img { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(50,45,41,.5); }
.seitenraster span { display: block; padding-top: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; opacity: .55; }
.seitenraster a[aria-current="true"] span { color: var(--accent); opacity: 1; }
/* Seitentext: für Suchmaschinen und Screenreader, nicht sichtbar */
.nur-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Handy quer: Katalog füllt fast den ganzen Bildschirm */
@media (max-height: 520px) and (orientation: landscape) {
  .buch { --hoehe: calc(100svh - 96px); }
  .buch__leiste { padding: .4rem 0; }
}
@media (max-width: 860px) and (orientation: portrait) { .buch { --hoehe: calc(100svh - 260px); } }
@media (max-width: 860px) {
  .buch__buehne { padding: .75rem; }
  .buch__stand { min-width: 0; flex: 1; }
  .buch__knopf--voll { margin-left: 0; }
  .buch__kapitel { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .3rem; }
  .buch__kapitel a { white-space: nowrap; }
  .seitenraster { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 1rem .7rem; }
}
