:root{
  --bg:#fbf7f2;
  --text:#171311;
  --brown:#5b2d10;
  --line:#d4c5b8;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
}
a{font:inherit;color:inherit}

.site-footer{
  background:linear-gradient(180deg,#fffdfb 0%,#fffaf5 100%);
  border-top:1px solid var(--line);
}
.site-footer__main{
  border-bottom:1px solid var(--line);
}
.site-footer__inner{
  max-width:1480px;
  min-height:570px;
  margin:0 auto;
  padding:155px 88px 110px;
  display:grid;
  grid-template-columns:1.1fr .95fr .9fr;
  gap:100px;
  align-items:start;
}
.massa-logo{
  margin:0 0 86px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:3.2rem;
  line-height:1;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:lowercase;
}
.site-footer__person strong{
  display:block;
  margin-bottom:12px;
  font-size:2rem;
  line-height:1.1;
  font-weight:700;
}
.site-footer__person span{
  display:block;
  color:#4d392d;
  font-size:1.7rem;
  line-height:1.2;
}
.site-footer__contact{
  display:flex;
  flex-direction:column;
  gap:64px;
}
.contact-item strong{
  display:block;
  margin-bottom:26px;
  color:#5b3926;
  font-size:1.35rem;
  line-height:1.2;
  font-weight:700;
}
.contact-item a{
  text-decoration:none;
  font-size:1.65rem;
  line-height:1.2;
}
.site-footer__nav{
  display:flex;
  flex-direction:column;
}
.site-footer__nav a{
  min-height:102px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  font-size:1.65rem;
  line-height:1.2;
}
.site-footer__nav a:first-child{
  margin-top:-28px;
}
.arrow{
  color:#5b3926;
  font-size:2.35rem;
  line-height:1;
  font-weight:300;
}
.site-footer__bottom{
  min-height:190px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:58px;
}
.site-footer__bottom p{
  margin:0;
  color:#5b3926;
  font-size:1.45rem;
  line-height:1.2;
}

@media(max-width:1100px){
  .site-footer__inner{
    min-height:auto;
    padding:90px 42px 75px;
    grid-template-columns:1fr 1fr;
    gap:70px 60px;
  }
  .site-footer__nav{
    grid-column:1/-1;
  }
  .site-footer__nav a:first-child{margin-top:0}
  .massa-logo{font-size:2.7rem;margin-bottom:60px}
  .site-footer__person strong{font-size:1.7rem}
  .site-footer__person span{font-size:1.4rem}
  .contact-item a,.site-footer__nav a{font-size:1.35rem}
  .contact-item strong{font-size:1.2rem}
  .site-footer__bottom{min-height:150px;padding-top:48px}
  .site-footer__bottom p{font-size:1.2rem}
}

@media(max-width:600px){
  .site-footer__inner{
    padding:58px 20px 48px;
    grid-template-columns:1fr;
    gap:48px;
  }
  .massa-logo{
    margin-bottom:42px;
    font-size:2.3rem;
  }
  .site-footer__person strong{font-size:1.3rem}
  .site-footer__person span{font-size:1.1rem}
  .site-footer__contact{gap:36px}
  .contact-item strong{
    margin-bottom:12px;
    font-size:1.05rem;
  }
  .contact-item a{font-size:1.08rem}
  .site-footer__nav{grid-column:auto}
  .site-footer__nav a{
    min-height:72px;
    font-size:1.08rem;
  }
  .arrow{font-size:1.8rem}
  .site-footer__bottom{
    min-height:115px;
    padding-top:38px;
  }
  .site-footer__bottom p{font-size:1rem}
}


/* v1.1 – requested footer corrections only */
.contact-item a[href^="mailto:"] {
  white-space: nowrap;
}

.massa-logo {
  display: block;
  width: min(100%, 365px);
  height: auto;
  margin: 0 0 86px;
}

/* Tablet: left identity block aligned top and bottom with phone/e-mail block */
@media (min-width: 601px) and (max-width: 1100px) {
  .site-footer__brand,
  .site-footer__contact {
    min-height: 255px;
  }

  .site-footer__brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .site-footer__contact {
    justify-content: space-between;
    gap: 0;
  }

  .massa-logo {
    width: min(100%, 300px);
    margin-bottom: 0;
  }
}


/* v1.3: Desktop unchanged from v1.1; tablet/mobile as approved in v1.2 */
@media (min-width: 601px) and (max-width: 1100px) {
  .site-footer__inner {
    padding-top: 58px;
    padding-bottom: 50px;
    gap: 42px 60px;
  }
  .site-footer__brand,
  .site-footer__contact {
    min-height: 205px;
  }
  .site-footer__nav a { min-height: 76px; }
  .site-footer__bottom {
    min-height: 112px;
    padding-top: 36px;
  }
}

@media (max-width: 600px) {
  .site-footer__inner {
    padding-top: 38px;
    padding-bottom: 34px;
    gap: 30px;
  }
  .massa-logo { margin-bottom: 26px; }
  .site-footer__contact { gap: 24px; }
  .site-footer__nav a { min-height: 60px; }
  .site-footer__bottom {
    min-height: 88px;
    padding-top: 28px;
  }
}


/* v1.4 – desktop only: align Finanzierungsberatung with e-mail */
@media (min-width: 1101px) {
  .site-footer__nav a {
    min-height: 97px;
  }
}


/* v1.5 – smartphone only: keep complete massa haus logo visible */
@media (max-width: 600px) {
  .massa-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .site-footer__brand {
    min-width: 0;
    overflow: visible;
  }
}


/* v1.6 – only fix mobile logo clipping and tablet horizontal overflow */

/* Make all three footer columns allowed to shrink inside the grid. */
.site-footer__brand,
.site-footer__contact,
.site-footer__nav,
.contact-item {
  min-width: 0;
}

/* Tablet: keep e-mail on one line without forcing the grid wider than viewport. */
@media (min-width: 601px) and (max-width: 1100px) {
  .contact-item a[href^="mailto:"] {
    white-space: nowrap;
    display: block;
    max-width: 100%;
    font-size: clamp(.92rem, 2vw, 1.18rem);
    letter-spacing: -.015em;
  }

  .site-footer__inner {
    width: 100%;
    max-width: 100%;
  }
}

/* Smartphone: size the very wide original logo by its container width,
   preserving the full image from left edge to right edge. */
@media (max-width: 600px) {
  .site-footer__brand {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .massa-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 40px);
    margin-left: 0;
    margin-right: auto;
    object-fit: contain;
    object-position: left center;
  }

  .contact-item a[href^="mailto:"] {
    white-space: nowrap;
    display: block;
    max-width: 100%;
    font-size: clamp(.82rem, 4vw, 1.08rem);
    letter-spacing: -.02em;
  }
}

/* Master v3: reduce only the leading footer whitespace */
@media (min-width:1101px){
  .site-footer__inner{padding-top:82px}
}
@media (min-width:601px) and (max-width:1100px){
  .site-footer__inner{padding-top:42px}
}
@media (max-width:600px){
  .site-footer__inner{padding-top:28px}
}

/* Master v5 – tablet transition spacing only */
@media (min-width:601px) and (max-width:1100px){
  .site-footer__inner{padding-top:28px}
}
