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

@font-face {
  font-family: "Milker";
  src: url("Milker.otf") format("opentype");
}

@font-face {
  font-family: "CactusJack";
  src: url("Cactus-Jack.woff") format("woff");
}

body {
  font-family: "Avenir", sans-serif;
  background: #ffffff;
  color: #111;
  overflow-x: hidden;
}

header {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 2rem;
}

.logo {
  font-family: "CactusJack";
  font-size: 2rem;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #111;
  font-family: "CactusJack";
}

.hero-museum {
  text-align: center;
  margin-top: 1rem;
  padding: 2rem;
}

.museum-headline {
  font-family: "Milker";
  font-size: 5rem;
  margin-bottom: 0.5rem;
}

.museum-subline {
  font-size: 1.5rem;
  opacity: 0.8;
  margin-bottom: 3rem;
  font-family: "CactusJack";
}


.enter-button {
  display: inline-block;
  margin-top: 30rem;
  padding: 1rem 2rem;
  border: 1px solid #111;
  text-decoration: none;
  color: #111;
  font-family: "CactusJack";
  font-size: 1.4rem;
  transition: 0.2s;
}

.enter-button:hover {
  opacity: 0.7;
}


@media (max-width: 600px) {
  .museum-headline { font-size: 3rem; }
  .illu { width: 80px; }
  .museum-illustrations { height: 140px; }
}

.rooms {
  max-width: 1000px;
  margin: 5rem auto;
  text-align: center;
}

.rooms-title {
  font-family: "Milker";
  font-size: 3.5rem;
  margin-bottom: 3rem;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.room-card img {
  width: 100%;
  border-radius: 6px;
}

.room-card p {
  font-family: "CactusJack";
  font-size: 1.4rem;
  margin-top: 0.5rem;
}

.room-hero {
  text-align: center;
  margin-top: 4rem;
}

.room-title {
  font-family: "Milker";
  font-size: 4rem;
}

.room-caption {
  font-family: "CactusJack";
  opacity: 0.7;
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

.room-gallery {
  max-width: 1200px;
  margin: 4rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.room-gallery img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}
.room-gallery img {
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.room-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}


.door-link img {
    transition: transform 0.25s ease;
}

.door-link:hover img {
    transform: translateY(-5px) scale(1.03);
}

.room-card img {
    width: 80%;  
    max-width: 450px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 2rem; 
  max-width: 1200px;
  margin: 3rem auto;
  justify-items: center;
}

.rooms-grid img {
  width: 80%;        
  max-width: 300px;  
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.rooms-grid img:hover {
  transform: scale(1.05);
}

.museum-illustrations {
    display: flex;
    justify-content: center;
    margin-top: -2rem;     
    margin-bottom: -28rem;  
}

.museum-illustrations img {
    width: 50%;
    max-width: 500px;
    height: auto;      
    display: block;
}


.rooms-title {
    font-family: "Milker";
    font-size: 4rem;
    text-align: center;
    margin-bottom: 4rem;
}


.door-label {
    text-align: center;
    font-family: "CactusJack";
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.75;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lb-stage {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lb-topline{
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.lb-counter{
  font-family: "CactusJack";
  font-size: 1.1rem;
  opacity: 0.6;
  border: 1px solid rgba(17,17,17,0.25);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

#lbImage {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
}

.lb-caption {
  font-family: "CactusJack";
  font-size: 1.2rem;
  opacity: 0.75;
  text-align: center;
  max-width: 70ch;
}

.lb-btn {
  position: fixed;
  background: transparent;
  border: 1px solid #111;
  color: #111;
  font-family: "CactusJack";
  font-size: 2rem;
  width: 52px;
  height: 52px;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
  display: grid;
  place-items: center;
}

.lb-btn:hover {
  opacity: 0.7;
}

.lb-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.2rem;
}

.lb-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 700px) {
  .lightbox {
    padding: 1rem;
  }

  .lb-prev, .lb-next {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }

  .lb-prev { left: 1.25rem; }
  .lb-next { right: 1.25rem; }

  .lb-caption {
    font-size: 1.05rem;
  }
}

.about {
  max-width: 1000px;
  margin: 4rem auto 6rem;
  padding: 0 2rem;
  text-align: center;
}

.about-title {
  font-family: "Milker";
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.about-intro {
  font-family: "CactusJack";
  font-size: 1.4rem;
  opacity: 0.8;
  max-width: 60ch;
  margin: 0 auto 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
  margin-top: 2rem;
}

.about-card {
  border: 1px solid #111;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
}

.about-head {
  font-family: "CactusJack";
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
}

.about-footer {
  margin-top: 3.5rem;
  text-align: center;
}

.about-note {
  font-family: "CactusJack";
  opacity: 0.75;
  font-size: 1.2rem;
}

.about-note a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(17,17,17,0.35);
}

.about-note a:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-title {
    font-size: 3rem;
  }
}

/* --- Museum Corridor Layout (Room pages) --- */

.room-walkthrough{
  max-width: 1200px;
  margin: 3rem auto 6rem;
  padding: 0 2rem;
}

.plaque{
  max-width: 900px;
  margin: 3.5rem auto 2rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(17,17,17,0.18);
  border-radius: 10px;
  text-align: center;
  background: #fff;
}

.plaque h2{
  font-family: "Milker";
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.plaque p{
  font-family: "CactusJack";
  opacity: 0.7;
  font-size: 1.15rem;
  line-height: 1.5;
}

.corridor{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;                 /* das ist der Gang */
  position: relative;
  margin: 0 auto;
}

.corridor::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  transform: translateX(-50%);
  width:1px;
  height:100%;
  background: rgba(17,17,17,0.12);
}

.wall{
  display: grid;
  gap: 3rem;
}

.frame{
  margin:0;
  padding: 0.8rem;
  border: 1px solid rgba(17,17,17,0.18);
  border-radius: 10px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.frame:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.frame img{
  width:100%;
  height:auto;
  border-radius: 6px;
  display:block;
  cursor: zoom-in;
}

/* Exit links */
.room-exit{
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: "CactusJack";
}

.room-exit a{
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid rgba(17,17,17,0.35);
  padding-bottom: 2px;
}

.room-exit a:hover{
  opacity: 0.7;
}

@media (max-width: 900px){
  .corridor{
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .corridor::before{
    display:none;
  }
}

.back-to-portfolio {
  position: absolute;
  top: 35px;              
  left: 50%;
  transform: translateX(-50%);

  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 0;       

  font-family: "CactusJack", sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  color: #1a1a1a;
  background: transparent;

  opacity: 0.8;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.back-to-portfolio:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(-50%) translateY(-1px);
}

.back-arrow {
  display: inline-block;
  transform: translateY(-1px); 
}
