/* Ratschlag Auto — Editorial Magazine Theme */

/* ---------- Local Webfonts (DSGVO) ---------- */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-italic-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #EFEEEA;
  --bg-alt: #E8E7E2;
  --ink: #16161A;
  --ink-soft: #2C2C30;
  --muted: #6B6B70;
  --muted-2: #9A9A9E;
  --line: #C9C8C2;
  --line-soft: #D9D8D2;
  --navy: #1E2BB8;
  --navy-deep: #161E8A;
  --navy-soft: #E0E2F4;
  --white: #FFFFFF;

  --fs-display: "Source Serif 4", "Playfair Display", "Source Serif Pro", Georgia, serif;
  --fs-serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --fs-italic: "DM Serif Display", "Source Serif 4", Georgia, serif;
  --fs-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --max: 1280px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fs-serif);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Page chrome ---------- */
.page {
  min-height: 100vh;
  position: relative;
  padding-left: 100px;
  padding-right: 32px;
}

/* WP wendet auf wp:post-content automatisch .has-global-padding an
   (theme.json styles.spacing.padding). Innerhalb .page haben wir aber
   bereits .container und .page-padding — sonst würde das Padding
   doppelt aufaddiert (Body wäre weit rechts vom Title). */
.page .has-global-padding,
.page .wp-block-post-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Lange URLs/Wörter im Content niemals horizontal scrollen lassen */
.article-body,
.page-body,
.wp-block-post-content,
.comment-wrap .body {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-body a,
.page-body a,
.wp-block-post-content a,
.comment-wrap .body a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Body-Niveau: kein horizontales Scrollen erlauben */
html, body { overflow-x: hidden; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100vh;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 0 28px;
  z-index: 10;
  background: var(--bg);
}
.sidebar .nav,
.sidebar .ra-menu {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 22px;
  font-family: var(--fs-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  max-height: calc(100vh - 200px);
}
.sidebar .nav li,
.sidebar .ra-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}
.sidebar .nav a,
.sidebar .ra-menu a {
  color: var(--ink-soft);
  padding: 0;
  text-decoration: none;
  transition: color .2s;
  display: inline-block;
}
.sidebar .nav a:hover { color: var(--navy); }
.sidebar .nav a.active { color: var(--navy); font-weight: 600; }

.sidebar .meta {
  margin-top: auto;
  font-family: var(--fs-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: row;
  gap: 18px;
}

.sidebar .vline {
  position: absolute;
  top: 28px;
  bottom: 28px;
  right: 0;
  width: 1px;
  background: transparent;
}
.sidebar .ticks {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--fs-mono);
  font-size: 8px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.navy { color: var(--navy); }
.eyebrow.bracket::before { content: "["; }
.eyebrow.bracket::after { content: "]"; }

.display {
  font-family: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--navy);
}
.display.massive { font-size: clamp(64px, 9vw, 132px); }
.display.large   { font-size: clamp(56px, 7vw, 96px); }
.display.medium  { font-size: clamp(40px, 5vw, 64px); }

.title-italic {
  font-family: var(--fs-italic);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

.serif-bold {
  font-family: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.lede {
  font-family: var(--fs-italic);
  font-style: italic;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
}

.body-text {
  font-family: var(--fs-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Buttons / links ---------- */
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.read-link:hover { color: var(--navy); border-color: var(--navy); }

/* Tag-Chip — gescopt, damit nicht das WP-body.tag (Tag-Archiv-Body-Klasse) gematcht wird */
.archiv-table .tag,
.tag-cloud .tag,
span.tag,
a.tag {
  display: inline-block;
  font-family: var(--fs-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ---------- Header ---------- */
.masthead {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.masthead .right {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.masthead .right .sketch { color: var(--navy); align-self: flex-end; }
.masthead .right .meta-block { max-width: 360px; }
.masthead .right .meta-block .eyebrow.navy { display: block; margin-bottom: 10px; }
.masthead .right .meta-block p {
  font-family: var(--fs-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.masthead h1.display { margin: 0 0 18px; }
.masthead .subtitle {
  font-family: var(--fs-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Featured row ---------- */
.featured {
  padding-top: 48px;
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
}
.featured .row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.featured .row + .row { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line-soft); }
.featured .row.flip,
.featured .wp-block-post:nth-child(even) .row { grid-template-columns: 1.1fr 1fr; }
.featured .row.flip .text,
.featured .wp-block-post:nth-child(even) .row .text { order: 2; }
.featured .row.flip .image,
.featured .wp-block-post:nth-child(even) .row .image { order: 1; }
.featured .text .ref {
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--navy);
  margin-bottom: 16px;
}
.featured .text h2 {
  font-family: var(--fs-italic);
  font-style: italic;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
}
.featured .text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 440px;
}

.image-frame {
  aspect-ratio: 16/11;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, #2a2a2a 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #2a2a2a, #0d0d0d);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35);
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Article grid ---------- */
.grid-section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-head h3 {
  font-family: var(--fs-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  margin: 0;
  color: var(--ink);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.article-card .ref {
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--navy);
  letter-spacing: 0.18em;
  margin-top: 14px;
}
.article-card h4,
.article-card .wp-block-post-title,
.article-card .wp-block-post-title a {
  font-family: var(--fs-italic);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.18;
  margin: 8px 0 10px;
  color: var(--ink);
  text-transform: none !important;
  letter-spacing: 0;
}
.article-card p,
.article-card .wp-block-post-excerpt,
.article-card .wp-block-post-excerpt p,
.article-card .wp-block-post-excerpt__excerpt {
  font-family: var(--fs-serif) !important;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 12px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400;
}
.article-card .meta-row {
  font-family: var(--fs-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 14px;
}

/* ---------- Stat block (navy card) ---------- */
.stat-block {
  background: var(--navy);
  color: white;
  padding: 56px 56px 48px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.stat-block .eyebrow { color: rgba(255,255,255,.7); }
.stat-block h2 {
  font-family: var(--fs-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  color: white;
  max-width: 560px;
}
.stat-block .stats {
  position: absolute;
  top: 56px;
  right: 56px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 36px 56px;
  font-family: var(--fs-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.stat-block .stats .num {
  font-family: var(--fs-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.01em;
  color: white;
  margin-top: 4px;
  text-transform: none;
  line-height: 1;
}
.stat-block .stats .num small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  font-family: var(--fs-mono);
  letter-spacing: 0.18em;
  margin-top: 6px;
  color: rgba(255,255,255,.85);
}
.stat-block .ghost {
  position: absolute;
  bottom: -40px;
  right: 40px;
  font-family: var(--fs-display);
  font-weight: 700;
  font-size: 220px;
  color: rgba(255,255,255,.06);
  letter-spacing: -0.04em;
  pointer-events: none;
  line-height: 1;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 64px;
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer .center { text-align: center; }
.footer .right { text-align: right; }

/* ---------- Compare (Duell) ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 56px;
}
.compare-card .ref {
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.compare-card h3 {
  font-family: var(--fs-italic);
  font-style: italic;
  font-weight: 600;
  font-size: 36px;
  margin: 24px 0 22px;
  color: var(--ink);
}
.compare-card h3 small { font-size: 18px; color: var(--muted); font-weight: 400; }
.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.spec-row .k { color: var(--muted); }
.spec-row .v { color: var(--ink); font-weight: 600; }

/* ---------- Klassiker timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 32px 0;
}
.timeline .item .yr {
  font-family: var(--fs-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--navy);
  margin-bottom: 10px;
}
.timeline .item .name {
  font-family: var(--fs-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
}

/* ---------- Archiv table ---------- */
.archiv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.archiv-table thead th {
  text-align: left;
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 18px 12px;
  border-bottom: 1px solid var(--ink);
}
.archiv-table thead th.titel {
  font-family: var(--fs-italic);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.archiv-table tbody td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.archiv-table tbody tr:hover { background: rgba(30,43,184,.04); cursor: pointer; }
.archiv-table .ref-cell {
  font-family: var(--fs-mono);
  font-size: 13px;
  color: var(--navy);
  width: 80px;
}
.archiv-table .titel-cell {
  font-family: var(--fs-italic);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.archiv-table .cat-cell .tag { font-size: 10px; padding: 3px 8px; }
.archiv-table .ausg-cell, .archiv-table .pub-cell {
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.archiv-table .pub-cell { text-align: right; }

/* ---------- Article page ---------- */
.article-hero { padding: 56px 0 32px; }
.article-hero .back {
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-block;
  margin-bottom: 32px;
}
.article-hero .back:hover { color: var(--navy); }
.article-hero h1 {
  font-family: var(--fs-display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 18px 0 32px;
  max-width: 1100px;
}
.article-hero .byline {
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 0 12px;
}
.article-hero .byline > * {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  padding: 0;
}
.article-hero .byline a { color: inherit; text-decoration: none; }
.article-hero .byline a:hover { color: var(--navy); }
.article-hero .byline .dot { color: var(--line); }

/* ---------- Editorial Article Body ---------- */
.article-body {
  font-family: var(--fs-body);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}
.article-body > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.article-body > .alignwide { max-width: 1100px; }
.article-body > .alignfull { max-width: none; }
.article-body p {
  margin: 0 0 1.4em;
  hanging-punctuation: first last;
}
.article-body h2 {
  font-family: var(--fs-display);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  color: var(--ink);
}
.article-body h3 {
  font-family: var(--fs-display);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  margin: 40px 0 12px;
  color: var(--ink);
}
.article-body h4 {
  font-family: var(--fs-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin: 32px 0 10px;
  color: var(--ink);
}
.article-body figcaption {
  display: block;
  margin-top: 12px;
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: left;
  line-height: 1.5;
}
.article-body figcaption:empty { display: none; }

/* ---------- Mobile-Anpassungen Single ---------- */
/* ============================================================
   MOBILE — Coherent paddings (single source of truth)
   ============================================================
   Token: --ra-mobile-pad = 20px horizontal padding for ALL content.
   Applied to .container AND to direct page children that don't sit
   inside a .container (article-body, comments, related, footer-blocks).
   No element-specific !important padding hacks elsewhere.
   ============================================================ */
@media (max-width: 720px) {
  :root { --ra-mobile-pad: 20px; }

  /* Container: single source of horizontal padding */
  .container {
    max-width: 100%;
    padding-left: var(--ra-mobile-pad);
    padding-right: var(--ra-mobile-pad);
  }

  /* Direct page children that aren't wrapped in .container — same padding.
     (Footer-Bereich .newsletter-box / .tag-cloud / .footer-magazin haben
      eigenes Padding via <footer>-Wrapper unten) */
  .article-body,
  .wp-block-post-content.article-body,
  .wp-block-comments,
  .comments,
  .related,
  .related-posts {
    box-sizing: border-box !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: var(--ra-mobile-pad) !important;
    padding-right: var(--ra-mobile-pad) !important;
  }

  /* Footer-Wrapper: 100px-Padding (Sidebar-Reservation) auf Mobile zurücknehmen */
  body > footer,
  .wp-site-blocks > footer,
  footer.footer-magazin,
  footer .newsletter-box,
  footer .tag-cloud {
    padding-left: var(--ra-mobile-pad) !important;
    padding-right: var(--ra-mobile-pad) !important;
  }
  /* Newsletter-Box: kompakteres Innen-Padding auf Mobile */
  .newsletter-box {
    padding: 28px 22px !important;
    margin: 32px 0 !important;
  }
  .tag-cloud { margin: 32px 0 !important; padding: 24px 0 !important; }
  .footer-magazin { margin-top: 48px !important; padding: 32px 0 24px !important; }

  /* Reset all multi-column layouts to single column */
  .article-hero,
  .masthead,
  .masthead .left,
  .masthead .right,
  .article-grid,
  .blocks-grid,
  .timeline,
  .compare-grid,
  .tech-block,
  .featured .row,
  .featured .row.flip,
  .featured .wp-block-post:nth-child(even) .row {
    display: block;
    grid-template-columns: 1fr !important;
    column-count: 1;
  }
  .article-grid,
  .blocks-grid,
  .timeline { display: grid; gap: 32px; }

  /* Article hero — single column, image full width */
  .article-hero h1 {
    font-size: clamp(32px, 9vw, 56px);
    line-height: 1.05;
    margin: 12px 0 18px;
    max-width: 100%;
    letter-spacing: -0.01em;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
  .article-hero .byline,
  .article-hero .byline-wrap {
    font-size: 10px;
    gap: 10px;
    margin-bottom: 16px;
  }
  .article-hero .hero-img,
  .article-hero figure,
  .article-hero img {
    width: 100%;
    max-width: 100%;
    margin: 16px 0 0;
  }

  /* Article body — full width with container padding (already applied above) */
  .article-body {
    font-size: 17px;
    line-height: 1.6;
    padding-top: 16px;
    padding-bottom: 32px;
  }
  .article-body > * {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .article-body h2 { font-size: clamp(22px, 6vw, 28px); margin: 36px 0 12px; }
  .article-body h3 { font-size: clamp(19px, 5vw, 22px); margin: 28px 0 10px; }
  .article-body blockquote,
  .article-body .wp-block-quote {
    margin: 24px 0;
    padding: 4px 0 4px 18px;
    font-size: clamp(17px, 4.6vw, 22px);
  }
  .article-body ul,
  .article-body ol { padding-left: 1.2em; }
  .article-body figure { margin: 24px 0; }
  .article-body img { width: 100%; height: auto; }

  /* Featured row — single column, even posts no longer flip */
  .featured { padding-left: var(--ra-mobile-pad); padding-right: var(--ra-mobile-pad); }
  .featured .row .text,
  .featured .row .image,
  .featured .wp-block-post:nth-child(even) .row .text,
  .featured .wp-block-post:nth-child(even) .row .image { order: initial !important; }
  .featured .text h2 { font-size: clamp(22px, 6vw, 28px); line-height: 1.15; }
  .featured .text p { max-width: 100%; font-size: 15px; }

  /* Masthead — stack right column under left, no left-border on right */
  .masthead .right {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
    margin-top: 24px;
  }

  /* Grid sections inside .container don't need extra padding */
  .grid-section { padding: 32px 0; }
}

.article-body strong, .article-body b { color: var(--ink); font-weight: 700; }
.article-body em, .article-body i { font-style: italic; color: var(--ink); }
.article-body a {
  color: var(--navy);
  text-decoration: none;
  background-image: linear-gradient(var(--navy), var(--navy));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
}
.article-body a:hover { background-size: 100% 2px; }
.article-body ul, .article-body ol {
  margin: 1.6em auto;
  padding: 0;
  list-style: none;
}
.article-body ul li, .article-body ol li {
  position: relative;
  padding: 4px 0 4px 28px;
  margin: 0;
  line-height: 1.55;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 18px;
  height: 1px;
  background: var(--navy);
}
.article-body ol { counter-reset: ra-li; }
.article-body ol li {
  counter-increment: ra-li;
  padding-left: 44px;
}
.article-body ol li::before {
  content: counter(ra-li, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.55em;
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--navy);
  background: none;
  width: auto;
  height: auto;
}
.article-body blockquote,
.article-body .wp-block-quote {
  position: relative;
  border-left: 0;
  padding: 16px 0 16px 60px;
  margin: 56px 0;
  font-family: var(--fs-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
}
/* Großes typografisches Anführungszeichen statt Border */
.article-body blockquote::before,
.article-body .wp-block-quote::before {
  content: "\201E"; /* „ */
  position: absolute;
  left: -4px;
  top: -8px;
  font-family: var(--fs-display);
  font-style: normal;
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  color: var(--navy);
  opacity: 0.85;
}
.article-body blockquote > *:first-child {
  margin-top: 0;
}
.article-body blockquote > *:last-child {
  margin-bottom: 0;
}
.article-body blockquote p {
  margin: 0 0 0.8em;
  text-indent: 0;
}
.article-body blockquote p:last-of-type { margin-bottom: 0; }
.article-body blockquote cite,
.article-body .wp-block-quote cite,
.article-body blockquote footer,
.article-body .wp-block-quote footer {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--fs-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-body blockquote cite::before,
.article-body .wp-block-quote cite::before {
  content: "— ";
  color: var(--navy);
}
/* Pull-Quote Variante (größer, zentriert) */
.article-body .wp-block-pullquote {
  margin: 64px 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.article-body .wp-block-pullquote blockquote {
  margin: 0;
  padding: 40px 0 40px 60px;
  font-size: clamp(24px, 2.2vw, 32px);
}
.article-body figure { margin: 40px auto; }
.article-body figure img { width: 100%; height: auto; display: block; }
.article-body figcaption {
  margin-top: 12px;
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: left;
  line-height: 1.5;
}
.article-body figcaption:empty { display: none; }
.article-body hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 56px auto;
  max-width: 120px;
}
.article-body code {
  font-family: var(--fs-mono);
  font-size: 0.88em;
  background: rgba(30,43,184,.06);
  padding: 2px 6px;
  border-radius: 2px;
}
.article-hero .hero-img {
  margin: 48px 0;
  aspect-ratio: 16/8;
  background: #111;
  position: relative;
  overflow: hidden;
}
.article-hero .hero-img .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, #1f1f1f 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #2c2c2c, #0a0a0a);
}

.article-body { max-width: 1100px; margin: 0 auto; padding-bottom: 64px; }
.article-body .lede {
  max-width: 920px;
  margin: 24px 0 32px;
}
.article-body .two-col {
  column-count: 2;
  column-gap: 56px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article-body .two-col p { margin: 0 0 1.2em; break-inside: avoid; }

.pullquote {
  text-align: center;
  margin: 80px auto;
  max-width: 1000px;
  padding: 0 32px;
}
.pullquote q {
  font-family: var(--fs-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
  quotes: "\201C" "\201D";
}
.pullquote q::before { content: open-quote; }
.pullquote q::after { content: close-quote; }
.pullquote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

.tech-block {
  background: var(--navy);
  color: white;
  border-radius: 6px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  margin: 56px 0;
}
.tech-block .eyebrow { color: rgba(255,255,255,.7); margin-bottom: 18px; display: block; }
.tech-block p { color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.7; margin: 0; }
.tech-block .stat-line {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 16px;
}
.tech-block .stat-line .lbl {
  font-family: var(--fs-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.tech-block .stat-line .val {
  font-family: var(--fs-display);
  font-weight: 700;
  font-size: 32px;
  color: white;
  margin-top: 6px;
}
.tech-block .diagram {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin: 64px 0 32px;
}
.section-headers h3 {
  font-family: var(--fs-italic);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  margin: 0 0 18px;
  color: var(--ink);
}
.section-headers p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* ---------- Block-editor demo strip ---------- */
.blocks-strip {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 48px;
  margin: 56px 0;
  border-radius: 4px;
}
.blocks-strip h3 {
  font-family: var(--fs-italic);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
}
.blocks-strip .sub { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.blocks-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.block-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 14px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  min-height: 96px;
}
.block-tile:hover { border-color: var(--navy); transform: translateY(-1px); }
.block-tile .ico {
  width: 28px; height: 28px;
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.block-tile:hover .ico { border-color: var(--navy); color: var(--navy); }
.block-tile .lbl {
  font-family: var(--fs-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.block-tile .desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Page nav (top) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 32px 12px 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.topbar .brand { color: var(--navy); font-weight: 600; }
.topbar .links { display: flex; gap: 28px; }
.topbar .links a { color: var(--ink-soft); }
.topbar .links a:hover, .topbar .links a.active { color: var(--navy); }

/* ---------- Image placeholder generators ---------- */
.ph-gradient-1 { background: linear-gradient(135deg, #2a2a2a, #0a0a0a); }
.ph-gradient-2 { background: linear-gradient(135deg, #3a3a3a, #1a1a1a); }
.ph-gradient-3 { background: linear-gradient(180deg, #404040, #1a1a1a); }
.ph-gradient-4 { background: radial-gradient(circle at 30% 30%, #4a4a4a, #0a0a0a 70%); }
.ph-gradient-5 { background: linear-gradient(45deg, #2a2a2a, #1a1a1a 50%, #2a2a2a); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .page { padding-left: 64px; }
  .sidebar { width: 64px; }
  .topbar { padding-left: 96px; }
  .article-grid, .timeline, .blocks-grid { grid-template-columns: repeat(2, 1fr); }
  .featured .row, .featured .row.flip,
  .compare-grid, .tech-block, .section-headers { grid-template-columns: 1fr; gap: 32px; }
  .article-body .two-col { column-count: 1; }
  .stat-block {
    padding: 44px 40px 36px;
  }
  .stat-block h2 { max-width: none; }
  .stat-block .stats {
    position: static;
    margin-top: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
  }
  .stat-block .stats > div { min-width: 0; }
  .stat-block .stats .num { font-size: clamp(30px, 5vw, 36px); }
  .stat-block .ghost {
    font-size: 168px;
    right: 24px;
    bottom: -24px;
  }
  .masthead { grid-template-columns: 1fr; }
  .masthead .right { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .masthead {
    padding: 40px 0 32px;
    gap: 28px;
  }
  .masthead .subtitle,
  .masthead .right .meta-block p {
    font-size: 11px;
    letter-spacing: 0.16em;
    line-height: 1.7;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
  }
  .section-head h3 { font-size: 28px; }
  .featured {
    padding-top: 32px;
    padding-bottom: 52px;
  }
  .featured .row + .row {
    margin-top: 40px;
    padding-top: 36px;
  }
  .featured .text h2 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.08;
  }
  .featured .text p {
    font-size: 15px;
    line-height: 1.65;
  }
  .stat-block {
    padding: 32px 28px 28px;
    border-radius: 4px;
  }
  .stat-block h2 {
    font-size: clamp(30px, 11vw, 44px);
    line-height: 1;
  }
  .stat-block .stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stat-block .stats .num small {
    font-size: 11px;
    letter-spacing: 0.14em;
  }
  .stat-block .ghost {
    font-size: 120px;
    right: 12px;
    bottom: -12px;
  }
  .blocks-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card .meta-row {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .article-hero {
    padding: 28px 0 20px;
  }
  .article-hero h1 {
    font-size: clamp(24px, 9vw, 34px);
    line-height: 1.04;
    margin: 14px 0 18px;
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: none;
  }
  .article-hero .byline {
    gap: 10px 14px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }
}
