@font-face {
  font-family: "Apfel Grotesk";
  src: url("fonts/ApfelGrotezk-Regular.woff2") format("woff2"),
       url("fonts/ApfelGrotezk-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotesk";
  src: url("fonts/ApfelGrotezk-Mittel.woff2") format("woff2"),
       url("fonts/ApfelGrotezk-Mittel.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotesk";
  src: url("fonts/ApfelGrotezk-Fett.woff2") format("woff2"),
       url("fonts/ApfelGrotezk-Fett.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotesk";
  src: url("fonts/ApfelGrotezk-Satt.woff2") format("woff2"),
       url("fonts/ApfelGrotezk-Satt.woff") format("woff");
  font-weight: 900; /* schwere Schnitte → 900 */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotesk Brukt";
  src: url("fonts/ApfelGrotezk-Brukt.woff2") format("woff2"),
       url("fonts/ApfelGrotezk-Brukt.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Apfel Grotesk";
  overflow-x: hidden;
  color: #dfd9d8;
  font-size: 23px;
}

a {
  color: #fc8f8f;
}

p
{
  max-width: 684px;
}

.page-frame {
  position: fixed;
  inset: 0;
  border: 20px solid #fc8f8f;
  pointer-events: none;
  z-index: 999;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  
  background: #b44446;

  display: flex;
  justify-content: flex-end;

  padding: 0 60px;
  z-index: 998;
}

.top-bar nav {
  display: flex;
  align-items: center;   
}

.top-bar a {
  margin-left: 25px;
  color: #dfd9d8;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
  padding: 40px 0 20px 0;
}

.hero-image {
  width: 400px;
  margin: -105px 1px -20px -3px;
}

.hero-image2 {
  width: 400px;
  margin: -76px 1px 5px -65px;
}

.content-area {
  background: #64242f;
  min-height: 200vh;
  padding: 180px 100px 40px 100px;
  box-sizing: border-box;
}

.image-text-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 50px;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 260px;
  gap: 15px;
  margin-bottom: 50px;
  max-width: 600px;
  min-width: 300px;

  grid-template-areas:
    "a b b"
    "c c d";
}

.a { grid-area: a; }
.b { grid-area: b; }
.c { grid-area: c; }
.d { grid-area: d; }

.image-grid img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-grid2 {
  display: grid;
  grid-template-columns: 15fr 15fr;
  grid-template-rows: 15fr 15fr;
  gap: 15px;
  width: 1000px;
}

.image-grid2 img.img-normal {
  width: 100%;
}

.image-grid3 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  width: 1200px;
  height: 500px;
  gap: 15px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 100px;
}

.image-grid3 .img-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-grid3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-grid4 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  width: 1200px;
  gap: 15px;
  margin-bottom: 50px;
}

.image-grid4 .img-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-grid4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.layout-text-left-images-right {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  max-width: 1200px;
  gap: 50px;
  margin: 80px auto;
  align-items: start;
}

.text-left {
  max-width: 727px;
  text-align: right;
}

.image-grid-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.image-grid-right img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.text-block {
  max-width: 500px;
  text-align: left;
  margin-top: -18px;
}

.content-column {
  max-width: 500px;
  margin-right: 242px;
}

.fullscreen-image {
  max-width: 1200px;
  display: block;
  margin-left: auto;
  margin-right: auto; 
  margin-bottom: 20px;
}

.row {
  display: flex;
  justify-content: center; 
  gap: 20px;
  margin-bottom: 20px;
}

.row img {
  max-width: 45%;
  height: auto;
}

.portfolio-text p {
  max-width: 500px;
  margin: 50px auto 40px;
  text-align: justify; 
  text-align-last: center;
  hyphens: auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    gap: 15px;
    padding: 20px;
  }

  .item {
    position: relative;
    overflow: hidden;
  }

  .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }

  .item img:hover {
    transform: scale(1.05);
  }

  .tall { grid-row: span 2; }
  .big { grid-column: span 2; grid-row: span 2;}

.img-small {
  max-width: 450px; 
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox:target {
  display: flex;
}

.lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.lightbox img {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 2rem;
  text-decoration: none;
  z-index: 2;
}

.site-footer {
  text-align: center;
  padding: 10px 10px 30px;
  background-color: #b44446;
  position: relative;
}

.hover-caption {
  position: relative;
  overflow: hidden;
}

/* Overlay bleibt über das ganze Bild */
.caption-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Text erscheint beim Hover */
.hover-caption:hover .caption-overlay {
  opacity: 1;
}

/* Text wird kleiner und begrenzt */
.caption-text {
  max-width: 300px;       /* nur der Text, nicht das Overlay */
  text-align: center;
  color: #dfd9d8;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}