/* Farbsatt-ND Malerbetrieb (Demo) · Gestaltung: frisch verputzte Wand, Gipsweiß und volle Farbe, große Versalien */

@font-face {
  font-family: "Archivo Black";
  src: url("assets/fonts/archivo-black-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Fläche, Text, ein Akzent */
  --gips: #f2f0eb;
  --anthrazit: #1d1d1b;
  --leise: #55534d;
  --terrakotta: #a9472a;
  --terrakotta-tief: #8a3a21;
  /* Abstufungen der Fläche */
  --weiss: #faf9f6;
  --karte: #ebe6dc;
  --dunkel-leise: #bdb9b0;
  --krepp: #e9dcb4;
  /* Farbtöne der Farbberatung: Inhalt, keine UI-Farben */
  --fs-terrakotta: #a9472a;
  --fs-salbei: #9aa88f;
  --fs-taubenblau: #8fa3b5;
  --fs-ocker: #c8952f;

  --fokus: var(--terrakotta);
  --font-titel: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-text: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;

  --wrap: 1360px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --kopf: 72px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--kopf);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--gips);
  color: var(--anthrazit);
  font-family: var(--font-text);
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.65;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
p {
  margin: 0 0 1rem;
}
:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 4px;
}
.ki {
  white-space: nowrap;
}
.vorrat {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--anthrazit);
  color: var(--gips);
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ---------- Schrift ---------- */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-titel);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(2.1rem, 5.2vw, 4.6rem);
  line-height: 1;
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.1;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font: 500 0.8rem/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terrakotta);
}
/* kleines Farbmuster vor jeder Überschrift */
.kicker::before {
  content: "";
  flex: none;
  width: 1.7rem;
  height: 0.75rem;
  background: currentColor;
  border-radius: 2px 7px 3px 8px;
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.75rem 1.3rem;
  border: 2px solid var(--terrakotta);
  border-radius: 6px;
  background: var(--terrakotta);
  color: var(--gips);
  font: 700 1rem/1.2 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.knopf svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.knopf--rahmen {
  background: transparent;
  color: var(--anthrazit);
  border-color: var(--anthrazit);
}
/* Hover nur bei Geräten mit Maus, sonst bleibt der Zustand nach dem Antippen hängen */
@media (hover: hover) {
  .knopf:hover {
    background: var(--terrakotta-tief);
    border-color: var(--terrakotta-tief);
  }
  .knopf--rahmen:hover {
    background: var(--anthrazit);
    border-color: var(--anthrazit);
    color: var(--gips);
  }
}
.knopf--rahmen[aria-pressed="true"] {
  background: var(--anthrazit);
  border-color: var(--anthrazit);
  color: var(--gips);
}
.knopf--klein {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gips);
  border-bottom: 2px solid var(--anthrazit);
}
.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--kopf);
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.marke svg {
  width: 40px;
  height: 40px;
  flex: none;
}
.marke__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.marke__name {
  font: 400 1.3rem/1 var(--font-titel);
  text-transform: uppercase;
}
.marke__zusatz {
  margin-top: 0.25rem;
  font: 500 0.72rem/1.2 var(--font-mono);
  color: var(--leise);
}
.navi {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navi > ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navi > ul a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.navi > ul a:hover {
  background: var(--anthrazit);
  color: var(--gips);
}
.menue {
  display: none;
}

/* ---------- Start: Wand freistreichen ---------- */
.start {
  padding: clamp(0.8rem, 2.4vw, 1.8rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.start__titel {
  /* einmal über die ganze Breite: 10,6vw */
  font-size: min(10.6vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(0.9rem, 2vw, 1.5rem);
  white-space: nowrap;
}
.start__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  max-width: 1600px;
  margin-inline: auto;
  padding-right: var(--gutter);
}
.wand {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #d8d3ca;
  --bild-x: 50%;
}
.wand__bild,
.wand__vorher,
.wand__roh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wand__bild,
.wand__vorher {
  object-fit: cover;
  object-position: var(--bild-x) 50%;
}
.wand--wartet .wand__bild {
  opacity: 0;
}
.wand__vorher {
  z-index: 1;
}
.wand__vorher[hidden] {
  display: none;
}
.wand__roh {
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.wand.ist-fertig .wand__roh {
  opacity: 0;
}
.wand--malen:not(.ist-fertig) {
  cursor: none;
}
/* Malerkrepp mit Hinweis, nur wenn mit der Maus gemalt werden kann */
.wand__hinweis {
  position: absolute;
  left: clamp(0.8rem, 3%, 1.6rem);
  top: clamp(0.8rem, 4%, 1.6rem);
  z-index: 2;
  margin: 0;
  padding: 0.5rem 1.1rem 0.55rem;
  background: var(--krepp);
  color: var(--anthrazit);
  font: 500 0.85rem/1.2 var(--font-mono);
  transform: rotate(-2.5deg);
  clip-path: polygon(0 10%, 2% 0, 6% 6%, 10% 0, 90% 0, 94% 5%, 98% 0, 100% 12%, 98.5% 50%, 100% 90%, 97% 100%, 93% 95%, 89% 100%, 8% 100%, 4% 94%, 1% 100%, 0 88%, 1.5% 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.wand--malen .wand__hinweis {
  opacity: 1;
}
.wand--malen.hat-gemalt .wand__hinweis {
  opacity: 0;
}
.wand__ki {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  background: var(--gips);
  border-radius: 4px;
  font: 500 0.72rem/1.2 var(--font-mono);
  pointer-events: none;
}
/* Farbrolle, folgt dem Pinsel (Größe und Lage per transform aus script.js) */
.wand__rolle {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 160px;
  pointer-events: none;
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wand__rolle svg {
  display: block;
  width: 100%;
  height: auto;
}
.wand.zeigt-rolle .wand__rolle {
  opacity: 1;
}

.start__seite {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.4rem);
}
.start__satz {
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 1.6rem;
  max-width: 32rem;
}
.start__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Probe-Kasten neben der Wand */
.probe {
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--weiss);
  border: 2px solid var(--anthrazit);
  border-radius: 6px;
}
.probe__titel {
  margin: 0 0 0.5rem;
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--leise);
}
.probe__stand {
  margin: 0 0 0.7rem;
  font: 500 1.05rem/1.1 var(--font-mono);
}
.probe__zahl {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-variant-numeric: tabular-nums;
}
.probe__balken {
  height: 10px;
  margin-bottom: 0.8rem;
  background: var(--karte);
  border-radius: 99px;
  overflow: hidden;
}
.probe__balken span {
  display: block;
  height: 100%;
  background: var(--terrakotta);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s ease;
}
.probe__fertig {
  min-height: 1.5em;
  margin: 0 0 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}
.probe--ohne-zahl .probe__stand,
.probe--ohne-zahl .probe__balken {
  display: none;
}
.probe__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.probe__knoepfe--vergleich {
  display: none;
}

/* ---------- Abschnitte allgemein ---------- */
.abschnitt {
  padding: clamp(4rem, 9vw, 8rem) 0;
}
.kopfzeile {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 1.2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.kopfzeile > p {
  margin: 0;
  max-width: 30rem;
  color: var(--leise);
}

/* ---------- Leistungen ---------- */
.leistungen__raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.8rem, 3vw, 2.6rem) clamp(1rem, 2.4vw, 2rem);
  align-items: start;
}
.leistungen__bild {
  margin: 0;
}
.leistungen__bild img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.leistungen__bild figcaption {
  margin-top: 0.6rem;
  font: 500 0.75rem/1.4 var(--font-mono);
  color: var(--leise);
}
.leistungen__bild--fassade {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}
.leistung--innen {
  grid-column: 9 / 13;
  grid-row: 1;
}
.leistung--fassade {
  grid-column: 9 / 13;
  grid-row: 2;
}
.leistungen__bild--tuer {
  grid-column: 7 / 13;
  grid-row: 3 / 5;
  margin-top: clamp(1rem, 4vw, 3.5rem);
}
.leistung--lack {
  grid-column: 1 / 6;
  grid-row: 3;
}
.leistung--spachtel {
  grid-column: 1 / 6;
  grid-row: 4;
}
.leistung {
  padding-top: 1rem;
  border-top: 3px solid var(--anthrazit);
}
.leistung__nr {
  display: block;
  margin-bottom: 0.5rem;
  font: 500 0.85rem/1 var(--font-mono);
  color: var(--terrakotta);
}
.leistung h3 {
  margin-bottom: 0.7rem;
}
.leistung p {
  margin: 0 0 0.8rem;
}
.leistung__meta {
  font: 500 0.78rem/1.4 var(--font-mono);
  color: var(--leise);
}

/* ---------- Farbberatung (dunkle Bühne, volle Farbe) ---------- */
.beratung {
  --fokus: var(--fs-ocker);
  background: var(--anthrazit);
  color: var(--gips);
}
.beratung .kicker {
  color: var(--fs-ocker);
}
.beratung .kopfzeile > p {
  color: var(--dunkel-leise);
}
.beratung__raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.raum {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.raum__bilder {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  background: #2e2d2a;
}
.raum__bilder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.raum__bilder img.ist-aktiv {
  opacity: 1;
}
.raum__text {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--gips);
}
.raum__code {
  font: 500 0.95rem/1.3 var(--font-mono);
  color: var(--fs-ocker);
}
.karten {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
  padding-top: 0.6rem;
}
.karte {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--karte);
  color: var(--anthrazit);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: rotate(var(--dreh, 0deg));
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.karte:focus-visible {
  outline-offset: 5px;
}
.karte.ist-aktiv {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 0 0 0 3px var(--anthrazit), 0 0 0 6px var(--gips);
}
.karte__flaeche {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--ton);
}
.karte__etikett {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem 0.95rem;
}
.karte__code {
  font: 500 0.78rem/1.2 var(--font-mono);
  color: var(--leise);
}
.karte__name {
  font: 400 clamp(1rem, 1.5vw, 1.2rem)/1.1 var(--font-titel);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.karte__raum {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--leise);
}
.beratung__preis {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.2rem);
  border-top: 2px solid rgba(242, 240, 235, 0.25);
}
.beratung__preis > p:last-child {
  margin: 0;
  max-width: 38rem;
  color: var(--dunkel-leise);
}
.preis {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
}
.preis__zahl {
  font: 400 clamp(2.6rem, 5vw, 4rem)/1 var(--font-titel);
  color: var(--gips);
}
.preis__was {
  font-weight: 700;
}

/* ---------- Ablauf: Farbtupfer ---------- */
.ablauf {
  padding-bottom: clamp(5rem, 11vw, 10rem);
}
.schritte {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.schritt:nth-child(2) {
  margin-top: 4.5rem;
}
.schritt:nth-child(3) {
  margin-top: 1.5rem;
}
.schritt:nth-child(4) {
  margin-top: 6rem;
}
.schritt h3 {
  margin-bottom: 0.7rem;
}
.schritt p {
  margin: 0 0 0.7rem;
}
.schritt__meta {
  font: 500 0.78rem/1.4 var(--font-mono);
  color: var(--terrakotta);
}
.klecks {
  position: relative;
  width: min(100%, 12.5rem);
  aspect-ratio: 200 / 160;
  margin-bottom: 1.3rem;
}
.klecks svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.klecks--gedreht svg {
  transform: scaleX(-1);
}
.klecks__leer {
  color: var(--tint);
}
.klecks__farbe {
  position: absolute;
  inset: 0;
  color: var(--ton);
}
.klecks__nr {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 6% 4% 0;
  font: 400 clamp(3rem, 5vw, 4.4rem)/1 var(--font-titel);
  color: var(--anthrazit);
}
.klecks--gedreht .klecks__nr {
  padding: 0 0 4% 6%;
}
.klecks__farbe .klecks__nr {
  color: var(--auf);
}
/* Nur mit Skript: Klecks wartet leer, bis er ins Bild kommt, dann füllt er sich von links */
.ablauf--animiert .klecks__farbe {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s var(--ease);
}
.ablauf--animiert .schritt.ist-gefuellt .klecks__farbe {
  clip-path: inset(0 0 0 0);
}

/* ---------- Kontakt (volle Farbe) ---------- */
.kontakt {
  --fokus: var(--gips);
  background: var(--terrakotta);
  color: var(--gips);
}
.kontakt .kicker {
  color: var(--gips);
}
.kontakt__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.kontakt__text h2 {
  margin-bottom: 1.4rem;
}
.kontakt__text > p {
  max-width: 34rem;
}
.kontakt__nummer {
  display: inline-block;
  margin: 1.2rem 0 0.5rem;
  font: 400 clamp(2.4rem, 5.6vw, 5.4rem)/1 var(--font-titel);
  letter-spacing: -0.01em;
  color: var(--gips);
  text-decoration: none;
  white-space: nowrap;
}
.kontakt__nummer:hover {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
}
.kontakt__zeiten {
  font: 500 0.85rem/1.4 var(--font-mono);
}
.infos {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
}
.infos div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.3rem 1rem;
  padding-top: 0.8rem;
  border-top: 2px solid rgba(242, 240, 235, 0.4);
}
.infos dt {
  font: 500 0.8rem/1.6 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.infos dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.infos a {
  color: var(--gips);
}
.kartenlink {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--karte);
  color: var(--anthrazit);
  text-decoration: none;
}
.kartenlink svg {
  display: block;
  width: 100%;
  height: auto;
}
.kartenlink__hinweis {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-top: 2px solid var(--anthrazit);
  background: var(--gips);
  font-weight: 700;
}
.kartenlink__hinweis svg {
  width: 18px;
  height: 18px;
}
.kartenlink:hover .kartenlink__hinweis {
  background: var(--anthrazit);
  color: var(--gips);
}
.kontakt__notiz {
  margin-top: 0.8rem;
  font-size: 0.88rem;
}

/* ---------- Fuß ---------- */
.fuss {
  --fokus: var(--fs-ocker);
  background: var(--anthrazit);
  color: var(--gips);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.fuss__innen {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.6rem 3rem;
  align-items: start;
}
.fuss .marke__zusatz {
  color: var(--dunkel-leise);
}
.fuss nav {
  display: grid;
  gap: 0.6rem;
  justify-items: end;
}
.fuss ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fuss ul a {
  font-weight: 600;
  text-decoration: none;
}
.fuss ul a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.fuss ul + ul a {
  font-weight: 450;
  color: var(--dunkel-leise);
}
.fuss .demo {
  grid-column: 1 / -1;
  margin: 0;
  font: 500 0.78rem/1.5 var(--font-mono);
  color: var(--dunkel-leise);
}
.leiste {
  display: none;
}

/* ---------- Rechtstext-Seiten ---------- */
.recht {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}
.recht__innen {
  max-width: 46rem;
}
.recht h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
  margin: 0 0 1.6rem;
}
.recht h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin: 2.4rem 0 0.9rem;
}
.recht p,
.recht li {
  color: var(--leise);
}
.recht ul {
  padding-left: 1.2rem;
}
.platzhalter {
  margin: 0 0 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--weiss);
  border: 2px solid var(--anthrazit);
  border-left: 8px solid var(--terrakotta);
  border-radius: 6px;
  font-weight: 600;
}
.recht .platzhalter {
  color: var(--anthrazit);
}
.platzhalter strong {
  display: block;
  margin-bottom: 0.3rem;
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terrakotta);
}
.kopf__innen > .knopf {
  min-height: 44px;
  padding: 0.5rem 1rem;
}
.zurueck {
  margin-top: 2.4rem;
}

/* ---------- Demo-Hinweis auf den Rechtstext-Seiten ---------- */
.demo-hinweis {
  margin: 0 0 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--anthrazit);
  color: var(--gips);
  border-radius: 6px;
}
.demo-hinweis strong {
  display: block;
  margin-bottom: 0.3rem;
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fs-ocker);
}
.recht .demo-hinweis p {
  margin: 0;
  color: var(--gips);
  overflow-wrap: anywhere;
}
.demo-hinweis a {
  color: var(--gips);
  font-weight: 700;
}
.demo-hinweis a:focus-visible {
  outline-color: var(--fs-ocker);
}
.recht__muster {
  margin-top: 0;
}

/* ---------- Demo-Badge (nd solutions) ---------- */
.nd-demo-badge {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: calc(100vw - 2rem);
  padding: 0.3rem 0.35rem 0.3rem 1rem;
  background: #1d1d1b;
  color: #f2f0eb;
  border-radius: 999px;
  font: 500 0.8125rem/1.2 var(--font-text);
  box-shadow: 0 0 0 1px rgba(242, 240, 235, 0.22), 0 8px 24px -8px rgba(29, 29, 27, 0.55);
}
.nd-demo-badge:has(.nd-demo-badge__check:checked) {
  display: none;
}
.nd-demo-badge__link {
  color: #f2f0eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.35rem 0;
}
.nd-demo-badge a:focus-visible,
.nd-demo-badge__check:focus-visible + .nd-demo-badge__zu {
  outline: 3px solid #c8952f;
  outline-offset: 2px;
  border-radius: 999px;
}
.nd-demo-badge__check {
  position: absolute;
  right: 0.35rem;
  width: 28px;
  height: 28px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.nd-demo-badge__zu {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(242, 240, 235, 0.14);
  cursor: pointer;
}
.nd-demo-badge__zu:hover {
  background: rgba(242, 240, 235, 0.28);
}
.nd-demo-badge__zu::before,
.nd-demo-badge__zu::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: #f2f0eb;
  border-radius: 1px;
  transform: rotate(45deg);
}
.nd-demo-badge__zu::after {
  transform: rotate(-45deg);
}
.nd-demo-badge__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Anpassungen ---------- */
@media (min-width: 861px) {
  /* Kleckse nebeneinander füllen sich leicht versetzt */
  .ablauf--animiert .schritt:nth-child(2) .klecks__farbe { transition-delay: 0.11s; }
  .ablauf--animiert .schritt:nth-child(3) .klecks__farbe { transition-delay: 0.22s; }
  .ablauf--animiert .schritt:nth-child(4) .klecks__farbe { transition-delay: 0.33s; }
}
@media (max-width: 1180px) {
  .navi > ul a {
    padding: 0.5rem 0.5rem;
  }
  .schritte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem clamp(1.5rem, 4vw, 3rem);
  }
  .schritt:nth-child(n) {
    margin-top: 0;
  }
  .schritt:nth-child(2n) {
    margin-top: 3.5rem;
  }
}
@media (max-width: 1060px) {
  .navi > .knopf {
    display: none;
  }
}
@media (max-width: 860px) {
  :root {
    --kopf: 64px;
  }
  .navi > ul {
    display: none;
  }
  .menue {
    display: block;
    position: relative;
  }
  .menue summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.5rem 1rem;
    border: 2px solid var(--anthrazit);
    border-radius: 6px;
    background: var(--gips);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }
  .menue summary::-webkit-details-marker {
    display: none;
  }
  .menue summary .striche {
    width: 18px;
    height: 12px;
    background: linear-gradient(var(--anthrazit) 0 2px, transparent 2px 5px, var(--anthrazit) 5px 7px, transparent 7px 10px, var(--anthrazit) 10px 12px);
  }
  .menue[open] summary {
    background: var(--anthrazit);
    color: var(--gips);
  }
  .menue[open] summary .striche {
    background: linear-gradient(var(--gips) 0 2px, transparent 2px 5px, var(--gips) 5px 7px, transparent 7px 10px, var(--gips) 10px 12px);
  }
  .menue ul {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 60;
    min-width: 230px;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: var(--gips);
    border: 2px solid var(--anthrazit);
    border-radius: 6px;
  }
  .menue a {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
  }
  .menue a:hover {
    background: var(--anthrazit);
    color: var(--gips);
  }

  .start__raster {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 0;
    gap: 1.2rem;
  }
  .wand {
    aspect-ratio: 4 / 3;
    --bild-x: 40%;
  }
  .start__seite {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
    gap: 1.6rem;
  }
  .probe {
    order: -1;
  }
  .kopfzeile {
    grid-template-columns: minmax(0, 1fr);
  }
  .leistungen__raster {
    grid-template-columns: minmax(0, 1fr);
  }
  .leistungen__raster > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .leistungen__bild--tuer {
    margin-top: 0.6rem;
  }
  .beratung__raster,
  .beratung__preis {
    grid-template-columns: minmax(0, 1fr);
  }
  .raum,
  .karten {
    grid-column: 1;
  }
  .karten {
    grid-row: 2;
  }
  .kontakt__raster {
    grid-template-columns: minmax(0, 1fr);
  }
  .fuss__innen {
    grid-template-columns: minmax(0, 1fr);
  }
  .fuss nav {
    justify-items: start;
  }
  .fuss ul {
    justify-content: flex-start;
  }
  .leiste {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--gips);
    border-top: 2px solid var(--anthrazit);
  }
  body:has(.leiste) .fuss {
    padding-bottom: calc(3rem + 76px);
  }
  body:has(.leiste) .nd-demo-badge {
    bottom: 5.4rem;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  .marke__name {
    font-size: 1.15rem;
  }
  .marke svg {
    width: 36px;
    height: 36px;
  }
  .start__knoepfe .knopf {
    width: 100%;
  }
  .probe {
    padding: 0.85rem 1rem 1rem;
  }
  .probe__titel {
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
  }
  .probe__stand {
    margin-bottom: 0.5rem;
  }
  .probe__zahl {
    font-size: 1.9rem;
  }
  .probe__balken {
    margin-bottom: 0.6rem;
  }
  .probe__fertig {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
  }
  .probe__knoepfe .knopf {
    flex: 1 1 auto;
  }
  .karte__flaeche {
    aspect-ratio: 2 / 1;
  }
  .karte__etikett {
    padding: 0.6rem 0.75rem 0.75rem;
  }
  .schritte {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }
  .schritt:nth-child(n) {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    column-gap: 1.1rem;
    margin-top: 0;
  }
  .schritt .klecks {
    grid-row: 1 / span 3;
    margin-bottom: 0;
  }
  .klecks__nr {
    font-size: 2.9rem;
  }
  .infos div {
    grid-template-columns: minmax(0, 1fr);
  }
  .wand__hinweis {
    font-size: 0.78rem;
  }
}

/* Ruhige Fassung: keine Bewegung, Vorher und Nachher als Knöpfe */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .probe__stand,
  .probe__balken,
  .probe__fertig,
  .probe__knoepfe--malen {
    display: none;
  }
  .probe__knoepfe--vergleich {
    display: flex;
  }
  .probe__titel {
    margin-bottom: 0.8rem;
  }
  .ablauf--animiert .klecks__farbe {
    clip-path: none;
  }
  .karte,
  .karte.ist-aktiv {
    transform: none;
  }
}

@media print {
  .nd-demo-badge,
  .leiste,
  .probe {
    display: none;
  }
}
