/* ══════════════════════════════
   BOS KITZINGEN - S04
══════════════════════════════ */
#sec-bos { background-color: #000; }

#bos-prog { position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 9000; background: rgba(255,255,255,0.1); }
#bos-prog-fill { height: 100%; width: 0; background: #0078d4; transition: width 0.4s; }

#bos-restart-btn {
  position: absolute; top: 10px; right: 12px; z-index: 9001;
  font-family: 'Segoe UI', Arial, sans-serif; font-size: 11px;
  padding: 5px 12px; background: rgba(255,255,255,0.15); cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.6);
  transition: all 0.2s; border-radius: 3px;
}
#bos-restart-btn:hover { background: rgba(255,255,255,0.25); color: #fff; }

#bos-cursor {
  position: absolute; z-index: 9999; pointer-events: none;
  width: 20px; height: 20px;
  opacity: 0; transition: opacity 0.3s;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}
#bos-cursor svg { width: 20px; height: 20px; }
#bos-cursor.click-anim svg { animation: curclick 0.18s ease-out; }
@keyframes curclick {
  0%  { transform: scale(1); }
  40% { transform: scale(0.75); }
  100%{ transform: scale(1); }
}

#winboot {
  position: absolute; inset: 0; z-index: 20; background: #000;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.wb-logo { display: flex; align-items: center; gap: 10px; }
.wb-squares { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 44px; height: 44px; }
.wb-sq { border-radius: 1px; }
.wb-sq:nth-child(1) { background: #f25022; }
.wb-sq:nth-child(2) { background: #7fba00; }
.wb-sq:nth-child(3) { background: #00a4ef; }
.wb-sq:nth-child(4) { background: #ffb900; }
.wb-wordmark { font-size: 32px; font-weight: 200; color: #fff; letter-spacing: 0.04em; }
.wb-spinner { display: flex; gap: 6px; }
.wb-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.2;
  animation: wbdot 1.4s ease-in-out infinite;
}
.wb-dot:nth-child(1) { animation-delay: 0s; }
.wb-dot:nth-child(2) { animation-delay: 0.18s; }
.wb-dot:nth-child(3) { animation-delay: 0.36s; }
.wb-dot:nth-child(4) { animation-delay: 0.54s; }
.wb-dot:nth-child(5) { animation-delay: 0.72s; }
@keyframes wbdot { 0%,100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* Desktop ID — nur Position, Hintergrund kommt von .win-desktop */
#desktop { z-index: 10; }

/* Taskbar ID — Höhe/Farbe kommt von .win-taskbar */
#taskbar { }
#win-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 6px; transition: background 0.15s;
}
#win-btn:hover { background: rgba(255,255,255,0.1); }
#win-btn svg { width: 16px; height: 16px; }
.tb-item {
  height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.85); border-radius: 6px;
  cursor: default; transition: background 0.15s; margin-left: 4px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.tb-item:hover { background: rgba(255,255,255,0.08); }
.tb-item.active { background: rgba(255,255,255,0.12); border-bottom: 2px solid #0078d4; }
.tb-clock { margin-left: auto; font-size: 11px; color: rgba(255,255,255,0.8); text-align: right; padding: 0 8px; line-height: 1.4; font-family: 'Segoe UI', Arial, sans-serif; }

/* PPT opening dialog */
#ppt-opening {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; border-radius: 4px; padding: 20px 32px;
  display: none; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); min-width: 280px; z-index: 150;
}
.ppt-open-logo { font-size: 32px; }
.ppt-open-title { font-size: 14px; font-weight: 600; color: #c43e1c; }
.ppt-open-sub { font-size: 11px; color: #666; }
.ppt-open-bar { width: 100%; height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden; margin-top: 4px; }
.ppt-open-fill { height: 100%; background: #c43e1c; width: 0; transition: width 0.3s; border-radius: 2px; }

/* POWERPOINT */
#ppt {
  position: absolute; inset: 0; z-index: 10;
  display: none; flex-direction: column; background: #f3f3f3;
}
#ppt-titlebar { background: #c43e1c; padding: 0 12px; height: 32px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.ppt-title-text { font-size: 12px; color: #fff; }
.ppt-win-btns { display: flex; gap: 1px; }
.ppt-wb { width: 46px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,0.8); cursor: default; }
.ppt-wb:hover { background: rgba(255,255,255,0.2); }
.ppt-wb.close:hover { background: #e81123; color: #fff; }

#ppt-ribbon { background: #fff; border-bottom: 1px solid #d6d6d6; flex-shrink: 0; }
.ribbon-tabs { display: flex; padding: 0 8px; border-bottom: 1px solid #d6d6d6; }
.r-tab { padding: 6px 12px; font-size: 12px; color: #444; cursor: default; border-bottom: 2px solid transparent; transition: all 0.15s; }
.r-tab:hover { color: #c43e1c; }
.r-tab.active { color: #c43e1c; border-bottom-color: #c43e1c; }
.ribbon-content { padding: 4px 12px; display: flex; gap: 16px; align-items: center; min-height: 56px; }
.r-group { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; border-right: 1px solid #e0e0e0; }
.r-group:last-child { border-right: none; }
.r-btn { padding: 3px 8px; font-size: 11px; color: #444; cursor: default; border-radius: 2px; display: flex; align-items: center; gap: 4px; }
.r-btn:hover { background: rgba(196,62,28,0.08); }
.r-label { font-size: 10px; color: #888; margin-top: 2px; }

#ppt-main { display: flex; flex: 1; overflow: hidden; min-height: 0; }
#ppt-slides { width: 160px; background: #404040; padding: 8px 4px; overflow-y: auto; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.slide-thumb {
  background: #fff; margin: 0 4px; border-radius: 2px; aspect-ratio: 16/9; cursor: default; position: relative;
  border: 2px solid transparent; transition: border-color 0.2s; overflow: hidden; flex-shrink: 0;
}
.slide-thumb.active { border-color: #c43e1c; }
.slide-thumb-num { position: absolute; left: -18px; top: 50%; transform: translateY(-50%); font-size: 10px; color: rgba(255,255,255,0.5); }
.thumb-inner { width: 100%; height: 100%; padding: 4px; }

#ppt-canvas { flex: 1; display: flex; align-items: center; justify-content: center; background: #525252; padding: 20px; overflow: hidden; position: relative; }
.slide { width: 100%; max-width: 860px; aspect-ratio: 16/9; position: relative; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.5); flex-shrink: 0; display: flex; }

.s1 { background: linear-gradient(135deg, #1a3a5c 0%, #1f5082 100%); width:100%; height:100%; position:relative; }
.s1-accent { position: absolute; bottom: 0; left: 0; right: 0; height: 8px; background: linear-gradient(90deg, #c43e1c, #e8a87c); }
.s1-logo { position: absolute; top: 20px; right: 24px; font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; }
.s1-eyebrow { position: absolute; top: 28%; left: 8%; font-size: clamp(9px,1.2vw,13px); color: rgba(255,255,255,0.5); letter-spacing: 0.2em; text-transform: uppercase; }
.s1-title { position: absolute; top: 36%; left: 8%; right: 8%; font-size: clamp(20px,3.5vw,42px); font-weight: 700; color: #fff; line-height: 1.1; }
.s1-sub { position: absolute; top: 68%; left: 8%; font-size: clamp(10px,1.4vw,16px); color: rgba(255,255,255,0.65); }
.s1-year { position: absolute; bottom: 18px; left: 8%; font-size: clamp(9px,1.1vw,13px); color: rgba(255,255,255,0.35); letter-spacing: 0.1em; }

.s2 { background: #fff; width:100%; height:100%; position:relative; }
.s2-header { position: absolute; top: 0; left: 0; right: 0; height: 18%; background: linear-gradient(90deg, #c43e1c, #e55a2b); display: flex; align-items: center; padding: 0 6%; }
.s2-htitle { font-size: clamp(14px,2.2vw,26px); font-weight: 700; color: #fff; }
.s2-body { position: absolute; top: 20%; left: 6%; right: 6%; }
.bullet { display: flex; gap: 10px; align-items: flex-start; margin-bottom: clamp(6px,1.2vh,14px); opacity: 0; transform: translateX(-8px); transition: opacity 0.4s, transform 0.4s; }
.bullet.show { opacity: 1; transform: translateX(0); }
.bullet-dot { width: clamp(6px,0.9vw,10px); height: clamp(6px,0.9vw,10px); background: #c43e1c; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.bullet-text { font-size: clamp(10px,1.4vw,16px); color: #333; line-height: 1.45; }
.bullet-text strong { color: #c43e1c; }

.s3 { background: #f8f8f8; width:100%; height:100%; position:relative; }
.s3-header { position: absolute; top: 0; left: 0; right: 0; height: 18%; background: #1a3a5c; display: flex; align-items: center; padding: 0 6%; }
.s3-htitle { font-size: clamp(14px,2.2vw,26px); font-weight: 700; color: #fff; }
.s3-grid { position: absolute; top: 22%; left: 4%; right: 4%; bottom: 8%; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(6px,1.5vw,16px); }
.s3-card { background: #fff; border-radius: 4px; padding: clamp(6px,1.2vw,14px); border-left: 4px solid #1a3a5c; box-shadow: 0 1px 4px rgba(0,0,0,0.08); opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s; }
.s3-card.show { opacity: 1; transform: translateY(0); }
.s3-card.orange { border-left-color: #c43e1c; }
.s3-card-title { font-size: clamp(9px,1.2vw,14px); font-weight: 700; color: #1a3a5c; margin-bottom: 4px; }
.s3-card.orange .s3-card-title { color: #c43e1c; }
.s3-card-body { font-size: clamp(8px,1vw,12px); color: #555; line-height: 1.5; }

.s4 { background: #1a3a5c; width:100%; height:100%; position:relative; }
.s4-accent { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, #c43e1c, #e8a87c); }
.s4-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8%; }
.s4-check { font-size: clamp(28px,5vw,56px); margin-bottom: clamp(6px,1.5vh,16px); opacity: 0; transition: opacity 0.5s; }
.s4-check.show { opacity: 1; }
.s4-title { font-size: clamp(16px,3vw,36px); font-weight: 700; color: #fff; margin-bottom: clamp(4px,1vh,12px); opacity: 0; transform: translateY(10px); transition: opacity 0.5s 0.2s, transform 0.5s 0.2s; }
.s4-title.show { opacity: 1; transform: translateY(0); }
.s4-sub { font-size: clamp(10px,1.4vw,16px); color: rgba(255,255,255,0.6); margin-bottom: clamp(8px,2vh,24px); opacity: 0; transition: opacity 0.5s 0.4s; }
.s4-sub.show { opacity: 1; }
.s4-next { display: inline-flex; align-items: center; gap: 8px; background: #c43e1c; color: #fff; padding: clamp(6px,1vh,10px) clamp(12px,2vw,24px); border-radius: 3px; font-size: clamp(9px,1.2vw,14px); font-weight: 600; opacity: 0; transition: opacity 0.5s 0.6s; }
.s4-next.show { opacity: 1; }

#ppt-status { background: #c43e1c; padding: 2px 12px; font-size: 11px; color: rgba(255,255,255,0.8); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; height: 22px; }
#slide-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 50; }
.sdot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: background 0.2s; cursor: pointer; }
.sdot.on { background: #c43e1c; }

#bos-glitch { position: absolute; inset: 0; z-index: 900; pointer-events: none; opacity: 0; background: #0a3d62; }
#bos-blackout { position: absolute; inset: 0; z-index: 901; pointer-events: none; background: #000; opacity: 0; transition: opacity 0.5s; }
#bos-blackout.show { opacity: 1; }

/* ── MOBILE: Ribbon ausblenden ── */
@media screen and (max-width: 1024px) {
    #ppt-ribbon {
        display: none !important;
    }

    #ppt-titlebar {
        font-size: 11px;
        height: 28px;
    }

    #ppt-status {
        font-size: 10px;
        padding: 2px 8px;
    }
}