/* Hallmark · shape: custom, Raum to Moebel to Detail · genre: editorial · theme: custom (agreed concept with ChatGPT, deal: manual) · job: hire · draw: manual
 * hero: full-bleed photograph · nav: wordmark and four links · footer: full name over legal links · imagery: library photographs, labelled samples · signature: the sentence in wood grain and the camera move into one photograph
 * axes: dark-and-stone/serif-display/photo-led · posture: warm · contrast: measured in pruefen.py · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E4 S4 R4 V5 · weakest: S, no own photographs yet, so every picture is labelled */
/* waive 26b: page has no disabled control state, every button always works */
/* waive 2b: the headline is filled with a wood photograph, not a gradient; it is the page's signature and falls back to solid warm white */
@import url("./tokens.css");
@import url("./base.css");

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

body { line-height: 1.6; }
h1 { max-width: 13ch; line-height: 1.04; }
h2 { line-height: 1.08; }
h3 { line-height: 1.15; }
h1, h2, h3 { text-wrap: balance; hyphens: none; }
p { hyphens: manual; }

.sprunglink { position: absolute; left: var(--space-md); top: var(--space-md); z-index: 500; padding: var(--space-sm) var(--space-md); background: var(--color-hell); color: var(--color-ink); transform: translateY(-200%); }
.sprunglink:focus-visible { transform: none; }

.dunkel { background: var(--color-dunkel); color: var(--color-hell); --color-focus: var(--color-accent); }
.dunkel p { color: var(--color-hell-2); }
.abschnitt { padding-block: var(--section-gap); }

/* Kopf */
.kopf { position: absolute; inset: 0 0 auto; z-index: 10; color: var(--color-hell); --color-focus: var(--color-hell); }
.kopf-fest { position: static; background: var(--color-dunkel); }
.kopf-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-xl); padding-block: var(--space-lg); }
.marke { display: grid; text-decoration: none; line-height: 1.2; }
.marke strong { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; }
.marke span { font-size: var(--text-sm); color: var(--color-hell-2); }
.kopf nav { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin-inline: calc(var(--space-xs) * -1); }
.kopf nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-xs); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.kopf nav a:hover { text-decoration: underline; }

/* Bildflaechen */
.vollbild { position: relative; display: grid; align-items: end; overflow: hidden; background: var(--color-dunkel-2); color: var(--color-hell); --color-focus: var(--color-hell); }
.vollbild picture { position: absolute; inset: 0; }
.vollbild img { width: 100%; height: 100%; object-fit: cover; }
.vollbild::after { content: ""; position: absolute; inset: 0; }
.vollbild > .container { position: relative; z-index: 2; }
.bildnote { font-size: var(--text-xs); color: var(--color-muted); }
.vollbild .bildnote { position: absolute; right: 0; bottom: 0; z-index: 3; padding: var(--space-2xs) var(--space-sm); background: var(--color-dunkel-2); color: var(--color-hell-2); }

.hero { min-height: min(100svh, 960px); }
.hero img { object-position: 30% 50%; animation: ruhe 1800ms var(--ease-out) both; }
.hero::after { background:
  linear-gradient(to top, rgb(var(--schatten-rgb) / .78) 0%, rgb(var(--schatten-rgb) / .34) 42%, rgb(var(--schatten-rgb) / 0) 66%, rgb(var(--schatten-rgb) / 0) 80%, rgb(var(--schatten-rgb) / .5) 100%),
  linear-gradient(to right, rgb(var(--schatten-rgb) / .5) 0%, rgb(var(--schatten-rgb) / 0) 60%); }
.hero-text { padding-block: var(--space-3xl) var(--space-2xl); }
.hero-text .lead { margin-block: var(--space-md) var(--space-lg); max-width: 38ch; color: var(--color-hell); }
@keyframes ruhe { from { transform: scale(1.05); } to { transform: none; } }

.knopf { display: inline-flex; align-items: center; min-height: 56px; padding-inline: var(--space-lg); border-radius: var(--radius-knopf); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; font-size: var(--text-md); text-decoration: none; transition: background-color var(--dur-micro) linear; }
.knopf:hover { background: var(--color-accent-hover); }
.knopf:active { background: var(--color-accent-gedrueckt); }

.demozeile { padding-block: var(--space-lg); background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-sm); }

/* Leistungen */
.einstieg { max-width: 44rem; margin-bottom: var(--space-2xl); }
.einstieg .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.leistung { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.leistung + .leistung { margin-top: var(--space-3xl); }
.leistung figure { grid-column: 1 / span 7; margin: 0; }
.leistung .text { grid-column: 9 / span 4; }
.leistung.rechts figure { grid-column: 6 / span 7; grid-row: 1; }
.leistung.rechts .text { grid-column: 1 / span 4; grid-row: 1; }
.leistung img, .paar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.leistung p:not(.bildnote), .paar p:not(.bildnote) { margin-top: var(--space-md); }
figcaption.bildnote { margin-top: var(--space-xs); }
.paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); margin-top: var(--space-3xl); }
.paar figure { margin: 0 0 var(--space-lg); }

.handwerk { min-height: min(92svh, 860px); }
.handwerk img { object-position: 30% 50%; }
.handwerk::after { background: linear-gradient(to top, rgb(var(--schatten-rgb) / .85) 0%, rgb(var(--schatten-rgb) / .62) 26%, rgb(var(--schatten-rgb) / 0) 56%); }
.handwerk h2 { padding-block: var(--space-2xl); max-width: 16ch; }

/* Ablauf */
.schritte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.schritte li { padding-top: var(--space-md); border-top: 1px solid var(--color-rule-dunkel); }
.schritte b { display: block; margin-bottom: var(--space-lg); font-family: var(--font-display); font-size: var(--text-title); font-weight: 500; color: var(--color-accent); }
.schritte h3 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }

/* Die Schrift aus Holz */
.holz { background: var(--color-dunkel-2); }
.holzschrift { max-width: none; font-size: var(--text-holz); line-height: 1.02; color: var(--color-hell); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .holzschrift { background: var(--color-accent) url(bilder/maserung.webp) 50% 40% / cover; -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.holz-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); max-width: 60rem; margin-top: var(--space-2xl); }

/* Näher hinsehen */
.naeher-kopf { display: grid; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.ansichten { display: grid; gap: var(--space-lg); }
.ansichten figure { margin: 0; }
.ansichten img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ansichten figcaption { margin-top: var(--space-xs); }
.wahl { display: flex; gap: var(--space-xs); margin-top: var(--space-md); }
.wahl button { flex: 0 1 148px; min-height: 48px; padding-inline: var(--space-md); border: 1px solid var(--color-ink); border-radius: var(--radius-knopf); background: transparent; color: var(--color-ink); font-weight: 600; cursor: pointer; transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear; }
.wahl button:hover { background: var(--color-paper-2); }
.wahl button:active { background: var(--color-rule); }
.wahl button[aria-pressed="true"] { background: var(--color-ink); color: var(--color-hell); }
.ansicht-text { min-height: 3.2em; margin-top: var(--space-md); font-size: var(--text-lead); line-height: 1.4; max-width: 44ch; color: var(--color-ink); }
.naeher-spiel .ansichten { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-dunkel); }
.naeher-spiel .ansichten figure { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-short) linear; }
.naeher-spiel .ansichten figure:first-child { opacity: 1; }
.naeher-spiel .ansichten figure.an { opacity: 1; transition: opacity var(--dur-long) linear calc(var(--dur-fahrt) - 400ms); }
.naeher-spiel .ansichten img { height: 100%; }
.naeher-spiel .ansichten figure:first-child img { transform-origin: 0 0; transition: transform var(--dur-fahrt) var(--ease-in-out); }
.naeher-spiel .ansichten figcaption { display: none; }
@media (prefers-reduced-motion: reduce) { .naeher-spiel .ansichten figure.an { transition-delay: 0s; } }

/* Betrieb und Schluss */
.betrieb { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); padding-bottom: var(--section-gap); }
.betrieb h2 { grid-column: 1 / span 5; }
.betrieb p { grid-column: 7 / span 6; font-size: var(--text-lead); line-height: 1.45; }

.schluss::after { background: linear-gradient(to right, rgb(var(--schatten-rgb) / .74) 0%, rgb(var(--schatten-rgb) / .34) 75%); }
.schluss-text { padding-block: var(--space-4xl); }
.schluss h2 { max-width: 18ch; }
.schluss p { color: var(--color-hell); }
.schluss-text > p { margin-top: var(--space-md); font-size: var(--text-lead); }
.anschrift { margin-top: var(--space-2xl); font-style: normal; font-family: var(--font-display); font-size: var(--text-title); line-height: 1.25; }
.schluss-text > .hinweis { font-size: var(--text-md); }

/* Fuss */
.fuss { padding-block: var(--space-xl); background: var(--color-dunkel-2); color: var(--color-hell); font-size: var(--text-sm); --color-focus: var(--color-accent); }
.fuss .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-lg); }
.fuss nav { display: flex; gap: var(--space-xs) var(--space-lg); margin-inline: calc(var(--space-xs) * -1); }
.fuss nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-xs); }
.entwurf-fuss { flex-basis: 100%; color: var(--color-hell-2); font-size: var(--text-xs); }

/* Unterseiten */
.entwurf { padding-block: var(--space-sm); background: var(--color-paper-2); font-size: var(--text-sm); }
.offen { background: var(--color-accent); padding-inline: var(--space-2xs); }
.recht h1 { max-width: none; font-size: var(--text-section); margin-bottom: var(--space-xl); }
.recht h2 { font-size: var(--text-title); margin-block: var(--space-2xl) var(--space-md); }
.recht p + p { margin-top: var(--space-md); }
.zeilen { margin: 0; max-width: 44rem; }
.zeile { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); }
.zeile dt { font-weight: 600; }
.zeile dd { margin: 0; }
.nachweis { max-width: 44rem; margin: 0; padding: 0; list-style: none; }
.nachweis li { padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); overflow-wrap: anywhere; }

@media (max-width: 60rem) {
  .leistung, .betrieb { display: block; }
  .leistung .text { margin-top: var(--space-md); }
  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .betrieb p { margin-top: var(--space-lg); }
}
@media (max-width: 40rem) {
  .paar, .schritte, .holz-text { grid-template-columns: minmax(0, 1fr); }
  .hero img { object-position: 50% 30%; }
  .hero-text { padding-bottom: var(--space-xl); }
  .kopf-zeile { padding-block: var(--space-md); }
  .kopf nav { gap: 0; }
  .wahl button { flex: 1 1 0; padding-inline: var(--space-xs); }
  .zeile { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .schluss-text { padding-block: var(--space-3xl); }
}
