/* Pinselgrund · Malergeschäft — Beispiel-Website von Nahweb
   Welt: frisch gestrichene Wand. Kalkweiss, Graphit, Preussischblau für die Handlung,
   Ocker wie Malerband als einziger Akzent. Gerade Kanten, viel Weissraum. */

/* Schriften lokal (latin), keine Verbindung zu Google. */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --kalk:        #FAFAF7;
  --weiss:       #FFFFFF;
  --graphit:     #22262A;
  --graphit-2:   #2E3338;
  --blau:        #1E4471;
  --blau-tief:   #16355A;
  --blau-zart:   #E8EEF5;
  --ocker:       #E3A72F;
  --zement:      #5C6166;
  --vlies:       #E7E6E1;
  --linie:       #D6D5CF;
  --gruen:       #2F7A4A;
  --fehler:      #A3261B;
  --auf-graphit: #FAFAF7;
  --auf-graphit-weich: #C9CCCF;

  /* Nahweb (Streifen, Hinweise, Fuss) */
  --nw-papier:   #F6F2EA;
  --nw-papier-tief: #EDE6D8;
  --nw-tinte:    #17181B;
  --nw-weich:    #56524B;
  --nw-orange:   #EC5A3A;
  --nw-knopf:    #CB4221;
  --nw-schrift:  #9A2F14;
  --nw-linie:    #E2D9C8;
  --wa-blase:    #DCF8C6;

  --schrift: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titel: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --breite: 1180px;
  --rand: 16px;
  --streifen-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
/* Feste Leiste unten (bis 959 px, 67 px hoch): fokussierte Elemente nicht darunter verstecken (WCAG 2.4.11) */
@media (max-width: 959px) { html { scroll-padding-bottom: calc(68px + 12px + env(safe-area-inset-bottom, 0px)); } }

body {
  margin: 0;
  background: var(--kalk);
  color: var(--graphit);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blau); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--titel); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: 38px; }
h2 { font-size: 31px; }
h3, .h3 { font-size: 23px; line-height: 1.15; font-weight: 600; }
strong { font-weight: 600; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
/* Auf dem dunklen Fuss ein heller Ring, sonst verschwindet er */
.fuss :focus-visible { outline-color: var(--auf-graphit); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--graphit); color: var(--auf-graphit);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

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

/* Nahweb-Streifen und -Abschluss: ../_rahmen/rahmen.css */
@media (max-width: 429px) {
  .held-knoepfe .knopf svg { display: none; }
  .held-knoepfe .knopf { padding: 0 12px; font-size: 19px; }
}

/* ---------------------------------------------------------------- Kopf */
.leiste-oben { background: var(--vlies); color: var(--graphit); font-size: 15px; }
.leiste-oben .innen { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.status { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.status-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--zement); flex: 0 0 auto; }
.status.is-offen .status-punkt { background: var(--gruen); box-shadow: 0 0 0 3px rgba(47, 122, 74, 0.18); }
.status.is-pause .status-punkt { background: var(--ocker); }
.status-lang { display: none; }
.status-kurz { display: inline; }
.kontakt .status, .seitenbox .status { margin: 0 0 14px; }
.status--voll .status-lang { display: inline; }
.status--voll .status-kurz { display: none; }
.leiste-oben-rechts { display: flex; align-items: center; gap: 4px; }
.leiste-adresse { display: none; margin: 0 16px 0 0; color: var(--zement); }
.tel-knopf {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font-weight: 600; color: var(--blau); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tel-knopf svg { width: 18px; height: 18px; flex: 0 0 auto; }
.tel-knopf:hover span { text-decoration: underline; }
.wa-klein { display: none; }

.kopf { background: var(--kalk); border-bottom: 4px solid var(--ocker); }
.kopf .innen { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; position: relative; }
.marke { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--graphit); padding: 8px 0; }
.marke-wort { font-family: var(--titel); font-weight: 700; font-size: 27px; letter-spacing: 0.12em; line-height: 1; }
.marke-zeile { font-size: 13px; letter-spacing: 0.04em; color: var(--zement); margin-top: 4px; }

.menue-knopf {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1.5px solid var(--graphit); background: transparent; border-radius: 2px;
  font-family: var(--titel); font-weight: 600; font-size: 18px; cursor: pointer;
}
.menue-strich { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menue-strich::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.menue-knopf[aria-expanded="true"] .menue-strich { border-color: transparent; }
.menue-knopf[aria-expanded="true"] .menue-strich::after { top: 2px; transform: rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-strich::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; transform: rotate(-45deg); }

.nav { display: none; }
.nav a {
  font-family: var(--titel); font-weight: 600; font-size: 21px; color: var(--graphit);
  text-decoration: none; display: flex; align-items: center; min-height: 48px;
}
.nav a[aria-current="page"] { color: var(--blau); }
.nav.is-offen {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 40;
  background: var(--kalk); padding: 8px var(--rand) 16px;
  border-bottom: 1px solid var(--linie); box-shadow: 0 16px 24px -16px rgba(34, 38, 42, 0.35);
}
.nav.is-offen a { border-bottom: 1px solid var(--vlies); }
.nav.is-offen a.nav-offerte { border: 0; margin-top: 12px; justify-content: center; background: var(--blau); color: var(--weiss); }
.no-js .nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.no-js .menue-knopf { display: none; }

/* ---------------------------------------------------------------- Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 2px;
  font-family: var(--titel); font-weight: 600; font-size: 20px; letter-spacing: 0.01em; line-height: 1.1;
  text-decoration: none; cursor: pointer; text-align: center;
  border: 2px solid var(--blau); background: var(--blau); color: var(--weiss);
  transition: background-color 0.15s, border-color 0.15s;
}
.knopf:hover { background: var(--blau-tief); border-color: var(--blau-tief); text-decoration: none; }
.knopf svg { width: 20px; height: 20px; flex: 0 0 auto; }
.knopf--umriss { background: transparent; color: var(--graphit); border-color: var(--graphit); }
.knopf--umriss:hover { background: var(--graphit); color: var(--kalk); border-color: var(--graphit); }
.knopf--wa { background: transparent; color: var(--graphit); border-color: var(--linie); }
.knopf--wa:hover { background: var(--vlies); color: var(--graphit); border-color: var(--zement); }
.knopf--breit { width: 100%; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }

.pfeil-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-family: var(--titel); font-weight: 600; font-size: 20px; color: var(--blau); text-decoration: none;
}
.pfeil-link::after { content: "→"; transition: transform 0.15s; }
.pfeil-link:hover::after { transform: translateX(3px); }
.pfeil-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Abschnitte */
.abschnitt { padding: 56px 0; }
.abschnitt--vlies { background: var(--vlies); }
.abschnitt--weiss { background: var(--weiss); }
.abschnitt-kopf { margin-bottom: 28px; max-width: 720px; }
.abschnitt-kopf h2 { margin-bottom: 12px; }
.abschnitt-kopf p { color: var(--zement); margin: 0; }
.etikett {
  display: inline-block; font-family: var(--titel); font-weight: 600; font-size: 15px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--zement); margin-bottom: 10px;
}
.lead { font-size: 19px; line-height: 1.5; }
.klein { font-size: 15px; color: var(--zement); }

/* ---------------------------------------------------------------- Held */
.held { background: var(--kalk); }
.held-bild { margin: 0; height: 280px; overflow: hidden; background: var(--vlies); }
.held-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.held-text { padding: 26px 0 36px; }
.held h1 { margin-bottom: 14px; }
.held .lead { margin-bottom: 22px; max-width: 34em; }
.held-knoepfe { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.held-knoepfe .knopf { padding: 0 16px; }
.held-fakten {
  list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--linie);
  display: grid; gap: 8px; font-size: 16px; color: var(--graphit);
}
.held-fakten li { display: flex; gap: 10px; align-items: baseline; }
.held-fakten li::before { content: ""; width: 12px; height: 4px; background: var(--ocker); flex: 0 0 auto; transform: translateY(-4px); }

/* Seitenkopf der Unterseiten */
.seitenkopf { padding: 36px 0 28px; }
.seitenkopf h1 { margin-bottom: 14px; }
.seitenkopf .lead { max-width: 40em; margin: 0; }
.seitenkopf-bild { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--vlies); }
.seitenkopf-bild picture { display: contents; }
.seitenkopf-bild img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- Schritte */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.schritt { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: var(--weiss); padding: 18px; border: 1px solid var(--vlies); }
.schritt-nr {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--ocker); color: var(--graphit);
  font-family: var(--titel); font-weight: 700; font-size: 28px; line-height: 1;
}
.schritt h3 { margin: 2px 0 6px; }
.schritt p { margin: 0; }
.schritte-fuss { margin-top: 24px; }

/* ---------------------------------------------------------------- Leistungen (Start) */
.leistungsliste { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--linie); }
.leistungsliste li { padding: 16px 0; border-bottom: 1px solid var(--linie); display: grid; gap: 4px; }
.leistungsliste h3 { font-size: 24px; }
.leistungsliste p { margin: 0; color: var(--graphit); }
.preis-hinweis {
  background: var(--weiss); border-left: 4px solid var(--ocker); padding: 16px 18px; margin: 0 0 8px;
  font-size: 18px;
}
.preis-hinweis strong { white-space: nowrap; }

/* ---------------------------------------------------------------- Vorher/Nachher */
.vn {
  position: relative; overflow: hidden; background: var(--vlies);
  aspect-ratio: 4 / 3; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; cursor: ew-resize; --pos: 50%;
}
.vn--hoch { aspect-ratio: 4 / 5; }
.vn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.vn-vorher { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vn-marke {
  position: absolute; top: 12px; z-index: 2;
  font-family: var(--titel); font-weight: 700; font-size: 15px; letter-spacing: 0.14em;
  background: var(--graphit); color: var(--kalk); padding: 5px 9px 4px; line-height: 1;
}
.vn-marke--vorher { left: 12px; }
.vn-marke--nachher { right: 12px; }
.vn-griff {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 48px; margin-left: -24px; display: flex; justify-content: center;
  outline: none;
}
.vn-griff::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--ocker); box-shadow: 0 0 0 1px rgba(34, 38, 42, 0.18); }
.vn-knauf {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--weiss); color: var(--graphit);
  display: grid; place-items: center; font-size: 20px; font-weight: 600; letter-spacing: 2px;
  box-shadow: 0 2px 10px rgba(34, 38, 42, 0.35); border: 3px solid var(--ocker);
}
.vn-griff:focus-visible .vn-knauf { outline: 3px solid var(--blau); outline-offset: 2px; }
.vn-hilfe { margin: 10px 0 0; font-size: 16px; color: var(--zement); }

.arbeit-text { padding: 16px 0 0; }
.arbeit-text h3 { margin-bottom: 4px; }
.arbeit-text p { margin: 0; }
.arbeit-dauer {
  display: inline-block; margin-top: 8px; font-family: var(--titel); font-weight: 600; font-size: 16px;
  letter-spacing: 0.06em; text-transform: uppercase; background: var(--vlies); padding: 3px 8px;
}

/* ---------------------------------------------------------------- Karten mit Bild */
.bildkarte { display: grid; gap: 0; background: var(--weiss); border: 1px solid var(--vlies); }
.bildkarte figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--vlies); }
.bildkarte figure img { width: 100%; height: 100%; object-fit: cover; }
.bildkarte-text { padding: 20px 18px 22px; }
.bildkarte-text h2, .bildkarte-text h3 { margin-bottom: 12px; }
.betrieb h2, .kontakt h2 { margin-bottom: 14px; }
.seitenkopf-raster { display: grid; gap: 24px; }

.betrieb { display: grid; gap: 24px; }
.betrieb figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--vlies); }
.betrieb figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- Kontaktblock */
.kontakt { display: grid; gap: 28px; }
.zeiten { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.zeiten th { font-weight: 600; padding-right: 16px; white-space: nowrap; }
.zeiten tr.ist-heute th, .zeiten tr.ist-heute td { color: var(--blau); }
.kontakt-wege { display: grid; gap: 10px; margin-top: 4px; }
.kontakt-wege .knopf { justify-content: flex-start; }
.adresse { font-style: normal; margin: 0 0 12px; }

/* ---------------------------------------------------------------- Preistabellen */
.preise { width: 100%; border-collapse: collapse; background: var(--weiss); border: 1px solid var(--vlies); margin: 0 0 12px; }
.preise caption { text-align: left; }
.preise th, .preise td { padding: 14px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--vlies); }
.preise thead th {
  font-family: var(--titel); font-weight: 600; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--zement); background: var(--kalk); padding-top: 10px; padding-bottom: 10px;
}
.preise td:last-child, .preise th:last-child { text-align: right; }
.preise tbody td:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preise tbody td.offerte { font-weight: 500; white-space: normal; color: var(--zement); }
.preise tr:last-child td { border-bottom: 0; }

.preisblock { display: grid; gap: 22px; }
.preisblock figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--vlies); max-height: 460px; }
.preisblock figure img { width: 100%; height: 100%; object-fit: cover; }
.preisblock--quer figure { aspect-ratio: 3 / 2; }

.faktoren { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faktoren li { background: var(--weiss); border: 1px solid var(--linie); padding: 8px 12px; font-size: 16px; }
.zahlen-hinweis { font-size: 18px; margin-bottom: 24px; }

/* ---------------------------------------------------------------- Arbeiten */
.arbeiten { display: grid; gap: 44px; }
.arbeit figure { margin: 0; overflow: hidden; background: var(--vlies); position: relative; }
.arbeit figure img { width: 100%; height: 100%; object-fit: cover; }
.arbeit figure.quer { aspect-ratio: 3 / 2; }
.arbeit figure.hoch { aspect-ratio: 4 / 5; }
.arbeit figure.quadrat { aspect-ratio: 1 / 1; }

/* ---------------------------------------------------------------- Formulare allgemein */
.feld { display: grid; gap: 6px; margin: 0 0 20px; }
.feld-titel { font-weight: 600; font-size: 17px; }
.feld-hilfe { font-size: 15px; color: var(--zement); margin: -2px 0 0; }
.freiwillig { font-weight: 400; color: var(--zement); }
.eingabe {
  width: 100%; min-height: 50px; padding: 11px 14px;
  font: inherit; font-size: 16px; color: var(--graphit);
  background: var(--weiss); border: 1.5px solid #8A8F94; border-radius: 2px;
  -webkit-appearance: none; appearance: none;
}
textarea.eingabe { min-height: 110px; resize: vertical; }
.eingabe:focus { border-color: var(--blau); outline: 2px solid var(--blau); outline-offset: 0; }
.eingabe[aria-invalid="true"] { border-color: var(--fehler); }
.fehlertext { color: var(--fehler); font-size: 15px; font-weight: 600; margin: 0; }
.fehlertext:empty { display: none; }
.einheit { display: flex; align-items: center; gap: 10px; }
.einheit .eingabe { max-width: 140px; }
.einheit span { color: var(--zement); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.gruppe { margin: 0 0 22px; }
.gruppe-titel { font-weight: 600; font-size: 17px; margin-bottom: 10px; display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px;
  background: var(--weiss); color: var(--graphit); border: 1.5px solid var(--linie); border-radius: 2px;
  font-size: 16px; font-weight: 500; cursor: pointer; user-select: none;
}
.chip span:hover { border-color: var(--zement); }
.chip input:checked + span { background: var(--blau); color: var(--weiss); border-color: var(--blau); }
.chip input:checked + span::before { content: "✓"; margin-right: 8px; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--blau); outline-offset: 2px; }
.chips[aria-invalid="true"] .chip span { border-color: var(--fehler); }

.kaestchen { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; font-weight: 500; padding: 10px 0; }
.kaestchen input { width: 24px; height: 24px; margin: 0; accent-color: var(--blau); flex: 0 0 auto; }

.textlink {
  background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer;
  color: var(--blau); text-decoration: underline; text-underline-offset: 3px; font-size: 16px; font-weight: 500;
}

/* ---------------------------------------------------------------- Offertanfrage */
.offerte-wrap { max-width: 720px; }
.offerte-form { margin: 0; }
.fortschritt {
  position: sticky; top: var(--streifen-h); z-index: 20;
  background: var(--kalk); padding: 12px 0 12px; margin: 0 0 20px;
  border-bottom: 1px solid var(--vlies);
}
.fortschritt-text {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--titel); font-weight: 700; font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px;
}
.fortschritt-text span:last-child { font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--zement); font-family: var(--schrift); font-size: 15px; }
.fortschritt-balken { height: 8px; background: var(--vlies); overflow: hidden; }
.fortschritt-balken span { display: block; height: 100%; width: 16%; background: var(--ocker); transition: width 0.35s ease; }

.schritt-box h2 { margin-bottom: 8px; }
.schritt-box > p.feld-hilfe { margin: 0 0 22px; font-size: 16px; }
.schritt-fuss { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--vlies); }
.schritt-fuss .knopf { flex: 1 1 auto; }
.schritt-fuss .knopf:first-child { margin-left: auto; }
.zurueck {
  min-height: 52px; padding: 0 14px 0 4px; border: 0; background: none; cursor: pointer;
  font-family: var(--titel); font-weight: 600; font-size: 19px; color: var(--graphit);
}
.zurueck::before { content: "← "; }
.fehlerzeile { color: var(--fehler); font-weight: 600; margin: 12px 0 0; }
.fehlerzeile:empty { display: none; }

.raum { background: var(--weiss); border: 1px solid var(--linie); padding: 18px 16px 4px; margin: 0 0 14px; }
.raum-kopf { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; }
.raum-kopf h3 { font-size: 21px; }
.raum-weg { background: none; border: 0; color: var(--zement); min-height: 44px; padding: 0 4px; cursor: pointer; text-decoration: underline; font-size: 15px; }
.lxb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lxb label { flex: 0 1 132px; }
.lxb .eingabe { max-width: 132px; }
.lxb-ergebnis { font-weight: 600; }
.masse-weg-hinweis { background: var(--blau-zart); padding: 12px 14px; margin: 0 0 16px; }
.dazu-knopf {
  width: 100%; min-height: 52px; background: transparent; border: 1.5px dashed var(--zement); border-radius: 2px;
  font-family: var(--titel); font-weight: 600; font-size: 19px; color: var(--graphit); cursor: pointer;
}
.dazu-knopf:hover { border-style: solid; }
.block-titel { font-family: var(--titel); font-weight: 600; font-size: 21px; margin: 18px 0 12px; }

.foto-feld {
  display: grid; place-items: center; text-align: center; gap: 6px;
  min-height: 150px; padding: 22px; cursor: pointer;
  background: var(--weiss); border: 2px dashed #8A8F94; border-radius: 2px;
}
.foto-feld:hover { border-color: var(--blau); }
.foto-feld svg { width: 34px; height: 34px; color: var(--blau); }
.foto-feld strong { font-family: var(--titel); font-weight: 600; font-size: 22px; color: var(--blau); }
.foto-feld span { color: var(--zement); font-size: 15px; }
.foto-input:focus-visible + .foto-feld { outline: 3px solid var(--blau); outline-offset: 2px; }
.fotos { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.fotos:empty { display: none; }
.foto { position: relative; width: 96px; height: 96px; background: var(--vlies); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto-weg {
  position: absolute; top: -8px; right: -8px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.foto-weg span { width: 28px; height: 28px; border-radius: 50%; background: var(--graphit); color: var(--weiss); display: grid; place-items: center; font-size: 15px; line-height: 1; box-shadow: 0 0 0 2px var(--weiss); }
.foto-zaehler { font-weight: 600; margin: 12px 0 0; }
.foto-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; margin-top: 6px; }

.uebersicht { background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--graphit); padding: 6px 14px 8px; margin: 26px 0 0; }
.uebersicht-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.uebersicht h3 { font-size: 21px; margin: 0; }
.uebersicht-fotos { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.uebersicht-fotos img { width: 72px; height: 72px; object-fit: cover; background: var(--vlies); }
.uebersicht-fotos span { font-weight: 600; margin-left: 6px; color: var(--zement); }
.uebersicht-zeilen { list-style: none; margin: 0; padding: 0; }
.uebersicht-zeilen li { padding: 7px 0; border-top: 1px solid var(--vlies); line-height: 1.4; font-size: 16px; }
.uebersicht-zeilen li:first-child { border-top: 0; font-weight: 600; }
.absenden { margin-top: 18px; }
.absenden .knopf { width: 100%; }
.datenschutz-satz { font-size: 16px; color: var(--zement); margin: 12px 0 0; }

.seitenkopf--eng { padding-bottom: 4px; }
.abschnitt--formular { padding-top: 12px; }
.eingabe--kurz { max-width: 140px; }
.eingabe--mittel { max-width: 240px; }
.schritt-fuss--nur-zurueck { border-top: 0; margin-top: 6px; padding-top: 0; }
.offerte-seite { margin-top: 44px; }
.seitenbox { background: var(--weiss); border: 1px solid var(--vlies); padding: 20px 18px; margin: 0 0 16px; }
.seitenbox h2 { margin-bottom: 12px; }
.seitenbox--leise { background: transparent; }
.kurzschritte { margin: 0 0 6px; padding-left: 22px; }
.kurzschritte li { margin-bottom: 6px; }
.kurzschritte li::marker { font-family: var(--titel); font-weight: 700; }
.bestaetigung { max-width: 720px; }
.bestaetigung h2 { font-size: 34px; margin-bottom: 14px; }
.bestaetigung-marke { display: inline-grid; place-items: center; width: 56px; height: 56px; background: var(--ocker); color: var(--graphit); font-size: 30px; font-weight: 700; margin-bottom: 16px; }

/* ---------------------------------------------------------------- Lehrstelle */
.lehre { display: grid; gap: 28px; }
.lehre figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--vlies); max-height: 560px; }
.lehre figure img { width: 100%; height: 100%; object-fit: cover; }
.lehre h2 { margin-bottom: 12px; }
.passt { background: var(--weiss); border-left: 4px solid var(--ocker); padding: 16px 18px; margin: 0 0 18px; }
.stelle { background: var(--weiss); border: 1px solid var(--vlies); padding: 22px 18px; }
.stelle h2 { font-size: 27px; margin-bottom: 10px; }
.anfrage-form { max-width: 640px; }
.abschnitt--eng-oben { padding-top: 8px; }
.knopfreihe--abstand { margin: 0 0 32px; }
.danke-titel { font-size: 32px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- Einfache Seiten */
.text-seite > * { max-width: 760px; }
.text-seite h2 { font-size: 27px; margin: 32px 0 10px; }
.quellen { list-style: none; padding: 0; margin: 0; }
.quellen li { padding: 14px 0; border-bottom: 1px solid var(--linie); display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.quellen img { width: 72px; height: 72px; object-fit: cover; }
.quellen p { margin: 0; font-size: 16px; }

/* ---------------------------------------------------------------- Fuss (Betrieb) */
.fuss { background: var(--graphit); color: var(--auf-graphit); padding: 44px 0 36px; border-top: 4px solid var(--ocker); }
.fuss a { color: var(--auf-graphit); }
.fuss-raster { display: grid; gap: 28px; }
.fuss .marke-wort { color: var(--auf-graphit); font-size: 25px; }
.fuss p { margin: 0 0 6px; color: var(--auf-graphit-weich); }
.fuss .fuss-titel { color: var(--auf-graphit); font-weight: 600; }
.fuss-tel { background: none; border: 0; padding: 0; min-height: 44px; color: var(--auf-graphit); text-decoration: underline; cursor: pointer; font-size: 17px; text-underline-offset: 3px; }
.fuss-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.fuss-links a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
.fuss-hinweis { font-size: 15px; }

/* ---------------------------------------------------------------- Nahweb: Hinweise, Fenster */
/* Platz unter dem Nahweb-Abschluss für die feste Leiste am Handy (Haken in ../_rahmen/rahmen.css) */
@media (max-width: 959px) { /* bis 959 px ist die Leiste da (siehe min-width: 960px) */
  body:has(.handy-leiste) { --nw-platz-unten: 72px; }
}
.nw-knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px;
  background: var(--nw-knopf); color: var(--weiss); text-decoration: none; font-weight: 700; border-radius: 6px; border: 0; cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px;
}
.nw-knopf:hover { background: var(--nw-schrift); color: var(--weiss); }
.nw-kasten .nw-knopf, .fenster .nw-knopf { color: var(--weiss); }
.nw-kasten {
  background: var(--nw-papier); color: var(--nw-tinte); border: 1px solid var(--nw-linie); border-left: 4px solid var(--nw-orange);
  padding: 18px 18px 20px; margin: 26px 0 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px;
}
.nw-kasten strong { display: block; font-size: 18px; margin-bottom: 6px; }
.nw-kasten p { margin: 0 0 14px; }

.fenster {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%;
  background: var(--nw-papier); color: var(--nw-tinte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}
.fenster::backdrop { background: rgba(23, 24, 27, 0.55); }
.fenster-innen { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.fenster-marke { display: inline-block; font-weight: 700; color: var(--nw-schrift); margin-bottom: 6px; }
.fenster h2 { font-family: inherit; font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; letter-spacing: 0; }
.fenster p { margin: 0 0 14px; }
.fenster-nummer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 22px; margin: 0 0 10px; }
.wa-blase {
  background: var(--wa-blase); color: #111B21; padding: 10px 12px 8px; border-radius: 10px 10px 10px 2px;
  margin: 4px 0 16px; max-width: 320px; font-size: 16px; line-height: 1.4; position: relative;
}
.wa-blase small { display: block; text-align: right; color: #54656F; font-size: 12px; margin-top: 2px; }
.fenster-knoepfe { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.fenster-knoepfe .nw-knopf { min-width: 150px; }

/* Beispielbild-Marke an den Arbeiten */
.bild-marke {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; pointer-events: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; font-weight: 600;
  background: rgba(246, 242, 234, 0.94); color: var(--nw-tinte); padding: 4px 8px; border-radius: 3px;
}

/* Nahweb-Platzhalter: was beim echten Betrieb hier steht */
.nw-platz {
  margin: 20px 0 20px; padding: 12px 14px; background: var(--nw-papier); color: var(--nw-tinte);
  border: 1.5px dashed var(--nw-orange); border-radius: 4px; max-width: 34em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.45;
}
.nw-platz-marke { display: block; font-size: 13px; font-weight: 700; color: var(--nw-schrift); letter-spacing: 0.02em; margin-bottom: 2px; }

/* Lehrstelle: Eckdaten */
.lehr-fakten { margin: 0 0 18px; padding: 0; border-top: 1px solid var(--linie); }
.lehr-fakten div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.lehr-fakten dt { font-weight: 600; }
.lehr-fakten dd { margin: 0; }

/* Offerte: so käme die Anfrage beim Betrieb an (Beispiel) */
.nw-kasten .mail-titel { font-weight: 700; margin: 0 0 8px; }
.mail-bild { background: var(--weiss); border: 1px solid var(--nw-linie); border-radius: 6px; margin: 0 0 16px; font-size: 15px; line-height: 1.4; overflow: hidden; }
.mail-bild:empty { display: none; }
.mail-kopf { padding: 10px 12px; border-bottom: 1px solid var(--nw-linie); background: #FBF9F4; }
.mail-kopf p { margin: 0; color: var(--nw-weich); overflow-wrap: anywhere; }
.nw-kasten .mail-kopf p { margin: 0; }
.mail-kopf .mail-betreff { color: var(--nw-tinte); font-weight: 700; margin-top: 2px; }
.mail-zeilen { list-style: none; margin: 0; padding: 8px 12px; }
.mail-zeilen li { padding: 3px 0; overflow-wrap: anywhere; }
.mail-anhang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px 10px; border-top: 1px solid var(--nw-linie); color: var(--nw-weich); }
.mail-anhang span { margin-right: 4px; }
.mail-anhang img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; }

@media (max-width: 699px) {
  .preisblock figure { aspect-ratio: 3 / 2; }
}

/* ---------------------------------------------------------------- Feste Leiste am Handy */
.handy-leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px;
  padding: 8px var(--rand) calc(8px + env(safe-area-inset-bottom));
  background: rgba(250, 250, 247, 0.97); border-top: 1px solid var(--linie);
  transition: transform 0.2s ease;
}
.handy-leiste .knopf { min-height: 50px; font-size: 19px; padding: 0 10px; }
.handy-leiste.ist-versteckt { transform: translateY(110%); }
/* Per Tastatur angesteuert: Leiste zeigen, sonst läge der Fokus unsichtbar unter dem Fensterrand (WCAG 2.4.11) */
.handy-leiste:focus-within { transform: none; }
.mit-leiste { padding-bottom: 0; }

/* ================================================================ ab 700 px */
@media (min-width: 700px) {
  :root { --rand: 28px; }
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  .abschnitt { padding: 80px 0; }
  .schritte { grid-template-columns: repeat(3, 1fr); }
  .schritt { grid-template-columns: 1fr; padding: 22px; }
  .kontakt { grid-template-columns: 1fr 1fr; gap: 48px; }
  .betrieb { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .bildkarte { grid-template-columns: 5fr 7fr; align-items: stretch; }
  .bildkarte figure { aspect-ratio: auto; min-height: 320px; position: relative; }
  .bildkarte figure img { position: absolute; inset: 0; }
  .bildkarte-text { padding: 44px 44px; align-self: center; }
  .lehre { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .lehre figure { aspect-ratio: 4 / 5; }
  .leistungsliste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; border-top: 0; }
  .leistungsliste li { border-top: 4px solid var(--graphit); border-bottom: 0; padding: 18px 0 8px; align-content: start; }
  .schritt-fuss .knopf { max-width: 320px; }
  .abschnitt.abschnitt--formular { padding-top: 16px; }
  .abschnitt.abschnitt--eng-oben { padding-top: 16px; }
  .seitenkopf-raster { gap: 40px; }
  .preisblock { grid-template-columns: 7fr 4fr; gap: 36px; align-items: start; }
  .fuss-raster { grid-template-columns: 1.3fr 1fr 1fr; }
  .fenster { margin: auto; max-width: 460px; border-radius: 8px; }
  .fenster-innen { padding: 26px 28px 26px; }
  .leiste-adresse { display: block; }
  .wa-klein { display: inline-flex; margin-right: 12px; }
  .status-lang { display: inline; }
  .status-kurz { display: none; }
}

/* ================================================================ Desktop mit Navigation */
@media (min-width: 960px) {
  h1 { font-size: 64px; }
  .menue-knopf { display: none; }
  .nav, .nav.is-offen {
    display: flex; flex-direction: row; align-items: center; gap: 28px;
    position: static; padding: 0; margin: 0; background: none; border: 0; box-shadow: none;
  }
  .nav a, .nav.is-offen a { font-size: 20px; border: 0; min-height: 44px; }
  .nav a:hover { color: var(--blau); }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ocker); }
  .nav a.nav-offerte, .nav.is-offen a.nav-offerte {
    background: var(--blau); color: var(--weiss); padding: 0 20px; margin: 0 0 0 4px; min-height: 46px; border-radius: 2px;
  }
  .nav a.nav-offerte:hover { background: var(--blau-tief); color: var(--weiss); }
  .nav a.nav-offerte[aria-current="page"] { box-shadow: none; }
  .kopf .innen { min-height: 84px; }
  .marke-wort { font-size: 31px; }

  .held { padding: 0; }
  .held-raster { display: grid; grid-template-columns: 6fr 6fr; min-height: 580px; max-width: 1440px; margin: 0 auto; }
  .held-text { order: 1; padding: 72px 56px 64px max(var(--rand), calc((100vw - var(--breite)) / 2 + var(--rand))); align-self: center; }
  .held-bild { order: 2; height: auto; min-height: 580px; }
  .held-bild img { object-position: 50% 45%; }
  .held .innen { padding: 0; max-width: none; }
  .held-knoepfe { display: flex; }
  .held-knoepfe .knopf { padding: 0 24px; }

  .seitenkopf { padding: 64px 0 40px; }
  .seitenkopf-raster { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; }

  .arbeiten { grid-template-columns: 1fr 1fr; gap: 56px 40px; }
  .leistungsliste { grid-template-columns: repeat(4, 1fr); }
  .arbeit--breit { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 4fr; gap: 48px; align-items: center; }
  .arbeit--breit .arbeit-text { padding: 0 0 8px; }

  .handy-leiste { display: none; }
  .offerte-raster { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 64px; align-items: start; }
  .offerte-seite { position: sticky; top: calc(var(--streifen-h) + 24px); }
}

@media (min-width: 1200px) {
  h1 { font-size: 70px; }
}

/* sehr schmale Handys */
@media (max-width: 359px) {
  :root { --rand: 14px; }
  h1 { font-size: 34px; }
  .held-knoepfe { grid-template-columns: 1fr; }
  .marke-wort { font-size: 24px; }
  .handy-leiste .knopf { font-size: 17px; padding: 0 6px; }
}

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

@media print {
  .handy-leiste, .menue-knopf { display: none !important; }
}
