/* ==========================================================================
   PB Malwerk – Stylesheet
   Regeln: siehe REGELN.md (nur Palette-Farben, eckige Formen, Pinselstrich,
   keine externen Ressourcen, mobile first: 600 / 900 / 1200 px)
   ========================================================================== */

/* ---------- Schriften (lokal, SIL OFL) ---------- */
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Palette – ausschließlich aus dem Logo abgeleitet */
  --black: #0b0b0b;
  --anthracite: #1c1c1c;
  --graphite: #3a3a3a;
  --logo-grey: #555555;
  --stone: #8c8b87;
  --mist: #e4e3df;
  --paper: #f4f3f0;
  --white: #ffffff;

  /* Semantik */
  --bg: var(--paper);
  --text: var(--graphite);
  --heading: var(--black);
  --line: #d3d2cd;
  --line-dark: #262626;
  --on-dark: var(--paper);
  --on-dark-muted: #b3b2ad; /* 7.9:1 auf --black */

  /* Typo */
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", Arial, Helvetica, sans-serif;
  --fs-display: clamp(3rem, 1.6rem + 6vw, 6.25rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  --fs-h3: clamp(1.45rem, 1.25rem + 0.8vw, 1.95rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem);
  --fs-small: 0.9375rem;

  /* Raum */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1240px;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 72px;

  /* Bewegung */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 400ms;

  /* Pinselstrich als Maske (eigene Form, keine externe Datei) */
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 26' preserveAspectRatio='none'%3E%3Cpath d='M2 13.5c8-5 25-7.5 52-8.2 38-1 77 .8 118-.4 36-1 70-3 104-2 12 .4 20 1.3 22 3.5 1.5 1.7-.6 3.3-4.2 4.1 3.7.9 5.4 2.4 3.6 4.1-3 2.6-16 3-31 3.4-42 1.1-86 1.8-131 3.1-30 .9-58 2.4-83 1.8-12-.3-24-1.5-29-3.6-3.2-1.4-1.8-3.4 1.6-4.3-2.8-.6-3.9-1.3-3-1.6z'/%3E%3Cpath d='M30 3.2c30-1.4 70-1.7 104-1 3 .1 3 1 .2 1.3-33 1-72 1.4-104 .9-2.4-.1-2.5-1.1-.2-1.2zM180 22.5c28-.9 58-.8 86 .1 2.4.1 2.2 1-.2 1.2-28 .7-58 .8-86-.1-2.2-.1-2-1.1.2-1.2z'/%3E%3C/svg%3E");
}

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--heading);
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.05;
}
p {
  margin: 0 0 1em;
  max-width: 65ch;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
address {
  font-style: normal;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
::selection {
  background: var(--black);
  color: var(--paper);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--black);
  font-weight: 500;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}
.section--mist {
  background: var(--mist);
}
.section--dark {
  background: var(--black);
  color: var(--on-dark-muted);
  --heading: var(--on-dark);
}
.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--graphite);
}
.section--dark .lead {
  color: var(--on-dark-muted);
}

/* ---------- Icons (Tabler Icons, MIT, inline) ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Pinselstrich ---------- */
.brush {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.brush::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.08em;
  bottom: -0.14em;
  height: 0.18em;
  z-index: -1;
  background: var(--brush-color, var(--logo-grey));
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
  mask: var(--brush) center / 100% 100% no-repeat;
}
.js .brush--draw::after {
  clip-path: inset(0 100% 0 0);
}
.js .brush--draw.is-visible::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path 900ms var(--ease) 250ms;
}

/* Text-Link mit Pinselstrich beim Hover */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-block: 0.35em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--heading);
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 1.6em;
  bottom: 0;
  height: 0.32em;
  background: var(--brush-color, var(--stone));
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
  mask: var(--brush) center / 100% 100% no-repeat;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.link .icon {
  transition: transform var(--dur) var(--ease);
}
.link:hover::after,
.link:focus-visible::after,
.service:hover .link::after,
.index-row:hover .link::after,
.more__item:hover .link::after {
  transform: scaleX(1);
}
.link:hover .icon,
.link:focus-visible .icon,
.service:hover .link .icon,
.index-row:hover .link .icon {
  transform: translateX(4px);
}

/* ---------- Buttons (eckig, Versalien, Pfeil) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--black);
  border-radius: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform 120ms ease;
}
.btn .icon {
  transition: transform var(--dur) var(--ease);
}
.btn:hover {
  background: var(--graphite);
  border-color: var(--graphite);
}
.btn:hover .icon {
  transform: translateX(4px);
}
.btn:active {
  transform: translateY(1px);
}
.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--black);
}
.btn--light:hover {
  background: var(--white);
  border-color: var(--white);
}
.btn--small {
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  font-size: 1rem;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.brand {
  display: block;
  flex: none;
}
.brand img {
  width: 168px;
  height: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.25rem 0 0.75rem;
  border: 0;
  background: none;
  color: var(--on-dark);
  font: 600 1rem/1 var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle .icon {
  width: 28px;
  height: 28px;
}
.nav-toggle .icon--close,
.nav-open .nav-toggle .icon--menu {
  display: none;
}
.nav-open .nav-toggle .icon--close {
  display: block;
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem var(--gutter) 3rem;
  background: var(--black);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s linear 250ms;
}
.nav-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.nav-open {
  overflow: hidden;
}
.site-nav__list a {
  position: relative;
  display: inline-block;
  padding-block: 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  isolation: isolate;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1em;
  height: 0.22em;
  background: var(--logo-grey);
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
  mask: var(--brush) center / 100% 100% no-repeat;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
  z-index: -1;
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-nav__contact {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  color: var(--on-dark-muted);
}
.site-nav__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-height: 44px;
}

@media (min-width: 1000px) {
  .brand img {
    width: 200px;
  }
  .nav-toggle {
    display: none;
  }
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav__list {
    display: flex;
    gap: 2rem;
  }
  .site-nav__list a {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--mist);
  }
  .site-nav__list a::after {
    bottom: -0.05em;
    height: 0.3em;
  }
  .site-nav__contact {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  padding-block: clamp(4rem, 10vh, 7rem) clamp(3rem, 8vh, 6rem);
  background: var(--black);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.55;
}
.hero__content {
  max-width: 820px;
}
.hero h1 {
  color: var(--on-dark);
}
.hero__kicker {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--mist);
}
.hero__title {
  display: block;
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.005em;
}
.hero__title .brush,
.page-hero__title .brush {
  --brush-color: var(--stone);
}
.hero__title .brush::after,
.page-hero__title .brush::after {
  height: 0.14em;
  bottom: -0.16em;
}
.hero__text {
  margin: 1.75rem 0 2.25rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--mist);
  max-width: 34ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--on-dark);
  text-decoration: none;
}
.tel-link:hover {
  text-decoration: underline;
}

/* ---------- Abschnitts-Kopf ---------- */
.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  max-width: 760px;
}

/* ---------- Leistungen (Startseite, 1 + 2 Raster) ---------- */
.services {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 3.5rem) clamp(1.5rem, 1rem + 2vw, 3rem);
}
.service {
  display: grid;
  align-content: start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.service__media {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 4 / 3;
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease), filter 900ms var(--ease);
}
.service__num {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--logo-grey);
}
.service h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.service p {
  margin: 0;
}
.service:hover .service__media img {
  transform: scale(1.03);
}

@media (min-width: 900px) {
  .services {
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: auto auto;
  }
  .service--lead {
    grid-row: span 2;
  }
  .service--lead .service__media {
    aspect-ratio: 4 / 5;
  }
  .service--lead h3 {
    font-size: clamp(2rem, 1.4rem + 1.4vw, 2.6rem);
  }
  .service:not(.service--lead) .service__media {
    aspect-ratio: 16 / 10;
  }
}

/* Fotos in Graustufen, Farbe beim Hover (Markenpalette) */
.img-mono {
  filter: grayscale(1);
  transition: filter 900ms var(--ease), transform 900ms var(--ease);
}
a:hover .img-mono,
.img-mono:hover {
  filter: grayscale(0);
}

/* ---------- Meister / Über-uns-Teaser (Split) ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 5rem);
  align-items: center;
}
.split__media {
  position: relative;
}
.split__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
/* Hochformat mit Motiv im oberen Bereich (z. B. Logo auf dem Firmenwagen) */
.split__img--top {
  object-position: 50% 15%;
}
.split__caption {
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  color: var(--logo-grey);
}
.split__body {
  display: grid;
  gap: 1.5rem;
}
.facts {
  display: grid;
  gap: 1.75rem;
  margin: 0.5rem 0 0.75rem;
}
.fact {
  padding-top: 1.1rem;
  border-top: 2px solid var(--black);
}
.fact h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}
.fact p {
  margin: 0;
  font-size: 1rem;
}
@media (min-width: 600px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split__media img {
    aspect-ratio: 4 / 5;
  }
}

/* ---------- Einblicke (Filmstreifen) ---------- */
.strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72%, 1fr);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 0.75rem;
}
.strip figure {
  margin: 0;
  scroll-snap-align: start;
}
.strip img {
  width: 100%;
  height: clamp(260px, 42vw, 420px);
  object-fit: cover;
}
.strip figcaption {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  color: var(--graphite);
}
@media (min-width: 900px) {
  .strip {
    grid-auto-flow: row;
    grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr;
    align-items: end;
    overflow: visible;
    padding-bottom: 0;
  }
  .strip figure:nth-child(1) img {
    height: 440px;
  }
  .strip figure:nth-child(2) img {
    height: 320px;
  }
  .strip figure:nth-child(3) img {
    height: 380px;
  }
  .strip figure:nth-child(4) img {
    height: 290px;
  }
}

/* ---------- Einsatzgebiet (Karte) ---------- */
.area {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: center;
}
.area__map {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.area__map img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.area__map figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--graphite);
}
.area__map figcaption a {
  color: inherit;
}
.area__body {
  display: grid;
  gap: 1.5rem;
}
.area-groups {
  display: grid;
  gap: 1.5rem 2rem;
  margin-top: 0.5rem;
}
.area-groups > div {
  padding-top: 1rem;
  border-top: 2px solid var(--black);
}
.area-groups h3 {
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}
.area-groups p {
  margin: 0;
  font-size: 1rem;
}
@media (min-width: 600px) {
  .area-groups {
    grid-template-columns: 1fr 1fr;
  }
  .area-groups__wide {
    grid-column: 1 / -1;
  }
}
.town-list {
  columns: 2;
  column-gap: 2rem;
  font-size: 1rem;
}
.town-list li {
  padding-block: 0.2rem;
  break-inside: avoid;
}
@media (min-width: 600px) {
  .town-list {
    columns: 3;
  }
}
@media (min-width: 900px) {
  .area {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* ---------- Kontakt-Aufruf (dunkel) ---------- */
.cta {
  display: grid;
  gap: 2.5rem;
}
.cta h2 {
  max-width: 14ch;
}
.cta__options {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.cta__option {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem;
  background: var(--black);
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}
.cta__option strong {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.cta__option:hover {
  background: var(--anthracite);
}
.cta__option:hover .icon--arrow {
  transform: translateX(4px);
}
.cta__option .icon--arrow {
  margin-left: auto;
  transition: transform var(--dur) var(--ease);
}
@media (min-width: 900px) {
  .cta {
    grid-template-columns: 1fr 1.2fr;
    align-items: end;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--on-dark-muted);
  font-size: 1rem;
  border-top: 1px solid var(--line-dark);
  padding-block: 4rem 6.5rem;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--on-dark);
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
.footer-brand img {
  width: 220px;
  height: auto;
}
.footer-brand p {
  margin-top: 1.25rem;
  max-width: 32ch;
}
.footer-title {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.footer-list {
  display: grid;
  gap: 0.35rem;
}
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 36px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
/* Agentur-Hinweis „Webdesign: [Logo]“: Logo dezent grau, beim Hover in Originalfarbe */
.made-by {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.made-by a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.made-by img {
  width: auto;
  height: 20px;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.7;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.made-by a:hover img,
.made-by a:focus-visible img {
  filter: none;
  opacity: 1;
}
@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .site-footer {
    padding-bottom: 3rem;
  }
}

/* ---------- WhatsApp-Button (fixiert unten rechts) ---------- */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 56px;
  height: 56px;
  background: var(--black);
  color: var(--paper);
  border: 1px solid var(--graphite);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(11, 11, 11, 0.25);
  transition: background-color var(--dur) var(--ease), transform 120ms ease;
}
.wa-fab .icon {
  width: 28px;
  height: 28px;
}
.wa-fab__label {
  display: none;
}
.wa-fab:hover {
  background: var(--graphite);
}
.wa-fab:active {
  transform: translateY(1px);
}
@media (min-width: 1000px) {
  .wa-fab {
    right: 24px;
    bottom: 24px;
    width: auto;
    padding: 0 1.1rem 0 0.9rem;
  }
  .wa-fab__label {
    display: inline;
    font: 600 1rem/1 var(--font-head);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* ---------- Einblenden beim Scrollen ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .js .brush--draw::after {
    clip-path: none;
  }
}

/* ==========================================================================
   Unterseiten
   ========================================================================== */

/* ---------- Seitenkopf ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--black);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.page-hero--image {
  min-height: min(62svh, 620px);
  display: flex;
  align-items: flex-end;
}
.page-hero--image .container {
  width: 100%;
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.42;
}
.page-hero h1 {
  color: var(--on-dark);
  max-width: 900px;
}
.page-hero__title {
  display: block;
  font-size: clamp(2.8rem, 1.8rem + 4.5vw, 5.2rem);
  line-height: 0.95;
}
.page-hero .lead {
  margin-top: 1.75rem;
  max-width: 44ch;
  color: var(--mist);
}
.page-hero__signet {
  position: absolute;
  right: -6%;
  top: 50%;
  z-index: -1;
  width: min(52vw, 560px);
  transform: translateY(-50%);
  opacity: 0.16;
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--logo-grey);
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--on-dark);
  text-decoration: underline;
}
.breadcrumb [aria-current] {
  color: var(--on-dark);
}

/* ---------- Leistungsübersicht (Indexliste) ---------- */
.index-list {
  border-top: 2px solid var(--black);
}
.index-row {
  display: grid;
  gap: 1.25rem 2.5rem;
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.index-row__num {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--logo-grey);
}
.index-row h3 {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem);
  line-height: 1;
  margin-bottom: 1rem;
}
.index-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}
.index-row__tags li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--graphite);
  background: var(--white);
}
.index-row__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist);
}
.index-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.index-row:hover .img-mono {
  filter: grayscale(0);
  transform: scale(1.03);
}
@media (min-width: 900px) {
  .index-row {
    grid-template-columns: 5rem 1fr minmax(260px, 34%);
    align-items: start;
  }
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  gap: 2rem;
}
.step {
  padding-top: 1.25rem;
  border-top: 2px solid var(--heading);
}
.step h3 {
  margin-bottom: 0.6rem;
  font-size: 1.6rem;
}
.step p {
  margin: 0;
  font-size: 1rem;
}
@media (min-width: 600px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

/* ---------- Leistungsdetail ---------- */
.intro {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  align-items: start;
}
.intro__text {
  display: grid;
  gap: 1.25rem;
}
.intro__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 900px) {
  .intro {
    grid-template-columns: 1.1fr 1fr;
  }
}

.feature-grid {
  display: grid;
  gap: 2.25rem 2.5rem;
}
.feature {
  padding-top: 1.1rem;
  border-top: 2px solid var(--black);
}
.feature h3 {
  margin-bottom: 0.6rem;
  font-size: 1.55rem;
}
.feature p {
  margin: 0;
  font-size: 1rem;
}
@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-bottom: 1.5rem;
}
.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
}

.more {
  display: grid;
  gap: 1.5rem;
}
.more__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}
.more__item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
}
.more__item h3 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}
.more__item:hover {
  background: var(--white);
}
@media (min-width: 900px) {
  .more {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Referenzen: Filter, Galerie, Lightbox ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter button {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--black);
  background: transparent;
  color: var(--black);
  font: 600 1rem/1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.filter button:hover {
  background: var(--mist);
}
.filter button[aria-pressed="true"] {
  background: var(--black);
  color: var(--paper);
}
.gallery {
  columns: 1;
  column-gap: 1rem;
}
.gallery figure {
  margin: 0 0 1rem;
  break-inside: avoid;
}
.gallery figure[hidden] {
  display: none;
}
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
}
.gallery figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--graphite);
}
/* Vorher-Nachher-Vergleich: Vorher-Bild liegt oben und wird per --pos von rechts beschnitten */
.compare__frame {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.compare__before {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__label {
  position: absolute;
  top: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: var(--black);
  color: var(--paper);
  font: 600 0.875rem/1 var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare__label--before {
  left: 0.75rem;
}
.compare__label--after {
  right: 0.75rem;
}
.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  pointer-events: none;
}
.compare__handle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  max-width: none;
  height: 44px;
  padding: 10px;
  transform: translate(-50%, -50%);
  background: var(--black);
  color: var(--paper);
  stroke-width: 2;
}
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.compare__frame:has(.compare__range:focus-visible) {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
@media (min-width: 600px) {
  .gallery {
    columns: 2;
  }
}
@media (min-width: 1000px) {
  .gallery {
    columns: 3;
    column-gap: 1.25rem;
  }
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(11, 11, 11, 0.96);
  color: var(--on-dark);
}
.lightbox::backdrop {
  background: rgba(11, 11, 11, 0.8);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lightbox__bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem;
}
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 var(--gutter);
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter) 1.5rem;
}
.lightbox__caption {
  margin: 0;
  color: var(--mist);
}
.lightbox button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--graphite);
  background: var(--black);
  color: var(--paper);
  cursor: pointer;
}
.lightbox button:hover {
  background: var(--graphite);
}
.lightbox button .icon {
  width: 24px;
  height: 24px;
}
.lightbox__nav {
  display: flex;
  gap: 0.5rem;
}

/* ---------- Über uns ---------- */
.values {
  border-top: 2px solid var(--black);
}
.value {
  display: grid;
  gap: 0.5rem 2.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.value h3 {
  font-size: 1.7rem;
}
.value p {
  margin: 0;
}
@media (min-width: 900px) {
  .value {
    grid-template-columns: 1fr 1.6fr;
  }
}
.insta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.insta__handle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.4rem);
  letter-spacing: 0.02em;
  color: var(--heading);
  text-decoration: none;
  text-transform: uppercase;
}
.insta__handle .icon {
  width: 0.9em;
  height: 0.9em;
  stroke-width: 1.5;
}
.insta__handle:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
@media (min-width: 900px) {
  .insta {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: start;
}
.contact__aside {
  display: grid;
  gap: 2.5rem;
}
.contact-list {
  border-top: 2px solid var(--black);
}
.contact-list a,
.contact-list div {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  gap: 0.15rem 0.75rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.contact-list .icon {
  width: 1.6rem;
  height: 1.6rem;
  grid-row: span 2;
}
.contact-list strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--black);
  line-height: 1.1;
}
.contact-list span {
  font-size: var(--fs-small);
  color: var(--graphite);
}
.contact-list a:hover strong {
  text-decoration: underline;
}
@media (min-width: 1000px) {
  .contact {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .contact__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.form {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
}
.form h2 {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem);
}
.form__row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  font-weight: 500;
  color: var(--black);
}
.field .opt {
  color: var(--graphite);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--stone);
  border-radius: 0;
  background: var(--paper);
  color: var(--black);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 20px;
  padding-right: 2.75rem;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--graphite);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 1px;
  border-color: var(--black);
  background: var(--white);
}
.field__hint {
  font-size: var(--fs-small);
  color: var(--graphite);
}
.field__error {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--black);
}
.field__error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  background: var(--black);
  color: var(--paper);
  font-size: 0.8em;
  font-weight: 700;
}
.field.is-invalid .field__error {
  display: flex;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border: 2px solid var(--black);
  background: var(--white);
}
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.975rem;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 0.15rem 0 0;
  accent-color: var(--black);
}
.check a {
  color: var(--black);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.form__foot small {
  font-size: var(--fs-small);
  color: var(--graphite);
}
.form-status {
  display: none;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--black);
  background: var(--mist);
  color: var(--black);
}
.form-status.is-shown {
  display: block;
}
.form.is-sending .btn {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Hilfsklassen ---------- */
.mt-s {
  margin-top: 1.25rem;
}
.title-dark {
  color: var(--black);
}

/* ---------- Rechtliche Seiten ---------- */
.legal {
  max-width: 72ch;
}
.legal h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem);
}
.legal h2:first-child {
  margin-top: 0;
}
.legal h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.3rem;
}
.legal p,
.legal li {
  font-size: 1rem;
}
.legal ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
  list-style: square;
}
.legal li {
  margin-bottom: 0.35rem;
}
.legal a {
  color: var(--black);
}
.legal .legal__stand {
  margin-top: 3rem;
  font-size: var(--fs-small);
  color: var(--graphite);
}
.placeholder {
  padding: 0 0.25em;
  background: var(--mist);
  outline: 1px dashed var(--stone);
}

/* ---------- Danke / 404 ---------- */
.message {
  min-height: 55svh;
  display: grid;
  align-content: center;
  gap: 1.5rem;
}
