/* Anschreiben-Röntgen (Panel #wz-roentgen). Alles unter .wz-rt- bzw. #wz-roentgen gescoped. */
#wz-roentgen .wz-rt { --wz-rt-marker: #ffb0005c; --wz-rt-marker-an: #ffb00099; --wz-rt-welle: #a95f00; --wz-rt-linie: #00000021; color: var(--n-tinte); font-family: Satoshi, "Helvetica Neue", Arial, sans-serif; min-width: 0; }
#wz-roentgen .wz-rt *, #wz-roentgen .wz-rt *::before, #wz-roentgen .wz-rt *::after { box-sizing: border-box; }
#wz-roentgen .wz-rt [hidden] { display: none !important; }

.wz-rt-intro { max-width: 720px; margin-bottom: 36px; }
.wz-rt-titel { font-size: clamp(26px, 3vw, 38px); line-height: 1.05; font-weight: 900; letter-spacing: -.03em; margin: 0 0 16px; }
.wz-rt-lead { font-size: 17px; line-height: 1.6; color: var(--n-leise-d); margin: 0; }

/* Eingabe */
.wz-rt-form { display: grid; gap: 24px; }
.wz-rt-feldkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.wz-rt-feldkopf label, .wz-rt-firma label { font-size: 15px; font-weight: 700; line-height: 1.3; }
.wz-rt-optional { font-weight: 500; color: var(--n-leise-d); }
#wz-roentgen .wz-rt-text { display: block; width: 100%; min-height: 260px; padding: 18px 20px; border: 2px solid var(--n-tinte); border-radius: 0; background: #fff; color: var(--n-tinte); font: 500 16px/1.65 Satoshi, "Helvetica Neue", Arial, sans-serif; resize: vertical; }
#wz-roentgen .wz-rt-text::placeholder { color: #7a7a70; }
#wz-roentgen .wz-rt-text:focus-visible, #wz-roentgen .wz-rt-firma input:focus-visible { outline: 3px solid var(--n-orange); outline-offset: 2px; }
.wz-rt-fuss { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--n-leise-d); }
.wz-rt-fuss p { margin: 0; }
.wz-rt-zaehler { font-variant-numeric: tabular-nums; }
.wz-rt-zaehler.wz-rt-voll { color: var(--n-tinte); font-weight: 700; }
.wz-rt-zeile { display: flex; align-items: flex-end; gap: 20px 28px; flex-wrap: wrap; }
.wz-rt-firma { flex: 1 1 280px; display: grid; gap: 8px; }
#wz-roentgen .wz-rt-firma input { width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-bottom: 2px solid var(--n-tinte); border-radius: 0; background: #ffffff8c; color: var(--n-tinte); font: 500 16px/1.2 Satoshi, "Helvetica Neue", Arial, sans-serif; }
#wz-roentgen .wz-rt-pruefen { flex: 0 0 auto; }
#wz-roentgen .wz-rt .n-knopf:focus-visible, #wz-roentgen .wz-rt .n-link:focus-visible, #wz-roentgen .wz-rt button:focus-visible { outline: 3px solid var(--n-orange); outline-offset: 3px; }
#wz-roentgen .wz-rt-beispiel { color: var(--n-tinte); }

.wz-rt-status { margin: 18px 0 0; font-size: 15px; font-weight: 700; min-height: 1px; }
.wz-rt-status:empty { margin: 0; }
#wz-roentgen .wz-rt-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Ergebnis */
.wz-rt-ergebnis { margin-top: 40px; }
.wz-rt-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--n-tinte); margin-bottom: 28px; }
.wz-rt-summe { margin: 0; max-width: 720px; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.2; font-weight: 900; letter-spacing: -.02em; }
.wz-rt-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 700; }
.wz-rt-legende li { display: flex; align-items: center; gap: 10px; }
.wz-rt-probe { display: inline-block; padding: 1px 3px; font-weight: 500; }
.wz-rt-probe-streichen { background: var(--wz-rt-marker); box-shadow: inset 0 -2px 0 var(--n-orange); }
.wz-rt-probe-belegen { text-decoration: underline wavy var(--wz-rt-welle) 2px; text-underline-offset: 5px; text-decoration-skip-ink: none; }

.wz-rt-raster { display: grid; gap: 28px; min-width: 0; }
.wz-rt-blatt-rahmen { min-width: 0; background: #fff; border: 1px solid var(--wz-rt-linie); padding: clamp(20px, 4vw, 48px); }
.wz-rt-blatt-kopf, .wz-rt-notizen-kopf { margin: 0 0 18px; font-size: 13px; font-weight: 700; color: var(--n-leise-d); }
.wz-rt-beispiel-marke { display: inline-block; margin: 0 0 18px; padding: 5px 9px; border: 1px solid var(--n-tinte); font-size: 12px; font-weight: 700; line-height: 1.2; }
.wz-rt-blatt-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 17px; line-height: 1.85; max-width: 70ch; }

/* Die zwei Markierungsarten */
#wz-roentgen .wz-rt-m { color: inherit; background: none; padding: 1px 0; cursor: pointer; border-radius: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .15s; }
#wz-roentgen .wz-rt-m-streichen { background: var(--wz-rt-marker); box-shadow: inset 0 -2px 0 var(--n-orange); }
#wz-roentgen .wz-rt-m-belegen { text-decoration: underline wavy var(--wz-rt-welle) 2px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
#wz-roentgen .wz-rt-m-streichen:hover, #wz-roentgen .wz-rt-m-streichen.wz-rt-an { background: var(--wz-rt-marker-an); }
#wz-roentgen .wz-rt-m-belegen:hover, #wz-roentgen .wz-rt-m-belegen.wz-rt-an { background: #ffb00026; }
#wz-roentgen .wz-rt-m:focus { outline: 0; }
#wz-roentgen .wz-rt-m:focus-visible, #wz-roentgen .wz-rt-m.wz-rt-an { outline: 2px solid var(--n-tinte); outline-offset: 2px; }
.wz-rt-nr { font-size: 11px; font-weight: 900; line-height: 0; margin-left: 2px; vertical-align: super; text-decoration: none; display: inline-block; }

.wz-rt-laenge { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--wz-rt-linie); font-size: 14px; line-height: 1.55; color: var(--n-leise-d); max-width: 70ch; }

/* Erklärung der angetippten Stelle (mobil, klebt unten im Blatt) */
.wz-rt-aktiv { position: sticky; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 2; margin-top: 22px; padding: 16px 18px 12px; background: var(--n-tinte); color: #f4f4ee; border-left: 4px solid var(--n-orange); box-shadow: 0 10px 30px #0003; }
.wz-rt-aktiv-kopf { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-weight: 900; font-size: 16px; line-height: 1.3; }
.wz-rt-aktiv .wz-rt-notiz-nr { background: var(--n-orange); color: var(--n-tinte); }
.wz-rt-aktiv-text { margin: 0; font-size: 15px; line-height: 1.55; }
#wz-roentgen .wz-rt-aktiv-zu { margin-top: 6px; min-height: 44px; padding: 0; background: none; border: 0; border-bottom: 1px solid currentColor; color: inherit; font: 700 14px/1 Satoshi, sans-serif; cursor: pointer; }

/* Randnotizen */
.wz-rt-notizen { min-width: 0; }
.wz-rt-liste { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--wz-rt-linie); }
.wz-rt-notiz { padding: 18px 16px 10px; border-top: 1px solid var(--wz-rt-linie); border-left: 3px solid transparent; transition: background-color .15s, border-color .15s; }
.wz-rt-notiz.wz-rt-an { background: #fff; border-left-color: var(--n-orange); }
.wz-rt-notiz-kopf { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 16px; font-weight: 900; line-height: 1.3; }
.wz-rt-notiz-nr { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 4px; background: var(--n-tinte); color: #fff; font-size: 12px; font-weight: 900; }
.wz-rt-notiz-art { display: flex; align-items: center; gap: 8px; margin: 8px 0 0 34px; font-size: 13px; font-weight: 700; color: var(--n-leise-d); }
.wz-rt-notiz-art::before { content: ""; width: 18px; height: 10px; flex: 0 0 auto; }
.wz-rt-notiz-streichen .wz-rt-notiz-art::before { background: var(--wz-rt-marker); border-bottom: 2px solid var(--n-orange); }
.wz-rt-notiz-belegen .wz-rt-notiz-art::before { content: "\00a0\00a0\00a0\00a0\00a0"; width: auto; height: auto; line-height: 1; text-decoration: underline wavy var(--wz-rt-welle) 2px; text-underline-offset: 3px; text-decoration-skip-ink: none; }
.wz-rt-notiz-zitat { margin: 10px 0 0 34px; font-size: 14px; line-height: 1.5; font-style: italic; color: var(--n-leise-d); overflow-wrap: anywhere; }
.wz-rt-notiz-text { margin: 10px 0 0 34px; font-size: 15px; line-height: 1.55; }
#wz-roentgen .wz-rt-zur-stelle { margin: 4px 0 0 34px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--n-tinte); font: 700 14px/1 Satoshi, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.wz-rt-leer { padding: 18px 0; border-top: 1px solid var(--wz-rt-linie); font-size: 15px; line-height: 1.55; color: var(--n-leise-d); }

/* Austauschbar-Test */
.wz-rt-test { margin-top: 40px; padding-top: 26px; border-top: 2px solid var(--n-tinte); }
.wz-rt-test > * { max-width: 820px; }
.wz-rt-test-frage { margin: 0 0 12px; font-size: clamp(19px, 2vw, 24px); font-weight: 900; line-height: 1.25; letter-spacing: -.015em; }
.wz-rt-test-antwort { margin: 0; font-size: 17px; line-height: 1.6; }
.wz-rt-test-liste { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.wz-rt-test-liste li { padding: 10px 14px; background: #fff; border-left: 3px solid var(--n-leise-d); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.wz-rt-test-liste li.wz-rt-test-warn { border-left-color: var(--n-orange); font-weight: 700; }
.wz-rt-test-klein { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--n-leise-d); }

/* Modul-06-Hinweis */
.wz-rt-modul { margin-top: 48px; display: grid; gap: 14px 40px; padding: clamp(24px, 4vw, 44px); background: var(--n-tinte); color: #f4f4ee; }
.wz-rt-modul-nr { margin: 0; font-size: clamp(30px, 4vw, 52px); font-weight: 900; line-height: .95; letter-spacing: -.04em; color: var(--n-orange); }
.wz-rt-modul-text p { margin: 0; font-size: 17px; line-height: 1.6; max-width: 620px; }
.wz-rt-modul-text strong { font-weight: 900; color: #fff; }
.wz-rt-modul-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 24px; }
#wz-roentgen .wz-rt-modul .n-link { color: #f4f4ee; }
.wz-rt-ehrlich { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--n-leise-d); }

@media (min-width: 900px) {
  .wz-rt-raster { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 36px; }
  .wz-rt-klebt .wz-rt-blatt-rahmen { position: sticky; top: 104px; }
  #wz-roentgen .wz-rt-klebt .wz-rt-aktiv { display: none; }
  .wz-rt-aktiv { bottom: 16px; }
  .wz-rt-modul { grid-template-columns: auto 1fr; align-items: start; }
}
@media (max-width: 560px) {
  #wz-roentgen .wz-rt-pruefen { width: 100%; }
  .wz-rt-blatt-text { font-size: 16px; line-height: 1.8; }
  .wz-rt-notiz { padding-left: 12px; padding-right: 8px; }
  .wz-rt-notiz-art, .wz-rt-notiz-zitat, .wz-rt-notiz-text, #wz-roentgen .wz-rt-zur-stelle { margin-left: 0; }
  #wz-roentgen .wz-rt-modul .n-knopf { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #wz-roentgen .wz-rt-m, .wz-rt-notiz { transition: none; }
}
