/* uprava sirky bloku s uzsim containerem */
.container--article .col-text,
.container--article .section--header,
.container--article .section--text,
.container--article .section-blank,
.container--article .section-title,
.container--article .section-header,
.container--article .section-cta,
.container--article .col-text.section-bg-light>*,
.container--article .col-text.section-bg>*,
.container--article .section--header.section-bg-light>*,
.container--article .section--header.section-bg>*,
.container--article .section--text.section-bg-light>*,
.container--article .section--text.section-bg>*,
.container--article .section-blank.section-bg-light>*,
.container--article .section-blank.section-bg>*,
.container--article .section-title.section-bg-light>*,
.container--article .section-title.section-bg>*,
.container--article .section-header.section-bg-light>*,
.container--article .section-header.section-bg>*,
.container--article .section-cta.section-bg-light>*,
.container--article .section-cta.section-bg>*,
.col-text.section-bg-light>*,
.col-text.section-bg>*,
.section--header.section-bg-light>*,
.section--header.section-bg>*,
.section--text.section-bg-light>*,
.section--text.section-bg>*,
.section-blank.section-bg-light>*,
.section-blank.section-bg>*,
.section-title.section-bg-light>*,
.section-title.section-bg>*,
.section-header.section-bg-light>*,
.section-header.section-bg>*,
.section-cta.section-bg-light>*,
.section-cta.section-bg>*,
.section-pricelist.section-bg-light>*,
.section-pricelist.section-bg>*,
.col-text,
.section--header,
.section--text,
.section-blank,
.section-title,
.section-header,
.section-cta,
.section-pricelist {
  max-width: unset;
}

/* barva menu */
.navbar {
  background-color: #f2f2f2;
}

/* Vlastní motiv jen na úvodní stránce */
#motive {display:none;}
#index #motive {display:block;}

/* fonty nadpisů a odstavců */
h1 {font-family: 'Lora', Georgia, "Times New Roman", serif;}
h2 {font-family: 'Lora', Georgia, "Times New Roman", serif;}
h3 {font-family: 'Lora', Georgia, "Times New Roman", serif;}
p {font-family: 'Lora', Georgia, "Times New Roman", serif;}
.malyNadpis {font-family: 'Oswald', Helvetica, Arial, Lucida, sans-serif;}
a {font-family: 'Lora', Georgia, "Times New Roman", serif;}
li {font-family: 'Lora', Georgia, "Times New Roman", serif;}

/* Změna barvy sudých/lichých pruhovaných řádků v tabulce pricelist */
.custom-striped tbody tr:nth-of-type(odd) > * {
  background-color: #eef2f5 !important;
  box-shadow: none !important;
  color: inherit;
}

/*  vlastní motiv animovaný  */
@keyframes anim {
  from {
    -webkit-transform: scale(1) translateX(0);
    transform: scale(1) translateX(0);
  }
  to {
    -webkit-transform: scale(1.3) translateX(-10%);
    transform: scale(1.3) translateX(-10%);
  }
}

.custom-motive {
  max-height: calc(100vh - 56px);
  height: calc(100vh - 56px);
}

.motive:not(.fullscreen)>.section-carousel .carousel {
  max-height: calc(100vh - 56px);
}

/* ZMĚNA: Cílíme výhradně na pozadí, ne na logo */
.motive:not(.fullscreen)>.section-carousel .carousel-item img.hero-bg-img {
  max-height: calc(100vh - 56px);
  height: calc(100vh - 56px);
  -webkit-animation: anim 90s linear infinite alternate;
  animation: anim 90s linear infinite alternate;
}


/* --- Hlavní nastavení (Desktop) --- */

.carousel-caption {
  top: 5% !important;   /* Vzdálenost od horního okraje */
  bottom: auto !important; /* Zrušíme výchozí spodní ukotvení Bootstrapu */
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%); /* Zajišťuje horizontální centrování */
  width: 90%;
  max-width: 1050px; /* Rozšířeno pro pohodlné vešly loga a H1 vedle sebe */
  padding: 20px;
  text-align: center;
}

/* --- Rozvržení loga a nadpisu vedle sebe --- */
.header-logo-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 25px !important;
  margin-bottom: 15px !important;
  width: 100% !important;
}

.header-logo-container img.header-logo {
  /* Výška určuje velikost loga na desktopu */
  height: 150px !important;
  max-height: 150px !important;
  min-height: 150px !important;

  /* Automatická šířka zachová originální poměr stran */
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;

  /* Zamezení roztažení od Flexboxu a Bootstrapu */
  flex: 0 0 auto !important;
  align-self: center !important;
  object-fit: contain !important;

  /* Vynucené vypnutí animace z hlavního pozadí */
  animation: none !important;
  -webkit-animation: none !important;
  transform: none !important;
  -webkit-transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Nadpis */
.carousel-caption h1 {
  font-size: 3.5rem; /* Mírně upraveno pro lepší návaznost na logo */
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0px 0px 20px rgba(0, 0, 0, 0.6);
  margin: 0 !important;
  text-align: left; /* Text nadpisu zarovnaný vlevo od loga */
}

/* Odstavec */
.carousel-caption p {
  color: #ffffff;
  font-size: 1.25rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0px 0px 10px rgba(0, 0, 0, 0.7);
}

/* --- Responzivita (Mobilní telefony do 767px) --- */
@media screen and (max-width: 767px) {
  .carousel-caption {
    top: 2% !important; /* Na mobilu ještě o kousek výše */
  }

  .header-logo-container {
    flex-direction: column !important; /* Na mobilu logo NAD nadpisem */
    gap: 10px !important;
  }

  .header-logo-container img.header-logo {
    height: 80px !important;  /* Zmenšení loga na mobilu */
    max-height: 80px !important;
    min-height: 80px !important;
    width: auto !important;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
    text-align: center; /* Na mobilu středění textu */
  }

  .carousel-caption p {
    display: none; /* Schováme na mobilech */
  }
}

/* --- Tabletový režim (768px až 1024px) --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .carousel-caption {
    top: 5% !important;
  }

  .header-logo-container img.header-logo {
    height: 110px !important;
    max-height: 110px !important;
    min-height: 110px !important;
    width: auto !important;
  }

  .carousel-caption h1 {
    font-size: 2.3rem;
  }

  .carousel-caption p {
    display: block !important; /* Zobrazíme na tabletech */
    font-size: 1.1rem;
  }
}

/* animování odstavce ve vlastním motivu */
#rotujiciOdstavec,
#rotujiciOdstavec2 {
  font-size: 20pt;
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-shadow: 1px 1px 2px #000000;
  padding-bottom: 30px;
}

.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* animování tlačítka ve vlastním motivu */
:root {
  --blue-base: rgba(30, 115, 190, 0.5);  /* Základní modrá */
  --blue-hover: rgba(22, 90, 150, 0.8);   /* Sytější modrá při nájezdu */
  --blue-glow: rgba(70, 160, 245, 0.5);   /* Světlejší modrá pro pulzující záři */
  --text-color: #ffffff;
}

/* Kontejner držící tlačítko a jeho animaci */
.button-container {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
}

/* Samotné tlačítko - zmenšené hodnoty */
.blue-button {
  position: relative;
  z-index: 2;
  padding: 12px 26px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background: var(--blue-base);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Interakce */
.blue-button:hover {
  background: var(--blue-hover);
  transform: scale(1.03);
}

.blue-button:active {
  transform: scale(0.97);
}

/* Pulzující animace přizpůsobená velikosti */
.button-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--blue-glow);
  border-radius: 30px;
  z-index: 1;
  animation: pulse-simple 4s infinite ease-out;
}

@keyframes pulse-simple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3, 1.6);
    opacity: 0;
  }
}