/* ==========================================================================
   LOGBUCH — Blog-Layer von medienautomatisierung.com
   Gleiche Sprache wie AUTOMAT–1: warmes Fast-Schwarz, EINE Creme (gedämpft
   nur über Deckkraft), Akzent sparsam, Gewichte 400/500, Mikro-Labels 14/500.
   ========================================================================== */
:root {
  --bg: #140D07;
  --surface: #1B120A;
  --cream: #F5EADB;
  --accent: #E56910;
  --sans: "Figtree", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --mono: "DM Mono", Consolas, monospace;
  --pad: clamp(20px, 4vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
body {
  background: var(--bg); color: var(--cream);
  font-family: var(--sans); font-weight: 400;
  font-size: 19px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Mikro-Label wie auf der Hauptseite: Figtree 14/500 — Mono nur für Messwerte */
.micro {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(245,234,219,.55);
}
.mono { font-family: var(--mono); font-weight: 400; }
.micro a { border-bottom: 1px dotted rgba(245,234,219,.35); padding-bottom: 1px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid rgba(245,234,219,.4); padding-bottom: 7px;
  transition: border-color .3s, color .3s;
}
.cta:hover { border-color: var(--accent); color: var(--accent); }
.cta .arr { transition: transform .3s; }
.cta:hover .arr { transform: translateX(5px); }

/* --- Nav / Footer ---------------------------------------------------------- */
.bnav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: linear-gradient(180deg, rgba(20,13,7,.94), rgba(20,13,7,.78));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.bnav-brand {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}
.bnav-brand span { color: var(--accent); }
.bnav ul { display: flex; gap: clamp(14px, 3vw, 34px); list-style: none; }
.bnav ul a {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(245,234,219,.75);
  padding: 8px 0;
}
.bnav ul a:hover { color: var(--cream); }
.bfoot {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding: 36px var(--pad) 44px; border-top: 1px solid rgba(245,234,219,.12);
  margin-top: clamp(60px, 9vh, 110px);
}

/* --- Index ------------------------------------------------------------------ */
.bindex { max-width: 1180px; margin-inline: auto; padding: 0 var(--pad); }
.bhero { padding: clamp(48px, 9vh, 110px) 0 clamp(36px, 6vh, 70px); max-width: 760px; }
.bhero h1 {
  font-weight: 500; font-size: clamp(38px, 5.6vw, 72px);
  letter-spacing: -.02em; line-height: 1.05; margin: 18px 0 22px;
}
.lede { font-size: clamp(19px, 1.6vw, 22px); color: rgba(245,234,219,.78); max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); padding-bottom: 30px; }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid rgba(245,234,219,.09); border-radius: 10px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(245,234,219,.28); }
.card.gross { grid-column: 1 / -1; }
.card.gross .ccover svg { aspect-ratio: 680/180; }
.ccover svg { width: 100%; height: auto; aspect-ratio: 680/220; }
.cbody { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 26px; }
.cbody h2 { font-weight: 500; font-size: clamp(21px, 2vw, 28px); letter-spacing: -.015em; line-height: 1.2; }
.card.gross .cbody h2 { font-size: clamp(26px, 2.8vw, 40px); }
.cteaser { color: rgba(245,234,219,.7); font-size: 16.5px; }
.cbody .cta { margin-top: 6px; align-self: flex-start; }

/* --- Artikel ---------------------------------------------------------------- */
.artikel { max-width: 760px; margin-inline: auto; padding: 0 var(--pad); }
.acover { margin-top: clamp(24px, 4vh, 48px); border-radius: 10px; overflow: hidden; border: 1px solid rgba(245,234,219,.1); }
.artikel article { padding: clamp(28px, 5vh, 52px) 0 0; }
.akat { margin-bottom: 16px; }
.artikel h1 {
  font-weight: 500; font-size: clamp(32px, 4.6vw, 56px);
  letter-spacing: -.02em; line-height: 1.08; margin-bottom: 18px;
}
.artikel .lede { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 22px; }
.trust {
  font-size: 15px; color: rgba(245,234,219,.62);
  border-left: 2px solid var(--accent); padding: 10px 0 10px 16px; margin-bottom: 34px;
}
.prosa > * + * { margin-top: 1.15em; }
.prosa h2 { font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.015em; margin-top: 1.8em; }
.prosa h3 { font-weight: 500; font-size: clamp(20px, 1.9vw, 24px); margin-top: 1.5em; }
.prosa a { color: var(--accent); border-bottom: 1px solid rgba(229,105,16,.35); }
.prosa a:hover { border-color: var(--accent); }
.prosa blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.12em;
  border-left: 2px solid rgba(245,234,219,.3); padding-left: 18px; color: rgba(245,234,219,.85);
}
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li + li { margin-top: .45em; }
.prosa li::marker { color: var(--accent); }
.prosa code {
  font-family: var(--mono); font-size: .85em;
  background: rgba(245,234,219,.08); padding: 2px 7px; border-radius: 4px;
}
.prosa pre { background: #0E0906; border: 1px solid rgba(245,234,219,.1); border-radius: 8px; padding: 16px 18px; overflow-x: auto; }
.prosa pre code { background: none; padding: 0; font-size: 14px; line-height: 1.55; }
.prosa hr { border: 0; border-top: 1px solid rgba(245,234,219,.14); margin: 2em 0; }
.prosa strong { font-weight: 500; color: var(--cream); }
.quellen { margin-top: clamp(36px, 6vh, 60px); border-top: 1px solid rgba(245,234,219,.14); padding-top: 22px; }
.quellen ul { list-style: none; margin-top: 14px; }
.quellen li { padding: 7px 0; font-size: 16px; }
.quellen a { color: var(--cream); border-bottom: 1px solid rgba(245,234,219,.3); }
.quellen a:hover { color: var(--accent); border-color: var(--accent); }
.qhost { font-family: var(--mono); font-size: 12px; color: rgba(245,234,219,.6); margin-left: 8px; }
.anav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: clamp(40px, 7vh, 70px); }

/* --- Responsive / Motion ---------------------------------------------------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .bnav ul { gap: 14px; }
  .bnav ul a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}

/* --- Register der Erklärstücke --------------------------------------------- */
.register .bhero { max-width: 720px; }
.reg-gruppe { margin-top: clamp(28px, 5vh, 52px); }
.reg-letter {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--sans); font-size: 30px; font-weight: 500;
  letter-spacing: -.01em; color: var(--cream);
  padding-bottom: 10px; border-bottom: 1px solid rgba(245,234,219,.14);
}
.reg-letter::after {
  content: ""; flex: 1; height: 1px; background: rgba(245,234,219,.14);
  transform: translateY(-6px);
}
.register dl { margin: 0; }
.reg-eintrag {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 8px 32px;
  padding: 20px 0; border-bottom: 1px solid rgba(245,234,219,.08);
  scroll-margin-top: 90px;
}
.reg-eintrag dt { font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.01em; }
.reg-eintrag dt a { border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.reg-eintrag dt a:hover { color: var(--accent); border-color: var(--accent); }
.reg-eintrag dd { margin: 0; color: rgba(245,234,219,.72); font-size: 16.5px; }
.reg-eintrag dd.reg-meta { grid-column: 2; color: rgba(245,234,219,.5); margin-top: 2px; }
.begriff-zeile {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  padding: 12px 0 16px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(245,234,219,.12);
}
.begriff-zeile strong { font-weight: 500; font-size: 19px; }
.begriff-zeile .reg-link {
  margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(245,234,219,.6);
  border-bottom: 1px solid rgba(245,234,219,.3); padding-bottom: 3px;
  transition: color .25s, border-color .25s;
}
.begriff-zeile .reg-link:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 700px) {
  .reg-eintrag { grid-template-columns: 1fr; gap: 6px; }
  .reg-eintrag dd.reg-meta { grid-column: 1; }
  .begriff-zeile .reg-link { margin-left: 0; }
}
