/* Ergänzende Bausteine für Anleitungen, Konzepte und Lernmodule (Oktober 2026). Baut auf site.css auf. */

.eb-bc { font-size: .9rem; color: var(--muted); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.eb-bc a { color: var(--muted); text-decoration: none; }
.eb-bc a:hover { color: var(--ink); text-decoration: underline; }

.eb-prose { max-width: 860px; }
.eb-prose h2 { margin-top: 1.6em; }
.eb-prose h3 { margin-top: 1.3em; }
.eb-prose p, .eb-prose li { line-height: 1.65; }
.eb-prose ul, .eb-prose ol { padding-left: 1.3em; }

/* Nummerierte Arbeitsschritte */
.eb-steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0; display: grid; gap: 14px; }
.eb-steps > li { counter-increment: step; position: relative; padding: 16px 18px 16px 64px; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; line-height: 1.6; }
.eb-steps > li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--accent); color: #fff; }
.eb-steps > li strong:first-child { display: block; margin-bottom: 4px; }

/* Hinweiskästen */
.eb-box { border-radius: 18px; padding: 16px 20px; margin: 18px 0; border: 1px solid var(--line); background: var(--accent-soft); line-height: 1.6; }
.eb-box > strong { display: block; margin-bottom: 6px; font-family: Georgia, serif; font-size: 1.05rem; }
.eb-box.warn { background: #fbece6; border-color: #e5b9a8; }
.eb-box.warn > strong::before { content: "⚠ "; }
.eb-box.tip > strong::before { content: "💡 "; }
.eb-box.info > strong::before { content: "ℹ "; }
.eb-box ul { margin: 6px 0 0; padding-left: 1.2em; }
.eb-box p { margin: 6px 0 0; }

/* Tabellen */
.eb-table-wrap { overflow-x: auto; margin: 16px 0 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--cream); }
.eb-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.eb-table th { text-align: left; background: var(--ink); color: #fff; padding: 10px 12px; font-weight: 700; white-space: nowrap; }
.eb-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.eb-table tbody tr:nth-child(even) td { background: rgba(0,0,0,.025); }

/* Kennzahlen-Leiste oben in Anleitungen */
.eb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 24px; }
.eb-facts div { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.eb-facts span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.eb-facts b { font-size: 1.05rem; }

/* Zeichnungen */
.eb-figure { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 18px 0; }
.eb-figure svg { width: 100%; height: auto; display: block; }
.eb-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
html[data-theme="dark"] .eb-figure { background: #f4f7f6; }

/* Einklappbare Stundenentwürfe */
details.eb-lesson { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; margin: 12px 0; }
details.eb-lesson > summary { cursor: pointer; padding: 16px 20px; font-weight: 750; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.eb-lesson > summary::-webkit-details-marker { display: none; }
details.eb-lesson > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
details.eb-lesson[open] > summary::after { content: "–"; }
details.eb-lesson > div { padding: 0 20px 18px; }
details.eb-lesson .eb-table-wrap { margin-top: 8px; }

/* Rätsel-Kennzeichnung */
.tag.eb-age { background: var(--ink); color: #fff; }
.tag.eb-level { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.eb-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin-top: 14px; font-size: .95rem; }
.eb-legend b { font-family: Georgia, serif; }

/* Brief-Vorlage */
.eb-letter { background: #fff; color: #14292c; border: 1px solid var(--line); border-radius: 8px; padding: 42px 48px; max-width: 820px; box-shadow: var(--shadow); line-height: 1.6; }
.eb-letter .ph { background: #fff4c7; padding: 0 3px; border-radius: 3px; }
.eb-letter .cut { border-top: 2px dashed #999; margin: 28px 0 18px; padding-top: 6px; font-size: .85rem; color: #666; }
.eb-letter .line { display: inline-block; min-width: 220px; border-bottom: 1px solid #333; }
@media (max-width: 640px) { .eb-letter { padding: 24px 18px; } }

.eb-cards-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

@media print {
  .site-header, .site-footer, .chipnav, .backtop, .skip-link, .eb-noprint, .eb-bc, .ebux, .ebsearch-open { display: none !important; }
  body { background: #fff !important; }
  .page-hero { padding-top: 0 !important; }
  .eb-steps > li, .eb-box, .eb-table-wrap, .eb-figure, details.eb-lesson { break-inside: avoid; }
  details.eb-lesson > div { display: block !important; }
  .eb-letter { box-shadow: none; border: none; padding: 0; }
  a[href^="http"]::after { content: none !important; }
}
