/* Projektor – Optik der alten Engine (meta.css), plus Zweitsprache in der rechten Bildschirmhälfte */
:root {
  --mainheight: 100%;
  --veil: rgba(0, 0, 0, 0.8);
  --second: #cceeff;
  --accent: #f90;
}
html, body { height: 100%; }
body {
  margin: 0; padding: 0; width: 100%; overflow: hidden;
  background: #000 url('../img/ql_bg_standard.jpg') center bottom / cover no-repeat;
  color: #fff;
  font-family: 'Signika', Arial, sans-serif; font-weight: 600;
  font-size: min(38px, 4.1vw, 4.1vh);
  cursor: none;
}
body.cursor { cursor: default; }
* { box-sizing: border-box; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* ------------------------------------------------ Bühne + Sprachen */
.stage {
  position: fixed; inset: 0;
  display: flex; flex-direction: row;
  background-color: var(--veil);
  padding: 5%;
  gap: 4%;
}
.pane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; transition: flex-basis .35s ease; }
.pane.second { display: none; color: var(--second); }
body.dual .pane.second { display: flex; border-left: 0.15vmin solid rgba(255, 255, 255, 0.25); padding-left: 4%; }
body.dual .stage { font-size: 0.86em; }
body.dual .pane.second .cat { color: #8fb3c7; }
.pane.second .cont > div, .pane.second .cont_r > div { color: var(--second); }

.cat { text-align: right; color: #999; font-size: max(20px, 2vw); padding-bottom: 20px; }
.cat .small, .cat .klein { font-size: 0.5em; line-height: 0.4em; display: block !important; }
.cat > div:empty, .cat > div[data-last=" "] { display: none; }

.stage.i { justify-content: center; align-items: center; background: none; }
.stage.i .pane { justify-content: center; align-items: center; }
.stage.i .cont_wrap { display: none; }
.stage.i .cat {
  font-size: min(120px, 7.5vw); text-align: center; color: #fff; padding-bottom: 0;
  paint-order: stroke fill; animation: bam 0.7s ease-in;
}
body.dual .stage.i .cat { font-size: min(90px, 5vw); }
body.dual .stage.i .pane.second .cat { color: var(--second); }

.cont_wrap { display: flex; flex-direction: row; flex: 1 1 0; min-height: 0; }
.cont_wrap > div { flex: 1; }
.cont, .cont_r { text-align: center; text-shadow: 0.2em 0.2em 0.2em #000; }
.cont > div, .cont_r > div { margin-bottom: max(1%, 10px); }
.cont_r { color: var(--second); margin-left: 5%; }
.cont_r:empty { display: none; }
.cont img { max-width: 100%; }
.cont_wrap .klein { font-size: 0.7em; }
.cont_wrap .kleiner { font-size: 0.68em; line-height: 1.2em; }
.cont_wrap .sehrklein { font-size: 0.5em; line-height: 1.2em; }
.cont_wrap .left { text-align: left; }
.a { color: #fa3; font-size: min(40px, 4.5vw, 4.5vh); }
.pane.second .a { color: #ffd38a; }
.o {
  border-left: var(--accent) 0.5vmin solid; padding: 1.2vmin 1.5vmin;
  font-weight: 300; font-style: italic; text-align: left; color: #fff;
}
.pane.second .o { color: var(--second); }

@keyframes bam {
  0% { transform: scale(0.1); } 30% { transform: scale(1.15); } 45% { transform: scale(0.9); }
  60% { transform: scale(1.1); } 75% { transform: scale(0.95); } 90% { transform: scale(1.05); } 100% { transform: scale(1); }
}

/* ------------------------------------------------ Medien */
.images, .clip, .plugin {
  position: fixed; left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(20, 20, 20, 0.9);
  flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; align-items: center;
}
.images { display: flex; height: var(--mainheight); }
.clip { z-index: 1; display: none; background: #000; }
.clip.on { display: flex; }
.clip video { width: 100%; height: 100%; object-fit: contain; }
.images:empty, .plugin:empty, .audio { display: none; }
.plugin { display: flex; z-index: 2; }
.plugin iframe { width: 100%; height: 100%; border: 0; }
.images > div {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: center / contain no-repeat;
  animation: fade 0.3s linear;
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center; align-items: center;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.images.quad, .images.part { justify-content: flex-start; align-content: flex-start; }
.images.quad > div { position: relative; width: 50%; height: 50%; }
.images.part > div { position: static; width: auto; height: auto; }
.images.triv > div { position: relative; width: 33.33%; height: 100%; }
.images.trih > div { position: relative; width: 100%; height: 33.33%; }

.label { position: absolute; font-size: 2.5vmax; text-align: center; text-shadow: 0 0 0.2em #000, 0 0 0.2em #000, 0 0 0.2em #000; }
.images > div.klein > .label { font-size: 2vmax; }
.images > div.kleiner > .label { font-size: 1.9vmax; }
.images > div.sehrklein > .label { font-size: 1.6vmax; }
.images > div.groesser > .label { font-size: 5vmax; }
.images > div.gross > .label { font-size: 6vmax; }
.images > div.sehrgross > .label { font-size: 10vmax; }
.images > div.schwarz > .label { color: #000; text-shadow: 0 0 0.2em #fff, 0 0 0.2em #fff, 0 0 0.2em #fff; }
.images > div.oben, .images > div.top { padding-top: 2%; align-items: flex-start; }
.images > div.unten, .images > div.bottom { padding-bottom: 2%; align-items: flex-end; }
.images > div.links, .images > div.left { padding-left: 2%; justify-content: flex-start; }
.images > div.rechts, .images > div.right { padding-right: 2%; justify-content: flex-end; }
.images > div.oben > .label, .images > div.top > .label { top: 2vh; }
.images > div.unten > .label, .images > div.bottom > .label { bottom: 2vh; }
.images .label .second { display: none; color: var(--second); font-size: 0.8em; }
body.dual .images .label .second { display: block; }

.mask_hl { position: absolute; z-index: 3; width: 0; height: 100%; top: 0; right: 0; background: #000; }
.curtain { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.curtain video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.tmpFrame {
  position: fixed; inset: 0; z-index: 4;
  background: #000 center / contain no-repeat;
}
.tmpFrame iframe { width: 100%; height: 100%; border: 0; }
.countdown { position: fixed; top: 1vh; left: 1vw; z-index: 6; font-size: 2em; text-shadow: 0 0 0.3em #000; }

/* ------------------------------------------------ Meldungen */
.alert {
  position: fixed; top: 0; left: 0; z-index: 999; color: #000;
  background-color: #ffff007f; font-size: max(4.5vmin, 14px);
  padding: 30px 20px 10px 30px; border-radius: 0 0 10px 0;
}
.alert:empty { display: none; }
.flashMsg {
  position: fixed; inset: 0; display: flex; justify-content: center; align-items: center;
  font-size: 1.5em; color: var(--accent); background: #00000099; z-index: 1000;
  animation: flash 2s forwards;
}
@keyframes flash { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }
.conn {
  position: fixed; bottom: 4px; right: 8px; z-index: 1000;
  font: 300 11px system-ui, sans-serif; color: #888; opacity: .6;
}
.conn.bad { color: #f55; opacity: 1; font-size: 14px; }
.full {
  position: fixed; inset: 0; background: #000; z-index: 1001;
  display: flex; justify-content: center; align-items: center; text-align: center; cursor: pointer;
}
.full .big { font-size: 1.4em; margin-bottom: 1em; }
.full .small { font: 300 16px system-ui, sans-serif; color: #999; margin-top: .5em; }
.full .small a { color: var(--accent); }
