/* Malermeister Wiesmoor
   Gestaltung: Kalkweiße Putzwand, darunter Friesengrün mit scharfer, abgeklebter Kante.
   Leistungen als Farbfächer in der Grünfamilie. Schriften lokal (SIL OFL 1.1). */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 68% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --kalk: #f2eee5;
  --papier: #fbf9f4;
  --torf: #24211c;
  --torf-matt: #5c564b;
  --linie: #cfc7b6;
  --feld-rand: #7d766a;
  --gruen: #1f4a3a;
  --gruen-tief: #163629;
  --gruen-hell: #cfd8cf;
  --creme: #f6f2e8;
  --krepp: #e2d3a2;
  --klinker: #8f3520;
  --klinker-hell: #f6e4dc;
  --fokus: var(--torf);

  --ton-1: #e4e9e1;
  --ton-2: #cad6c9;
  --ton-3: #a9bdab;
  --ton-4: #4c6e60;
  --ton-5: #36594b;
  --ton-6: #1f3f32;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --breite: 76rem;
  --rand: clamp(1rem, 4vw, 3rem);
  --abstand: clamp(4.5rem, 3rem + 6vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--kalk);
  color: var(--torf);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
}

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

.sprung {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--torf); color: var(--creme);
  padding: .75rem 1rem; font-weight: 700;
}
.sprung:focus { top: 1rem; }

/* ---------- Knopf ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .8rem 1.6rem;
  background: var(--gruen);
  color: var(--creme);
  border: 2px solid var(--gruen);
  border-radius: 2px;
  font: 700 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--kalk);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  min-height: 2.75rem;
}
.marke svg { flex: none; }
.marke__name {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  line-height: 1.05;
}
.marke__name b { font-weight: 400; font-size: 1.3rem; }
.marke__name span { font-size: 1rem; color: var(--torf-matt); }

.menue-knopf {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: .5rem .9rem;
  background: transparent;
  color: var(--torf);
  border: 2px solid var(--torf);
  border-radius: 2px;
  font: 700 .95rem/1 var(--sans);
  cursor: pointer;
}
.menue-knopf__striche { width: 18px; height: 12px; position: relative; }
.menue-knopf__striche::before,
.menue-knopf__striche::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.menue-knopf__striche::before { top: 1px; }
.menue-knopf__striche::after { bottom: 1px; }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche::before { top: 5px; transform: rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche::after { bottom: 5px; transform: rotate(-45deg); }

.hauptnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.6rem;
}
.hauptnav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
}
.hauptnav a:not(.knopf):hover { text-decoration: underline; text-decoration-thickness: 2px; }
.hauptnav .knopf { min-height: 2.75rem; padding: .55rem 1.1rem; margin-left: .4rem; }

@media (max-width: 48rem) {
  .js .menue-knopf { display: inline-flex; }
  .js .hauptnav { display: none; width: 100%; }
  .js .hauptnav.ist-offen { display: block; }
  .hauptnav { width: 100%; padding-bottom: .75rem; }
  .js .hauptnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .hauptnav li { border-top: 1px solid var(--linie); }
  .js .hauptnav a { width: 100%; min-height: 3.25rem; }
  .js .hauptnav .knopf { margin: .75rem 0 0; width: 100%; }
}

/* ---------- Einstieg: Putzwand, darunter der grüne Sockel ---------- */
.wand {
  background: var(--kalk) url("/img/putz.webp");
  padding-block: clamp(4rem, 2rem + 7vw, 9rem) clamp(4rem, 2.5rem + 5vw, 7.5rem);
}
.wand h1 {
  font-size: clamp(2.75rem, 1.4rem + 6vw, 6.25rem);
  line-height: .98;
  letter-spacing: -.012em;
  margin-bottom: 1.75rem;
}
.wand h1 span { display: block; }
@media (min-width: 48rem) {
  .wand h1 { font-size: clamp(3.5rem, 1.2rem + 5.4vw, 6rem); text-wrap: initial; }
  .wand h1 span { white-space: nowrap; }
  .wand h1 br { display: none; }
}
.wand__text {
  font-size: clamp(1.125rem, 1rem + .45vw, 1.3rem);
  max-width: 36rem;
  margin-bottom: 2.25rem;
}
/* Grüner Anstrich unter der Wand, Malerkrepp genau an der Kante */
.anstrich {
  position: relative;
  height: clamp(5rem, 3rem + 7vw, 9.5rem);
  background: var(--gruen) url("/img/putz.webp");
  overflow-x: clip;
}
.krepp {
  --zacken: polygon(
    0 0, 100% 0, calc(100% - 5px) 18%, 100% 38%, calc(100% - 4px) 57%, 100% 76%,
    calc(100% - 6px) 100%, 0 100%
  );
  position: absolute;
  left: 0;
  bottom: calc(100% - 3px);
  width: min(68%, 60rem);
  height: 2.4rem;
  background: var(--krepp) url("/img/putz.webp");
  clip-path: var(--zacken);
}
.krepp-lasche {
  position: absolute;
  left: calc(min(68%, 60rem) - 6px);
  bottom: calc(100% + 1.1rem);
  width: 3.4rem;
  height: 2.4rem;
  background: linear-gradient(170deg, #eee3bd 0%, var(--krepp) 55%, #c9b886 100%);
  clip-path: polygon(0 62%, 100% 0, 92% 58%, 6% 100%);
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: var(--abstand); }
.abschnitt--gruen {
  background: var(--gruen);
  color: var(--creme);
  --fokus: var(--creme);
  background-image: url("/img/putz.webp");
}
.abschnitt--gruen a:not(.knopf) { color: var(--creme); }
.abschnitt h2 {
  font-size: clamp(2rem, 1.45rem + 2vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -.008em;
  margin-bottom: 1.25rem;
}
.einleitung { font-size: clamp(1.075rem, 1rem + .3vw, 1.2rem); max-width: 36rem; }

.zweispaltig { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) {
  .zweispaltig { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
}

/* ---------- Leistungen: Farbfächer ---------- */
.faecher-halter { position: relative; isolation: isolate; max-width: 40rem; }
.faecher {
  position: relative;
  background: var(--papier);
  padding: 2.75rem .6rem .6rem;
  box-shadow: 0 1px 0 rgba(36, 33, 28, .1), 0 26px 46px -30px rgba(36, 33, 28, .55);
}
/* zweites Blatt dahinter, um die Lochung gedreht */
.faecher::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 2.75rem .6rem .6rem;
  background:
    linear-gradient(var(--ton-1) 0 16.66%, var(--ton-2) 0 33.33%, var(--ton-3) 0 50%, var(--ton-4) 0 66.66%, var(--ton-5) 0 83.33%, var(--ton-6) 0) content-box,
    var(--papier);
  box-shadow: 0 18px 36px -26px rgba(36, 33, 28, .5);
  transform-origin: 50% 1.4rem;
  transform: rotate(-5deg);
}
.faecher__loch {
  position: absolute;
  top: .8rem;
  left: 50%;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: -.6rem;
  border-radius: 50%;
  background: var(--kalk);
  box-shadow: inset 0 1px 3px rgba(36, 33, 28, .45);
}
.faecher ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.faecher li {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem) clamp(1.25rem, .9rem + 1.6vw, 2.25rem);
  min-height: 9rem;
  color: var(--torf);
}
.faecher h3 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem); line-height: 1.12; margin-bottom: .55rem; }
.faecher p { max-width: 32rem; }
.ton--1 { background: var(--ton-1); }
.ton--2 { background: var(--ton-2); }
.ton--3 { background: var(--ton-3); }
.ton--4 { background: var(--ton-4); }
.ton--5 { background: var(--ton-5); }
.ton--6 { background: var(--ton-6); }
.faecher .ton--4, .faecher .ton--5, .faecher .ton--6 { color: var(--creme); }
.leistungen-abschnitt { overflow-x: clip; }
@media (max-width: 40rem) {
  .faecher::before { transform: rotate(-3deg); }
}

/* ---------- Warum wir ---------- */
.warum p { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.65; max-width: 42rem; color: var(--gruen-hell); }

/* ---------- Musterwand: Fotos und Farbtonfelder im Wechsel ---------- */
.bilder h2 { margin-bottom: 2rem; }
.musterwand {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 48rem) {
  .musterwand { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.musterwand a { display: block; cursor: zoom-in; position: relative; }
.musterwand img,
.musterwand__ton {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}
.musterwand img { object-fit: cover; background: var(--linie); }
.musterwand a:focus-visible { z-index: 1; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 75rem);
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(20, 18, 15, .92); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; }
.lightbox__leiste {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: .75rem;
  color: var(--creme);
}
.lightbox__leiste p { margin: 0; font-size: .95rem; }
.lightbox button {
  min-height: 2.75rem;
  padding: .5rem 1.1rem;
  background: var(--creme);
  color: var(--torf);
  border: 0;
  border-radius: 2px;
  font: 700 .95rem/1 var(--sans);
  cursor: pointer;
}
.lightbox button:focus-visible { outline-color: var(--creme); }

/* ---------- Kontakt ---------- */
.angaben { margin: 2.25rem 0 0; display: grid; gap: .9rem; }
.angaben div { display: grid; gap: 0 1rem; }
@media (min-width: 30rem) {
  .angaben div { grid-template-columns: 7.5rem minmax(0, 1fr); }
}
.angaben dt { color: var(--gruen-hell); }
.angaben dd { margin: 0; }
.platzhalter { font-style: italic; }

.formularblock {
  background: var(--papier);
  color: var(--torf);
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3rem) clamp(1.25rem, .75rem + 3vw, 3rem);
  --fokus: var(--torf);
}
.formularblock a:not(.knopf) { color: var(--gruen); font-weight: 600; }
.formularblock h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: .4rem; }
.formularblock__hinweis { color: var(--torf-matt); margin-bottom: 2rem; }

.meldung {
  border: 2px solid var(--klinker);
  background: var(--klinker-hell);
  color: #5e2414;
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
}
.meldung:focus { outline: 3px solid var(--torf); outline-offset: 3px; }
.meldung strong { display: block; margin-bottom: .2rem; }
.meldung p { margin: 0; }

.formular { display: grid; gap: 1.35rem; }
@media (min-width: 36rem) {
  .formular { grid-template-columns: 1fr 1fr; }
  .feld--breit, .formular__fuss, .einwilligung { grid-column: 1 / -1; }
}
.feld label { display: block; font-weight: 700; margin-bottom: .35rem; }
.feld label small { font-weight: 400; font-size: .9rem; color: var(--torf-matt); }
.feld__hilfe { display: block; font-size: .92rem; color: var(--torf-matt); margin: -.15rem 0 .45rem; }
.feld input,
.feld textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: .7rem .85rem;
  background: #fff;
  color: var(--torf);
  border: 2px solid var(--feld-rand);
  border-radius: 2px;
  font: inherit;
  font-size: 1.05rem;
}
.feld textarea { min-height: 9.5rem; resize: vertical; line-height: 1.5; }
.feld input:focus,
.feld textarea:focus { border-color: var(--gruen); }
.feld input:focus-visible,
.feld textarea:focus-visible { outline: 3px solid var(--gruen); outline-offset: 1px; }

.honigtopf {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.einwilligung {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  font-size: .98rem;
}
.einwilligung input {
  width: 1.5rem;
  height: 1.5rem;
  margin: .1rem 0 0;
  accent-color: var(--gruen);
  cursor: pointer;
}
.einwilligung label { cursor: pointer; }

.formular__fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: .25rem;
}
.formular__fuss p { margin: 0; font-size: .92rem; color: var(--torf-matt); }

/* ---------- Fuß: eine Zeile ---------- */
.fuss {
  background: var(--torf);
  color: #d9d3c6;
  padding-block: 1.25rem;
  font-size: .95rem;
  --fokus: var(--creme);
}
.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.75rem;
}
.fuss li { display: flex; align-items: center; min-height: 2.75rem; }
.fuss a { color: #f1ece1; display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- Textseiten (Impressum, Datenschutz, 404) ---------- */
.textseite { padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--abstand); }
.textseite__spalte { max-width: 44rem; }
.textseite h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 2.5rem;
}
.textseite h2 {
  font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem);
  line-height: 1.2;
  margin: 2.75rem 0 .8rem;
}
.textseite h1 + h2 { margin-top: 0; }
.textseite ul { padding-left: 1.25rem; margin: 0 0 1em; }
.textseite li { margin-bottom: .4rem; }
.textseite li::marker { color: var(--gruen); }
.textseite a:not(.knopf) { color: var(--gruen); font-weight: 600; }
.textseite hr { border: 0; border-top: 1px solid var(--linie); margin: 3rem 0 0; }
.textseite .platzhalter { color: var(--torf-matt); }
.textseite .klein { font-size: .95rem; color: var(--torf-matt); }

/* ---------- Danke ---------- */
.danke { padding-block: var(--abstand); }
.danke .formularblock { max-width: 40rem; }
.danke h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); line-height: 1.05; margin-bottom: 1.25rem; }
.danke .knopf { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .kopf, .fuss, .anstrich, .formular, .menue-knopf { display: none !important; }
  body, .abschnitt--gruen { background: #fff !important; color: #000 !important; }
}
