* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  	font-family: "Roboto", sans-serif;
  	background-color: #f0f0f0;
	overflow-x: hidden;
  overscroll-behavior: none;
  scroll-behavior: smooth;

}

.sectionnadpis {
  width: 100%;
  height: auto;
  color: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 10% 0 10%;
}
.sectionnadpis h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  width: 100%;
  margin: 20px 0;
  text-align: left;
}
.sectionnadpis p {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 50px;
  text-align: left;
  color: black;
}

.section4 {
	display: flex;
  justify-content: center;
  align-items: center;
}

.interactive-section {
  width: 90vw;
  height: auto;
  background: linear-gradient(to bottom, var(--blue), #19405B);
  border-radius: 40px;
  color: white;
  display: flex;
  justify-content: space-between;
}

.content-box {
  display: flex;
  width: 100%;
}

.headings {
  width: 25%;
  margin: 100px 10px 100px 10%;
}

.headings h1 {
  font-size: 1.5rem;
  opacity: 0.3;
  color: white;
  transform: scale(.9) translateX(0);
  transition: opacity 0.3s ease, transform 0.5s ease, color 0.5s ease;
}

.headings h1.active {
  opacity: 1;
  color: white;
  transform: scale(1) translateX(10px);
}

.heading {
  cursor: pointer;
  margin-bottom: 10px;
}

.description {
  overflow: hidden;
  position: relative;
  flex: 2;
  
}

#description-text {
  white-space: normal;
  max-width: 80%;
  text-align: left;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  margin: 100px 0 100px 0;
  position: absolute;
  left: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
  list-style: none;
  padding-left: 0;
}

#description-text li {
  position: relative;
  padding-left: 1.2em;   /* místo pro „|“ */
  margin: 0 0 .4em;
}

#description-text li::before {
  content: "|";
  position: absolute;
  left: 0;               /* ukotví symbol vlevo od textu */
  top: 0;                /* jemně doladíš podle fontu: např. 0.1em */
  font-weight: 600;
}

#description-text.fade-out {
  opacity: 0;
  transform: translateY(-100px);
}

#image-container {
  width: auto; /* Nastavte požadovanou šířku v procentech */
  aspect-ratio: 1 / 1;  /*Udržuje poměr stran 1:1 */
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: absolute;
  right: 20%;
  bottom: 0;
  transform: scale(1) rotateZ(8deg) translateY(10px);
  border-radius: 40px;
	border: 2px solid white;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#image-container.fade-out {
  opacity: 0;
  transform: scale(.8) translateY(300px);
}

#description-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#description-image.hidden {
  opacity: 0;
  transform: scale(0.8) rotate(-15deg);
}

/* Další styly pro plynulost animací */
#description-text.fade-in,
#image-container.fade-in {
  /* Tato třída může být použita, pokud potřebujete animaci zobrazení */
  opacity: 1;
}

#description-text.fade-out,
#image-container.fade-out {
  opacity: 0;
}

.footer {
  color: white;
  width: 100vw;
  display: grid;
  place-items: center;
  color: white;
}
.footer-box {
  display: flex;
  justify-content: space-between;
  width: 90%;
  padding: 50px 5%;
  background-color: var(--blue);
  border-radius: 20px 20px 0 0;
}
.footer-box .right, .footer-box .left {
  display: flex;
  flex-direction: column;
  gap: 10px;

}
.footer-box a {
  color: white;
  text-decoration: underline;
  font-size: 1rem;
}


.cookies {
  position: fixed;
  z-index: 20000;
  width: 90vw;
  background-color: var(--blue);
  color: white;
  border-radius: 40px;
  padding: 40px 5%;
  left: 50%;
  transform: translateX(-50%);
  bottom: 50px;
  box-shadow: black 0px 0px 10px;
}
.cookies h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.cookies p {
  font-size: 1rem;
  margin-bottom: 20px;
}
.cookies span {
  width: 100%;
  display: inline-block;
  height: 2px;
  background: linear-gradient(to right, var(--blue), white, var(--blue));
  margin-bottom: 20px;
}
.cookies button {
  background-color: white;
  color: var(--blue);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 20px;
  margin-right: 20px;
}
#save-cookies {
  margin-top: 20px;
}



.about {
  width: 100vw;
  height: auto;
  color: white;
  padding: 50px 5%;
  box-sizing: border-box;
}
.div-about {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding:  100px 5%;
  border-radius: 40px;
  background: linear-gradient(to bottom right, var(--blue), #19405B);
}
.about h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.services {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100vw;
  padding: 50px 10%;
}
.services h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--red);
}
.services-mainbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  place-items: center;
  text-align: center;
  margin: 50px 0;
}
.services-box {
  background-color: white;
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  display: grid;
  place-items: center;
  height: auto;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  font-size: 1.5rem;
  color: var(--red);
}





/* Headline rotator: smooth crossfade + slight vertical slide */
    .headline-rotator { position: relative; display: inline-block; }
    .headline-rotator .rotator__item {
      position: absolute; left: 0; top: 0;
      opacity: 0; transform: translateY(8px);
      transition: opacity 0.5s ease, transform 0.5s ease;
      will-change: opacity, transform;
      white-space: normal; /* allow wrapping */
    }
    .headline-rotator .rotator__item.is-in { opacity: 1; transform: translateY(0); }
    .headline-rotator .rotator__item.is-out { opacity: 0; transform: translateY(-8px); }
    /* Reserve space to prevent layout jump */
    .headline-rotator { min-height: 1em; }

  @media (max-width: 767px) {
  .headline-rotator {
    display: block;            /* aby mohl zabrat celou šířku */
    width: 90%;                /* 90 % šířky obrazovky */
    margin: 0 auto;            /* vycentrování vodorovně */
    text-align: center;        /* zarovnání textu na střed */
    min-height: unset; 
  }
  
  .headline-rotator br { 
    display: none; 
  }

  .headline-rotator .rotator__item {
    font-size: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(8px); /* centrování absolutních spanů */
    text-align: center;
    white-space: normal;  
    width: 100%;     /* aby text zalamoval */
  }

  .headline-rotator .rotator__item.is-in {
    transform: translateX(-50%) translateY(0);
  }

  .headline-rotator .rotator__item.is-out {
    transform: translateX(-50%) translateY(-8px);
  }

  .about {
    padding: 20px 0;
  }
  .div-about {
    padding: 50px 7%;
    
  }
  .div-about h1 {
    font-size: 2rem;
  }
  .services {
    padding: 50px 7%;
  }
  .services-mainbox {
    margin: 20px 0;
  }
  .footer-box {
    width: 100%;
  }

}