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

/* Rätsel: Hinweise und Schnellauswahl */
.eb-hint { font-size: .86rem; color: var(--muted); margin: 6px 0 10px; }
.eb-filter { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; }
.eb-fgroup { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.eb-fgroup button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--cream); color: var(--ink); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.eb-fgroup button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Publikationen: Kenndaten */
.eb-pubmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; color: var(--muted); margin: 4px 0 8px; }
.eb-pubmeta b { color: var(--ink); font-weight: 650; }
.eb-cite { font-size: .82rem; }

/* Schachdiagramme und Mini-Quiz */
.eb-board { margin: 18px 0; max-width: 360px; }
.eb-board-grid { border-collapse: collapse; border: 2px solid #3b4a4c; box-shadow: var(--shadow); }
.eb-board-grid td { width: 42px; height: 42px; text-align: center; vertical-align: middle; font-size: 31px; line-height: 1; padding: 0; position: relative; }
.eb-board-grid td.l { background: #f0d9b5; } .eb-board-grid td.d { background: #b58863; }
.eb-board-grid td.w { color: #fff; text-shadow: 0 0 2px #000, 0 0 1px #000; } .eb-board-grid td.b { color: #111; }
.eb-board-grid td[data-rank]::before { content: attr(data-rank); position: absolute; left: 2px; top: 1px; font-size: 9px; color: #333; text-shadow: none; }
.eb-board-grid td[data-file]::after { content: attr(data-file); position: absolute; right: 2px; bottom: 0; font-size: 9px; color: #333; text-shadow: none; }
.eb-board-grid td img { display: block; width: 100%; height: 100%; }
.eb-board-src { font-size: .72rem; color: var(--muted); margin-top: 2px; } .eb-board-src a { color: inherit; }
.eb-board-cap { font-size: .9rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 420px) { .eb-board-grid td { width: 36px; height: 36px; font-size: 26px; } }
.eb-term { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 28px; }
.eb-quiz { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 14px 0; }
.eb-quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-quiz-opts button { font: inherit; border: 1px solid var(--line); background: #fff; color: #14292c; border-radius: 999px; padding: .45rem .9rem; cursor: pointer; }
.eb-quiz-opts button.ok { background: #dff3e4; border-color: #2e8b57; } .eb-quiz-opts button.no { background: #fbe5de; border-color: #c0583c; }
.eb-quiz-fb { font-weight: 650; min-height: 1.4em; margin: 8px 0 0; }
.eb-newlist { list-style: none; padding: 0; display: grid; gap: 8px; }
.eb-newlist li { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.eb-newlist .mini { display: block; }
