/* =======================
   GLOBAL / BASE
   ======================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

/* =======================
   MAIN / HOME PORTRAIT
   ======================= */
.home-portrait-container {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-color: white;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 0;
}
.home-portrait-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  background-color: rgba(14, 12, 12, 0.415);
  z-index: -1;
}

/* Scroll Down Button */
#scroll-down-container {
  display: block;
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  margin-top: 280px;
}
#scroll-down-box1, #scroll-down-box2, #scroll-down-box3 {
  margin-bottom: -85px;
  opacity: 0;
  animation: scroll-down-keyframes 6s linear infinite;
}
.scroll-down-symbol { height: 60px; }
@keyframes scroll-down-keyframes {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  100% { transform: translate3d(0, 45px, 0); opacity: 0; }
}

/* Home portrait footer */
#home-portrait-footer {
  display: block;
  box-sizing: content-box;
  position: static;              /* NICHT absolute */
  z-index: auto;                 /* kein Überlagern */
  width: 100%;
  padding: 5px;
  text-align: center;
  bottom: 0;
  background-color: var(--primary-transparent);
  z-index: 10;
  color: var(--primary-transparent-text-color);
  font-size: var(--font-size-small);
}


/* ICONS */
.icon-text {
  font-family: var(--primary-font);
  font-weight: var(--font-weight-bold);
  color: var(--primary-transparent-text-color);
  display: inline-block;
  margin-right: 10px;
  font-size: var(--font-size-small);
}

/* =======================
   WELCOME / BOOKING
   ======================= */
#welcome {
  text-align: center;
  position: relative;
  background-color: var(--solid-gray);
}
#welcome-container { position: relative; }
#welcome-container:before {
  content: ' ';
  display: block;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background-image: url(backgrounds/BG-welcome.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}
#welcome-text {
  position: relative;
  color: var(--secondary-color);
  padding: 15px 1rem;
  display: flex;
  text-align: center;
  z-index: 0;
  font-size: var(--font-size-base);
}

/* Restore larger horizontal padding on wide screens */
@media (min-width: 900px) {
  #welcome-text { padding: 15px 150px; }
}
.booking { background-image: var(--gradient-color); }
.input-group { margin-bottom: 1rem; }
.input-label {
  display: block;
  font-size: var(--font-size-base);
  text-transform: uppercase;
  color: white;
  font-weight: bold;
  margin-bottom: 0.8rem;
}
.input, .options {
  outline: none;
  border: none;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.8rem;
  font-weight: bold;
  color: var(--secondary-color);
  letter-spacing: 1.5px;
  font-family: 'Frank Ruhl Libre', serif;
  resize: none;
}
.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

/* ============================
   SLIDESHOW + PROGRESS BAR
   (KOMPAKT & RESPONSIVE)
   ============================ */
.slideshow-container {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  overflow: hidden;
}
.mySlides {
  display: none;
  position: relative;
  aspect-ratio: 16 / 9;
}
.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation (prev/next) */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 10px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: var(--font-size-nav-buttons);
  user-select: none;
  z-index: 2;
  transition: background-color 0.3s ease;
}
.prev { left: 0; }
.next { right: 0; }
.prev:hover, .next:hover { background-color: rgba(0, 0, 0, 0.8); }

/* Optional: Flexslider-Reste (falls genutzt) */
.flex-direction-nav a {
  display: block;
  width: 30px;
  height: 50px;
  background-color: #2D3339;
  cursor: pointer;
  z-index: 99999;
  opacity: 0;
  position: absolute;
  top: 50%;
  transition: all 0.2s ease-in-out;
}
.flex-direction-nav a:hover { background-color: #11ABB0; }
.flex-direction-nav .flex-next {
  right: 0;
  background: #2D3339 url(../images/direction-nav-right.png) no-repeat 53% 50%;
}
.flex-direction-nav .flex-prev {
  left: 0;
  background: #2D3339 url(../images/direction-nav-left.png) no-repeat 47% 50%;
}
.flexslider:hover .flex-next, .flexslider:hover .flex-prev { opacity: 1; }
.flex-direction-nav .flex-disabled { opacity: .3 !important; cursor: default; }

/* Fade animation (falls verwendet) */
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }

/* Progress Bars */
.slideshow-progress-container {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slide-progress {
  position: relative;
  width: 70px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}
.slide-progress-bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%; width: 0;
  background: #fff;
  transition: width linear;
}

/* =======================
   HERO / TITLE SECTION
   ======================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 450px;
  background: url("images/gallery/villa-adria-pool-croatia-sabunike.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-content { max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 3em; margin-bottom: 0.3em; }
.hero-content p { font-size: 1.2em; line-height: 1.5; }

/* =======================
   INTRO SECTION
   ======================= */
.intro-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  line-height: 1.6;
  color: #333;
}
.intro-section h2 { font-size: 2em; margin-bottom: 0.5em; }

/* ===========================
   HIGHLIGHTS / AMENITIES
   =========================== */
.highlights-section { background: #ffffff; padding: 40px 20px; }
.highlights-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  text-align: center;
}
.highlight-box {
  background: #fafafa;
  padding: 20px;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}
.highlight-box:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.highlight-box i { font-size: 2em; margin-bottom: 10px; color: #333; }
.highlight-box h3 { margin-bottom: 10px; font-size: 1.2em; }
.highlight-box p { font-size: 0.95em; line-height: 1.4; }

.highlights-container {
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* fix 2 Spalten */
}

/* =======================
   INDEX CONTAINER
   ======================= */
.index-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 0;
  text-align: center;
}
.index-container h2 { font-size: 2em; margin-bottom: 0.3em; }
.index-container p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555;
  line-height: 1.6;
}

/* =======================
   GALLERY SECTION
   ======================= */
.gallery-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.gallery-title { text-align: center; margin-bottom: 10px; }
.gallery-title h2 { font-size: 2em; margin: 0; }
.gallery-description {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}
.gallery-grid .image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.gallery-grid img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.05); }
.caption {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  text-align: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-container:hover .caption { opacity: 1; }

/* =======================
   LIGHTBOX
   ======================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 5%;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}
.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}
.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s;
  cursor: pointer;
  user-select: none;
}
.lightbox-nav:hover { color: #bbb; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.thumbnail-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}
.thumbnail-container img {
  width: 80px;
  height: auto;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
  opacity: 0.8;
}
.thumbnail-container img:hover { transform: scale(1.1); opacity: 1; }
.thumbnail-container img.active { border: 3px solid #fff; opacity: 1; }

/* =======================
   TESTIMONIAL SECTION
   ======================= */
.testimonial-section {
  background: #ffffff;
  padding: 40px 20px;
  text-align: center;
}
.testimonial-section h2 { font-size: 2em; margin-bottom: 0.5em; }
.testimonial-container {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
}
.testimonial-quote {
  margin: 20px 0;
  font-style: italic;
  position: relative;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
  display: inline-block;
}
.testimonial-quote:before,
.testimonial-quote:after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f10d";
  position: absolute;
  color: #ccc;
  font-size: 2em;
}
.testimonial-quote:before { top: -10px; left: -10px; }
.testimonial-quote:after { content: "\f10e"; bottom: -10px; right: -10px; }
.testimonial-author { margin-top: 15px; font-weight: bold; color: #333; }

/* =======================
   CALL-TO-ACTION
   ======================= */
.cta-section {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}
.cta-section h2 { font-size: 2em; margin-bottom: 0.5em; }
.cta-section p { font-size: 1.1em; margin-bottom: 1.2em; line-height: 1.6; }
.cta-btn {
  background: #ff6347;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}
.cta-btn:hover { background: #e0523b; }

/* =======================
   GALLERY CATEGORIES
   ======================= */
.gallery-categories {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.gallery-categories h2 { font-size: 2em; margin-bottom: 0.3em; }
.gallery-categories p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555;
  line-height: 1.6;
}
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  justify-items: center;
}
.category-card {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}
.category-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.category-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

/* === Kategorie-Label: durchgehende Leiste unten === */
.category-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;                 /* feste Position am unteren Rand */
  height: 56px;              /* Leistenhöhe (ggf. anpassen) */
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-transparent);  /* halbtransparentes Schwarz */
  /* Lesbarkeit & Trennung */
  box-shadow: 0 -1px 0 rgba(255,255,255,0.06) inset;
  /* IMMER sichtbar */
  opacity: 1;
  transition: none;          /* kein Ein-/Ausblenden mehr */
}

/* Text klar & zentriert */
.category-content h3 {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(0,0,0,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;   /* lange Labels sauber abkürzen */
}

/* Hover-States: Bild kann weiter zoomen, Leiste bleibt unverändert */
.category-card:hover .category-image { transform: scale(1.1); }
.category-card:hover .category-content { opacity: 1; }

/* Mobile: etwas höhere Leiste, größere Schrift */
@media (max-width: 600px) {
  .category-content { height: 64px; padding: 0 12px; }
  .category-content h3 { font-size: 1.1rem; }
}

.category-card:hover .category-image { transform: scale(1.1); }
.category-card:hover { transform: scale(1.02); }

/* =======================
   RESPONSIVE
   ======================= */

/* Slideshow noch kompakter auf schmaleren Screens */
@media (max-width: 1024px) {
  .mySlides { aspect-ratio: 16 / 10; }
}
@media (max-width: 768px) {
  .mySlides { aspect-ratio: 16 / 12; }
  .slideshow-progress-container { display: none; }
  .prev, .next { padding: 8px; font-size: 1rem; }
}

/* Typografie/Grids */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2em; }
  .intro-section h2 { font-size: 1.8em; }
}
@media (max-width: 600px) {
  #home-portrait-footer {
    background-color: white;
    color: black;
  }

  #home-portrait-footer i {
    display: inline-flex;
    align-items: center;
    margin: 6px 8px;
    font-size: 0.95rem;
  }
  .icon-text { margin-right: 0; }
  .categories-grid { grid-template-columns: 1fr; }

  .index-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}


@media (max-width: 410px) {
  .highlights-container { grid-template-columns: 1fr; }
}
/* =======================
   DESKTOP: FULLSCREEN IM FLUSS (kein Overlay)
   ======================= */
@media (min-width: 1025px) {
  .slideshow-container {
    position: relative;   /* bleibt im Dokumentfluss */
    height: 100vh;        /* volle Viewport-Höhe */
    max-width: none;      /* keine 1200px-Begrenzung */
    margin: 0;            /* sicherheitshalber */
    overflow: hidden;     /* Bilder sauber beschneiden */
    z-index: auto;        /* kein Überlagern */
  }

  /* Slides füllen nur den Container, Container bleibt im Fluss */
  .mySlides {
    display: none;
    position: absolute;   /* innerhalb des Containers */
    inset: 0;
    height: 100%;
    aspect-ratio: auto;   /* überschreibt mobile Kompaktvariante */
  }
  .mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Navigation/Progress sichtbar, aber ohne Overlay-Zwang */
  .prev, .next {
    padding: 12px;
    font-size: var(--font-size-nav-buttons);
  }
  .slideshow-progress-container {
    bottom: 32px;
    display: flex;
  }
}

/* Desktop: Footer optisch am Slideshow-Ende, Platz wird reserviert */
@media (min-width: 1025px) {
  .slideshow-container,
  .home-portrait-container {
    position: relative;
  }

  /* Platz für den absolut positionierten Footer einplanen
     -> Höhe anpassen, falls dein Footer höher ist */
  .home-portrait-container {
    padding-bottom: 48px;        /* Footer-Höhe als Unterkante frei lassen */
  }

  #home-portrait-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;                   /* klebt am unteren Rand der Home-Section */
    z-index: 1;                  /* über der Slideshow, aber unter folgendem Content */
  }
}

@media (max-width: 768px) {
  .mySlides {
    aspect-ratio: auto;   /* überschreibt die Ratio-Regel */
    height: 50vh;         /* z. B. 70% der Viewport-Höhe */
  }
}

@media (min-width: 1200px) {
  .highlights-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Desktop flexibel */
  }
}
