/* JW Maurer- und Putzarbeiten, One-Pager
   Ein Akzent (Ziegelrot aus dem Logo), kühle Betongrau-Neutrale, Radius 6px überall. */

:root {
  --hintergrund: #f2f3f2;
  --flaeche: #ffffff;
  --flaeche-2: #e6e8e7;
  --text: #1c1f22;
  --text-2: #4a5056;
  --linie: #d3d6d5;
  --akzent: #b42318;
  --akzent-dunkel: #8f1c13;
  --akzent-text: #ffffff;
  --akzent-zart: #f6e3e1;
  --fokus: #b42318;
  --radius: 6px;
  --breite: 1200px;
  --schrift: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --schatten: 0 10px 30px rgb(28 31 34 / 0.10);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: #141618;
    --flaeche: #1d2023;
    --flaeche-2: #262a2e;
    --text: #eceded;
    --text-2: #b4b9be;
    --linie: #33383d;
    --akzent: #e0533f;
    --akzent-dunkel: #c8432f;
    --akzent-text: #160807;
    --akzent-zart: #3a1f1b;
    --fokus: #ff8a78;
    --schatten: 0 10px 30px rgb(0 0 0 / 0.35);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 30;
  background: var(--flaeche); padding: 0.5rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* Entwurfsmarkierungen: vor dem Livegang entfernen */
.entwurf-hinweis {
  margin: 0; padding: 0.4rem 1rem; text-align: center; font-size: 0.85rem;
  background: #fff4c2; color: #4a3b00;
}
mark.offen {
  background: #fff1a8; color: #2b2400;
  box-shadow: 0 0 0 2px #fff1a8; border-radius: 2px;
  text-decoration: underline dashed #b38f00; text-underline-offset: 3px;
}

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem; border-radius: var(--radius);
  font: inherit; font-weight: 650; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.knopf:active { transform: translateY(1px); }
.knopf-primaer { background: var(--akzent); color: var(--akzent-text); }
.knopf-primaer:hover { background: var(--akzent-dunkel); }
.knopf-zweit { background: transparent; color: var(--text); border-color: var(--text); }
.knopf-zweit:hover { background: var(--text); color: var(--hintergrund); }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--flaeche) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; padding: 0 1rem;
  height: 68px; display: flex; align-items: center; gap: 2rem;
}
.marke img { height: 48px; width: auto; }
@media (prefers-color-scheme: dark) {
  .marke { background: #fff; border-radius: var(--radius); padding: 2px 6px; }
}
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 550; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.kopf-cta { min-height: 42px; }

/* Held */
.held {
  max-width: var(--breite); margin: 0 auto; padding: 3.5rem 1rem 3rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center;
  min-height: min(calc(100dvh - 68px - 2rem - 120px), 760px);
}
.held h1 { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.025em; max-width: 19ch; }
.held-unterzeile { font-size: 1.2rem; color: var(--text-2); max-width: 44ch; margin-bottom: 1.75rem; }
.held-knoepfe { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.held-bild { margin: 0; }
.held-bild img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 60% center;
  border-radius: var(--radius); box-shadow: var(--schatten);
}

/* Vertrauensleiste */
.vertrauen { background: var(--flaeche); border-block: 1px solid var(--linie); }
.vertrauen-innen {
  max-width: var(--breite); margin: 0 auto; padding: 1.4rem 1rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.vertrauen strong { display: block; font-size: 1.05rem; }
.vertrauen span { display: block; color: var(--text-2); font-size: 0.92rem; line-height: 1.4; }

/* Abschnitte */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: 5rem 1rem; }
.abschnitt-einleitung { color: var(--text-2); max-width: 60ch; font-size: 1.1rem; margin-bottom: 2.25rem; }

/* Leistungen: 5 Kacheln, oben 4+2, unten 2+2+2 */
.leistungen { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.kachel {
  grid-column: span 2; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.6rem;
}
.kachel p { color: var(--text-2); margin-bottom: 0; }
.kachel-bild { grid-column: span 4; padding: 0; overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.kachel-bild img { width: 100%; height: 100%; min-height: 220px; max-height: 300px; object-fit: cover; }
.kachel-bild .kachel-text { padding: 1.4rem 1.6rem 1.6rem; }
.kachel-akzent { background: var(--akzent-zart); border-color: transparent; }
.kachel ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--text-2); }
.kachel li + li { margin-top: 0.3rem; }

/* Vorher / nachher */
.vorher-nachher {
  background: var(--flaeche-2);
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center;
}
.vorher-nachher figure { margin: 0; height: 100%; }
.vorher-nachher img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; }
.vn-text { padding: 3rem clamp(1rem, 4vw, 4rem); max-width: 34rem; }
.vn-text p { color: var(--text-2); }
.hinweis-klein { font-size: 0.92rem; }

/* Ablauf */
.ablauf {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  counter-reset: schritt;
}
.ablauf li { counter-increment: schritt; border-top: 3px solid var(--akzent); padding-top: 1.1rem; }
.ablauf li::before {
  content: counter(schritt); display: block;
  font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--akzent); margin-bottom: 0.6rem;
}
.ablauf p { color: var(--text-2); margin: 0; }

/* Über mich */
.ueber {
  max-width: var(--breite); margin: 0 auto; padding: 1rem 1rem 5rem;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center;
}
.bild-platzhalter {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--flaeche-2) 0 14px, var(--flaeche) 14px 28px);
  border: 2px dashed var(--linie);
  display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--text-2);
}
.ueber-text p { color: var(--text-2); max-width: 58ch; }
.unterschrift { font-weight: 700; color: var(--text) !important; font-size: 1.15rem; }

/* Einsatzgebiet */
.gebiet { padding-top: 0; }
.orte {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.orte li {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 0.45rem 0.9rem; font-weight: 550;
}
.orte li:first-child { background: var(--text); color: var(--hintergrund); border-color: var(--text); }

/* FAQ */
.fragen { padding-top: 2rem; }
.faq { max-width: 820px; display: grid; gap: 0.6rem; }
.faq details {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--akzent);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--text-2); }

/* Kontakt */
.kontakt { background: var(--flaeche); border-top: 1px solid var(--linie); }
.kontakt-innen {
  max-width: var(--breite); margin: 0 auto; padding: 5rem 1rem;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem;
}
.kontakt-direkt > p { color: var(--text-2); max-width: 42ch; }
.direkt-liste { margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.direkt-liste dt { font-size: 0.85rem; color: var(--text-2); }
.direkt-liste dd { margin: 0; font-size: 1.2rem; font-weight: 650; }
.direkt-liste a { text-decoration: none; }
.direkt-liste a:hover { text-decoration: underline; }

.formular { display: grid; gap: 1.1rem; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feld { display: grid; gap: 0.4rem; }
.feld label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--text-2); }
.feld input[type="text"], .feld input[type="tel"], .feld input[type="email"],
.feld select, .feld textarea {
  font: inherit; color: var(--text); background: var(--hintergrund);
  border: 1px solid #9aa1a7; border-radius: var(--radius); padding: 0.7rem 0.8rem; width: 100%;
}
.feld input[type="file"] { font: inherit; font-size: 0.95rem; color: var(--text-2); }
.feld textarea { resize: vertical; }
.feld [aria-invalid="true"] { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.hilfe { margin: 0; font-size: 0.88rem; color: var(--text-2); }
.fehler { margin: 0; font-size: 0.88rem; color: var(--akzent); font-weight: 600; min-height: 0; }
.fehler:empty { display: none; }
.feld-check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.feld-check input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--akzent); }
.feld-check label { font-weight: 400; color: var(--text-2); font-size: 0.92rem; }
.formular .knopf { justify-self: start; }
.formular-status { margin: 0; font-weight: 600; }
.formular-status.ok { color: #1f7a3a; }
.formular-status.fehler-status { color: var(--akzent); }

/* Fuß */
.fuss { background: var(--text); color: var(--hintergrund); }
.fuss-innen {
  max-width: var(--breite); margin: 0 auto; padding: 2.5rem 1rem 3rem;
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; font-size: 0.95rem;
}
.fuss p { margin: 0.4rem 0 0; opacity: 0.85; }
.fuss-nav { display: flex; gap: 1.25rem; align-items: start; }

/* Handy-Leiste */
.handy-leiste { display: none; }

/* Sanftes Einblenden beim Scrollen */
@media (prefers-reduced-motion: no-preference) {
  .einblenden { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .einblenden.sichtbar { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  .nav { display: none; }
  .kopf-cta { margin-left: auto; }
  .held { grid-template-columns: 1fr; gap: 2rem; min-height: 0; padding-top: 2.5rem; }
  .held h1 { max-width: 18ch; }
  .vertrauen-innen { grid-template-columns: repeat(2, 1fr); }
  .ablauf { grid-template-columns: repeat(2, 1fr); }
  .vorher-nachher { grid-template-columns: 1fr; }
  .ueber, .kontakt-innen { grid-template-columns: 1fr; gap: 2.5rem; }
  .ueber-bild { max-width: 420px; }
  .fuss-innen { grid-template-columns: 1fr 1fr; }
}

/* Handy */
@media (max-width: 767px) {
  body { font-size: 1rem; padding-bottom: 64px; }
  .kopf-cta { display: none; }
  .marke img { height: 42px; }
  .held { padding: 1.75rem 1rem 2rem; }
  .held-unterzeile { font-size: 1.08rem; }
  .held-knoepfe .knopf { flex: 1 1 100%; }
  .abschnitt { padding: 3.5rem 1rem; }
  .leistungen { grid-template-columns: 1fr; }
  .kachel, .kachel-bild { grid-column: auto; }
  .ablauf { grid-template-columns: 1fr; gap: 1.5rem; }
  .feld-reihe { grid-template-columns: 1fr; }
  .formular .knopf { justify-self: stretch; }
  .kontakt-innen { padding: 3.5rem 1rem; }
  .fuss-innen { grid-template-columns: 1fr; }
  .handy-leiste {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 20;
    background: var(--flaeche); border-top: 1px solid var(--linie);
  }
  .handy-leiste a {
    min-height: 56px; display: grid; place-items: center; font-weight: 700; text-decoration: none;
  }
  .handy-leiste a:first-child { background: var(--akzent); color: var(--akzent-text); }
}

.ueber-foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--schatten); }

/* ---------- Unterseiten ---------- */
.mehr {
  display: inline-block; margin-top: 1rem; font-weight: 650; color: var(--akzent); text-decoration: none;
}
.mehr::after { content: " →"; }
.mehr:hover { text-decoration: underline; }

.brotkrumen { font-size: 0.9rem; color: var(--text-2); margin-bottom: 1rem; }
.brotkrumen a { color: var(--text-2); }
.brotkrumen a:hover { color: var(--text); }

.unter-held {
  max-width: var(--breite); margin: 0 auto; padding: 3rem 1rem 3.5rem;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center;
}
.unter-held h1 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -0.025em; max-width: 20ch; }
.zeichen-karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--akzent);
  border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--schatten);
}
.zeichen-karte h2 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.zeichen-karte ul { margin: 0; padding-left: 1.1rem; color: var(--text-2); }
.zeichen-karte li + li { margin-top: 0.45rem; }

.ursachen { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
.ursachen article { border-top: 3px solid var(--linie); padding-top: 1rem; }
.ursachen article:first-child { border-top-color: var(--akzent); }
.ursachen p { color: var(--text-2); margin: 0; }

.vergleich-abschnitt { padding-top: 0; }
.vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }

.sanierputz { padding-top: 0; }
.sanierputz p { max-width: 68ch; color: var(--text-2); }

.referenz-platz { padding-top: 0; padding-bottom: 2rem; }

.auch-interessant { padding-top: 1rem; }
.auch-interessant ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.auch-interessant a {
  display: inline-block; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 0.6rem 1rem; font-weight: 600; text-decoration: none;
}
.auch-interessant a:hover { border-color: var(--akzent); color: var(--akzent); }

.fuss-nav { flex-wrap: wrap; }

@media (max-width: 1023px) {
  .unter-held { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .ursachen { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 767px) {
  .vergleich { grid-template-columns: 1fr; }
}
.vergleich .kachel { grid-column: auto; }

/* Spam-Falle im Formular: für Menschen unsichtbar */
.feld-falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
