*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.75;color:#333;background:#f0f2f5}
.css-yyynd19{max-width:860px;margin:0 auto;padding:0 20px}
.css-kdhbtjk{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.css-kdhbtjk h1{font-size:22px;font-weight:700;margin-bottom:2px}
.css-kdhbtjk p{font-size:14px;color:#666}
.css-kdhbtjk a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.css-qt4cfz2{display:flex;flex-direction:column;gap:20px}
.css-saeb1r0{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.css-saeb1r0:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.css-saeb1r0 h2{font-size:19px;margin-bottom:6px}
.css-saeb1r0 h2 a{color:#1a1a1a;text-decoration:none}
.css-saeb1r0 .css-j13yfva{font-size:12px;color:#999;margin-bottom:8px}
.css-saeb1r0 p{font-size:14px;color:#555;margin-bottom:12px}
.css-6gg41f6{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.css-6gg41f6:hover{background:#4752c4}
.css-a4t2adb{padding-bottom:60px}
.css-a4t2adb h1{font-size:30px;font-weight:700;margin-bottom:8px}
.css-a4t2adb time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.css-a4t2adb h2{font-size:22px;margin:32px 0 12px}
.css-a4t2adb h3{font-size:18px;margin:24px 0 8px}
.css-a4t2adb p{margin-bottom:16px}
.css-a4t2adb ul,.css-a4t2adb ol{margin:0 0 16px 24px}
.css-a4t2adb a{color:#5865f2}
.css-a4t2adb img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.css-vk78fe8{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.css-vk78fe8 a{color:#999;text-decoration:none}
.css-nrb9w9v{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.css-5lzujhk{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.css-7ak39is{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.css-tbopwp3{text-align:center;margin:0 0 24px}
.css-xaahccf{max-width:100%;height:auto;border-radius:12px}
.css-7uagzui{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.css-7uagzui h3{font-size:16px;font-weight:700;margin-bottom:12px}
.crd-related-list{display:flex;flex-direction:column;gap:8px}
.crd-related-link{display:block;background:#fff;border-radius:8px;padding:10px 14px;color:#333;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.06);font-size:14px}
.crd-related-link:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
.css-plg14a0{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.css-m1dv3r7{display:block;background:#fff;border-radius:8px;padding:10px 16px;color:#1a1a1a;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.05);font-size:15px}
.css-m1dv3r7:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
:root{--primary:#4A2D31;--accent:#5C7185;--bg:#F0E6D2;--fg:#1A0E10;--border:#C7BD9F;--r:29px;--fb:'Sora';--fh:'Newsreader';--moment:#8C4A00;--paper:#FAF5EC}
/* === Custom === */
/* v.5521e2 — layout revision */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500;1,6..72,600&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --moment: #8C4A00;
  --paper: #FAF5EC;
  --paper-hero: #FBF7EF;
  --paper-warm: #F3EAD7;
  --ink-band: rgba(20, 24, 28, .58);
  --ink-band-soft: rgba(20, 24, 28, .22);
}

/* ---------- Base ---------- */
:root body { font-family: var(--fb), system-ui, -apple-system, sans-serif; color: var(--fg); background: var(--bg); line-height: 1.72; font-size: 16.5px; }
::selection { background: var(--primary); color: var(--bg); }
:root hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }

/* ---------- Masthead ---------- */
:root body > header {
  background: linear-gradient(rgba(40, 26, 28, .72), rgba(40, 26, 28, .86)), url("/theme-assets/cover.jpg");
  background-size: cover; background-position: center;
  padding: 78px 0 58px; margin-bottom: 64px;
  border-bottom: 3px solid var(--accent);
  text-align: center; box-shadow: none;
}
:root body > header > div { text-align: center; }
:root body > header::before {
  content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23F0E6D2' stroke-width='2'%3E%3Ccircle cx='32' cy='32' r='30' stroke-opacity='.55'/%3E%3Cellipse cx='32' cy='40' rx='10.5' ry='8.5'/%3E%3Ccircle cx='19' cy='29' r='4.2'/%3E%3Ccircle cx='27' cy='22' r='4.2'/%3E%3Ccircle cx='37' cy='22' r='4.2'/%3E%3Ccircle cx='45' cy='29' r='4.2'/%3E%3C/svg%3E") no-repeat center / contain;
}
:root body > header h1 {
  font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 500;
  font-size: 42px; line-height: 1.1; color: var(--bg); letter-spacing: 0; margin: 0 0 12px;
}
:root body > header p {
  font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 400;
  font-size: 15.5px; line-height: 1.5; color: rgba(240, 230, 210, .82);
  max-width: 46ch; margin: 0 auto;
}
:root body > header span a {
  font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 500;
  font-size: 27px; color: var(--bg); text-decoration: none; letter-spacing: 0;
}

/* ================= HOMEPAGE ================= */
:root main { padding-bottom: 80px; }

:root main:not(:has(> h1)) > div {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 44px 30px; align-items: stretch;
}

/* Section label above Editor's Picks (full-row) */
:root main:not(:has(> h1)) > div::before {
  content: "Ausgewählte Notizen · Zuerst lesen";
  grid-column: 1 / -1; order: 2;
  font-family: var(--fb), sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--primary);
  padding-bottom: 12px; margin: 28px 0 2px;
  border-bottom: 1px solid var(--accent);
}

/* Strip 1 — between picks and journal */
:root main:not(:has(> h1)) > div::after {
  content: "DAS JOURNAL — AKTUELLSTE ZUERST";
  grid-column: 1 / -1; order: 4;
  min-height: 200px; margin: 40px 0 6px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(var(--ink-band), var(--ink-band-soft)), url("/theme-assets/story-bg.jpg");
  background-size: cover; background-position: center 30%;
  border-radius: 9px;
  color: #F0E6D2; font-family: var(--fb), sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

/* Strip 2 — closing "read more" band after the grid */
:root main:not(:has(> h1))::after {
  content: "MEHR LESEN";
  display: flex; align-items: center; justify-content: center;
  min-height: 210px; margin: 60px 0 0;
  background: linear-gradient(var(--ink-band), var(--ink-band-soft)), url("/theme-assets/story-bg.jpg");
  background-size: cover; background-position: center 70%;
  border-radius: 9px;
  color: #F0E6D2; font-family: var(--fb), sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

/* Generic card (Editor's Picks + Journal) */
:root main:not(:has(> h1)) > div > div {
  background: var(--paper); border: 1px solid rgba(74, 45, 49, .10);
  border-radius: 8px; padding: 26px 32px 24px;
  box-shadow: 0 1px 4px rgba(74, 45, 49, .05);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
:root main:not(:has(> h1)) > div > div:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(74, 45, 49, .10); border-color: rgba(92, 113, 133, .40); }
:root main:not(:has(> h1)) > div > div > p:first-child {
  font-family: var(--fb), sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
:root main:not(:has(> h1)) > div > div > h2 { font-size: 19px; line-height: 1.28; margin-bottom: 12px; }
:root main:not(:has(> h1)) > div > div > h2 a { font-family: var(--fh), Cambria, serif; font-weight: 500; color: var(--primary); text-decoration: none; }
:root main:not(:has(> h1)) > div > div > h2 a:hover { color: var(--accent); }
:root main:not(:has(> h1)) > div > div > h2 + p {
  font-family: var(--fh), Cambria, serif; font-size: 15.5px; line-height: 1.65; color: var(--fg);
  opacity: .86; margin-bottom: 18px; max-width: 64ch; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:root main:not(:has(> h1)) > div > div > a:last-child {
  font-family: var(--fb), sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); text-decoration: none;
  background: transparent; padding: 0; align-self: flex-start;
}
:root main:not(:has(> h1)) > div > div > a:last-child::after { content: " →"; }
:root main:not(:has(> h1)) > div > div > a:last-child:hover { color: var(--primary); }

/* Card placement */
:root main:not(:has(> h1)) > div > div:nth-child(1) { grid-column: 1 / -1; order: 1; }
:root main:not(:has(> h1)) > div > div:nth-child(2),
:root main:not(:has(> h1)) > div > div:nth-child(3),
:root main:not(:has(> h1)) > div > div:nth-child(4) { grid-column: span 2; order: 3; }
:root main:not(:has(> h1)) > div > div:nth-child(n+5) { grid-column: span 3; order: 5; }

/* Hero (featured) card */
:root main:not(:has(> h1)) > div > div:nth-child(1) {
  background: var(--paper-hero); border: 1px solid rgba(74, 45, 49, .14);
  border-radius: 10px; padding: 44px 48px;
  box-shadow: 0 2px 16px rgba(74, 45, 49, .10);
}
:root main:not(:has(> h1)) > div > div:nth-child(1)::before {
  content: "Aktuellste Notize"; display: block;
  font-family: var(--fb), sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
:root main:not(:has(> h1)) > div > div:nth-child(1) > p:first-child {
  font-family: var(--fb), sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
:root main:not(:has(> h1)) > div > div:nth-child(1) > p:first-child::before { content: "Von Sophie Richter · "; color: var(--primary); }
:root main:not(:has(> h1)) > div > div:nth-child(1) > h2 { font-size: 44px; line-height: 1.12; margin-bottom: 20px; }
:root main:not(:has(> h1)) > div > div:nth-child(1) > h2 a { font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 500; color: var(--primary); }
:root main:not(:has(> h1)) > div > div:nth-child(1) > h2 + p {
  font-family: var(--fh), Cambria, serif; font-size: 20px; line-height: 1.55; color: var(--fg);
  opacity: 1; max-width: 62ch; margin-bottom: 26px;
  display: block; -webkit-line-clamp: none; overflow: visible;
}
:root main:not(:has(> h1)) > div > div:nth-child(1) > h2 + p::first-letter {
  font-family: var(--fh), Cambria, serif; font-size: 58px; line-height: .86;
  float: left; padding: 6px 12px 0 0; color: var(--moment); font-weight: 600; font-style: normal;
}
:root main:not(:has(> h1)) > div > div:nth-child(1) > a:last-child {
  font-family: var(--fb), sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); background: transparent;
  border: 1.5px solid var(--primary); border-radius: 30px; padding: 11px 26px;
}
:root main:not(:has(> h1)) > div > div:nth-child(1) > a:last-child::after { content: ""; }
:root main:not(:has(> h1)) > div > div:nth-child(1) > a:last-child:hover { background: var(--primary); color: var(--bg); }

/* ================= ARTICLE PAGE ================= */
:root main > h1 {
  font-family: var(--fh), Cambria, serif; font-size: 40px; font-weight: 500;
  line-height: 1.14; color: var(--primary); letter-spacing: -.01em; margin: 8px 0 10px;
}
:root main > time {
  display: block; font-family: var(--fb), sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
:root main > time + div {
  display: inline-block; font-family: var(--fb), sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  background: var(--paper); border: 1px solid rgba(74, 45, 49, .12);
  border-radius: 20px; padding: 5px 14px; margin: 0 0 30px;
}
:root main > time + div time { text-transform: none; letter-spacing: 0; display: inline; color: var(--primary); }

:root main > article > div:first-child {
  background: var(--paper-warm); border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0; padding: 12px 18px; margin-bottom: 28px;
  font-family: var(--fb), sans-serif; font-size: 13px; font-style: italic; color: var(--fg);
}

:root main > article > p { font-family: var(--fh), Cambria, serif; font-size: 18.5px; line-height: 1.8; color: var(--fg); margin-bottom: 20px; }
:root main > article > p:first-of-type::first-letter {
  font-family: var(--fh), Cambria, serif; font-size: 58px; line-height: .86;
  float: left; padding: 8px 12px 0 0; color: var(--moment); font-weight: 600;
}
:root main > article > h2 {
  font-family: var(--fh), Cambria, serif; font-size: 27px; font-weight: 500; color: var(--primary);
  line-height: 1.2; margin: 2.2em 0 .55em; letter-spacing: 0;
}
:root main > article > h2::before {
  content: "✷ ✷ ✷"; display: block; text-align: center;
  font-size: 14px; letter-spacing: .5em; color: var(--accent); opacity: .55;
  margin: 0 0 .7em; font-style: normal;
}
:root main > article > h3 {
  font-family: var(--fh), Cambria, serif; font-size: 20px; font-weight: 500; font-style: italic;
  color: var(--accent); margin: 1.8em 0 .5em;
}
:root main > article > ul, :root main > article > ol { font-family: var(--fh), Cambria, serif; font-size: 18px; line-height: 1.75; margin: 0 0 22px 26px; }
:root main > article li { margin-bottom: 10px; }
:root main > article li strong { color: var(--primary); }

:root main > article > blockquote {
  position: relative; font-family: var(--fh), Cambria, serif; font-style: italic;
  font-size: 20px; line-height: 1.6; color: var(--primary);
  border-left: 3px solid var(--accent); padding: 6px 0 6px 30px; margin: 32px 0;
}
:root main > article > blockquote::before {
  content: "\201C"; position: absolute; left: 6px; top: 2px;
  font-size: 40px; line-height: 1; color: var(--accent); opacity: .3; font-family: var(--fh), serif;
}

:root main > article > p a, :root main > article li a {
  color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent);
  text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 500;
}
:root main > article > p a:hover, :root main > article li a:hover { color: var(--accent); }

/* Affiliate CTA (/link/) — filled pill/button, distinct from inline prose links (M10).
   Full body-link path + attr selector to beat the body-link rule on specificity. */
:root main > article > p a[href^="/link/"], :root main > article li a[href^="/link/"] {
  display: inline-block; box-sizing: border-box;
  background: var(--moment); color: var(--paper);
  font-family: var(--fb), sans-serif; font-weight: 600; font-size: .92em; line-height: 1.25;
  text-decoration: none; border: 0; border-radius: 22px;
  padding: 4px 17px; margin: 0 2px;
  box-shadow: 0 1px 4px rgba(140, 74, 0, .24);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
:root main > article > p a[href^="/link/"]::after, :root main > article li a[href^="/link/"]::after { content: " ↗"; font-size: .85em; }
:root main > article > p a[href^="/link/"]:hover, :root main > article li a[href^="/link/"]:hover {
  background: var(--primary); color: var(--paper);
  box-shadow: 0 3px 11px rgba(74, 45, 49, .24); transform: translateY(-1px);
}

:root main > article img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 3px 16px rgba(26, 14, 16, .12); margin: 10px 0 30px; }

:root main > article > div:last-child {
  background: #FBF3D6; border: 1px solid rgba(140, 74, 0, .16); border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0; padding: 14px 20px; margin: 34px 0 0;
  font-family: var(--fb), sans-serif; font-size: 12.5px; line-height: 1.6; color: var(--fg);
}
:root main > article > div:last-child strong { color: var(--primary); }

/* Tables (kept from prior rounds, warmed) */
:root main > article table { border-collapse: collapse; width: 100%; font-size: .9rem; background: rgba(245, 237, 221, .5); border: 1px solid rgba(0, 0, 0, .09); border-radius: 6px; overflow: hidden; }
:root main > article table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #8a7060; background: transparent; font-weight: 600; border-bottom: 1px solid rgba(0, 0, 0, .12); padding: .5em .9em; text-align: left; }
:root main > article table tbody td { padding: .6em .9em; border-bottom: 1px solid rgba(0, 0, 0, .08); }
:root main > article table tbody tr:last-child td { border-bottom: none; }

/* Related articles */
:root main > article + div { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--accent); }
:root main > article + div > h3 { font-family: var(--fb), sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
:root main > article + div a {
  display: block; font-family: var(--fh), Cambria, serif; font-size: 16px; line-height: 1.4;
  color: var(--primary); background: var(--paper); border: 1px solid rgba(74, 45, 49, .10);
  border-radius: 8px; padding: 14px 20px; margin: 0; text-decoration: none;
  box-shadow: 0 1px 4px rgba(74, 45, 49, .05);
}
:root main > article + div a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
:root body > footer {
  background: transparent; border-top: 1px solid var(--border); margin-top: 64px;
  padding: 28px 0 40px; text-align: center; font-family: var(--fb), sans-serif;
  font-size: 12px; color: var(--fg); opacity: .62; letter-spacing: .04em;
}
:root body > footer a { color: var(--primary); text-decoration: none; border-bottom: 1px dotted var(--border); }
:root body > footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  :root body > header { padding: 56px 0 42px; margin-bottom: 44px; }
  :root body > header h1 { font-size: 32px; }
  :root main:not(:has(> h1)) > div { grid-template-columns: 1fr; gap: 28px; }
  :root main:not(:has(> h1)) > div > div:nth-child(n) { grid-column: 1 / -1; }
  :root main:not(:has(> h1)) > div > div:nth-child(1) { padding: 30px 26px; }
  :root main:not(:has(> h1)) > div > div:nth-child(1) > h2 { font-size: 32px; }
  :root main:not(:has(> h1)) > div > div:nth-child(1) > h2 + p { font-size: 18px; }
  :root main > h1 { font-size: 30px; }
  :root main > article > p { font-size: 17.5px; }
}


/* related-articles-nav-fix v1 */
:root main > nav p,
:root main > section p {
  line-height: 1.85;
  margin: 0;
}
:root main > nav a,
:root main > section a {
  display: inline-block;
  margin: 0 4px;
  padding: 0 2px;
}


/* mobile-overflow-fix v1 */
:root html, :root body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 920px) {
  :root main > * { max-width: 100%; }
  :root main { overflow-x: hidden; }
}


/* mobile-overflow-fix v2 */
@media (max-width: 640px) {
  :root main,
  :root main > article,
  :root main > div,
  :root main > section,
  :root main > nav {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  :root main > article > *,
  :root main > div > *,
  :root main > section > *,
  :root main > nav > * {
    max-width: 100%;
  }
  :root main h1,
  :root main h2,
  :root main h3,
  :root main h4 {
    overflow-wrap: break-word;
    word-break: normal;
  }
  /* Any 3+ col grid inside main → 1 col on mobile */
  :root main :is(ul, ol, section, div, nav)[style*="grid-template-columns"],
  :root main > section > ul,
  :root main > nav > ul,
  :root main > div > ul {
    grid-template-columns: 1fr !important;
  }
  /* Any CSS multi-column layout → 1 col on mobile */
  :root main :is(ul, ol, section, div, p) {
    columns: 1;
  }
  /* Article body images stay inside viewport */
  :root main img,
  :root main figure {
    max-width: 100%;
    height: auto;
  }
}


/* mobile-padding-fix v1 */
@media (max-width: 640px) {
  :root main {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* refix iter1: M6 second strip placement, M7 readable archive tail, S6 article anchor */
:root main:not(:has(> h1))::after {
  content: none;
  display: none;
}

:root main:not(:has(> h1)) > div > div:nth-child(n+9) {
  order: 7;
  background: var(--paper);
  border: 1px solid rgba(74, 45, 49, .10);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(74, 45, 49, .05);
  padding: 22px 24px;
  min-height: 102px;
  justify-content: flex-start;
}

:root main:not(:has(> h1)) > div > div:nth-child(n+9):hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(74, 45, 49, .10);
  border-color: rgba(92, 113, 133, .40);
}

:root main:not(:has(> h1)) > div > div:nth-child(n+9) > p:first-child,
:root main:not(:has(> h1)) > div > div:nth-child(n+9) > h2 + p,
:root main:not(:has(> h1)) > div > div:nth-child(n+9) > a:last-child {
  display: none;
}

:root main:not(:has(> h1)) > div > div:nth-child(n+9) > h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.34;
}

:root main:not(:has(> h1)) > div > div:nth-child(n+9) > h2 a {
  display: block;
  font-family: var(--fh), Cambria, serif;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

:root main:not(:has(> h1)) > div > div:nth-child(n+9) > h2 a:hover {
  color: var(--accent);
}

@media (min-width: 721px) {
  :root main:not(:has(> h1)) > div > div:nth-child(n+9) {
    grid-column: span 2;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(9),
  :root main:not(:has(> h1)) > div > div:nth-child(10),
  :root main:not(:has(> h1)) > div > div:nth-child(11) {
    margin-top: 268px;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(9) {
    position: relative;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(9)::before {
    content: "DAS ARCHIV — WEITERLESEN";
    position: absolute;
    left: 0;
    bottom: calc(100% + 34px);
    width: min(calc(300% + 60px), calc(100vw - 40px));
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: linear-gradient(var(--ink-band), var(--ink-band-soft)), url("/theme-assets/story-bg.jpg");
    background-size: cover;
    background-position: center 72%;
    border-radius: 9px;
    color: #F0E6D2;
    font-family: var(--fb), sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  :root main:not(:has(> h1)) > div > div:nth-child(n+9) {
    grid-column: 1 / -1;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(9) {
    position: relative;
    margin-top: 236px;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(10),
  :root main:not(:has(> h1)) > div > div:nth-child(11) {
    margin-top: 0;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(9)::before {
    content: "DAS ARCHIV — WEITERLESEN";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 28px);
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: linear-gradient(var(--ink-band), var(--ink-band-soft)), url("/theme-assets/story-bg.jpg");
    background-size: cover;
    background-position: center 72%;
    border-radius: 9px;
    color: #F0E6D2;
    font-family: var(--fb), sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
    pointer-events: none;
  }
}

:root main:has(> h1) > time::before {
  content: "Sophie Richter, Köln · 6 Min. Lesezeit · ";
  color: var(--primary);
}

/* refix iter2: M7 archive tail three-column magazine index parity */
@media (min-width: 721px) {
  :root main:not(:has(> h1)) > div {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: stretch;
    overflow: visible;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(n+9) {
    box-sizing: border-box;
    min-width: 0;
    width: auto;
    height: 100%;
    padding: 26px 32px 24px;
    min-height: 142px;
    background: var(--paper);
    border: 1px solid rgba(74, 45, 49, .10);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(74, 45, 49, .05);
  }

  :root main:not(:has(> h1)) > div > div:nth-child(3n+9) {
    grid-column: 1 / span 2;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(3n+10) {
    grid-column: 3 / span 2;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(3n+11) {
    grid-column: 5 / span 2;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(n+9) > h2 {
    font-size: 19px;
    line-height: 1.34;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  :root main:not(:has(> h1)) > div > div:nth-child(9)::before {
    width: calc(300% + 60px);
    max-width: none;
  }
}

/* refix (loop2) iter1: M6 duplicate hero strip + M7 six-narrow-column archive tail.
   ROOT CAUSE: <main> has TWO direct <div> children — the card grid (:first-of-type) and
   the compact archive-tail <a>-list. Every `main > div` rule (6-col grid, ::before label,
   ::after "DAS JOURNAL" strip) was hitting BOTH divs, so the tail rendered as a broken
   6-col grid AND repeated the hero strip near the footer. Fix: neutralise the inherited
   pseudo-strips on the tail div and re-lay it as a readable 3-col magazine index of boxed
   cream link-cards. Targeted via :not(:first-of-type) so a homepage with no tail div is
   left untouched. */

/* M6 — remove the label + hero-strip pseudo-elements leaking onto the archive-tail div */
:root main:not(:has(> h1)) > div:not(:first-of-type)::before,
:root main:not(:has(> h1)) > div:not(:first-of-type)::after {
  content: none;
  display: none;
}

/* M7 — archive-tail container becomes a three-column magazine index */
:root main:not(:has(> h1)) > div:not(:first-of-type) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 12px 16px;
  align-items: stretch;
  margin-top: 44px;
}

/* M7 — tail links get the same boxed-cream-card polish as the top journal cards */
:root main:not(:has(> h1)) > div:not(:first-of-type) > a {
  display: block;
  height: 100%;
  box-sizing: border-box;
  background: var(--paper);
  border: 1px solid rgba(74, 45, 49, .10);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(74, 45, 49, .05);
  padding: 16px 20px;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--fh), Cambria, serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.34;
  overflow-wrap: anywhere;
  hyphens: auto;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
:root main:not(:has(> h1)) > div:not(:first-of-type) > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(74, 45, 49, .10);
  border-color: rgba(92, 113, 133, .40);
  color: var(--accent);
}

/* Archive-tail collapses to a single column on mobile */
@media (max-width: 720px) {
  :root main:not(:has(> h1)) > div:not(:first-of-type) {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=The-Sill-botanical overlay=25% grid=equal scale=balanced family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 25%) ── */
:root main:not(:has(> h1)) > div:has(> div)::before {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%),
    url("/theme-assets/premium-hero-strip-1.webp") center 40% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}
:root main:not(:has(> h1)) > div:has(> div)::after {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%),
    url("/theme-assets/premium-hero-strip-2.webp") center 45% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}


/* ── CARD 1: featured full-row with 300px photo header (via card-own background, NOT ::before —
    leaves ::before free for existing site's M2 label / meta content). ── */
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(1) {
  grid-column: 1 / -1;
  position: relative;      /* anchor for existing site's ::before label if it uses absolute */
  overflow: visible;       /* let above-card labels render without clipping */
  padding: 320px 44px 40px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 300px,
    var(--bg) !important;
  margin-top: 60px !important;  /* room for above-card M2 label (existing site convention) */
}

/* ── CARDS 2-4: medium with 180px photo header (background technique, ::before untouched) ── */
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(2) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(3) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(4) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

/* ── Article page: drop cap + dinkus dividers ── */
:root main:has(> h1) > article > p:first-of-type::first-letter {
  font-family: var(--fh), Georgia, serif;
  font-size: 76px; line-height: 0.9; color: var(--primary);
  float: left; margin: 6px 12px 0 0; padding: 0; font-weight: 400;
}
:root main:has(> h1) > article > h2 + p ~ h2::before {
  content: "✦ ✦ ✦";
  display: block; text-align: center; color: var(--accent);
  font-size: 12px; letter-spacing: 0.3em; margin-bottom: 24px;
  font-weight: 400;
}

/* ── Mobile responsive: adjust photo heights via background-size on the card itself ── */
@media (max-width: 720px) {
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(1) {
    padding: 240px 22px 28px !important;
    background:
      url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 220px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(2) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(3) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(4) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div)::before,
  :root main:not(:has(> h1)) > div:has(> div)::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}

