/* preise.css */
/* preise.css – Seite „Editionen & Preise“ (AW-09). Gestaltung nach Muster Editionen_und_Preise.html (K2): Farben nur aus
   werte.css, Breiten des Musters abgebildet (560/720 → tablet, 799/860/900 → tablet bzw. computer, 960/1023/1200 → computer). */

/* Seitenkopf */
.pr-kopf { background: var(--grund); padding: 48px 0 40px; }
@media (min-width: 720px) { .pr-kopf { padding: 72px 0 52px; } }
.pr-kopf h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
.pr-lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.55; color: var(--text-2); margin-top: 20px; max-width: 58ch; }
.pr-lead-2 { font-size: 1.0625rem; line-height: 1.6; color: var(--text-2); margin-top: 16px; }
@media (min-width: 720px) { .pr-lead-2 { font-size: 1.1875rem; } }
.pr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 22px; font-size: .9375rem; color: var(--grau-7); }
.pr-meta > span { display: inline-flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.pr-meta .s { width: 1.05rem; height: 1.05rem; color: var(--text-2); }
.pr-sprung { margin-top: 26px; }
.pr-sprung ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.pr-sprung a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; color: var(--blau); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.pr-sprung a span { text-decoration: underline; text-decoration-color: var(--blau-linie); text-underline-offset: 4px; }
.pr-sprung a:hover { color: var(--blau-h); }
.pr-sprung a:hover span { text-decoration-color: currentColor; }
.pr-sprung .s { width: 1rem; height: 1rem; }

/* Liste „Über FREE hinaus nur in PRO und UNLIMITED“ */
.pr-nur-abschnitt { background: var(--grund); padding: 0 0 72px; border-bottom: 1px solid var(--rahmen); }
@media (min-width: 720px) { .pr-nur-abschnitt { padding-bottom: 96px; } }
.pr-nur { max-width: 640px; margin: 0 auto; background: var(--karte); border: 1px solid var(--rahmen); border-radius: var(--r-l); padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px 32px; }
@media (min-width: 720px) { .pr-nur { padding: 20px 28px; flex-direction: row; flex-wrap: wrap; align-items: center; } }
@media (min-width: 1024px) { .pr-nur { max-width: none; } }
/* h2 des Kastens so groß wie die h3 der Seite (Preistabellen, Module), damit die Größenfolge stimmt (D7) */
.pr-nur h2 { margin: 0; font-size: min(1.375rem, 9cqi); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }

/* Preisrechner */
/* Das Skript schaltet nur das Attribut hidden; Klassen mit display (Knöpfe, Meldungsknopf, Testweg) dürfen es nicht überstimmen. */
#rechner [hidden], #preistabellen [hidden] { display: none !important; }
.pr-ohne-js { display: flex; gap: .8rem; align-items: flex-start; max-width: 760px; background: var(--grund); border: 1px solid var(--rahmen); border-radius: var(--r); padding: 18px 20px; font-size: 1rem; line-height: 1.55; }
.pr-ohne-js .s { color: var(--text-2); margin-top: .15rem; }
/* Der Rechner erscheint erst, wenn preisrechner.js gelaufen ist ([data-bereit] an #rechner-ui, AW-14); ohne JavaScript
   oder wenn nur das Rechner-Skript fehlt, steht der Hinweis auf die Tabellen (P07, Nachtrag 2 AW-15). Ohne :has bleibt
   der Hinweis neben dem Rechner stehen, nie fehlen beide. */
#rechner-ui:not([data-bereit]) { display: none; }
.pr-ohne-js:has(~ #rechner-ui[data-bereit]) { display: none; }
.rechner { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--rahmen); border-radius: 22px; background: var(--karte); overflow: hidden; }
.r-ein { padding: 24px 18px 28px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.r-erg { background: var(--grund); border-top: 1px solid var(--rahmen); padding: 24px 18px 26px; display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 720px) {
  .rechner { border-radius: var(--r-xl); }
  .r-ein { padding: 36px 40px 40px; gap: 34px; }
  .r-erg { padding: 36px 36px 34px; }
}
@media (min-width: 1024px) {
  .rechner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .r-erg { border-top: 0; border-left: 1px solid var(--rahmen); }
}
.r-feld { border: 0; margin: 0; padding: 0; min-width: 0; }
.r-feld--abstand { margin-top: 34px; }
.r-titel { display: block; float: left; width: 100%; padding: 0; margin: 0 0 12px; font-size: 1rem; font-weight: 650; line-height: 1.4; color: var(--text); }
.r-feld > .r-titel + * { clear: both; }
.r-titel-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.r-titel-zeile .r-titel { float: none; width: auto; margin: 0; }
.r-titel-zeile a { font-size: .875rem; font-weight: 500; }
.r-hinweis { margin-top: 10px; font-size: .875rem; line-height: 1.5; color: var(--text-2); }

/* Auswahlknöpfe als echte Radio-Gruppen */
.seg { display: grid; gap: 8px; }
/* Umschalter: zwei Spalten, solange „UNLIMITED“ hineinpasst; bei schmalem Fenster oder großer Schrift untereinander (Nr. 2) */
.seg-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5em), 1fr)); }
.seg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg-7 .seg-w { grid-column: span 2; }
.seg label { position: relative; display: block; cursor: pointer; min-width: 0; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-k { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: .5rem .35rem; border: 1px solid var(--knopf-rahmen); border-radius: var(--knopf-r); background: var(--karte); color: var(--text); font-weight: 600; line-height: 1.25; text-align: center; font-variant-numeric: tabular-nums; transition: background-color .15s, border-color .15s, color .15s; }
.seg-k small { display: block; margin-top: 3px; font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.seg-2 .seg-k { min-height: 72px; font-size: 1.0625rem; letter-spacing: .02em; }
.seg-5 .seg-k { min-height: 60px; gap: 0; }
.seg-5 .seg-k b { display: block; font-size: 1.125rem; }
.seg-5 .seg-k span { font-size: .8125rem; font-weight: 500; }
@media (min-width: 720px) {
  .seg-5 .seg-k { min-height: 52px; flex-direction: row; gap: .3em; }
  .seg-5 .seg-k b { display: inline; font-size: inherit; }
  .seg-5 .seg-k span { font-size: inherit; font-weight: inherit; }
  .seg-7 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.seg label:hover .seg-k { background: var(--grau-1); border-color: var(--text-2); }
.seg input:checked + .seg-k { background: var(--knopf); border-color: var(--knopf); color: var(--weiss); }
.seg input:checked + .seg-k small { color: var(--rahmen-2); }
.seg input:focus-visible + .seg-k { outline: 3px solid var(--blau); outline-offset: 3px; }

/* Zahlenfeld mit Plus und Minus, Schieberegler, Meldung */
.stepper { display: flex; align-items: stretch; gap: 8px; }
.st-btn { width: 52px; min-height: 52px; flex: none; display: grid; place-items: center; border: 1px solid var(--knopf-rahmen); border-radius: var(--knopf-r); background: var(--karte); color: var(--text); cursor: pointer; padding: 0; }
.st-btn .s { width: 20px; height: 20px; }
.st-btn:hover { background: var(--grau-1); border-color: var(--text-2); }
.st-btn[aria-disabled="true"] { color: var(--gesperrt); cursor: default; }
.st-btn[aria-disabled="true"]:hover { background: var(--karte); border-color: var(--knopf-rahmen); }
.anz { width: 112px; min-height: 52px; border: 1px solid var(--knopf-rahmen); border-radius: var(--knopf-r); background: var(--karte); color: var(--text); font: inherit; font-size: 1.25rem; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.anz::-webkit-outer-spin-button, .anz::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.anz:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: var(--knopf-r); }
.anz[aria-invalid="true"] { border-color: var(--fehler); box-shadow: inset 0 0 0 1px var(--fehler); }
.regler-box { margin-top: 18px; }
.regler { display: block; width: 100%; height: 28px; margin: 0; accent-color: var(--knopf); cursor: pointer; }
.regler-skala { display: flex; justify-content: space-between; margin-top: 2px; font-size: .8125rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.r-meldung { font-size: .9375rem; line-height: 1.5; border-radius: var(--knopf-r); }
.r-meldung.ist-fehler, .r-meldung.ist-info { margin-top: 12px; padding: .6rem .8rem; }
.r-meldung.ist-fehler { color: var(--fehler-h); background: var(--fehler-grund); border: 1px solid var(--fehler-rand); }
.r-meldung.ist-info { color: var(--grau-7); background: var(--grau-1); border: 1px solid var(--rahmen); }
.r-meldung button { display: block; margin: .3rem 0 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--blau-h); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.r-meldung.ist-fehler button { color: var(--fehler-h); }

/* Ergebnis */
.erg-titel { font-size: .875rem; font-weight: 600; letter-spacing: .01em; color: var(--text-2); }
.erg-auswahl { margin-top: 6px; font-size: 1.0625rem; font-weight: 600; color: var(--text); }
.erg-preis { margin-top: 14px; font-size: min(clamp(2.5rem, 2rem + 1.9vw, 3.4rem), 10vw); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; max-width: 100%; }
.erg-bed { margin-top: 10px; font-size: .9375rem; color: var(--grau-7); }
.erg-je { margin-top: 6px; font-size: .9375rem; color: var(--text-2); }
.erg-je small { display: block; font-size: .8125rem; }
.erg-akt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rahmen); display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.erg-akt > .textlink { align-self: flex-start; min-height: 32px; }
.erg-akt .knopf--haupt[aria-disabled="true"], .erg-akt .knopf--haupt[aria-disabled="true"]:hover { background: var(--rahmen); color: var(--text-2); cursor: not-allowed; transform: none; }
.erg-test { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--rahmen); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.erg-test > .textlink { min-height: 32px; }
.erg-test-k { font-size: .8125rem; line-height: 1.5; color: var(--text-2); }
.r-warnung { margin-top: 16px; padding: .55rem .8rem; border: 1px solid var(--fehler-rand); background: var(--fehler-grund); color: var(--fehler-h); border-radius: 10px; font-size: .875rem; line-height: 1.5; }
.r-warnung-marke { font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* Preistabellen */
.pl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 44px 0; border-top: 1px solid var(--rahmen); }
.pl:first-of-type { padding-top: 0; border-top: 0; }
.pl:last-child { padding-bottom: 0; }
@media (min-width: 1024px) { .pl { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; } .pl-kopf { position: sticky; top: calc(var(--kopf-h) + 32px); align-self: start; } }
.pl-kopf h3 { font-size: min(1.375rem, 8cqi); line-height: 1.2; letter-spacing: -.02em; font-weight: 750; }
.pl-kopf p { margin-top: 10px; font-size: 1rem; line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.tab-det > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 64px; padding: .85rem 1.1rem .85rem 1.25rem; background: var(--karte); border: 1px solid var(--knopf-rahmen); border-radius: 12px; cursor: pointer; list-style: none; }
.tab-det > summary::-webkit-details-marker { display: none; }
.tab-det > summary:hover { background: var(--grau-1); }
.sum-t { display: flex; align-items: center; gap: .7rem; font-weight: 650; color: var(--text); }
.sum-t .s { color: var(--text-2); }
.sum-t small { display: block; margin-left: 0; font-weight: 500; color: var(--text-2); font-size: .875rem; }
@media (min-width: 720px) { .sum-t small { display: inline; margin-left: .35rem; } }
.sum-z { display: inline-flex; align-items: center; gap: .35rem; font-size: .9375rem; font-weight: 600; color: var(--grau-7); }
.sum-z .s { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.tab-det[open] > summary .sum-z .s { transform: rotate(180deg); }
.tab-det:not([open]) .sum-zu, .tab-det[open] .sum-auf { display: none; }
.tab-box { margin-top: 16px; }
.wisch { display: flex; align-items: center; gap: .4rem; margin-bottom: 8px; font-size: .8125rem; color: var(--text-2); }
.wisch .s { width: 1rem; height: 1rem; }
.markier-legende { display: none; align-items: center; gap: .5rem; margin-top: 10px; font-size: .8125rem; color: var(--text-2); }
html.js .markier-legende { display: flex; }
html.js .markier-legende[hidden] { display: none; }
.markier-legende i { display: inline-block; width: 16px; height: 12px; border-radius: 3px; background: var(--blau-100); box-shadow: inset 0 0 0 2px var(--blau); }
.ptab { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--karte); border: 1px solid var(--rahmen); border-radius: 14px; font-size: .9375rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ptab caption { caption-side: top; text-align: left; padding: 0 0 10px; font-size: .875rem; line-height: 1.5; color: var(--text-2); }
.ptab th, .ptab td { padding: .55rem .75rem; border-bottom: 1px solid var(--grau-1); white-space: nowrap; }
.ptab thead th { position: sticky; top: 0; z-index: 2; background: var(--grau-1); color: var(--text); font-weight: 650; text-align: right; border-bottom: 1px solid var(--rahmen-2); }
.ptab thead th:first-child { text-align: left; border-top-left-radius: 13px; }
.ptab thead th:last-child { border-top-right-radius: 13px; }
.ptab tbody th { text-align: left; font-weight: 600; color: var(--text); background: var(--karte); }
.ptab td { text-align: right; color: var(--text); }
.ptab tbody tr:nth-child(5n) > * { border-bottom-color: var(--rahmen-2); }
.ptab tbody tr:last-child > * { border-bottom: 0; }
.ptab tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.ptab tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }
.ptab tbody tr:hover > * { background: var(--grund); }
.ptab .ist-wahl-kopf, .ptab tbody tr:hover > .ist-wahl-kopf { background: var(--blau-50); color: var(--blau-800); }
.ptab .ist-wahl, .ptab tbody tr:hover > .ist-wahl { background: var(--blau-100); box-shadow: inset 0 0 0 2px var(--blau); font-weight: 700; }
.ptab--klein { max-width: 520px; }
.ptab--klein td { width: 55%; }
.ptab--klein tbody tr:nth-child(5n) > * { border-bottom-color: var(--grau-1); }
.ptab--klein tbody tr:last-child > * { border-bottom: 0; }
.tab-scroll { overflow-x: auto; border-radius: 14px; container-type: inline-size; -webkit-overflow-scrolling: touch; }
.tab-scroll:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
/* Beide Tabellen liegen bei jeder Breite in ihrem eigenen, fokussierbaren Bereich: Passt die Tabelle nicht (schmale Fenster,
   große Standardschrift), scrollt nur der Bereich waagrecht, nie die Seite (Nachbesserung Runde 1, Nr. 1 und 2).
   Die Beschriftung bleibt beim Scrollen links stehen und bricht innerhalb der Bereichsbreite um (100cqw). */
.tab-scroll .ptab caption { position: sticky; left: 0; max-width: 100cqw; box-sizing: border-box; }
/* Handy: Bereich mit Rahmen und Höhenbegrenzung; Kopfzeile und erste Spalte bleiben stehen */
.tab-scroll--breit { overflow: auto; max-height: min(70vh, 560px); border: 1px solid var(--rahmen); background: var(--karte); }
.tab-scroll--breit .ptab { border: 0; border-radius: 0; }
.tab-scroll--breit .ptab caption { padding: 10px 12px; background: var(--karte); }
.tab-scroll--breit .ptab thead th { top: 0; }
.tab-scroll--breit .ptab thead th, .tab-scroll--breit .ptab tbody tr:last-child > * { border-radius: 0; }
.tab-scroll--breit .ptab tbody th, .tab-scroll--breit .ptab thead th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--rahmen); }
.tab-scroll--breit .ptab thead th:first-child { z-index: 3; }
@media (min-width: 720px) {
  .wisch { display: none; }
  .tab-scroll--breit { overflow-x: auto; overflow-y: hidden; max-height: none; border: 0; background: none; }
  .tab-scroll--breit .ptab { border: 1px solid var(--rahmen); border-radius: 14px; }
  .tab-scroll--breit .ptab caption { padding: 0 0 10px; background: none; }
  .tab-scroll--breit .ptab thead th:first-child { border-top-left-radius: 13px; }
  .tab-scroll--breit .ptab thead th:last-child { border-top-right-radius: 13px; }
  .tab-scroll--breit .ptab tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
  .tab-scroll--breit .ptab tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }
  .ptab th, .ptab td { padding: .58rem .9rem; }
}

/* Zusatzmodule */
/* Karten nur so hoch wie ihr Inhalt, ohne Leerfläche in der kürzeren Karte (D9) */
.mods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 720px) { .mods { grid-template-columns: 1fr 1fr; } }
/* Fassung „aus“: nur eine Kachel, keine leere zweite Spalte (Nachbesserung Runde 1, Nr. 6) */
.mods:has(> .mod:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.mod { background: var(--karte); border: 1px solid var(--rahmen); border-radius: 22px; padding: 24px 20px; display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 720px) { .mod { border-radius: var(--r-xl); padding: 30px 32px; } }
.mod-kopf { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mod-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.mod-ico .s { width: 24px; height: 24px; }
.mod--web .mod-ico { background: var(--blau-50); color: var(--blau); }
.mod--wb .mod-ico { background: var(--indigo-50); color: var(--indigo); }
.mod h3 { font-size: min(1.375rem, 8cqi); line-height: 1.2; letter-spacing: -.02em; font-weight: 750; }
.mod-unter { font-size: 1.0625rem; line-height: 1.55; color: var(--text-2); margin-top: 14px; }
.mod-bed { margin-top: auto; padding-top: 22px; }
.bed { display: flex; align-items: flex-start; gap: .6rem; border-radius: 12px; padding: .8rem 1rem; font-size: .9375rem; line-height: 1.45; font-weight: 500; }
.bed .s { width: 1.15rem; height: 1.15rem; margin-top: .1rem; }
.bed--web { background: var(--blau-50); color: var(--blau-800); border: 1px solid var(--blau-200); }
.bed > span { display: inline-block; }
.bed > span::first-letter { text-transform: uppercase; }
.mod-link { margin-top: 18px; }
.mod-wb-text { margin-top: 14px; font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.mod-wb-text > p:first-child { font-size: 1.0625rem; }
.mod-wb-text p + p, .mod-wb-text ul + p { margin-top: 12px; }
.mod-wb-text ul { margin-top: 12px; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; font-size: .9375rem; }
.mod-klein { margin-top: 14px; font-size: .8125rem; line-height: 1.55; color: var(--text-2); }

/* Häufige Fragen */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 56px; align-items: start; }
.faq-grid .abschnitt-kopf { margin-bottom: 12px; }
/* Seite „Häufige Fragen“ (B100): h1 im Kopf der Fragen, Größe wie .in-kopf h1 (inhalte.css) */
.faq-grid h1 { font-size: min(clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem), 11cqi); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; margin-top: 16px; overflow-wrap: break-word; -webkit-hyphens: manual; hyphens: manual; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; } .faq-grid .abschnitt-kopf { margin-bottom: 0; } }
.faq { border-top: 1px solid var(--rahmen-2); }
.faq details { border-bottom: 1px solid var(--rahmen-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 4px; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 650; line-height: 1.4; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blau-h); }
.faq summary .s { width: 1.15rem; height: 1.15rem; color: var(--text-2); transition: transform .2s; }
.faq details[open] summary .s { transform: rotate(180deg); }
.faq-a { padding: 0 4px 20px; font-size: 1rem; line-height: 1.6; color: var(--text-2); }

/* Ruhige Fassung: keine Drehungen und Übergänge */
@media (prefers-reduced-motion: reduce) {
  .seg-k, .sum-z .s, .faq summary .s { transition: none; }
}

/* Druck: Rechner und Sprungleiste nicht, beide Preistabellen vollständig und lesbar, auch eine zugeklappte PRO-Tabelle */
@media print {
  /* Der Rechner fällt samt Überschrift weg (Nr. 7) */
  .pr-rechner-abschnitt, .pr-ohne-js, .pr-sprung, .markier-legende, .wisch, .tab-det > summary { display: none !important; }
  /* Listenzeichen der Karten sind Hintergrundflächen; im Druck mitdrucken (Nr. 7) */
  .ek-punkte li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tab-scroll--breit { overflow: visible; max-height: none; border: 0; }
  .ptab { font-size: 9pt; }
  .ptab thead th { position: static; }
  .ptab th, .ptab td { padding: 2pt 6pt; }
  .pl { break-inside: auto; }
  /* Umbrüche (D14): Tabellenkopf „PRO“/„UNLIMITED“ nicht ohne Tabelle am Seitenende, Modulkarten nicht zerteilen */
  .pl-kopf { break-after: avoid; break-inside: avoid; }
  .mod { break-inside: avoid; }
}
/* Eine zugeklappte PRO-Tabelle wird trotzdem gedruckt: eigene Regel, weil ältere Browser ::details-content nicht kennen
   (eine unbekannte Auswahl verwirft nur diese Regel); dazu öffnet preisrechner.js die Tabelle vor dem Drucken. */
@media print {
  .tab-det::details-content { display: block; content-visibility: visible; }
}
/* messung.css */
/* messung.css – Fenster zur Einwilligung in die Anzeigen-Messung (teile/messung.njk; B76, B86, B90, K68; AW-15, AW-17).
   Präfix mb-. Vorgeschobenes Fenster (<dialog>, showModal) in der Mitte; die Seite dahinter ist abgedunkelt und gesperrt
   (kein Klick, kein Rollen). Zwei Ebenen im selben Fenster, je mit rollendem Text und festem Knopfbereich: Passt bis
   320 px und 24 px Standardschrift in den Bildschirm, zu langer Text rollt im Fenster, die Knöpfe bleiben sichtbar.
   Knöpfe je Ebene gleich groß; schmal (auch 390 px) untereinander, breit nebeneinander (Container-Abfragen in em).
   Ohne JavaScript bleibt der <dialog> zu; deshalb steht display nur an .mb[open] und an sichtbaren Ebenen. */
.mb { container: mb / inline-size; width: min(40rem, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--r-l); background: var(--weiss); color: var(--text); box-shadow: var(--schatten-2); overflow: hidden; }
.mb[open] { display: flex; flex-direction: column; }
.mb::backdrop { background: var(--abdunkelung); }
/* Fokus beim Öffnen steht auf dem Fenster bzw. dem Titel der zweiten Ebene; beide sind keine Bedienelemente, daher ohne Rahmen */
.mb:focus, .mb-titel:focus { outline: none; }
.mb-ebene:not([hidden]) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.mb-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 24px 8px; font-size: .9375rem; line-height: 1.55; color: var(--text-2); overflow-wrap: break-word; }
.mb-titel { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.mb-knoepfe { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 24px 24px; }
.mb-knoepfe .knopf { width: 100%; min-width: 0; padding-inline: .75rem; overflow-wrap: anywhere; }

/* zweite Ebene: Arten von Speicherung mit Titel und Status bzw. Schalter */
.mb-art { border-top: 1px solid var(--rahmen); padding-top: 14px; margin-top: 14px; }
.mb-art > * + * { margin-top: 6px; }
.mb-art-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mb-art-titel { min-width: 0; font-weight: 700; color: var(--text); }
label.mb-art-titel { cursor: pointer; }
.mb-art code { font-size: .875em; }
/* Schalter: echtes Kontrollkästchen (role="switch") unsichtbar über der gezeichneten Spur, damit Klick und Tastatur wirken */
.mb-schalter-ort { position: relative; flex: none; width: 44px; height: 26px; }
.mb-schalter-feld { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mb-schalter { position: absolute; inset: 0; border-radius: 13px; background: var(--knopf-rahmen); transition: background-color .15s; }
.mb-schalter::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--weiss); box-shadow: var(--schatten-1); transition: transform .15s var(--ease); }
.mb-schalter-feld:checked + .mb-schalter { background: var(--blau); }
.mb-schalter-feld:checked + .mb-schalter::before { transform: translateX(18px); }
.mb-schalter-feld:focus-visible + .mb-schalter { outline: 3px solid var(--blau); outline-offset: 2px; }

/* breiter: erste Ebene zwei Hauptknöpfe nebeneinander, „Einstellungen“ darunter über die volle Breite;
   zweite Ebene drei Knöpfe nebeneinander */
@container mb (min-width: 30em) {
  .mb-text { padding: 32px 32px 8px; }
  .mb-knoepfe { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 32px 32px; }
  .mb-mehr { grid-column: 1 / -1; }
}
@container mb (min-width: 36em) { .mb-knoepfe--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container mb (min-width: 30em) and (max-width: 35.99em) { .mb-knoepfe--drei { grid-template-columns: minmax(0, 1fr); } }

/* Seite hinter dem offenen Fenster rollt nicht (nur am Bildschirm, damit der Druck nichts abschneidet) */
@media screen { :root:has(.mb[open]) { overflow: hidden; } }
/* sanftes Einblenden nur ohne Wunsch nach reduzierter Bewegung; in der ruhigen Fassung keine Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .mb[open], .mb[open]::backdrop { animation: mb-ein .18s ease-out; }
}
@media (prefers-reduced-motion: reduce) { .mb-schalter, .mb-schalter::before { transition: none; } }
@keyframes mb-ein { from { opacity: 0; } }
@media print { .mb, .mb::backdrop { display: none !important; } }
/* Nach der Wahl steht der Fokus am Anfang der Seite (messung.js setzt ihn kurz auf body); ohne Rahmen um die ganze Seite */
body[tabindex="-1"]:focus { outline: none; }