/* CEAVEO Context — context.ceaveo.com — CI v2
   Dark graphite masthead · bracket [ ] motif · duotone (graphite→merlot) imagery ·
   editorial type (serif headlines, bracketed kickers, drop-cap, pull-quotes).
   Brand system from ceaveo.com (DM Sans + DM Serif Display, graphite/merlot). */

:root {
  --graphite: #292D33;
  --graphite-2: #21252a;
  --graphite-light: #353a42;
  --merlot: #73343A;
  --merlot-dark: #5E2A2F;
  --merlot-light: #8a4a50;
  --silver: #C8D0DA;
  --fog: #6D7A88;
  --terracotta: #B07050;
  --olive: #8A9A5C;
  --sand: #C4A86A;
  --slate-blue: #7088A0;

  --bg-main: #F8F7F5;
  --bg-alt: #EFEDE8;
  --bg-white: #ffffff;
  --border: #DDD8CC;

  --text-dark: #2e2e2e;
  --text-muted: #6b6b6b;
  --text-light: #f0ece8;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;

  --maxw: 760px;
  --maxw-wide: 1120px;

  --acc-radar: var(--slate-blue);
  --acc-einordnung: var(--merlot);
  --acc-praxis: var(--olive);
  --acc-randthemen: var(--terracotta);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-main);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--merlot); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-md); }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 var(--space-md); }
.serif { font-family: 'DM Serif Display', Georgia, serif; }

/* ---------- Wordmark ---------- */
.ceaveo-logo { font-family: 'DM Sans', sans-serif; letter-spacing: 2px; user-select: none; color: var(--graphite); }
.ceaveo-logo .b { font-weight: 700; }
.ceaveo-logo .i { font-style: italic; }
.ceaveo-logo .r { font-weight: 400; font-style: normal; }
.ceaveo-logo--light, .ceaveo-logo--light .b, .ceaveo-logo--light .i, .ceaveo-logo--light .r { color: #fff; }
.context-mark { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: 0.5px; }

/* ---------- Masthead (light) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,247,245,0.9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header__inner { max-width: var(--maxw-wide); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 12px var(--space-md); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand__icon { width: 30px; height: 30px; display: block; }
.brand__type { display: flex; align-items: baseline; gap: 8px; font-size: 19px; }
.brand__type .context-mark { font-size: 21px; color: var(--graphite); }
.main-nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.main-nav a { color: var(--graphite); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 1.1px; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { text-decoration: none; color: var(--merlot); border-bottom-color: var(--merlot); }
.main-nav a.is-active { color: var(--merlot); border-bottom-color: var(--merlot); }

/* ---------- Kicker (bracketed) ---------- */
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--fog); }
.kicker::before { content: "[ "; }
.kicker::after { content: " ]"; }
.kicker--radar { color: var(--acc-radar); }
.kicker--einordnung { color: var(--acc-einordnung); }
.kicker--praxis { color: var(--acc-praxis); }
.kicker--randthemen { color: var(--acc-randthemen); }

/* ---------- Bracket frame (corner brackets) ---------- */
.bracket-frame { position: relative; padding: var(--space-lg); }
.bracket-frame::before, .bracket-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--merlot); }
.bracket-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.bracket-frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- Duotone imagery + branded placeholder ---------- */
.duotone { position: relative; background: var(--merlot); overflow: hidden; }
.duotone img { width: 100%; display: block; filter: grayscale(100%) contrast(1.08); mix-blend-mode: screen; opacity: .92; }
.duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--graphite), var(--merlot)); mix-blend-mode: multiply; }
.img-ph { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--graphite), var(--merlot)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-ph::before, .img-ph::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255,255,255,.55); }
.img-ph::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.img-ph::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.img-ph__mark { width: 68px; height: 68px; opacity: .9; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.img-ph__note { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.6); }
/* real image framed with the bracket motif */
.media-bracket { position: relative; display: block; padding: 8px; }
.media-bracket img { width: 100%; height: auto; display: block; }
.media-bracket:hover { text-decoration: none; }
.media-bracket::before, .media-bracket::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--merlot); }
.media-bracket::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.media-bracket::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- Hero (rubric/static heads) ---------- */
.hero { padding: var(--space-lg) 0 var(--space-md); border-bottom: 1px solid var(--border); }
.hero__title { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(30px, 4vw, 40px); line-height: 1.14; color: var(--graphite); margin: 10px 0; }
.hero__sub { font-size: 18px; color: var(--text-muted); max-width: 660px; }

/* ---------- Featured lead story (hub) ---------- */
.lead-story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; padding: var(--space-lg) 0; }
.lead-media { border-radius: 4px; align-self: start; }
/* images show at their natural ratio — never cropped */
.lead-body .kicker { margin-bottom: 10px; }
.lead-title { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.16; color: var(--graphite); margin: 6px 0 12px; }
.lead-title a { color: var(--graphite); }
.lead-title a:hover { color: var(--merlot); text-decoration: none; }
.lead-teaser { font-size: 18px; color: var(--text-muted); }
.lead-meta { margin-top: var(--space-md); font-size: 13px; color: var(--text-muted); letter-spacing: .3px; }

/* ---------- Sections ---------- */
.section { padding: var(--space-xl) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 28px; color: var(--graphite); margin-bottom: var(--space-md); }
.section-lead { color: var(--text-muted); margin-bottom: var(--space-lg); max-width: 640px; }

/* ---------- Rubrik cards ---------- */
.rubrik-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-md); }
.rubrik-card { display: block; background: var(--bg-white); border: 1px solid var(--border); border-top: 3px solid var(--fog); padding: var(--space-md); transition: box-shadow .15s ease, transform .15s ease; }
.rubrik-card:hover { text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.rubrik-card--radar { border-top-color: var(--acc-radar); }
.rubrik-card--einordnung { border-top-color: var(--acc-einordnung); }
.rubrik-card--praxis { border-top-color: var(--acc-praxis); }
.rubrik-card--randthemen { border-top-color: var(--acc-randthemen); }
.rubrik-card h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; color: var(--graphite); margin: 8px 0 6px; }
.rubrik-card p { font-size: 15px; color: var(--text-muted); }

/* ---------- Beitragsliste ---------- */
.post-list { list-style: none; }
.post-list li { border-bottom: 1px solid var(--border); padding: var(--space-md) 0; }
.post-list li:first-child { padding-top: 0; }
.post-item__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.post-item__date { font-size: 13px; color: var(--text-muted); }
.post-item__title { font-family: 'DM Serif Display', Georgia, serif; font-size: 24px; color: var(--graphite); line-height: 1.2; }
.post-item__title a { color: var(--graphite); }
.post-item__title a:hover { color: var(--merlot); text-decoration: none; }
.post-item__excerpt { color: var(--text-muted); margin-top: 6px; }
.empty-note { color: var(--text-muted); font-style: italic; }

/* ---------- Article ---------- */
.article { padding: var(--space-lg) 0 var(--space-xl); }
.article__hero { margin-bottom: var(--space-lg); }
.article__head { padding-bottom: var(--space-md); margin-bottom: var(--space-lg); border-bottom: 1px solid var(--border); }
.article__title { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.16; color: var(--graphite); margin: 12px 0; }
.article__lead { font-size: 20px; color: var(--text-muted); }
.article__meta { margin-top: var(--space-md); font-size: 14px; color: var(--text-muted); letter-spacing: .3px; }
.article__body { font-size: 18px; }
.article__body p { margin: 0 0 var(--space-md); }
.article__body > p:first-of-type::first-letter { font-family: 'DM Serif Display', Georgia, serif; float: left; font-size: 3.4em; line-height: .82; padding: 6px 10px 0 0; color: var(--merlot); }
.article__body h2 { font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; color: var(--graphite); margin: var(--space-lg) 0 var(--space-sm); }
.article__body h3 { font-size: 20px; color: var(--graphite); margin: var(--space-md) 0 var(--space-xs); }
.article__body ol, .article__body ul { margin: 0 0 var(--space-md) 1.3em; }
.article__body li { margin-bottom: 10px; }
.article__body strong { color: var(--graphite); }
.article__body hr { border: none; border-top: 1px solid var(--border); margin: var(--space-lg) 0; }

.pullquote { font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; line-height: 1.3; color: var(--merlot); border-left: 3px solid var(--merlot); padding: 4px 0 4px var(--space-md); margin: var(--space-lg) 0; }

.context-box { background: var(--bg-white); border: 1px solid var(--border); border-left: 3px solid var(--merlot); padding: var(--space-md); margin: var(--space-lg) 0; }
.context-box .kicker { color: var(--merlot); }
.context-box h4 { font-size: 18px; color: var(--graphite); margin: 6px 0; }
.context-box .cta { display: inline-block; margin-top: 10px; font-weight: 600; }
.context-box .cta::after { content: " \2192"; }

.disclaimer { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.disclaimer p { margin-bottom: 10px; }
.origin-note { font-size: 14px; color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border); padding: 10px 14px; margin-bottom: var(--space-md); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: var(--silver); padding: var(--space-xl) 0 var(--space-lg); margin-top: var(--space-xl); border-top: 2px solid var(--merlot); }
.site-footer a { color: var(--silver); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 15px; }
.footer-brand__row { display: flex; align-items: center; gap: 10px; }
.footer-brand__row img { width: 30px; height: 30px; }
.footer-brand p { margin-top: 10px; font-size: 14px; color: var(--fog); max-width: 320px; }
.footer-slogan { font-weight: 500; color: var(--silver); }
.footer-legal { border-top: 1px solid var(--graphite-light); padding-top: var(--space-md); font-size: 13px; color: var(--fog); }
.footer-legal p { margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .lead-story { grid-template-columns: 1fr; gap: var(--space-md); padding-top: var(--space-lg); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header__inner { flex-wrap: wrap; gap: 10px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 12px; letter-spacing: .8px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .hero { padding: var(--space-lg) 0 var(--space-md); }
}
