/* Magazin: /magazin/… (after main.css) and the magazin shelf of the landing
   page (after startseite.css). Colours and radii from site.css. */

.mz { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(20px, 3vw, 40px) var(--pad-x) 56px; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.mz h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.02em; font-weight: 500; margin: 0; }
.mz h2 { font-size: 28px; font-weight: 500; margin: 0; }
.mz-head { display: flex; flex-direction: column; gap: 8px; }
.mz-head p { margin: 0; color: var(--ink-soft); }
.mz :is(.kicker), .mz-card .kicker { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--aubergine); }
.mz .kicker a { color: inherit; }
.mz-preview { margin: 0; padding: 8px 14px; border: 1.5px solid var(--aubergine); border-radius: var(--radius-cta); color: var(--aubergine); font-weight: 600; }

.mz-section { display: flex; flex-direction: column; gap: 16px; }
.mz-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mz-section__head a { font-weight: 600; }
.mz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }

/* Cards */
.mz-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px; display: flex; flex-direction: column; gap: 10px; margin: 0; min-width: 0; }
.mz-card h3 { font-size: 20px; line-height: 1.2; font-weight: 500; margin: 0; }
.mz-card h3 a { text-decoration: none; color: var(--ink); }
.mz-card p { margin: 0; }
.mz-card .muted { color: var(--muted); font-size: 14px; }
.mz-card__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* Video: photo + play button; the iframe replaces the button on click. */
.mz-player { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--aubergine); }
.mz-player--hoch { aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; width: min(100%, calc(78vh * 9 / 16)); }
.mz-player iframe, .mz-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mz-play { padding: 0; cursor: pointer; background: none; display: grid; place-items: center; }
.mz-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mz-play__icon { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; box-shadow: 0 4px 18px rgb(0 0 0 / 25%); transition: transform .15s ease; }
.mz-play:hover .mz-play__icon, .mz-play:focus-visible .mz-play__icon { transform: scale(1.08); background: var(--orange-dark); }
.mz-play__icon svg { margin-left: 4px; }
/* Shorts in a grid: portrait cards, a narrower column. */
.mz-grid--videos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mz-card--hoch .mz-player { width: 100%; max-height: none; }

/* Buchtipp */
.mz-tipp { display: flex; gap: 14px; align-items: flex-start; }
.mz-tipp .cover { flex: 0 0 80px; text-decoration: none; }
.mz-tipp .cover img, .mz-tipp .cover__blank { display: block; width: 80px; height: 120px; object-fit: cover; border-radius: 4px; }
.mz-weil { background: #ffe24a; padding: 10px 12px; border-radius: 4px; font-size: 17px; line-height: 1.3; }
.mz-weil span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.mz-weil--gross { font-size: 22px; padding: 16px 18px; }

/* Satz der Woche */
.mz-satz { background: var(--sand); border-color: transparent; }
.mz-satz blockquote { margin: 0; font-size: 26px; line-height: 1.25; }
.mz-satz figcaption { font-size: 14px; color: var(--muted); margin-top: auto; }

/* Links to the shop */
.mz-buchlinks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mz-buchlink { font-weight: 600; color: var(--orange-dark); text-decoration: none; }
.mz-buchlink::after { content: " →"; }
.mz-buchlink:hover { text-decoration: underline; }

/* Ticker */
.mz-ticker { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mz-ticker li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.mz-ticker time { font-weight: 700; margin-right: 6px; }
.mz-ticker__kat { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--aubergine); margin-right: 6px; }
.mz-liste { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* Detail pages */
.mz-artikel { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.mz-artikel--lang { max-width: 880px; }
.mz-person { margin: 0; font-size: 18px; color: var(--ink-soft); }
.mz-artikel__img { display: block; width: 100%; height: auto; border-radius: 4px; }
.mz-lead { font-size: 20px; line-height: 1.45; margin: 0; }
.mz-lead p:first-child, .mz-text p:first-child { margin-top: 0; }
.mz-text, .mz-fragen dd { font-size: 18px; line-height: 1.55; }
.mz-fragen { margin: 0; }
.mz-fragen dt { font-weight: 700; font-size: 20px; margin-top: 24px; color: var(--aubergine); }
.mz-fragen dd { margin: 8px 0 0; }
.mz-bio { background: var(--sand); padding: 18px 20px; border-radius: 4px; }
.mz-bio h2 { font-size: 20px; margin-bottom: 6px; }
.mz-buecher { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.mz-pager { display: flex; gap: 16px; align-items: center; justify-content: center; }
.mz-pager a { font-weight: 600; }

/* Landing page: the magazin shelf (templates/web/partials/magazin_regal.html). */
/* auto-fill: a lone tile keeps the column width of the unfolded cards instead of stretching. */
.mzr .mz-grid { flex: 1 1 560px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* A Short must not stretch the whole shelf: cap its height, the photo crops. */
.mzr .mz-card--hoch .mz-player { max-height: 380px; }
.mzr__toggle { align-self: center; }
.mzr__toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.mzr__toggle svg { transition: transform .2s ease; }
.mzr__mehr { flex: 1 1 100%; display: flex; flex-direction: column; gap: 20px; }
.mzr__mehr h3 { font-size: 22px; font-weight: 500; margin: 0; }
.mzr__ganz { font-weight: 700; }

/* Verlag der Woche, Werbung (Phase 3) */
.mz-verlag__text p { margin: 0 0 .6em; }
.mz-werbung { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mz-werbung__item { position: relative; text-decoration: none; color: var(--ink); background: var(--sand); }
.mz-werbung__label { align-self: flex-start; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 2px 6px; border-radius: 2px; }
