/* Darstellung (Nutzer 25.11.2026): Kasten in der Seitenleiste der Artikelseiten + Wirkung der Attribute am <html>.
   Attribute: data-text=klein|gross, data-breite=breit, data-theme=dark|light (setzt das Mini-Skript im <head> und static/darstellung.js). */
.article-meta-row .tags { margin-right: auto; }
.dar-rechts { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; position: relative; }
.darstellung-box { position: static; }
.dar-pop { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(300px, calc(100vw - 32px)); box-sizing: border-box; padding: 4px 16px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); box-shadow: 0 8px 28px rgba(0,0,0,.16); font-family: Raleway, sans-serif; }
.dar-pop[hidden] { display: none; }
.dar-pop { padding: 4px 12px 10px; border-radius: 12px; width: min(264px, calc(100vw - 32px)); }
.dar-pop .dar-gruppe { margin-top: 9px; }
.dar-pop .dar-etikett { font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 4px; }
.dar-pop .dar-seg { display: flex; gap: 6px; }
.dar-pop .dar-seg button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 6px 3px 5px; min-height: 46px; background: transparent; color: var(--fg); border: 1px solid var(--border); border-radius: 10px; font: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.dar-pop .dar-seg button:hover { background: var(--tag-bg); }
.dar-pop .dar-seg button:active { transform: scale(.96); }
.dar-pop .dar-sym { height: 24px; display: flex; align-items: center; justify-content: center; }
.dar-pop .dar-a { font-weight: 700; line-height: 1; font-family: Raleway, sans-serif; }
.dar-pop .dar-name { font-size: .66rem; color: var(--fg-muted); }
.dar-pop .dar-seg button[aria-pressed="true"] { background: var(--kv-akzent-zart); border-color: var(--kv-akzent); color: var(--kv-akzent-dunkel); box-shadow: 0 0 0 1px var(--kv-akzent) inset; }
.dar-pop .dar-seg button[aria-pressed="true"] .dar-name { color: var(--kv-akzent-dunkel); font-weight: 700; }
.dar-pop .dar-seg button:focus-visible { outline: 2px solid var(--kv-akzent); outline-offset: 2px; }
.dar-pop .dar-reset { display: block; margin: 12px auto 0; background: none; border: 0; padding: 2px 6px; font: inherit; font-size: .75rem; color: var(--fg-muted); text-decoration: underline; cursor: pointer; }
.dar-pille { display: inline-flex; }
.dar-pille svg { width: 16px; height: 16px; }
.dar-pop .dar-sym svg { width: 20px; height: 20px; }
.dar-pop .dar-reset { margin-top: 8px; font-size: .7rem; }

/* Text: nur der Artikelinhalt (nicht Menue, Kopf, Seitenleiste). zoom, weil der Theme-Text feste Pixelgroessen hat. */
html[data-text="klein"] .blog-seite article { zoom: .9; }
html[data-text="gross"] .blog-seite article { zoom: 1.15; }
/* Breit: Artikelspalte waechst, die Seitenleiste bleibt 300 px */
@media (min-width: 991px) {
  html[data-breite="breit"] .blog-seite.blog-liste.blog-artikel { max-width: min(1560px, calc(100vw - 40px)); width: min(1560px, calc(100vw - 40px)); }
}
/* Dunkel: nur die Artikelseite (Seitenflaeche, Artikel, Seitenleiste). Menue und Kopfbild bleiben, wie sie sind. */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] .qodef-content, html[data-theme="dark"] .qodef-content-inner, html[data-theme="dark"] .qodef-full-width, html[data-theme="dark"] .qodef-full-width-inner { background: #121212 !important; }
html[data-theme="dark"] .blog-seite {
  --bg: #121212; --fg: #e6e6e6; --fg-muted: #a6a6a6; --fg-leise: #767c83; --link: #8fbcff; --link-visited: #cdb8ff; --border: #333333;
  --code-bg: #1e1e1e; --tag-bg: #1f2733; --callout-bg: #2c2410; --callout-border: #e0ab3a;
  --kv-flaeche: #181a1d; --kv-linie: #3a3f47; --kv-zart: #22262b; --kv-text: #e3e3e3; --kv-grau: #a1a6ad; --kv-akzent-zart: #3a2a22; --kv-akzent-dunkel: #f0a98f;
  color: #e6e6e6; background: #121212;
}
html[data-theme="dark"] .blog-seite :is(h1, h2, h3, h4, h5, h6, p, li, td, th, dt, dd, figcaption, summary, strong, em, span, blockquote) { color: inherit; }
html[data-theme="dark"] .blog-seite article :is(p, li, td, th, h1, h2, h3, h4) { color: #e6e6e6; }
html[data-theme="dark"] .blog-seite :is(table, th, td) { border-color: #333; }
html[data-theme="dark"] .blog-seite :is(pre, code) { background: #1e1e1e; color: #e6e6e6; }
html[data-theme="dark"] .blog-seite a { color: #8fbcff; }
html[data-theme="dark"] .blog-seite img { filter: brightness(.9); }
html[data-theme="dark"] .blog-seite .blog-seitenleiste .zurueck-oben a, html[data-theme="dark"] .blog-seite .blog-seitenleiste a { color: #8fbcff; }
/* Pille wie "Zusammenfassung" (static/style.css .summary-toggle), eigene Klasse, damit deren Skript sie nicht mitsteuert */
.dar-knopf { display: inline-flex; align-items: center; gap: .35rem; background: transparent; border: 1px solid var(--border); color: var(--fg); border-radius: 999px; padding: .25rem .9rem; font-size: .85rem; cursor: pointer; font-family: inherit; }
.dar-knopf:hover { background: var(--tag-bg); }
.dar-icon { display: inline-block; transition: transform .2s ease; }
.dar-knopf[aria-expanded="true"] .dar-icon { transform: rotate(180deg); }
