/* Tischlermeister Thomas Handl — The Material Board */
/*
  THESIS: Show the real materials before the finished piece — refuses the
  soft SaaS "trust us" default every local-trade site ships.
  OWN-WORLD: Gallery-wall neutral (#eeece6); oak/walnut/graphite as the
  palette, all three painted (oak on swatch-body accents, graphite on
  interactive chrome); Big Shoulders Display headlines, IBM Plex Mono
  labels, IBM Plex Sans body; tight-cornered pinned swatch cards (never
  pill), crisp architectural shadow.
  STORY: A prospect sees the real materials and finished work Handl builds
  with, believes this is precise hands-on craft, and requests a quote.
  FIRST VIEWPORT: Two-column hero — headline/lead/CTA left, four fanned
  material swatches right (oak/hardware/decking/repair), each corner-tagged
  in mono, so the mechanism reads before any scroll.
  FORM: The Material Board — own top-ranked candidate (index 1/7), chosen
  over assigned index 6 (Showroom Tag) as IMPECCABLE'S PICK; seed 1e4a954c.
  FIX ROUND: hero rebuilt to ship the promised swatch-fan (was a single
  photo); oak/graphite tokens now painted, not dead; ledger-key contrast
  raised 4.42:1 → 5.7:1+; scrollbar themed.
  FINISH: unreviewed and undocumented is unfinished; this build ends with
  the finish review, the verdict, DESIGN.md, and every shipping raster
  carrying its provenance.
*/

/* Schriften: WOFF2, auf Latein + Latin-Extended + die verwendeten Sonder-
   zeichen beschnitten. Als unkomprimierte TTF waren dieselben Schnitte
   721 KB schwer und damit der groesste Posten jeder Seite. */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../../assets/fonts/BigShouldersDisplay-ExtraBold.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../assets/fonts/IBMPlexSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
}

:root {
  --color-wall: #eeece6;
  --color-wall-band: #e6e2d6;
  --color-surface: #ffffff;
  --color-ink: #211f1c;
  --color-ink-secondary: #56524a;
  --color-ink-muted: #5a5548;
  --color-border: #d6d1c2;
  --color-oak: #b98849;
  --color-walnut: #4a2f1c;
  --color-walnut-deep: #331f11;
  --color-graphite: #454440;
  --color-signal: #ffb948;
  --color-footer-muted: #93907f;
  --color-footer-link: #c9c4b6;
  --color-header: #14120f;
  --color-danger: #9c3a2c;
  --color-danger-bg: #f6e9e5;

  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;

  --shadow-pin: 0 3px 10px rgba(33, 31, 28, 0.16), 0 1px 2px rgba(33, 31, 28, 0.14);
  --shadow-pin-lifted: 0 10px 22px rgba(33, 31, 28, 0.22), 0 2px 4px rgba(33, 31, 28, 0.16);

  --content-width: 1180px;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

figure {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-wall);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--color-walnut);
  color: var(--color-wall);
}

html {
  scrollbar-color: var(--color-graphite) var(--color-wall-band);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-wall-band);
}

::-webkit-scrollbar-thumb {
  background: var(--color-graphite);
  border-radius: var(--radius-sm);
  border: 3px solid var(--color-wall-band);
}

a {
  color: var(--color-walnut);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-walnut);
  outline-offset: 2px;
}

/* Auf den dunklen Flaechen — Kopfzeile, Meisterband, Fusszeile — ist Walnut
   praktisch unsichtbar. Dort traegt der Fokusring die Logo-Marke. */
.site-header a:focus-visible,
.site-header button:focus-visible,
.mobile-menu a:focus-visible,
.master-band a:focus-visible,
.site-footer a:focus-visible,
.whatsapp-float:focus-visible {
  outline-color: var(--color-signal);
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  overflow-wrap: break-word;
}

h1 .accent {
  color: var(--color-walnut);
  white-space: nowrap;
}

/* Einzelne Wörter, die breiter sind als der Schirm, dürfen trennen */
@media (max-width: 380px) {
  h1 .accent {
    white-space: normal;
  }
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
  color: var(--color-ink-secondary);
}

p + h2 {
  margin-top: 1.5em;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-secondary);
  max-width: 52ch;
}

/* Swatch tag — a small material tag pinned to the corner of a swatch photo.
   Lives on the image, not as a kicker above a heading. */
.swatch-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(33, 31, 28, 0.22);
}

/* Buttons — pinned spec tags, not pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-walnut);
  color: #ffffff;
  box-shadow: var(--shadow-pin);
}

.btn-primary:hover {
  background: var(--color-walnut-deep);
  box-shadow: var(--shadow-pin-lifted);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-walnut);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-walnut);
  background: var(--color-wall-band);
}

/* Navigation — flat spec-sheet bar, not a floating pill.
   Schwarzer Grund wie auf der alten Website: das Logo ist mit hellem
   Schriftzug und oranger Marke genau dafuer gezeichnet und verschwindet
   auf dem hellen Wall-Ton. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.2s ease;
}

.site-header.is-past-content {
  opacity: 0;
  pointer-events: none;
}

.nav-bar {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

@media (min-width: 1080px) {
  .logo-img {
    height: 48px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  display: block;
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #d7d2c4;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

/* Aktive Seite: die Marke aus dem Logo als 2px-Marke unter dem Link */
.nav-links a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--color-signal);
}

/* Auf dem schwarzen Balken traegt der CTA die Logo-Marke, nicht Walnut —
   Walnut auf Schwarz waere praktisch unsichtbar. */
.site-header .btn-primary {
  background: var(--color-signal);
  color: #17140f;
  box-shadow: none;
}

.site-header .btn-primary:hover {
  background: #ffc972;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.nav-cta {
  display: none;
}

/* Anrufen: auf dem Handy der kürzeste Weg zu einem Auftrag, deshalb im Balken
   neben dem Menü statt nur auf der Kontaktseite. Ab 1080px übernimmt der CTA. */
.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  background: var(--color-signal);
  color: #17140f;
}

.nav-call svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 13px;
  width: 16px;
  height: 2px;
  background: #f0ece1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle::before {
  top: 17px;
}

.nav-toggle::after {
  bottom: 17px;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  max-width: var(--content-width);
  margin: 0 auto;
  background: var(--color-header);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #e8e3d6;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.09);
}

@media (min-width: 1080px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-call {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Pinned photo — replaces hero-art/photo-block */
.pinned {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-pin);
}

.pinned::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-walnut);
  box-shadow: 0 2px 3px rgba(33, 31, 28, 0.3);
}

.pinned img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.pinned.pinned-tall img {
  height: 360px;
}

/* Hochformat-Aufmacher: Ein Türfoto in den 360px-Streifen von .pinned-tall
   gezwungen zeigt je nach Breite nur Boden und Türunterkanten. Hier bestimmt
   das Foto die Form, nicht der Streifen. */
.pinned.pinned-hoch {
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.pinned.pinned-hoch img {
  height: auto;
  aspect-ratio: 3 / 4;
  object-position: center 60%;
}

.pinned-tag {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--color-ink-muted);
}

.pinned-tag strong {
  color: var(--color-ink);
  font-weight: 500;
}

/* Hero material fan — four real swatches fanned in the first viewport,
   corner-pinned at slightly different angles like real samples on a board */
.hero-fan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.hero-fan-item {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-pin);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border);
}

.hero-fan-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-top img,
img.focus-top {
  object-position: center 22%;
}

.focus-bottom img,
img.focus-bottom {
  object-position: center 76%;
}

.focus-right img,
img.focus-right {
  object-position: 74% center;
}

.focus-left img,
img.focus-left {
  object-position: 26% center;
}

.hero-fan-item:nth-child(1) { transform: rotate(-2deg); }
.hero-fan-item:nth-child(2) { transform: rotate(1.5deg); margin-top: 18px; }
.hero-fan-item:nth-child(3) { transform: rotate(1deg); margin-top: -6px; }
.hero-fan-item:nth-child(4) { transform: rotate(-1.5deg); margin-top: 10px; }

/* Startseite: Der Aufmacher setzt den schwarzen Balken fort und trägt das
   Logo groß – so, wie es auf dem Auto und auf den Schildern des Betriebs steht.
   Auf diesem Grund gilt, was im Balken gilt: Signal statt Walnut. */
.hero-marke {
  background: var(--color-header);
  padding-top: 40px;
}

.hero-logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 0 0 32px;
}

@media (min-width: 900px) {
  .hero-logo {
    width: 440px;
    margin-bottom: 40px;
  }
}

.hero-marke h1 {
  color: #f4f0e6;
}

.hero-marke h1 .accent {
  color: var(--color-signal);
  white-space: normal;
}

.hero-marke .lead {
  color: #cfc9ba;
}

.hero-marke .btn-primary {
  background: var(--color-signal);
  color: #17140f;
  box-shadow: none;
}

.hero-marke .btn-primary:hover {
  background: #ffc972;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.hero-marke .btn-secondary {
  background: transparent;
  color: #f0ece1;
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-marke .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: #f0ece1;
}

.hero-marke a:focus-visible {
  outline-color: var(--color-signal);
}

.hero-marke .hero-fan-item {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Solange das große Logo im Bild ist, bleibt das kleine im Balken weg –
   zweimal dasselbe Zeichen übereinander wirkt wie ein Versehen. Nur mit JS:
   main.js nimmt die Klasse, sobald das große Logo aus dem Bild scrollt. */
.site-header .logo {
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.js .site-header.logo-im-hero .logo {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

/* Zwei Spalten oben buendig statt mittig — fuer Abschnitte, in denen links
   und rechts unterschiedlich hohe Bloecke stehen. */
.hero-grid.align-start {
  align-items: start;
}

/* Auf schmalen Schirmen zuerst die Ueberschrift, dann die Bilder. */
@media (max-width: 899px) {
  .media-last {
    order: 2;
  }
}

/* Sections */
section {
  padding: 56px 0;
}

.section-alt {
  background: var(--color-wall-band);
}

.section-head {
  max-width: 640px;
  margin: 0 0 36px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Swatch — the material-board card, replaces the icon card */
.swatch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .swatch-grid.cols-2,
  .swatch-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .swatch-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Vier Karten erst ab 1080px nebeneinander; darunter zwei mal zwei,
   sonst wird der Text in den Karten zur schmalen Spalte. */
@media (min-width: 1080px) {
  .swatch-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.swatch {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-pin);
  display: flex;
  flex-direction: column;
}

.swatch-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.swatch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swatch-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  border-top: 3px solid var(--color-oak);
}

.swatch-body h3 {
  margin-bottom: 0.35em;
}

.swatch-body p {
  font-size: 0.95rem;
  margin-bottom: 0.75em;
}

.swatch-body a.more {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 1.5px solid var(--color-walnut);
  padding: 3px 0 2px;
}

.swatch-body a.more:hover {
  color: var(--color-walnut);
}

/* Ledger — a strict ruled-row list (borrowed from the split-flap challenger) */
.ledger {
  border-top: 1.5px solid var(--color-ink);
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 700px) {
  .ledger {
    display: grid;
    grid-template-columns: fit-content(24ch) 1fr;
    column-gap: 20px;
  }
  .ledger-row {
    display: contents;
  }
  .ledger-row > * {
    padding: 16px 4px;
    border-bottom: 1px solid var(--color-border);
  }
}

.ledger-row .ledger-key {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  letter-spacing: 0.02em;
}

/* Ohne min-width sprengt eine lange E-Mail-Adresse die Rasterspalte. */
.ledger-row .ledger-value {
  min-width: 0;
  max-width: 70ch;
  overflow-wrap: anywhere;
}

/* Info strip */
.info-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1.5px solid var(--color-ink);
}

@media (min-width: 700px) {
  .info-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 700px) {
  .info-item {
    border-right: 1px solid var(--color-border);
    padding: 20px;
  }
  .info-item:last-child {
    border-right: none;
  }
}

.info-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-graphite);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Credential seal block */
.seal-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 24px 0;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.seal {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.footer-seal {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Fade-in reveal — one authored moment, used only on swatches/pinned photos.
   Gebunden an .js: ohne Javascript setzt niemand .is-visible, und der Aufhaenger
   bliebe dauerhaft unsichtbar — samt dem Foto im ersten Bildschirm. */
.js .pin-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .pin-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .pin-in {
    opacity: 1;
    transform: none;
  }
}

/* Forms */
.form-grid {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-ink-secondary);
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 44px;
  background: var(--color-surface);
  color: var(--color-ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.field-hint {
  font-size: 0.82rem;
  color: var(--color-danger);
  margin: 4px 0 0;
}

.field-hint:empty {
  display: none;
}

/* Spam-Falle: Menschen sehen das Feld nicht und lassen es leer. */
.hp-feld {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: none;
  border: 1.5px solid transparent;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  background: #eef1e6;
  border-color: var(--color-walnut);
  color: var(--color-walnut);
}

.form-status.error {
  background: var(--color-danger-bg);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--color-ink-secondary);
}

.consent-row span {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}

.consent-row input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: var(--color-footer-link);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer h3 {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer a {
  color: var(--color-footer-link);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 40px;
  padding: 20px 76px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--color-footer-muted);
}

.footer-bottom a {
  color: var(--color-footer-muted);
}

/* Table (legal pages) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.info-table th {
  width: 40%;
  color: var(--color-ink);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 40px;
}

/* Galerie — Projektfotos in Rasterform. Gleiche Sprache wie .swatch
   (weisse Karte, Oak-Streifen, ein Pin-Schatten), nur ohne Fliesstext:
   hier traegt die Mono-Bildunterschrift die Information. */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-pin);
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-wall-band);
}

/* Vorher und nachher gehören nebeneinander, auch auf dem Handy: untereinander
   liegen zwischen Zeichnung und fertigem Möbel eine ganze Bildschirmhöhe. */
.gallery.vergleich {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery.gallery-portrait .gallery-item img {
  aspect-ratio: 3 / 4;
}

.gallery-cap {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--color-ink-muted);
  padding: 11px 13px 13px;
  border-top: 3px solid var(--color-oak);
}

.gallery-cap strong {
  display: block;
  color: var(--color-ink);
  font-weight: 500;
}

/* Meisterbetrieb-Band — steht auf jeder Seite direkt vor dem Footer,
   statt einer eigenen Unterseite. */
.master-band {
  background: var(--color-header);
  color: #ddd8ca;
  padding: 36px 0;
}

.master-band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

@media (min-width: 760px) {
  .master-band-inner {
    grid-template-columns: 108px 1fr auto;
    gap: 28px;
  }
}

.master-portrait {
  width: 108px;
  height: 108px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pin);
}

.master-band h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  color: #ffffff;
  margin-bottom: 0.3em;
}

.master-band p {
  color: #b8b2a2;
  font-size: 0.95rem;
  margin: 0;
  max-width: 62ch;
}

.master-band .seal {
  filter: none;
}

.master-seal-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: #b8b2a2;
  max-width: 240px;
}

.site-footer {
  margin-top: 0;
}

/* WhatsApp-Knopf — fix unten rechts, wie auf rhost.at. Bewusste Ausnahme
   von der Anti-Pill-Regel dieses Systems: der runde gruene Knopf ist die
   Konvention, an der Besucher ihn ueberhaupt erst erkennen. */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.whatsapp-float:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

@media (max-width: 700px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}

/* Nebenleistung — ein ruhiger Verweis unter einem Leistungsraster, fuer
   alles, was bewusst nicht als eigene Karte im Raster steht. */
.aside-note {
  margin-top: 26px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-graphite);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.aside-note p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
  min-width: 260px;
}

.aside-note a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 1.5px solid var(--color-walnut);
  padding: 3px 0 2px;
  white-space: nowrap;
}

.aside-note a:hover {
  color: var(--color-walnut);
}

.aside-note + .ledger {
  margin-top: 40px;
}

/* Türenmarken — die vier Hersteller als gesetzte Namen in einer Leiste,
   gerahmt wie .ledger (Ink-Linie oben, Haarlinie unten). Bewusst keine
   Logos: die Zeichen gehören den Herstellern und kommen erst mit deren
   Freigabe auf die Seite. */
.marken {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1.5px solid var(--color-ink);
  border-bottom: 1px solid var(--color-border);
}

.marken li {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
  text-align: center;
  padding: 22px 8px;
}

.marken li:nth-child(odd) {
  border-right: 1px solid var(--color-border);
}

.marken li:nth-child(-n + 2) {
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 700px) {
  .marken {
    grid-template-columns: repeat(4, 1fr);
  }
  .marken li,
  .marken li:nth-child(-n + 2) {
    border-bottom: 0;
    border-right: 1px solid var(--color-border);
  }
  .marken li:last-child {
    border-right: 0;
  }
}

.marken + .aside-note {
  margin-top: 20px;
}

/* Haeufige Fragen — sichtbarer Text, kein Akkordeon: versteckte Antworten
   kosten Leser wie Suchmaschinen. Dieselbe Sprache wie .ledger (Ink-Linie
   oben, Haarlinien dazwischen); die Frage steht als h3 in IBM Plex Sans. */
.faq {
  max-width: 820px;
  border-top: 1.5px solid var(--color-ink);
}

.faq-item {
  padding: 20px 4px 22px;
  border-bottom: 1px solid var(--color-border);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  max-width: 70ch;
}

.faq-item p + p {
  margin-top: 0.7em;
}

/* Fusszeilen-Links waren am Telefon 19–20 px hoch, WCAG 2.2 verlangt 24. */
.footer-links a,
.info-item a {
  display: inline-block;
  padding: 3px 0;
}

/* Sprungziele (#leistungen, #fragen …) landen sonst unter der fixen
   Kopfzeile, und genau die Überschrift, zu der man springen wollte, ist verdeckt. */
[id] {
  scroll-margin-top: 92px;
}

/* Kacheln heben sich beim Überfahren leicht ab */
.swatch,
.gallery-item,
.hero-fan-item {
  transition: box-shadow 0.25s ease, translate 0.25s ease;
}

@media (hover: hover) {
  .swatch:hover,
  .gallery-item:hover,
  .hero-fan-item:hover {
    box-shadow: var(--shadow-pin-lifted);
    translate: 0 -3px;
  }
}

/* Rechtstexte: Aufzählungen, Zitate, Quellenangabe */
.rechtstext ul,
.rechtstext ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.rechtstext li {
  margin-bottom: .4rem;
}

.rechtstext ul ul {
  margin-top: .4rem;
}

.rechtstext h3 {
  margin-top: 1.75rem;
}

.rechtstext blockquote {
  margin: 0 0 1rem;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--color-border);
}

.rechtstext blockquote p {
  margin: 0;
}

.rechtstext .quelle {
  margin-top: 2rem;
  font-size: 0.92rem;
}

/* Lange Wörter wie "Datenschutzerklärung" mit Silbentrennung statt Buchstabenbruch */
h1 {
  hyphens: auto;
}
