/* Bausteine der Rubrik-Artikel (artikel_bausteine.go, Vorlagen in artikel-bausteine-teile.html): Einstiegsbild,
   Datendiagramm mit Tabelle, feste Produktkarten, Zierbild. Farben der Linien wie die Zeitleiste der Eulenbücher
   (Kontrast zu Weiß mindestens 4,5:1 für Werte und Linien), Linien zusätzlich durch Strichart unterschieden. */
.ab-f1 { --ab-farbe: #1b64be; } .ab-f2 { --ab-farbe: #b4501a; } .ab-f3 { --ab-farbe: #007f63; }
.ab-f4 { --ab-farbe: #7a3fb0; } .ab-f5 { --ab-farbe: #5d6876; }

/* Einstiegsbild: Breite der Textspalte, Höhe über width/height reserviert, keine Schrift auf dem Bild */
.ab-einstieg { margin: 0 0 20px; }
.ab-einstieg img { display: block; width: 100%; height: auto; border-radius: 14px; background: #f3f1ec; }
.ab-bildhinweis { margin: 4px 2px 0; font-size: 0.8rem; color: var(--muted, #58657a); }

/* Zierbild: am Rechner rechts neben dem Absatz, am Handy klein darüber */
.ab-zier { float: right; width: 240px; height: auto; margin: 4px 0 12px 24px; }
@media (max-width: 599px) {
  .ab-zier { float: none; display: block; width: 180px; margin: 0 0 8px; }
}

/* Datendiagramm */
.ab-grafik { clear: both; margin: 18px 0 24px; padding: 14px 14px 10px; border: 1px solid var(--rand, #d9dfe8); border-radius: 12px; background: #fff; }
.ab-grafik-kopf { margin: 0 0 8px; }
.ab-grafik-titel { display: block; font-weight: 700; font-size: 1.02rem; color: var(--text, #14213d); }
.ab-grafik-aussage { display: block; font-size: 0.95rem; color: var(--text, #14213d); margin-top: 2px; }
.ab-grafik-flaeche svg { display: block; width: 100%; height: auto; overflow: visible; }
.ab-grafik-flaeche.ab-breit svg { max-width: 760px; }
.ab-grafik-flaeche.ab-schmal { display: none; }
@media (max-width: 599px) {
  .ab-grafik { padding: 12px 8px 8px; }
  .ab-grafik-flaeche.ab-breit { display: none; }
  .ab-grafik-flaeche.ab-schmal { display: block; }
}
.ab-raster { stroke: #dce3eb; stroke-width: 1; }
.ab-achse, .ab-jahr { font-size: 12px; fill: #46546a; }
.ab-jahr-leer { fill: #6b7788; font-style: italic; }
.ab-reihe polyline { fill: none; stroke: var(--ab-farbe); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ab-reihe circle { fill: var(--ab-farbe); stroke: #fff; stroke-width: 1.5; }
.ab-wert { font-size: 12px; font-weight: 700; fill: var(--ab-farbe); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.ab-ende { font-size: 12.5px; font-weight: 600; fill: var(--ab-farbe); }
.ab-grafik-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; padding: 0; font-size: 0.9rem; }
.ab-grafik-legende li { display: inline-flex; align-items: center; gap: 6px; color: var(--text, #14213d); }
.ab-grafik-legende line { stroke: var(--ab-farbe); stroke-width: 2.5; }
.ab-grafik-legende circle { fill: var(--ab-farbe); }
.ab-grafik-quelle { margin: 8px 0 4px; font-size: 0.88rem; color: var(--muted, #58657a); }
.ab-grafik-tabelle summary { cursor: pointer; display: inline-block; min-height: 24px; line-height: 24px; font-size: 0.92rem; color: var(--aktion, #14213d); text-decoration: underline; }
.ab-grafik-tabelle table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 6px; }
.ab-grafik-tabelle caption { text-align: left; font-size: 0.88rem; color: var(--muted, #58657a); padding-bottom: 4px; }
.ab-grafik-tabelle th, .ab-grafik-tabelle td { padding: 5px 6px; border-bottom: 1px solid #e5eaf0; text-align: left; }
.ab-grafik-tabelle .rechts { text-align: right; white-space: nowrap; }
.ab-grafik-tabelle .edb-tabelle-rahmen { overflow-x: auto; }

/* Produktkarten nach dem Absatz: 2–3 nebeneinander, am Handy zwei je Reihe */
.ab-produkte { clear: both; margin: 14px 0 22px; padding: 12px 14px; border: 1px solid #d8e4ea; border-radius: 14px; background: #fff; }
.lesetext h3.ab-produkte-titel { font-size: 1rem; margin: 0 0 10px; }
.ab-karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 230px)); gap: 14px 18px; }
@media (max-width: 599px) { .ab-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ab-karte { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ab-foto { display: block; border-radius: 10px; overflow: hidden; background: #f4f8fa; }
.ab-foto img { display: block; width: 100%; height: 110px; object-fit: contain; }
.ab-text p { margin: 0 0 4px; }
.ab-name { font-size: 0.9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ab-preis { font-size: 0.92rem; }
.ab-shop { color: #4f6170; font-size: 0.82rem; }
.ab-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ab-kauf { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #0e3443; color: #fff;
  font-weight: 600; font-size: 0.88rem; text-decoration: none; }
.ab-kauf:hover { background: #1b4f63; color: #fff; }
.ab-kauf:focus-visible, .ab-amazon a:focus-visible, .ab-grafik-tabelle summary:focus-visible { outline: 3px solid #c16532; outline-offset: 2px; }
.ab-amazon a { display: inline-block; min-height: 24px; line-height: 24px; }
