@layer nokavoTageslicht {
  :root { --nk-type: Inter, "Segoe UI", system-ui, sans-serif; --nk-rgb: 255 255 255; --nk-text: #111820; --nk-link: #063c63; --nk-edge: #495a67; color-scheme: light !important; }
  :root[data-nk-light="nacht"] { --nk-rgb: 13 19 27; --nk-text: #fafbff; --nk-link: #d0edff; --nk-edge: #b8c6d0; color-scheme: dark !important; }
  html, body, body :where(*):not(svg *,[class*="material-symbol"],[class*="material-icon"],.fa,.fas) {
    font-family: var(--nk-type) !important;
  }
  body { background-color: rgb(var(--nk-rgb)) !important; color: var(--nk-text) !important; }
  body :where(main,aside,header,footer,nav,.panel,article,details,dialog,fieldset,.postlayout,.postliste,.postordner,.lesebereich,.briefing,#raster) {
    background-color: rgb(var(--nk-rgb) / .28) !important; color:var(--nk-text) !important;
  }
  body :where(h1,h2,h3,h4,h5,h6,p,label,legend,summary,a,button,select,textarea,input,[contenteditable="true"],li,th,td,dt,dd,pre,.mailtext,.postzeile,time,small) {
    color:var(--nk-text) !important; text-shadow:none !important;
    background-color:rgb(var(--nk-rgb) / .70) !important;
  }
  body :where(a) {color:var(--nk-link) !important;}
  body :where(input:not([type=hidden]),textarea,select,[contenteditable="true"]) {
    background:rgb(var(--nk-rgb) / .68) !important; border:1px solid var(--nk-edge) !important;
    caret-color:var(--nk-text) !important; accent-color:var(--nk-link) !important;
  }
  body :where(input,textarea)::placeholder {color:var(--nk-text) !important;opacity:1 !important;}
  body :where(option,optgroup) {color:var(--nk-text) !important;background:rgb(var(--nk-rgb)) !important;}
  body :where([aria-current="page"],.postzeile[aria-current]) {box-shadow:inset 3px 0 var(--nk-link) !important;}
  body :focus-visible {outline:2px solid var(--nk-link) !important; outline-offset:2px;}
}
@layer nokavoTageslicht {
  body :where(button,.button,[role="button"],input[type="submit"],input[type="button"],input[type="reset"],.nk-coach-button) {
    border: 1px solid var(--nk-edge) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -1px 1px rgb(0 0 0 / .16), 0 2px 3px rgb(0 0 0 / .22) !important;
  }
  body :where(button,.button,[role="button"],input[type="submit"],input[type="button"],.nk-coach-button):active {
    box-shadow: inset 0 1px 3px rgb(0 0 0 / .3) !important;
  }
  .nk-coach-button {
    position:fixed; top:max(.5rem,env(safe-area-inset-top)); right:max(.65rem,env(safe-area-inset-right)); z-index:30;
    width:44px;height:44px;display:grid;place-items:center;border-radius:50%;font-size:1.35rem;font-weight:700;
    background:rgb(var(--nk-rgb) / .72) !important;color:var(--nk-text) !important;text-decoration:none;
  }
  body:has(.nk-coach-button) main > header:first-of-type {padding-inline-end:3.7rem;}
  a[hidden] {display:none !important;}
}
@layer nokavoTageslicht {
 html.nk-fotoseite {--nk-pos:var(--nk-desktop);background-color:#dee4e8 !important;}
 @media(max-width:1100px),(pointer:coarse) and (max-width:1400px){html.nk-fotoseite{--nk-pos:var(--nk-tablet)}}
 @media(max-width:600px),(pointer:coarse) and (orientation:landscape) and (max-height:550px){html.nk-fotoseite{--nk-pos:var(--nk-handy)}}
 html.nk-fotoseite body {isolation:isolate;background:transparent !important;}
 html.nk-fotoseite body::before {content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:var(--nk-foto) var(--nk-pos) / cover no-repeat !important;}
 html.nk-fotoseite body :where(.album-shell,main,.panel,form,fieldset,label,.postlayout,.postinhalt,.tagesraster,.felder,.sprechraum,section:has(input,select,textarea)) {background:transparent !important;}
 html.nk-fotoseite body label {text-shadow:0 0 3px rgb(var(--nk-rgb)),0 0 2px rgb(var(--nk-rgb)) !important;}
 html.nk-fotoseite body :where(input:not([type=hidden]),select,textarea,[contenteditable=true]) {background:rgb(var(--nk-rgb) / .68) !important;color:var(--nk-text) !important;}
 #bildvorschauen {display:flex;flex-wrap:wrap;gap:1rem;}
 #bildvorschauen fieldset {flex:1 1 13rem;min-width:0;}
 .bildvorschau {width:100%;background-size:cover;background-repeat:no-repeat;border:1px solid var(--nk-edge);}
 [data-device=handy] .bildvorschau {aspect-ratio:9/19.5;max-width:11rem;}
 [data-device=tablet] .bildvorschau {aspect-ratio:4/3;}
 [data-device=desktop] .bildvorschau {aspect-ratio:16/9;}
}

@layer nokavoTageslicht {
  html.nk-fotoseite {
    --nk-halo: rgb(var(--nk-rgb) / .98);
    --nk-letter-edge: 0 1px 2px var(--nk-halo), 0 -1px 2px var(--nk-halo),
      1px 0 2px var(--nk-halo), -1px 0 2px var(--nk-halo);
  }
  /* The photo is already painted once, behind the entire application. */
  html.nk-fotoseite body :is(.kurs-canvas,.kurs-column,.kurs-top,.kurs-tabs,.kurs-cover,.kurs-meta,
    .kurs-stack,.kurs-quote,.kurs-card,.kurs-marker,.kurs-chip,.kurs-disclosure,.kurs-concepts div,
    .fach-layout,.fach-themen,.sprechraum,.gespraech-layout,.dialog-ordner,.postlayout,.postinhalt,
    .postliste,.lesebereich,.postordner,.briefing,.sammlung,.abschluss,.felder,
    main, form, fieldset, article, details, section, nav, header, footer,
    main div:has(form),form div:not(.bildvorschau):not([role=button]):not([contenteditable=true])) {
    background:transparent !important; box-shadow:none !important;
  }
  html.nk-fotoseite body :is(h1,h2,h3,h4,h5,h6,p,label,legend,summary,blockquote,li,dt,dd,
    th,td,pre,time,small,.mailtext,.kurs-kicker,.kurs-chip,.postzeile,
    a:not(.button):not(.nk-coach-button):not([role=button])) {
    background:transparent !important;color:var(--nk-text) !important;text-shadow:var(--nk-letter-edge) !important;
  }
  html.nk-fotoseite body :is(.album-side,aside:has(.nokavo-menuleiste)) {
    background:rgb(238 245 252 / .48) !important;color:#101924 !important;
  }
  html.nk-fotoseite body :is(.album-side,.nokavo-menuleiste) :is(nav,div,details,summary,a,ul,li,span,small,button,form) {
    background:transparent !important;color:#101924 !important;
    text-shadow:0 0 2px white,0 1px 2px white !important;
  }
  html.nk-fotoseite body :is(.album-side,.nokavo-menuleiste) [aria-current=page] {
    border-inline-start:3px solid #175a80 !important;font-weight:750;
  }
  html.nk-fotoseite body :is(input:not([type=hidden]),textarea,select,[contenteditable=true],button,.button,[role=button],.nk-coach-button) {
    background:rgb(var(--nk-rgb) / .53) !important;color:var(--nk-text) !important;text-shadow:var(--nk-letter-edge) !important;
  }
  html.nk-fotoseite body form label:has(> :is(textarea,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]))) {
    display:grid;gap:.3rem;align-content:start;
  }
  html.nk-fotoseite body form .bildvorschau {background-color:transparent !important;}
}

@layer nokavoTageslicht {
 html:root {--nk-leseflaeche:rgb(var(--nk-rgb) / .76);}
 html:root.nk-fotoseite body::before {
   background-image:linear-gradient(rgb(var(--nk-rgb) / .16),rgb(var(--nk-rgb) / .16)),var(--nk-foto) !important;
 }
 html:root body main :is(.kurs-cover,.kurs-quote,.kurs-card,.kurs-marker,.kurs-disclosure,#anliegen,
   .kurs-tabs,.kurs-cta,.sprechraum,.postordner,.postliste,.lesebereich,.briefing,.dialog-eintrag,
   .fit-karte,.sammlung,article,details:not(details details)) {
   background:var(--nk-leseflaeche) !important;color:var(--nk-text) !important;
   border-color:rgb(var(--nk-rgb) / .6) !important;
 }
 html:root body main :is(.kurs-cover,.kurs-quote,.kurs-card,.kurs-disclosure,#anliegen,.sprechraum,article,details)
 :is(.sprechraum,article,details):not(dialog) {background:transparent !important;}
 html:root body main :is(.kurs-cover,.kurs-quote,.kurs-card,.kurs-marker,.kurs-disclosure,#anliegen,
   .kurs-tabs,.kurs-cta,.sprechraum,.postliste,.lesebereich,.briefing,article,details)
 :where(h1,h2,h3,h4,p,blockquote,label,small,strong,span,summary,legend,a,time) {
   color:var(--nk-text) !important;text-shadow:none !important;
 }
 html:root body :is(.album-side,aside:has(.nokavo-menuleiste)) {
   background:rgb(250 250 248 / .72) !important;
 }
 html:root body :is(.album-side,.nokavo-menuleiste,.nokavo-admin-fuss) :is(a,summary,button,span,small,strong,b,em,label,div) {
   color:#080808 !important;-webkit-text-fill-color:#080808 !important;text-shadow:none !important;
 }
}

@layer nokavoTageslicht {
 html:root {--nk-reading:rgb(var(--nk-rgb) / .76);}
 html:root body :is(.album-side,.nokavo-menuleiste:not(.album-side *),aside:has(nav):not(main aside)) {
   background:rgb(250 250 248 / .72) !important;
 }
 html:root body :is(.album-side,.nokavo-menuleiste,aside:has(nav):not(main aside)) :is(a,summary,span,button,strong) {
   color:#080808 !important;-webkit-text-fill-color:#080808 !important;text-shadow:none !important;
 }
 html:root body :is(main,.album-main,.nk-work,.panel) :is(.wiki-leser,.wiki-liste,.wiki-nav,.muskelwahl,.modellsteuerung,.gespraech-links,
   .aufgabe,.postfilter,.aktionen,.sammlung,.abschluss,.fit-wahl,.postordner,.briefing,.postliste,.lesebereich,
   .tagesraster>section,.gespraech-layout>section,table,fieldset,section:not(:has(section,article,details)),article,details) {
   background-color:var(--nk-reading) !important;color:var(--nk-text) !important;
 }
 html:root body :is(article,details,fieldset,.lesebereich,.briefing,.postordner,.postliste,.sprechraum)
 :where(article,details,fieldset,section,nav,table,form) {background-color:transparent !important;}
 html:root body :is(main,form,dialog) :where(input:not([type=hidden]),textarea,select,[contenteditable=true]) {
   background:rgb(var(--nk-rgb) / .68) !important;color:var(--nk-text) !important;
 }
 html:root body dialog:modal {background-color:rgb(var(--nk-rgb) / .90) !important;color:var(--nk-text) !important;}
}
