html {
	scroll-behavior: smooth;
}

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 8px 16px;
	width: 90%; /* Maximale Breite der Seite */
	margin: 0 auto; /* Zentriert die Seite */
	min-height: 100vh;
	display: flex;
	flex-direction: column;

}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 16px; /* Abstand zwischen den Items, anpassbar */
}

header {
	display: flex;
	justify-content: space-between;
	margin: 10px 0px;
}

a {
	text-decoration: none;
	color: #000;
}

.YT-Link {
	text-decoration: none;
	font-size: 1.2em;
}

.YT-Link:hover {
	text-decoration: underline;
	color: #9A9A9A;
}

header h1 {
	padding-left: 10px;
}

nav {
	padding: 0px 0px;
	max-width: 30%;
}

nav ul {
	list-style: none;
	text-decoration: none;
	display: flex;
	justify-content: space-between;

}

nav ul li {
	margin: 0 10px;
	text-decoration: none;
	list-style: none;
	font-size: 2em;
	font-weight: 500;
}

nav ul li a {
	text-decoration: none;
	color: #000;
}

.nav-item {
	text-decoration: none;
	color: #000;
}

.nav-item:hover {
	text-decoration: underline;
	color: #9A9A9A;
}

#nav-item-active {
	text-decoration: underline;
}

h1 {
	font-size: 3em;
	margin: 0;
}

h2 {
	font-size: 3em;
	margin: 0;
}

p {
	font-size: 1.2em;
}

.gallery-item {
	/* Optional: Styling für einzelne Items */
	 position: relative;
      overflow: hidden;
      cursor: pointer;
}

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

 .gallery-item .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.4); /* grauer Overlay */
      opacity: 0;
      transition: opacity 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: white;
      font-family: sans-serif;
      text-align: center;
    }

    .gallery-item:hover img {
      filter: grayscale(30%) brightness(70%);
    }

    .gallery-item:hover .overlay {
      opacity: 1;
    }
	.gallery-item a {
	  text-decoration: none;
	  color: white;
	}

    .overlay .title {
      font-size: 1.5em;
	  font-weight: 550;
    }

    .overlay .subtitle {
      font-size: 1em;
	  font-weight: 550;
    }

	#info {
		display: flex;
	}

	#big-pic {
		flex: 1;
		max-width: 100%;
		height: auto;
	}

	.project-description {
		padding-right: 50px;
		max-width: 40%;
	}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
}

.gallery > div {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

/* Grid-Spezifikationen */
.small-pic {
  grid-column: span 1;
}

.medium-pic {
  grid-column: span 2;
  grid-row: span 2;
}

.large-pic {
  grid-column: span 3;
  grid-row: span 3;
}     

#ueber-mich {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
}	

#text-about {
	flex: 1;
	padding-right: 40px;
	max-width: 50%;
}

#about-pic {
	flex: 2;
	height: auto;
}

.about-link {
	text-decoration: none;
	color: #000;
	font-size: 1.5em;
	font-weight: 500;
	display: block;
	padding-top: 10px;
}

.about-link:hover {
	text-decoration: underline;
	color: #9A9A9A;
}

html {
	height: 100%;
}

#contact-main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	width: 100%;
}

#contact-info-div {
	text-align: center;
	margin-bottom: 20px;
	margin-top: 20px;
}

#contact-info-paragraph {
	font-size: 1.5em;
}

.contact-link {
	text-decoration: none;
}

.contact-link:hover {
	text-decoration: underline;
	color: #9A9A9A;
}

footer {
	bottom: 0;
	left: 0;
	width: 100%;
	text-align: center;
	margin-top: 0;
	padding: 16px 0;
	background: #fff;
	color: #666;
	margin-top: auto;

	}

	/* =========================================================
   RESPONSIVE DESIGN – Portfolio Website
   =========================================================
   Breakpoints:
   XS: bis 599px        (Smartphones)
   S:  600px–1023px     (Tablets)
   M:  1024px–1439px    (Desktops – Standardgrösse)
   L:  ab 1440px        (Wide Screens)
   ========================================================= */


/* =========================================================
   XS (Smartphones)
   ========================================================= */
@media (max-width: 599px) {

  /* --- Typografie --- */
  h1, h2 {
    font-size: 1.8em;
  }

  p {
    font-size: 1em;
  }

    .YT-Link {
	font-size: 1em;
}

  /* --- HEADER --- */
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
  }

  header h1 {
    font-size: 1.8em;
    padding: 0;
    margin: 0;
    text-align: left;
  }

  nav {
    max-width: auto;
  }

  nav ul {
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
  }

  nav ul li {
    font-size: 1.1em;
    margin: 0;
  }

  /* --- INDEX-Seite: gallery-grid --- */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* --- FILM-Seiten: gallery --- */
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery > div,
  .small-pic,
  .medium-pic,
  .large-pic {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* --- Layout: Über mich --- */
  #ueber-mich {
    flex-direction: column;
  }

  #text-about, #about-pic {
    max-width: 100%;
    padding: 0;
  }

  body {
    margin: 0 auto;
    width: 98%;
  }

  /* --- FILMSEITEN: big-pic + description --- */
  #info {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }

  #big-pic {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
  }

  .project-description {
    max-width: 100%;
    padding: 0 8px;
  }
}


/* =========================================================
   S (Tablets)
   ========================================================= */
@media (min-width: 600px) and (max-width: 1023px) {

  /* --- Typografie --- */
  h1, h2 {
    font-size: 2.2em;
  }

  p {
    font-size: 1.1em;
  }

    .YT-Link {
	font-size: 1.1em;
}

  /* --- HEADER --- */
  header {
    flex-direction: row; /* Auf einer Zeile bleiben */
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
  }

  header h1 {
    font-size: 2.2em;
    padding: 0;
    margin: 0;
    text-align: left;
  }

  nav {
    max-width: auto;
  }

  nav ul {
    justify-content: flex-end;
    gap: 16px;
  }

  nav ul li {
    font-size: 1.3em;
  }

  /* --- INDEX-Seite: gallery-grid --- */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* --- FILM-Seiten: gallery --- */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .large-pic,
  .medium-pic {
    grid-column: span 2;
    grid-row: span 2;
  }

  .small-pic {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* --- Layout: Über mich --- */
  #ueber-mich {
    flex-direction: column;
	align-items: center;
  }

  #text-about, #about-pic {
    max-width: 100%;
    padding: 0;
  }

  body {
    margin: 0 auto;
	width: 98%;
	
  }

  /* --- FILMSEITEN: big-pic + description --- */
  #info {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }

  #big-pic {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
  }

  .project-description {
    max-width: 100%;
    padding: 0 12px;
  }
}


/* =========================================================
   M (Desktops)
   ========================================================= */
@media (min-width: 1024px) and (max-width: 1439px) {

  /* --- Typografie --- */
  h1, h2 {
    font-size: 2.8em;
  }

  p {
    font-size: 1.1em; /* Originalgröße beibehalten */
  }

  .YT-Link {
	font-size: 1.1em;
}

  /* --- HEADER --- */
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
  }

  header h1 {
    font-size: 2.8em;
    text-align: left;
    margin: 0;
  }

  nav ul li {
    font-size: 1.8em;
  }

  /* --- INDEX-Seite: gallery-grid --- */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- FILM-Seiten: gallery --- */
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  /* --- FILMSEITEN: big-pic + description --- */
  #info {
    display: flex;
    flex-direction: row; /* Bild rechts, Beschreibung links */
    justify-content: space-between;
    align-items: flex-start;
  }

}


/* =========================================================
   L (Wide Screens)
   ========================================================= */
@media (min-width: 1440px) {

  /* --- Typografie --- */
  h1, h2 {
    font-size: 3.2em;
  }

  p {
    font-size: 1.2em; /* kann angepasst werden, z.B. 1.2em */
  }

  /* --- HEADER --- */
  header {
    margin: 20px 0;
  }

  header h1 {
    font-size: 3.2em;
    text-align: left;
  }

  nav ul {
    gap: 20px;
  }

  nav ul li {
    font-size: 2em;
    margin: 0 16px;
  }

  /* --- INDEX-Seite: gallery-grid --- */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* --- FILM-Seiten: gallery --- */
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  /* --- FILMSEITEN: big-pic + description --- */
  #info {
    display: flex;
    flex-direction: row; /* Bild rechts, Beschreibung links */
    justify-content: space-between;
    align-items: flex-start;
  }


  .project-description {
    padding-right: 24px;
  }

  /* --- Layout allgemein --- */
  body {
    max-width: 1600px;
    margin: 0 auto;
  }
}

