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

::selection{
  background-color: #ff4800;
  color: #fff;
}

html,
body{
  background-color: #fff;
  /* background: linear-gradient(#ff4800, #000); */
  height: auto;
}

html{
  font-size: 15px;
}

@media screen and (max-width: 820px){
  html{
    font-size: calc(16px + 6 * ((100vw - 320px) / 680));
  }
}

@media screen and (min-width: 1800px){
  html{
    font-size: calc(12px + 6 * ((100vw - 320px) / 680));
  }
}

/* iOS Safari: dynamic viewport helpers */
:root{
  --sat: env(safe-area-inset-top);
  --sab: env(safe-area-inset-bottom);
  --sal: env(safe-area-inset-left);
  --sar: env(safe-area-inset-right);
}


/* =========================================================
   HERO
========================================================= */
.hero{
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
}

/* Vollbild-Hintergrund IM Hero */
.background-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.background-media img,
.background-media video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Logo: startet mittig, bleibt fixed und pinnt beim Scroll nach oben */
.logo-wrapper{
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100vw;
  z-index: 3;

  padding: 1rem;

  transition: top 320ms ease-in-out, transform 320ms ease-in-out, padding 320ms ease-in-out;
  will-change: top, transform;
}

.logo-wrapper img{
  width: 100%;
}

/* Wenn gescrollt -> Logo oben "angetackert" */
body.logo-pinned .logo-wrapper{
  top: calc(0.5rem + var(--sat));
  transform: translateY(0);
}

/* Optional: wenn du oben weniger/mehr Padding willst */
/* body.logo-pinned .logo-wrapper{
  padding: 1rem;
} */

.logo-wrapper.is-docked{
  top: calc(0px + var(--sat));
  transform: none;
  padding-top: calc(1rem + var(--sat));
}


/* Default: nur lang */
.logo-wrapper img.logo-short{ display: none; }
.logo-wrapper img.logo-long{ display: block; }


/* =========================================================
   ABOUT BUTTON
========================================================= */
.about-button{
  position: absolute;
  left: 0 !important;
  top: 0;
  width: 3.5rem;
  height: 3.5rem;
  z-index: 5;
  margin: 1rem;

  background: transparent;
  border: 0;
  padding: 0;
  color: #ff4800;
  cursor: pointer;
}

.about-button svg{
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 200ms ease;
}

.about-button svg:hover{
  transform: scale(1.1);
}

/* Subtle pulse */
@keyframes aboutPulse{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.1); }
}

/* .about-button svg,
.overlay-touch svg,
.overlay-close svg{
  animation: aboutPulse 2.8s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, opacity;
} */

/* =========================================================
   HERO RESPONSIVE (<=900px): Logo switch + button position
========================================================= */
@media (max-width: 900px){
  .logo-wrapper{
    top: 35%
  }

  .logo-wrapper img.logo-long{ display: none; }
  .logo-wrapper img.logo-short{ display: block; }
}


/* =========================================================
   ABOUT OVERLAY
========================================================= */
.about-overlay{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;

  background-color: rgba(255, 255, 255, 0.3);
}

.about-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.about-inner{
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.about-left,
.about-right{
  width: 50vw;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 1rem;
  margin-top: 5rem;
}

/* Links: Blöcke untereinander */
.about-left{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Typo an Footer anlehnen */
.about-left h3{
  font-size: 2rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 200;
  font-style: normal;
  color: #ff4800;
}

.about-left p{
  font-size: 2rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  color: #ff4800;
}

.about-left p a{
  color: #ff4800;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 1px;
  transition: opacity 200ms ease;
}

.about-left p a:hover{
  opacity: 0.3;
}

/* Rechts: About Text */
.about-panel{
  color: #ff4800;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
}

.about-panel p{
  word-break: break-word;
  white-space: normal;
  margin: 0 0 1.5rem 0;
}

.about-panel p:last-child{
  margin-bottom: 0;
}

/* About responsive: untereinander + als Ganzes scrollen */
@media (max-width: 900px){
  .about-overlay{
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .about-inner{
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100vw;
    padding-top: calc(5rem + var(--sat));
    padding-bottom: calc(1rem + var(--sab));
  }

  .about-left,
  .about-right{
    width: 100vw;
    height: auto;
    overflow: visible;
    margin-top: 0;
  }

  .about-right{
    margin-top: 5rem;
  }

  .about-overlay .overlay-close{
    position: fixed;
  }
}


/* =========================================================
   PAGE CONTENT
========================================================= */
.page-content{
  position: relative;
}


/* =========================================================
   GALLERY GRID
========================================================= */
.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* @media (max-width: 1200px){
  .gallery{
    grid-template-columns: repeat(3, 1fr);
  }
} */

@media (max-width: 900px){
  .gallery{
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item{
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-name{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end;
  justify-content: center;
  text-align: center;

  font-size: 5rem;
  color: #ff4800;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.1rem;
  line-height: 1;
  padding: 1rem;
}

.gallery-item img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .gallery-item img{
  /* transition: opacity 200ms ease; */
  transform: scale(1.2);
}

.gallery:hover .gallery-item img{
  opacity: 1;
  /* filter: blur(20px); */
}

.gallery:hover .gallery-item:hover img{
  opacity: 1;
  /* filter: blur(0); */
}

.gallery .gallery-name{
  transition: opacity 200ms ease;
}

.gallery:hover .gallery-item:not(:hover) .gallery-name{
  opacity: 0.3;
}

/* 8. Gallery Item: CTA Kachel */
.gallery-cta{
  background: #ff4800;
  color: #fff;
}

.gallery-cta-inner{
  height: 100%;
  width: 100%;
  padding: 1rem;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-cta-text{
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 800;
  font-size: 5rem;
  line-height: 0.9;
}

.gallery-cta-button{
  align-self: center;
  display: inline-flex;
  height: 2.5rem;   /* wie overlay-touch */
  width: auto;
  color: #fff;
  text-decoration: none;
  margin: 1rem;
}

.gallery-cta-button svg{
  height: 100%;
  width: auto;
  display: block;
  transition: transform 200ms ease;
}

.gallery-cta-button:hover svg{
  transform: scale(1.1);
}

@media (max-width: 900px){
  .gallery-cta-text{
    font-size: 3rem; /* passend zu .gallery-name */
  }
}


@media (max-width: 900px){
  .gallery-name{
    font-size: 3rem;
    line-height: 0.9;
  }

  .gallery-cta-button{
    height: 2rem;
}

  .hero{
    height: 70vh;
    height: 70svh;
    height: 70dvh;
  }
}


/* =========================================================
   GALLERY OVERLAY
========================================================= */
.gallery-overlay{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;

  background-color: rgba(255,255,255,0.5);
}

.gallery-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.overlay-inner{
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.overlay-media{
  width: 50vw;
  height: 100vh;
  height: 100dvh;
}

.overlay-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none;
  filter: none;
}

.overlay-side{
  width: 50vw;
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
}

.overlay-title{
  z-index: 2;

  font-size: 10rem;
  line-height: 1;
  text-align: center;

  color: #ff4800;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 800;
  letter-spacing: -0.1rem;
}

/* Close Button (safe-area aware) */
.overlay-close{
  position: absolute;
  top: calc(1rem + var(--sat));
  left: calc(1rem + var(--sal));
  z-index: 10000;

  height: 2.5rem;
  width: auto;

  background: transparent;
  border: 0;
  padding: 0;

  color: #ff4800;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.overlay-close svg{
  height: 100%;
  width: auto;
  display: block;
  transition: transform 200ms ease;
}

.overlay-close:hover svg{
  transform: scale(1.1);
}

/* Blur bleibt wie gehabt */
body.overlay-open .site-wrap{
  filter: blur(50px);
}

/* Scroll lock ohne Scroll-Sprung (iOS safer) */
body.scroll-locked{
  position: fixed;
  width: 100%;
  overflow: hidden;
  height: 100dvh;
}

.overlay-panel{
  height: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  white-space: break-spaces;
  padding-bottom: calc(1rem + var(--sab));
}

.overlay-desc{
  font-size: 2rem;
  line-height: 1;
  color: #ff4800;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* #overlaySoundcloud{
  margin-top: 3rem;
} */

.overlay-link{
  width: fit-content;
  font-size: 2rem;
  color: #ff4800;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 1px;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  transition: opacity 200ms ease;
}

.overlay-link:hover{
  opacity: 0.3;
}

.overlay-touch{
  margin-top: 2rem;
  align-self: center;

  height: 2.5rem;
  width: auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  padding: 0;
  border-radius: 0;
  text-decoration: none;

  color: #ff4800;
}

.overlay-touch svg{
  height: 100%;
  width: auto;
  display: block;
  transition: transform 200ms ease;
}

.overlay-touch:hover svg{
  transform: scale(1.1);
}

/* Overlay responsive: untereinander + als Ganzes scrollen */
@media (max-width: 900px){
  .gallery-overlay{
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .overlay-inner{
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(1rem + var(--sab));
  }

  .overlay-media,
  .overlay-side{
    width: 100vw;
    height: auto;
    overflow: visible;
  }

  .overlay-title{
    font-size: 5rem;
  }

  .overlay-media img{
    width: 100%;
    height: auto;
    max-height: 82vh;
    max-height: 82dvh;
    object-fit: cover;
  }

  .gallery-overlay .overlay-close{
    position: fixed;
  }
}


/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  /* margin-top: 2rem; */
  padding: 1rem;
  color: #ff4800;
}

.footer-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h3{
  font-size: 2rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.footer-col p{
  font-size: 2rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
}

.footer-col p a{
  color: #ff4800;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 1px;
  transition: opacity 200ms ease;
}

.footer-col p a:hover{
  opacity: 0.8;
}

.footer-social{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social a{
  font-size: 2rem;
  color: #ff4800;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 1px;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  font-style: normal;
  transition: opacity 200ms ease;
}

.footer-social a:hover{
  opacity: 0.8;
}

.footer-heading-link{
  position: relative;
  top: 2.2rem;
  font-size: 2rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  font-style: normal;
  color: #ff4800;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 1px;
  transition: opacity 200ms ease;
}

a.footer-heading-link{
  margin-top: 2rem;
}

.footer-heading-link:hover{
  opacity: 0.8;
}

@media (max-width: 1200px){
  .footer-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px){
  .footer-grid{
    grid-template-columns: 1fr;
    margin-bottom: 4rem;
  }
}


/* =========================================================
   IMPRESSUM
========================================================= */
.impressum-page{
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background-color: #ff4800;
  overflow-x: hidden;
  color: #fff;
}

.impressum-wrap{
  padding: 1rem;
  margin: 0 auto;
}

.impressum-title{
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  margin: 4rem 0 2rem;
}

.impressum-content{
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  white-space: normal;
}

.impressum-content p a{
  text-decoration: none;
  color: #fff;
}

.impressum-content p{
  margin: 0 0 1.5rem 0;
}

.impressum-content p:last-child{
  margin-bottom: 0;
}

.impressum-content a{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 1px;
  transition: opacity 200ms ease;
}

.impressum-content a:hover{
  opacity: 0.3;
}

.impressum-back{
  display: inline-block;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #ff4800;
  padding: 0.3rem 0.9rem;
  border-radius: 0.5rem;
  background-color: #fff;
  text-decoration: none;
}
