/* =======================================================================
   Assistent Dirk — Tutorial-Overlay (Bottom-Sheet) + Header-Icon
   Global geladen (index.html). Rein clientseitig, blockiert nichts.
   ======================================================================= */

.dirk-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.dirk-overlay.open { opacity: 1; }
.dirk-overlay:not(.open) { pointer-events: none; } /* 4.3.0: ausblendendes Overlay blockiert nie */

.dirk-sheet {
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  transition: transform 0.25s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dirk-overlay.open .dirk-sheet { transform: translateY(0); }

.dirk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 4px 16px;
  flex: 0 0 auto;
}
.dirk-head .dirk-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.dirk-head .dirk-name {
  font-weight: bold;
  font-size: 1.08em;
  flex: 1 1 auto;
  color: #1b1b1b;
}
.dirk-head .dirk-close {
  font-size: 1.7em;
  line-height: 1;
  padding: 2px 10px;
  color: #999;
  cursor: pointer;
}

.dirk-cards {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  flex: 1 1 auto;
  min-height: 0;
}
.dirk-cards::-webkit-scrollbar { display: none; }
.dirk-card {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  scroll-snap-align: center;
  padding: 8px 22px 16px 22px;
  font-size: 1.02em;
  line-height: 1.5;
  color: #222;
  overflow-y: auto;
}

.dirk-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 6px 0 2px 0;
  flex: 0 0 auto;
}
.dirk-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d0d0d0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dirk-dots .dot.active { background: #2f9e44; transform: scale(1.3); }

.dirk-btn {
  margin: 8px 16px 16px 16px;
  padding: 12px;
  border-radius: 12px;
  background: #2f9e44;
  color: var(--app-text, #fff);
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  flex: 0 0 auto;
}
.dirk-btn:active { filter: brightness(0.92); }

/* --- Header-Icon (in .LoginHeader / .headArea injiziert) --------------- */
.dirk-icon {
  width: 28px; height: 28px;
  flex: 0 0 auto;
  cursor: pointer;
  align-self: center;
}
.dirk-icon img { width: 100%; height: 100%; display: block; }
.headArea .dirk-icon { width: 28px; height: 28px; margin-left: 10px; }

/* --- An/Aus-Schalter in den Einstellungen ----------------------------- */
.dirk-setting { display: flex; align-items: center; }
.dirk-switch {
  width: 46px; height: 26px;
  border-radius: 13px;
  background: #c4c4c4;
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  transition: background 0.2s ease;
}
.dirk-switch.on { background: #63FF9F; }
.dirk-switch span {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s ease, background 0.2s ease;
}
.dirk-switch.on span { left: 23px; background: #073d22; }

/* 4.3.0: Dirk-Tipp des Tages + Zweitbutton */
.dirk-tipp-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(99,255,159,0.16); color: #63FF9F; font-size: 11px; font-weight: 600; vertical-align: middle; }
.dirk-btn--sekundaer { background: #eef2f5 !important; color: #1c2b3a !important; border: 1px solid #d5dde4 !important; margin-bottom: 4px; }
