/* ----- First Section START---------------------------------------------------- */
main {
  margin: 0 auto;
  padding: 0;
  max-width: 1800px;
}


.hero {
  background: var(--bg-linear-grad);
  margin: 3em 3em 3em 3em;
  padding: 3rem 3rem;
  border-radius: 3rem 3rem 3rem 3rem;
}



.first-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  /* border: blue 2px solid; */
}

.hero-text {
  flex: 1 1 300px;
  min-width: 0;
}


/* .hero .first-container {
  max-width: var(--max);
  margin: 0 auto;
  border: blue 2px solid;
} */


.values h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  color: var(--accent);
}


.hero-text h1 {
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.hero-text h1 strong {
  font-weight: 500;
  color: var(--accent);
}

.hero-text p {
  font-size: 1.3rem;
  color: var(--text-soft);
  max-width: 550px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: 0.2s, transform 0.1s;
  box-shadow: 0 10px 20px -8px rgba(127, 154, 123, 0.4);
}

.hero-image {
  display: flex;
  flex: 1 1 400px;
  /* background: #d0dad5; */
  border-radius: 30px;
  height: 440px;
  /* width: 32rem;   */
  /* align-items: center; */
  /* justify-content: center; */
  /* color: #4f6452; */
  font-size: 1.4rem;
  background: url('https://res.novawil.ch/virt-vorne/RHW_9_und_RHW_11_Nah_1000_v2.png') center/cover;
  /* box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.15); */
  /* border: red 2px solid; */
}

.oldhouse-pict {
  flex: 1 1 280px;
  border-radius: 30px;
  max-width: 38rem;
  /* width: 100%; */
  /* height: auto; */
  display: block;
  box-shadow: 0 20px 50px -10px rgba(44, 97, 52, 0.3);
}

/* ---- First Section END ----------------------------------------------- */






/*--- Abschnitt: Ein neues Zuhause für alle-----------------------------------------------*/
.intro-section {
  padding: 6rem 0;
  margin: 50px 20px;
}


.hero-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}


.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2.5rem;
  width: fit-content;
  animation: fadeIn 0.6s ease 0.3s both;
  border: var(--green) 2px solid;
}

.house-pict {
  border-radius: 2rem;
  border: #2c6134 2px solid;
  width: 40rem;
  padding: 1rem;
  box-shadow: 0 20px 50px -10px rgba(44, 97, 52, 0.3);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.7s ease 0.9s both;
}


.stat-item {
  text-align: center;
}


.fact-no {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #1e3b2f;
  margin: 0.5rem 0 0.2rem;
  animation: slideUp 0.7s ease 0.4s both;
}


.stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
}


/* right side START */
.hero-right {
  position: relative;
}

.hero-right h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  animation: slideUp 0.7s ease 0.4s both;
}

.hero-right h1 strong {
  font-weight: 600;
  color: var(--green);
}

.hero-desc {
  margin-top: 1.8rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
  max-width: 420px;
  animation: slideUp 0.7s ease 0.55s both;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeIn 0.7s ease 0.7s both;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* right side END */



.btn-primary {
  background: var(--green);
  color: white;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--green);
  transition: background-color 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}


@keyframes slowZoom {
  to {
    transform: scale(1);
  }
}


@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


.section {
  margin: 15px 10px;
}


.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

/*-----------  HERO Abschnitt 2 END -----------------------------------------------*/






/* ------------------------------------------- */
/* -------- WOHNUNGEN 1 ---------------------- */
/* ------------------------------------------- */
.wohnungen-section {
  padding: 2rem 0;
}


.wrap {
  max-width: var(--max);
  margin: 0 auto;
  /* padding: 0 2rem; */
  /* border: rgb(16, 197, 70) 2px solid; */
}

.wrap p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
  max-width: 680px;
}

.wohnungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.wohn-card {
  background: white;
  border-radius: 2rem;
  padding: 2rem 1.8rem;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s;
  border: 1px solid #ffffff50;
  /* equal height + badge pinned to bottom */
  display: flex;
  flex-direction: column;
  /* prevent grid blowout from nowrap chips */
  min-width: 0;
  overflow: hidden;
}

.wohn-card .icon {
  font-size: 2.5rem;
  color: #4f7b6e;
  margin-bottom: 1.2rem;
}


.wohn-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 30px -12px rgba(50, 80, 70, 0.15);
}

.wohn-card .icon {
  font-size: 2.5rem;
  color: #4f7b6e;
  margin-bottom: 1.2rem;
}

.wohn-card h3 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.wohn-card .sub {
  color: #547a6b;
  font-weight: 500;
  margin-bottom: 1rem;
  border-bottom: 1px dashed #cbdcd0;
  padding-bottom: 0.8rem;
}

/* --------- WOHNUNGEN 2 END --------------------------- */






/* ----WOHNUNGEN ----------------------------------*/
.wohnungen-section {
  padding: 6rem 0;
  /* background: var(--bg); */
}

.wohnungen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.wohnung-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.wohnung-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.wohnung-icon {
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 1.2rem;
}

.wohnung-zimmer {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.wohnung-typ {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.wohnung-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.wohnung-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
}

.wohnung-features li .feat-icon {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--green);
  flex-shrink: 0;
}

.wohnung-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  align-self: flex-start;
}

/* ---- WOHN-CARD HEADER ----------------------*/
.wohn-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
  /* padding-bottom: 1rem; */
  /* border: red 1px solid; */
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  /* border: 2px dashed rgba(0,0,0,0.1); */
}

.wohn-floor-icon {
  font-size: 1.8rem;
  color: #4f7b6e;
  flex-shrink: 0;
}

.wohn-card-meta .wohnung-zimmer {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c4a3e;
  margin-bottom: 0;
}

.wohn-card-meta .wohnung-typ {
  font-size: 0.82rem;
  color: #6b9180;
  font-weight: 400;
  margin-bottom: 0;
}

/* ---- FEATURE CHIPS ----------------------*/
.feat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  flex: 1;
}

.feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: #f0f6f3;
  color: #3a5a4e;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid #d4e8df;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.feat-chip i {
  font-size: 0.75rem;
  color: #4f7b6e;
}

.feat-chip:hover {
  background: #e2f0eb;
  transform: translateY(-1px);
}

.feat-chip--special {
  background: #eaf4f0;
  border-color: #4f7b6e;
  color: #2c4a3e;
  font-weight: 600;
}

.feat-chip--special i {
  color: #3a7060;
}

/* special chips row — always on its own line */
.feat-chips-special {
  flex: 0 0 100%;
  /* force full-width flex item → new line guaranteed */
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.5rem;
  margin-top: 0.3rem;
  border-top: 1px dashed #cce0d8;
}

/* badge pinned to bottom of card */
.wohnung-badge {
  margin-top: auto;
}

/* ---- WOHNUNGEN END ----------------------*/





/* ------- HIGHLIGHTS STARTS --------------------------------*/
.detail-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4em 2rem;
  /* border: rgb(218, 189, 25) 2px solid; */
  /* border: red 2px solid; */
}


.highlights-section {
  padding: 4rem 0;
  background: var(--bg);
}

.highlights-card {
  background: white;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.highlight-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: var(--green);
}

.highlight-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.highlight-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}

.highlight-item+.highlight-item {
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  padding-left: 2rem;
}

/* ---------- highlights / ie. barrierefrei, energie, liebe END ---------- */






/* ---------- highlights / ie. barrierefrei, energie, liebe START ---------- */
.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: white;
  border-radius: 2.5rem;
  padding: 2.8rem 2.5rem;
  box-shadow: 0 8px 22px #e2e9e5;
}

.highlight-item {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.highlight-item i {
  font-size: 2.8rem;
  background: #e1f0e8;
  padding: 1rem;
  border-radius: 60%;
  color: #2b5b4a;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-item strong {
  font-size: 1.3rem;
}

/* ---------- highlights / ie. barrierefrei, energie, liebe END ---------- */



.section-title {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 4px;
  background: #4f7b6e;
  border-radius: 4px;
}





/************** LAGE GRID 2 START ************** */
.lage-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  /* background: #2c4a3e0c; */
  /* border-radius: 2.5rem; */
  padding: 1.5rem 2.5rem 3.5rem 2.5rem;
}

.lage-card {
  flex: 1 1 200px;
  background: white;
  border-radius: 1.8rem;
  padding: 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
}

.lage-card i {
  font-size: 2.5rem;
  background: #ddece4;
  padding: 1rem;
  border-radius: 50%;
  color: #235347;
}

.distance {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3b2f;
  margin: 0.5rem 0 0.2rem;
}

.label {
  color: #3b5c50;
  font-weight: 500;
}


.fancy-font {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  /* clamp(3rem, 4vw, 6rem) */
  line-height: 1;
  color: var(--accent);
  ;
}

/*------------ LAGE GRID 2 END ------------------------- */



/* ------------ Tiefgarage ------------------------------*/
.garage-spot {
  background: #2c4a3e;
  color: white;
  border-radius: 1.5rem;
  padding: 1rem 2.5rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.garage-text {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.3rem;
  font-weight: 500;
}

.garage-text i {
  font-size: 3rem;
}

.garage-badge {
  background: #ffd966;
  color: #1e2b37;
  border-radius: 40px;
  padding: 0.7rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.garage-badge i {
  margin-right: 1rem;
}

/* ------------ tiefgarage END ------------------------------*/





/* --------- footer / kontakt Start ------------------------------*/
.footer {
  background: #1e2b2b;
  color: #eef5f2;
  /* border-radius: 3rem 3rem 3rem 3rem; */
  padding: 3rem 2rem 1rem 1rem;
  margin-top: 5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer .nova {
  font-size: 1.8rem;
  font-weight: 600;
}

.footer i {
  color: #a6c7b8;
  margin-right: 0.4rem;
}

/* -----  footer / kontakt END ------------------------------*/


.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* garage: column layout for screens where row doesn't fit (< ~1200px) */
@media (max-width: 1200px) {
  .garage-spot {
    /* flex-direction: column; */
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
  }

  .garage-text {
    justify-content: center;
  }
}


/* ================== --------------------------------------- */
@media (max-width: 1100px) {
  .wohnungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-left,
  .hero-right {
    text-align: center;
  }

  .hero-right h1 {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

}


/* ================== --------------------------------------- */
@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-right h1 {
    font-size: 2.8rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .highlights-card {
    grid-template-columns: repeat(2, 1fr);
  }

}



/* ================== --------------------------------------- */
@media (max-width: 768px) {

  .hero,
  .intro-section,
  .wrap,
  .detail-container,
  .highlights-section,
  .footer {
    margin: 1.5rem 1rem;
    padding: 2rem 1.5rem;
  }

  .hero .first-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    height: 260px;
    width: 100%;
  }

  .oldhouse-pict {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 20px;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .house-pict {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .stat-item {
    flex: 1 1 120px;
  }

  .fact-no {
    font-size: 2.2rem;
  }

  /* prevent double spacing in wohnungen/lage sections that also carry .hero */
  .wohnungen-section {
    padding: 1rem 0.6rem;
  }

  .hero .wrap {
    margin: 0 auto;
    padding: 0;
  }


  .wohnungen-grid {
    grid-template-columns: 1fr;
  }

  .wohn-card {
    padding: 1.5rem 1.2rem;
  }

  .feat-chip {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    white-space: normal;
  }

  .feat-chips-special {
    padding-top: 0.4rem;
    margin-top: 0.25rem;
  }

  .highlights-card {
    grid-template-columns: 1fr;
  }

  .highlight-item+.highlight-item {
    border-left: none;
    padding-left: 0;
  }

  .garage-spot {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
  }

  .garage-text {
    justify-content: center;
    font-size: 1.1rem;
  }
}


/* ================== --------------------------------------- */
@media (max-width: 700px) {
  .lage-grid {
    flex-direction: column;
    padding: 1rem;
  }

  .lage-card {
    flex: 1 1 auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* ================== --------------------------------------- */
@media (max-width: 480px) {
  .hero {
    margin: 1rem 0.5rem;
    padding: 1.5rem 1rem;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .intro-section {
    margin: 1rem 0.5rem;
    padding: 1.5rem 1rem;
  }

  .wohnungen-grid {
    grid-template-columns: 1fr;
  }
}























