fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Common styles */
.slick-balloon {
  position: relative;
}

.slick-balloon:hover::after {
  content: attr(title);
  position: absolute;
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#fullscreenLayer {
  touch-action: manipulation; /* Verhindert ungewolltes Zoomen */
}

#fullscreenLayer button {
  width: 50px;
  height: 50px;
}

body.schwerin {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #819BEF;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100vh;
}

body.expose {
  width: 70%;
  text-align: justify;

}

/* Index page styles */
#mainContent {
  padding: 20px;
  margin: auto;
  width: 80%;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#annonceText {
  width: 50%;
  margin: auto;
  text-align: justify;
  margin-top: 20px;
}

#impressum {
  text-align: center;
  padding: 10px;
  font-size: 12px;
}

a {
  text-decoration: none;
  color: #0099ff;
}

a:hover {
  text-decoration: underline;
}

.line1 { color: #003366; } /* Dunkelblau */
.line2 { color: #0055cc; } /* Mittelblau */
.line3 { color: #0099ff; } /* Hellblau */





.container {
  position: relative;
  width: 100vw;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
}

.image-container {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 100%;
  transition: transform 2s ease;
}

.image-container img {
  width: 100%;
  height: auto;
  position: absolute;
  bottom: -2vH;
  transition: transform 2s ease;
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 58%;
  display: flex;
  justify-content: space-between;
}
/* , .right */
.left {
  position: absolute;
  top: -20%;
  height: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0);
  color: rgb(255, 255, 255);
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  z-index: 5;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.5s ease;
  width: 32%; /* Use percentages */
  height: 90%; /* Adjust height percentage */
}

.left {
  left: 5%;
  width: 30%;
  height: 90%;
}

.right {
  right: 9%;
  width: 40%;
  height: 90%;
}
/*.right:hover */
.left:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgb(255, 255, 255);
  filter: invert(5.6);
  border: 0px solid rgb(254, 254, 254) /* Rotfarbe für den Rand */
}

.left:hover a, .right:hover a {
  background-color: rgba(55, 55, 55, 0.3);
  height: 90%; /* Adjust height percentage */
}

.sale-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 24px;
  z-index: 10;
  transform: rotate(-45deg) translate(-50%, 155%);
  transform-origin: 0 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-banner {
  position: fixed;
  top: 0px;
  left: 25%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 50%;
  background-color: transparent;
  color: white;
  /*text-align: justify;
  text-align-last: justify; /* Für den letzten Absatz */
  padding: 10px;
  font-size: 16px;
  z-index: 10;
  background-color: rgba(128, 128, 128, 0.5);
}

.overlay a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  padding: 0px;
}

.overlay .left a, .overlay .right a {
  display: block;
  text-align: center;
  text-decoration: none;
}

.overlay .left a:hover, .overlay .right a:hover {
  text-decoration: none;
}

.summary-container {
  width: 80%;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  margin-top: 5%;
}

.summary-container h2 {
  color: black;
}

.summary-container ul {
  list-style: none;
  padding: 0;
}

.summary-container ul li {
  margin-bottom: 10px;
}

.images-section img {
  width: 48%;
  margin-bottom: 10px;
}



.print-button {
  text-align: center;
  margin: 20px 0;
  }

.print-button button {
  background-color: #0055cc;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.print-button button:hover {
  background-color: #003399;
}

.titelbild {
  object-fit: cover;
  width: 100%;
  height: auto;
  max-height: 400px; /* Adjust as needed */
}

.WHG1 {
  object-position: center right;
}

.WHG3 {
  object-position: center left;
}


.new-page {
  page-break-before: always;
}


.images-handle { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: space-around;
}

.image-item {
  flex: 0 0 48%;
  margin-bottom: 0.25rem;
  box-sizing: border-box; /* Sicherstellen, dass padding und border in die Breite einbezogen werden */
}

.image-item.full-width {
  flex: 0 0 100%;
  width: 100%; /* Sicherstellen, dass es die volle Breite einnimmt */
  margin-bottom: 1rem; /* Standardabstand, kann angepasst werden */
  box-sizing: border-box;
}

.image-item img, #map-page img, .plan img {
  cursor: pointer;
}

@media print {
  body {
    margin: 0;
    width:100%;
  }
  body.expose {
    width:100%;
  }
  #map-page, #map-page * {
    visibility: visible;
}

#map-page {
  page-break-before: always;
  width: 100%;
  margin-top: 20px; /* Fügen Sie einen Abstand hinzu, um zu verhindern, dass der Stadtplan über anderen Inhalten erscheint */
}

  .new-plan-container {
    page-break-inside: avoid; /* Verhindert Seitenumbrüche innerhalb des Containers */
    break-inside: avoid; /* Alternative für neuere Browser */
}

.new-plan-container h4,
.new-plan-container img {
    page-break-inside: avoid; /* Verhindert Seitenumbrüche innerhalb von Überschrift und Bild */
    break-inside: avoid;
}
  .summary-container {
    width: 80%;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    margin-top: 0%;
  }

  .icon-link { display: none; }

  div {
    border: none !important;
    box-shadow: none !important;
  }

  .new-images-container, .last-page, .floorplan-container  {
    page-break-before: always;
    page-break-inside: avoid;
  }

  .additional-plans-section h3, .last-page hr, .floorplan-container hr {
    page-break-after: avoid !important; /* Verhindert Seitenumbrüche nach der Überschrift */
}
  
    .images-section {
        display: block; /* Verwende block statt flex für den Druck */
        page-break-inside: avoid; /* Verhindert Seitenumbrüche innerhalb des Containers */
        break-inside: avoid; /* Alternative für neuere Browser */
    }

    .image-item {
        page-break-inside: avoid; /* Verhindert Seitenumbrüche innerhalb jedes Bildes */
        break-inside: avoid;
        margin-bottom: 1rem; /* Ausreichender Abstand zwischen den Bildern */
    }

    .image-item.full-width {
        page-break-before: avoid; /* Verhindert Seitenumbrüche vor einem vollen Bild */
        break-before: avoid; /* Alternative für neuere Browser */
    }


  .image-item img {
    width: 100%;
    margin-bottom: 0.1rem;
  }

  .image-item p {
    margin-top: 0.1rem;
    margin-bottom: 0;
  }

  video::-webkit-media-controls {
    display: none;
  }

  .hide {  
    display: none !important; /* Versteckt Elemente im Druckmodus definitiv */ 
  }

  last-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh; /* Stellt sicher, dass die Seite mindestens die Höhe des Viewports hat */
}
  
}

@page {
  margin: 20mm; /* Einheitliche Seitenränder oben und unten */
}

@media not all and (min-resolution:.001dpcm) {
  @supports (-webkit-appearance:none) {
    .image-item.full-width {
      display: block;
      width: 100% !important;
      flex: none !important;
    }
  }
}

.icon-link {
  position: relative;
  display: flex;
  /*background-image: url("https://gukm.de/schwerin/img/schlossgartenallee33.jpg");
  background-size: cover;
  width: 102vH;
  height: 80vH;*/
}

.tooltip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  display: none;
}
.icon-link:hover .tooltip {
  display: block;
}
.dsgvo-hint {
  font-size: 12px;
  color: gray;
  margin-top: 10px;
}

.new-images-section img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.headliner {
}

/* Andere bereits vorhandene Stile ... */

#fullscreenLayer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  z-index: 99;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

#fullscreenImage {
  max-width: 90%;
  max-height: 90%;
  border: 5px solid #fff; /* Add white border to fullscreen image */
}

#imageName {
  color: #fff;
  margin-top: 10px;
  font-size: 20px;
}

/* Container für den Language Selector */
#language-container {
  position: fixed;
  top: 20px;
  right: 10px;
}

#language-container:hover #language-selector {
  opacity: 1;
}

#language-selector {
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.5s ease; /* Transition für weiches Ein- und Ausblenden */
}

#language-selector span {
  display: inline-block;
  padding: 5px;
  cursor: pointer;
}

#language-selector span:hover {
  background: #f0f0f0;
}

#back {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px; /* Kleinere Schriftgröße */
  cursor: pointer;
  position: relative;
  top: 6px;
  padding: 5px 10px; /* Weniger Platz um das Symbol */
  border: 1px solid #ccc; /* Rahmen des Buttons */
  border-radius: 5px; /* Abgerundete Ecken */
  background-color: #f9f9f9; /* Hintergrundfarbe des Buttons */
  transition: background-color 0.3s, border-color 0.3s; /* Animation für sanfte Übergänge */
}

#back:hover {
  background-color: #e9e9e9; /* Hintergrundfarbe beim Hover */
  border-color: #007BFF; /* Rahmenfarbe beim Hover */
  color: #007BFF; /* Textfarbe beim Hover */
}

#language-selector {
  display: inline-block;
}

.image-item.full-width {
  flex: 0 0 100%; /* Füllt die gesamte Zeile aus */
  margin-bottom: 1rem; /* Standardabstand, kann angepasst werden */
}








.sale-banner-right {
  position: fixed;
  top: 0;
  right: 0vH;
  width: 200px;
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 24px;
  z-index: 10;
  transform: rotate(45deg) translate(17%, -250%);
  transform-origin: 0 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
