/* Zusätze für die Unterseiten (Leistungen, Über uns, Kontakt, Zertifizierung, Rechtstexte, 404).
   Gleiche Farben, Schriften, Knöpfe, Kopf, Maßband, Fuß und Handy-Leiste wie die Startseite (stil.css) – hier nur, was die
   Unterseiten zusätzlich brauchen. Keine Inline-Stile, keine externen Ressourcen. */

/* ---------- Kopf: aktueller Reiter ---------- */
.menue-liste a[aria-current] { color: var(--gruen-tief); box-shadow: inset 0 -2px 0 var(--gruen); border-radius: 0; }
@media (max-width: 899.98px) { .menue-liste a[aria-current] { box-shadow: none; } }

/* ---------- Seitenkopf der Unterseiten ---------- */
.up-kopf h1, .up-text h1 { font-size: clamp(2.125rem, 1.2rem + 3.5vw, 3.875rem); }
.up-kopf .einleitung, .up-text .einleitung { max-width: 34em; }
.up-text .hero-raster { grid-template-columns: minmax(0, 1fr); }
.up-bild { margin: 0; width: min(100%, 560px); justify-self: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.up-bild-rahmen { position: relative; }
.up-bild-rahmen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: 2px; }
.up-bild-rahmen .eck { z-index: 1; }
/* Simon 06.11.2026: Bildergalerie der Leistungsseiten direkt unter der Einleitung, oben weniger Luft */
.abschnitt.up-galerie { padding-top: clamp(32px, 4vw, 48px); }
@media (min-width: 1000px) {
  .up-kopf .hero-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(40px, 5vw, 72px); }
  .up-bild { justify-self: end; width: 100%; }
}
.up-liste { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.up-liste li, .up-liste a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--linie); border-radius: 999px; background: var(--papier); color: var(--tinte); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.up-liste a { min-height: 44px; color: var(--gruen-tief); border-color: var(--gruen); background: transparent; }
.up-liste a:hover { background: var(--gruen); color: var(--weiss); }
.up-text-block { max-width: 40em; }
.up-text-block p { margin-top: 16px; color: var(--gedaempft); }
.up-text-block p:first-child { margin-top: 0; }

/* ---------- Galerie + Großansicht ---------- */
.galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1200px) { .galerie { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gal-link { display: block; position: relative; overflow: hidden; border-radius: 2px; background: var(--beton); cursor: zoom-in; }
.galerie .gal-link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.gal-link:hover img { transform: scale(1.03); }
.gal-link:focus-visible { outline-offset: -3px; }
.up-bild-rahmen .gal-link, .sonder-galerie .gal-link { cursor: zoom-in; }

.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 28, 24, .96); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(20, 28, 24, .96); }
.lightbox :focus-visible { outline-color: var(--weiss); }
.lb-innen { position: relative; display: grid; height: 100%; padding: 72px 12px 20px; }
.lb-bild { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; min-height: 0; justify-items: center; }
.lb-bild img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
.lb-bild figcaption { max-width: 46em; text-align: center; font-size: 1rem; line-height: 1.45; color: #E6EBE8; padding-inline: 56px; }
.lb-zaehler { position: absolute; top: 24px; left: 16px; margin: 0; font: 500 .875rem/1 var(--mono); letter-spacing: .06em; color: #E6EBE8; }
.lb-zu { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border: 1.5px solid #fff; border-radius: 999px; background: transparent; color: #fff; font: 600 1rem var(--sans); cursor: pointer; }
.lb-zu:hover { background: #fff; color: var(--tinte); }
.lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--weiss); border-radius: 50%; background: rgba(20, 28, 24, .55); color: var(--weiss); cursor: pointer; }
.lb-nav:hover { background: #fff; color: var(--tinte); }
.lb-nav[hidden] { display: none; }
.lb-zurueck { left: 8px; }
.lb-zurueck .sym { transform: rotate(180deg); }
.lb-weiter { right: 8px; }
@media (min-width: 900px) { .lb-innen { padding: 80px 88px 28px; } .lb-zurueck { left: 20px; } .lb-weiter { right: 20px; } }
html:not(.js) .lightbox { display: none; }

/* ---------- Werkstoffe, Ablauf in Kurzform, Anfrage-Band ---------- */
.up-werk .werkstoffe { margin-top: 0; }
.up-ablauf { display: grid; gap: 0; border-top: 1.5px solid var(--linie-dunkel); }
.up-ablauf li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 2px 12px; padding: 16px 2px; border-bottom: 1px solid var(--linie); }
.up-ablauf .nr { grid-row: 1 / 3; font: 500 .875rem/1.8 var(--mono); letter-spacing: .06em; color: var(--gruen-tief); }
.up-ablauf h3 { font: 600 1.125rem/1.3 var(--sans); letter-spacing: 0; }
.up-ablauf p { color: var(--gedaempft); max-width: 36em; }
@media (min-width: 900px) { .up-ablauf { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; } }
.up-mehr { margin-top: 24px; }
.up-weitere h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 4px; }
.up-cta { margin-top: 0; }

/* ---------- Über uns ---------- */
.up-ueber .schieber { margin-top: clamp(36px, 5vw, 56px); }
.zt-statisch { margin-top: 24px; padding: 18px 20px; max-width: 34em; border: 1px solid var(--linie-hell); border-radius: 2px; background: #FDFCFA; }
.zt-statisch h3 { font: 640 1.375rem/1.15 var(--serif); }
.zt-statisch p { margin-top: 10px; color: var(--text-2); }
.zt-statisch .zt-kennung { font: 500 .8125rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--gedaempft); margin-top: 0; }
html.js .zt-statisch { display: none; }
.art-zus { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--linie-hell); }
.art-zus p { margin-top: 12px; max-width: 34em; color: var(--text-2); }
.art-zus .art-kennung { margin-top: 0; font: 500 .8125rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--gedaempft); }

/* ---------- Kontakt, Zertifizierung ---------- */
.kontakt-text h1 { font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.75rem); }
.en-band h1 { font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.75rem); }
.en-band h1 em { color: var(--gruen-tief); }
.pdf-liste { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Rechtstexte (Impressum, Datenschutz, AGB) ---------- */
.recht { padding-block: clamp(36px, 6vw, 88px); background: var(--papier); }
.recht-text { max-width: 46rem; overflow-wrap: break-word; hyphens: auto; }
.recht h1 { font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.5rem); margin-bottom: 24px; overflow-wrap: break-word; hyphens: auto; }
.recht h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 2.2em 0 .6em; overflow-wrap: break-word; hyphens: auto; }
.recht h3 { font: 600 1.125rem/1.35 var(--sans); letter-spacing: 0; margin: 1.8em 0 .5em; }
.recht p { margin: 0 0 1em; }
.recht ul, .recht ol { padding-left: 1.3em; margin: 0 0 1.1em; list-style: disc; }
.recht ol { list-style: decimal; }
.recht li { margin-bottom: .45em; }
.recht li > ul, .recht li > ol { margin-top: .45em; }
.recht a { overflow-wrap: anywhere; }
.recht table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; }
.recht th, .recht td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linie); overflow-wrap: anywhere; }
.recht th { font-weight: 600; width: 34%; }
.recht mark { background: #FFE58A; color: var(--tinte); padding: .1em .3em; border-radius: 2px; }
.recht small { color: var(--gedaempft); }
.recht section { margin-top: 2.4rem; }
.recht section:first-of-type { margin-top: 1.6rem; }
/* Hinweiskasten in den Rechtstexten (Widerspruchsrecht, Art. 21 DSGVO): Balken links, helles Grau-Weiß, kein Schwarz */
.rechtskasten { margin: 1.6em 0; padding: 16px 20px 6px; border-left: 4px solid var(--gruen); border-radius: 0 4px 4px 0; background: var(--kalk-sand); }
.rechtskasten h3 { margin-top: 0; }

/* ---------- 404 ---------- */
.dank .knopfreihe { margin-top: 12px; }

/* ---------- Diashow im Startbild (nur wenn Fotos\Startseite mehrere Fotos enthält) ---------- */
.dia { aspect-ratio: 3 / 4; }
.foto-rahmen.dia > img { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.foto-rahmen.dia > img.an { opacity: 1; }
.dia-punkte { position: absolute; left: 50%; bottom: 8px; z-index: 2; transform: translateX(-50%); display: flex; gap: 0; }
.dia-punkte button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dia-punkte button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--weiss); background: rgba(31, 43, 38, .45); box-shadow: 0 0 2px rgba(0, 0, 0, .6); }
.dia-punkte button[aria-current="true"]::before { background: #fff; }
html:not(.js) .dia-punkte { display: none; }


/* Bewertung mit QR-Code (Über uns, Kontakt) */
.bew { background: var(--kalk); border-block: 1px solid var(--linie); padding-block: 40px; }
.bew-innen { display: grid; gap: 22px; align-items: center; }
.bew-qr { margin: 0; width: 168px; height: 168px; padding: 12px; background: #fff; border: 1px solid var(--linie); border-radius: 2px; }
.bew-qr svg { display: block; width: 100%; height: 100%; }
.bew-text h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.bew-text p { max-width: 40em; margin: 0 0 6px; line-height: 1.5; }
.bew-hinweis { font-size: .875rem; color: var(--gedaempft); }
.bew .knopf { justify-self: start; }
@media (min-width: 760px) {
  .bew-innen { grid-template-columns: 168px minmax(0, 1fr) auto; gap: 36px; }
  .bew .knopf { justify-self: end; }
}

/*REF-ANFANG*/
/* ---------- Referenzen (nur im Bau, wenn es veröffentlichte Referenzen gibt – build.py schneidet diesen Block sonst heraus) ---------- */
.ref-hero h1 { font-size: clamp(2.125rem, 1.2rem + 3.5vw, 3.875rem); }
.ref-abschnitt { padding-block: clamp(40px, 6vw, 72px); }
.ref-kopfzeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 24px; margin-bottom: 24px; }
.ref-kopfzeile h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.5rem); }
.ref-alle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--gruen-tief); }
.ref-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .ref-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .ref-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* genau 2 Karten: zwei Spalten statt 2 von 3 (keine leere Lücke) */
@media (min-width: 1100px) { .ref-raster:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 740px; } }
.ref-karte { display: flex; flex-direction: column; overflow: hidden; background: var(--kalk); border: 1.5px solid var(--linie); border-radius: 4px; color: var(--tinte); text-decoration: none; }
a.ref-karte:hover { border-color: var(--gruen); }
a.ref-karte:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.ref-karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; background: var(--beton); }
.ref-karte-text { display: grid; gap: 8px; align-content: start; flex: 1; padding: 16px 18px 18px; }
.ref-karte h3 { font: 460 1.3rem/1.2 var(--serif); letter-spacing: -.01em; }
.ref-karte-ort { font-size: .9375rem; color: var(--gedaempft); }
.ref-karte-los { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; font-weight: 600; color: var(--gruen-tief); }
.ref-beispiele .ref-raster { margin-top: 20px; }
.ref-beispiele .ref-alle { margin-top: 12px; }

/* einzelne Referenz */
.ref-seite { padding-top: 20px; padding-bottom: clamp(48px, 6vw, 80px); }
.ref-zurueck { margin-bottom: 8px; }
.ref-zurueck a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--gruen-tief); }
.ref-seite h1 { max-width: 24em; font-size: clamp(1.875rem, 1.1rem + 3vw, 3.25rem); }
.ref-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 56px; margin-top: 28px; }
@media (min-width: 1000px) { .ref-detail:not(.ref-quer) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
/* Foto bleibt beim Lesen der Eckdaten im Bild (sonst bleibt unter dem Foto eine leere Spalte) */
@media (min-width: 1000px) { .ref-detail:not(.ref-quer) > .ref-foto { position: sticky; top: calc(var(--kopf-h) + 24px); } }
.ref-foto { display: grid; gap: 8px; align-content: start; margin: 0; }
.ref-hoch .ref-foto { max-width: 520px; }
.ref-foto-rahmen { position: relative; }
.ref-foto-rahmen > img { width: 100%; height: auto; border-radius: 2px; background: var(--beton); }
.ref-foto-rahmen .eck { z-index: 3; }
.ref-daten-kopf { font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gruen); }
.ref-daten { width: 100%; margin-top: 12px; border-collapse: collapse; border-top: 1.5px solid var(--linie-dunkel); }
.ref-daten th, .ref-daten td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--linie); }
.ref-daten th { width: 9.5em; font: 500 .8125rem/1.7 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gruen-tief); }
@media (max-width: 520px) {
  .ref-daten th, .ref-daten td { display: block; width: auto; padding: 0; border: 0; }
  .ref-daten th { padding-top: 12px; }
  .ref-daten td { padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
}
.ref-text { max-width: 36em; margin-top: 28px; }
.ref-text p + p { margin-top: 12px; }
.ref-seite .knopfreihe { margin-top: 28px; }
.ref-weitere .ref-raster { margin-top: 20px; }
.ref-weitere h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }

/* Diashow bei mehreren Fotos (diashow.js). Ohne Skript stehen die Fotos untereinander. */
.ref-dia { position: relative; }
.ref-dia-liste { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ref-dia-liste img { width: 100%; height: auto; border-radius: 2px; background: var(--beton); }
.ref-dia-nav, .ref-dia-zaehler, .ref-dia-pause { display: none; }
html.js .ref-dia { outline-offset: 3px; touch-action: pan-y pinch-zoom; }   /* waagerechtes Wischen blättert, senkrechtes scrollt die Seite */
html.js .ref-dia-liste { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--beton); }
html.js .ref-dia-liste > li { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
html.js .ref-dia-liste > li.an { opacity: 1; visibility: visible; transition: opacity .9s ease; }
html.js .ref-dia-liste img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
html.js .ref-dia-liste img.hoch { object-fit: contain; }
@media (prefers-reduced-motion: reduce) { html.js .ref-dia-liste > li, html.js .ref-dia-liste > li.an { transition: none; } }
html.js .ref-dia-nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #fff; border-radius: 50%; background: rgba(31, 43, 38, .6); color: #fff; cursor: pointer; }
html.js .ref-dia-nav:hover { background: #fff; color: var(--tinte); }
html.js .ref-dia-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--gruen-tief); }
.ref-dia-zurueck { left: 10px; }
.ref-dia-zurueck .sym { transform: rotate(180deg); }
.ref-dia-weiter { right: 10px; }
html.js .ref-dia-zaehler { position: absolute; top: 10px; left: 10px; z-index: 2; display: block; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(31, 43, 38, .7); color: #fff; font: 500 .8125rem/1.3 var(--mono); letter-spacing: .06em; }
html.js .ref-dia-pause { position: absolute; top: 6px; right: 6px; z-index: 2; display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--weiss); font: 600 .875rem var(--sans); cursor: pointer; text-shadow: 0 0 3px rgba(0, 0, 0, .8); }
html.js .ref-dia-pause:hover { text-decoration: underline; }
html.js .ref-dia-pause:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 5px var(--gruen-tief); }
.ref-dia .dia-punkte { z-index: 2; }
/*REF-ENDE*/

/* Stellenangebot */
.stelle-raster { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stelle-raster h2 { margin: 0 0 14px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.stelle-liste { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; line-height: 1.5; }
.stelle-bewerbung p { max-width: 42em; line-height: 1.55; }
.stelle-hinweis { font-size: .9rem; color: var(--gedaempft); }

/* Über uns: Hinweis auf die offene Stelle (Kasten wie die Formular-Hinweise) */
.verstaerkung-hinweis { margin: clamp(24px, 4vw, 36px) 0 0; padding: 16px 18px; max-width: 32em; background: var(--kalk-sand); border: 1px solid var(--linie-hell); border-radius: 2px; color: var(--tinte); font-size: 1rem; line-height: 1.5; }
.verstaerkung-hinweis a { display: inline-block; padding-block: 10px; margin-block: -10px; color: var(--gruen-tief); font-weight: 600; }
.verstaerkung-hinweis .sym { vertical-align: -.15em; }

/* Startseite: großer Hinweis auf die Industrie-Seite */
.ind-teaser { background: var(--gruen-tief); color: #fff; padding-block: clamp(40px, 6vw, 72px); }
.ind-teaser-innen { display: grid; gap: 32px; align-items: center; }
.ind-teaser .nummer { color: #cfe6dd; }
.ind-teaser h2 { color: var(--weiss); margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; }
.ind-teaser h2 em { color: #bfe6d6; }
.ind-teaser p { color: #eef6f2; max-width: 36em; line-height: 1.55; font-size: 1.05rem; }
.ind-teaser-liste { margin: 18px 0 26px; padding: 0; list-style: none; display: grid; gap: 8px; }
.ind-teaser-liste li { position: relative; padding-left: 26px; color: #fff; font-weight: 500; }
.ind-teaser-liste li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 2px; background: #bfe6d6; }
.ind-teaser .knopf-gross { background: var(--weiss); color: var(--gruen-tief); border: 2px solid var(--weiss); font-size: 1.1rem; padding: 16px 28px; min-height: 56px; }
.ind-teaser .knopf-gross:hover, .ind-teaser .knopf-gross:focus-visible { background: #eef6f2; outline: 3px solid #bfe6d6; outline-offset: 3px; }
.ind-teaser-bild { margin: 0; }
.ind-teaser-bild img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; border: 1px solid rgba(255,255,255,.35); }
@media (min-width: 900px) { .ind-teaser-innen { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }

/* =====================================================================================================================
   31.10.2026  HANDY STRAFFEN  (Prüfberichte handy-test 1 und 2)
   Alles hier gilt nur unter 900 px, außer es steht ausdrücklich dabei – der PC-Auftritt (ab 900 px) bleibt unverändert.
   Gleicher Inhalt im HTML (Mobile-First-Indexing); am Handy werden lange Teile nur zugeklappt oder später gezeigt.
   ===================================================================================================================== */

/* ---------- Großansicht: Wischen darf nie den Browser zurückschicken (alle Breiten, ohne sichtbare Wirkung am PC) ---------- */
.lightbox, .lb-innen { touch-action: pan-y pinch-zoom; overscroll-behavior: contain; }
html.dialog-offen { overscroll-behavior: none; }

/* ---------- Diskussionsrunde 31.10.2026 (alle Breiten) ---------- */
/* nur für Vorlesegeräte: z. B. „(öffnet neue Seite)“ an Links mit target="_blank" (build.py, neue_seite_hinweis) */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Stahlbau: wofür das EN-1090-Zertifikat gilt, unter der Werkstoff-Tabelle */
.werk-hinweis { margin: 18px 0 0; max-width: 46em; color: var(--gedaempft); line-height: 1.5; }
/* Bewertung: Datenschutzhinweis klein unter der Box statt im Werbetext */
.bew > .bew-hinweis { margin: 16px auto 0; }
/* Stapler-Seite: was wir für die Anfrage brauchen */
.anfrage-check { margin-top: 28px; padding: 18px 20px; max-width: 34em; background: var(--kalk); border: 1.5px solid var(--linie); border-radius: 4px; }
.anfrage-check h3 { margin: 0 0 8px; font: 600 1.0625rem/1.3 var(--sans); color: var(--tinte); }
.anfrage-check ul { list-style: disc; margin: 0 0 4px; padding-left: 1.2em; line-height: 1.55; color: var(--tinte); }
.anfrage-check li::marker { color: var(--gruen); }
.sonder-text .anfrage-check .knopf { margin-top: 14px; }

/* ---------- Am PC unsichtbar: Hilfsklassen, Aufklapp-Knöpfe, Verzeichnis und „nach oben“ der Rechtstexte ---------- */
.nur-handy { display: none; }
.auf > .auf-kopf, .mehr-zeile { display: none; }
.recht .recht-hoch, .recht .recht-verz { display: none; }

@media (max-width: 899.98px) {
  .nur-pc { display: none; }
  .nur-handy { display: inline; }
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }   /* feste Leiste: Anker und Fokus bleiben darüber sichtbar */

  /* ---------- Kopf schlanker: gleiche Größe vor und nach dem Scrollen (kein Kippen mehr), Maßband flacher ---------- */
  .logo, .kopf.klein .logo { width: 128px; }
  .kopf-innen, .kopf.klein .kopf-innen { padding-block: 6px; }
  .band-innen { height: 22px; }
  .band-ort { top: 2px; padding-bottom: 2px; }

  /* ---------- feste Leiste unten: deckend (nichts scheint durch), flacher ---------- */
  .leiste { background: var(--papier); padding-block: 8px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 14px rgba(31, 43, 38, .08); }
  .leiste a { min-height: 48px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .fuss { padding-bottom: calc(28px + 68px + env(safe-area-inset-bottom)); }

  /* ---------- Startbild-Block: Überschrift und Einleitung sofort sichtbar, Foto früher im ersten Bildschirm ---------- */
  html.einblenden .hero-raster [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.bewegt .hero h1 .w { animation: none; }
  .hero { padding-top: 16px; }
  .hero-raster { gap: 22px; }
  .hero-start h1 { font-size: clamp(2.125rem, 9vw, 2.625rem); }
  .hero-start .einleitung { margin-top: 14px; font-size: 1.0625rem; }
  .hero .knopfreihe { margin-top: 18px; }
  .hero .knopfreihe a[href^="tel:"] { display: none; }        /* der Anruf-Knopf steckt schon in der festen Leiste unten */
  /* 31.10.2026: Anfrage-Knopf im Seitenkopf mit demselben Ziel wie „Anfrage“ in der festen Leiste (Klasse von build.py) – nur einmal zeigen.
     Bleibt in der Knopfreihe sonst nichts übrig, fällt die ganze Reihe weg (kein leerer Abstand). */
  .hero .knopfreihe .wie-leiste { display: none; }
  .hero .knopfreihe:not(:has(> a:not(.wie-leiste):not([href^="tel:"]))) { display: none; }

  /* ---------- Schrift mindestens 14 px (dekorative, versteckte Maßband-Beschriftungen bleiben 12-13 px) ---------- */
  .sch dt, .werkstoffe dt, .zt-datum, .zt-autor, .art-autor, .ref-daten th, .ref-daten-kopf, .reg-nr, .ani-knopf,
  .ind-blatt figcaption, .zt-statisch .zt-kennung, .art-zus .art-kennung { font-size: .875rem; }
  .mk-o span { font-size: .75rem; letter-spacing: .02em; }
  html.js .ref-dia-zaehler { font-size: .875rem; }
  /* Maßband-Etikett: lieber zweizeilig als mit „…“ abgeschnitten */
  .mk:not(.mk-v) span { white-space: normal; text-align: center; line-height: 1.25; overflow: visible; text-overflow: clip; }

  /* ---------- Tippflächen ab 44 px ---------- */
  .karte p a { padding-block: 10px; margin-block: -10px; }
  .feld-hinweis a, .entwurf-hinweis a, .zustimmung a { padding-block: 11px; margin-block: -11px; }
  .ref-alle { min-height: 44px; }
  .ani-knopf { min-height: 44px; }
  /* Diashow: „Pause“ mit Hintergrund wie der Zähler (stand weiß auf hellem Foto) */
  html.js .ref-dia-pause { background: rgba(31, 43, 38, .7); }

  /* ---------- Bewertung: kein QR-Code am Handy (man kann den eigenen Bildschirm nicht scannen), nur der Knopf ---------- */
  .bew { padding-block: 28px; }
  .bew-qr { display: none; }
  .bew-innen { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bew .knopf { justify-self: start; }

  /* ---------- Aufklapper (details): am PC offen und ohne Knopf, am Handy zu ---------- */
  .auf > .auf-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 16px; list-style: none; cursor: pointer;
    font: 600 1.0625rem/1.3 var(--sans); color: var(--gruen-tief); background: var(--papier); border: 1.5px solid var(--gruen); border-radius: 4px; }
  .auf > .auf-kopf::-webkit-details-marker { display: none; }
  .auf > .auf-kopf::after { content: ""; flex: none; width: 16px; height: 16px;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
  .auf[open] > .auf-kopf::after { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
  .auf[open] > .auf-kopf { margin-bottom: 22px; }
  .auf > .auf-kopf:hover { background: #E9F0EC; }
  .auf > .auf-kopf:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }

  /* ---------- „Alle Fotos zeigen (N)“: Knopf unter Galerien und Kartenlisten (seite.js) ---------- */
  .mehr-weg { display: none !important; }
  .mehr-zeile { display: flex; margin-top: 18px; }
  .mehr-zeile[hidden] { display: none; }
  .mehr-knopf { width: 100%; min-height: 52px; padding: 10px 22px; font: 600 1.0625rem/1.2 var(--sans); color: var(--gruen-tief); background: var(--papier);
    border: 1.5px solid var(--gruen); border-radius: 999px; cursor: pointer; }
  .mehr-knopf:hover { background: var(--gruen); color: var(--weiss); }
  .mehr-knopf:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; }

  /* ---------- Ablauf (Startseite): Bild fest oben war zu viel – am Handy ruhig im Textfluss, Schritte kompakter ---------- */
  .ab-szene { position: static; padding: 0 0 8px; border-bottom: 0; background: transparent; }
  .ab-bild { width: 100%; max-height: none; margin: -36px auto -14px; }   /* die Zeichnung hat oben und unten leeren Rand */
  .ab-szene .ani-knopf { display: none; }                     /* ohne Bewegung braucht es den Anhalten-Knopf nicht */
  .ablauf { gap: 18px; }
  .schritte { padding-left: 42px; }
  .pkt { left: -42px; top: 3px; width: 22px; height: 22px; }
  .schritt { padding-bottom: 22px; }
  .schritt-nr { font-size: 1.5rem; margin-bottom: 2px; }
  .schritt h3 { font-size: 1.375rem; }
  .schritt p { margin-top: 4px; }

  /* ---------- Animationen kleiner und ruhiger; „Animation anhalten“ steht unter der Zeichnung statt auf ihr (verdeckte die Bildunterschrift) ---------- */
  .ind-zeichnung { width: min(100%, 320px); }
  .ind-zeichnung .ani-knopf, .en-szene .ani-knopf { position: static; display: flex; width: max-content; margin: 10px 0 0 auto; }

  /* ---------- weitere Straffung ---------- */
  .abschnitt { padding-block: clamp(44px, 9vw, 64px); }
  .kopfzeile { gap: 12px; margin-bottom: 26px; }
  .ind-teaser-bild img { max-height: 220px; }
  .menue-stelle { display: flex; align-items: center; min-height: 48px; font-weight: 600; color: var(--gruen-tief); }

  /* ---------- Rechtstexte: Inhaltsverzeichnis oben, „nach oben“ am Ende der Abschnitte ---------- */
  .recht .recht-verz { display: block; margin: 0 0 1.4em; }
  .recht .recht-verz ul { list-style: none; padding: 0; margin: 0; }
  .recht .recht-verz li { margin: 0; }
  .recht .recht-verz a { display: flex; align-items: center; min-height: 44px; padding: 6px 4px; color: var(--tinte); text-decoration: none; border-bottom: 1px solid var(--linie); font-size: 1rem; line-height: 1.3; }
  .recht .recht-hoch { display: block; margin: 1em 0 0; text-align: right; font-size: .9375rem; }
  .recht .recht-hoch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; color: var(--gruen-tief); }
  .recht .recht-hoch + h2 { margin-top: .6em; }
}
@media (max-width: 480px) {
  .formular input.datei::file-selector-button { padding: 8px 12px; margin-right: 0; font-size: .9375rem; }
  .formular input.datei { padding: 8px 6px; }
  /* Der Browser-Text „Keine Datei ausgewählt“ passt neben den Knopf nicht und wurde mitten im Wort abgeschnitten.
     Mit Skript steht die Dateiliste (Namen und Größe) unter dem Feld – darum wird der Browser-Text hier ausgeblendet. */
  html.js .formular input.datei { font-size: 0; }
  html.js .formular input.datei::file-selector-button { font-size: .9375rem; }
}
