/* STRLL Magazin (de/magazin/*). Loaded on top of strll.css, which provides tokens, header, buttons and footer.
   Printed-travel-guide look after the TSTE guide (structure and proportions only). Departures from DESIGN.md are
   limited to the two named exceptions in its "Magazin" section: the navy cover surface and the sticky chapter index. */

:root { --nav-h: 68px; --index-h: 52px; }

.mag-kicker { margin: 0; font-size: var(--fs-14); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }

/* The header is solid from the start on pages that open on a light surface (template). */
.nav.nav--solid { background: rgba(245, 245, 247, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--border); color: var(--ink); }

/* ---------- Cover (exception 1): navy surface, BRAND mood photo on the right fading into navy ---------- */
.mag-cover { position: relative; padding: 0; overflow: hidden; background: var(--ink); color: #fff; }
.mag-cover-bg { position: absolute; inset: 0 0 0 38%; }
.mag-cover-bg img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.mag-cover-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(31, 38, 65, 0.62) 45%, rgba(31, 38, 65, 0.15) 100%); }
.mag-cover-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); align-items: end; padding-top: 200px; padding-bottom: var(--space-6); }
.mag-cover .mag-kicker { color: var(--mint); }
.mag-cover h1 { color: #fff; font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; line-height: 0.98; max-width: 9ch; margin: var(--space-3) 0; }
.mag-lede { color: rgba(255, 255, 255, 0.92); font-size: var(--fs-19); line-height: 1.5; max-width: 36ch; }
/* STRLL compass instead of a rotating seal: static, no animation */
.mag-mark { display: block; color: #fff; opacity: 0.92; }

/* ---------- Sticky chapter index (exception 2) ---------- */
.mag-index { position: sticky; top: var(--nav-h); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
.mag-index ol { list-style: none; display: flex; gap: var(--space-4); margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.mag-index ol::-webkit-scrollbar { display: none; }
.mag-index a { display: flex; align-items: baseline; gap: 8px; min-height: var(--index-h); padding: 14px 0 12px; box-sizing: border-box; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: var(--fs-16); color: var(--ink-muted); border-bottom: 3px solid transparent; }
.mag-index a span { font-size: var(--fs-14); font-variant-numeric: tabular-nums; }
.mag-index a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.mag-index a:focus-visible { color: var(--ink); outline-offset: -3px; }

/* ---------- Chapters (index page) ---------- */
.mag-body { padding-bottom: var(--space-6); }
.mag-chapter { padding: var(--space-6) 0 var(--space-3); scroll-margin-top: calc(var(--nav-h) + var(--index-h) + var(--space-2)); }
.mag-chapter h2 { margin-top: var(--space-1); }
.mag-empty { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--ink); color: var(--ink-muted); font-size: var(--fs-19); }

/* ---------- Article tiles, 3:4 (used in chapters once articles exist, and in "Weiterlesen") ---------- */
.mag-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--space-3); }
.mag-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.mag-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 17, 41, 0) 35%, rgba(13, 17, 41, 0.9) 100%); }
.mag-card-text { position: absolute; z-index: 1; left: var(--space-2); right: var(--space-2); bottom: var(--space-2); display: grid; gap: 4px; }
.mag-card-kicker { font-size: var(--fs-14); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); }
.mag-card b { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-19); line-height: 1.2; }
.mag-card:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Closing band ---------- */
.mag-band { background: var(--ink); color: #fff; text-align: center; }
.mag-band h2 { color: #fff; margin-bottom: var(--space-2); }
.mag-band p { color: rgba(255, 255, 255, 0.92); font-size: var(--fs-19); max-width: 52ch; margin: 0 auto var(--space-4); }

/* ---------- Article template ---------- */
.tpl-note { margin: 0; padding: calc(var(--nav-h) + var(--space-2)) var(--space-3) var(--space-2); background: var(--surface); border-bottom: 2px dashed var(--ink); text-align: center; color: var(--ink); }
.art { padding: var(--space-6) 0 0; }
.art-head, .art-col { max-width: 720px; margin: 0 auto; padding: 0 var(--space-3); }
.art-head h1 { margin: var(--space-2) 0 var(--space-3); font-size: clamp(2.5rem, 5.5vw, var(--fs-64)); font-weight: 800; line-height: 1.02; }
.art-lead { font-size: var(--fs-24); line-height: 1.45; color: var(--ink-muted); max-width: 36ch; }
.art-hero { max-width: var(--container-max); margin: var(--space-5) auto var(--space-5); padding: 0 var(--space-3); }
.art-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.art-hero figcaption { margin-top: var(--space-1); font-size: var(--fs-14); color: var(--ink-muted); }
.art-glance { margin: 0 0 var(--space-5); padding: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.art-glance h2 { font-size: var(--fs-24); margin-bottom: var(--space-2); }
.art-glance dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: 0; }
.art-glance dt { font-size: var(--fs-14); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.art-glance dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-19); }
.art-text > p { max-width: 68ch; font-size: var(--fs-19); line-height: 1.7; margin: 0 0 var(--space-3); }
.art-text h2 { margin: var(--space-5) 0 var(--space-3); font-size: clamp(var(--fs-24), 3vw, var(--fs-32)); }
.art-stops { list-style: none; margin: 0 0 var(--space-4); padding: 0; counter-reset: stop; }
.art-stops li { counter-increment: stop; position: relative; padding: 0 0 var(--space-4) 64px; }
.art-stops li::before { content: counter(stop); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-16); }
.art-stops h3 { font-size: var(--fs-24); margin: 6px 0 var(--space-1); }
.art-stops p { max-width: 62ch; font-size: var(--fs-19); line-height: 1.7; }
.art-quote { margin: var(--space-5) 0; padding: 0 0 0 var(--space-3); border-left: 4px solid var(--mint); }
.art-quote p { font-family: var(--font-display); font-weight: 700; font-size: clamp(var(--fs-24), 3vw, var(--fs-32)); line-height: 1.25; max-width: 24ch; }
.art-more { padding: var(--space-6) 0 var(--space-7); }
.art-more h2 { margin-bottom: var(--space-4); }
.art-more .mag-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .mag-index ol { gap: var(--space-1); }
  .mag-index a { font-size: var(--fs-14); }
  .mag-cover-bg { inset: 0; }
  .mag-cover-main { grid-template-columns: minmax(0, 1fr); padding-top: 160px; }
  .mag-mark { width: 96px; height: 96px; }
  .art-lead { font-size: var(--fs-19); }
  .art-text > p, .art-stops p { font-size: 1.0625rem; }
  .art-glance dl { grid-template-columns: 1fr; }
  .art-more .mag-tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 480px) and (max-width: 760px) {
  .art-more .mag-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
