/* R40 feinschliff – sechs kleine Gestaltungsaufgaben. Läuft nach basis/abend/faden; Selektoren mit „html body“ vorn,
   damit sie die früheren Regeln (site-r23/site-r34) sicher schlagen. */

/* ---------- 1. Ruhigere Kartenform (F20): die drei Karten unten auf der Startseite (.deeper-links, auch auf /kontakt als .kt-cards),
   die sechs Karten auf /kontakt (.kt-sit) und das Blatt auf /status (.st-sketch). Statt verbogener Ränder mit zweiter, versetzter Linie:
   ein Rechteck mit leicht ungleichen Ecken, eine Linie 1,5 px #1f3136 bei 80 %, dezente Papierfläche. Nur die Papierfläche (::before)
   ist um höchstens 0,3° gedreht – die Schrift bleibt gerade und scharf; beim Zeigen liegt sie gerade. Farbe nur im Zeichen. */
html body :is(.deeper-links a,.kt-sit,.st-sketch){rotate:none!important}
html body :is(.deeper-links a,.kt-sit,.st-sketch)::before{content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;
  background:#fffef9 url(/assets/images/papier.webp) center/420px!important;border:1.5px solid rgba(31,49,54,.8)!important;
  border-radius:7px 9px 6px 8px!important;box-shadow:0 14px 26px -24px rgba(21,45,56,.5)!important;
  rotate:var(--fs-tilt,0deg);transition:rotate .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s!important}
html body :is(.deeper-links a,.kt-sit,.st-sketch)::after{display:none!important;content:none!important}
html body .deeper-links a:nth-child(3n+1),html body .kt-sit:nth-child(3n+1){--fs-tilt:-.3deg}
html body .deeper-links a:nth-child(3n+2),html body .kt-sit:nth-child(3n+2){--fs-tilt:.2deg}
html body .deeper-links a:nth-child(3n),html body .kt-sit:nth-child(3n){--fs-tilt:-.15deg}
html body .st-sketch{--fs-tilt:0deg}
html body :is(.deeper-links a,.kt-sit):is(:hover,:focus-visible){--fs-tilt:0deg}
html body :is(.deeper-links a,.kt-sit):is(:hover,:focus-visible)::before{box-shadow:0 22px 34px -26px rgba(21,45,56,.55)!important}
html[data-read=on] body :is(.deeper-links a,.kt-sit,.st-sketch){--fs-tilt:0deg}
html[data-read=on] body :is(.deeper-links a,.kt-sit,.st-sketch)::before{background:#fffef9!important;transition:none!important}
html.motion-paused body :is(.deeper-links a,.kt-sit,.st-sketch)::before{transition:none!important}
@media (prefers-reduced-motion:reduce){html body :is(.deeper-links a,.kt-sit,.st-sketch)::before{transition:none!important}}

/* ---------- 2. Lebenslauf-Blätter auf der Startseite (F19): die zwei Blätter überlappen um 30 %, dahinter ein weicher blauer Kreis
   (260 px). Zeigen oder Fokus holt ein Blatt nach vorn und hebt es leicht an (1,06; 250 ms) – wie beim Durchsehen von Papieren.
   Raster: Blatt 1 = Spalte 1–2, Blatt 2 = Spalte 2–3; die mittlere Spalte (17,6 %) ist 30 % der Blattbreite (58,8 %). */
html body .cv-take .cv-sheets{position:relative;isolation:isolate}
html body .cv-take .cv-sheets::before{content:"";position:absolute;z-index:-1;left:74%;top:9%;width:260px;height:260px;translate:-50% -50%;border-radius:50%;
  background:radial-gradient(circle closest-side,rgba(48,78,231,var(--fs-ring,.10)) 78%,rgba(48,78,231,0) 100%);pointer-events:none}
html[data-theme=dark] body .cv-take .cv-sheets::before{--fs-ring:.2}
html body .profile-downloads.cv-take a.cv-sheet{position:relative;z-index:1}
html body .profile-downloads.cv-take a.cv-sheet:is(:hover,:focus-visible){z-index:3}
html body .cv-take a.cv-sheet .cv-paper{transform-origin:50% 80%;transition:translate .25s cubic-bezier(.2,.8,.2,1),rotate .25s cubic-bezier(.2,.8,.2,1),scale .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s}
html body .cv-take a.cv-sheet:is(:hover,:focus-visible) .cv-paper{scale:1.06}
@media (min-width:601px){
  html body .cv-take .cv-sheets{grid-template-columns:41.2% 17.6% 41.2%;gap:0!important;max-width:410px;margin-top:40px}
  html body .cv-take a.cv-sheet.cv-it{grid-column:1/3;grid-row:1}
  html body .cv-take a.cv-sheet.cv-ops{grid-column:2/4;grid-row:1}
  /* the first label ends where the second sheet begins, so the two labels never touch */
  html body .cv-take a.cv-sheet.cv-it .cv-label{padding-right:calc(30% + 10px)}
}
@media (max-width:600px){html body .cv-take .cv-sheets{grid-template-columns:1fr 1fr;gap:14px!important}html body .cv-take .cv-sheets{margin-top:30px}html body .cv-take .cv-sheets::before{width:220px;height:220px;left:70%;top:14%}}
html[data-read=on] body .cv-take a.cv-sheet .cv-paper,html.motion-paused body .cv-take a.cv-sheet .cv-paper{transition:none!important}
html[data-read=on] body .cv-take a.cv-sheet:is(:hover,:focus-visible) .cv-paper{scale:1}
@media (prefers-reduced-motion:reduce){html body .cv-take a.cv-sheet .cv-paper{transition:none!important}html body .cv-take a.cv-sheet:is(:hover,:focus-visible) .cv-paper{scale:1}}

/* ---------- 3. Fester Kontaktknopf am Handy (≤ 600 px): blaue Pille unten links, zwei Felder „Anrufen“ / „E-Mail“.
   Erscheint erst nach dem ersten Bildschirm; weg, solange Kontaktbereich, Fußzeile oder Fios Fenster sichtbar sind (feinschliff.js). */
.fs-dock{display:none}
@media (max-width:600px){
  .fs-dock{position:fixed;left:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:60;display:flex;align-items:stretch;box-sizing:border-box;height:48px;max-width:200px;
    margin:0;padding:0;border-radius:999px;background:#304ee7;box-shadow:0 10px 22px -10px rgba(21,32,90,.6),0 0 0 1px rgba(255,255,255,.18) inset;
    font:700 15px/1 Manrope,Arial,sans-serif;opacity:0;visibility:hidden;translate:0 14px;transition:opacity .22s,translate .22s cubic-bezier(.2,.8,.2,1),visibility 0s .22s}
  .fs-dock.is-on{opacity:1;visibility:visible;translate:0 0;transition:opacity .22s,translate .22s cubic-bezier(.2,.8,.2,1),visibility 0s}
  .fs-dock a{display:flex;align-items:center;justify-content:center;flex:1 1 auto;padding:0 16px;color:#fff!important;text-decoration:none;white-space:nowrap;border-radius:999px;letter-spacing:-.005em}
  .fs-dock a+a{position:relative}
  .fs-dock a+a::before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:1px;background:rgba(255,255,255,.45)}
  .fs-dock a:active{background:rgba(255,255,255,.14)}
  .fs-dock a:focus-visible{outline:2px solid #fff;outline-offset:-5px}
  html[data-read=on] .fs-dock,html.motion-paused .fs-dock{transition:none!important;translate:0 0}
  html body{scroll-padding-bottom:80px}
}
@media (max-width:600px) and (prefers-reduced-motion:reduce){.fs-dock{transition:none!important;translate:0 0}}
/* dark mode inverts the whole page – the pill stays the same blue with white writing */
html[data-theme=dark] .fs-dock{filter:invert(1) hue-rotate(180deg)}
@media print{.fs-dock{display:none!important}}

/* ---------- 4. Hintergründe (F7). /profil: echtes Karopapier (textur-karo-v40: KI-Papierscan mit 5-mm-Karo, nahtlos, 1024 px = 54 Kästchen),
   der helle Schleier sinkt von .58 auf .35, darüber ein feines Korn (≈ 4 %), damit es nach Papier aussieht und nicht nach Raster.
   /status: Millimeterpapier bleibt, die Linien auf etwa die halbe Stärke (Schleier .5 → .74), am Handy noch ruhiger (.80).
   Lesemodus: ohne Muster (§5). Andere Seiten: unverändert. */
:root{--fs-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .19 0 0 0 0 .13 0 0 0 1.1 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E")}
html:not([data-read=on]) body.page-profil{background-image:var(--fs-grain),linear-gradient(rgba(246,243,236,.35),rgba(246,243,236,.35)),url(/assets/images/textur-karo-v40.webp)!important;background-size:220px 220px,auto,1024px 1024px!important}
html:not([data-read=on]) body.page-status{background-image:linear-gradient(rgba(244,245,239,.74),rgba(244,245,239,.74)),url(/assets/images/textur-millimeter-v39.webp)!important;background-size:auto,720px 720px!important}
@media (max-width:600px){html:not([data-read=on]) body.page-status{background-image:linear-gradient(rgba(244,245,239,.8),rgba(244,245,239,.8)),url(/assets/images/textur-millimeter-v39.webp)!important}}

/* ---------- 5. Lesemodus-Korn (F8): statt des eingebetteten SVG-Rauschens aus basis.css das echte Papierkorn textur-korn-v40
   (nahtlos, 2×2 geprüft), auf allen Seiten gleich ruhig: unter einem Schleier im Grundton der Seite (42 %) bleibt ≈ 2–3 % Wirkung.
   /ticket behält im Lesemodus seinen dunklen Ton mit hellem Korn (basis.css). */
html[data-read=on]:root body:not(.page-ticket){--fs-rd-veil:color-mix(in srgb,var(--rd-bg) 42%,transparent);
  background:linear-gradient(var(--fs-rd-veil),var(--fs-rd-veil)),url(/assets/images/textur-korn-v40.webp) 0 0/512px 512px repeat,var(--rd-bg)!important;background-attachment:scroll!important}
html[data-read=on]:root body:not(.page-ticket) :is(.j-header,.site-header){background:linear-gradient(color-mix(in srgb,var(--rd-bg) 80%,transparent),color-mix(in srgb,var(--rd-bg) 80%,transparent)),url(/assets/images/textur-korn-v40.webp) 0 0/512px 512px repeat,var(--rd-bg)!important}

/* ---------- 6. Aufgabenfenster 09:00: Teilnehmer A ist wie auf der großen Grafik blau und spricht („Hört ihr uns?“) */
html body .wd-tiles .wd-tile:first-child{background:#304ee7;color:#fff}
html body .wd-tiles .wd-tile:first-child .wd-wave u{background:#dfe5ff}
html body .wd-meeting[data-live=true] .wd-tiles .wd-tile:first-child{background:#304ee7;box-shadow:inset 0 0 0 2px #7fd1a8}
html body .wd-chat b{background:#304ee7}
