/* Bauwelt GmbH — Stil
 *
 * Farben (aus dem bisherigen Auftritt abgeleitet, Logo-Gelb #FDB900):
 *   --gelb      Signalgelb: Handlungen, Massband
 *   --anthrazit Kopf, Einstieg, Fuss
 *   --beton     Flächen zwischen Abschnitten
 *   --kalk      Seitengrund
 *   --graphit   Fliesstext
 *   --schiefer  Nebentext
 * Schrift: Archivo (variabel, SIL OFL), selbst ausgeliefert – keine
 * Anfrage an Google. Überschriften schmal (font-stretch 75 %) und schwer,
 * Fliesstext normal breit.
 * Erkennungszeichen: das Massband (.massband) mit den vier Stationen eines
 * Gebäudes. Alles andere bleibt ruhig.
 */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-variabel-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --gelb: #fdb900;
  --gelb-dunkel: #c98f00;
  --anthrazit: #171a1e;
  --anthrazit-2: #23272d;
  --beton: #e6e7e3;
  --kalk: #fafaf8;
  --graphit: #2b2f35;
  --schiefer: #5d636b;
  --linie: #d4d6d1;
  --weiss: #ffffff;
  --breite: 1160px;
  --rand: 16px;
  --radius: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--kalk);
  color: var(--graphit);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 3px;
}

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

@media (min-width: 720px) {
  :root {
    --rand: 32px;
  }
}

/* Überschriften */
h1,
h2,
h3,
.anzeige {
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--anthrazit);
  margin: 0;
}

h1 {
  font-size: clamp(38px, 7vw, 76px);
}

/* Lange Wörter wie „Bauzwischenreinigung“ passen bei 320 px nicht in eine
   Zeile (gemessen: 336 px Seitenbreite). Trennung nach de-CH. */
h1,
h2 {
  hyphens: auto;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: 22px;
  font-stretch: 85%;
  font-weight: 700;
  line-height: 1.2;
}

.etikett {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--schiefer);
}

/* Sprungmarke */
.sprungmarke {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--gelb);
  color: var(--anthrazit);
  font-weight: 700;
  border-radius: var(--radius);
}

.sprungmarke:focus {
  top: 16px;
}

/* Entwurf (nur im Entwurfs-Build vorhanden) */
.entwurf-band {
  background: #b00020;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}

.offen {
  border: 2px dashed #b00020;
  background: #fff1f2;
  color: #7a0016;
  padding: 10px 14px;
  margin: 16px 0;
  font-size: 15px;
  border-radius: var(--radius);
}

.offen::before {
  content: "Offen – vom Kunden bestätigen: ";
  font-weight: 700;
}

/* Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--anthrazit);
  color: var(--weiss);
  border-bottom: 3px solid var(--gelb);
}

.kopf .rahmen {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.marke {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.marke img {
  display: block;
  height: 40px;
  width: auto;
}

.fuss .marke img {
  height: 48px;
  margin-bottom: 8px;
}

@media (max-width: 420px) {
  .kopf .marke img {
    height: 34px;
  }
}

.hauptnav {
  margin-left: auto;
}

.hauptnav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hauptnav a {
  display: block;
  padding: 8px 10px;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.hauptnav a:hover,
.hauptnav a[aria-current="page"] {
  background: var(--anthrazit-2);
  color: var(--gelb);
}

.kopf-anruf {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--gelb);
  color: var(--anthrazit);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Menü am Handy: <details> statt JavaScript */
.menue {
  display: none;
  margin-left: auto;
}

.menue summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid #3a3f46;
  border-radius: var(--radius);
  font-weight: 600;
}

.menue summary::-webkit-details-marker {
  display: none;
}

/* Chrome legt den Inhalt eines geschlossenen <details> trotzdem aus; die
   Links ragten bei 320 px rechts hinaus (Seite 328 statt 316 px, gemessen). */
.menue:not([open]) ul {
  display: none;
}

.menue[open] ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 8px var(--rand) 16px;
  list-style: none;
  background: var(--anthrazit);
  border-bottom: 3px solid var(--gelb);
}

.menue[open] a {
  display: block;
  padding: 12px 0;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #2d3238;
}

/* Sechs Menüpunkte plus Telefon passen erst ab rund 1120 px in eine Zeile
   (gemessen 10.11.2026: bei 1000 px brachen zwei Punkte um). */
@media (max-width: 1120px) {
  .hauptnav,
  .kopf .kopf-anruf {
    display: none;
  }

  .menue {
    display: block;
  }
}

/* Einstieg */
.einstieg {
  background: var(--anthrazit);
  color: #d9dbde;
  padding: 56px 0 0;
}

.einstieg h1 {
  color: var(--weiss);
  max-width: 18ch;
}

.einstieg h1 em {
  font-style: normal;
  color: var(--gelb);
}

.einstieg .lead {
  max-width: 40em;
  margin: 20px 0 28px;
  font-size: 19px;
  color: #c9ccd0;
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 17px;
  border: 2px solid transparent;
  cursor: pointer;
}

.knopf-gelb {
  background: var(--gelb);
  color: var(--anthrazit);
}

.knopf-gelb:hover {
  background: #ffc933;
}

.knopf-hell {
  border-color: #4a5058;
  color: var(--weiss);
}

.knopf-hell:hover {
  border-color: var(--gelb);
}

.knopf-dunkel {
  border-color: var(--anthrazit);
  color: var(--anthrazit);
}

/* ── Massband: das Erkennungszeichen ──────────────────────
   Vier Stationen eines Gebäudes. Das gelbe Band trägt
   Zentimeter-Striche; die aktive Station ist dunkel hinterlegt. */
.massband {
  position: relative;
  margin-top: 48px;
}

.massband ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: var(--gelb);
  background-image:
    repeating-linear-gradient(to right, rgba(23, 26, 30, 0.55) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(to right, rgba(23, 26, 30, 0.85) 0 2px, transparent 2px 50px);
  background-size: 100% 9px, 100% 16px;
  background-repeat: no-repeat;
  background-position: top left, top left;
  color: var(--anthrazit);
}

.massband li {
  position: relative;
  border-left: 2px solid rgba(23, 26, 30, 0.85);
}

.massband li:first-child {
  border-left: 0;
}

.massband a {
  display: block;
  height: 100%;
  padding: 26px 16px 18px;
  text-decoration: none;
}

.massband .station {
  display: block;
  font-stretch: 75%;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
}

.massband .station small {
  font-size: 13px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.06em;
  margin-right: 6px;
  vertical-align: 3px;
}

.massband .was {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.massband a:hover .station {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.massband li.aktiv {
  background: var(--anthrazit);
  color: var(--gelb);
}

.massband li.aktiv .was {
  color: #e8e9eb;
}

@media (max-width: 720px) {
  .massband ol {
    grid-template-columns: 1fr 1fr;
    background-size: 100% 9px, 100% 16px;
  }

  .massband li:nth-child(3) {
    border-left: 0;
  }

  .massband li:nth-child(n + 3) {
    border-top: 2px solid rgba(23, 26, 30, 0.85);
  }
}

/* Massband im hellen Seitenkopf der Unterseiten */
.seitenkopf .massband {
  margin-top: 32px;
}

/* Abschnitte */
.abschnitt {
  padding: 64px 0;
}

.abschnitt-beton {
  background: var(--beton);
}

.abschnitt-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 28px;
}

.abschnitt-kopf p {
  max-width: 34em;
  margin: 0;
  color: var(--schiefer);
}

/* Karten der Reinigung (gross) */
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.karte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-top: 6px solid var(--gelb);
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 190px;
}

.karte h3 {
  font-size: 26px;
  font-stretch: 75%;
  font-weight: 800;
}

.karte p {
  margin: 0;
  color: var(--schiefer);
}

.karte .weiter {
  margin-top: auto;
  font-weight: 700;
  color: var(--anthrazit);
}

.karte:hover {
  border-color: var(--anthrazit);
}

/* Liste der Bauleistungen (kompakt) */
.bauliste {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--anthrazit);
}

.bauliste a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--linie);
  text-decoration: none;
}

.bauliste strong {
  font-stretch: 75%;
  font-size: 24px;
  font-weight: 800;
  color: var(--anthrazit);
}

.bauliste span {
  color: var(--schiefer);
  grid-column: 1;
}

.bauliste a::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 22px;
}

.bauliste a:hover strong {
  text-decoration: underline;
}

/* Zwei Spalten: Text und Faktenkarte */
.zweispaltig {
  display: grid;
  gap: 40px;
}

/* Ohne min-width: 0 dehnt die breite Tabelle (min-width 520 px) die
   Rasterspalte und damit die ganze Seite am Handy auf 538 px (gemessen). */
.zweispaltig > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .zweispaltig {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

.fliesstext {
  max-width: 44em;
}

.fliesstext h2 {
  margin: 48px 0 16px;
}

.fliesstext h2:first-child {
  margin-top: 0;
}

.fliesstext p,
.fliesstext ul {
  margin: 0 0 14px;
}

.fliesstext ul {
  padding-left: 0;
  list-style: none;
}

.fliesstext li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--linie);
}

.fliesstext li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 6px;
  background: var(--gelb);
}

.mehr {
  font-weight: 700;
}

/* Seitenkopf der Unterseiten */
.seitenkopf {
  background: var(--anthrazit);
  color: #c9ccd0;
  padding: 28px 0 0;
}

.seitenkopf h1 {
  color: var(--weiss);
  font-size: clamp(36px, 6vw, 64px);
  max-width: 18ch;
}

.seitenkopf .lead {
  max-width: 42em;
  margin: 18px 0 0;
  font-size: 19px;
}

.brotkrumen ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.brotkrumen li + li::before {
  content: "/";
  margin-right: 6px;
  color: #6b7178;
}

.brotkrumen a {
  color: #c9ccd0;
}

/* Faktenkarte */
.fakten {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-left: 6px solid var(--gelb);
  border-radius: var(--radius);
  padding: 22px;
}

.fakten h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.fakten dl {
  margin: 0;
}

.fakten dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--schiefer);
  margin-top: 12px;
}

.fakten dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.fakten .knopf {
  width: 100%;
  margin-top: 20px;
}

@media (min-width: 900px) {
  .fakten {
    position: sticky;
    top: 96px;
  }
}

/* FAQ — Abstand am Block, weil die h2 hier :first-child ist und
   ".fliesstext h2:first-child" ihren oberen Rand sonst auf 0 setzt. */
.faq {
  margin-top: 56px;
}

.faq h2 {
  margin-bottom: 20px;
}

.faq details {
  border-top: 1px solid var(--linie);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--linie);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  display: inline;
  font-size: 21px;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 28px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .antwort {
  padding: 0 0 18px;
  max-width: 44em;
}

.faq .antwort p {
  margin: 0;
}

.stand {
  margin-top: 16px;
  font-size: 14px;
  color: var(--schiefer);
}

/* Handlungsband */
.handlung {
  background: var(--gelb);
  color: var(--anthrazit);
  padding: 48px 0;
}

.handlung .rahmen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.handlung h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.handlung p {
  margin: 8px 0 0;
  font-weight: 500;
}

.handlung .knopf-dunkel:hover {
  background: var(--anthrazit);
  color: var(--gelb);
}

.handlung .knopf-schwarz {
  background: var(--anthrazit);
  color: var(--weiss);
}

/* Kontakt */
.kontaktdaten dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
}

.kontaktdaten dt {
  color: var(--schiefer);
}

.kontaktdaten dd {
  margin: 0;
  font-weight: 600;
}

.formular {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.formular label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.formular input,
.formular select,
.formular textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #b9bcb6;
  border-radius: var(--radius);
  background: var(--weiss);
  color: var(--graphit);
}

.formular textarea {
  min-height: 140px;
  resize: vertical;
}

.formular .hinweis {
  font-size: 14px;
  color: var(--schiefer);
  margin: 0;
}

/* Rechtstexte */
.rechtstext h2 {
  font-size: 26px;
  margin: 36px 0 10px;
}

.rechtstext p {
  max-width: 44em;
}

/* Fuss */
.fuss {
  background: var(--anthrazit);
  color: #b8bcc1;
  padding: 48px 0 32px;
  font-size: 15px;
}

.fuss .rahmen {
  display: grid;
  gap: 32px;
}

@media (min-width: 820px) {
  .fuss .rahmen {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.fuss .marke {
  color: var(--weiss);
}

.fuss h2 {
  font-size: 15px;
  font-stretch: 100%;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--weiss);
  margin-bottom: 12px;
}

.fuss ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss li {
  padding: 3px 0;
}

.fuss a {
  text-decoration: none;
}

.fuss a:hover {
  color: var(--gelb);
  text-decoration: underline;
}

.fuss-unten {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid #2f343a;
  font-size: 14px;
}

/* Einwilligung Google-Anzeigen (nur aktiv mit ads.id in daten.mjs) */
.einwilligung {
  position: fixed;
  left: var(--rand);
  right: var(--rand);
  bottom: var(--rand);
  z-index: 50;
  max-width: 560px;
  margin-left: auto;
  padding: 16px 18px;
  background: var(--anthrazit);
  color: var(--weiss);
  border-top: 3px solid var(--gelb);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  font-size: 15px;
}

.einwilligung p {
  margin: 0 0 12px;
}

.einwilligung a {
  color: var(--gelb);
}

.einwilligung div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.einwilligung .knopf {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
  font-family: inherit;
}

/* <button> bringt einen hellen Standardgrund mit: sonst weiss auf weiss */
.einwilligung .knopf-hell {
  background: transparent;
}

@media (max-width: 720px) {
  .einwilligung {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

/* Kontaktleiste am Handy */
.mobilleiste {
  display: none;
}

@media (max-width: 720px) {
  body {
    padding-bottom: 72px;
  }

  .mobilleiste {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom));
    background: var(--anthrazit);
    border-top: 3px solid var(--gelb);
  }

  .mobilleiste .knopf {
    min-height: 48px;
    padding: 0 12px;
  }
}

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

/* Orte im Einsatzgebiet: Liste als Etiketten, nicht als Aufzählung */
.fliesstext ul.orte {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.fliesstext ul.orte li {
  padding: 6px 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--weiss);
  font-weight: 600;
}

.fliesstext ul.orte li::before {
  display: none;
}

/* Tabellen in Ratgebern. Titel steht ausserhalb des Scrollbereichs, sonst
   wird er am Handy mit abgeschnitten (ai-platform-optimizer, zonigroup). */
.tabelle-rahmen {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--weiss);
}

.tabelle-rahmen table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 16px;
}

.tabelle-rahmen th,
.tabelle-rahmen td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--linie);
}

.tabelle-rahmen thead th {
  background: var(--anthrazit);
  color: var(--weiss);
  font-weight: 700;
}

.tabelle-rahmen tbody th {
  font-weight: 700;
  width: 22%;
}

.tabelle-rahmen tbody tr:last-child th,
.tabelle-rahmen tbody tr:last-child td {
  border-bottom: 0;
}

.ratgeber-hinweis {
  margin-top: 32px;
  padding: 14px 16px;
  border-left: 6px solid var(--gelb);
  background: var(--weiss);
  font-weight: 600;
}

.seitenkopf .datum {
  margin: 12px 0 0;
  font-size: 14px;
  color: #9aa0a7;
}
