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

:root {
    --main-color: #3b2e2a;
    --sub-color: #9a876a;
    --bg-color: #f6eddc;
}

body {
  font-family: sans-serif;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  position: fixed;
  top: 0;
  width: 100vw;
  max-width: 100%;
  background-color: var(--bg-color); /* dark brown */
  transition: all 0.3s ease;
  z-index: 10000 !important;
  padding: 1.25rem 0;
}

header.scrolled {
  padding: 0.85rem 0;
}

.nav-container {
  display: flex;
  position: relative;
  max-width: 100%;
  width: 100%;
  padding: 0rem 4rem;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
}

.logo {
  z-index: 1001; /* Above the .mobile-nav (which is 999) */
  position: relative;
  height: 56px; 
  transition: height 0.3s ease;
  cursor: pointer;
}

.logo.scrolled {
  height: 42px;
}

.logo img {
    height: 100%;
    object-fit: contain; /* ensures aspect ratio is kept */
    width: 100%;
    width: auto;
     max-width:100%;
}

/* Hamburger menu */
.hamburger {
  width: 35px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001; /* Above the .mobile-nav (which is 999) */
  position: relative;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: var(--main-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(12px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-12px);
}

/* Mobile Navigation */
.mobile-nav {
  background-color: var(--bg-color);
  color: var(--main-color);
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  opacity: 0.6;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 999;
  padding: 1rem 0;
  display: flex;
  padding: 5rem 4.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}


/* Initial hidden state for list items */
.mobile-nav ul li,
.mobile-nav .nav-kontakt {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Fade in when .active is applied */
.mobile-nav.active ul li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.mobile-nav.active ul li:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.mobile-nav.active ul li:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.mobile-nav.active ul li:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.mobile-nav.active ul li:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.mobile-nav.active ul li:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.mobile-nav.active ul li:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* kontakt block comes last */
.mobile-nav.active .nav-kontakt {
  transition-delay: 0.8s;
  opacity: 1;
  transform: translateY(0);
}

/* Ensure delays reset when menu closes */
.mobile-nav ul li,
.mobile-nav .nav-kontakt {
  transition-delay: 0s;
}

.mobile-nav ul {
  list-style: none;
  padding: 2.5rem 0;
  text-align: right;
}

.mobile-nav li {
  padding: 0.75rem 0;
}

.mobile-nav li a {
  color: var(--main-color);
  text-decoration: none;
  font-size: 1.2rem;
}

.nav-buchen {
  width: 100%;
  text-align: right;
  justify-self: flex-end;
  padding-top: 0;
  color:  var(--sub-color);
  font-size: 0.85rem;   
  margin-right: -10px;
  margin-top: -1.5rem;
}

.nav-kontakt {
  width: 100%;
  text-align: right;
  justify-self: flex-end;
  padding-top: 1.5rem;
  color:  var(--sub-color);
  font-size: 0.85rem;   
}

.hero-video {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullscreen-slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.slide-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.slide-text {
  color: var(--bg-color);
  font-size: 4rem;
  z-index: 100;
  text-align: center;
  padding-bottom: 3rem;
  font-family: "Noto Serif Display", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  position: relative;
  min-width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, rgba(59, 46, 42, 0.7) 85%, rgba(59, 46, 42, 1) 100%);
  z-index: 1;
  pointer-events: none;
}

.slide-content,
.hero-video {
  z-index: 2;
}


/* Controls */
.slider-controls {
  position: absolute;
  bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 10;
}

.arrow {
  font-size: 2rem;
  color: var(--bg-color);
  cursor: pointer;
  user-select: none;
  padding: 0 1rem;
}

.dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg-color);
  border-radius: 50%;
  opacity: 0.4;
  transition: opacity 0.3s;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
  background-color: var(--bg-color);
}

.section-offer {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4rem 2rem;
  background-color: var(--bg-color); /* Creamy background */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #222;
}

.section-offer-footer {
  padding: 6rem 3rem;
  background-color: var(--main-color); /* Creamy background */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #222;
}

.section-offer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.75); /* soft white overlay */
  z-index: 1;
}

.section-offer .container {
  position: relative;
  z-index: 2;
}

.parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url('../img/bg_willkommen.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: translateY(0);
  transition: transform 0.1s linear;
}
.parallax-bg-gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url('../img/bg_gallery.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: translateY(0);
  transition: transform 0.1s linear;
}
.parallax-bg-anreise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300%;
  background-image: url('../img/bg_anreise.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: translateY(0);
  transition: transform 0.1s linear;
}
.parallax-bg-murten {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300%;
  background-image: url('../img/bg_murten.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: translateY(0);
  transition: transform 0.1s linear;
}
.parallax-bg-bewertung {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url('../img/bg_bewertung.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: translateY(0);
  transition: transform 0.1s linear;
}

.parallax-section .container {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.container-gallery {
  max-width: 80%;
  width: 100%;
  text-align: center;
}

.container-footer {
  max-width: 80%;
  width: 100%;
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: var(--main-color); /* Dark brown */
  font-family: "Noto Serif Display", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.offer-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.offer-item {
  flex: 1 1 300px;
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
}

.offer-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.offer-item h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--main-color)
}

.offer-item p {
  font-size: 1rem;
  color: var(--main-color);
  line-height: 1.6;
}

.airbnb-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--main-color); /* Airbnb red */
  color: var(--bg-color);
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.airbnb-button:hover {
  background-color: var(--sub-color);
  color: var(--main-color)
}

.sectionnormal {
    padding-top: 5em;
    padding-bottom: 9em;
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.sectionfooter {
    padding-top: 8em;
    padding-bottom: 8em;
    position: relative;
    overflow: hidden;
    z-index: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #222;
}

.sectionsmall {
  padding-top: 80px;
  position: relative;
  z-index: 0;
}

.sectionnomargin {
  padding-top: 400;
  z-index: 0;
}

.sectiongallery {
  height: 90vh;
  position: relative;
  background-color: var(--bg-color);
  padding-top: 7em;
  padding-bottom: 11em;
  display: flex;
  justify-content: center;
}

.image-section {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 2.5rem; 
  }

.image-row {
  display: flex;
  height: 33.33333%;
    max-width: 100%;
  max-width: 100vw;
  -flex-wrap: wrap;
  justify-content: center;
}

  .image-row img {
  width: 20%;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.4s;
  background-size: cover;
  object-fit: cover;
  border: 1px solid var(--main-color);
  box-sizing: border-box;
  margin: 0.5rem;
  aspect-ratio: 1 / 1;

  
}

.image-row img:hover {
  opacity: 1;
  transition: opacity 0.4s;
}

.section-divider {
  height: 300px;
  overflow: hidden;
  background-color: transparent;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.parallax-spacer {
  height: 200px;
  position: relative;
  overflow: hidden;
  opacity: 0.5;
  background-color: var(--bg-color);
}

.parallax-accent {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/pattern_accent.png'); /* subtle texture or graphic */
  background-size: cover;
  background-position: center;
  transform: translateY(0);
  will-change: transform;
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 4rem;
  width: 50px;
  height: 50px;
  background-color: var(--main-color); /* dark brown */
  color: var(--bg-color);
  border-radius: 50%;
  font-size: 24px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
  border: 1px solid var(--sub-color);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--sub-color);
  color: var(--main-color);
}

#map {
  width: 100%;
  height: 50vh;
  z-index: 0!important;
}

.wrapper-container-not100 {
  width: 100%;
  display: flex;
  justify-content: center;
}

.wrapper {
  max-width: calc( 100vw - 8em);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
}

.row
{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.col-2
{
  -webkit-box-flex: 0;
  -ms-flex: 0 0 30%;
  flex: 0 0 30%;
  max-width: 30%;
  z-index: 50;
}

h5
{
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  font-family: 'PT Sans', sans-serif;
  line-height: 1.3;
  margin: 0;
  margin-bottom: 0px;
  padding: 0;
  letter-spacing: .05rem;
  margin-bottom: 0.5em;
}

h6
{
  font-size: 0.7rem;
  font-weight: 500;
  font-family: 'Merriweather', serif;
  font-family: 'PT Sans', sans-serif;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  transition: opacity 0.4s;
}
h6 a:hover {
  opacity: 0.7;
  transition: opacity 0.4s;
  color: var(--sub-color);
}

.h7 {
  font-size: 0.55vw;
  font-weight: 500;
  font-family: 'Merriweather', serif;
  font-family: 'PT Sans', sans-serif;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  opacity: 0.5;
}

.icon-social-container-footer
{
  display: flex;
  margin-top: 2em;
  height: 26px;
  justify-content: center;
}

.icon-social-footer
{
  width: 26px;
  margin-right: 1rem;
  opacity: 0.8;
  filter: invert(1);
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.icon-social-footer img {
    object-fit: contain;
    height: 100%;
}

.background-heading
{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0 auto;
  margin-right: 0 auto;
  bottom: -12%;
  bottom: -7vw;
  z-index: 0;
  margin-top: 0;
  color: rgba(51,51,51,.05);
  font-size: 16vw;
  text-align: center;
  letter-spacing: 0;
  justify-self: center;
  justify-content: center;
  display: flex;
  font-family: Oswald,sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  z-index: 0;
}

.gelb {
  color: var(--bg-color);
}

.sub-footer-container
{
  padding-top: 1em;
  padding-bottom: 1em;
  width: 100%;
  justify-content: space-between;
  align-content: center;
}

.blackcloud-logo {
  cursor: pointer;
  height: 24px;
  opacity: 0.4;
  transition: all 0.4s ease-in-out;
}

.blackcloud-logo img {
    object-fit: contain;
    height: 100%;
    width: 100%;
    width: auto;
     max-width:100%;
     object-fit: contain;
}

.section-color-dunkel
{
  background-color: var(--main-color) !important;
}

.section-color-dunkel-dunkel
{
  background-color: var(--main-color);
  background-color: #221a18;
}

.stars {
  position: relative;
  display: flex;
  gap: 5px;
  padding-bottom: 2rem;
  justify-content: center;
}

.star {
  color: #ffb700; /* gold */
  font-size: 1.5rem;
}

.image-container2
{
  width: 100%;
  display: none;
  background-color: #000;
  position: fixed;
  z-index: 1000;
  height: 100%;
  top: 0;
  left: 0;
  padding-top: 70px;
  align-items: center;
  justify-content: center;
}

.image-slider2
{
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  position: relative;
}

.arrow-container2 {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10%;
    justify-content: center;
    align-items: center;
    z-index: 100000000000;
}

.close-carousel {
  color: var(--bg-color);
  position: absolute;
  top: 12%;
  font-size: 50px;
  cursor: pointer;
  background-color: var(--main-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 100%;
  transition: all 0.4s;
      left: 50%;
    transform: translateX(-50%);
}

.close-carousel:hover {
  color: var(--main-color);
  background-color: var(--sub-color);
  transition: all 0.4s;
}

.dots-container-h
{
  display: flex;
  z-index: 10;
    display: flex;
  gap: 10px;
}

.dot-h2 {
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg-color);
  border-radius: 50%;
  opacity: 0.4;
  transition: opacity 0.3s;
  cursor: pointer;
}

.dot-h2.active {
  opacity: 1;
  background-color: var(--bg-color);
}

.cta-buchen {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  background-color: var(--main-color);
  color: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

.cta-buchen:hover {
  background-color: var(--sub-color);
  color: var(--main-color);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}


/* Responsive: Tablets */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }

  .slide-text {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .offer-item {
    flex: 1 1 45%;
  }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .logo {
    height: 40px
  }

  .sectiongallery, .section-offer-footer  {
    padding-top: 4rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

.container-gallery {
  max-width: 100%;
  width: 100%;
    overflow-y: hidden;
}

  .image-section {
    padding: 0;
    -flex-direction: row;
  }

  .image-row {
    height: 25%;
  }

  .image-row img {
    margin: 0;
      width: 20%;
  -height: auto;
  max-width: 20%;
  object-fit: cover;
  flex: 1 1 auto;
  box-sizing: border-box;

  }

   .row {
    flex-direction: column;
    gap: 2rem;
  }

.dots-container-h {
gap: 5px;
}


    .col-2 {
    max-width: 100%;
    flex: 1 1 100%;
  }

  h5, h6 {
    font-size: 0.8rem;
  }

    .h7 {
    font-size: 0.6rem;
  }

  .slide-text {
    font-size: 1.8rem;
    padding-bottom: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .offer-item {
    flex: 1 1 100%;
    padding: 1rem;
  }

  .mobile-nav {
    padding: 5rem 2rem;
    align-items: flex-start;
  }

  .fullscreen-slider {
    height: 90vh;
  }



  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 40px;
    height: 40px;
    font-size: 18px;
    line-height: 36px;
  }

  .wrapper {
  max-width: calc( 100vw - 4em);
  }

  @supports (-webkit-touch-callout: none) {
  .image-row img {
    max-width: 100vw;
    flex: 1 1 auto;
  }

  .image-section,
  .container-gallery {
    overflow-x: hidden;
  }
}

}