/* === Base === */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #000;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* === Header & Navigation === */
header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 20px 40px;
  background-color: #fff;
  color: #000;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #ddd;
}

.logo {
  font-weight: 700;
  font-size: 1.4em;
  letter-spacing: 1px;
  justify-self: start;
}

nav {
  justify-self: center;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

.header-right {
  justify-self: end;
}

.insta-logo {
  display: inline-block;
}

.insta-logo img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.insta-logo img:hover {
  transform: scale(1.1);
}

/* === Hero Video Section === */
.hero-video {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 40px;
}

.hero-overlay h1 {
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  font-size: 1.3rem;
  font-weight: 500;
}

/* === Three Boxes Section === */
.three-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  min-height: 60vh;
}

.box {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  cursor: pointer;
  text-decoration: none;
}

.box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.4s ease;
  z-index: 1;
}

.box:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

.box:hover {
  transform: scale(1.02);
  z-index: 2;
}

.box-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 40px;
}

.box-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.box-content p {
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* === Project Grid (Work Page) === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* zwei Spalten pro Zeile */
  gap: 20px;
  padding: 40px;
}


.project-thumb {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 0;
}

.project-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
}

.project-thumb .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #111;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-thumb:hover img {
  opacity: 0.4;
}

.project-thumb:hover .overlay {
  opacity: 1;
}

/* === Gallery === */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px;
  justify-content: center;
}

.project-title,
.gallery-title,
.section-title {
  display: block;
  text-align: center;
  margin: 40px auto 30px;
  padding: 0 20px;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  width: 100%;
  max-width: 100%;
}

.gallery img {
  height: 300px;
  width: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 40px rgba(255,255,255,0.2);
  transition: transform 0.2s ease;
}

.lightbox:hover img {
  transform: scale(1.02);
}

/* === Carousel (Index Page) - Alex Penfold Style === */
.slideshow {
  width: 100%;
  padding: 60px 0;
  background: #f9f9f9;
  position: relative;
}

.slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.slides-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 0 80px;
}

.slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 20px;
  width: fit-content;
}

.slide {
  flex: 0 0 auto;
  width: 450px;
  height: 600px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* === Slider Controls === */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* === Contact Form === */
.contact-form {
  display: grid;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form button {
  padding: 12px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #333;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 30px;
  background-color: #fff;
  color: #000;
  border-top: 1px solid #ddd;
}

/* === Responsive === */
@media (max-width: 768px) {
  /* Header/Navigation */
  header {
    padding: 15px 20px;
  }

  .logo {
    font-size: 1.2em;
  }

  nav ul {
    gap: 15px;
  }

  nav a {
    font-size: 0.9rem;
  }

  /* Hero Section */
  .hero {
    height: 50vh;
    padding: 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Hero Video */
  .hero-video {
    height: 100vh;
    width: 100vw;
  }

  .hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }

  .hero-overlay {
    padding: 20px;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  /* Three Boxes */
  .three-boxes {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .box {
    min-height: 50vh;
  }

  .box-content h2 {
    font-size: 2rem;
  }

  .box-content p {
    font-size: 1rem;
  }

  /* Project Grid */
  .project-grid {
    grid-template-columns: 1fr; /* 1 Spalte auf Mobile */
    gap: 20px;
    padding: 20px;
  }

  /* Gallery */
  .gallery {
    padding: 20px;
  }

  .gallery img {
    height: auto;
    width: 100%;
    max-width: 400px;
  }

  /* Contact Form */
  .contact-form {
    padding: 0 20px;
  }

  /* Typography */
  h2 {
    font-size: 1.5rem;
  }

  .project-title,
  .gallery-title {
    font-size: 1.8rem;
  }
}
/* === About Page Layout === */
.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  flex-wrap: nowrap;
}

.about-image {
  flex: 0 0 420px;
  max-width: 420px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.about-text {
  flex: 1 1 500px;
  background-color: #f4f4f4;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #000;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #111;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
  }

  .about-text {
    padding: 20px;
  }

  .about-image {
    flex: 1 1 auto;
    max-width: 100%;
  }
}
.video-showcase {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
  background-color: #fff;
}

.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.video-lightbox video {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.video-showcase video {
  height: 500px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.video-showcase video:hover {
  transform: scale(1.03);
}

.video-showcase video:hover {
  /* Startet das Video bei Hover */
  animation-play-state: running;
}

.video-showcase video:not(:hover) {
  /* Pausiert das Video außerhalb von Hover */
  animation-play-state: paused;
}
@media (max-width: 768px) {
  .video-showcase {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 10px;
  }

  .video-showcase video {
    width: 90%;
    height: auto;
    aspect-ratio: 16 / 9; /* Querformat auf Mobile */
    max-height: 200px; /* Begrenzt die Höhe, damit Videos kleiner sind */
    object-fit: cover;
  }
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3; /* oder 3/2 etc., je nach Wunsch */
}


.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.video-lightbox video {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

/* === Extra Small Devices (iPhone SE, etc.) === */
@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }

  .logo {
    font-size: 1.1em;
  }

  nav ul {
    gap: 10px;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .slider-btn {
    font-size: 1.2rem;
    padding: 0.3em 0.6em;
  }

  .contact-form {
    padding: 0 10px;
  }
}
