@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@400;600&display=swap');

/* =========================
   RESET & BASE
========================= */

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

body {
  font-family: Inter, sans-serif;
  color: #1f1f1f;
  background: #faf9f7;
  line-height: 1.6;
}

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

/* =========================
   HEADER
========================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 6%;
}

header h1 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 2px;
}

nav a {
  margin-left: 28px;
  text-decoration: none;
  color: #1f1f1f;
  font-size: 14px;
}

/* =========================
   HERO
========================= */

.hero {
  height: 85vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 50px;
  max-width: 600px;
  margin-left: 8%;
}

.hero-box h2 {
  font-family: "Playfair Display", serif;
  font-size: 46px;
  margin: 20px 0;
}

/* =========================
   SECTIONS
========================= */

section {
  padding: 90px 6%;
}

h3 {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  margin-bottom: 40px;
}

.light {
  background: #f2efea;
}

/* =========================
   PROJECT SLIDER (FINAL)
========================= */

.project-slider {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.slider-track {
  display: flex;
  gap: 28px;
  padding-bottom: 10px;
}

/* Jede Karte exakt gleich */
.project-slider .card {
  flex: 0 0 280px;
  height: 280px;
  display: flex;
}

/* Link & Bild füllen die Karte */
.project-slider .card a {
  display: block;
  width: 100%;
  height: 100%;
}

.project-slider .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Sonderregel: p4.jpg oben bündig */
.project-slider .card img.img-top {
  object-position: top center;
}

/* =========================
   GRID (UNTER SLIDER)
========================= */

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

.grid .card {
  display: flex;
  flex-direction: column;
}

.grid .card a {
  height: 260px;
  display: block;
}

.grid .card img {
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.card p {
  margin-top: 10px;
  font-size: 14px;
}

/* =========================
   PROJECT DETAIL
========================= */

.full {
  width: 100%;
  max-width: 900px;
  max-height: 1000px;
  margin: 0 auto;
  object-fit: contain;
}

/* =========================
   PROJECT TEXT
========================= */

.project-text {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.project-text p {
  margin-bottom: 18px;
}

/* =========================
   THUMBNAILS
========================= */

.thumbnails {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 25px 0 40px;
}

.thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  opacity: 0.7;
  transition: 0.2s ease;
}

.thumbnails img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* =========================
   STUDIO
========================= */

.studio-profile {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 60px 0;
}

.studio-profile img {
  width: 300px;
  max-width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.studio-profile-text {
  max-width: 600px;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 40px 6%;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  section {
    padding: 60px 20px;
  }

  header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  nav a {
    margin: 0 10px;
    font-size: 13px;
  }

  .hero {
    height: auto;
    padding: 40px 0;
  }

  .hero-box {
    margin: 0 20px;
    padding: 30px;
  }

  .hero-box h2 {
    font-size: 30px;
  }

  /* Slider mobil */
  .project-slider .card {
    flex: 0 0 85vw;
    height: 85vw;
  }

  /* Grid mobil */
  .grid {
    grid-template-columns: 1fr;
  }

  .grid .card a {
    height: 220px;
  }

  .full {
    max-height: 70vh;
  }

  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
