body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-color: rgba(237, 191, 185, .2);
}

a {
  all: unset;
}

h1, h2, h3, h4, h5, h6 {
  all: unset;
  }

  .title {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  position: absolute;
  top: 0;
  left: 0;
  margin: 15px 15px;
  text-transform: lowercase;
  }

  .title-2 {
  text-transform: none;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  }

  .projects .project:first-child {
  margin-top: 17vh; /* creates space below title */
}



        /* removes *all* default styles, including font, margins, etc. */
  /*display: inline-block;   restore block display since 'all: unset' resets it
}

h1 {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: 500;
}

h1,h2 {
  margin-left: 15px;
  font-family: "Inter", sans-serif;
}

.title {
  position: absolute;
  top: 0;
  left: 0;
  margin: 15px 15px;
  font-family: "Inter", sans-serif;
  text-transform: lowercase;
  font-size: 1.2rem;
}

.title-2 {
  font-size: 1rem;
  text-transform: none;
}
*/

.project {
  margin-top: 10vh;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.project.visible {
  opacity: 1;
  transform: translateY(0);
}

.project:last-child {
  margin-bottom: 10vh;
}



.image-strip-container {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;
  padding: 10px 0;
  box-sizing: border-box;
  margin-left: 7.5vw;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.image-strip-container img,
.text-block,
.image-strip-container video {
  scroll-snap-align: start;
}

.image-strip-container img,
.image-strip-container video {
  transition: transform 0.7s ease, box-shadow 0.6s ease;
}

.image-strip-container img:hover,
.image-strip-container video:hover {
  transform: scale(1.005);
  box-shadow: none;
}



.image-strip-container::-webkit-scrollbar {
  height: 4px;
}

.image-strip-container::-webkit-scrollbar-thumb {
  background-color: rgba(211, 211, 211, 0.9);
  border-radius: 4px;
}

.image-strip-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(211, 211, 211, 1);
  cursor: pointer;
}



.image-strip-container img {
  height: 65vh;
  margin-right: 2px; /* small margin between images */
  object-fit: cover;
  box-shadow: 0 10px 5px rgba(0, 0, 0, 0.05);
  border-radius: 32px;
}


.text-block {
  display: inline-block;
  height: 65vh;
  aspect-ratio: 3 / 4;
  margin-right: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  vertical-align: top;
  background-color: rgba(206, 249, 50, .6);

  /* text styling */
  color: rgba(0,0,0,0.8);
  font-family: "Inter", sans-serif;
  padding: 4rem 3rem 1rem;
  box-sizing: border-box;
  overflow-y: auto;               /* ✅ scroll if text exceeds height */
  word-wrap: break-word;
  white-space: normal;
  font-size: clamp(0.8rem, 2vw, 1rem); /* ✅ fluid text size */
  border-radius: 32px;
}


/* MOBILE CSS */

@media (max-width: 600px) {
  .text-block {
    padding: 1.5rem;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
}

.text-block {
  line-height: 1.4;
}

.text-block > *:first-child {
  margin-top: 0;
}

.text-block h1,
.text-block h2,
.text-block p {
  margin-top: 0;
  margin-bottom: 1rem;
}


.image-strip-container img:last-child {
  margin-right: 0;
}

video {
  height: 65vh;
  border-radius: 32px;
}

.ext-link {
  text-decoration: underline;
  color: #ff7840;
}

.ext-link:hover {
opacity: 70%;
}



.image-strip-subtitle {
  margin-top: 2.5vh;
  margin-left: 7.5vw;
  font-family: "Inter", sans-serif;
  font-size: .9rem;
  text-transform: uppercase;
}

.image-strip-subtitle2 {
  /*opacity: 50%;*/
  text-transform: none;
  font-size: .8rem;

}

/* ABOUT MODAL */

body.modal-open {
  background-color: #ff4500; /* match your modal */
  overflow: hidden;
}

.about-modal {
  position: fixed;
  inset: 0;
  background: #ff7840;
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 40px 0 40px;
  box-sizing: border-box;

  /* Animation state */
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;

}

.about-modal.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.about-content {
max-width: 1200px;
margin: 10vh auto 0 auto;  /* push down below title */
font-family: "Inter", sans-serif;
font-size: 1rem;
color: black;
}

.about-title {
font-family: "Inter", sans-serif;
font-size: 1.2rem;
font-weight: 500;
position: absolute;
top: 0;
left: 0;
margin: 15px 15px;
text-transform: lowercase;
}

.about-title-2 {
text-transform: none;
font-weight: 400;
font-size: 1rem;
line-height: 1;
}

/* Two-column layout */
.about-columns {
display: flex;
gap: 3rem;
margin-top: 1rem;
}

.about-left {
flex: 2;
line-height: 1.5;
}

.about-right {
flex: 1;
font-size: 0.9em;
margin-top: .1em;
}

.services-title {
margin-bottom: .2em;
}

.services {
list-style: none;
padding: 0;
margin: 0;
line-height: 1.2;
}

.services li {
margin-bottom: 0.2em;
}

.contact {
margin-top: 2rem;
line-height: 1.4rem;
}

.contact-mail:hover {
  opacity: 60%;
}

.contact-title {
  margin-bottom: -.2em;
}

.social-link {
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  opacity: 0.6;
}

.instagram-icon {
  width: 28px;
  height: 28px;
  display: block;
  transform: translateZ(0);
}

.footer {
font-size: 0.8em;
margin-top: 2.5rem;
}

/* Responsive stacking */
@media (max-width: 768px) {
.about-columns {
flex-direction: column;
gap: 1.5rem;
}
}

/* Scrollable image strip */
.about-image-strip {
margin-top: 3rem;
}

.about-image-strip .image-strip-container {
white-space: nowrap;
overflow-x: auto;
padding-bottom: 10px;
margin-left: 7.5vw;   /* ✅ same as homepage */
}

.about-image-strip img {
height: 65vh;    /* same as homepage */
margin-right: 2px;
object-fit: cover;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/*MODAL IMPRINT FOOTER */

.about-imprint {
  margin-top: 2rem;
  text-align: right;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-right: -25px;
}

@media (max-width: 600px) {
.about-imprint {
  margin-right: -10px;
}
}

.about-imprint a {
  display: inline-block;
  color: black;
  text-decoration: none;
  margin: 1px;
}
.about-imprint a:hover {
  opacity: 0.7;
}



/* Use a variable so it stays correct if you ever change padding */
.about-modal {
  --modal-pad: 40px;
  --modal-pad-bottom: calc(0px + env(safe-area-inset-bottom));
  padding: var(--modal-pad) var(--modal-pad) var(--modal-pad-bottom) var(--modal-pad);
}

/* Make the strip full-bleed relative to the viewport, ignoring the modal padding */
.about-image-strip {
margin-top: 3rem;
margin-left: calc(-1 * var(--modal-pad));
margin-right: calc(-1 * var(--modal-pad));
}

/* Same behavior/size as homepage + kill the global top margin inside the modal */
.about-image-strip .image-strip-container {
white-space: nowrap;
overflow-x: auto;
padding-bottom: 10px;
margin-left: 7.5vw;  /* ✅ matches homepage */
margin-top: 0;       /* avoids the extra 10vh from the global rule */
}

/* Keep 65vh like the homepage */
.about-image-strip img {
height: 65vh;
margin-right: 2px;
object-fit: cover;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* Close button */
.modal-close {
position: absolute;
top: 4px;
right: 5px;
font-size: 2rem;
background: none;
border: none;
color: black;
cursor: pointer;
}

.modal-close:hover {
  opacity: .8;
}


/* Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;

  /* animation state */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}



/* Fixed Büro Sofa Button */
    .fixed-buero-button {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 5%;
        padding: 9px 21px 9px 21px;
        background-color: rgba(206, 249, 50, .7);
        color: rgba(0,0,0,0.8);
        border: none;
        border-radius: 32px;
        cursor: pointer;
        z-index: 998;
        /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);*/
        transition-duration: 1s;
        transition-timing-function: linear;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        /*background: rgba(255, 255, 255, 0.15);*/
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        /* Subtle bevel-like effect */
        box-shadow:
        inset 2px 2px 5px rgba(255, 255, 255, 0.6),   /* top-left highlight */
        inset -2px -2px 5px rgba(0, 0, 0, 0.15),     /* bottom-right shadow */
        0 4px 30px rgba(0, 0, 0, 0.1);               /* outer shadow */

        border: 1px solid rgba(255, 255, 255, 0.3);
      }

      .fixed-buero-button:hover {
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 32px;
      }

      .sofa-logo {
        width: 75%;
      }


/* Reduce image height on small screens */
@media (max-width: 600px) {
.image-strip-container img,
.text-block,
.about-image-strip img,
video {
height: 55vh;
}

.breakpoint::after {
  content: "\A";
  white-space: pre;
}

.fixed-buero-button {
  bottom: 2%;
}

.image-strip-container {
margin-left: 6vw; /* smaller left margin on tiny screens */
}

.about-columns {
gap: 1rem;
}

.about-left,
.about-right {
font-size: 1rem;
}

.modal-close {
font-size: 2.2rem;
top: 0;
right: 0;
}
}

/* Make text scale better on very large screens */
@media (min-width: 1600px) {
body, .about-left, .about-right {
font-size: 1rem;
}
.services li {
font-size: 1rem;
}
}



/* imprint and privacy css, background-color: rgba(206, 249, 50, 1) */

.title-imprint {
  margin: 15px 15px;
  font-family: "Inter", sans-serif;
}

.privacy-title {
  text-transform: uppercase;
}


.privacy-text {
font-family: "Inter", sans-serif;
max-width: 800px;
margin-left: 2rem;
margin-bottom: 3rem;
}

.privacy-text:last-of-type{
  margin-bottom: 3rem;
}

.privacy-content {
  margin-top: 17vh;
}

.imprint-content {
  font-family: "Inter", sans-serif;
  max-width: 800px;
  margin-left: 2rem;
  margin-top: 17vh;
}

.imr > * + * {
  margin-top: 1.5rem; /* add space above every element except the first */
}

address {
  all: unset;
}


@media (max-width: 600px) {
  .about-modal {
    --modal-pad: 25px;        /* smaller sides */
    padding-top: 40px;        /* restore breathing room on top */
  }

  .footer {
  font-size: 0.8rem;
  margin-top: 2rem;
  }

  .imprint-content {
    margin-left: 1.5rem;
  }

  .privacy-text {
    margin-left: 1.5rem;
  }

}
