/* -------------------------------------------------- */
/* PC-Layout                                           */
/* -------------------------------------------------- */

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f7f5f0;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: row;
}

/* PC-Bild */
.bg-desktop {
  width: 47vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Mobile-Bild auf PC ausblenden */
.bg-mobile {
  display: none;
}

/* Grauer Streifen */
.divider {
  width: 6vw;
  height: 100vh;
  background: #e0ded8;
}

/* Rechter Textbereich */
.overlay {
  width: 47vw;
  height: 100vh;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Textblock PC */
.overlay-text {
  width: 100%;
  height: 100%;
  text-align: left;
  font-family: "Great Vibes", cursive;
  color: rgba(30, 70, 45, 0.92);
  font-size: 1.55em;
  line-height: 1.25em;
  background: rgba(255, 255, 255, 0.65);
  padding: 40px;
  padding-top: 20px;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.08);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Überschrift PC */
.overlay-text h1 {
  font-size: 2.3em;
  align-self: center;
  margin-top: 0.2em;
  margin-bottom: 0.4em;
  color: rgba(20, 55, 35, 0.98);
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.28);
}

/* Links */
.overlay-text a {
  color: rgba(20, 60, 35, 0.95);
  text-decoration: none;
}

.overlay-text a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------- */
/* MOBILE-VERSION (Touch + coarse + max-width)        */
/* -------------------------------------------------- */

@media (hover: none), (pointer: coarse), only screen and (max-width: 900px) {

  body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    display: block !important;
    height: 100vh;
    width: 100vw;
  }

  /* PC-Bild ausblenden */
  .bg-desktop {
    display: none !important;
  }

  /* Handy-Bild sichtbar + herausgezoomt */
  .bg-mobile {
    display: block !important;
    width: 100vw;
    height: 100vh;
    object-fit: contain;        /* zeigt mehr vom Bild */
    background-color: #000;     /* schwarze Ränder erlaubt */
    object-position: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
  }

  .divider {
    display: none !important;
  }

  /* Overlay über dem Bild */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
    padding: 0;
  }

  /* Textblock 30% tiefer + größer */
  .overlay-text {
    width: 90vw;
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.92);
    font-family: "Great Vibes", cursive;
    font-size: 2.3em;       /* größer */
    line-height: 1.3em;
    padding: 25px;
    border-radius: 14px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
    margin-top: 30vh;       /* 30% vom oberen Rand */
  }

  /* Überschrift Handy */
  .overlay-text h1 {
    font-size: 2.8em;       /* etwas größer */
    margin-bottom: 0.4em;
    margin-top: 0.1em;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.55);
  }

  /* Zurück-Maus */
  .zurueck-maus {
    width: 100px;
    bottom: 25px;
    right: 25px;
  }
}

/* -------------------------------------------------- */
/* Zurück-Maus PC                                      */
/* -------------------------------------------------- */

.zurueck-maus {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.3s ease;
}

.zurueck-maus:hover {
  transform: scale(1.1);
}

@media only screen and (max-width: 900px) {
  .zurueck-maus {
    width: 100px;
    bottom: 25px;
    right: 25px;
  }
}
