/* ===== 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;
}
