/* Stylesheet, Teil 2 von 3 (nach stil.css): Ablauf, Referenzen, Einsatzgebiet, FAQ, Handlungsband, Rechtstexte, Formular, Siegel, Fuß, Anrufleiste, Cookie-Hinweis. */

/* ================================================================== Ablauf
   Hier IST die Nummerierung Information: die Schritte laufen wirklich in
   dieser Reihenfolge ab. Anders als bei den Leistungen, die gleichrangig
   nebeneinander stehen und deshalb keine Nummern bekommen. */
.ablauf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: schritt;
}
.schritt {
  counter-increment: schritt;
  padding-right: 1.6rem;
}
.schritt + .schritt { border-left: 1px solid var(--linie-dunkel); padding-left: 1.6rem; }
.schritt-nr {
  display: block;
  font-family: var(--schrift-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--akzent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}
.schritt-nr::before { content: counter(schritt, decimal-leading-zero); }
.schritt h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.schritt p { font-size: .93rem; }

/* ============================================================== Referenzen */
.referenzen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.referenz img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 1rem;
}
.referenz h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.referenz p { font-size: .9rem; color: var(--text-leise); }

/* =========================================================== Einsatzgebiet */
.gebiet-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.ortsliste {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ortsliste li {
  font-size: .92rem;
  font-weight: 500;
  padding: .5rem .95rem;
  border: 1px solid var(--linie);
  border-radius: 2px;
  background: var(--flaeche);
}
.gebiet-hinweis { margin-top: 1.5rem; color: var(--text-leise); font-size: .95rem; }

/* ===================================================================== FAQ
   Echtes <details>: funktioniert ohne JavaScript, ist tastaturbedienbar und
   Google liest die Struktur als Frage-Antwort-Paare. */
.faq { border-top: 1px solid var(--linie); max-width: 46rem; }
.faq-eintrag { border-bottom: 1px solid var(--linie); }

.faq-eintrag summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--schrift-display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--primaer);
  letter-spacing: -0.015em;
}
.faq-eintrag summary::-webkit-details-marker { display: none; }
.faq-eintrag summary:hover { color: var(--akzent-text); }

.faq-zeichen {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  margin-top: .22rem;
}
.faq-zeichen::before,
.faq-zeichen::after {
  content: "";
  position: absolute;
  background: var(--akzent);
  transition: transform .2s ease;
}
.faq-zeichen::before { left: 0; top: 10px; width: 22px; height: 2px; }
.faq-zeichen::after  { left: 10px; top: 0; width: 2px; height: 22px; }
.faq-eintrag[open] .faq-zeichen::after { transform: scaleY(0); }

.faq-antwort {
  padding-bottom: 1.5rem;
  color: var(--text-leise);
  font-size: 1rem;
  max-width: 42em;
}

/* =========================================================== Handlungsband */
.handlungsband {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}
.handlungsband h2 { margin-bottom: .9rem; }
.handlungsband-knoepfe { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ============================================================== Rechtstexte */
.rechtstext { max-width: 44rem; }
.rechtstext h1 { margin-bottom: 2rem; }
.rechtstext h2 {
  font-size: 1.32rem;
  margin-top: 2.6rem;
  margin-bottom: .8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--linie);
}
.rechtstext p,
.rechtstext li { color: var(--text-leise); font-size: .99rem; }
.rechtstext p + p { margin-top: 1rem; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: .45rem; }

/* ================================================================ Formular */
.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.kontaktdaten { list-style: none; margin: 0; padding: 0; }
.kontaktdaten li { padding-block: 1.05rem; border-bottom: 1px solid var(--linie); }
.kontaktdaten li:first-child { border-top: 1px solid var(--linie); }
.kd-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: .3rem;
}
.kd-wert {
  font-family: var(--schrift-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--primaer);
  text-decoration: none;
  letter-spacing: -0.015em;
}
a.kd-wert:hover { color: var(--akzent-text); }
.kd-wert-klein {
  font-family: var(--schrift-text);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0;
}

.formular {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.feld { margin-bottom: 1.15rem; }
.feld > label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: .42rem;
}

.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld select,
.feld textarea {
  width: 100%;
  padding: .82rem .95rem;
  font-family: var(--schrift-text);
  font-size: 1rem;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--linie-feld);
  border-radius: 3px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.feld textarea { resize: vertical; min-height: 8rem; }

.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--akzent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 20%, transparent);
}

.feld-paar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 1.1rem;
}

.feld-pruefung > label {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-leise);
  line-height: 1.55;
}
.feld-pruefung input {
  flex: none;
  margin-top: .28rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--akzent);
}

.pflicht { color: var(--akzent-text); }
.feld-hinweis { font-size: .82rem; color: var(--text-leise); margin-top: 1rem; }

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld.
   Bewusst NICHT display:none – manche Bots überspringen versteckte Felder. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular-meldung {
  margin-top: 1.2rem;
  padding: 1rem 1.15rem;
  border-radius: 3px;
  font-size: .95rem;
  border-left: 3px solid;
}
.formular-meldung[hidden] { display: none; }
.meldung-erfolg {
  background: color-mix(in srgb, var(--gut) 8%, var(--flaeche));
  border-color: var(--gut);
  color: color-mix(in srgb, var(--gut) 78%, var(--dunkel));
}
.meldung-fehler {
  background: color-mix(in srgb, var(--fehler) 8%, var(--flaeche));
  border-color: var(--fehler);
  color: var(--fehler);
}

/* ================================================================== Siegel */
.siegel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.siegel li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .95rem;
  line-height: 1.5;
}
.siegel li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: .22rem;
  border-radius: 50%;
  background: var(--gut);
  /* Häkchen als Maske statt Emoji – passt zur Schrift und färbt mit */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z" fill="black"/></svg>') center / 116% no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z" fill="black"/></svg>') center / 116% no-repeat;
}
.auf-dunkel .siegel li::before { background: color-mix(in srgb, var(--gut) 50%, #ffffff); }

/* ============================================================ Zwei Spalten */
.zwei-spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ===================================================================== Fuß */
.fuss {
  background: var(--dunkel);
  color: var(--text-auf-dunkel-leise);
  padding-block: var(--raum-l) var(--raum-m);
  font-size: .93rem;
}
.fuss a { color: var(--text-auf-dunkel-leise); text-decoration: none; }
.fuss a:hover { color: #fff; }

.fuss-raster {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.2rem;
}
.fuss-marke {
  font-family: var(--schrift-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: .5rem;
}
.fuss-titel {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-auf-dunkel);
  margin-bottom: .9rem;
}
.fuss-liste { list-style: none; margin: 0; padding: 0; }
.fuss-liste li { margin-bottom: .55rem; }

.fuss-abschluss {
  margin-top: var(--raum-l);
  padding-top: 1.4rem;
  border-top: 1px solid var(--linie-dunkel);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .82rem;
  color: var(--text-auf-dunkel-leise);
}

/* ====================================================== Anrufleiste (Handy)
   Für einen Handwerksbetrieb das wichtigste Element auf dem Handy: Wer auf
   der Baustelle steht, ruft an – er tippt kein Formular aus. Deshalb dauerhaft
   sichtbar statt im Menü versteckt. */
.anrufleiste { display: none; }

/* =========================================================== Cookie-Hinweis */
.cookie-hinweis {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  max-width: 33rem;
  margin-inline: auto;
  background: var(--flaeche);
  border: 1px solid var(--linie-stark);
  border-radius: 4px;
  box-shadow: 0 16px 44px color-mix(in srgb, var(--dunkel) 22%, transparent);
  padding: 1.15rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.cookie-hinweis[hidden] { display: none; }
.cookie-text { flex: 1 1 15rem; font-size: .88rem; line-height: 1.55; color: var(--text-leise); }
