@font-face {
font-family: Unibody;
src: url("fonts/Unibody 8 Regular.ttf") format("truetype");
}

@font-face {
    font-family: HelveticaNeue;
    src: url("font/HelveticaNeue.ttc") format("truetype");
}

html{
    font-family: HelveticaNeue, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  position: relative;
  min-height: 110vh;
}

h1 {
    font-family: "Unibody", sans-serif;
    font-size: 15rem;
    margin: 1rem;
}
h2 {
    font-family: "HelveticaNeue", sans-serif;
    font-size: 1rem;
    font-weight: 700;
  
    margin: 1rem;
}

h3 {
    font-family: "Unibody", sans-serif;
    font-size: 4rem;
}

footer {
  display: flex;
  align-items: flex-end;
  min-height: 10rem;
}



button {
    font-family: "HelveticaNeue", sans-serif;
    padding: 0.5rem;
    margin: 4px;
    background-color: #9a9a9a;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #000000;
    font-weight: bold;
}

.footer {
  display: flex;
  align-items: flex-end;
  width: 100%;
  gap: 1rem;
  flex-wrap: nowrap;
  padding-right: 1rem;
  margin-bottom: 2rem;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 0 1 auto;
  position: relative;
  min-width: max-content;
}

.footer button {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  align-self: flex-start;
  white-space: nowrap;
  transition: transform 220ms ease, background-color 220ms ease;
}

.footer-item.is-open .footer-btn {
  transform: translateY(-0.45rem);
  background-color: #000000;
}

.footer-info {
  position: static;
  margin: 0.35rem 0 0 0;
  max-width: 0;
  font-family: "HelveticaNeue", sans-serif;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #4e4e4e;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 220ms ease, max-height 220ms ease;
  text-align: left;
  padding: 0;
}

.footer-item.is-open .footer-info {
  opacity: 1;
  max-height: 14rem;
  max-width: 22rem;
}

.footer-text {
  margin: 0 auto 0 0;
  text-align: left;
  align-self: flex-end;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: white;
    position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  padding-bottom: 1rem;
}

ul {
  list-style-type: none;
  margin: 1rem 1rem 1rem auto;
  padding: 0;
  display: flex;
  gap: 0;
  justify-content: flex-end;
  position: static;
  width: auto;
}

ul li {
  float: none;
}

ul li a {
  display: block;
  background-color: #7E7D7D;
  color: white;
  text-align: center;
  padding: 0.5rem;
  margin: 0.25rem;
  text-decoration: none;
}

ul li a:hover:not(.active) {
  background-color: #000000;
  font-weight: bold;
}

ul li a.active {
  background-color: #000000;
  font-weight: 700;
}

#logo {
    width: 10rem;
    height: auto;
  margin: 1rem 1rem 1rem 0;
  order: -1;
  padding-left: 1rem;
}

.content {
  position: relative;
  height: 100vh;
  width: auto;
  padding-top: 6rem;
}

.base-grid {
  position: absolute;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
  height: 100%;
}

.overlay-grid {
  position: absolute;
  top: 6rem;
  left: 0;
  width: 100vw;
  height: calc(100vh - 6rem);
  display: grid;
  grid-template-rows: repeat(4, 20vh);
  grid-template-columns: repeat(15, 25vw) 20vw;
  grid-auto-rows: 0;
  grid-auto-columns: 0;
  gap: 1rem;
  z-index: 10;
  overflow-x: scroll;
  overflow-y: hidden;
  direction: ltr;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  isolation: isolate;
}

.plans-panel {
  grid-column: 15/17;
  grid-row: 1/4;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  z-index: 4;
  transform: translate(18rem, 3rem);
  overflow: hidden;
}

.plans-current {
  order: 1;
  height: auto;
  max-height: 30rem;
  width: auto;
  max-width: 30px;
  object-fit: contain;
  padding-right: 3rem;
  background-color: white;
}

.plans-thumbs {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.25rem;
  overflow: hidden;
}

.plans-thumb {
  width: 4.5rem;
  height: calc((100% - 1.75rem) / 8);
  object-fit: contain;
  cursor: pointer;
  border: 0.2rem solid transparent;
  background-color: white;
}

.plans-thumb.active {
  border-color: #d4d4d4;
  border-width: 2px;
  border-radius: 3px;
  background-color: #d4d4d4;
}

.plans-panel img {
  scale: 1 !important;
  transition: none !important;
}

.plans-panel img:hover {
  scale: 1 !important;
  z-index: 2;
}



.overlay-grid::-webkit-scrollbar {
  display: none;
}

.overlay-grid img {
  display: block;
  max-width: none;
  transform-origin: center center;
  scale: 1;
  transition: scale 0.3s ease-in-out;
  position: relative;
  z-index: 2;
}

.overlay-grid img:hover {
  scale: 1.2;
  z-index: 3;
}

.overlay-grid > * {
  position: relative;
  z-index: 2;
}

.notransform:hover {
  scale:1 !important;
}


.fhnw {
  grid-column: 2/3;
  grid-row: 2/3;
  place-self: center;
  text-align: center;
  transform: translate(0, -5vh);
}

.img1 {
    grid-column: 5/6;
    grid-row: 1/2;
    width: 65%;
    height: auto;
    transform: translate(0, 2rem);
}

.img2 {
    grid-column: 6/7;
    grid-row: 3/4;
    width: 80%;
    height: auto;
    transform: translate(-10rem, 4rem);
}

.img3 {
    grid-column: 7/8;
    grid-row: 1/2;
    width: 100%;
    height: auto;
    transform: translate(-6rem, 5rem);
}

.img4 {
    grid-column: 8/9;
    grid-row: 3/4;
    width: 60%;
    height: auto;
    transform: translate(0, 2rem);
}

.img5 {
    grid-column: 9/10;
    grid-row: 1/2;
    width: 100%;
    height: auto;
    transform: translate(-7rem, 5rem);
}

.img6 {
    grid-column: 10/11;
    grid-row: 3/4;
    width: 100%;
    height: auto;
    transform: translate(-5rem, 4rem);
}

.img7 {
    grid-column: 11/12;
    grid-row: 1/2;
    width: 100%;
    height: auto;
    transform: translate(-5rem, 4rem);
}

.img8 {
    grid-column: 12/13;
    grid-row: 3/4;
    width: 120%;
    height: auto;
    transform: translate(-5rem, 6rem);
}

.img9 {
    grid-column: 13/14;
    grid-row: 1/2;
    width: 130%;
    height: auto;
    transform: translate(-6rem, -2rem);
}

.mindmap {
    grid-column: 13/15;
    grid-row: 1/4;
    width: auto;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 1) 15rem,
      rgba(255, 255, 255, 1) 100%
    );
    padding: 5rem 2rem 0 20rem;
}

.img10 {
    grid-column: 16/17;
    grid-row: 1/2;
    width: 75%;
    height: auto;
    transform: translate(-6rem, 0);
}
.img11 {
    grid-column: 16/17;
    grid-row: 1/2;
    width: 75%;
    height: auto;
    transform: translate(13rem, 0);
} 

.img12 {
    grid-column: 16/17;
    grid-row: 2/3;
    width: 75%;
    height: auto;
    transform: translate(-6rem, 0);
}

.img13 {
    grid-column: 16/17;
    grid-row: 2/3;
    width: 75%;
    height: auto;
    transform: translate(13rem, 0);
}

.img14 {
    grid-column: 16/17;
    grid-row: 3/4;
    width: 75%;
    height: auto;
    transform: translate(-6rem, 0);
}

.img15 {
    grid-column: 16/17;
    grid-row: 3/4;
    width: 75%;
    height: auto;
    transform: translate(13rem, 0);
}

.img16 {
    grid-column: 16/17;
    grid-row: 3/4;
    width: 75%;
    height: auto;
    transform: translate(-5rem, 11rem);
}

.img17 {
    grid-column: 16/17;
    grid-row: 3/4;
    width: 50%;
    height: auto;
    transform: translate(15rem, 12rem);
}

.background {
  grid-column: 16/17;
  grid-row: 1/4;
  background-color: white;
  transform: translate(-10rem,0);
  width: 180%;
}


@media (max-width: 480px) {
  html{
    font-size: 12px;
  }

  h1{
    font-size: 9rem;
    
  }

  .overlay-grid {
    grid-template-columns: 5vw 90vw 5vw;
    grid-template-rows: repeat(8, 1fr);
    grid-auto-rows: auto;        
    grid-auto-columns: auto;  
    top: 15rem;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    row-gap: 1rem;
    column-gap: 0;
  }


  .fhnw {
  grid-column: 1/4;
  grid-row: 1/2;
  place-self: top center;
  text-align: top center;
}

  nav {
    position: fixed;
    top: auto;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100vw - 1.5rem);
    padding: 0;
    background: transparent;
    justify-content: center;
    z-index: 50;
  }

  nav ul {
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    white-space: nowrap;
  }

  nav ul li a {
    padding: 0.35rem 0.55rem;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
  }

  #logo {
    display: none;
  }

  body {
    padding-bottom: 4rem;
  }

  footer {
    padding-top: 2rem;
  }

  .footer-item {
    min-width: 8.5rem;
  }

  .img1 {
    grid-column: 2/3;
    grid-row: 1/2;
    width: 100%;
    height: auto;
    transform: none;
}

.img2 {
    grid-column: 2/3;
    grid-row: 2/3;
    width: 100%;
    height: auto;
    transform: none;
}

.img3 {
    grid-column: 2/3;
    grid-row: 3/4;
    width: 100%;
    height: auto;
    transform: none;
}

.img4 {
    grid-column: 2/3;
    grid-row: 4/5;
    width: 100%;
    height: auto;
    transform: none;
}

.img5 {
    grid-column: 2/3;
    grid-row: 5/6;
    width: 100%;
    height: auto;
    transform: none;
}

.img6 {
    grid-column: 2/3;
    grid-row: 6/7;
    width: 100%;
    height: auto;
    transform: none;
}

.img7 {
    grid-column: 2/3;
    grid-row: 7/8;
    width: 100%;
    height: auto;
    transform: none;
}

.img8 {
    grid-column: 2/3;
    grid-row: 8/9;
    width: 100%;
    height: auto;
    transform: none;
}

.img9 {
    grid-column: 2/3;
    grid-row: 9/10;
    width: 100%;
    height: auto;
    transform: none;
}

}

