/* CSS von tmp/page_wiki.php — ausgelagert aus dem Inline-<style>-Block.
 * Eingebunden ueber $pageCss in tmp/header.php. */

/* ═══════════════════════════════════════════════════════════════
   Wiki — Dark Luxury Enterprise (.wk-*)
   passend zu FAQ / News / Impressum — gleiche Palette & Hierarchie
═══════════════════════════════════════════════════════════════ */
[x-cloak] { display: none !important; }

/* ── Animated background ─────────────────────────────────────── */
.wk-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    overflow: hidden;
}
.wk-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(201,168,76,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,.028) 1px, transparent 1px);
    background-size: 62px 62px;
    animation: wkGridShift 30s linear infinite;
}
@keyframes wkGridShift {
    from { background-position: 0 0; }
    to   { background-position: 62px 62px; }
}
.wk-bg-grain {
    position: absolute; inset: 0; opacity: .019;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='380' height='380' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wk-bg-orb-a {
    position: absolute; top: -18%; left: -12%;
    width: 820px; height: 820px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.045) 0%, transparent 65%);
    animation: wkOrbA 24s ease-in-out infinite alternate;
}
.wk-bg-orb-b {
    position: absolute; bottom: -22%; right: -10%;
    width: 720px; height: 720px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.026) 0%, transparent 65%);
    animation: wkOrbB 32s ease-in-out infinite alternate;
}
@keyframes wkOrbA {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(70px, 45px) scale(1.14); }
}
@keyframes wkOrbB {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-45px, -65px) scale(1.1); }
}
.wk-bg-rays {
    position: absolute; inset: -40%;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 6deg,
        rgba(201,168,76,.012) 6deg 7.2deg
    );
    animation: wkRays 90s linear infinite;
    opacity: .5;
}
@keyframes wkRays {
    to { transform: rotate(360deg); }
}

/* ── Outer shell ─────────────────────────────────────────────── */
.wk-shell {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto;
    padding: 2.4rem 1.5rem 7rem;
}

/* ── Icon-Regel ──────────────────────────────────────────────── */
/* Einheitliche Strichstärke, Binnenzeichnung halb + gedimmt — identisch zu
   .ac-ico / .al-ico. Die Zeichnungen liefert inc/WikiIcons.php; wer die
   Strichstärke hier ändert, ändert sie für Pille, Suchfeld und Siegel
   gemeinsam. */
.wk-ico {
    width: 18px; height: 18px; flex-shrink: 0;
    fill: none; stroke: currentColor;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.wk-ico .ic-d { stroke-width: .85; opacity: .48; }

/* ── Hero ────────────────────────────────────────────────────── */
.wk-hero {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 3.25rem;
    animation: wkFadeUp .9s cubic-bezier(.22,1,.36,1) both;
}
@keyframes wkFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.wk-hero-text { text-align: center; order: 2; min-width: 0; }
.wk-hero-visual { order: 1; margin-bottom: 1.2rem; }

/* Wasserzeichen: „Archiv“ als geschnittene Prägung im Rücken des Kopfes */
.wk-watermark {
    position: absolute; top: 1.4rem; right: 1rem; z-index: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(4rem, 11vw, 8rem); font-weight: 300; line-height: 1;
    font-style: italic; letter-spacing: .14em; text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 1px rgba(201,168,76,.05);
    user-select: none; pointer-events: none;
}

@media (min-width: 960px) {
    .wk-hero {
        flex-direction: row; align-items: center; justify-content: center;
        gap: 4rem; text-align: left;
    }
    .wk-hero-text { order: 1; text-align: left; flex: 1; min-width: 0; }
    .wk-hero-visual {
        order: 2; flex-shrink: 0; margin-bottom: 0;
        opacity: 0; transform: scale(.9) translateX(18px);
        animation: wkHeroReveal 1.1s cubic-bezier(.22,1,.36,1) .35s forwards,
                   wkGlowPulse 2.6s cubic-bezier(.22,1,.36,1) .35s forwards;
    }
    .wk-hero-text .wk-kicker { justify-content: flex-start; }
    .wk-hero-text .wk-hero-pills { justify-content: flex-start; }
    .wk-hero-text .wk-search { margin: 1.9rem 0 0; }
    .wk-hero-text .wk-ornament { justify-content: flex-start; }
}
@keyframes wkHeroReveal { to { opacity: 1; transform: scale(1) translateX(0); } }
@keyframes wkGlowPulse {
    0%   { filter: drop-shadow(0 0 0 transparent); }
    30%  { filter: drop-shadow(0 0 32px rgba(201,168,76,.45)); }
    70%  { filter: drop-shadow(0 0 18px rgba(201,168,76,.25)); }
    100% { filter: drop-shadow(0 0 14px rgba(201,168,76,.18)); }
}

.wk-kicker {
    display: inline-flex; align-items: center; gap: .7rem;
    font-family: system-ui, sans-serif;
    font-size: .58rem; letter-spacing: .32em; text-transform: uppercase;
    color: rgba(232,205,128,.8); margin-bottom: 1.5rem;
}
.wk-kicker-line {
    width: 30px; height: 1px; flex-shrink: 0;
    background: linear-gradient(to right, transparent, rgba(201,168,76,.4));
}
.wk-kicker-line.rev {
    background: linear-gradient(to left, transparent, rgba(201,168,76,.4));
}
.wk-kicker-star {
    flex-shrink: 0; color: rgba(201,168,76,.55);
    animation: wkSpin 14s linear infinite;
}
.wk-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.9rem, 6.5vw, 5.2rem);
    font-weight: 300; letter-spacing: .1em;
    color: #f0e6d0; line-height: 1; margin-bottom: 1rem;
}
.wk-title em {
    font-style: italic; color: #c9a84c;
    text-shadow: 0 0 38px rgba(201,168,76,.22);
}
.wk-subtitle {
    font-family: system-ui, sans-serif;
    font-size: .8rem; color: #8a8170;
    letter-spacing: .04em; line-height: 1.7; max-width: 560px;
}

/* ── Hero-Kennzahlen ─────────────────────────────────────────── */
.wk-hero-pills {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .45rem; margin-top: 1.35rem;
}
.wk-hero-pill {
    display: inline-flex; align-items: center; gap: .42rem;
    padding: .4rem .85rem;
    border: 1px solid rgba(201,168,76,.14); border-radius: 999px;
    background: rgba(14,10,5,.5);
    font-family: system-ui, sans-serif;
    font-size: .56rem; letter-spacing: .08em; text-transform: uppercase;
    color: #8a8170;
    transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.wk-hero-pill:hover {
    border-color: rgba(232,205,128,.45);
    background: rgba(201,168,76,.06);
    color: #a39c8e;
    transform: translateY(-1px);
}
.wk-hero-pill .wk-ico { width: 14px; height: 14px; color: rgba(201,168,76,.8); }
.wk-hero-pill b {
    color: #e8dcc8; font-weight: 600; font-size: .62rem; letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}

/* ── Hero-Ornament ───────────────────────────────────────────── */
.wk-ornament {
    display: flex; align-items: center; justify-content: center;
    gap: .8rem; margin-top: 1.6rem;
}
.wk-ornament-line {
    width: 70px; height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,.28));
}
.wk-ornament-line.rev {
    background: linear-gradient(to left, transparent, rgba(201,168,76,.28));
}
.wk-ornament-star { color: rgba(201,168,76,.34); animation: wkSpin 12s linear infinite; }

/* ── Hero emblem (animiertes SVG) ────────────────────────────── */
/* Astrolabium um Buch, Federkiel und Siegel. Die Ringe und der Skalenkranz
   rotieren langsam, die Orbitknoten wandern, die Zentralzeichnung zeichnet
   sich auf (pathLength=1 + stroke-dasharray). */
.wk-emblem {
    position: relative;
    width: 210px; height: 210px;
    filter: drop-shadow(0 0 26px rgba(201,168,76,.13));
    animation: wkEmblemFloat 7s ease-in-out infinite;
}
@media (min-width: 960px) { .wk-emblem { width: 260px; height: 260px; } }
.wk-emblem-svg { width: 100%; height: 100%; overflow: visible; color: rgba(232,205,128,.85); }
@keyframes wkEmblemFloat { 50% { transform: translateY(-7px); } }

.wk-emblem-halo { transform-origin: 120px 120px; animation: wkHalo 4.6s ease-in-out infinite; }
@keyframes wkHalo { 50% { opacity: .5; transform: scale(.96); } }

.wk-ring-a, .wk-ring-b { transform-origin: 120px 120px; animation: wkSpin 26s linear infinite; }
.wk-ring-b { animation-direction: reverse; animation-duration: 19s; }

.wk-emblem-ticks { transform-origin: 120px 120px; animation: wkSpin 70s linear infinite; }
.wk-emblem-ticks line { stroke: rgba(201,168,76,.22); stroke-width: .7; }
.wk-emblem-ticks line.major { stroke: rgba(201,168,76,.45); stroke-width: 1; }

.wk-orbit { transform-origin: 120px 120px; }
.wk-orbit-a { transform: rotate(-24deg); }
.wk-orbit-b { transform: rotate(24deg); }
.wk-orbit-line { fill: none; stroke: rgba(201,168,76,.13); stroke-width: .8; }
.wk-orbit-node {
    fill: #efd98d;
    offset-path: path("M36 120a84 30 0 1 0 168 0a84 30 0 1 0-168 0");
    offset-rotate: 0deg; offset-distance: 12%;
    filter: drop-shadow(0 0 4px rgba(239,217,141,.7));
    animation: wkOrbit 18s linear infinite;
}
.wk-orbit-b .wk-orbit-node { animation-duration: 24s; animation-direction: reverse; offset-distance: 58%; }
@keyframes wkOrbit { to { offset-distance: 112%; } }
@supports not (offset-path: path("M0 0h1")) {
    .wk-orbit-node { offset-distance: 0; }
    .wk-orbit-a .wk-orbit-node { animation: wkSparkRun 3.6s ease-in-out infinite; }
    .wk-orbit-b .wk-orbit-node { animation: wkSparkRun 3.6s ease-in-out 1.8s infinite; }
}

.wk-emblem-draw {
    stroke: rgba(201,168,76,.6); stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: wkDraw 2.6s cubic-bezier(.6,.04,.34,1) .3s forwards;
}
@keyframes wkDraw { to { stroke-dashoffset: 0; } }
.wk-emblem-detail {
    opacity: 0;
    stroke: rgba(201,168,76,.5); stroke-width: 1.1;
    stroke-linecap: round; stroke-linejoin: round;
    animation: wkFadeIn 1s ease 1.1s forwards;
}
@keyframes wkFadeIn { to { opacity: 1; } }

.wk-emblem-star {
    fill: rgba(232,205,128,.9);
    transform-origin: center; transform-box: fill-box;
    animation: wkSparkRun 4.4s ease-in-out infinite;
}
.wk-emblem-sheen { opacity: 0; animation: wkSheen 5.5s ease-in-out infinite; }
.wk-emblem-spark {
    opacity: 0;
    transform-origin: center; transform-box: fill-box;
    animation: wkSparkRun 3.2s ease-in-out infinite;
}
.wk-emblem-spark:nth-of-type(2n) { animation-delay: .8s; }
.wk-emblem-spark:nth-of-type(3n) { animation-delay: 1.6s; }
@keyframes wkSheen { 0%, 100% { opacity: 0; } 45%, 70% { opacity: 1; } }
@keyframes wkSparkRun {
    0%, 100% { opacity: 0; transform: scale(.6); }
    40%, 70% { opacity: 1; transform: scale(1); }
}
@keyframes wkSpin { to { transform: rotate(360deg); } }

/* Siegel am Fuß des Emblems — Marke mit Eintragszahl.
   Zentriert über left/right + margin:auto, NICHT über translateX(-50%):
   Die Einblend-Animation animiert `transform` und würde eine Verschiebung per
   transform während und nach dem Lauf überschreiben (das Siegel saß dadurch
   um seine halbe Breite nach rechts versetzt). */
.wk-emblem-sigil {
    position: absolute; left: 0; right: 0; bottom: -8px;
    width: fit-content; margin: 0 auto;
    display: flex; align-items: center; gap: .42rem;
    padding: .42rem .8rem .42rem .6rem;
    background: rgba(12,9,4,.92);
    border: 1px solid rgba(201,168,76,.25); border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0,0,0,.5);
    animation: wkFadeUp .7s cubic-bezier(.22,1,.36,1) 1.2s both;
}
.wk-sigil-ico { display: grid; place-items: center; color: rgba(232,205,128,.85); }
.wk-sigil-ico .wk-ico { width: 14px; height: 14px; }
.wk-sigil-name {
    font-family: system-ui, sans-serif;
    font-size: .5rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(232,205,128,.78);
}

/* ── Search ──────────────────────────────────────────────────── */
.wk-search {
    max-width: 560px; margin: 1.9rem auto 0;
    animation: wkFadeUp .8s .15s cubic-bezier(.22,1,.36,1) both;
}
.wk-search-label {
    display: inline-flex; align-items: center; gap: .42rem;
    font-family: system-ui, sans-serif;
    font-size: .52rem; letter-spacing: .24em; text-transform: uppercase;
    color: rgba(232,205,128,.62);
    margin-bottom: .55rem;
}
.wk-search-label .wk-ico { width: 13px; height: 13px; color: rgba(201,168,76,.7); }
.wk-search-box { position: relative; }
.wk-search-input {
    width: 100%;
    background: rgba(14,10,5,.72);
    border: 1px solid rgba(201,168,76,.14);
    border-radius: 50px;
    padding: .85rem 3.4rem .85rem 3.1rem;
    font-family: system-ui, sans-serif;
    font-size: .72rem; color: #f0e6d0;
    letter-spacing: .03em;
    outline: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.wk-search-input::placeholder { color: #8a8170; }
.wk-search-input:focus {
    border-color: rgba(232,205,128,.75);
    box-shadow: 0 0 0 3px rgba(201,168,76,.08), 0 0 30px rgba(201,168,76,.06);
    background: rgba(16,11,6,.85);
}
.wk-search.is-active .wk-search-input { border-color: rgba(232,205,128,.45); }
.wk-search-ico {
    position: absolute; left: 1.15rem; top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    color: rgba(232,205,128,.72);
    pointer-events: none;
    transition: color .25s, filter .25s;
}
.wk-search-box:focus-within .wk-search-ico {
    color: #efd98d;
    filter: drop-shadow(0 0 6px rgba(232,205,128,.5));
}
.wk-search-kbd {
    position: absolute; right: .8rem; top: 50%;
    transform: translateY(-50%);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .6rem; line-height: 1;
    color: #8a8170;
    border: 1px solid rgba(201,168,76,.18);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: .28rem .42rem;
    background: rgba(201,168,76,.04);
    pointer-events: none;
}
.wk-search-clear {
    position: absolute; right: .6rem; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,168,76,.08);
    border: 1px solid rgba(201,168,76,.18);
    color: #a39c8e; cursor: pointer;
    font-size: .85rem; line-height: 1;
    transition: color .18s, border-color .18s, background .18s;
}
.wk-search-clear:hover { color: #f0e6d0; border-color: rgba(232,205,128,.75); background: rgba(201,168,76,.14); }

/* ── Layout ──────────────────────────────────────────────────── */
.wk-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
}
@media (min-width: 940px) {
    .wk-layout { grid-template-columns: 230px 1fr; gap: 4rem; }
}

/* ── Sidebar nav ─────────────────────────────────────────────── */
.wk-nav { display: none; }
@media (min-width: 940px) {
    .wk-nav {
        display: block;
        position: sticky; top: 5rem;
        align-self: start;
    }
}
.wk-nav-label {
    font-family: system-ui, sans-serif;
    font-size: .5rem; letter-spacing: .28em; text-transform: uppercase;
    color: rgba(232,205,128,.75); margin-bottom: 1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid rgba(201,168,76,.06);
}
.wk-nav-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .52rem 0;
    font-family: system-ui, sans-serif;
    font-size: .63rem; letter-spacing: .03em;
    color: #8a8170; text-decoration: none;
    border-left: 1px solid transparent;
    padding-left: .8rem; margin-left: -.8rem;
    transition: color .18s, border-color .18s;
}
.wk-nav-item svg { width: 12px; height: 12px; flex-shrink: 0; }
.wk-nav-item:hover { color: rgba(232,205,128,.72); }
.wk-nav-item.active {
    color: rgba(232,205,128,.85);
    border-left-color: rgba(201,168,76,.35);
}

/* ── Content ─────────────────────────────────────────────────── */
.wk-content { min-width: 0; }

/* ── Section ─────────────────────────────────────────────────── */
.wk-section { margin-bottom: 4.5rem; scroll-margin-top: 6rem; }
.wk-section:last-child { margin-bottom: 0; }
.wk-section-hdr {
    display: flex; align-items: center; gap: 1.1rem;
    margin-bottom: 1.9rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid rgba(201,168,76,.08);
}
.wk-section-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(232,205,128,.8);
    position: relative;
}
.wk-section-icon::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(201,168,76,.09) 0%, transparent 70%);
}
.wk-section-icon svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.wk-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.7rem; font-weight: 400; letter-spacing: .05em;
    color: #e8dcc8; line-height: 1.1; margin: 0;
}
.wk-section-sub {
    font-family: system-ui, sans-serif;
    font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(232,205,128,.75); margin-top: .18rem;
}

/* ── Article card ────────────────────────────────────────────── */
.wk-card {
    position: relative;
    background: rgba(14,10,5,.6);
    border: 1px solid rgba(201,168,76,.08);
    border-left: 3px solid rgba(201,168,76,.3);
    border-radius: 0 10px 10px 0;
    padding: 1.7rem 1.8rem 1.75rem;
    margin-bottom: 1.35rem;
    transition: border-color .25s, background .25s, transform .25s, box-shadow .3s;
    animation: wkFadeUp .65s cubic-bezier(.22,1,.36,1) both;
}
.wk-card:hover {
    background: rgba(18,13,7,.85);
    border-left-color: rgba(232,205,128,.6);
    border-color: rgba(201,168,76,.14);
    transform: translateY(-2px);
    box-shadow: 0 10px 44px -12px rgba(0,0,0,.55), -3px 0 20px -8px rgba(201,168,76,.14);
}
.wk-card-title {
    display: flex; align-items: center; gap: .75rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.28rem; font-weight: 500; letter-spacing: .04em;
    color: #f0e6d0; margin-bottom: .7rem;
}
.wk-card-title svg {
    width: 21px; height: 21px; flex-shrink: 0;
    color: rgba(232,205,128,.8);
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.wk-card:hover .wk-card-title svg { transform: scale(1.12) rotate(-4deg); }
.wk-card p {
    font-family: system-ui, sans-serif;
    font-size: .74rem; color: #9a9180;
    line-height: 1.8; margin-bottom: .6rem;
}
.wk-card p:last-child { margin-bottom: 0; }
.wk-card strong { color: #e8dcc8; font-weight: 600; }
.wk-card ul {
    margin: .5rem 0 .6rem 0;
    display: flex; flex-direction: column; gap: .35rem;
}
.wk-card li {
    font-family: system-ui, sans-serif;
    font-size: .72rem; color: #9a9180;
    line-height: 1.65; list-style: none;
    padding-left: 1.1rem; position: relative;
}
.wk-card li::before {
    content: ''; position: absolute; left: 0; top: .62em;
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(232,205,128,.66);
    box-shadow: 0 0 6px rgba(201,168,76,.3);
}
.wk-card a.wk-inline-link {
    color: #c9a84c; text-decoration: none;
    border-bottom: 1px solid rgba(201,168,76,.3);
    transition: color .18s, border-color .18s;
}
.wk-card a.wk-inline-link:hover { color: #e8c876; border-color: rgba(232,200,118,.6); }
.wk-card-note {
    font-family: system-ui, sans-serif;
    font-size: .62rem; color: #8a8170; font-style: italic;
    margin-top: .9rem; line-height: 1.6;
}

/* ── Stat strip inside cards ─────────────────────────────────── */
.wk-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .7rem; margin-top: 1.1rem;
}
.wk-stat {
    background: rgba(201,168,76,.03);
    border: 1px solid rgba(201,168,76,.1);
    border-radius: 8px;
    padding: .75rem .8rem;
    transition: border-color .22s, background .22s;
}
.wk-card:hover .wk-stat { border-color: rgba(201,168,76,.16); }
.wk-stat-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem; font-weight: 400; letter-spacing: .03em;
    color: #f0e6d0; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.wk-stat-label {
    font-family: system-ui, sans-serif;
    font-size: .48rem; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(232,205,128,.66); margin-top: .3rem;
}

/* ── Data table ──────────────────────────────────────────────── */
.wk-table-wrap { overflow-x: auto; margin-top: 1.2rem; border-radius: 8px; }
.wk-table {
    width: 100%; border-collapse: collapse;
    font-family: system-ui, sans-serif; font-size: .68rem;
    background: rgba(10,8,4,.35);
}
.wk-table th {
    text-align: left; font-weight: 600;
    font-size: .5rem; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(232,205,128,.72);
    padding: .7rem .9rem;
    border-bottom: 1px solid rgba(201,168,76,.16);
    white-space: nowrap;
    background: rgba(201,168,76,.035);
}
.wk-table td {
    padding: .68rem .9rem;
    color: #a39c8e;
    border-bottom: 1px solid rgba(201,168,76,.05);
    vertical-align: middle;
    white-space: nowrap;
}
.wk-table tr:hover td { background: rgba(201,168,76,.03); }
.wk-table td strong { color: #e8dcc8; font-weight: 600; }
.wk-table td.num, .wk-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Tip callout ─────────────────────────────────────────────── */
.wk-tip {
    display: flex; gap: .9rem;
    background: rgba(232,205,128,.045);
    border: 1px solid rgba(232,205,128,.18);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-top: 1.2rem;
    align-items: flex-start;
}
.wk-tip svg {
    width: 18px; height: 18px; flex-shrink: 0;
    color: rgba(232,205,128,.85);
    margin-top: .1rem;
    animation: wkPulse 3s ease-in-out infinite;
}
@keyframes wkPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .7; transform: scale(.92); }
}
.wk-tip strong {
    display: block;
    font-family: system-ui, sans-serif;
    font-size: .55rem; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(232,205,128,.8); margin-bottom: .35rem;
}
.wk-tip p {
    font-family: system-ui, sans-serif;
    font-size: .7rem; color: #a39c8e; line-height: 1.7;
    margin: 0;
}

/* ── Faction / resource chips ────────────────────────────────── */
.wk-chips {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-top: 1.15rem;
}
.wk-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: system-ui, sans-serif;
    font-size: .54rem; letter-spacing: .12em; text-transform: uppercase;
    color: #a39c8e;
    border: 1px solid rgba(201,168,76,.16);
    border-radius: 50px;
    padding: .3rem .7rem;
    background: rgba(201,168,76,.03);
    transition: border-color .2s, color .2s, background .2s;
}
.wk-chip:hover { color: rgba(232,205,128,.85); border-color: rgba(232,205,128,.75); background: rgba(201,168,76,.07); }
.wk-chip svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ── Einheiten-Katalog: Fraktions-Filter ─────────────────────── */
.wk-faction-filter {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-top: 1.25rem;
}
.wk-faction-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: system-ui, sans-serif;
    font-size: .56rem; letter-spacing: .14em; text-transform: uppercase;
    color: #a39c8e;
    background: rgba(201,168,76,.03);
    border: 1px solid rgba(201,168,76,.16);
    border-radius: 50px;
    padding: .42rem .85rem;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s, transform .2s, box-shadow .2s;
}
.wk-faction-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.wk-faction-chip:hover {
    color: rgba(232,205,128,.9);
    border-color: rgba(232,205,128,.75);
    background: rgba(201,168,76,.08);
    transform: translateY(-1px);
}
.wk-faction-chip.active {
    color: #1d1a14;
    background: linear-gradient(135deg, #e8cd80, #c9a84c);
    border-color: rgba(232,205,128,.65);
    box-shadow: 0 4px 16px rgba(201,168,76,.25);
}

/* ── Einheiten-Katalog: Karten-Grid ──────────────────────────── */
.wk-unit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}
.wk-unit-card {
    position: relative;
    display: flex; flex-direction: column;
    background: linear-gradient(165deg, rgba(28,26,22,.92), rgba(20,19,16,.96));
    border: 1px solid rgba(201,168,76,.14);
    border-radius: 12px;
    padding: 1.1rem 1.15rem 1rem;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.wk-unit-card:hover {
    border-color: rgba(232,205,128,.75);
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(201,168,76,.08);
}
.wk-unit-top {
    display: flex; align-items: center; gap: .7rem;
    margin-bottom: .7rem;
}
/* ── Relief-Kopfbild der Katalogkarte ────────────────────────
   Basis (Nische, Maske, Auslauf) steht in app.css unter .cat-art — hier
   steht nur, was die Wiki-Karte davon abweichend braucht: der Zuschnitt und
   die randlose Einpassung.

   Randlos heisst: die Figur hebt die Kartenpolsterung (1.1rem / 1.15rem)
   per negativer Aussenkante wieder auf und uebernimmt oben den Karten-
   radius abzueglich der 1px-Kontur. Wer die Polsterung der Karte aendert,
   muss diese drei Werte mitziehen.

   1:1 statt Banner: die Motive sind runde Medaillons, deren Rand die
   Fraktion traegt (Maeander, Flechtwerk, Eisenbeschlaege). Ein Bannerformat
   schneidet genau diesen Rand ab — nachgerechnet in app.css bei .cat-art.
   Die Karte ist ~270 px breit, das Bild also ~270 px hoch; nach unten laeuft
   es ueber .cat-art::after in die Kartenflaeche aus, es entsteht keine
   zweite Kante. */
/* Wie im Modal: die Karte nimmt oben ihre Polsterung weg, statt sie mit
   einer Negativ-Marge am Bild aufzuheben. */
.wk-unit-card-art { padding-top: 0; }
.wk-unit-card-art .cat-art {
    aspect-ratio: 1 / 1;
    /* Deckel fuer die einspaltige Darstellung: unterhalb von ~570 px Container
       faellt das Grid auf eine Spalte, die Karte wird dann so breit wie der
       Inhaltsbereich — ohne Deckel waere die Scheibe auf einem kleinen Tablet
       ueber 500 px hoch.

       Der Deckel muss an BEIDEN Stellen sitzen: am Rahmen (max-height) und an
       der Scheibe (max-width unten). Die Scheibe wird ueber die Breite
       bemessen (--cat-art-disc in app.css) und wuesste von einer gedeckelten
       Rahmenhoehe sonst nichts — sie liefe unten aus dem Rahmen heraus, also
       genau in den Fehler, der im Modal behoben wurde. 363 px sind die 108 %
       von 336 px. */
    max-height: 336px;
    margin: 0 -1.15rem 0;
    border-radius: 11px 11px 0 0;
    --cat-art-fade: rgb(26 24 20);
}
.wk-unit-card-art .cat-art-img { max-width: 363px; }
.wk-unit-card-art:hover .cat-art-img { filter: brightness(1.09) saturate(1.06); }
/* Das Emblem-Medaillon rueckt in den ausgelaufenen Fuss des Bildes hinein —
   Marke vor Buehne, ohne dass ein zweiter Kasten entsteht. */
.wk-unit-card-art .wk-unit-top {
    position: relative; z-index: 1;
    margin-top: -1.2rem;
}

/* Emblem-Medaillon. --cc kommt je Karte aus page_wiki.php (Fraktionston,
   identisch mit dem Badge daneben) und faerbt Rahmenschimmer + Akzentebene
   des Emblems; die Silhouette bleibt gold. Kein rotate() im Hover mehr: die
   Embleme sind seit inc/UnitIcons.php echte Gegenstaende — eine gekippte
   Waage oder Streitaxt liest sich als Zeichenfehler, nicht als Animation. */
.wk-unit-emblem {
    width: 44px; height: 44px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 11px;
    background:
        radial-gradient(circle at 30% 24%, rgba(232,205,128,.16), rgba(201,168,76,.03) 65%),
        linear-gradient(158deg, rgba(30,24,13,.75), rgba(14,11,6,.85));
    border: 1px solid rgba(201,168,76,.22);
    box-shadow: inset 0 1px 0 rgba(232,205,128,.09);
    color: rgba(232,205,128,.92);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.wk-unit-card:hover .wk-unit-emblem {
    transform: scale(1.06);
    border-color: rgba(232,205,128,.75);
    box-shadow:
        inset 0 1px 0 rgba(232,205,128,.14),
        0 0 20px -6px var(--cc, rgba(201,168,76,.7));
}
.wk-unit-emblem svg { width: 26px; height: 26px; }
.wk-unit-head { flex: 1; min-width: 0; }
.wk-unit-name {
    font-size: .82rem; font-weight: 600; color: #efe7d6;
    margin: 0; line-height: 1.25;
}
.wk-unit-faction {
    display: inline-block;
    font-family: system-ui, sans-serif;
    font-size: .48rem; letter-spacing: .16em; text-transform: uppercase;
    padding: .14rem .5rem;
    border-radius: 4px;
    margin-top: .25rem;
}
/* Fraktionstöne = projektweiter Kanon (Gold / Terrakotta / Grün), identisch
   mit CatalogAction::FACTIONS. Hier standen bis 26.08.2026 eigene Werte, bei
   denen ausgerechnet die RÖMER rosé waren und Gallien blau — die Zuordnung war
   gegenüber dem Rest des Spiels verschoben. Teutonen tragen #d18165 statt des
   Kanon-#c96a4a: gleicher Farbton, heller, weil #c96a4a bei dieser Schriftgrösse
   nur 4,42:1 erreicht. Begründung ausführlich in CatalogAction::FACTIONS. */
.wk-faction-roman  { color: #c9a84c; background: rgba(201,168,76,.1);   border: 1px solid rgba(201,168,76,.24);  }
.wk-faction-teuton { color: #d18165; background: rgba(209,129,101,.1);  border: 1px solid rgba(209,129,101,.24); }
.wk-faction-gaul   { color: #6da268; background: rgba(109,162,104,.12); border: 1px solid rgba(109,162,104,.26); }
.wk-faction-all    { color: #cdc4b2; background: rgba(205,196,178,.08); border: 1px solid rgba(205,196,178,.2);  }
.wk-unit-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    font-family: system-ui, sans-serif;
    font-size: .46rem; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(232,205,128,.85);
    border: 1px solid rgba(232,205,128,.28);
    border-radius: 50px;
    padding: .18rem .5rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.wk-unit-badge svg { width: 9px; height: 9px; }
.wk-unit-desc {
    font-size: .68rem; line-height: 1.65; color: #a39c8e;
    margin: 0 0 .85rem;
}
.wk-unit-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
    padding: .65rem .55rem;
    background: rgba(201,168,76,.035);
    border: 1px solid rgba(201,168,76,.1);
    border-radius: 8px;
    margin-bottom: .8rem;
}
.wk-unit-stat {
    display: flex; flex-direction: column; align-items: center; gap: .18rem;
    text-align: center;
}
.wk-unit-stat-ico { display: inline-flex; }
.wk-unit-stat-ico svg { width: 13px; height: 13px; }
.wk-unit-stat-ico.atk { color: #e09a7a; }
.wk-unit-stat-ico.def { color: #7fb3d9; }
.wk-unit-stat-ico.spd { color: #d9c97f; }
.wk-unit-stat-ico.car { color: #a9c4a0; }
.wk-unit-stat-val {
    font-size: .8rem; font-weight: 600; color: #efe7d6;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.wk-unit-stat-lbl {
    font-family: system-ui, sans-serif;
    font-size: .42rem; letter-spacing: .1em; text-transform: uppercase;
    color: #8a8378;
}
.wk-unit-cost {
    display: flex; flex-direction: column; gap: .4rem;
    margin-bottom: .7rem;
}
.wk-unit-cost-lbl {
    font-family: system-ui, sans-serif;
    font-size: .46rem; letter-spacing: .14em; text-transform: uppercase;
    color: #8a8378;
}
.wk-unit-res { display: flex; gap: .55rem; flex-wrap: wrap; }
.wk-unit-res span {
    display: inline-flex; align-items: center; gap: .3rem;
    font-family: system-ui, sans-serif;
    font-size: .58rem; color: #c9c1b2;
    font-variant-numeric: tabular-nums;
}
.wk-res-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.wk-res-dot.wood  { background: #8a6a3f; box-shadow: 0 0 6px rgba(138,106,63,.6); }
.wk-res-dot.clay  { background: #a0543c; box-shadow: 0 0 6px rgba(160,84,60,.6);  }
.wk-res-dot.iron  { background: #8d95a3; box-shadow: 0 0 6px rgba(141,149,163,.6); }
.wk-res-dot.grain { background: #c9a84c; box-shadow: 0 0 6px rgba(201,168,76,.6);  }
.wk-unit-foot {
    margin-top: auto;
    display: flex; justify-content: flex-end;
    border-top: 1px solid rgba(201,168,76,.08);
    padding-top: .55rem;
}
.wk-unit-train {
    display: inline-flex; align-items: center; gap: .35rem;
    font-family: system-ui, sans-serif;
    font-size: .52rem; letter-spacing: .08em; text-transform: uppercase;
    color: #a39c8e;
}
.wk-unit-train svg { width: 11px; height: 11px; color: rgba(232,205,128,.75); }

/* ── Gebäude-Kompendium: Detailkarten ────────────────────────── */
.wk-bld-emblem svg { width: 22px; height: 22px; }
/* Die Binnenzeichnung steht in app.css bei .ei-bld-ico — eine Regel fuer
   alle vier Einbauorte statt einer je Seite. */
.wk-bld-card .wk-unit-desc { min-height: 4.3em; }
.wk-bld-effects { margin: .8rem 0 .2rem; padding-top: .65rem; border-top: 1px solid rgba(200,170,90,.18); }
.wk-bld-effects ul { margin: .35rem 0 0; padding-left: 1.1rem; color: rgba(220,210,190,.8); font-size: .78rem; line-height: 1.5; }
.wk-bld-effects li::marker { color: #c9a84c; }
.wk-bld-cat-resource,       .wk-bld-cat-military,       .wk-bld-cat-infrastructure {
    font-family: system-ui, sans-serif;
    font-size: .48rem; letter-spacing: .16em; text-transform: uppercase;
    padding: .14rem .5rem;
    border-radius: 4px;
    margin-top: .25rem;
    display: inline-block;
}
.wk-bld-cat-resource       { color: #a9c4a0; background: rgba(169,196,160,.1);  border: 1px solid rgba(169,196,160,.22); }
.wk-bld-cat-military       { color: #e0b3a0; background: rgba(224,179,160,.1);  border: 1px solid rgba(224,179,160,.22); }
.wk-bld-cat-infrastructure { color: #a8c1d9; background: rgba(168,193,217,.1);  border: 1px solid rgba(168,193,217,.22); }
.wk-bld-stats { grid-template-columns: repeat(4, 1fr); }
.wk-bld-stats .wk-unit-stat-val { font-size: .72rem; }

/* ── Progress / level bar ────────────────────────────────────── */
.wk-bar { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.wk-bar-row {
    display: grid; grid-template-columns: 110px 1fr 46px;
    gap: .8rem; align-items: center;
    font-family: system-ui, sans-serif; font-size: .62rem;
}
.wk-bar-name { color: #a39c8e; letter-spacing: .06em; }
.wk-bar-track {
    height: 4px; background: rgba(201,168,76,.08);
    border-radius: 2px; overflow: hidden;
}
.wk-bar-fill {
    height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, rgba(232,205,128,.45), rgba(232,205,128,.85));
    width: 0;
    animation: wkBarGrow 1.4s cubic-bezier(.22,1,.36,1) both;
}
@keyframes wkBarGrow { to { width: var(--w); } }
.wk-bar-val {
    color: #c8bfa8; text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ── Animated SVG ornament (divider) ─────────────────────────── */
.wk-divider {
    display: flex; align-items: center; justify-content: center;
    gap: .9rem; margin: 3rem 0;
}
.wk-divider-line {
    height: 1px; width: 90px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,.3));
}
.wk-divider-line.rev { background: linear-gradient(to left, transparent, rgba(201,168,76,.3)); }
.wk-divider-svg {
    width: 20px; height: 20px;
    color: rgba(232,205,128,.6);
    animation: wkFloat 5s ease-in-out infinite;
}
@keyframes wkFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-5px) rotate(12deg); }
}

/* ── CTA ─────────────────────────────────────────────────────── */
.wk-cta {
    margin-top: 5rem;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(201,168,76,.06);
    border-bottom: 1px solid rgba(201,168,76,.06);
}
.wk-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 55% 90% at 50% 50%, rgba(201,168,76,.025) 0%, transparent 70%);
    pointer-events: none;
}
.wk-cta-kicker {
    font-family: system-ui, sans-serif;
    font-size: .54rem; letter-spacing: .3em; text-transform: uppercase;
    color: rgba(232,205,128,.75); margin-bottom: .9rem;
}
.wk-cta-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 300; letter-spacing: .08em;
    color: #e8dcc8; margin-bottom: 1.6rem;
}
.wk-cta-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; flex-wrap: wrap;
}
.wk-btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: system-ui, sans-serif;
    font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: .75rem 1.7rem; border-radius: 5px;
    background: linear-gradient(135deg, #c9a84c 0%, #a07830 100%);
    color: #1a1108; text-decoration: none;
    position: relative; overflow: hidden;
    transition: filter .2s, transform .2s;
}
.wk-btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 55%);
    pointer-events: none;
}
.wk-btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.wk-btn-primary svg { width: 13px; height: 13px; }
.wk-btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: system-ui, sans-serif;
    font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    padding: .72rem 1.6rem; border-radius: 5px;
    border: 1px solid rgba(201,168,76,.2);
    color: rgba(232,205,128,.8); text-decoration: none;
    transition: border-color .2s, color .2s, transform .2s;
}
.wk-btn-ghost:hover { border-color: rgba(232,205,128,.75); color: #f0e6d0; transform: translateY(-2px); }
.wk-btn-ghost svg { width: 13px; height: 13px; }

/* ── Empty search state ──────────────────────────────────────── */
.wk-empty {
    display: none;
    padding: 4.5rem 1rem; text-align: center;
}
.wk-empty.show { display: block; animation: wkFadeUp .5s ease both; }
.wk-empty-ico {
    width: 56px; height: 56px; margin: 0 auto 1.2rem;
    color: rgba(232,205,128,.6);
}
.wk-empty-txt {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem; font-style: italic;
    color: #8a8170;
}

/* ── Reading progress bar ────────────────────────────────────── */
.wk-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; z-index: 2000;
    background: rgba(201,168,76,.07);
    pointer-events: none;
}
.wk-progress-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, rgba(201,168,76,.55), rgba(232,205,128,.95));
    box-shadow: 0 0 10px rgba(232,205,128,.3);
    transition: width .1s linear;
}

/* ── TOC progress (sidebar) ──────────────────────────────────── */
.wk-toc-progress {
    height: 2px;
    background: rgba(201,168,76,.08);
    border-radius: 2px;
    overflow: hidden;
    margin: -.35rem 0 1.1rem;
}
.wk-toc-progress-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, rgba(201,168,76,.45), rgba(232,205,128,.85));
    border-radius: 2px;
    transition: width .12s linear;
}

/* ── Print styles ────────────────────────────────────────────── */
@media print {
    @page { margin: 1.4cm 1.6cm; }
    html, body {
        background: #fff !important;
        color: #1a1712 !important;
    }
    body { font-size: 10pt; }

    /* Dekoratives & Interaktives ausblenden. Vom Emblem bleiben nur die
       gezeichneten Linien: Ringe, Skalenkranz, Orbits und Funken sind reine
       Bewegung und würden im Druck nur als graue Schleier erscheinen. */
    .wk-bg, .wk-progress, .wk-search, .wk-cta, .wk-empty,
    .wk-nav, .wk-divider, .wk-tip svg, .wk-watermark,
    .wk-hero-pills, .wk-ornament, .wk-emblem-ticks, .wk-orbit,
    .wk-emblem-sheen, .wk-emblem-spark, .wk-emblem-sigil,
    .wk-kicker-star, .wk-search-kbd,
    .wk-section-icon::before,
    .nav-bar, footer { display: none !important; }

    .wk-shell { max-width: 100%; padding: 0; }
    .wk-layout { display: block; }
    .wk-hero { margin-bottom: 1.6rem; }
    .wk-title { font-size: 22pt; color: #1a1712; }
    .wk-title em { color: #8a6a1c; }
    .wk-subtitle { color: #3a342a; max-width: 100%; margin-bottom: 1rem; }
    .wk-kicker { color: #8a6a1c; }
    .wk-emblem { width: 56px; height: 56px; animation: none; filter: none; }
    .wk-emblem-svg { color: #8a6a1c; }
    .wk-emblem-draw,
    .wk-emblem-detail,
    .wk-emblem-star {
        stroke-dashoffset: 0 !important;
        opacity: 1 !important;
        animation: none !important;
    }
    .wk-emblem-draw { stroke: #8a6a1c !important; }
    .wk-emblem-detail { stroke: #a9946a !important; }
    .wk-emblem-star { fill: #8a6a1c !important; }
    .wk-section { margin-bottom: 1.6rem; break-inside: avoid; }
    .wk-section-title { color: #1a1712; font-size: 15pt; }
    .wk-section-sub { color: #57534e; }
    .wk-section-icon svg { color: #8a6a1c; }

    .wk-card {
        background: #fff !important;
        border: 1px solid #d8d2c4 !important;
        border-left: 3px solid #c9a84c !important;
        border-radius: 4px;
        padding: .9rem 1rem;
        margin-bottom: .9rem;
        break-inside: avoid;
        box-shadow: none;
    }
    .wk-card-title { color: #1a1712; }
    .wk-card-title svg { color: #8a6a1c; }
    .wk-card p, .wk-card li, .wk-card-note { color: #2a261e !important; }
    .wk-card strong { color: #1a1712; }
    .wk-card li::before { background: #8a6a1c; }
    .wk-inline-link { color: #7a5c16 !important; border-bottom-color: rgba(138,106,28,.5); }

    .wk-stats { gap: .5rem; margin-top: .7rem; }
    .wk-stat {
        background: #f6f3ea !important;
        border: 1px solid #ddd6c6 !important;
        border-radius: 4px; padding: .5rem .6rem;
    }
    .wk-stat-num { color: #1a1712; font-size: 13pt; }
    .wk-stat-label { color: #57534e; }

    .wk-table-wrap { border: 1px solid #e2dccf; border-radius: 4px; }
    .wk-table { background: #fff; font-size: 8.5pt; }
    .wk-table th {
        background: #f3efe4 !important;
        color: #3a342a !important;
        border-bottom: 1px solid #d8d2c4 !important;
    }
    .wk-table td {
        color: #2a261e !important;
        border-bottom: 1px solid #eee8db !important;
    }
    .wk-table tr:hover td { background: transparent !important; }
    .wk-table td strong { color: #1a1712; }

    .wk-tip {
        background: #f6f3ea !important;
        border: 1px solid #ddd6c6 !important;
        border-radius: 4px;
        break-inside: avoid;
    }
    .wk-tip strong { color: #8a6a1c; }
    .wk-tip p { color: #2a261e !important; }

    .wk-chips { gap: .4rem; margin-top: .7rem; }
    .wk-chip {
        background: #f6f3ea !important;
        border: 1px solid #ddd6c6 !important;
        color: #2a261e !important;
    }
    .wk-chip svg { color: #8a6a1c; }

    .wk-bar-name, .wk-bar-val { color: #2a261e; }
    .wk-bar-track { background: #e8e2d4; }

    a { color: #7a5c16; }
}

/* ── Kampfsimulator (.sim-*) ─────────────────────────────────── */
.sim-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
    margin-top: 1.2rem;
}
@media (max-width: 760px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-side {
    min-width: 0;
    border: 1px solid rgba(201,168,76,.12);
    border-radius: 10px;
    padding: 1rem .9rem .9rem;
    margin: 0;
}
.sim-legend {
    font-family: system-ui, sans-serif;
    font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    padding: 0 .6rem;
}
.sim-legend.att { color: rgba(255,140,110,.85); }
.sim-legend.def { color: rgba(147,197,253,.85); }
.sim-hero-label {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    font-size: .66rem; color: rgba(232,205,128,.72);
    margin-bottom: .55rem;
}
.sim-hero-label input {
    width: 92px;
}
.sim-row {
    display: grid; grid-template-columns: 1fr auto 74px;
    align-items: center; gap: .5rem;
    padding: .26rem 0;
    border-bottom: 1px dashed rgba(201,168,76,.05);
    font-size: .68rem;
}
.sim-row:last-child { border-bottom: none; }
.sim-name { color: #cdc4b2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-stats {
    font-size: .56rem; color: #8a8170;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.sim-row input,
.sim-hero-label input {
    background: rgba(10,8,4,.6);
    border: 1px solid rgba(201,168,76,.16);
    border-radius: 6px;
    padding: .28rem .45rem;
    font-size: .72rem; color: #f0e6d0;
    text-align: right;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s;
}
.sim-row input:focus,
.sim-hero-label input:focus { outline: none; border-color: rgba(201,168,76,.5); }
/* Zahlen-Spinns entfernen */
.sim-row input::-webkit-outer-spin-button,
.sim-row input::-webkit-inner-spin-button,
.sim-hero-label input::-webkit-outer-spin-button,
.sim-hero-label input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim-row input[type=number], .sim-hero-label input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.sim-actions {
    display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    margin-top: 1.2rem;
}
.sim-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    background: linear-gradient(135deg, #c9a84c, #a07830);
    color: #1a1209;
    border: none; border-radius: 8px;
    font-family: system-ui, sans-serif;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .62rem 1.4rem;
    cursor: pointer;
    transition: filter .18s;
}
.sim-btn:hover:not(:disabled) { filter: brightness(1.12); }
.sim-btn:disabled { opacity: .5; cursor: wait; }
.sim-reset {
    background: none;
    border: 1px solid rgba(201,168,76,.18);
    border-radius: 8px;
    color: #a39c8e;
    font-family: system-ui, sans-serif;
    font-size: .64rem; letter-spacing: .08em;
    padding: .55rem 1rem;
    cursor: pointer;
    transition: border-color .18s, color .18s;
}
.sim-reset:hover { border-color: rgba(201,168,76,.42); color: #f0e6d0; }
.sim-error {
    flex-basis: 100%;
    font-size: .7rem; color: #ff9a85; margin: .2rem 0 0;
}

.sim-result {
    margin-top: 1.3rem;
    border: 1px solid rgba(201,168,76,.14);
    border-radius: 10px;
    padding: 1rem;
    background: rgba(201,168,76,.02);
}
.sim-verdict {
    display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem; letter-spacing: .04em;
    margin-bottom: .9rem;
}
.sim-verdict.win strong { color: #8fd9ae; }
.sim-verdict.loss strong { color: #ff9a85; }
.sim-verdict span { font-family: system-ui, sans-serif; font-size: .62rem; color: #8a8170; letter-spacing: .1em; }

.sim-powers {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: .9rem;
    margin-bottom: 1rem;
}
.sim-vs {
    font-family: system-ui, sans-serif;
    font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: #8a8170;
}
.sim-power {
    text-align: center;
    border: 1px solid rgba(201,168,76,.1);
    border-radius: 8px;
    padding: .55rem .4rem;
}
.sim-power.att { border-color: rgba(255,140,110,.22); }
.sim-power.def { border-color: rgba(147,197,253,.22); }
.sim-power-label {
    display: block;
    font-family: system-ui, sans-serif;
    font-size: .48rem; letter-spacing: .2em; text-transform: uppercase;
    color: #8a8170;
    margin-bottom: .25rem;
}
.sim-power-val {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem; color: #f0e6d0;
    font-variant-numeric: tabular-nums;
}

.sim-tables {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
@media (max-width: 760px) { .sim-tables { grid-template-columns: 1fr; } }
.sim-tbl h4 {
    font-family: system-ui, sans-serif;
    font-size: .56rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(232,205,128,.66);
    margin: 0 0 .45rem;
    display: flex; justify-content: space-between; gap: .5rem;
}
.sim-tbl h4 em {
    font-style: normal; color: #f0e6d0;
    font-variant-numeric: tabular-nums;
}
.sim-tbl table {
    width: 100%;
    border-collapse: collapse;
    font-size: .68rem;
}
.sim-tbl th {
    font-family: system-ui, sans-serif;
    font-size: .5rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: #8a8170;
    text-align: left;
    padding: .3rem .35rem;
    border-bottom: 1px solid rgba(201,168,76,.1);
}
.sim-tbl td {
    color: #cdc4b2;
    padding: .32rem .35rem;
    border-bottom: 1px dashed rgba(201,168,76,.06);
}
.sim-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim-tbl td.died { color: #ff9a85; }
.sim-tbl tr.wiped td:first-child { color: #ff9a85; }
.sim-carry {
    margin: .6rem 0 0;
    font-size: .66rem; color: #cdc4b2;
}
.sim-carry small { color: #8a8170; }
.sim-note {
    margin: 1rem 0 0;
    font-size: .6rem; color: #8a8170; line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   Wiki-Einzelseiten (Einheit/Gebäude) — page_wiki_item.php
   Eigene Landing-Seiten je Katalogeintrag: gleiche Bildsprache wie
   die Karten, aber als eigenständige, indexierbare Seite.
══════════════════════════════════════════════════════════════ */
.wk-page-item {
    max-width: 760px; margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}
.wk-item-nav {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: .6rem 1rem;
    margin-bottom: 1.6rem;
}
.wk-item-back {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: system-ui, sans-serif; font-size: .66rem;
    letter-spacing: .1em; text-transform: uppercase;
    color: rgba(232,205,128,.78);
    text-decoration: none;
    transition: color .15s;
}
.wk-item-back:hover { color: #e8d9a8; }
.wk-item-back svg { width: 13px; height: 13px; }
.wk-item-pager { display: flex; gap: .4rem; }
.wk-item-page {
    display: inline-flex; align-items: center; gap: .35rem;
    font-family: system-ui, sans-serif; font-size: .62rem;
    color: #8a8170; text-decoration: none;
    border: 1px solid rgba(201,168,76,.12); border-radius: 5px;
    padding: .3rem .55rem;
    transition: color .15s, border-color .15s;
}
.wk-item-page:hover { color: #e8d9a8; border-color: rgba(201,168,76,.3); }
.wk-item-page svg { width: 11px; height: 11px; flex: none; }

.wk-item-card {
    border: 1px solid rgba(201,168,76,.12);
    border-radius: 10px; overflow: hidden;
    background: linear-gradient(180deg, rgba(19,15,9,.6), rgba(10,8,4,.75));
    padding: 1.6rem 1.5rem 1.8rem;
}
.wk-item-head {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.2rem;
}
.wk-item-emblem {
    width: 56px; height: 56px; flex: none;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(201,168,76,.2);
    background: rgba(201,168,76,.05);
    color: var(--cc, rgba(232,205,128,.85));
}
.wk-item-emblem svg { width: 34px; height: 34px; }
.wk-item-heading { min-width: 0; }
.wk-item-kicker {
    display: block;
    font-family: system-ui, sans-serif; font-size: .55rem;
    letter-spacing: .22em; text-transform: uppercase;
    color: rgba(232,205,128,.65);
    margin-bottom: .3rem;
}
.wk-item-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    font-weight: 300; letter-spacing: .06em;
    color: #f0e6d0; line-height: 1.1;
    margin: 0 0 .5rem;
}
.wk-item-art {
    margin: 0 auto 1.1rem;
    max-width: 420px;
}
.wk-item-desc {
    font-family: system-ui, sans-serif; font-size: .8rem;
    line-height: 1.65; color: #c8bfa8;
    margin: 0 0 1.3rem;
}
.wk-item-cta { margin-top: 1.4rem; }
.wk-item-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: system-ui, sans-serif; font-size: .66rem;
    letter-spacing: .08em; text-transform: uppercase;
    color: rgba(232,205,128,.85); text-decoration: none;
    border: 1px solid rgba(201,168,76,.22); border-radius: 5px;
    padding: .5rem .9rem;
    background: rgba(201,168,76,.06);
    transition: background .15s, color .15s, border-color .15s;
}
.wk-item-btn:hover { background: rgba(201,168,76,.12); color: #e8d9a8; }
.wk-unit-train-time {
    display: flex; align-items: center; gap: .4rem;
    font-family: system-ui, sans-serif; font-size: .66rem;
    color: #8a8170; margin-top: .8rem;
}
.wk-unit-train-time svg { width: 12px; height: 12px; color: rgba(232,205,128,.7); }
/* ── Zusatzabschnitte der Detailseite (WikiContent) ─────────────────────────
   Einsatzprofil/Kosten/Vergleich (Einheiten), Funktion/Baukosten/Kategorie
   (Gebäude). Optisch an die Item-Card angelehnt: gleiche Goldkanten, gleiche
   Serif-Überschriften, Tabellen mit horizontalem Scroll auf schmalen Geräten. */
.wk-item-section {
    margin-top: 1.6rem; padding-top: 1.4rem;
    border-top: 1px solid rgba(201,168,76,.1);
}
.wk-item-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    font-weight: 400; letter-spacing: .05em;
    color: #e8dcc0; margin: 0 0 .75rem;
}
.wk-item-prose {
    font-family: system-ui, sans-serif; font-size: .78rem;
    line-height: 1.7; color: #c8bfa8; margin: 0 0 .85rem;
}
.wk-item-prose strong { color: #e8d9a8; font-weight: 600; }
.wk-item-prose a { color: rgba(232,205,128,.92); text-decoration: none; }
.wk-item-prose a:hover { text-decoration: underline; }

.wk-item-columns {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .8rem 1.2rem; margin: .2rem 0 .4rem;
}
.wk-item-col-title {
    font-family: system-ui, sans-serif; font-size: .58rem;
    letter-spacing: .18em; text-transform: uppercase;
    color: rgba(232,205,128,.7); margin: 0 0 .45rem;
}
.wk-item-list {
    list-style: none; margin: 0; padding: 0;
    font-family: system-ui, sans-serif; font-size: .73rem;
    line-height: 1.6; color: #b8b09c;
}
.wk-item-list li { position: relative; padding-left: .95rem; margin-bottom: .3rem; }
.wk-item-list li::before {
    content: ''; position: absolute; left: 0; top: .5em;
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(140,200,140,.6);
}
.wk-item-list.is-cons li::before { background: rgba(224,154,122,.6); }

.wk-item-table-wrap { overflow-x: auto; margin: 0 0 .2rem; }
.wk-item-table {
    width: 100%; border-collapse: collapse;
    font-family: system-ui, sans-serif; font-size: .7rem;
}
.wk-item-table th, .wk-item-table td {
    text-align: left; padding: .42rem .55rem;
    border-bottom: 1px solid rgba(201,168,76,.08);
    white-space: nowrap;
}
.wk-item-table th {
    color: rgba(232,205,128,.75); font-weight: 600;
    font-size: .58rem; text-transform: uppercase; letter-spacing: .08em;
}
.wk-item-table td { color: #c8bfa8; }
.wk-item-table td:first-child { color: #e8dcc0; }
.wk-item-table a { color: rgba(232,205,128,.92); text-decoration: none; }
.wk-item-table a:hover { text-decoration: underline; }
.wk-item-table tr.is-self td { background: rgba(201,168,76,.05); }
.wk-item-table tr.is-self td:first-child { color: #f0e6d0; }
