/* R45 dark view – hand rules (src/r41/dunkel45.css, dunkel45b.css), loaded last */
/* R45 dunkel – hand rules for the dark view. Appended unchanged after the generated counter-rules (tools/dunkel45.py).
   Every rule here is already dark. Keep it short: each rule names why the generator cannot do it. */

/* /fuchsware 03: die-cut sticker copies of the four motifs instead of multiply on a dark card */
html[data-theme=dark] body.page-fuchsware .fw43-art{display:none}
html[data-theme=dark] body.page-fuchsware img.fw43-art.fw43-dk{display:block;mix-blend-mode:normal}

/* line drawings (transparent, dark ink): turned on the picture itself – one sheet, not a container */
html[data-theme=dark] :is(img.dm-line,canvas.r34-dm){filter:invert(.9) hue-rotate(180deg)!important}

/* dot field (site-r34.js §2 paints dark ink dots): light, quieter dots in the dark */
html[data-theme=dark] canvas.bg-field{filter:invert(1) hue-rotate(180deg)!important;opacity:.55}

/* Referenz (/status, /profil): the marker behind "jederzeit weit über den Anforderungen" – the generator turned the yellow into
   a dark smear (invisible). Warm, muted ochre under the light text (≈ 6:1). Only the colour layer: the grow-in (background-size) stays. */
html[data-theme=dark] .ref-quote mark{background-image:linear-gradient(100deg,rgba(196,148,44,0) 0,rgba(196,148,44,.46) 4%,rgba(188,140,38,.40) 92%,rgba(196,148,44,0) 100%) /*dk:fest*/}

/* Aufgabenfenster: the "gelöst" stamp multiplies its dark colour onto the dark window (invisible). Plain blend, a calm dark plate
   behind it, its own colour (blue / ochre / violet, set by the generator) stays. */
html[data-theme=dark] .wd-stamp{mix-blend-mode:normal;background:rgba(24,26,30,.9) /*dk:fest*/}

/* /fuchsware 03, light: the sticker copy carries the attribute hidden, but fuchsware43.css sets display:block on every .fw43-art,
   which beats it – both pictures would show on the light page. Keep the dark copy out of the light view. */
html:not([data-theme=dark]) body.page-fuchsware img.fw43-art.fw43-dk{display:none} /*dk:fest*/

/* R45 dunkel – second hand file (designer review, 20.11.). Appended after dunkel45.css by tools/dunkel45.py.
   Every rule here is already dark. */

/* Startseite 11:30: the task card on the warm station is warm too (the generator gives every white card the cool slate) */
html[data-theme=dark] body .station-service .workbench{background-color:rgba(41,36,29,.95)}

/* /kontakt log: the tick on the (now light green) done-dot is dark, not white */
html[data-theme=dark] body .kt-log li.is-done::before{color:#10301c}

/* hero portrait: the near-white brush strokes at the shirt's edge were the brightest, hardest edge of the page.
   The picture fades out towards the shoulders and the bottom; the same mask on the animation and the thumb film,
   so nothing jumps when the film starts. The face (upper middle) is untouched. */
html[data-theme=dark] .hero-art :is(.sketch-portrait,canvas.portrait-anim,canvas.hero40-film){
  -webkit-mask-image:radial-gradient(ellipse 58% 66% at 50% 38%,#000 66%,rgba(0,0,0,.55) 84%,transparent 100%);
  mask-image:radial-gradient(ellipse 58% 66% at 50% 38%,#000 66%,rgba(0,0,0,.55) 84%,transparent 100%)}

/* coloured drawings with black outline (Nach Feierabend, Kundenservice triangle): a fine light rim keeps the outline */
html[data-theme=dark] :is(.family-map .fm-g>img,.family-map .fm-g>canvas,.csba-art img,body.page-fuchsware img.fw43-dk){filter:drop-shadow(0 0 .7px rgba(220,228,235,.6))!important}

/* R45 (main agent, 20.11.): the mask above lies on every portrait layer. Two or three layers on top of each other
   (photo + glasses picture) added their half-transparent edges up, so the brush strokes became bright again as soon as
   the glasses were on. In the dark view only one whole picture shows: the base picture leaves once the other one has
   faded in (0.34 s). The animation canvas stays as it is – it only carries the head and needs the picture under it. */
html[data-theme=dark] .hero-art[data-look]:not([data-look=""])>img.sketch-portrait:not(.portrait-alt){visibility:hidden;transition:visibility 0s linear .34s,opacity .34s ease,scale .45s cubic-bezier(.3,.7,.3,1),transform .6s cubic-bezier(.5,0,.2,1)/*dk:fest*/}

/* R46 (main session): the footer in the dark was olive (#191d14, the light footer's green-grey kept its hue) against the cool page – one step
   darker than the page, same cool family */
html[data-theme=dark]:root body footer:is(.j-footer,.ba-footer){background:#13161a!important/*dk:fest*/}

/* R47 F3 (main session): the arrows of the select fields in the 15:00 handover form were drawn in dark ink inside an inline
   SVG – the generated dark sheet cannot recolour that, so they were almost invisible in the dark */
html[data-theme=dark]:root body .wd-field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9d6dc' stroke-width='1.6'/%3E%3C/svg%3E")!important/*dk:fest*/}
