/* ─────────────────────────────────────────────────────────────────────────
   WG-Watch.com — Designsprache der Artikelseite (/article/<slug>)

   Praefix `art-`, durchgaengig. Bewusst KEINE Wiederverwendung von
   `card-premium`/`stat-card`/`section-chip`: die stehen seitenlokal in
   player.php bzw. online.php und wuerden hier schlicht nichts tun (sie sind
   nicht im Tailwind-Build). Ein eigener, praefixierter Satz vermeidet
   zusaetzlich die Namenskollision, die `stat-card` zwischen player.php und
   session.php bereits hat.

   Eingebunden ueber $pageStylesheet in article.php — also im <head>, mit
   filemtime()-Cache-Buster. NICHT per <link> unterhalb des header-includes:
   ein Stylesheet im <body> blockiert das Rendern trotzdem, es wird nur
   spaeter entdeckt (FOUC + Layoutsprung).

   Leitfarbe ist das Marken-Orange (--color-wgOrange, #f57c00) mit Bernstein
   als Zweitton — dieselbe Familie wie Blog-Listing und Hero.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Tokens ───────────────────────────────────────────────────────────────
   Auf .art-scope statt :root, damit nichts in fremde Seiten leckt. Die
   Dark-Fassung definiert nur die Token um; keine Regel weiter unten muss
   dafuer verdoppelt werden. */
.art-scope {
    --art-accent:      #f57c00;
    --art-accent-2:    #fbbf24;
    --art-accent-soft: rgba(245, 124, 0, 0.10);
    --art-surface:     #ffffff;
    --art-surface-2:   #fbfbfc;
    --art-line:        rgba(17, 24, 39, 0.07);
    --art-line-strong: rgba(17, 24, 39, 0.12);
    --art-ink:         #111827;
    --art-ink-2:       #374151;
    --art-ink-3:       #6b7280;
    --art-shadow:      0 1px 2px rgba(16, 24, 40, 0.04),
                       0 12px 32px -12px rgba(16, 24, 40, 0.14);
    --art-shadow-lift: 0 1px 2px rgba(16, 24, 40, 0.05),
                       0 26px 56px -20px rgba(16, 24, 40, 0.26);
}
.dark .art-scope {
    --art-accent-soft: rgba(245, 124, 0, 0.14);
    --art-surface:     #1f2937;
    --art-surface-2:   rgba(17, 24, 39, 0.55);
    --art-line:        rgba(255, 255, 255, 0.08);
    --art-line-strong: rgba(255, 255, 255, 0.14);
    --art-ink:         #f9fafb;
    --art-ink-2:       #d1d5db;
    --art-ink-3:       #9ca3af;
    --art-shadow:      0 1px 2px rgba(0, 0, 0, 0.3),
                       0 12px 32px -12px rgba(0, 0, 0, 0.55);
    --art-shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.35),
                       0 26px 56px -20px rgba(0, 0, 0, 0.7);
}

/* ── Flaechen ──────────────────────────────────────────────────────────── */
.art-card {
    position: relative;
    background: var(--art-surface);
    border: 1px solid var(--art-line);
    border-radius: 1.5rem;
    box-shadow: var(--art-shadow);
}
/* Haarfeine Lichtkante oben — der Unterschied zwischen "Box" und "Panel".
   ::before statt eines eigenen <div>, damit das Markup schlank bleibt. */
.art-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    border-radius: inherit;
    background: linear-gradient(90deg,
        transparent, rgba(245, 124, 0, 0.55) 22%, rgba(251, 191, 36, 0.55) 55%, transparent);
    opacity: 0.7;
    pointer-events: none;
}
/* Die grosse Artikelkarte: gleiche Sprache, nur tiefer gesetzt — sie ragt
   ueber das Hero-Bild und braucht dafuer mehr Schatten als ein Panel im
   Fluss. ⚠️ Bewusst hier und nicht als Tailwind-`shadow-2xl` im Markup:
   article.css ist unlayered, Tailwind-Utilities liegen in @layer utilities —
   die unlayered Regel gewinnt, eine Utility waere wirkungslos. */
.art-card--flush {
    border-radius: 2rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05),
                0 40px 80px -32px rgba(16, 24, 40, 0.4);
}
.dark .art-card--flush {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4),
                0 40px 80px -30px rgba(0, 0, 0, 0.85);
}

.art-lift { transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease; }
.art-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--art-shadow-lift);
    border-color: rgba(245, 124, 0, 0.35);
}

/* Licht-Sweep beim Hover. Der Traeger braucht overflow:hidden — die Karten
   unten setzen es selbst, damit die Regel hier nichts erzwingt, was auf
   anderen Traegern Glows abschneiden wuerde. */
.art-sheen::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    transition: none;
}
.dark .art-sheen::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.09), transparent); }
.art-sheen:hover::after {
    opacity: 1;
    animation: art-sweep-x 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Kleinteile ───────────────────────────────────────────────────────── */
.art-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.6875rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b45309;
    background: var(--art-accent-soft);
    border: 1px solid rgba(245, 124, 0, 0.22);
    white-space: nowrap;
}
.dark .art-chip { color: #fbbf24; border-color: rgba(245, 124, 0, 0.3); }

.art-hairline {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--art-line-strong) 20%, var(--art-line-strong) 80%, transparent);
}

/* Diagonale Panzerungsschraffur — dieselbe Idee wie wotc-plate auf der
   Klanseite, hier nur als sehr leise Textur hinter Panels. */
.art-plate {
    background-image: repeating-linear-gradient(135deg,
        rgba(245, 124, 0, 0.055) 0 1px, transparent 1px 9px);
}
.art-dots {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 22px 22px;
}

/* ── Kopfzeilen-Icon (Panel-Marke) ────────────────────────────────────── */
.art-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    color: var(--art-accent);
    background: var(--art-accent-soft);
    border: 1px solid rgba(245, 124, 0, 0.22);
}
.art-badge::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(245, 124, 0, 0.22), transparent 70%);
    opacity: 0.55;
    pointer-events: none;
    filter: blur(6px);
}

/* ── Inhaltsverzeichnis ─────────────────────────────────────────────────
   ⚠️ Die Schiene liegt in einem WRAPPER um die <nav>, nicht in der <nav>
   selbst: die Liste darf `overflow-y: auto` tragen (lange Artikel), und ein
   absolut positioniertes Kind eines Scroll-Containers scrollt mit dem Inhalt
   weg. Deshalb .art-toc-list (Wrapper, position:relative) → .art-toc-rail +
   <nav>. Aus demselben Grund hat der Wrapper KEIN linkes Padding: Schiene
   (left:0) und der Marker der Links (::before, left:-1px) muessen auf
   derselben x-Achse sitzen. */
.art-toc-list { position: relative; }
/* Die Schiene links: eine graue Grundlinie, darueber der orange Fortschritt.
   Hoehe des Fortschritts kommt per :style aus Alpine (readProgress). */
.art-toc-rail {
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0;
    width: 2px;
    border-radius: 2px;
    background: var(--art-line-strong);
    overflow: hidden;
}
.art-toc-rail > span {
    display: block;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(180deg, var(--art-accent), var(--art-accent-2));
    box-shadow: 0 0 10px rgba(245, 124, 0, 0.5);
    transition: height 0.18s linear;
}

.art-toc-link {
    position: relative;
    display: block;
    padding: 0.3125rem 0 0.3125rem 0.9375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--art-ink-3);
    border-radius: 0 0.375rem 0.375rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
    /* Ueberschriften sind ungekuerzt im Verzeichnis. In einer 17rem breiten
       Spalte sprengt ein zusammengesetztes Wort ("Panzerungsdurchschlag")
       sonst die Karte nach rechts. */
    overflow-wrap: anywhere;
}
.art-toc-link--sub {
    padding-left: 1.875rem;
    font-size: 0.75rem;
    font-weight: 500;
}
/* Der Marker sitzt exakt auf der Schiene und waechst beim Aktivwerden. */
.art-toc-link::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0.75rem;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--art-line-strong);
    transform: translateX(-1px);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.art-toc-link:hover { color: var(--art-ink); transform: translateX(2px); }
.art-toc-link.is-active { color: var(--art-accent); font-weight: 800; }
.art-toc-link.is-active::before {
    background: var(--art-accent);
    box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.18);
    transform: translateX(-1px) scale(1.4);
}
.dark .art-toc-link.is-active { color: var(--art-accent-2); }
.dark .art-toc-link.is-active::before { background: var(--art-accent-2); }

/* Mobiles Aufklapp-Panel: dieselbe 0fr→1fr-Technik wie die FAQ unten. */
.art-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.art-collapse > div { overflow: hidden; min-height: 0; }
.is-open > .art-collapse { grid-template-rows: 1fr; }

/* ── Kennzahlen-Kacheln ───────────────────────────────────────────────── */
.art-stat {
    position: relative;
    overflow: hidden;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    background: var(--art-surface-2);
    border: 1px solid var(--art-line);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.art-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 124, 0, 0.3);
    box-shadow: 0 12px 26px -16px rgba(245, 124, 0, 0.5);
}
.art-stat-value {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--art-ink);
    font-variant-numeric: tabular-nums;
}
.art-stat-label {
    margin-top: 0.125rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--art-ink-3);
}

/* ── FAQ-Akkordeon ────────────────────────────────────────────────────── */
/* Antworten bleiben IMMER im DOM (nur optisch zusammengefaltet). Ein x-show
   wuerde sie fuer Crawler unsichtbar machen — genau der Text, den das
   FAQPage-Schema als Rich Result anbietet, muss sichtbar belegt sein. */
.art-faq-item {
    border: 1px solid var(--art-line);
    border-radius: 1rem;
    background: var(--art-surface-2);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.art-faq-item:hover { border-color: rgba(245, 124, 0, 0.3); }
.art-faq-item.is-open {
    border-color: rgba(245, 124, 0, 0.4);
    box-shadow: 0 14px 34px -22px rgba(245, 124, 0, 0.75);
}
.art-faq-q {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    width: 100%;
    padding: 1rem 1.125rem;
    text-align: left;
    font-weight: 800;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--art-ink);
    cursor: pointer;
}
.art-faq-q:hover { color: var(--art-accent); }
.art-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1); }
.art-faq-item.is-open .art-faq-a { grid-template-rows: 1fr; }
.art-faq-a > div { overflow: hidden; min-height: 0; }
.art-faq-a p {
    padding: 0 1.125rem 1.125rem 3.375rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--art-ink-2);
}
.art-faq-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: var(--art-accent-soft);
    border: 1px solid rgba(245, 124, 0, 0.22);
    color: var(--art-accent);
    font-size: 0.75rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.art-faq-caret { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease; }
.art-faq-item.is-open .art-faq-caret { transform: rotate(180deg); color: var(--art-accent); }

/* ── Ankerlinks an Ueberschriften ─────────────────────────────────────── */
.art-anchor {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    color: var(--art-accent);
    opacity: 0;
    transform: translateY(1px);
    transition: opacity 0.2s ease;
    vertical-align: middle;
}
.art-anchor svg { width: 0.9em; height: 0.9em; }
.article-content h2:hover > .art-anchor,
.article-content h3:hover > .art-anchor,
.art-anchor:focus-visible { opacity: 0.75; }
.art-anchor:hover { opacity: 1; }

/* ── Schwebende Aktion unten rechts (Lesefortschritt + nach oben) ─────── */
.art-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    color: var(--art-accent);
    background: var(--art-surface);
    border: 1px solid var(--art-line-strong);
    box-shadow: var(--art-shadow-lift);
    opacity: 0;
    transform: translateY(14px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}
.art-fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.art-fab:hover { background: var(--art-accent); color: #fff; }
.art-fab-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.art-fab-ring circle { transition: stroke-dashoffset 0.12s linear; }
@media (min-width: 640px) { .art-fab { right: 1.5rem; bottom: 1.5rem; } }

/* ── Weiterlesen-Karten ───────────────────────────────────────────────── */
.art-rel-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #111827);
}
.art-rel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover .art-rel-media img { transform: scale(1.06); }
/* Die Akzentlinie faehrt beim Hover von links ein — dieselbe Geste wie im
   Blog-Listing (card-accent-line), hier nur praefixiert. */
.art-rel-line {
    height: 2px;
    background: linear-gradient(90deg, var(--art-accent), var(--art-accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover .art-rel-line { transform: scaleX(1); }

/* ── Gestaffeltes Einblenden ──────────────────────────────────────────── */
.art-reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.art-reveal.is-visible { opacity: 1; transform: none; }

/* ── Animationen ──────────────────────────────────────────────────────────
   Alle Dauerschleifen haengen an `.art-run` (setzt article.php per JS auf
   <main>). Ohne JS steht die Grafik still, statt unsichtbar im Hintergrund
   zu laufen — dieselbe Konvention wie das Blog-Hero. */
@keyframes art-sweep-x   { from { left: -60%; } to { left: 130%; } }
@keyframes art-orbit     { to   { transform: rotate(360deg); } }
@keyframes art-orbit-rev { to   { transform: rotate(-360deg); } }
/* ⚠️ Die Prozente einer translateX-Animation beziehen sich auf die BREITE DES
   ELEMENTS, nicht auf die des Elternteils. Der Scanbalken ist ein Drittel so
   breit wie das Hero — er muss darum bis 340 % laufen (≈ 113 % der
   Elternbreite), damit er wirklich hinausfaehrt. Dieselbe Rechnung gilt fuer
   art-shine. */
@keyframes art-scan      { 0% { transform: translateX(-120%); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(320%); opacity: 0; } }
@keyframes art-drift     { 0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; } 50% { transform: translate(-16px, 12px) scale(1.06); opacity: 0.85; } }
@keyframes art-float     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes art-ping      { 0% { r: 6; opacity: 0.5; } 100% { r: 15; opacity: 0; } }
@keyframes art-blink     { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
/* Die Laenge der zu zeichnenden Linie steht als --d am Element (inline), NICHT
   als stroke-dashoffset-Attribut. Grund: ein Attribut waere der Ausgangs-
   zustand und bliebe stehen, wenn die Animation nie laeuft — ohne JS (kein
   .art-run) und unter prefers-reduced-motion waeren die Pfade dann dauerhaft
   unsichtbar. So ist der ENDzustand der Normalfall, und nur die Animation
   selbst holt den Ausgangszustand ueber var(--d) zurueck. */
@keyframes art-draw      { from { stroke-dashoffset: var(--d, 0); } to { stroke-dashoffset: 0; } }
@keyframes art-dash      { to   { stroke-dashoffset: -36; } }
@keyframes art-shine     { 0% { transform: translateX(-140%) skewX(-18deg); } 55%, 100% { transform: translateX(340%) skewX(-18deg); } }
@keyframes art-tread     { to   { stroke-dashoffset: -18; } }

/* transform-box: view-box ist bei rotierenden SVG-Kindern Pflicht — sonst
   bezieht sich transform-origin auf die Bounding-Box des Elements statt auf
   die viewBox-Koordinaten und die Rotation eiert aus der Mitte. */
.art-spin, .art-spin-rev, .art-tick { transform-box: view-box; }

.art-run .art-orbit      { animation: art-orbit 26s linear infinite;      transform-box: view-box; }
.art-run .art-orbit-rev  { animation: art-orbit-rev 34s linear infinite;  transform-box: view-box; }
.art-run .art-scan       { animation: art-scan 7.5s ease-in-out infinite; }
.art-run .art-drift      { animation: art-drift 14s ease-in-out infinite; }
.art-run .art-float      { animation: art-float 5.5s ease-in-out infinite; }
.art-run .art-ping       { animation: art-ping 3.2s ease-out infinite; }
.art-run .art-blink      { animation: art-blink 3.4s ease-in-out infinite; }
.art-run .art-dash       { animation: art-dash 2.6s linear infinite; }
.art-run .art-tread      { animation: art-tread 2.2s linear infinite; }
.art-run .art-shine      { animation: art-shine 5.5s ease-in-out infinite; }
.art-run .art-tick       { animation: art-orbit 8s steps(24, end) infinite; transform-origin: 12px 12px; }
.art-run .art-spin       { animation: art-orbit 18s linear infinite; }
.art-run .art-spin-rev   { animation: art-orbit-rev 22s linear infinite; }

/* Zeichnende Linien. `both` als fill-mode ist noetig, damit die verzoegerten
   Varianten waehrend der Wartezeit schon im Ausgangszustand stehen — sonst
   blitzen sie fertig auf und werden dann zurueckgesetzt. */
.art-draw, .art-draw-2, .art-draw-3 { stroke-dasharray: var(--d, none); }
.art-run .art-draw       { animation: art-draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.art-run .art-draw-2     { animation: art-draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
.art-run .art-draw-3     { animation: art-draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both; }

/* ── Typografie des Artikeltextes ─────────────────────────────────────── */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--art-ink-2);
    hanging-punctuation: first;
}
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin-bottom: 1.5rem; }

/* Der einleitende Absatz bekommt optisches Gewicht — klassischer Lead. */
.article-content > p:first-of-type { font-size: 1.125rem; color: var(--art-ink-2); }

.article-content h2 {
    position: relative;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.015em;
    color: var(--art-ink);
    margin-top: 3.25rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.65rem;
    line-height: 1.25;
    scroll-margin-top: 6rem;
    border-bottom: 1px solid var(--art-line-strong);
}
/* Kurzer oranger Strich unter der Ueberschrift, ueber der grauen Linie.
   Ersetzt den frueheren durchgehend orangen Text: eine H2 in Signalfarbe
   ueber jedem Abschnitt hat die Seite laut gemacht und den Kontrast im
   Light-Theme auf 2,9:1 gedrueckt (wgOrange als Textfarbe). */
.article-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 3.25rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--art-accent), var(--art-accent-2));
}
.article-content h3 {
    font-size: 1.3125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--art-ink);
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
    scroll-margin-top: 6rem;
}
.article-content h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--art-ink-2);
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.01em;
}

.article-content ul,
.article-content ol { padding-left: 1.55rem; margin-bottom: 1.5rem; }
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li { margin-bottom: 0.5rem; line-height: 1.75; }
.article-content li::marker { color: var(--art-accent); font-weight: 700; }

.article-content strong { font-weight: 800; color: var(--art-ink); }
.article-content em { font-style: italic; color: var(--art-ink-3); }

.article-content a {
    color: #c2410c;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    text-decoration-color: rgba(245, 124, 0, 0.35);
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.article-content a:hover { color: var(--art-accent); text-decoration-color: var(--art-accent); }
.dark .article-content a { color: #fdba74; }
.dark .article-content a:hover { color: var(--art-accent-2); }

.article-content blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem 1.25rem 3.25rem;
    background: linear-gradient(135deg, rgba(245, 124, 0, 0.07), rgba(251, 191, 36, 0.04));
    border: 1px solid rgba(245, 124, 0, 0.18);
    border-left: 3px solid var(--art-accent);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #92400e;
    font-size: 1.03em;
}
/* Anfuehrungszeichen als Ornament statt als Zeichen im Text — bleibt in
   jeder Sprache dasselbe Bild und stoert keinen Screenreader (::before
   erzeugt keinen Textknoten im Zugaenglichkeitsbaum moderner Browser). */
.article-content blockquote::before {
    content: '';
    position: absolute;
    left: 1.15rem;
    top: 1.1rem;
    width: 1.25rem;
    height: 1.25rem;
    background: currentColor;
    opacity: 0.35;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 5C6.5 6.6 4.6 9.4 4.6 13v6h6.6v-6.6H7.9c.1-2 1-3.5 2.8-4.6L9.5 5Zm9.4 0c-3 1.6-4.9 4.4-4.9 8v6h6.6v-6.6h-3.3c.1-2 1-3.5 2.8-4.6L18.9 5Z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 5C6.5 6.6 4.6 9.4 4.6 13v6h6.6v-6.6H7.9c.1-2 1-3.5 2.8-4.6L9.5 5Zm9.4 0c-3 1.6-4.9 4.4-4.9 8v6h6.6v-6.6h-3.3c.1-2 1-3.5 2.8-4.6L18.9 5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.dark .article-content blockquote {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.09), rgba(251, 191, 36, 0.04));
    border-color: rgba(245, 124, 0, 0.24);
    color: #fcd34d;
}

.article-content code {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(17, 24, 39, 0.05);
    color: #be123c;
    padding: 0.15em 0.45em;
    border-radius: 0.35rem;
    font-size: 0.875em;
    font-weight: 600;
    border: 1px solid var(--art-line);
}
.dark .article-content code { background: rgba(0, 0, 0, 0.35); color: #fda4af; }

.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.4rem 1.6rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
    border: 1px solid #1e293b;
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}
.article-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; border: 0; border-radius: 0; }

.article-content hr {
    border: none;
    height: 1px;
    margin: 3rem 0;
    background: linear-gradient(90deg, transparent, var(--art-line-strong), transparent);
}

.article-content figure { margin: 2rem 0; }
.article-content figcaption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--art-ink-3);
    font-weight: 600;
}
.article-content img {
    border-radius: 1rem;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--art-line);
    box-shadow: 0 18px 40px -26px rgba(16, 24, 40, 0.6);
}
.dark .article-content img { box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.9); }

/* Breite Tabellen scrollen in ihrem eigenen Container — die Seite selbst
   darf nie horizontal scrollen. Den Wrapper setzt article.php serverseitig
   per DOMDocument um jede <table> im Artikeltext. */
.art-table-wrap {
    margin: 2rem 0;
    overflow-x: auto;
    border-radius: 0.875rem;
    border: 1px solid var(--art-line);
    -webkit-overflow-scrolling: touch;
}
.art-table-wrap > table { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.article-content table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.article-content table th {
    background: var(--art-surface-2);
    font-weight: 800;
    text-align: left;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--art-line-strong);
    color: var(--art-ink-2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.article-content table td { padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--art-line); }
.article-content table tr:last-child td { border-bottom: 0; }
.article-content table tr:hover td { background: var(--art-accent-soft); }

/* ── Bewegungsempfindlichkeit ─────────────────────────────────────────────
   ⚠️ Pflichtabschluss jeder Animationsliste im Projekt. Und: der Block
   schaltet nicht nur ab, er stellt vorher den ENDzustand her — die
   Reveal-Elemente starten mit opacity:0, ein blosses `animation:none` liesse
   sie fuer immer unsichtbar. (Die art-draw-Pfade brauchen das nicht mehr: ihr
   Ausgangszustand steht seit der --d-Umstellung nur noch IN der Keyframe.) */
@media (prefers-reduced-motion: reduce) {
    .art-reveal { opacity: 1 !important; transform: none !important; }
    .art-scope *,
    .art-scope *::before,
    .art-scope *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
