/* netzwerkfaehig 2026-09-16: Stile fuer die WHG-Bausteine (Systemkarten, Hotspot-Grafik, Zeitleiste, Projektmappe)
   und fuer Tabellen in Textbloecken. Eigenstaendige Datei, kein Webpack-Build noetig. Farben/Fonts wie Theme:
   Rot #ff0501, Oswald (Ueberschriften), Montserrat (Fliesstext). */
:root {
  --nf-red: #ff0501;
  --nf-ink: #111111;
  --nf-muted: #4b5563;
  --nf-line: #e5e7eb;
  --nf-bg: #f3f4f6;
}

/* ---------- Grundraster (wie .TextBaseElement: 12,5 % Rand) ---------- */
.nf-block { position: relative; z-index: 12; background: #fff; margin: 70px 0; padding: 0 12.5%; max-width: 2000px; font-family: Montserrat, sans-serif; }
@media (max-width: 1023px) { .nf-block { padding: 0 7%; } }
.nf-block__inner { max-width: 1500px; }
.nf-block__intro { margin-bottom: 2rem; }
.nf-block__after { margin-top: 2.5rem; }
.nf-block .typography h3 { margin-bottom: 1rem; }
.nf-block .typography p + p { margin-top: 1rem; }
.nf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Fliesstext-Abstaende (nur Bloecke mit Extra-CSS-Klasse "nf-prose", z. B. WHG-Seite) ---------- */
.nf-prose .typography p + p, .nf-prose .typography ul + p, .nf-prose .typography table + p, .nf-prose .typography p + ul, .nf-prose .typography p + table { margin-top: 1rem; }
.nf-prose .typography h2 { margin: 0 0 1rem; }
.nf-prose .typography h3 { margin: 2.25rem 0 .75rem; }
.nf-prose .typography h2 + h3, .nf-prose .typography h3:first-child { margin-top: 0; }
.nf-prose .typography ul { margin: .75rem 0; }
.nf-prose .typography li + li { margin-top: .35rem; }
.nf-prose .typography p.nf-note { margin-bottom: .25rem; }
.nf-prose .typography .main-cta a { margin-top: 1.5rem; }

/* ---------- Tabellen in Textbloecken und Bausteinen ---------- */
.typography table, .nf-block table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-family: Montserrat, sans-serif; font-size: clamp(.875rem, 1.6vw, 1rem); line-height: 1.5; text-align: left; }
.typography table th, .typography table td, .nf-block table th, .nf-block table td { padding: .75rem .9rem; border-bottom: 1px solid var(--nf-line); vertical-align: top; }
.typography table th, .nf-block table th { background: var(--nf-bg); font-weight: 700; color: var(--nf-ink); border-bottom: 2px solid #d1d5db; }
.typography table tr:last-child td, .nf-block table tr:last-child td { border-bottom: 2px solid #d1d5db; }
.typography table td:first-child, .nf-block table td:first-child { font-weight: 600; }
@media (max-width: 639px) {
  .typography table th, .typography table td, .nf-block table th, .nf-block table td { padding: .6rem .5rem; overflow-wrap: anywhere; hyphens: auto; }
  .typography table td:first-child, .nf-block table td:first-child { width: 38%; }
  /* Breite Tabellen (Klasse nf-stack, Zellen mit data-label): je Zeile ein Block, Spaltenname vor dem Wert */
  .typography table.nf-stack thead, .nf-block table.nf-stack thead { display: none; }
  .typography table.nf-stack, .typography table.nf-stack tbody, .typography table.nf-stack tr, .typography table.nf-stack td,
  .nf-block table.nf-stack, .nf-block table.nf-stack tbody, .nf-block table.nf-stack tr, .nf-block table.nf-stack td { display: block; width: 100%; }
  .typography table.nf-stack tr, .nf-block table.nf-stack tr { padding: .5rem 0 .75rem; border-bottom: 2px solid #d1d5db; }
  .typography table.nf-stack td, .nf-block table.nf-stack td { border: 0; padding: .25rem 0; }
  .typography table.nf-stack td:first-child, .nf-block table.nf-stack td:first-child { font-family: Oswald, sans-serif; font-size: 1.15rem; font-weight: 400; padding-bottom: .4rem; }
  .typography table.nf-stack td[data-label]:not(:first-child)::before, .nf-block table.nf-stack td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; }
}

/* Hinweiszeile an Tabellen / Bausteinen ("Richtpreise fuer einen definierten Standardfall") */
.nf-note, .typography p.nf-note { display: inline-block; margin: .5rem 0 .25rem; padding: .35rem .75rem; border-left: 4px solid var(--nf-red); background: var(--nf-bg); font-family: Montserrat, sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.5; color: var(--nf-ink); }

/* ---------- Systemkarten ---------- */
.nf-syscards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .nf-syscards { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.nf-syscard { border: 1px solid var(--nf-line); background: #fff; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.nf-syscard__title { font-family: Oswald, sans-serif; font-size: clamp(1.5rem, 3.75vw, 1.875rem); line-height: clamp(1.875rem, 4.5vw, 2.25rem); margin: 0; padding-bottom: .5rem; border-bottom: 3px solid var(--nf-red); }
.nf-syscard__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* nur ein Bild in der Karte (z. B. nur die Aufbaugrafik) -> volle Kartenbreite */
.nf-syscard__media > .nf-syscard__figure:only-child { grid-column: 1 / -1; }
.nf-syscard__media > .nf-syscard__figure--graphic:only-child img { aspect-ratio: auto; max-height: 15rem; }
.nf-syscard__figure { margin: 0; }
.nf-syscard__figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--nf-bg); }
.nf-syscard__figure--graphic img { object-fit: contain; background: #fff; border: 1px solid var(--nf-line); }
.nf-syscard__figure figcaption { margin-top: .4rem; font-size: .8rem; color: var(--nf-muted); }
.nf-syscard { font-size: 1rem; line-height: 1.5; }   /* Karte ist ein li: Theme-Werte fuer ul li (20px/36px) nicht erben */
.nf-syscard__text { font-size: 1rem; }

/* Aufzaehlungen in eigenen Bausteinen wie im Theme (Oswald 20px/36px), Stand alte Fugenseite (Markus 12.10.2026) */
.nf-block .typography li, .nf-prose .typography li, .nf-syscard__text li { font-family: Oswald, sans-serif; font-size: 20px; line-height: 36px; }

/* ---------- Hotspot-Grafik ---------- */
.nf-hotspot { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .nf-hotspot { grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: start; } }
.nf-hotspot__figure { margin: 0; }
.nf-hotspot__stage { position: relative; }
.nf-hotspot__stage img { display: block; width: 100%; height: auto; }
.nf-hotspot__caption { margin-top: .5rem; font-size: .8rem; color: var(--nf-muted); }
.nf-hotspot__marker { position: absolute; transform: translate(-50%, -50%); width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 0; background: var(--nf-red); color: #fff; font-family: Oswald, sans-serif; font-size: 1.05rem; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0, 0, 0, .45); transition: transform .2s ease, background-color .2s ease; }
.nf-hotspot__marker:hover, .nf-hotspot__marker:focus-visible { transform: translate(-50%, -50%) scale(1.12); }
.nf-hotspot__marker:focus-visible, .nf-hotspot__tab:focus-visible, .nf-timeline__btn:focus-visible, .nf-folder__btn:focus-visible { outline: 3px solid var(--nf-ink); outline-offset: 2px; }
.nf-hotspot__marker.is-active { background: #fff; color: var(--nf-red); box-shadow: 0 0 0 3px var(--nf-red), 0 2px 8px rgba(0, 0, 0, .45); }
.nf-hotspot__item + .nf-hotspot__item { margin-top: .5rem; }
.nf-hotspot__tab { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; border: 0; border-left: 4px solid transparent; background: var(--nf-bg); padding: .75rem 1rem; font-family: Oswald, sans-serif; font-size: 1.15rem; color: var(--nf-ink); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.nf-hotspot__tab:hover { background: #e9eaee; }
.nf-hotspot__tab.is-active { border-left-color: var(--nf-red); background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.nf-hotspot__tabnum { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--nf-red); color: #fff; font-size: .95rem; font-weight: 700; }
.nf-hotspot__tab.is-active .nf-hotspot__tabnum { background: var(--nf-ink); }
.nf-hotspot__tabtitle { flex: 1 1 auto; }
.nf-hotspot__text { padding: 1rem 1rem 1.25rem 2rem; font-size: 1rem; }
.nf-hotspot.is-enhanced .nf-hotspot__item:not(.is-active) .nf-hotspot__text { display: none; }
.nf-hotspot.is-enhanced .nf-hotspot__tab { text-transform: none; }

/* ---------- Zeitleiste ---------- */
.nf-timeline__steps { list-style: none; margin: 0; padding: 0; }
.nf-timeline__btn { display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 100%; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: center; color: var(--nf-ink); }
.nf-timeline__num { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--nf-red); background: #fff; color: var(--nf-red); font-family: Oswald, sans-serif; font-size: 1.25rem; font-weight: 700; position: relative; z-index: 1; transition: background-color .2s ease, color .2s ease; }
.nf-timeline__btn:hover .nf-timeline__num { background: #ffe5e4; }
.nf-timeline__btn.is-active .nf-timeline__num { background: var(--nf-red); color: #fff; }
.nf-timeline__title { font-family: Montserrat, sans-serif; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.nf-timeline__btn.is-active .nf-timeline__title { color: var(--nf-red); }
.nf-timeline__detail { background: var(--nf-bg); border-left: 4px solid var(--nf-red); padding: 1.25rem 1.5rem; font-size: 1rem; line-height: 1.5; }
.nf-timeline__detail p + p { margin-top: .5rem; }
.nf-timeline__detailtitle { font-family: Oswald, sans-serif; font-size: 1.25rem; margin: 0 0 .5rem; }
.nf-timeline__note { margin-top: 1.25rem; }
.nf-timeline.is-enhanced .nf-timeline__detail:not(.is-active) { display: none; }
/* mobil: vertikal mit Linie */
.nf-timeline__step { position: relative; padding: 0 0 1.5rem 3.75rem; }
.nf-timeline__step::before { content: ""; position: absolute; left: 1.35rem; top: 2.75rem; bottom: 0; width: 2px; background: var(--nf-line); }
.nf-timeline__step:last-child::before { display: none; }
.nf-timeline__step .nf-timeline__btn { position: static; flex-direction: row; text-align: left; gap: 1rem; min-height: 2.75rem; }
.nf-timeline__step .nf-timeline__num { position: absolute; left: 0; top: 0; }
.nf-timeline__step .nf-timeline__detail { margin-top: 1rem; }
.nf-timeline__step .nf-timeline__detailtitle { display: none; }
/* Desktop: horizontal, Details unter der Reihe */
@media (min-width: 1024px) {
  .nf-timeline__steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row dense; column-gap: .75rem; row-gap: 1.5rem; }
  .nf-timeline__step { display: contents; }
  .nf-timeline__step::before { display: none; }
  .nf-timeline__step .nf-timeline__btn { grid-row: 1; position: relative; flex-direction: column; text-align: center; gap: .6rem; }
  .nf-timeline__step .nf-timeline__btn::before { content: ""; position: absolute; left: 0; right: 0; top: 1.375rem; height: 2px; background: var(--nf-line); }
  .nf-timeline__step:first-child .nf-timeline__btn::before { left: 50%; }
  .nf-timeline__step:last-child .nf-timeline__btn::before { right: 50%; }
  .nf-timeline__step .nf-timeline__num { position: relative; left: auto; top: auto; }
  .nf-timeline__step .nf-timeline__detail { grid-column: 1 / -1; margin-top: 0; }
  .nf-timeline__step .nf-timeline__detailtitle { display: block; }
}

/* ---------- Projektmappe ---------- */
.nf-folder__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.nf-folder__btn { display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left; border: 0; border-left: 4px solid transparent; background: var(--nf-bg); padding: .85rem 1rem; font-family: Oswald, sans-serif; font-size: 1.15rem; color: var(--nf-ink); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.nf-folder__btn:hover { background: #e9eaee; }
.nf-folder__btn.is-active { border-left-color: var(--nf-red); background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.nf-folder__icon { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; fill: var(--nf-red); }
.nf-folder__btn.is-active .nf-folder__icon { fill: var(--nf-ink); }
.nf-folder__num { color: var(--nf-red); font-weight: 700; margin-right: .25rem; }
.nf-folder__preview { display: grid; grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: start; padding: 1rem 1rem 1.25rem 2rem; }
.nf-folder__sheet { display: flex; flex-direction: column; gap: .5rem; width: 6.5rem; padding: .9rem .7rem; background: #fff; border: 1px solid var(--nf-line); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); aspect-ratio: 1 / 1.35; }
.nf-folder__sheetline { display: block; height: 4px; border-radius: 2px; background: #d1d5db; width: 100%; }
.nf-folder__sheetline--title { height: 7px; width: 70%; background: var(--nf-red); margin-bottom: .35rem; }
.nf-folder__sheetline--short { width: 55%; }
.nf-folder__desc { font-size: 1rem; line-height: 1.5; }
.nf-folder__title { font-family: Oswald, sans-serif; font-size: 1.25rem; margin: 0 0 .4rem; }
.nf-folder__doc { margin-top: .75rem; }
.nf-folder__doc a { color: var(--nf-red); text-decoration: underline; }
.nf-folder__note { margin-top: 1.25rem; }
.nf-folder.is-enhanced .nf-folder__item:not(.is-active) .nf-folder__preview { display: none; }
@media (min-width: 1024px) {
  .nf-folder.is-enhanced .nf-folder__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); column-gap: 2.5rem; align-items: start; }
  .nf-folder.is-enhanced .nf-folder__item { display: contents; }
  .nf-folder.is-enhanced .nf-folder__btn { grid-column: 1; }
  .nf-folder.is-enhanced .nf-folder__preview { grid-column: 2; grid-row: 1 / span 12; padding: 0 0 0 .5rem; }
}

/* ---------- Fugensanierung/Arbeitssicherheit/POWERFLEX (netzwerkfaehig 2026-09-22) ---------- */
.nf-prose .typography p.nf-kicker, .AccordionBaseElement--headline .nf-kicker { display: block; font-family: Oswald, sans-serif; font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.3; color: var(--nf-red); margin: 0 0 .35rem; }
.nf-prose .typography p.nf-kicker + h2 { margin-top: 0; }
.nf-prose .typography p.nf-note + h3 { margin-top: 1.5rem; }
.nf-syscard__text .main-cta a { margin-top: .75rem; }
@media (min-width: 1024px) { .nf-syscards--3 .nf-syscards { grid-template-columns: 1fr 1fr 1fr; } }
.nf-imagerow { list-style: none; margin: 1.25rem 0 .5rem; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .nf-imagerow { grid-template-columns: 1fr 1fr 1fr; } }
.nf-imagerow li { aspect-ratio: 3 / 2; display: flex; align-items: flex-end; padding: 1rem; border: 2px dashed #d1d5db; background: var(--nf-bg); font-family: Oswald, sans-serif; font-size: 1.15rem; color: var(--nf-ink); }
.ImageTextBaseElement.nf-prose .ImageTextBaseElement-content-inner-container { max-width: 560px; }

.HeroImageBaseElement .content-wrapper p.nf-hero-kicker { font-family: Oswald, sans-serif; font-size: clamp(20px, 3.2vw, 26px); line-height: 1.25; padding: 2% 6.25% 2% 12.5%; margin: 0; }

/* ---------- Systemfinder (POWERFLEX) ---------- */
.nf-finder__bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.nf-finder__btn { border: 2px solid var(--nf-red); background: #fff; color: var(--nf-red); font-family: Oswald, sans-serif; font-size: 1.15rem; padding: .55rem 1.25rem; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.nf-finder__btn:hover, .nf-finder__btn.is-active { background: var(--nf-red); color: #fff; }
.nf-finder__btn:focus-visible { outline: 3px solid var(--nf-ink); outline-offset: 2px; }
.nf-finder:not(.is-enhanced) .nf-finder__bar { display: none; }
.nf-finder__item { border: 1px solid var(--nf-line); background: #fff; padding: 1.5rem; }
.nf-finder__item + .nf-finder__item { margin-top: 1.5rem; }
.nf-finder.is-enhanced .nf-finder__item:not(.is-active) { display: none; }
.nf-finder__title { font-family: Oswald, sans-serif; font-size: clamp(1.5rem, 3.75vw, 1.875rem); line-height: clamp(1.875rem, 4.5vw, 2.25rem); margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 3px solid var(--nf-red); }
.nf-finder__stage { display: flex; align-items: stretch; height: 5.5rem; background: #fff; }
.nf-finder__slab { flex: 1 1 0; background: repeating-linear-gradient(135deg, #d6d8dc 0 6px, #c9ccd1 6px 12px); border-top: 4px solid #9ca3af; }
.nf-finder__band { flex: 0 0 calc(var(--nf-w, 100) * .4%); display: flex; align-items: center; justify-content: center; background: var(--nf-red); color: #fff; font-family: Oswald, sans-serif; font-size: .95rem; white-space: nowrap; transition: flex-basis .35s ease; }
.nf-finder__note { margin: .4rem 0 0; font-size: .8rem; color: var(--nf-muted); }
.nf-finder__values { display: grid; gap: 1rem 2rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .nf-finder__values { grid-template-columns: 1fr 1fr; } }
.nf-finder__dl { margin: 0; }
.nf-finder__group { font-family: Oswald, sans-serif; font-size: 1.15rem; font-weight: 700; margin: 0 0 .35rem; }
.nf-finder__dl dd { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--nf-line); }
.nf-finder__k { color: var(--nf-muted); }
.nf-finder__v { font-weight: 700; text-align: right; }

/* ---------- Aufklappmenue im Kopf (netzwerkfaehig 2026-09-22) ---------- */
.nf-dd { position: relative; display: inline-flex; align-items: center; gap: .25rem; }
.nf-dd__toggle { border: 0; background: transparent; color: #fff; padding: .25rem; line-height: 0; cursor: pointer; }
.nf-dd__toggle:hover .nf-dd__caret, .nf-dd:hover .nf-dd__caret, .nf-dd__toggle[aria-expanded="true"] .nf-dd__caret { border-top-color: var(--nf-red); }
.nf-dd__toggle:focus-visible, .nf-ddm__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nf-dd__caret { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #fff; transition: border-color .3s ease, transform .3s ease; }
.nf-dd__sr, .nf-ddm .nf-dd__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nf-dd__panel { position: absolute; top: 100%; left: -1rem; min-width: 17rem; display: none; flex-direction: column; background: #000; border-top: 3px solid var(--nf-red); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); padding: .5rem 0; z-index: 20001; }
.nf-dd:hover .nf-dd__panel, .nf-dd:focus-within .nf-dd__panel, .nf-dd.is-open .nf-dd__panel { display: flex; }
.nf-dd__item { display: block; padding: .6rem 1.25rem; color: #fff; font-size: .95rem; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.nf-dd__item:hover, .nf-dd__item:focus-visible, .nf-dd__item.active { background: #151515; color: var(--nf-red); }
.nf-dd__panel::before { content: ""; position: absolute; top: -1.25rem; left: 0; right: 0; height: 1.25rem; }

/* mobil: Unterpunkte aufklappbar unter dem Hauptpunkt */
.nf-ddm { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; width: 100%; }
.nf-ddm > .nav-link { margin-bottom: 0; }
.nf-ddm__toggle { border: 0; background: transparent; color: #fff; padding: .5rem; line-height: 0; cursor: pointer; }
.nf-ddm__toggle[aria-expanded="true"] .nf-dd__caret { transform: rotate(180deg); border-top-color: var(--nf-red); }
.nf-ddm__panel { flex: 0 0 100%; display: flex; flex-direction: column; margin: .25rem 0 15px; padding-left: 1rem; border-left: 3px solid var(--nf-red); }
.nf-ddm.is-collapsed .nf-ddm__panel { display: none; }
.nf-ddm__item { display: block; padding: .45rem 0; color: #fff; font-size: 1.15rem; text-decoration: none; }
.nf-ddm__item:hover, .nf-ddm__item.active { color: var(--nf-red); }

/* ---------- Bild-Element (netzwerkfaehig 2026-09-22) ---------- */
.nf-figure { margin: 2.5rem 0; position: relative; z-index: 12; background: #fff; }   /* deckt die feste rote Linie des Themes (#main::before) ab, wie alle Theme-Bausteine */
.nf-figure__inner { max-width: 2000px; margin: 0 auto; padding: 0 12.5%; }
.nf-figure--voll .nf-figure__inner { max-width: none; padding: 0; }
.nf-figure__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
/* Theme setzt fuer jedes ul li einen roten Pfeil als Hintergrundbild plus Einzug - im Bild-Element weg */
.nf-figure__list > li, .nf-figure--reihe-grafik .nf-figure__list > li { background: none; margin-left: 0; padding-left: 0; font-size: inherit; line-height: inherit; }
.nf-figure--reihe .nf-figure__list { grid-template-columns: 1fr; }
@media (min-width: 768px) { .nf-figure--reihe .nf-figure__list, .nf-figure--reihe-grafik .nf-figure__list { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); } }
.nf-figure--reihe-grafik .nf-figure__list { display: grid; gap: 1.25rem; }
.nf-figure--reihe-grafik img { object-fit: contain; background: #fff; }
.nf-figure figure { margin: 0; }
.nf-figure img { display: block; width: 100%; height: auto; }
.nf-figure--reihe img { aspect-ratio: 3 / 2; object-fit: cover; }
.nf-figure--reihe .nf-figure__inner { padding: 0 6.25%; }   /* Bildreihen breiter als die Textspalte (Markus 12.10.2026) */
@media (max-width: 1023px) { .nf-figure--reihe .nf-figure__inner { padding: 0 7%; } }
.nf-figure--schmal .nf-figure__inner { max-width: 1100px; }
@media (min-width: 768px) { .nf-figure--schmal .nf-figure__list { max-width: 32rem; } }
.nf-figure__caption { margin-top: .5rem; font-family: Montserrat, sans-serif; font-size: .8rem; color: var(--nf-muted); }
.nf-figure--voll .nf-figure__caption { padding: 0 12.5%; }
.nf-figure__text { margin-top: 1rem; }
.nf-figure--voll .nf-figure__text { padding: 0 12.5%; }
.nf-figure + .TextBaseElement, .TextBaseElement + .nf-figure { margin-top: 1.5rem; }

/* Kennzahlen-Modul (POWERFLEX: Verarbeitung ab 0 Grad, Belastung nach rund einer Stunde) */
.nf-kpi { display: grid; gap: 1.25rem; margin: 1.5rem 0 .75rem; }
@media (min-width: 640px) { .nf-kpi { grid-template-columns: 1fr 1fr; } }
.nf-kpi__item { border: 1px solid var(--nf-line); background: #fff; padding: 1.75rem 1.5rem; }
.nf-kpi__item--invers { background: var(--nf-ink); border-color: var(--nf-ink); color: #fff; border-top: 5px solid var(--nf-red); }
.nf-kpi__wert { display: block; font-family: Oswald, sans-serif; font-size: clamp(2.75rem, 8vw, 4rem); line-height: 1; margin: 0 0 .5rem; }
.nf-kpi__text { display: block; font-family: Montserrat, sans-serif; font-size: .95rem; line-height: 1.4; border-left: 4px solid var(--nf-red); padding-left: .75rem; }
.nf-kpi__item--invers .nf-kpi__text { border-left-color: #fff; }
.nf-kpi__fussnote { font-family: Montserrat, sans-serif; font-size: .8rem; color: var(--nf-muted); margin: 0; }

/* ---------- Schrift wie die Originalseiten (Massstab /fugensanierung-industrieboden, Markus 12.10.2026) ----------
   Dort: Ueberschrift h2 = cmsText-5xl 48px, Unterueberschrift h3 = cmsText-3xl 30px/36px, Fliesstext Montserrat 16px, Listen Oswald 20px/36px.
   Entwuerfe nutzen nackte h3 (Theme: 36px) -> hier auf die Originalwerte. Zeilenabstand im Fliesstext etwas weiter (Markus 12.10.: "grosszuegiger"). */
.nf-prose .typography h3, .nf-block .typography h3, .nf-block h3.nf-syscard__title, .nf-block h3.nf-finder__title,
.nf-timeline__detailtitle, .nf-folder__title { font-family: Oswald, sans-serif; font-size: clamp(1.5rem, 3.75vw, 1.875rem); line-height: clamp(1.875rem, 4.5vw, 2.25rem); font-weight: 400; }
.nf-prose .typography h4, .nf-block .typography h4 { font-family: Oswald, sans-serif; font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: clamp(1.625rem, 4vw, 2rem); font-weight: 400; }
.nf-prose .typography p, .nf-block .typography p, .nf-block p, .nf-syscard__text p, .nf-timeline__detail, .nf-folder__desc, .nf-figure__text p { line-height: 1.6; }

/* ---------- Bild-Text-Baustein mit langem Text: Bild in seinem Seitenverhaeltnis, bleibt beim Scrollen sichtbar (statt Dehnung/Beschnitt) ---------- */
.ImageTextBaseElement.nf-prose .ImageTextBaseElement-image-container { display: block; }
.ImageTextBaseElement.nf-prose .ImageTextBaseElement-image { height: auto; }
.ImageTextBaseElement.nf-prose .ImageTextBaseElement-image img { height: auto; object-fit: contain; }
@media (min-width: 768px) { .ImageTextBaseElement.nf-prose .ImageTextBaseElement-image { position: sticky; top: 8rem; } }

/* ---------- Ablauf "Fugen sanieren. Betrieb in Bewegung halten." als Code (statt Screenshot-Grafik, Markus 12.10.2026) ---------- */
.nf-figure--ablauf .nf-figure__list { position: relative; }
.nf-figure--ablauf .nf-figure__text { margin-top: 1.5rem; }
.nf-ablauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: schritt; }
.nf-ablauf__schritt { display: grid; grid-template-columns: 3.75rem 1fr; column-gap: 1rem; align-items: center; background: none; margin-left: 0; padding-left: 0; counter-increment: schritt; font-family: Montserrat, sans-serif; font-size: 1rem; line-height: 1.6; }
.nf-ablauf__schritt::before { content: ""; grid-row: 1 / span 2; width: 3.75rem; height: 3rem; background: no-repeat center / contain; }
.nf-ablauf__schritt--kelle::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 36h38l8-16H14z'/><path d='M33 20v-8h14'/><path d='M47 8h10v8H47z'/><path d='M4 44h56'/></svg>"); }
.nf-ablauf__schritt--stapler::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M10 36V20h18l6 8v8'/><path d='M14 20v-8h10v8'/><path d='M44 6v30h16'/><path d='M40 28h4'/><circle cx='16' cy='40' r='4'/><circle cx='32' cy='40' r='4'/></svg>"); }
.nf-ablauf__titel { display: flex; align-items: baseline; gap: .6rem; font-family: Oswald, sans-serif; font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.2; font-weight: 400; text-transform: uppercase; color: var(--nf-ink); }
.nf-ablauf__titel::before { content: "0" counter(schritt); color: var(--nf-red); font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1; }
.nf-ablauf__text { display: block; }
@media (min-width: 768px) {
  .nf-figure--ablauf .nf-figure__list, .nf-ablauf { grid-template-columns: 1fr 1fr; column-gap: 6rem; }
  .nf-figure--ablauf .nf-figure__list::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6rem; height: 2px; transform: translate(-50%, -50%); background: linear-gradient(to right, var(--nf-red) 0 28%, transparent 28% 72%, var(--nf-red) 72% 100%); }
  .nf-figure--ablauf .nf-figure__list::before { content: "\00bb"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); z-index: 1; color: var(--nf-red); font-family: Oswald, sans-serif; font-size: 3rem; line-height: 1; }
}

/* ---------- Arbeitssicherheit "Einsparfaktor": Text links, rechts zwei Fotos im Verbund (Stapler oben links, Rad darunter rechts; Markus 12.10.2026) ---------- */
.nf-figure--einspar .nf-figure__inner { display: grid; gap: 2rem; }
.nf-figure--einspar .nf-figure__text { order: -1; margin-top: 0; }
.nf-figure--einspar .nf-figure__list { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1rem; align-content: start; }
.nf-figure--einspar .nf-figure__item:nth-child(1) { grid-column: 1 / span 8; }
.nf-figure--einspar .nf-figure__item:nth-child(2) { grid-column: 3 / span 8; }
.nf-figure--einspar img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 768px) {
  .nf-figure--einspar .nf-figure__inner { grid-template-columns: 1fr 1fr; column-gap: 4rem; align-items: start; }
  .nf-figure--einspar .nf-figure__text { grid-column: 1; grid-row: 1; order: 0; }
  .nf-figure--einspar .nf-figure__list { grid-column: 2; grid-row: 1; position: sticky; top: 8rem; }
}

/* ---------- Polymerfuge 12.10.2026: Kennzahlen zu viert, Ablauf ohne Icon, Einzel-Platzhalter ---------- */
@media (min-width: 640px) { .nf-kpi--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nf-kpi--4 { grid-template-columns: repeat(4, 1fr); } }
.nf-kpi--4 .nf-kpi__wert { font-size: clamp(2rem, 4vw, 2.75rem); }
.nf-ablauf--ohne-icon .nf-ablauf__schritt { grid-template-columns: 1fr; }
.nf-ablauf--ohne-icon .nf-ablauf__schritt::before { display: none; }
@media (min-width: 640px) { .nf-imagerow--1 { grid-template-columns: 1fr 1fr 1fr; } .nf-imagerow--1 li { grid-column: 1 / 2; } }
.TextBaseElement .nf-ablauf .nf-ablauf__schritt { background: none; margin-left: 0; padding-left: 0; }
.TextBaseElement .nf-ablauf .nf-ablauf__text { font-family: Montserrat, sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.6; color: var(--nf-ink); }

/* ---------- "Passende Leistungen": drei verlinkte Karten am Ende jeder Leistungsseite (Markus 13.10.2026, Vorbild www "Passende Leistungen").
   Baustein = TextBaseElement mit ExtraClass nf-leistungen, Inhalt aus scripts/nf-leistungen-block.php (Titel + MetaDescription der Zielseiten). ---------- */
.nf-leistungen .typography h2 { margin-bottom: 1.5rem; }
.nf-leistungen .typography ul.nf-leistungen__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .nf-leistungen .typography ul.nf-leistungen__list { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.nf-leistungen .typography li.nf-leistungen__item { margin: 0; padding: 0; font-family: Montserrat, sans-serif; font-size: 1rem; line-height: 1.5; }
.nf-leistungen .typography li.nf-leistungen__item::before, .nf-leistungen .typography li.nf-leistungen__item::marker { content: none; }
.nf-leistungen .typography a.nf-leistungen__link { display: flex; flex-direction: column; gap: .75rem; height: 100%; border: 1px solid var(--nf-line); border-top: 5px solid var(--nf-red); background: #fff;
  padding: 1.5rem; color: var(--nf-ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.nf-leistungen .typography a.nf-leistungen__link:hover, .nf-leistungen .typography a.nf-leistungen__link:focus-visible { box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .12); transform: translateY(-2px); color: var(--nf-ink); text-decoration: none; }
.nf-leistungen__title { font-family: Oswald, sans-serif; font-size: clamp(1.5rem, 3.75vw, 1.875rem); line-height: 1.2; }
.nf-leistungen__text { flex: 1; color: var(--nf-muted); }
.nf-leistungen__more { font-weight: 600; color: var(--nf-red); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }

/* ---------- Hero-H1 mit mehreren Saetzen (Bodenpaneel 13.10.2026: drei Saetze = sechs Zeilen, Kasten lief am Desktop aus dem 100vh-Hero) ----------
   Kundentext bleibt, nur kleinere Schrift im roten Kasten. Klasse im Generator setzen: <h1 class="nf-hero-h1--lang">. */
.HeroImageBaseElement .content-wrapper h1.nf-hero-h1--lang, .HeroBaseElement .content-wrapper h1.nf-hero-h1--lang { font-size: clamp(28px, 4.6vw, 52px); line-height: clamp(38px, 5.6vw, 64px); }

/* ---------- 2026-10-15: Datum "Stand" am Seitenende ---------- */
.nf-stand { max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem 2.5rem; text-align: right; font-size: 0.875rem; color: #6b7280; }

/* ---------- 2026-10-15: Kurzantwort unter der H1 im Hero (sichtbar erst nach Freigabe/Publish). Die Hero-Vorlage setzt jeden Absatz als rotes
   Versalien-Etikett (36-50 px) - die Kurzantwort bekommt deshalb normale Schreibweise, dunklen Grund und Fliesstextgroesse. Der Scroll-Pfeil
   wuerde mit der hoeheren Textbox kollidieren (Messung 360x640, 1280x720, 1440x900) und entfaellt auf Seiten mit Kurzantwort. ---------- */
.HeroImageBaseElement .content-wrapper p.nf-lead { display: block; margin-top: 10px; padding: 14px 6.25% 14px 12.5%; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; text-transform: none; background: rgba(0, 0, 0, .72); max-width: 600px; }
.HeroImageBaseElement:has(p.nf-lead) .animated-arrow { display: none; }

/* netzwerkfaehig 2026-10-15: Anfrage direkt auf der Leistungsseite (Layout/ElementalPage.ss, Formular = Element 25 von /kontakt) */
.nf-anfrage { background: var(--nf-bg); border-top: 4px solid var(--nf-red); padding: clamp(2rem, 5vw, 4rem) 1rem; }
.nf-anfrage > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.nf-anfrage__kopf h2 { font-family: Oswald, sans-serif; font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; margin: 0 0 .75rem; color: var(--nf-ink); }
.nf-anfrage__kopf p { font-family: Montserrat, sans-serif; font-size: 1rem; line-height: 1.6; color: var(--nf-ink); margin: 0 0 1.5rem; }
.nf-anfrage__kopf a { color: var(--nf-red); font-weight: 700; white-space: nowrap; }
.nf-anfrage .form-element__form { background: #fff; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--nf-line); }
.nf-anfrage__aktion { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 auto; }
.nf-anfrage__knopf { display: inline-block; padding: .9rem 1.5rem; background: var(--nf-red); color: #fff !important; font-family: Montserrat, sans-serif; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.nf-anfrage__knopf--tel { background: var(--nf-ink); }
.nf-anfrage__knopf:hover, .nf-anfrage__knopf:focus-visible { opacity: .9; outline: 2px solid var(--nf-ink); outline-offset: 2px; }
