/* ===== SDG MODULE ===== */
.sdg-module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 2.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 4rem;
}

.sdg-header {
  background: var(--sdg-color, #4E5F6D);
  color: #fff;
  padding: 1.5rem 2rem;
}
.sdg-header h2 { margin: 0.5rem 0 0.25rem; color: #fff; font-size: 1.4rem; }
.sdg-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.sdg-kurz {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
  font-style: italic;
  color: rgba(255,255,255,0.95);
}

.sdg-body { padding: 0 2rem; }

/* SDG-Abschnitte */
.sdg-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.sdg-section:last-child { border-bottom: none; padding-bottom: 1.5rem; }
.sdg-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  margin-top: 0;
  color: var(--text-secondary);
}
.sdg-section h3::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.sdg-section.lernziele h3 { color: #1e40af; }
.sdg-section.lernziele h3::before { background: #1e40af; }
.sdg-section.interaktiv h3 { color: #7c3aed; }
.sdg-section.interaktiv h3::before { background: #7c3aed; }
.sdg-section.multimedial h3 { color: #0369a1; }
.sdg-section.multimedial h3::before { background: #0369a1; }
.sdg-section.praxis h3 { color: #166534; }
.sdg-section.praxis h3::before { background: #166534; }
.sdg-section.reflexion h3 { color: #9a3412; }
.sdg-section.reflexion h3::before { background: #9a3412; }

/* Lernziele-Grid */
.lernziele-grid { display: grid; gap: 0.75rem; }
.lernziel-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.95rem;
}
.lernziel-item dt {
  font-weight: 700;
  color: #1e40af;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lernziel-item dd { margin: 0; }

/* Praxis-Box */
.praxis-box {
  background: #f0fdf4;
  border-left: 5px solid #16a34a;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  color: #14532d;
  font-size: 0.95rem;
  margin: 0;
}
.praxis-box strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #16a34a;
}

/* Hinweis-Box */
.hinweis-box {
  background: #eff6ff;
  border-left: 5px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  color: #1e3a5f;
  font-size: 0.95rem;
  margin: 1rem 0;
}
.hinweis-box strong { color: #1d4ed8; }

/* Reflexions-Liste */
.reflexion-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  margin: 0;
}
.reflexion-list li {
  padding: 0.6rem 0.75rem 0.6rem 2.5rem;
  background: #fff7ed;
  border-radius: 6px;
  font-size: 0.95rem;
  position: relative;
  color: #7c2d12;
  margin: 0;
}
.reflexion-list li::before {
  content: '?';
  position: absolute;
  left: 0.75rem;
  font-weight: 800;
  color: #ea580c;
}

/* ===== CONTENT-TABELLEN ===== */
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.content-table th {
  background: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.content-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.content-table tr:hover td { background: #f8fafc; }

/* ===== BAUSTEIN-HEADER ===== */
.baustein-header {
  border-left: 8px solid var(--baustein-color, #4E5F6D);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow);
}
.baustein-header h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.baustein-header .baustein-meta { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.baustein-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--baustein-color, #4E5F6D);
  color: #fff;
  margin-bottom: 0.5rem;
}

/* ===== CHECKLISTEN ===== */
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 0.4rem 0.5rem 0.4rem 2rem;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.1s;
  margin: 0;
}
.checklist li::before {
  content: '☐';
  position: absolute;
  left: 0.25rem;
  font-size: 1.1rem;
  color: #94a3b8;
}
.checklist li.checked {
  background: #dcfce7;
  color: #166534;
  text-decoration: line-through;
}
.checklist li.checked::before {
  content: '☑';
  color: #16a34a;
}

/* ===== KAPITEL (Einführung) ===== */
.chapter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 4rem;
}
.chapter > h2 { margin-top: 0; }
.chapter .leitprinzip {
  background: #fef9c3;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.chapter .leitprinzip strong { color: #92400e; }

/* ===== ÜBERSICHTS-KARTEN (Home) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
  border-top: 4px solid var(--card-color, var(--baustein-rahmen));
}
.nav-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.nav-card .card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--card-color, var(--text-muted));
}
.nav-card h3 { font-size: 0.95rem; margin: 0; color: var(--text-primary); }
.nav-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ===== PAGE INTRO ===== */
.page-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.page-intro h1 { margin-bottom: 0.5rem; }
.page-intro .lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 0.5rem;
}

/* ===== OPTIONALER BAUSTEIN HINWEIS ===== */
.optional-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ===== BAYERN-VERANKERUNG ===== */
.bayern-box {
  background: #f0f4ff;
  border-left: 4px solid #003087;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.bayern-box .bayern-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #003087;
  display: block;
  margin-bottom: 0.4rem;
}
.bayern-box p { margin: 0 0 0.5rem; }
.bayern-box p:last-child { margin-bottom: 0; }
.bayern-box a { color: #003087; }

/* ===== MATERIALTIPP-BOX ===== */
.materialtipp-box {
  background: #f8f4e8;
  border: 1.5px solid #c8a84b;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.materialtipp-box .mat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1.2;
}
.materialtipp-box .mat-content { flex: 1; }
.materialtipp-box .mat-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}
.materialtipp-box .mat-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== SDG-DETAIL-LINK (Button im SDG-Header) ===== */
.sdg-detail-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 6px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.sdg-detail-link:hover {
  background: rgba(255,255,255,0.32);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* ===== AM-RIFF-IMPULS ===== */
.riff-impuls {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1.5px solid var(--baustein-umwelt);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}
.riff-impuls .riff-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--baustein-umwelt);
  margin-bottom: 0.4rem;
  display: block;
}
.riff-impuls p { margin: 0; font-size: 0.95rem; }
.optional-banner strong { color: #92400e; }

/* ===== SECTION-LABEL (Für dich / Für die Kita) ===== */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.section-label.fuer-dich {
  background: #e0e7ff;
  color: #3730a3;
}
.section-label.fuer-kita {
  background: #dcfce7;
  color: #166534;
}

/* ===== BACK-LINK ===== */
.back-link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1rem;
}
.back-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ===== FACH-INTRO (Hintergrundwissen-Fließtext) ===== */
.fach-intro p { font-size: 0.95rem; }
.fach-intro strong { color: var(--text-primary); }

/* ===== BRÜCKE-TEXT (in hinweis-box) ===== */
.hinweis-box.bruecke-text {
  background: #f0fdf4;
  border-left-color: #16a34a;
  color: #14532d;
}
.hinweis-box.bruecke-text strong { color: #14532d; }

/* ===== FAKTEN-GRID ===== */
.fakten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.fakt-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fakt-item .fakt-zahl {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.fakt-item .fakt-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* =====================================================================
   THEMENRASTER (neue Kursstruktur, siehe docs/kursstruktur-neu.md)
   Seite setzt --thema-color, z. B. style="--thema-color: var(--thema-wasser)"
   ===================================================================== */

/* Kopf der Themenseite */
.thema-header {
  background: var(--thema-color, var(--baustein-rahmen));
  color: #fff;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.thema-header .thema-tag {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}
.thema-header h1 { color: #fff; margin: 0.5rem 0 0.4rem; }
.thema-header p { margin: 0; max-width: 640px; color: rgba(255,255,255,0.95); }

/* Sprungleiste zu den 6 Blöcken */
.thema-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.thema-toc li { margin: 0; }
.thema-toc a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-secondary);
}
.thema-toc a:hover { border-color: var(--thema-color); color: var(--thema-color); }

/* Ein Block des Rasters */
.thema-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 4rem;
}
.thema-block > h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}
.thema-block > h2 .block-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--thema-color, var(--baustein-rahmen));
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.thema-block .block-intro { color: var(--text-secondary); font-size: 0.95rem; }

/* Farbvarianten nach KiA-Handreichung: grün = Grundlagen, blau = Vertiefung */
.thema-block.grundlagen { background: #f0fdf4; border-color: #bbf7d0; }
.thema-block.grundlagen > h2 .block-nr { background: #16a34a; }
.thema-block.vertiefung { background: #eff6ff; border-color: #bfdbfe; }
.thema-block.vertiefung > h2 .block-nr { background: #2563eb; }
.thema-block.verankert { background: #f8fafc; }
.thema-block.verankert > h2 .block-nr { background: var(--baustein-rahmen); }

/* Block 1: Die EINE Sache – drei Botschaften zur Auswahl */
.eine-sache-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.eine-sache {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1rem 1rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
}
.eine-sache.favorit {
  border-color: var(--thema-color);
  background: color-mix(in srgb, var(--thema-color) 7%, #fff);
}
.eine-sache .eine-sache-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.eine-sache.favorit .eine-sache-label { color: var(--thema-color); }
.handlungsmaxime {
  border-left: 4px solid var(--thema-color);
  padding: 0.6rem 1rem;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  margin: 0;
}

/* Block 2: Aktionskarten mit U3/Ü3 und Partizipation */
.aktion-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.aktion {
  border: 1px solid var(--border);
  border-top: 4px solid var(--thema-color);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.aktion h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.aktion > p { font-size: 0.95rem; margin-bottom: 0.75rem; }
.aktion-varianten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  margin: 0;
}
.aktion-varianten > div {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
}
.aktion-varianten dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.aktion-varianten dd { margin: 0.15rem 0 0; }
.aktion-varianten .partizipation { background: #fef9c3; }
.aktion-varianten .partizipation dt { color: #92400e; }

/* Block 3: Selbstcheck mit den zwei KiA-Spalten */
.selbstcheck { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1rem 0 0.5rem; }
.selbstcheck th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid var(--border);
  background: #f1f5f9;
}
.selbstcheck th.check-col, .selbstcheck td.check-col { width: 7.5rem; text-align: center; }
.selbstcheck td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.selbstcheck input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--thema-color); cursor: pointer; }
.selbstcheck .gruppe td {
  background: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.9rem;
}

/* Block 6: SDG-Chips */
.sdg-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.sdg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--chip-color, var(--baustein-rahmen));
}
.sdg-chip:hover { filter: brightness(0.92); }

@media (max-width: 768px) {
  .thema-header, .thema-block { padding: 1.25rem 1rem; }
  .selbstcheck th.check-col, .selbstcheck td.check-col { width: 4.5rem; }
}
/* Helle SDG-Farben (z. B. 6, 7, 11) brauchen dunkle Schrift */
.sdg-chip.hell { color: #10202a; }

/* =====================================================================
   KOMPASS: Werte und Kompetenzen aus dem BNE-Referenzrahmen
   (docs/kursstruktur-referenzrahmen.md, Musterseite thema-wasser-kompass.html)
   ===================================================================== */

/* Kompetenz-Etikett; Farbe je Kompetenz über data-k */
.kompetenz {
  --k-color: var(--baustein-rahmen);
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  border: 1.5px solid var(--k-color);
  background: color-mix(in srgb, var(--k-color) 10%, #fff);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.kompetenz[data-k="forschen"]       { --k-color: #0B6E99; }
.kompetenz[data-k="nachdenken"]     { --k-color: #7C3AED; }
.kompetenz[data-k="sorge"]          { --k-color: #16A34A; }
.kompetenz[data-k="mitentscheiden"] { --k-color: #D97706; }
.kompetenz[data-k="bewirken"]       { --k-color: #DC2626; }
.kompetenz.klein { padding: 0 0.35rem; font-size: 0.75rem; }

/* Legende am Seitenanfang */
.kompass-leiste {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}
.kompass-leiste .kompass-titel { margin: 0 0 0.5rem; font-weight: 700; font-size: 0.9rem; }
.kompass-leiste .kompass-titel span { font-weight: 400; color: var(--text-muted); }
.kompass-leiste ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.kompass-leiste li { margin: 0; }
.kompass-leiste .kompass-hinweis { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--text-muted); }

/* Block „Das stärkt die Kinder“ */
.staerkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.staerkt-karte {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.staerkt-karte p { margin: 0.5rem 0 0; font-size: 0.93rem; }
.wert-box {
  border-left: 4px solid var(--thema-color);
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  padding: 0.6rem 1rem;
}
.wert-box .wert-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--thema-color);
}
.wert-box p { margin: 0.2rem 0 0; font-size: 0.95rem; }

/* Kompetenz-Etiketten an Aktionskarten */
.aktion .aktion-kompetenzen { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.6rem; }

/* Haltungs-Hinweis (Referenzrahmen: nicht moralisieren) */
.haltung-tipp {
  margin-top: 1rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.93rem;
}
.haltung-tipp p { margin: 0; }

/* Baustein-Hinweis in Selbstcheck-Gruppenzeilen */
.selbstcheck .rr-baustein {
  margin-left: 0.5rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--baustein-rahmen);
  font-size: 0.75rem;
}

/* Block „Verankert in …“: Referenzrahmen zuerst, SDG nur als Fußzeile */
.rr-box {
  border: 2px solid var(--baustein-rahmen);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
}
.rr-box .rr-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--baustein-rahmen);
  margin-bottom: 0.4rem;
}
.rr-box p { font-size: 0.93rem; }
.sdg-fusszeile {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin: 1rem 0 0;
}
