/* =====================================================================
   Magazinartikel im Design der Leistungsseiten
   Eingebunden vom Umbau-Schritt tools/magazin-umbau/umbau.mjs (main.mz, Kennzeichen data-umbau-magazin).
   Lädt nach seiten-wissen.css, seiten-magazin.css und leistung-neu.css, vor leistung-regeln.css
   (die Regel-Schicht bleibt die letzte: H2 44 px, H3 23 px, H4 20 px, Knöpfe 50 px Pille).
   Werte aus tools/eigene-seiten/GESTALTUNGSREGELN.md: Karten 20 px, kleine Bausteine 14 px,
   Bilder in Karten 8 px, Flächenfolge hell → beige → weiß → hell.
   ===================================================================== */

main.mz {
  --mz-schatten: 0 1px 2px rgba(42, 32, 28, .04), 0 18px 40px -22px rgba(42, 32, 28, .26);
  --mz-linie: rgba(42, 32, 28, .12);
  --mz-text: #40322C;
  --mz-abstand: clamp(4.5rem, 2rem + 5.6vw, 7.1rem);      /* 113,6 px bei 1440 px */
  --mz-kopfabstand: clamp(2.5rem, 1.5rem + 2.2vw, 3.75rem);
  --mz-toc: 19rem;
  --mz-spalte: 38rem;                                       /* Lesespalte: 18 px Fließtext, etwa 70 Zeichen je Zeile */
  --mz-luecke: clamp(3rem, 6.5vw, 6rem);
}
main.mz :is(h1, h2, h3, h4) { hyphens: manual; -webkit-hyphens: manual; }
main.mz { overflow-x: clip; }  /* kein waagrechter Überlauf (clip hält position: sticky intakt) */

/* ---------- 1 · Kopf: hell, Titel links, Kopfbild rechts ---------- */
.mz-kopf { position: relative; background: var(--porzellan); padding: calc(var(--head-h, 76px) + clamp(2.5rem, 5vw, 4.5rem)) 0 clamp(3.5rem, 6vw, 5.5rem); }
.mz-kopf__raster { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.mz-kopf__text { min-width: 0; }
main.mz .mz-kopf__titel {
  --mz-h1: 4.5rem;
  margin: 0; max-width: 16ch; color: var(--espresso);
  font-size: min(var(--mz-h1), calc(min(100vw - 2.5rem, 41rem) / (var(--hw, 10) * .74)));
  font-weight: 200; font-stretch: 125%; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance;
}
main.mz .mz-kopf__titel--mittel { --mz-h1: clamp(2.6rem, 1.4rem + 2.9vw, 4rem); max-width: 18ch; }
main.mz .mz-kopf__titel--lang { --mz-h1: clamp(2.4rem, 1.4rem + 2.4vw, 3.5rem); max-width: 20ch; line-height: 1.06; }
/* früheres Etikett über dem Titel: als ruhiger Satz unter dem Titel (Kundenregel: keine Eyebrows) */
main.mz .mz-kopf__satz { margin: 1.5rem 0 0; max-width: 44ch; font-size: var(--t-l); font-weight: 350; line-height: 1.6; color: #3A2C26; }
.mz-kopf__text > .btns { margin-top: 2rem; }
.mz-kopf__wertung { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 0; margin: clamp(2.25rem, 4vw, 3rem) 0 0; padding: 1.4rem 0 0; list-style: none; border-top: 1px solid rgba(42, 32, 28, .2); }
.mz-kopf__wertung li + li { margin-left: clamp(1.5rem, 3vw, 2.5rem); padding-left: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid rgba(42, 32, 28, .3); }
.mz-kopf__wertung a { display: flex; align-items: baseline; gap: .55rem; color: var(--espresso); text-decoration: none; }
.mz-kopf__wertung strong { font-size: 1.375rem; font-weight: 300; font-stretch: 112%; font-variant-numeric: lining-nums; }
.mz-kopf__wertung a > span:last-child { font-size: var(--t-s); color: #3A2C26; }
@media (hover: hover) and (pointer: fine) { .mz-kopf__wertung a:hover > span:last-child { text-decoration: underline; text-underline-offset: .2em; } }
.mz-kopf__wertung a:focus-visible { outline: 2px solid var(--mokka); outline-offset: 4px; border-radius: 4px; }
.mz-kopf__bild { margin: 0; aspect-ratio: var(--mz-verh, 1.2); border-radius: 20px; overflow: hidden; background: var(--nude); }
.mz-kopf__bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--mz-pos, 50% 30%); }

/* ---------- 2 · Kennzahlen: ruhiges Nude-Band direkt unter dem Kopf ---------- */
.mz-zahlen { background: var(--nude); padding-block: clamp(2.5rem, 4.5vw, 3.75rem); }
.mz-zahlen__raster { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
.mz-zahlen__liste { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 1.5rem 0; margin: 0; padding: 0; list-style: none; }
.mz-zahlen__liste li { display: grid; grid-template-areas: "pre" "zahl" "post"; align-content: start; padding: 0 clamp(1.5rem, 3vw, 3rem); border-left: 1px solid rgba(42, 32, 28, .2); color: var(--espresso); }
.mz-zahlen__liste li:first-child { padding-left: 0; border-left: 0; }
.mz-zahlen__liste .hp__pre { grid-area: pre; font-size: var(--t-s); color: var(--mz-text); }
.mz-zahlen__liste strong { grid-area: zahl; margin: .2rem 0 .15rem; font-size: clamp(2.2rem, 1.4rem + 1.8vw, 3rem); font-weight: 200; font-stretch: 125%; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.mz-zahlen__liste strong small { margin-left: .3rem; font-size: 1.0625rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; }
.mz-zahlen__liste .hp__post { grid-area: post; font-size: var(--t-s); color: var(--mz-text); }
.mz-zahlen__score { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: var(--t-s); color: var(--espresso); }
.mz-zahlen__score img { width: 30px; height: 30px; }

/* ---------- 3 · Artikel: Inhaltsverzeichnis als Karte, Lesespalte ---------- */
main.mz > .mz-artikel { background: var(--licht); padding: var(--mz-abstand) 0; }
main.mz .mz-artikel .mart__grid { grid-template-columns: minmax(0, var(--mz-toc)) minmax(0, var(--mz-spalte)); justify-content: center; gap: 2rem var(--mz-luecke); }
main.mz .mz-artikel .mart__grid:not(:has(.mart__toc:not([hidden]))) { grid-template-columns: minmax(0, var(--mz-spalte)); }
main.mz .mart__flow > * + * { margin-top: clamp(3.5rem, 6vw, 5rem); }
main.mz .mart__flow > .mblock + .mblock { margin-top: clamp(3rem, 5vw, 4rem); }
/* Inhaltsverzeichnis: ruhige Karte, klebt beim Lesen */
main.mz .mart__toc { top: calc(var(--head-h, 76px) + 1.5rem); max-height: calc(100vh - var(--head-h, 76px) - 3rem); padding: 1.5rem 1.4rem 1.6rem; border: 0; border-radius: 20px; background: var(--porzellan); box-shadow: inset 0 0 0 1px rgba(42, 32, 28, .05); }
main.mz .mart__toc ol { gap: .1rem; }
main.mz .mart__toc a { padding: .55rem 0 .55rem 1rem; font-size: var(--t-s); line-height: 1.45; color: var(--mz-text); }
main.mz .mart__toc a::before { left: 0; top: .6rem; bottom: .6rem; width: 2px; border-radius: 2px; }
main.mz .mart__toc li + li a { border-top: 1px solid var(--mz-linie); }
main.mz .mart__toc a[aria-current="true"] { color: var(--espresso); font-weight: 500; }

/* Fließtext nach Regel: 17 px, Zeilenhöhe 1,7, Farbe #40322C; Zwischentitel H2/H3/H4 aus leistung-regeln.css */
main.mz .mblock { color: var(--mz-text); }
main.mz .mblock > :is(p, ul, ol, h2, h3, h4, blockquote) { max-width: none; }
main.mz .mblock p, main.mz .mblock li { font-size: 1.125rem; line-height: 1.7; }
main.mz .mblock h2 { margin: 0 0 1.5rem; color: var(--espresso); text-wrap: balance; scroll-margin-top: calc(var(--head-h, 76px) + 1.5rem); }
main.mz .mblock > * + h2 { margin-top: clamp(3rem, 5vw, 4rem); }
main.mz .mblock h3 { margin: 2.5rem 0 .9rem; color: var(--espresso); text-wrap: balance; }
main.mz .mblock h4, main.mz .mblock h5, main.mz .mblock h6 { margin: 2rem 0 .7rem; color: var(--espresso); }
main.mz .mblock strong, main.mz .mblock b { font-weight: 600; color: var(--espresso); }
main.mz .mblock a:not(.btn) { color: var(--espresso); text-decoration-color: rgba(42, 32, 28, .4); }
/* Zitate und Fazit: Karte Porzellan, Radius 20 */
main.mz .mblock blockquote { margin: 1.75rem 0; padding: 1.75rem 2rem 1.9rem; border: 0; border-left: 0; border-radius: 20px; background: var(--porzellan); box-shadow: inset 0 0 0 1px rgba(42, 32, 28, .05); }
main.mz .mblock blockquote p { font-size: 1.25rem; font-weight: 300; font-stretch: 108%; line-height: 1.6; color: var(--espresso); }
/* Tabellen: Kopf als ruhige Zeile mit Rundung 14 */
main.mz .mblock table { margin: 1.75rem 0 2rem; font-size: var(--t-s); }
main.mz .mblock :is(th, td) { padding: .85rem 1rem; }
main.mz .mblock thead :is(th, td), main.mz .mblock tr:first-child th { background: var(--porzellan); border-top: 0; }
main.mz .mblock thead :is(th, td):first-child, main.mz .mblock tr:first-child th:first-child { border-radius: 14px 0 0 14px; }
main.mz .mblock thead :is(th, td):last-child, main.mz .mblock tr:first-child th:last-child { border-radius: 0 14px 14px 0; }
main.mz .mblock tr:first-child :is(th, td) { border-top: 0; }
/* Bilder im Text: volle Spaltenbreite, Radius 20, keine Bewegung; Hochformat im Querformat-Rahmen mit Kopf oben */
main.mz .mblock figure, main.mz .mblock .mfig { margin: 2.25rem 0; }
main.mz .mblock img { border-radius: 20px; transform: none !important; transition: none !important; animation: none !important; }
main.mz .mblock .mfig img { display: block; width: 100%; height: auto; max-height: none; object-fit: cover; }
main.mz .mblock .mfig--hoch img { aspect-ratio: 4 / 3; height: auto; object-position: 50% 18%; }

/* ---------- Bewertungen: Laufband (bw1) als eigener dunkler Abschnitt über die volle Breite, wie auf den Leistungsseiten ---------- */
main.mz > .mz-stimmen { background: var(--espresso); color: var(--licht); padding-block: var(--mz-abstand); overflow-x: clip; }
main.mz .mz-stimmen .bw1-b__band blockquote { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
main.mz .mz-stimmen .bw1-b__band blockquote p { margin: 0; }
main.mz .mz-stimmen .bw1-sterne { display: inline-flex; gap: 3px; }
main.mz .mz-stimmen .bw1-sterne svg { width: 13px; height: 13px; fill: var(--rose); }
main.mz .mz-stimmen .bw1-siegel .bw1-sterne svg { width: 12px; height: 12px; }
main.mz .mz-stimmen .bw1-btns { display: flex; flex-wrap: wrap; gap: .65rem; }
main.mz .mz-stimmen :focus-visible { outline-color: var(--nude); }

/* ---------- Aufruf-Karte (statt lg-cta): Bild oben, Titel, Text, zwei Knöpfe ---------- */
main.mz .mz-ruf { border-radius: 20px; background: var(--porzellan); box-shadow: var(--mz-schatten); overflow: hidden; }
main.mz .mz-ruf__bild { margin: 0; aspect-ratio: 2 / 1; background: var(--nude); }
main.mz .mz-ruf__bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 0; transform: none !important; }
main.mz .mz-ruf__text { padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.75rem, 3.5vw, 2.5rem) clamp(2rem, 3.5vw, 2.75rem); }
main.mz .mz-ruf .lx-ruf__titel { margin: 0; max-width: 24ch; color: var(--espresso); text-wrap: balance; }
main.mz .mz-ruf .lx-ruf__satz { margin: 1rem 0 0; max-width: 58ch; font-size: var(--t-m); line-height: 1.65; color: var(--mz-text); }
main.mz .mz-ruf .btns { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.75rem; }
/* Knöpfe mit Symbol (wie die Aufruf-Blöcke der Leistungsseiten) */
main.mz .btn--sym { display: inline-flex; align-items: center; gap: .6rem; }
main.mz .btn--sym svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
main.mz .btn--sym .btn__pfeil { width: 16px; height: 16px; margin-right: -.2rem; transition: transform .25s var(--ease-out, ease-out); }
@media (hover: hover) and (pointer: fine) { main.mz .btn--sym:hover .btn__pfeil { transform: translateX(3px); } }
main.mz .btn__zwei { display: grid; line-height: 1.15; text-align: left; }
main.mz .btn__zwei small { font-size: .75rem; font-weight: 400; opacity: .72; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { main.mz .btn--sym .btn__pfeil { transition: none; } }

/* ---------- FAQ wie auf den Leistungsseiten: Zeilen mit Rundung 14, Plus im Kreis ---------- */
main.mz .mblock--faq .faq-list { display: grid; gap: .75rem; margin-top: 0; }
main.mz .mblock--faq .a-item { margin: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--mz-linie); }
main.mz .mblock--faq .a-item .q { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 1.25rem; width: 100%; min-height: 60px; padding: 1rem 1rem 1rem 1.4rem; border: 0; background: none; text-align: left; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; color: var(--espresso); cursor: pointer; }
main.mz .mblock--faq .faq-list { border-bottom: 0; }
main.mz .mblock--faq .a-item .ico { position: relative; top: auto; right: auto; flex: none; width: 32px; height: 32px; margin: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(42, 32, 28, .35); }
main.mz .mblock--faq .a-item.open .ico { box-shadow: none; }
main.mz .mblock--faq .a-item .a-inner { padding: 0 1.4rem; }
main.mz .mblock--faq .a-inner p, main.mz .mblock--faq .a-inner li { font-size: var(--t-m); }
main.mz .mblock--faq .a-item .q:focus-visible { outline: 2px solid var(--mokka); outline-offset: 2px; border-radius: 14px; }

/* ---------- Das könnte Sie auch interessieren ---------- */
main.mz .mz-rel { padding-top: clamp(2.5rem, 4vw, 3rem); border-top: 1px solid var(--mz-linie); }
main.mz .mz-rel .mrel__t { margin: 0 0 1.25rem; color: var(--espresso); }
main.mz .mz-rel .mrel__list { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
main.mz .mz-rel .mrel__list a { min-height: 50px; padding: 0 1.4rem; background: transparent; box-shadow: inset 0 0 0 1px rgba(42, 32, 28, .35); font-size: var(--t-s); font-weight: 500; letter-spacing: .02em; }
@media (hover: hover) and (pointer: fine) { main.mz .mz-rel .mrel__list a:hover { background: var(--porzellan); box-shadow: inset 0 0 0 1px var(--espresso); } }

/* ---------- Autorbox (wie „Medizinisch geprüft von“ der Leistungsseiten) ---------- */
main.mz .mz-autor { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 2rem; align-items: start; padding: 2.5rem; border-radius: 20px; background: var(--porzellan); box-shadow: var(--mz-schatten); }
main.mz .mz-autor__bild { position: relative; display: block; width: 112px; height: 112px; }
main.mz .mz-autor__bild img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; box-shadow: 0 0 0 4px var(--licht), 0 10px 24px -12px rgba(42, 32, 28, .45); }
main.mz .mz-autor__haken { position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mokka); color: #fff; box-shadow: 0 0 0 3px var(--licht); }
main.mz .mz-autor__haken svg { width: 16px; height: 16px; stroke-width: 2; }
main.mz .mz-autor__titel { margin: .35rem 0 0; color: var(--espresso); }
main.mz .mz-autor__text p { margin: 1rem 0 0; font-size: var(--t-m); line-height: 1.7; color: var(--mz-text); }
main.mz .mz-autor__text .btns { margin-top: 1.5rem; }

/* ---------- Weitere Artikel ---------- */
main.mz > .mz-mehr { margin-top: 0; border-top: 0; background: var(--porzellan); padding-block: var(--mz-abstand); }
main.mz .mz-mehr h2 { margin: 0 0 var(--mz-kopfabstand); color: var(--espresso); }
main.mz .mz-mehr .wmag__img { border-radius: 20px; overflow: hidden; }
main.mz .mz-mehr .wmag__img img, main.mz .mz-mehr .wmag__art:hover .wmag__img img { transform: none !important; transition: none !important; }
main.mz .mz-mehr .wmag__date { font-size: var(--t-s); color: var(--muted); }
main.mz .mz-mehr h3 a { color: var(--espresso); }

/* ---------- Schmal: nur nicht kaputt (Desktop zuerst) ---------- */
@media (max-width: 1100px) {
  main.mz .mz-artikel .mart__grid { grid-template-columns: minmax(0, var(--mz-spalte)); }
}
@media (max-width: 900px) {
  .mz-kopf__raster { grid-template-columns: minmax(0, 1fr); }
  .mz-kopf__bild { order: -1; }
  .mz-zahlen__raster { grid-template-columns: minmax(0, 1fr); }
  .mz-zahlen__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0; }
  .mz-zahlen__liste li:nth-child(odd) { padding-left: 0; border-left: 0; }
  main.mz .mz-autor { grid-template-columns: minmax(0, 1fr); padding: 1.75rem; }
  .mz-kopf__wertung li + li { margin-left: 1rem; padding-left: 1rem; }
  main.mz .mz-stimmen .bw1-b__nav { flex-wrap: wrap; }
  main.mz .mz-stimmen .bw1-b__leiste { width: 5rem; }
  main.mz .mz-stimmen .bw1-siegel { flex-wrap: wrap; gap: 1rem 0; }
}


/* ============================================================
   Handy-Optimierung 13.11.2026 (übrige Seiten)
   ============================================================ */
@media (max-width:640px){
  /* Magazin-Artikel: weitere Artikel als Wisch-Slider, nächster Artikel angeschnitten */
  html body main.mz .mz-mehr .mmore__list{display:flex;gap:.75rem;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);scroll-padding-inline:var(--gutter)}
  html body main.mz .mz-mehr .mmore__list::-webkit-scrollbar{display:none}
  html body main.mz .mz-mehr .mmore__list > li{flex:0 0 84%;min-width:0;scroll-snap-align:start}
}
@media (max-width:520px){
  /* Kopf: die zwei Bewertungen sauber untereinander (ohne eingerückte Trennlinie) */
  html body main.mz .mz-kopf__wertung{display:grid;gap:.5rem}
  html body main.mz .mz-kopf__wertung li + li{margin-left:0;padding-left:0;border-left:0}
}
@media (max-width:640px){
  /* Tabellen mit drei und mehr Spalten: nicht mehr in schmale Spalten gequetscht (Wörter wurden mitten im Wort getrennt),
     sondern seitlich wischbar mit gut lesbaren Spalten. Zweispaltige Tabellen bleiben in der Seitenbreite. */
  html body main.mz .mblock table{font-size:.9375rem}
  html body main.mz .mblock table:has(tr > :nth-child(3)){display:block;width:auto;max-width:none;table-layout:auto;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);font-size:1rem;scrollbar-width:thin}
  html body main.mz .mblock table:has(tr > :nth-child(3)) :is(th,td){min-width:11.5rem;hyphens:manual;-webkit-hyphens:manual;overflow-wrap:normal;word-break:normal}
  html body main.mz .mblock table:has(tr > :nth-child(3)) :is(th,td):first-child{min-width:8rem}
  html body main.mz .mblock table:not(:has(tr > :nth-child(3))) :is(th,td){hyphens:manual;-webkit-hyphens:manual;overflow-wrap:break-word}

  /* Knöpfe im Aufruf-Kasten über die volle Breite (die Knöpfe unter den Bewertungen regelt leistung-regeln.css) */
  html body main.mz .mz-ruf .btns{display:grid;grid-template-columns:minmax(0,1fr)}
}
