/* open-politics.com · Stylesheet
   Gestaltung 1:1 aus der Live-Seite vom 30.03.2026 übernommen (bis dahin Inline-CSS),
   Abschnitt "Ergänzungen" am Ende: Schriften lokal, Klassen statt Inline-Styles (CSP),
   Rechtsseiten, 404, Cluster-Hinweis. Details: designsystem.md */

/* ══ SCHRIFTEN (lokal, variable WOFF2, Latin) ══ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700;
  font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); }

/* ══════════════════════════════════════════
   DESIGN TOKENS — übernommen von der Seite vom 30.03.2026 (Stil agent-claw.de)
   ══════════════════════════════════════════ */
:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1c2333;
  --bg4:       #21283a;
  --border:    #30373f;
  --border2:   #3d4550;
  --text:      #c9d1d9;
  --text2:     #8b949e;
  --text3:     #555f6a;
  --heading:   #e6edf3;
  --cyan:      #2db0d8;
  --cyan2:     #58c8e8;
  --orange:    #e8823a;
  --orange2:   #f0a060;
  --green:     #3fb950;
  --mono:      'JetBrains Mono', 'Courier New', monospace;
  --sans:      'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--cyan2); }

/* ══ HEADER ══ */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── KRABBE (orange, wie agent-claw.de) ── */
.crab-svg { width: 40px; height: 40px; flex-shrink: 0; }

.site-title {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.site-title .word1 { color: var(--heading); }
.site-title .word2 { color: var(--cyan); }

.site-subtitle {
  font-size: .72rem;
  color: var(--text2);
  margin-top: 3px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.header-right {
  text-align: right;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--text2);
}

.header-right strong { color: var(--cyan); font-weight: 600; }

/* ══ STAT BAR ══ */
.stat-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  gap: 40px;
  align-items: baseline;
}

.stat-item { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
}

/* ══ LAYOUT ══ */
.page-body {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  padding: 24px;
  gap: 20px;
  align-items: start;
}

/* ══ MAIN ══ */
.main { display: flex; flex-direction: column; gap: 16px; }

/* ── Forschungsfrage Card ── */
.frage-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.frage-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.frage-card-header .card-icon { font-size: 1.1rem; }

.frage-card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--cyan);
}

.frage-card-date {
  font-size: .8rem;
  color: var(--text3);
  margin-left: auto;
  font-family: var(--mono);
}

.frage-card-body { padding: 18px; }

.frage-intro {
  font-size: .875rem;
  color: var(--text2);
  margin-bottom: 14px;
}

/* Forschungsfrage mit linkem Rand — wie Einträge in agent-claw */
.forschungsfrage-block {
  border-left: 3px solid var(--cyan);
  padding: 10px 16px;
  margin-bottom: 12px;
  background: rgba(45,176,216,.04);
  border-radius: 0 4px 4px 0;
}

.forschungsfrage-block p {
  font-size: .9rem;
  color: var(--heading);
  line-height: 1.65;
}

.forschungsfrage-block p strong {
  color: var(--heading);
  font-weight: 600;
}

.forschungsfrage-block .frage-sub {
  font-size: .83rem;
  color: var(--text2);
  margin-top: 6px;
  font-style: italic;
}

/* ── Über das Projekt Card ── */
.content-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.content-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}

.content-card-header h2 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.content-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-card-body p {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.7;
}

.content-card-body p strong { color: var(--heading); }
.content-card-body p em { color: var(--cyan2); font-style: italic; }

/* ── Module Grid ── */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.module-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
}

.module-item.mod-a { border-top: 2px solid var(--cyan); }
.module-item.mod-b { border-top: 2px solid var(--orange); }

.module-tag {
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
  display: block;
}

.mod-b .module-tag { color: var(--orange); }

.module-item h3 {
  font-size: .875rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.module-item p {
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Bewertungsmodell ── */
.bew-rows { display: flex; flex-direction: column; gap: 0; }

.bew-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.bew-row:last-child { border-bottom: none; }

.bew-pct {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  color: var(--cyan);
  width: 34px;
  flex-shrink: 0;
}

.bew-bar-track {
  flex: 1;
  height: 3px;
  background: var(--bg4);
  border-radius: 2px;
}

.bew-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--cyan);
}

.bew-name {
  font-size: .8rem;
  color: var(--text);
  text-align: right;
  min-width: 200px;
}

/* ── Beiträge (Einträge) im main ── */
.posts-list { display: flex; flex-direction: column; gap: 0; }

.post-entry {
  border-left: 3px solid var(--border2);
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--bg3);
  border-radius: 0 4px 4px 0;
  transition: border-color .15s;
}

.post-entry:hover { border-left-color: var(--cyan); }

.post-entry-meta {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text3);
  margin-bottom: 4px;
  display: flex;
  gap: 10px;
}

.post-entry h3 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.post-entry h3 a { color: var(--heading); transition: color .15s; }
.post-entry h3 a:hover { color: var(--cyan); text-decoration: none; }

.post-entry p {
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 6px;
}

.tag-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--text3);
  border: 1px solid var(--border2);
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 4px;
}

/* ══ SIDEBAR ══ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-card-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text2);
}

.sidebar-card-body { padding: 14px; }

/* Über diesen Blog */
.sidebar-card-body p {
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 10px;
}

.sidebar-card-body p:last-child { margin-bottom: 0; }

.sidebar-links { margin-top: 8px; }
.sidebar-links a {
  display: block;
  font-size: .82rem;
  color: var(--orange);
  margin-bottom: 3px;
}

/* All Posts Sidebar */
.sidebar-posts { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.sp-item { }

.sp-date {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text3);
  margin-bottom: 3px;
}

.sp-title {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.4;
  display: block;
  margin-bottom: 3px;
  transition: color .15s;
}

.sp-title:hover { color: var(--cyan); text-decoration: none; }

.sp-stars { color: var(--orange); font-size: .75rem; }

/* Projektstatus Sidebar */
.status-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}

.status-key { color: var(--text2); }

.sbadge {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 3px;
}

.sbadge-aktiv  { background: rgba(63,185,80,.12); color: var(--green); }
.sbadge-plan   { background: rgba(45,176,216,.1); color: var(--cyan); }
.sbadge-osf    { background: rgba(232,130,58,.1); color: var(--orange); }

/* Tags Sidebar */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }

.tag-cloud .tag-pill {
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.tag-cloud .tag-pill:hover { border-color: var(--cyan); color: var(--cyan); }

/* ══ IMPRESSUM ══ */
.impressum-section {
  max-width: 1280px;
  margin: 0 auto 0;
  padding: 0 24px 24px;
}

.impressum-toggle {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: var(--text3);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .15s, border-color .15s;
}

.impressum-toggle:hover { color: var(--text); border-color: var(--border2); }

.imp-arrow { transition: transform .25s; }
.impressum-toggle.open .imp-arrow { transform: rotate(180deg); }

.impressum-body {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 20px;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: -4px;
}

.impressum-body.open { display: grid; }

.impressum-col h4, .impressum-col .imp-h {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

.impressum-col address,
.impressum-col p {
  font-size: .82rem;
  color: var(--text2);
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 8px;
}

.impressum-col p:last-child { margin-bottom: 0; }
.impressum-col h4 + h4, .impressum-col p + .imp-h { margin-top: 16px; }

/* ══ FOOTER ══ */
footer {
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text3);
  max-width: 1280px;
  margin: 0 auto;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; padding: 16px; }
  .sidebar { position: static; }
  .module-grid { grid-template-columns: 1fr; }
  .impressum-body { grid-template-columns: 1fr; }
  .stat-bar { flex-wrap: wrap; gap: 20px; padding: 12px 16px; }
  header { padding: 10px 16px; }
  .impressum-section { padding: 0 16px 16px; }
  footer { flex-direction: column; gap: 4px; text-align: center; }
}

/* ══════════════════════════════════════════
   ERGÄNZUNGEN (Neuaufbau 19.11.2026)
   ══════════════════════════════════════════ */

/* Ehemalige Inline-Styles als Klassen (Content-Security-Policy erlaubt keine) */
.stat-num.orange { color: var(--orange); }
.forschungsfrage-block.akzent { border-left-color: var(--orange); background: rgba(232,130,58,.04); }
.forschungsfrage-block.neutral { border-left-color: var(--border2); background: transparent; }
.bew-bar-fill.w100 { width: 100%; }
.bew-bar-fill.w83  { width: 83%; background: var(--cyan2); }
.bew-bar-fill.w50  { width: 50%; background: var(--orange); }

/* H1 trägt jetzt den Seitentitel im Kopf; Optik wie zuvor */
h1.site-title { margin: 0; }
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; }

/* Fallstudien ohne Ziel: Text statt toter Link */
.post-entry h3 { color: var(--heading); }
.sp-title { cursor: default; }
.sp-title:hover { color: var(--text); }

/* Sprungmarke für Tastatur */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; z-index: 200; background: var(--bg2); color: var(--heading);
  padding: 6px 10px; border: 1px solid var(--cyan); border-radius: 4px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan2); outline-offset: 2px; }

/* Aufruf Operation Zukunft (Seitenleiste) */
.sidebar-card-body .oz-aufruf { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.oz-aufruf a { color: var(--orange); font-weight: 500; }

/* Impressum-Spalten: Links unten */
.impressum-col .imp-links a { color: var(--cyan); }

/* Fuß: Cluster-Hinweis */
footer { flex-wrap: wrap; gap: 6px 24px; }
footer .cluster-hinweis { flex-basis: 100%; text-transform: none; letter-spacing: .02em; font-size: .72rem; }
footer .cluster-hinweis a { color: var(--orange); }

/* Rechtsseiten (Impressum, Datenschutz) und 404 */
.rechtstext { max-width: 760px; margin: 0 auto; padding: 32px 24px 40px; }
.rechtstext h1 { font-size: 1.4rem; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.rechtstext .stand { font-family: var(--mono); font-size: .7rem; color: var(--text3); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 22px; }
.rechtstext h2 { font-size: .85rem; font-weight: 600; color: var(--heading); letter-spacing: .04em;
  text-transform: uppercase; margin: 22px 0 8px; }
.rechtstext p, .rechtstext li { font-size: .9rem; color: var(--text); line-height: 1.7; margin-bottom: 10px; }
.rechtstext ul { padding-left: 20px; margin-bottom: 10px; }
.rechtstext address { font-style: normal; font-size: .9rem; line-height: 1.7; margin-bottom: 10px; }
.rechtstext .zurueck { margin-top: 28px; font-family: var(--mono); font-size: .75rem; }
.fehler-code { font-family: var(--mono); font-size: 3rem; font-weight: 600; color: var(--cyan); line-height: 1; margin-bottom: 10px; }

@media (max-width: 900px) {
  .rechtstext { padding: 24px 16px 32px; }
  footer .cluster-hinweis { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
