/* ===================== */
/* 🔧 RESET + BASIS */
/* ===================== */

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

body {
  font-family: sans-serif;
  background-color: #F5F5DC;
}

/* ===================== */
/* 📦 LAYOUT */
/* ===================== */

.wrapper {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  background-color: #F5F5DC;
}

/* ===================== */
/* 📱 MENU */
/* ===================== */

.menu {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10000;
}

.menu button {
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
}

/* ===================== */
/* 🌑 OVERLAY */
/* ===================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000;
  display: none;
  justify-content: center;
  align-items: center;
}

.overlay.active {
  display: flex;
}

.overlay-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

/* ===================== */
/* 🖼 IMAGE CONTAINER */
/* ===================== */

.imagecontainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 10px;
  gap:20px
}

.imagecontainer h2 {
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.imagecontainer img {
  width: 100%;
  height: auto;
  border: 1px solid black;
  margin-top: 10px;
}

/* ===================== */
/* 📄 CONTENT BLOCKS */
/* ===================== */

.contentblock,
.contentblock-stacked,
.textblock-stacked {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 100%;
  margin: 20px auto;
  padding: 10px;
}

.contentblock-stacked {
  gap: 20px;
}

.textblock-stacked {
  gap: 30px;
}

.section-title {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 10px;
}

/* ===================== */
/* TEXT / CENTERING */
/* ===================== */

.nettextblock {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.home_mail {
  margin: 40px auto;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.home_mail .paragraph_email {
  color: black;
  font-size: large;
}

/* ===================== */
/* HOME LAYOUT */
/* ===================== */

.wrapper_Home,
.wrapper_Home.Mom,
.wrapper_Home.Reformer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background-color: #F5F5DC;
}

.contentblock_Home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

.contentblock_Home.Mom,
.contentblock_Home.Reformer {
  align-items: flex-start;
  max-width: 800px;
}

/* ===================== */
/* BUTTON */
/* ===================== */

.btn-link {
  display: inline-block;
  padding: 12px 20px;
  background-color: #aa7645;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-link:hover {
  transform: scale(1.05);
}

/* ===================== */
/* HOME TOP (DESKTOP BASIS) */
/* ===================== */

.home_top {
  /* display: flex;
  align-items: stretch; */
  display: flex;
  align-items: flex-start;
  gap: 40px;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;   /* 👈 wichtig */
  margin: 0 auto;      /* zentriert den Block */
}

.home_text {
  max-width: 600px;
}

.side-img {
  width: 220px;
  height: auto;
  object-fit: cover;
}

/* ===================== */
/* 📲 TABLET */
/* ===================== */

@media (min-width: 768px) {

  .contentblock {
    grid-template-columns: minmax(180px, 250px) 1fr;
    max-width: 900px;
  }

  .contentblock-stacked {
    grid-template-columns: minmax(180px, 250px) 1fr 1fr;
    max-width: 900px;
  }

  .textblock-stacked {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 700px;
  }

  .imagecontainer img {
    max-width: 250px;
  }
 
}

/* ===================== */
/* 🖥 DESKTOP */
/* ===================== */

@media (min-width: 1024px) {

  .imagecontainer {
    flex-wrap: wrap;
    padding: 0;
  }

  .imagecontainer img {
    flex: 1 1 400px;
    height: 500px;
    object-fit: contain;
    border: none;
    margin: 0;
    width: 100%;
    height: auto;
  }
}

/* ===================== */
/* 📱 MOBILE HOME FIX */
/* ===================== */

@media (max-width: 768px) {

  /* Gesamtbereich sauber einrücken */
  .content_Home {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }

  /* Textblöcke nicht gequetscht */
  .style-div-center-text {
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  /* Bildbereich fixen */
  .zoom-container-isa-img-homepage {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .zoom-container-isa-img-homepage img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
  }

  /* Überschriften skalieren */
  h2 {
    font-size: 1.6rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  h6 {
    font-size: 1rem;
  }

  /* Listen schöner */
  ul.centered-list {
    padding-left: 20px;
  }

  /* Span verhindert komische Überbreite */
  span {
    display: block;
    width: 100%;
  }

  /* NUR diese Seite stabilisieren */
  .contentblock_Home {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    align-items: stretch; /* wichtig gegen Zentrierbruch */
  }

  /* home_top darf NICHT mehr nebeneinander sein */
  .contentblock_Home .home_top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  /* Bilder sauber skalieren */
  .contentblock_Home .imagecontainer {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .contentblock_Home .imagecontainer img {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  /* Text sauber */
  .contentblock_Home .home_text {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }
}
@media (min-width: 768px) {
  .imagecontainer img {
    width: 100%;
    max-width: 700px;
  }
}