/* monkeys Bibliothek -- Oberflaeche. Selbst gehostet, keine Fremdquellen. Tokens aus Cockpit-Login und Buch-Landingpage.
   Nur helles Farbschema. Aenderungen am Inhalt dieser Datei = neue Dateiname-Version (lib.v3.css), da unveraenderlich gecacht. */
@font-face{font-family:"Stack Sans Notch";src:url("../fonts/stack-sans-notch.woff2") format("woff2");font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("../fonts/inter.woff2") format("woff2");font-weight:300 800;font-style:normal;font-display:swap}
:root{
  --lime:#c6d43f;--lime-h:#a4b332;--ink:#0b0b0a;--text:#212529;--muted:#585c60;
  --pane:#f8f9fa;--card:#ffffff;--line:#dee2e6;--field-line:#767b80;
  --chip-bg:#eef3c4;--chip-text:#3f4a05;--err-bg:#fdecea;--err-text:#8a1c10;--ok-bg:#f1f6d0;--ok-text:#3f4a05;
  --pad-x:56px;--r-card:20px;--r-btn:100px;--r-field:10px;
  --f-head:"Stack Sans Notch","Inter",system-ui,sans-serif;--f-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--f-body);font-size:16px;line-height:1.55;color:var(--text);background:var(--pane);min-height:100vh;min-height:100dvh}
[hidden]{display:none!important}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3,p{margin:0}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 5px var(--lime);border-radius:var(--r-field)}
.btn:focus-visible,.chip:focus-visible{border-radius:var(--r-btn)}
.brand :focus-visible,.hero :focus-visible{outline-color:#fff}

/* ---------- Split-Layout (Anmeldung, Hinweise) ---------- */
.split{display:flex;min-height:100vh;min-height:100dvh;width:100%}
.brand{flex:1 1 56%;background:radial-gradient(680px 480px at 12% 8%,rgba(198,212,63,.22),transparent 65%),radial-gradient(520px 420px at 100% 100%,rgba(198,212,63,.10),transparent 60%),var(--ink);color:#fff;display:flex;flex-direction:column;justify-content:space-between;gap:40px;padding:52px 56px;position:relative;overflow:hidden}
.brand .logo-row img{height:30px;width:auto}
.brand-mid{max-width:540px}
.claim{font-family:var(--f-head);font-weight:700;font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.12;letter-spacing:-.01em;margin-bottom:16px}
.claim .acc{color:var(--lime)}
.body-copy{font-size:16px;line-height:1.6;color:rgba(255,255,255,.78);max-width:440px}
.brand-foot{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.ki-badge{height:34px;width:auto}
.legal{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px}
.legal a{color:rgba(255,255,255,.78);text-decoration:none;display:inline-block;padding:11px 0;min-height:44px}
.legal a:hover{color:var(--lime);text-decoration:underline}
.formpane{flex:1 1 44%;display:flex;align-items:center;justify-content:center;background:var(--pane);padding:20px}
.w{width:100%;max-width:420px;padding:20px 0}
.cd{background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);padding:36px 32px;box-shadow:0 4px 24px rgba(0,0,0,.06)}
.cd h1{font-family:var(--f-head);font-size:26px;line-height:1.2;font-weight:700;color:var(--text);margin-bottom:8px}
.cd p{font-size:15px;color:var(--muted);margin-bottom:24px}
.cd .lead-icon{width:44px;height:44px;border-radius:50%;background:var(--chip-bg);color:var(--chip-text);display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.cd .lead-icon svg{width:22px;height:22px}
label{display:block;font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
input[type=email]{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--field-line);border-radius:var(--r-field);font-size:16px;margin-bottom:16px;background:var(--pane);color:var(--text);font-family:var(--f-body)}
input[type=email]:focus{background:#fff;border-color:var(--ink)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:13px 28px;background:var(--lime);color:#000;border:0;border-radius:var(--r-btn);font-size:15px;font-weight:700;font-family:var(--f-body);cursor:pointer;text-decoration:none;transition:background .2s}
.btn:hover{background:var(--lime-h)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn svg{width:18px;height:18px;flex:none}
.btn-block{width:100%}
.btn-outline{background:transparent;color:var(--ink);border:2px solid var(--ink);min-height:48px;padding:11px 24px}
.btn-outline:hover{background:var(--ink);color:#fff}
.actions{display:flex;flex-wrap:wrap;gap:10px}
.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.5);min-height:44px;padding:10px 20px}
.btn-ghost:hover{background:rgba(255,255,255,.12)}
.link-quiet{display:inline-block;margin-top:18px;font-size:14px;color:var(--muted);min-height:44px;padding:10px 0}
.fn{text-align:center;margin-top:18px;font-size:13px;color:var(--muted)}
.msg{border-radius:var(--r-field);padding:12px 14px;font-size:14px;margin-bottom:18px}
.msg-ok{background:var(--ok-bg);color:var(--ok-text);border:1px solid rgba(63,74,5,.25)}
.msg-err{background:var(--err-bg);color:var(--err-text);border:1px solid rgba(138,28,16,.25)}
.m-foot{display:none;background:var(--ink);color:#fff;flex-direction:column;align-items:flex-start;gap:6px;padding:24px var(--pad-x) 20px}
.m-foot .ki-badge{height:30px}
.formpane .legal a{color:var(--muted)}
.formpane .legal a:hover{color:var(--text)}
.formpane .legal{justify-content:center;margin-top:6px}

/* ---------- Bibliothek ---------- */
.lib{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.hero{background:radial-gradient(680px 420px at 8% 0%,rgba(198,212,63,.22),transparent 65%),radial-gradient(520px 380px at 100% 100%,rgba(198,212,63,.10),transparent 60%),var(--ink);color:#fff;padding:28px 56px 56px}
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1120px;margin:0 auto 40px}
.hero-top img{height:30px;width:auto}
.hero-in{max-width:1120px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:40px}
.hero-text{max-width:520px}
.hero h1{font-family:var(--f-head);font-weight:700;font-size:clamp(2.2rem,4.2vw,3.5rem);line-height:1.1;letter-spacing:-.01em;margin-bottom:14px}
.hero h1 .acc{color:var(--lime)}
.hero p{font-size:16px;color:rgba(255,255,255,.78);max-width:420px}
.hero-img{width:min(46%,440px);flex:none}
.hero-img img{border-radius:var(--r-card)}
.lib-main{flex:1;max-width:1120px;width:100%;margin:0 auto;padding:48px 56px 40px}
.lib-main h2{font-family:var(--f-head);font-size:22px;line-height:1.25;margin-bottom:20px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.prod{background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:0 4px 24px rgba(0,0,0,.06);overflow:hidden;display:flex;flex-direction:column}
.prod-img{background:var(--pane);aspect-ratio:16/10;overflow:hidden}
.prod-img img{width:100%;height:100%;object-fit:cover}
.prod-body{padding:24px 24px 28px;display:flex;flex-direction:column;gap:10px;flex:1}
.prod h3{font-family:var(--f-head);font-size:22px;line-height:1.2;font-weight:700}
.prod .since{font-size:14px;color:var(--muted)}
.chip{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;background:var(--chip-bg);color:var(--chip-text);font-size:13px;font-weight:600;padding:5px 12px;border-radius:var(--r-btn)}
.chip svg{width:14px;height:14px;flex:none}
.extras{margin-top:6px;display:flex;flex-direction:column;gap:12px}
.empty{background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:0 4px 24px rgba(0,0,0,.06);padding:36px 32px;max-width:560px}
.empty h2{margin-bottom:8px}
.empty p{color:var(--muted);font-size:15px}
.lib-foot{background:var(--ink);color:#fff;padding:32px 56px}
.lib-foot-in{max-width:1120px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px}
.lib-foot .ki-badge{height:32px}

/* ---------- Mobil ---------- */
@media(max-width:900px){
  :root{--pad-x:24px}
  .split{flex-direction:column}
  .brand{flex:0 0 auto;padding:28px 24px;gap:24px}
  .brand .logo-row img{height:26px}
  .claim{font-size:clamp(1.7rem,7vw,2.1rem)}
  .body-copy{font-size:15px}
  .brand-foot{display:none}
  .formpane>.w>.legal{display:none}
  .m-foot{display:flex}
  .formpane{flex:1 1 auto;align-items:flex-start;padding:20px 16px}
  .formpane .w{padding:8px 0 20px}
  .cd{padding:28px 22px}
  .hero{padding:20px 24px 36px}
  .hero-top{margin-bottom:28px}
  .hero-in{flex-direction:column;align-items:flex-start;gap:28px}
  .hero-img{width:100%;max-width:420px}
  .lib-main{padding:32px 20px 32px}
  .lib-foot{padding:28px 20px}
}
@media(max-width:600px){
  .grid{grid-template-columns:1fr}
  .actions .btn{width:100%}
  .hero-top img{height:26px}
}
@media(max-width:900px) and (min-width:700px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@supports(padding:max(0px)){
  .brand,.hero,.lib-foot{padding-left:max(var(--pad-x),env(safe-area-inset-left));padding-right:max(var(--pad-x),env(safe-area-inset-right))}
  .lib-foot{padding-bottom:max(28px,env(safe-area-inset-bottom))}
  .m-foot{padding-left:max(var(--pad-x),env(safe-area-inset-left));padding-right:max(var(--pad-x),env(safe-area-inset-right));padding-bottom:max(20px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
