/* NWM-Piktogramme auf den Infoseiten */
#body #content .nwm-impressum .nwm-bildfluss { display: flow-root; }
#body #content .nwm-impressum .nwm-motiv {
  float: left;
  --bildbreite: clamp(88px, 13cqi, 128px);
  width: var(--bildbreite);
  height: var(--bildbreite);
  margin: 0 clamp(10px, 1.5cqi, 17px) 5px 0;
  background: url("../images/nwm-piktogramme-40aa6bfaece5.webp") var(--motiv-x) var(--motiv-y) / 400% 400% no-repeat;
  pointer-events: none;
}
#body #content .nwm-datenschutz .ds-text > .nwm-motiv + :is(h3,h4,p) { margin-top: 0; }
#body #content .nwm-impressum .im-hinweise > section { display: flow-root; }
#body #content .nwm-impressum .im-kontakt-feld .im-kontakt { padding: 0; display: block; }
#body #content .nwm-impressum .im-kontakt-feld dt:not(:first-child) { margin-top: .5rem; }
#body #content .nwm-impressum .im-kontakt-feld dd { overflow-wrap: anywhere; }
#body #content .nwm-sitemap .sm-bildliste { padding: .8rem clamp(.85rem, 2.7cqi, 1.5rem); }
#body #content .nwm-sitemap .sm-bildliste .sm-links { padding: 0; }
#body #content .nwm-sitemap .sm-bildliste li { display: flow-root; }
#body #content .nwm-datenschutz .ds-inhalt .nwm-bildfluss ol { overflow: hidden; }
#body #content .nwm-kontakt .kt-aktionen {
  display:grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 245px),1fr));
  align-items:stretch; gap:.65rem;
}
#body #content .nwm-kontakt .kt-aktionen a {
  padding: .65rem .85rem;
  background:#fff; color:#a50a02; border:1px solid var(--linie);
  text-decoration:underline; text-underline-offset:.18em;
}
#body #content .nwm-kontakt .kt-aktionen a:hover { background:#fff7f5; }
#body #content .nwm-kontakt .kt-aktionen .nwm-motiv { --bildbreite: clamp(70px, 9cqi, 90px); }
@media print {
  #body #content .nwm-impressum .nwm-motiv { display:none; }
}
.nwm-impressum [data-nwm-motiv="telefon"] { --motiv-x: 0%; --motiv-y: 0%; }
.nwm-impressum [data-nwm-motiv="brief"] { --motiv-x: 33.333333%; --motiv-y: 0%; }
.nwm-impressum [data-nwm-motiv="recht"] { --motiv-x: 66.666667%; --motiv-y: 0%; }
.nwm-impressum [data-nwm-motiv="kamera"] { --motiv-x: 100%; --motiv-y: 0%; }
.nwm-impressum [data-nwm-motiv="nachrichten"] { --motiv-x: 0%; --motiv-y: 33.333333%; }
.nwm-impressum [data-nwm-motiv="team"] { --motiv-x: 33.333333%; --motiv-y: 33.333333%; }
.nwm-impressum [data-nwm-motiv="ort"] { --motiv-x: 66.666667%; --motiv-y: 33.333333%; }
.nwm-impressum [data-nwm-motiv="dialog"] { --motiv-x: 100%; --motiv-y: 33.333333%; }
.nwm-impressum [data-nwm-motiv="redaktion"] { --motiv-x: 0%; --motiv-y: 66.666667%; }
.nwm-impressum [data-nwm-motiv="schutz"] { --motiv-x: 33.333333%; --motiv-y: 66.666667%; }
.nwm-impressum [data-nwm-motiv="server"] { --motiv-x: 66.666667%; --motiv-y: 66.666667%; }
.nwm-impressum [data-nwm-motiv="struktur"] { --motiv-x: 100%; --motiv-y: 66.666667%; }
.nwm-impressum [data-nwm-motiv="analyse"] { --motiv-x: 0%; --motiv-y: 100%; }
.nwm-impressum [data-nwm-motiv="werkzeuge"] { --motiv-x: 33.333333%; --motiv-y: 100%; }
.nwm-impressum [data-nwm-motiv="zahlung"] { --motiv-x: 66.666667%; --motiv-y: 100%; }
.nwm-impressum [data-nwm-motiv="agentur"] { --motiv-x: 100%; --motiv-y: 100%; }
#body #content .nwm-kontakt .kt-aktionen a { display:flex; align-items:center; gap:.75rem; }
#body #content .nwm-kontakt .kt-aktionen .nwm-motiv { flex:none; margin:0; }

/* Der rote Abschluss folgt der Form des Paragraphen, die Puzzle-Nase ist rot. */
@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
  #body #content .nwm-impressum .nwm-motiv:is([data-nwm-motiv="recht"], [data-nwm-motiv="werkzeuge"]) {
    position: relative;
  }
  #body #content .nwm-impressum .nwm-motiv:is([data-nwm-motiv="recht"], [data-nwm-motiv="werkzeuge"])::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 70%, #be0900 70%);
    -webkit-mask: url("../images/nwm-piktogramme-40aa6bfaece5.webp") var(--motiv-x) var(--motiv-y) / 400% 400% no-repeat;
    mask: url("../images/nwm-piktogramme-40aa6bfaece5.webp") var(--motiv-x) var(--motiv-y) / 400% 400% no-repeat;
  }
  #body #content .nwm-impressum .nwm-motiv[data-nwm-motiv="werkzeuge"]::after {
    background: linear-gradient(to bottom, #be0900 28%, transparent 28%);
  }
}
#body #content .nwm-kontakt .kt-aktionen .kt-rufnummer { white-space: nowrap; }
#body #content .nwm-impressum .im-kontakt-feld .im-feld { display: flow-root; }
#body #content .nwm-impressum .im-kontakt-feld .im-feld + .im-feld { margin-top: .5rem; }
@container (max-width: 579px) {
  #body #content .nwm-datenschutz .ds-inhalt .nwm-motiv {
    float: right;
    margin: 0 0 .4rem .8rem;
  }
  #body #content .nwm-datenschutz .ds-inhalt .nwm-bildfluss ol {
    display: block;
    overflow: visible;
  }
  #body #content .nwm-datenschutz .ds-inhalt li + li { margin-top: .45rem; }
}
/* Durchgehende Textspalte rechts vom Motiv. */
#body #content .nwm-impressum .nwm-spalten {
  display:grid;
  grid-template-columns:min(26%,128px) minmax(0,1fr);
  gap:clamp(9px,1.5cqi,20px);
  align-items:start;
  width:100%;
  max-width:none;
}
#body #content .nwm-impressum .nwm-spalten > .nwm-motiv,
#body #content .nwm-kontakt .kt-aktionen.kt-direkt a > .nwm-motiv {
  float:none;
  width:100%;
  height:auto;
  aspect-ratio:1;
  margin:0;
}
#body #content .nwm-impressum .nwm-spaltentext { min-width:0; overflow-wrap:anywhere; }
#body #content .nwm-datenschutz .ds-text .nwm-spaltentext { max-width:76ch; }
#body #content .nwm-datenschutz .nwm-spaltentext > :first-child { margin-top:0; }
#body #content .nwm-kontakt .nwm-spaltentext > p + p { margin-top:.65rem; }
#body #content .nwm-kontakt .kt-teamliste .nwm-spaltentext {
  display:grid;
  gap:12px;
}
#body #content .nwm-kontakt .kt-teamliste .kt-person { padding:10px clamp(6px,1.2cqi,14px); }
#body #content .nwm-kontakt .kt-teamliste .kt-wege a { display:block; align-content:center; width:100%; }
#body #content .nwm-kontakt .kt-post .nwm-spalten { align-items:center; }
#body #content .nwm-kontakt .kt-post address { width:100%; text-align:center; }
#body #content .nwm-kontakt .kt-aktionen.kt-direkt a {
  display:grid;
  grid-template-columns:min(17%,80px) minmax(0,1fr);
  align-items:center;
  gap:clamp(6px,1cqi,14px);
  padding-inline:clamp(8px,1.5cqi,18px);
}
@container (max-width:349px) {
  #body #content .nwm-kontakt .kt-aktionen.kt-direkt a { font-size:20px; }
}
#body #content .nwm-kontakt .kt-meldebox .nwm-spaltentext { container: hinweistext / inline-size; }
@container hinweistext (max-width:250px) {
  #body #content .nwm-kontakt .kt-meldebox iframe { height:425px; }
}
@media print {
  #body #content .nwm-impressum .nwm-spalten { display:block; }
}
