/* © 2026 Martin Scherer · Fachwerte (https://www.fachwerte.de) · Alle Rechte vorbehalten.
   Wärmepumpen-Fundament — Original: https://www.fachwerte.de/tools/waermepumpen-fundament/ · Kennung FWWF-2026-09-23 */

.wf-intro { max-width: 60rem; margin: 0 auto; padding: 1.5rem 1rem 0; }
@media (min-width: 40rem) { .wf-intro { padding-left: 1.5rem; padding-right: 1.5rem; } }
.wf-intro h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; margin: 0 0 .6rem; font-weight: 400; }
.wf-intro h1 strong { font-weight: 700; }
.wf-intro p { max-width: 68ch; line-height: 1.65; color: var(--fw-text-2); margin: 0; }

.wf-app [hidden], .wf-seo [hidden], dialog.wf-dialog [hidden] { display: none !important; }
.wf-app { max-width: 92rem; margin: 1.25rem auto 0; padding: 0 1rem; font-family: var(--fw-font); }
@media (min-width: 40rem) { .wf-app { padding: 0 1.5rem; } }
.wf-kasten { border: 1px solid var(--fw-border); border-radius: var(--fw-radius-lg); background: var(--fw-bg); overflow: hidden; }

.wf-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid var(--fw-border); background: var(--fw-surface); }
.wf-bar-spacer { flex: 1 1 auto; }
.wf-projekt { flex: 1 1 14rem; min-width: 10rem; }

.wf-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.2rem; padding: .35rem .7rem;
          border: 1px solid var(--fw-border-str); border-radius: var(--fw-radius-lg); background: var(--fw-bg); color: var(--fw-text);
          font: inherit; font-size: .84rem; font-weight: 500; cursor: pointer; }
.wf-btn:hover { border-color: var(--fw-accent); }
.wf-btn--primary { background: var(--fw-accent); border-color: var(--fw-accent); color: #fff; }
.wf-btn--quiet { border-color: transparent; background: transparent; color: var(--fw-text-2); }
.wf-btn[aria-pressed="true"] { background: var(--fw-accent-sf); border-color: var(--fw-accent); color: var(--fw-accent); }
.wf-btn--3d[aria-pressed="true"] { background: #1f1f1d; border-color: #1f1f1d; color: #fff; }
.wf-btn:disabled { opacity: .5; cursor: default; }
.wf-btn--klein { min-height: 1.9rem; font-size: .78rem; padding: .25rem .55rem; }

.wf-input, .wf-select { font: inherit; font-size: .88rem; padding: .4rem .55rem; border: 1px solid var(--fw-border-str); border-radius: var(--fw-radius); background: var(--fw-bg); color: var(--fw-text); width: 100%; min-width: 0; }
.wf-input:focus, .wf-select:focus { outline: 2px solid var(--fw-accent); outline-offset: 1px; }

.wf-muster-hinweis { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .55rem .8rem; background: var(--fw-accent-sf); border-bottom: 1px solid var(--fw-border); font-size: .84rem; }

.wf-grid { display: grid; grid-template-columns: 21rem minmax(0, 1fr); height: clamp(30rem, 74vh, 48rem); }
@media (max-width: 60rem) {
    .wf-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
    .wf-seite { max-height: none; border-top: 1px solid var(--fw-border); border-right: 0; }
    .wf-seite--links { order: 2; } .wf-mitte { order: 1; }
    .wf-app { padding: 0; }
    .wf-kasten { border-left: 0; border-right: 0; border-radius: 0; }
    .wf-bar .wf-projekt { flex-basis: 100%; }
}
.wf-seite { overflow: auto; min-height: 0; background: var(--fw-surface); }
.wf-seite--links { border-right: 1px solid var(--fw-border); }
.wf-seite-inhalt { padding: .7rem .8rem 1rem; }

.wf-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin: 0 0 .6rem; padding: .25rem; background: var(--fw-surface-2); border-radius: var(--fw-radius-lg); }
.wf-tabs--drei { grid-template-columns: 1fr 1fr 1fr; }
.wf-tab-kn { border: 1px solid transparent; border-radius: var(--fw-radius); padding: .45rem .3rem; background: transparent; font: inherit; font-size: .8rem; font-weight: 600; color: var(--fw-text-2); cursor: pointer; line-height: 1.25; }
.wf-tab-kn[aria-pressed="true"] { background: var(--fw-bg); border-color: var(--fw-border-str); color: var(--fw-text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.wf-tab-kn small { display: block; font-weight: 400; font-size: .68rem; color: var(--fw-muted); }
.wf-block { margin: 0 0 .8rem; }
.wf-block > summary { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fw-muted); cursor: pointer; padding: .3rem 0; list-style: revert; }
.wf-block > h3 { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fw-muted); margin: .2rem 0 .5rem; }
.wf-feld { margin: 0 0 .5rem; }
.wf-feld label, .wf-lbl { display: block; font-size: .74rem; font-weight: 600; color: var(--fw-text-2); margin: 0 0 .2rem; }
.wf-lbl--check { display: flex; align-items: center; gap: .4rem; font-weight: 500; margin: .3rem 0 .5rem; cursor: pointer; }
.wf-lbl--check input { width: 1.05rem; height: 1.05rem; accent-color: var(--fw-accent); margin: 0; }
.wf-hinw { display: block; font-size: .72rem; color: var(--fw-muted); margin-top: .2rem; line-height: 1.4; }
.wf-zeile { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.wf-zeile > * { flex: 1 1 4rem; }
.wf-zeile > .wf-btn { flex: 0 0 auto; }
.wf-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.wf-drei { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .45rem; }
.wf-preise { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .45rem; }
/* Aussparungen der Decke: Zeilen mit Vorlage, Maß, Lage und Anzahl */
.wf-aus-zeile { border: 1px solid var(--fw-border); border-radius: var(--fw-radius); background: var(--fw-bg); padding: .4rem .45rem .1rem; margin: 0 0 .4rem; }
.wf-aus-zeile .wf-zeile > .wf-aus-nr { flex: 0 0 auto; font-size: .78rem; font-weight: 700; color: #c0392b; }
.wf-aus-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr)); gap: 0 .45rem; margin-top: .4rem; }
.wf-aus-felder .wf-feld label { font-size: .68rem; }
.wf-aus-mark { color: #c0392b; white-space: nowrap; }
.wf-oeff-zeile .wf-zeile > .wf-oeff-nr { flex: 0 0 auto; font-size: .78rem; font-weight: 700; color: #1f5f9a; }
.wf-oeff-zeile .wf-aus-felder { grid-template-columns: repeat(auto-fit, minmax(5.4rem, 1fr)); }

.wf-mitte { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.wf-tools { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .45rem .6rem; border-bottom: 1px solid var(--fw-border); background: var(--fw-bg); font-size: .8rem; }
.wf-ansichten { display: flex; flex-wrap: wrap; gap: .3rem; }
.wf-tools .wf-lbl--check { margin: 0; font-size: .76rem; }
.wf-tools .wf-select { width: auto; font-size: .78rem; padding: .25rem .4rem; }
.wf-3d-hinweis { font-size: .72rem; color: var(--fw-muted); flex: 1 1 12rem; }
#wf-3d-optionen { flex: 1 1 auto; min-width: 0; }
#wf-3d-optionen > * { flex: 0 0 auto; }
@media (max-width: 60rem) { .wf-3d-hinweis { display: none; } .wf-tools { padding: .4rem .5rem; } }
.wf-leinwand-wrap { flex: 1 1 auto; min-height: 0; position: relative; background: #fff; touch-action: pan-y; cursor: default; }
.wf-leinwand-wrap.ist-3d { touch-action: none; cursor: grab; }
.wf-leinwand-wrap.ist-ziel { cursor: pointer; }
.wf-leinwand-wrap.ist-schiebt { cursor: grabbing; }
@media (max-width: 60rem) { .wf-leinwand-wrap { min-height: 16rem; height: 46vh; } }
#wf-leinwand { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.wf-intro--unten { max-width: none; padding: 0 0 .5rem; margin: 0 0 1rem; }
.wf-intro--unten h1 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
@media (max-width: 60rem) { .wf-app { margin-top: .5rem; } }
.wf-status { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; padding: .45rem .7rem; border-top: 1px solid var(--fw-border); font-size: .8rem; color: var(--fw-text-2); background: var(--fw-surface); }
.wf-status strong { color: var(--fw-text); }
#wf-status { display: contents; }
.wf-status-link { margin-left: auto; color: var(--fw-accent); text-decoration: none; font-weight: 600; }
/* Infozeile zum angeklickten Bauteil (Treffertest in den 2D-Plänen) */
.wf-info { display: flex; align-items: center; gap: .45rem; padding: .4rem .7rem; border-top: 1px solid var(--fw-border); background: #fff5ec; font-size: .8rem; color: var(--fw-text); font-weight: 600; }
.wf-info::before { content: ''; flex: 0 0 auto; width: .6rem; height: .6rem; border-radius: 50%; background: #ff6a00; }
.wf-info[hidden] { display: none; }

.wf-tab { width: 100%; border-collapse: collapse; font-size: .84rem; }
.wf-tab th, .wf-tab td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--fw-border); vertical-align: top; line-height: 1.45; }
.wf-tab thead th { font-weight: 600; color: var(--fw-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; background: var(--fw-surface); }
.wf-tab .wf-r { text-align: right; white-space: nowrap; }
.wf-tab tr.wf-tab-gruppe td { font-weight: 700; background: var(--fw-surface); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fw-text-2); }
.wf-tab tr.wf-tab-summe td { font-weight: 700; border-top: 2px solid var(--fw-text); }
.wf-tab tr.ist-optional td { color: var(--fw-muted); }
.wf-tab tr.ist-klick { cursor: pointer; }
.wf-tab tr.ist-klick:hover td { background: var(--fw-accent-sf); }
.wf-tab tr.ist-hervor td { background: #fdebd3; box-shadow: inset 3px 0 0 #e8842a; }
/* Die senkrechte Bauteil-Werkzeugleiste bringt ihr CSS selbst mit: assets/fw-vtools.js (.fw-vtools). */
@media print { .wf-tab tr.ist-hervor td { background: #fff; box-shadow: none; } }
.wf-tab-wrap { overflow-x: auto; }
.wf-muted { color: var(--fw-muted); font-size: .78rem; }
.wf-hinweis { font-size: .84rem; line-height: 1.55; padding: .55rem .75rem; border-radius: var(--fw-radius); background: var(--fw-accent-sf); margin: 0 0 .45rem; }
.wf-hinweis.ist-warn { background: #fff4e8; color: #7a3a0d; }

/* ─── Ergebnisblatt ─────────────────────────────────────────────────────── */
.wf-bericht { margin: 1.5rem auto 0; padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 1.75rem; max-width: 60rem; background: var(--fw-bg); border: 1px solid var(--fw-border); border-radius: var(--fw-radius-lg); scroll-margin-top: 4.5rem; }
.wf-bericht h2 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.wf-bericht h3 { font-size: .9rem; margin: 1rem 0 .4rem; }
.wf-b-kopf { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 2px solid var(--fw-text); padding-bottom: .6rem; }
.wf-b-kopf h2 { font-size: 1.3rem; margin: 0 0 .3rem; }
.wf-b-kopf p { margin: 0; font-size: .84rem; color: var(--fw-text-2); line-height: 1.5; }
.wf-b-meta { text-align: right; font-size: .78rem; color: var(--fw-muted); white-space: nowrap; line-height: 1.5; }
.wf-b-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; margin: 1rem 0 .5rem; }
@media (max-width: 40rem) { .wf-b-kacheln { grid-template-columns: 1fr 1fr; } }
.wf-kachel { padding: .7rem .85rem; border: 1px solid var(--fw-border); border-radius: var(--fw-radius-lg); background: var(--fw-surface); }
.wf-kachel.ist-warn { background: #fff4e8; border-color: #f0c9a0; }
.wf-kachel-l { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fw-muted); }
.wf-kachel strong { display: block; font-size: 1.35rem; margin: .1rem 0; }
.wf-kachel-t { display: block; font-size: .76rem; color: var(--fw-text-2); }
.wf-b-plan { margin: 1rem 0 .5rem; }
.wf-b-plan canvas { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; border: 1px solid var(--fw-border); border-radius: var(--fw-radius); background: #fff; }
.wf-b-plan figcaption { font-size: .76rem; color: var(--fw-text-2); margin-top: .4rem; line-height: 1.5; }
.wf-b-lagen { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
@media (max-width: 48rem) { .wf-b-lagen { grid-template-columns: 1fr; } .wf-b-kopf { flex-direction: column; } .wf-b-meta { text-align: left; } }
.wf-b-plan--klein { margin: .3rem 0; }
.wf-b-fuss { font-size: .76rem; color: var(--fw-muted); border-top: 1px solid var(--fw-border); padding-top: .6rem; margin: 1.5rem 0 0; line-height: 1.55; }

dialog.wf-dialog { border: 1px solid var(--fw-border); border-radius: var(--fw-radius-lg); padding: 1.1rem 1.3rem; max-width: 26rem; font-family: var(--fw-font); box-shadow: var(--fw-shadow); background: var(--fw-bg); color: var(--fw-text); }
dialog.wf-dialog::backdrop { background: rgba(0,0,0,.35); }
dialog.wf-dialog p { margin: 0 0 1rem; font-size: .9rem; line-height: 1.55; }
dialog.wf-dialog menu { display: flex; gap: .5rem; justify-content: flex-end; margin: 0; padding: 0; }

/* Touch */
.wf-app.ist-touch .wf-btn { min-height: 2.5rem; }
.wf-app.ist-touch .wf-btn--klein { min-height: 2.2rem; }
.wf-app.ist-touch .wf-input, .wf-app.ist-touch .wf-select { padding: .55rem .6rem; font-size: 1rem; }

/* Druck: nur das Ergebnisblatt */
@media print {
    body > *:not(main), main > *:not(.wf-app), .wf-app > *:not(.wf-bericht):not(.wf-druck-alle) { display: none !important; }
    .wf-app { max-width: none; margin: 0; padding: 0; }
    .wf-bericht { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; color: #000; font-size: 10.5pt; }
    .wf-bericht h2 { font-size: 11.5pt; margin: .7rem 0 .3rem; }
    .wf-b-kopf h2 { font-size: 16pt; }
    .wf-b-kopf p, .wf-b-meta { font-size: 9pt; color: #333; }
    .wf-b-kacheln { grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .5rem 0; }
    .wf-b-kacheln:has(> :nth-child(5)) { grid-template-columns: repeat(5, 1fr); }
    .wf-kachel { padding: .4rem .6rem; border-color: #999; background: #fff; }
    .wf-kachel strong { font-size: 13pt; }
    .wf-kachel-t, .wf-kachel-l { font-size: 7.5pt; }
    .wf-b-plan { margin: .4rem 0; break-inside: avoid; }
    .wf-b-plan canvas { max-height: 110mm; border: 0; }
    .wf-b-lagen { grid-template-columns: 1fr 1fr; }
    .wf-b-lagen .wf-b-plan canvas { max-height: 70mm; }
    .wf-b-plan figcaption { font-size: 8pt; }
    .wf-tab { font-size: 9pt; }
    .wf-tab th, .wf-tab td { padding: .15rem .3rem; border-bottom: 1px solid #bbb; }
    .wf-tab thead th { background: #eee; color: #000; }
    .wf-tab tr.wf-tab-gruppe td { background: #eee; }
    .wf-tab tr { break-inside: avoid; }
    .wf-kachel.ist-warn, .wf-hinweis.ist-warn { background: #fff; }
    .wf-hinweis { background: #fff; border-left: 3px solid #999; border-radius: 0; padding: .2rem .5rem; font-size: 9pt; }
    .wf-b-fuss { font-size: 8pt; }
    @page { size: A4 portrait; margin: 12mm; }
    /* Draufsicht und Schnitt je ganzseitig; die kleinen Bilder oben entfallen im Druck */
    .wf-b-plan-zwei { display: none !important; }
    .wf-b-seite { display: block; break-before: page; page-break-before: always; break-after: page; page-break-after: always; break-inside: avoid; }
    .wf-b-seite-kopf h2 { font-size: 13pt; margin: 0 0 .1rem; }
    .wf-b-seite-kopf p { font-size: 9pt; color: #333; margin: 0 0 .3rem; }
    .wf-b-seite .wf-b-plan { margin: 0; }
    .wf-b-seite .wf-b-plan canvas { width: 100%; height: auto; max-height: none; }
    .wf-b-seite.ist-quer { page: wf-quer; }
    @page wf-quer { size: A4 landscape; margin: 12mm; }
}
@media screen { .wf-b-seite { display: none; } }

/* ─── Aufklappbare Anleitung ───────────────────────────────────────────── */
.wf-anleitung { max-width: 60rem; margin: 1.5rem auto 0; background: var(--fw-bg); border: 1px solid var(--fw-border); border-radius: var(--fw-radius-lg); scroll-margin-top: 5.5rem; }
.wf-anleitung > summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon title chev" "icon sub chev"; column-gap: .75rem; align-items: center; padding: .85rem 1.1rem; cursor: pointer; border-radius: var(--fw-radius-lg); }
.wf-anleitung > summary::-webkit-details-marker { display: none; }
.wf-anleitung > summary:hover { background: var(--fw-surface); }
.wf-anleitung > summary:focus-visible { outline: 2px solid var(--fw-accent); outline-offset: 2px; }
.wf-anleitung .anl-icon { grid-area: icon; font-size: 1.35rem; }
.wf-anleitung .anl-title { grid-area: title; font-weight: 700; font-size: 1rem; color: var(--fw-accent); }
.wf-anleitung .anl-sub { grid-area: sub; font-size: .78rem; color: var(--fw-muted); line-height: 1.45; margin-top: .1rem; }
.wf-anleitung .anl-chevron { grid-area: chev; color: var(--fw-muted); font-size: 1.1rem; transition: transform .2s; }
.wf-anleitung[open] > summary { border-bottom: 1px solid var(--fw-border); border-radius: var(--fw-radius-lg) var(--fw-radius-lg) 0 0; }
.wf-anleitung[open] .anl-chevron { transform: rotate(180deg); }
.wf-anleitung .anl-body { padding: .4rem clamp(1rem, 3vw, 2.25rem) 1.75rem; }
.wf-anleitung .anl-lead { font-size: .95rem; line-height: 1.65; color: var(--fw-text-2); margin: .8rem 0 1rem; }
.wf-anleitung h3 { font-size: 1.08rem; margin: 1.9rem 0 .5rem; scroll-margin-top: 5.5rem; }
.wf-anleitung h4 { font-size: .95rem; margin: 1.2rem 0 .4rem; }
.wf-anleitung p, .wf-anleitung li { font-size: .9rem; line-height: 1.65; color: var(--fw-text-2); }
.wf-anleitung p { margin: 0 0 .7rem; }
.wf-anleitung ul, .wf-anleitung ol { margin: .3rem 0 .8rem; padding-left: 1.3rem; }
.wf-anleitung li { margin: 0 0 .35rem; }
.wf-anleitung li strong, .wf-anleitung p strong { color: var(--fw-text); }
.wf-anleitung a { color: var(--fw-accent); }
.wf-anleitung figure { margin: .9rem 0 1.1rem; }
.wf-anleitung figure img { width: 100%; height: auto; border: 1px solid var(--fw-border); border-radius: var(--fw-radius); background: #fff; }
.wf-anleitung figcaption { font-size: .78rem; color: var(--fw-muted); margin-top: .35rem; line-height: 1.5; }
.anl-kurz { display: grid; gap: .55rem; grid-template-columns: 1fr; margin: .5rem 0 .8rem; }
@media (min-width: 40rem) { .anl-kurz { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .anl-kurz { grid-template-columns: repeat(4, 1fr); } }
.anl-kurz div { background: var(--fw-surface); border: 1px solid var(--fw-border); border-radius: var(--fw-radius-lg); padding: .7rem .85rem; font-size: .84rem; line-height: 1.5; color: var(--fw-text-2); }
.anl-kurz strong { display: block; color: var(--fw-accent); margin-bottom: .15rem; }
.anl-tabelle { overflow-x: auto; }
.anl-tabelle table { width: 100%; border-collapse: collapse; font-size: .85rem; margin: .4rem 0 1rem; }
.anl-tabelle th, .anl-tabelle td { text-align: left; padding: .4rem .55rem; border-bottom: 1px solid var(--fw-border); vertical-align: top; line-height: 1.5; }
.anl-tabelle th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fw-muted); background: var(--fw-surface); font-weight: 600; }
.anl-tabelle td:first-child { white-space: nowrap; font-weight: 600; color: var(--fw-text); }
@media (max-width: 48rem) { .anl-tabelle td:first-child { white-space: normal; } .wf-anleitung > summary { grid-template-columns: auto 1fr; grid-template-areas: "icon title" "icon sub"; } .wf-anleitung .anl-chevron { display: none; } }

/* SEO-Teil */
.wf-seo { max-width: 72ch; margin: 0 auto; padding: 2.5rem var(--fw-pad, 1.5rem) 4rem; }
.wf-seo h2 { font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.wf-seo h3 { font-size: 1rem; margin: 1.3rem 0 .4rem; }
.wf-seo p, .wf-seo li { line-height: 1.7; color: var(--fw-text-2); }
.wf-seo table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: .6rem 0 1rem; }
.wf-seo th, .wf-seo td { padding: .5rem .65rem; border-bottom: 1px solid var(--fw-border); text-align: left; vertical-align: top; line-height: 1.5; }
.wf-seo th { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fw-muted); font-weight: 500; background: var(--fw-surface); }
.wf-seo td { color: var(--fw-text-2); }
.wf-seo .wf-kurz { background: var(--fw-accent-sf); border-radius: var(--fw-radius-lg); padding: 1rem 1.25rem; margin: 1rem 0; }
.wf-seo .wf-kurz ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.wf-seo .autor-box { margin: 2.5rem 0 0; background: var(--fw-surface); border: 1px solid var(--fw-border); border-radius: var(--fw-radius-lg); padding: 1.25rem 1.5rem; display: flex; gap: 1.2rem; align-items: flex-start; }
.wf-seo .autor-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.wf-seo .autor-box .ab-name { font-weight: 700; color: var(--fw-text); font-size: .95rem; }
.wf-seo .autor-box .ab-role { font-size: .78rem; color: var(--fw-accent); font-weight: 600; margin-bottom: .35rem; }
.wf-seo .autor-box p { font-size: .85rem; margin: 0; }
@media (max-width: 560px) { .wf-seo .autor-box { flex-direction: column; } }
.wf-seo .wf-weiter { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .7rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.wf-seo .wf-weiter a { display: block; padding: .8rem 1rem; border: 1px solid var(--fw-border); border-radius: var(--fw-radius-lg); text-decoration: none; color: var(--fw-text); font-size: .88rem; font-weight: 600; }
.wf-seo .wf-weiter a:hover { border-color: var(--fw-accent); }
.wf-seo .wf-weiter span { display: block; font-size: .76rem; color: var(--fw-muted); margin-top: .2rem; font-weight: 400; }
.fw-prose details.fw-klapp { border-bottom: 1px solid var(--fw-border); }
.fw-prose details.fw-klapp:first-of-type { border-top: 1px solid var(--fw-border); }
.fw-klapp > summary { display: flex; align-items: center; gap: .6rem; padding: .7rem .1rem; cursor: pointer; list-style: none; }
.fw-klapp > summary::-webkit-details-marker { display: none; }
.fw-klapp > summary h3 { margin: 0; flex: 1 1 auto; font-size: .98rem; }
.fw-klapp-plus { width: 1.1rem; height: 1.1rem; position: relative; flex-shrink: 0; }
.fw-klapp-plus::before, .fw-klapp-plus::after { content: ''; position: absolute; background: var(--fw-accent); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.fw-klapp-plus::before { width: 100%; height: 2px; } .fw-klapp-plus::after { width: 2px; height: 100%; transition: transform .15s; }
details[open] > summary .fw-klapp-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.fw-klapp-inhalt { padding: 0 .1rem .9rem; }

/* ─── Bauteil-Leiste (mehrere Bauteile je Projekt) ─────────────────────── */
.wf-bauteile { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; padding: .45rem .8rem; border-bottom: 1px solid var(--fw-border); background: var(--fw-bg); }
.wf-bauteile .wf-projektname { flex: 0 1 14rem; min-width: 9rem; font-size: .84rem; padding: .3rem .5rem; }
.wf-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; flex: 1 1 auto; }
.wf-chip { border: 1px solid var(--fw-border); background: var(--fw-surface); color: var(--fw-text); border-radius: 999px; padding: .28rem .75rem; font: inherit; font-size: .82rem; cursor: pointer; line-height: 1.2; }
.wf-chip:hover { border-color: var(--fw-accent); }
.wf-chip.ist-aktiv { background: var(--fw-accent); border-color: var(--fw-accent); color: #fff; font-weight: 600; }
.wf-chip--neu { border-style: dashed; color: var(--fw-accent); background: transparent; }
.wf-chip-spacer { flex: 1 1 auto; }
.wf-bericht .wf-tab tr.ist-aktiv td { font-weight: 600; }
.wf-b-projektzeile { margin: 0 0 .25rem !important; font-size: .78rem !important; color: var(--fw-muted) !important; text-transform: uppercase; letter-spacing: .05em; }
.wf-druck-alle { display: none; }
@media print {
  body.ist-druck-alle .wf-app > .wf-bericht#wf-bericht { display: none !important; }
  body.ist-druck-alle .wf-druck-alle { display: block; }
  .wf-app > .wf-druck-alle { display: block; }
  .wf-bericht--druck { break-before: page; page-break-before: always; max-width: none; margin: 0; padding: 0; border: 0; color: #000; font-size: 10.5pt; }
  .wf-bericht--druck:first-child { break-before: auto; page-break-before: auto; }
  #wf-b-projekt-sektion { break-before: page; page-break-before: always; }
}

/* Arbeitsfläche: klare Hierarchie, ruhige Flächen, gut erkennbare aktive Werkzeuge. */
@media screen {
  .wf-app { --fw-border: #dce3e9; --fw-border-str: #c8d2dc; --fw-surface: #f6f8fa; --fw-surface-2: #eaf0f5; --fw-text: #243342; --fw-text-2: #526273; --fw-muted: #667788; }
  .wf-kasten { border-radius: 16px; box-shadow: 0 12px 40px -18px #233b5650, 0 2px 6px #233b5608; }
  .wf-bar { padding: .8rem 1rem; gap: .45rem; background: #fff; }
  .wf-projekt { font-weight: 650; background: #f6f8fa; border-color: transparent; }
  .wf-btn { border-radius: 8px; min-height: 2.35rem; transition: background .15s, border-color .15s, box-shadow .15s; }
  .wf-btn:hover { background: #eef4f8; box-shadow: 0 2px 5px #233b5610; }
  .wf-btn--primary:hover { background: var(--fw-accent); filter: brightness(.94); }
  .wf-btn:focus-visible, .wf-tab-kn:focus-visible, .wf-block > summary:focus-visible { outline: 3px solid var(--fw-accent); outline-offset: 3px; }
  .wf-btn--3d[aria-pressed="true"] { background: #253e52; border-color: #253e52; box-shadow: 0 3px 7px #253e5230; }
  .wf-muster-hinweis { background: #f0f6fa; padding: .65rem 1rem; color: #486074; line-height: 1.5; }
  .wf-grid { grid-template-columns: 21.5rem minmax(0, 1fr); height: clamp(36rem, 77vh, 55rem); }
  .wf-seite { scrollbar-width: thin; scrollbar-color: #bdcad5 transparent; }
  .wf-seite-inhalt { padding: 1rem; }
  .wf-block { background: #fff; border: 1px solid #e1e7ed; border-radius: 10px; padding: .85rem; margin-bottom: .75rem; }
  .wf-block > h3 { color: #52687a; margin-bottom: .7rem; letter-spacing: .08em; }
  .wf-block > summary { color: #52687a; text-transform: none; letter-spacing: 0; font-size: .8rem; padding: .15rem 0; }
  .wf-block[open] > summary { margin-bottom: .7rem; }
  .wf-input, .wf-select { border-radius: 7px; min-height: 2.25rem; background: #fcfdfe; }
  .wf-feld { margin-bottom: .65rem; }
  .wf-feld label, .wf-lbl { line-height: 1.45; }
  .wf-tabs { border-radius: 9px; padding: .25rem; gap: .2rem; }
  .wf-tab-kn { border-radius: 6px; padding: .55rem .3rem; }
  .wf-tab-kn[aria-pressed="true"] { color: #244d6b; border-color: #d3dfe8; box-shadow: 0 2px 4px #20384c0d; }
  .wf-tools { padding: .75rem; gap: .65rem; background: #fff; }
  .wf-ansichten { gap: .25rem; padding: .25rem; border-radius: 10px; background: #f0f4f7; }
  .wf-ansichten .wf-btn { border-color: transparent; background: transparent; font-size: .76rem; }
  .wf-ansichten .wf-btn[aria-pressed="true"] { background: #fff; border-color: #d4dfe7; box-shadow: 0 2px 5px #24334212; }
  .wf-ansichten .wf-btn--3d[aria-pressed="true"] { background: #253e52; color: #fff; border-color: #253e52; }
  #wf-3d-optionen { gap: .65rem; }
  .wf-3d-hinweis { line-height: 1.5; font-size: .7rem; }
  .wf-status { background: #fff; padding: .7rem 1rem; font-size: .76rem; }
  .wf-status strong { font-variant-numeric: tabular-nums; }
  .wf-status-link { padding: .3rem .65rem; background: #eef4f8; border-radius: 6px; }
  .wf-bericht { border-radius: 14px; box-shadow: 0 6px 24px #233b5607; }
  .wf-kachel { background: #f7f9fb; border-radius: 10px; border-color: #e1e7ed; padding: .9rem; }
  .wf-kachel strong { color: #244d6b; font-variant-numeric: tabular-nums; }
}
@media screen and (max-width: 60rem) {
  .wf-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .wf-kasten { border-radius: 0; }
  .wf-leinwand-wrap { min-height: 22rem; height: 50vh; }
  .wf-tools { padding: .5rem; }
  .wf-seite-inhalt { padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .wf-btn { transition: none; } }

/* ─── Wärmepumpen-Fundament: Herkunft, Quellen, Prüfhinweise ─────────────── */
.wf-st { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .05rem .38rem; border-radius: 999px; vertical-align: .08em; white-space: nowrap; cursor: help; border: 1px solid transparent; }
.wf-st--b { background: #e6f4ea; color: #1e6b34; border-color: #bfe0c8; }
.wf-st--a { background: #e8f0fb; color: #1d4f91; border-color: #c4d6f0; }
.wf-st--g { background: #fff4e0; color: #8a4b00; border-color: #f2d19c; }
.wf-st--r { background: #f1f1ef; color: #55595e; border-color: #dcdcd8; }
.wf-st--e { background: #f3eefb; color: #5b3a8c; border-color: #dccff0; }
.wf-ref { font-size: .72rem; font-weight: 600; color: var(--fw-accent); text-decoration: none; white-space: nowrap; }
.wf-ref:hover { text-decoration: underline; }
.wf-geraet-info { font-size: .76rem; line-height: 1.45; color: var(--fw-text-2); margin-top: .35rem; }
.wf-geraet-info table { width: 100%; border-collapse: collapse; }
.wf-geraet-info td { padding: .22rem .2rem; border-bottom: 1px solid var(--fw-border); vertical-align: top; }
.wf-geraet-info td:first-child { color: var(--fw-muted); white-space: nowrap; padding-right: .5rem; }
.wf-geraet-info td:last-child { text-align: right; }
.wf-hinweis-mini { font-size: .72rem; line-height: 1.45; padding: .4rem .55rem; border-radius: 7px; background: #fff4e8; color: #7a3a0d; margin: .4rem 0 0; }
.wf-obj-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 5.2rem auto; gap: .35rem; align-items: center; margin: 0 0 .35rem; }
.wf-obj-zeile .wf-btn { min-height: 2rem; padding: .2rem .5rem; }
.wf-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .1rem 0 .2rem; }
.wf-chip { border: 1px solid var(--fw-border-str); background: var(--fw-bg); border-radius: 999px; padding: .15rem .55rem; font: inherit; font-size: .74rem; cursor: pointer; color: var(--fw-text-2); }
.wf-chip:hover, .wf-chip[aria-pressed="true"] { border-color: var(--fw-accent); color: var(--fw-accent); }
.wf-tabs-auf { display: grid; grid-template-columns: 1fr; gap: .25rem; margin: 0 0 .5rem; }
.wf-tabs-auf .wf-tab-kn { text-align: left; padding: .45rem .6rem; }
.wf-tabs-auf .wf-tab-kn small { margin-top: .1rem; }

.wf-warn { list-style: none; margin: 0; padding: 0; }
.wf-warn li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .45rem; font-size: .84rem; line-height: 1.5; padding: .5rem .65rem; border-radius: 8px; margin: 0 0 .4rem; background: var(--fw-surface); }
.wf-warn li::before { content: 'i'; display: inline-flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; font-weight: 800; font-size: .74rem; background: #64748b; color: #fff; }
.wf-warn li.ist-rot { background: #fdecee; color: #7f1d1d; } .wf-warn li.ist-rot::before { content: '!'; background: #dc2626; }
.wf-warn li.ist-gelb { background: #fff6e5; color: #713f12; } .wf-warn li.ist-gelb::before { content: '!'; background: #d97706; }
.wf-warn li.ist-hersteller { background: #eef4fb; color: #1e3a5f; } .wf-warn li.ist-hersteller::before { content: 'H'; background: #1d4f91; }
.wf-ampel { display: inline-flex; gap: .35rem; align-items: center; font-weight: 600; }
.wf-ampel i { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.wf-quellen { list-style: none; padding: 0; margin: 0; counter-reset: q; }
.wf-quellen li { font-size: .8rem; line-height: 1.5; padding: .35rem 0 .35rem 2.2rem; border-bottom: 1px solid var(--fw-border); position: relative; color: var(--fw-text-2); scroll-margin-top: 5rem; }
.wf-quellen li b { color: var(--fw-text); }
.wf-quellen li .wf-qnr { position: absolute; left: 0; top: .35rem; font-weight: 700; color: var(--fw-accent); }
.wf-quellen li a { color: var(--fw-accent); word-break: break-word; }
.wf-quellen li:target { background: #fff8d6; }
.wf-recht { font-size: .78rem; line-height: 1.6; color: var(--fw-text-2); background: var(--fw-surface); border: 1px solid var(--fw-border); border-radius: 10px; padding: .75rem .9rem; margin: 1.2rem 0 0; }
.wf-recht strong { color: var(--fw-text); }
.wf-legende-st { font-size: .76rem; color: var(--fw-text-2); line-height: 1.9; margin: .2rem 0 .6rem; }
.wf-legende-st .wf-st { margin-right: .2rem; }
.wf-b-plan-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 48rem) { .wf-b-plan-zwei { grid-template-columns: 1fr; } }
.wf-tab td.wf-q { white-space: normal; overflow-wrap: anywhere; }
@media print {
  .wf-b-plan-zwei { grid-template-columns: 1fr 1fr; }
  .wf-warn li { background: #fff !important; border-left: 3px solid #999; border-radius: 0; padding: .15rem .4rem; font-size: 8.5pt; }
  .wf-warn li.ist-rot { border-left-color: #dc2626; } .wf-warn li.ist-gelb { border-left-color: #d97706; }
  .wf-st { border: 1px solid #999 !important; background: #fff !important; color: #000 !important; font-size: 6.5pt; }
  .wf-quellen li { font-size: 7.5pt; padding: .1rem 0 .1rem 1.6rem; }
  .wf-quellen li a { color: #000; text-decoration: none; }
  .wf-recht { font-size: 7.5pt; background: #fff; }
  .wf-ref { color: #000; }
}
.wf-tab--gruende, .wf-tab--geraet { table-layout: fixed; }
.wf-tab--gruende th:nth-child(1) { width: 19%; } .wf-tab--gruende th:nth-child(2) { width: 19%; } .wf-tab--gruende th:nth-child(4) { width: 13%; }
.wf-tab--geraet th:nth-child(1) { width: 19%; } .wf-tab--geraet th:nth-child(3) { width: 14%; }
.wf-tab--gruende td, .wf-tab--geraet td { overflow-wrap: anywhere; }
.wf-b-stand { font-size: .82rem; line-height: 1.55; margin: .2rem 0 .6rem; padding: .55rem .75rem; border-left: 3px solid #d97706; background: #fff8ec; color: #5b3a12; border-radius: 0 8px 8px 0; }
@media print { .wf-b-stand { background: #fff; font-size: 8.5pt; padding: .2rem .5rem; } }

@media (max-width: 60rem) { .wf-3d-hinweis { display: block; font-size: .68rem; } }
.wf-quellen li a { overflow-wrap: anywhere; }
