/* WELLE 1 - Alle UI-Verbesserungen aus Audit-Punkten */

/* ===== #064 Empty States ===== */
.w1-empty{
  text-align:center;padding:48px 24px;
  color:rgba(245,245,247,.5);
  font-family:-apple-system,'Inter',sans-serif
}
.w1-empty-i{font-size:48px;margin-bottom:14px;opacity:.5}
.w1-empty-t{font-size:16px;color:rgba(245,245,247,.7);margin-bottom:6px;font-weight:600}
.w1-empty-s{font-size:13px;margin-bottom:18px}

/* ===== #065 Loading States ===== */
.w1-skel{
  background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.08),rgba(255,255,255,.04));
  background-size:200% 100%;
  animation:w1Skel 1.4s infinite;
  border-radius:8px;height:14px;margin:6px 0
}
@keyframes w1Skel{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}

/* ===== #066 Error States ===== */
.w1-err{
  padding:18px 22px;border-radius:14px;
  background:rgba(255,0,110,.08);
  border:1px solid rgba(255,0,110,.3);
  color:#ff4d8d;
  font-family:-apple-system,'Inter',sans-serif;font-size:14px;
  margin:14px 0
}
.w1-err strong{color:#ff006e}

/* ===== #071 Password-Strength-Indicator ===== */
.w1-pw-bar{
  height:4px;border-radius:2px;
  background:rgba(255,255,255,.08);
  margin-top:8px;overflow:hidden
}
.w1-pw-fill{
  height:100%;transition:all .25s;
  border-radius:2px
}
.w1-pw-0{width:0%;background:#ff006e}
.w1-pw-1{width:25%;background:#ff006e}
.w1-pw-2{width:50%;background:#ffb800}
.w1-pw-3{width:75%;background:#aaff00}
.w1-pw-4{width:100%;background:linear-gradient(90deg,#aaff00,#00f5ff)}
.w1-pw-l{
  font-family:'JetBrains Mono',monospace;font-size:10px;
  text-transform:uppercase;letter-spacing:.15em;
  margin-top:6px
}

/* ===== #074 Focus-Indicators (Accessibility) ===== */
*:focus-visible{
  outline:2px solid #00f5ff!important;
  outline-offset:2px!important;
  border-radius:4px
}

/* ===== #075 Tooltips ===== */
[data-tip]{position:relative;cursor:help}
[data-tip]::after{
  content:attr(data-tip);
  position:absolute;bottom:calc(100% + 8px);left:50%;
  transform:translateX(-50%);
  padding:7px 12px;border-radius:8px;
  background:rgba(20,20,32,.96);
  backdrop-filter:blur(12px);
  border:1px solid rgba(0,245,255,.3);
  color:#fff;font-size:11px;
  font-family:-apple-system,'Inter',sans-serif;
  white-space:nowrap;pointer-events:none;
  opacity:0;visibility:hidden;
  transition:all .2s;z-index:9999
}
[data-tip]:hover::after{opacity:1;visibility:visible}

/* ===== #097 Reduced Motion ===== */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important
  }
}

/* ===== #098 High Contrast ===== */
@media (forced-colors: active){
  .ak-cta,.btn-p,.pd-cta-p{
    border:2px solid CanvasText!important;
    forced-color-adjust:none
  }
}

/* ===== #189 Bug-Report Button ===== */
.w1-bug-btn{
  position:absolute;top:8px;right:8px;
  width:24px;height:24px;border-radius:50%;
  background:rgba(255,0,110,.1);
  border:1px solid rgba(255,0,110,.3);
  color:#ff006e;font-size:12px;
  display:none;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;transition:all .2s;z-index:5
}
.card:hover .w1-bug-btn,
.pp-exam-card:hover .w1-bug-btn{
  opacity:1
}
.w1-bug-btn:hover{
  background:#ff006e;color:#fff;transform:scale(1.1)
}

/* ===== #063 Onboarding Tour ===== */
.w1-tour{
  position:fixed;inset:0;background:rgba(7,7,16,.75);
  backdrop-filter:blur(8px);z-index:99996;
  display:none;align-items:center;justify-content:center
}
.w1-tour.on{display:flex}
.w1-tour-box{
  max-width:480px;width:90%;
  background:rgba(15,15,26,.98);
  border:1px solid rgba(0,245,255,.3);
  border-radius:22px;padding:36px;
  text-align:center;
  box-shadow:0 32px 80px -20px rgba(0,245,255,.4)
}
.w1-tour-eye{
  font-family:'JetBrains Mono',monospace;
  font-size:10px;color:#00f5ff;text-transform:uppercase;
  letter-spacing:.25em;margin-bottom:14px
}
.w1-tour h2{
  font-family:-apple-system,'SF Pro Display','Inter',sans-serif;
  font-weight:800;font-size:26px;letter-spacing:-.03em;
  margin:0 0 12px;color:#fff
}
.w1-tour p{color:rgba(245,245,247,.75);font-size:14px;margin:0 0 24px;line-height:1.6}
.w1-tour-img{font-size:64px;margin-bottom:16px}
.w1-tour-dots{display:flex;gap:6px;justify-content:center;margin-bottom:20px}
.w1-tour-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.2);transition:all .25s}
.w1-tour-dot.on{width:24px;border-radius:4px;background:linear-gradient(135deg,#00f5ff,#ff006e)}
.w1-tour-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.w1-tour-btns button{
  padding:11px 22px;border-radius:999px;
  font-family:-apple-system,'Inter',sans-serif;
  font-size:13px;font-weight:600;cursor:pointer;
  border:1px solid transparent;transition:all .25s
}
.w1-tour-next{
  background:linear-gradient(135deg,#00f5ff,#8b5cf6);
  color:#070710
}
.w1-tour-skip{
  background:transparent;
  color:rgba(245,245,247,.5);
  border-color:rgba(255,255,255,.1)
}
.w1-tour-skip:hover{color:#fff}

/* ===== #076 PWA Install Banner ===== */
.w1-pwa-banner{
  position:fixed;bottom:20px;left:20px;right:20px;
  max-width:420px;margin:0 auto;
  background:rgba(15,15,26,.96);
  backdrop-filter:blur(20px);
  border:1px solid rgba(0,245,255,.3);
  border-radius:18px;padding:18px 20px;
  display:none;align-items:center;gap:14px;
  z-index:99995;
  box-shadow:0 20px 50px -15px rgba(0,245,255,.3);
  animation:w1Slide .35s cubic-bezier(.16,1,.3,1)
}
@keyframes w1Slide{from{transform:translateY(40px);opacity:0}to{transform:translateY(0);opacity:1}}
.w1-pwa-banner.on{display:flex}
.w1-pwa-icon{
  width:42px;height:42px;border-radius:11px;
  background:linear-gradient(135deg,#d4a574,#ff006e,#00f5ff);
  display:grid;place-items:center;color:#070710;
  font-size:22px;flex-shrink:0
}
.w1-pwa-text{flex:1;min-width:0}
.w1-pwa-t{font-weight:700;color:#fff;font-size:13px}
.w1-pwa-s{color:rgba(245,245,247,.6);font-size:11px;margin-top:2px}
.w1-pwa-btn{
  padding:8px 14px;border-radius:999px;
  background:linear-gradient(135deg,#00f5ff,#8b5cf6);
  color:#070710;border:none;
  font-size:12px;font-weight:700;cursor:pointer
}
.w1-pwa-close{
  background:none;border:none;
  color:rgba(245,245,247,.5);
  font-size:18px;cursor:pointer;padding:4px 8px
}

/* ===== #060 Search-Bar fuer Quiz ===== */
.w1-search{
  display:flex;align-items:center;gap:8px;
  padding:10px 16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  margin-bottom:16px;
  transition:all .2s
}
.w1-search:focus-within{
  border-color:rgba(0,245,255,.4);
  background:rgba(0,245,255,.04)
}
.w1-search input{
  flex:1;background:none;border:none;outline:none;
  color:#fff;font-family:-apple-system,'Inter',sans-serif;
  font-size:14px
}
.w1-search input::placeholder{color:rgba(245,245,247,.4)}

/* ===== Toast-Notifications ===== */
.w1-toast{
  position:fixed;top:90px;right:20px;
  padding:14px 20px;border-radius:14px;
  background:rgba(15,15,26,.96);
  backdrop-filter:blur(20px);
  border:1px solid rgba(0,245,255,.3);
  color:#fff;font-family:-apple-system,'Inter',sans-serif;
  font-size:13px;z-index:99994;
  display:none;align-items:center;gap:10px;
  animation:w1Slide .3s;
  max-width:360px
}
.w1-toast.on{display:flex}
.w1-toast.ok{border-color:rgba(170,255,0,.4);background:rgba(170,255,0,.08)}
.w1-toast.err{border-color:rgba(255,0,110,.4);background:rgba(255,0,110,.08)}
