/*
 * CD-DEALS: vzhled náhledu prezentace (verejne/js/prezentace-kresleni.js) a stránky Prezentace.
 * Slide má logickou velikost 1920 × 1080 px a JavaScript ho zmenšuje na šířku rámečku (transform: scale).
 * Všechny rozměry uvnitř .pz-slide jsou proto v logických pixelech. Barvy a písma dodává značka přes --pz-… .
 */

.pz-blok { margin: 0 0 var(--mezera, 16px); }

.pz-ramec {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .22);
}

.pz-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: 0 0;
  background: var(--pz-bg, #fff);
  color: var(--pz-barva-text, #1d1d1b);
  font-family: var(--pz-pismo-text, system-ui, "Segoe UI", Roboto, Arial, sans-serif);
  font-weight: var(--pz-vaha-text, 400);
  font-size: 40px;
  line-height: 1.4;
  background-size: cover;
  background-position: center;
}

.pz-slide, .pz-slide * { box-sizing: border-box; }

.pz-pole {
  position: absolute;
  margin: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.pz-prvni-odstavec {
  font-family: var(--pz-pismo-nadpis, Georgia, "Times New Roman", serif);
  font-weight: var(--pz-vaha-nadpis, 700);
  color: var(--pz-barva-nadpis, #1d1d1b);
  font-size: 50px;
  line-height: 1.2;
}

/* ---------- role textu */
.pz-rola-nadpis {
  font-family: var(--pz-pismo-nadpis, Georgia, "Times New Roman", serif);
  font-weight: var(--pz-vaha-nadpis, 700);
  color: var(--pz-barva-nadpis, #1d1d1b);
  font-size: 76px;
  line-height: 1.15;
}
.pz-rola-podnadpis { font-size: 44px; line-height: 1.3; opacity: .85; }
.pz-rola-text { font-size: 44px; line-height: 1.45; }
.pz-rola-popisek { font-size: 32px; line-height: 1.45; opacity: .8; }
.pz-rola-cena {
  font-family: var(--pz-pismo-nadpis, Georgia, "Times New Roman", serif);
  font-weight: var(--pz-vaha-nadpis, 700);
  color: var(--pz-barva-nadpis, #1d1d1b);
  font-size: 96px;
  line-height: 1.1;
}

/* ---------- obrázky a logo */
.pz-pole[data-typ="obrazek"] { overflow: hidden; border-radius: 18px; }
.pz-pole[data-typ="obrazek"] img,
.pz-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pz-pole[data-typ="obrazek"].pz-vlozit img { object-fit: contain; }
.pz-pole[data-typ="obrazek"].pz-celoplosny { border-radius: 0; }
.pz-logo { overflow: hidden; }
.pz-logo img { object-fit: contain; object-position: left center; }
.pz-layout-text_obrazek .pz-logo img { object-position: right center; }
.pz-obrazek-prazdny { background: var(--pz-primarni, #1f4fd1); opacity: .14; }
.pz-chybi { background: repeating-linear-gradient(45deg, #ececec, #ececec 16px, #f6f6f6 16px, #f6f6f6 32px); }

/* ---------- cena, [DOPLNIT] */
.pz-cena-castka { display: block; }
.pz-cena-pripona {
  display: block;
  margin-top: 8px;
  font-family: var(--pz-pismo-text, system-ui, "Segoe UI", Roboto, Arial, sans-serif);
  font-weight: var(--pz-vaha-text, 400);
  font-size: 36px;
  line-height: 1.3;
}
.pz-doplnit {
  background: #fff1b8 !important;
  color: #7a4b00 !important;
  box-shadow: inset 0 0 0 4px #e6b800;
  border-radius: 12px;
  padding: 8px 20px;
}
.pz-rola-cena.pz-doplnit .pz-cena-castka { font-size: 64px; }

.pz-seznam { list-style: none; margin: 0; padding: 0; }
.pz-seznam li { position: relative; padding-left: 56px; margin: 0 0 26px; font-size: 44px; line-height: 1.35; }
.pz-seznam li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pz-primarni, #1f4fd1);
}

/* ---------- layout titul */
.pz-layout-titul::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 230px;
  width: 140px;
  height: 10px;
  background: var(--pz-primarni, #1f4fd1);
}
.pz-layout-titul .pz-pole-nadpis { left: 120px; top: 270px; width: 780px; height: 430px; font-size: 88px; line-height: 1.15; }
.pz-layout-titul .pz-pole-podnadpis { left: 120px; top: 730px; width: 780px; height: 200px; font-size: 40px; }
.pz-layout-titul .pz-pole-obrazek { left: 960px; top: 0; width: 960px; height: 1080px; border-radius: 0; }
.pz-layout-titul .pz-logo { left: 120px; top: 960px; width: 260px; height: 70px; }

/* ---------- layout text_obrazek */
.pz-layout-text_obrazek::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 70px;
  width: 100px;
  height: 8px;
  background: var(--pz-primarni, #1f4fd1);
}
.pz-layout-text_obrazek .pz-pole-nadpis { left: 120px; top: 100px; width: 1680px; height: 190px; }
.pz-layout-text_obrazek .pz-pole-text { left: 120px; top: 320px; width: 840px; height: 660px; font-size: 42px; line-height: 1.45; }
.pz-layout-text_obrazek .pz-pole-obrazek { left: 1020px; top: 320px; width: 780px; height: 660px; }
.pz-layout-text_obrazek .pz-logo { left: 1560px; top: 1000px; width: 240px; height: 50px; }

/* ---------- layout cena */
.pz-layout-cena::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 70px;
  width: 100px;
  height: 8px;
  background: var(--pz-primarni, #1f4fd1);
}
.pz-layout-cena .pz-pole-nadpis { left: 120px; top: 100px; width: 1680px; height: 190px; }
.pz-layout-cena .pz-pole-polozky { left: 120px; top: 330px; width: 880px; height: 560px; white-space: normal; }
.pz-layout-cena .pz-pole-cena {
  left: 1060px;
  top: 330px;
  width: 740px;
  height: 330px;
  padding: 44px 48px;
  background: var(--pz-primarni, #1f4fd1);
  color: var(--pz-na-primarni, #fff);
  border-radius: 22px;
  display: block;
}
.pz-layout-cena .pz-pole-cena.pz-rola-cena { color: var(--pz-na-primarni, #fff); }
.pz-layout-cena .pz-pole-cena.pz-doplnit { background: #fff1b8 !important; }
.pz-layout-cena .pz-pole-podminky { left: 1060px; top: 700px; width: 740px; height: 190px; }
.pz-layout-cena .pz-logo { left: 1560px; top: 960px; width: 240px; height: 70px; }
.pz-layout-cena .pz-logo img { object-position: right center; }

/* ---------- poznámka pro prezentujícího (mimo slide, jen pro tým) */
.pz-poznamka {
  margin-top: 8px;
  padding: 10px 14px;
  background: #f1efe9;
  border-left: 4px solid #b8b09c;
  border-radius: 4px;
  font-size: .9rem;
  line-height: 1.45;
  white-space: pre-line;
  color: #3a3a36;
}

/* ---------- stránka Prezentace (prezentace-stranka.js dodá P5, tady jen základ měřicího kontejneru) */
.pz-mereni {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 1920px;
  visibility: hidden;
  pointer-events: none;
}
.pz-mereni .pz-blok { margin: 0; }
