/* styles.css */

/* Your existing styles here */

@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

*{
	font-family: 'Montserrat', sans-serif;
	padding: 0;
	margin: 0;
}

:root {
  --schwarz: #0e141b;
  --grau: #ddd;
	--mittelgrau: #b3b3b3;
	--dunkelgrau: #808080;
	--akzent: #12e3d9;
	--beige: #d6c6af;
	--blau: #2563eb;
	--blau-hover: #1e40af;
	--bg-1: #191e23;
	--bg-2: #121212;
	--bg-3: #111827;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

a {
	color: inherit;
	text-decoration: none;
}

header {
	text-decoration: none;
	color: black;
	padding: 80px;
	text-align: center;
	align-content: center;
}

#main-header{
	height: 100vh;
	padding: 0px;
	background-image: url('header-photos/241217_Immobasis_ Oberwil_Lieli_WEB-11.jpg');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
}

.second-header {
	margin-bottom: 80px;
}

.second-header h1 {
	color: white;
}

#photo-header {
	height: 40vh;
	background-image: url('header-photos/220907_HWZ_Diplomfeier_MAS_25hours_225.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

#video-header {
	height: 40vh;
	background-image: url('header-photos/310824_GBMZ_Jubiläum_WEB-229.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

#wedding-header {
	height: 60vh;
	background-image: url('header-photos/Hochzeit_220722_042.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.header-logo{
	height: 35%;
}

header h1 {
	font-size: 3em;
	text-transform: uppercase;
	font-weight: 700;
}

header a {
	text-decoration: none;
	color: black;
}

#name {
	font-weight: 600;
}



/* ===============================
	 NAV
================================= */

nav {
	z-index: 1000;
  background-color: var(--schwarz);
  overflow: hidden;
  display: flex;
  align-items: center;
	padding: 1vw 0vw 1vw 10vw;
	position: fixed;
	width: 100vw;
}

.nav-logo {
	height: 30px;
}

nav a {
		transition: 0.3s ease;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
		border-radius: 50px;
		margin: 0 30px 0 0px;
}

nav a:hover {
    background-color: #ddd;
    color: black;
}

#menu-toggle {
	z-index: 1100;
  display: none;
	position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
	border-radius: 5px;
  color: black;
  cursor: pointer;
  padding: 0px 6px;
}

#menu-toggle.active {
  color: white;
}




/* ===============================
	 BODY
================================= */

body {
    transition: background-color 0.3s ease;
}

#body-index {
}

.main-index {
	margin: 0;
	padding: 0 0vw;
	background-color: var(--bg-1);
}

.site-title {
	text-align: center;
	font-size: 3em;
	font-weight: bolder;
	padding: 80px;
	color: black;
}

#site-title-index {
	color: white;
}

.site-title-second {
	text-align: center;
	font-size: 3em;
	font-weight: bolder;
	color: black;
}

.site-subtitle {
	text-align: center;
	font-size: 1.5em;
	font-weight: normal;
	padding: 40px;
	color: black;
}

.intro {
	max-width: 800px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
}

.intro-text {
	font-size: 1.2em;
	font-weight: normal;
	padding-bottom: 40px;
	color: black;
}


/* ===============================
	 MASONRY PREVIEW
================================= */

.home-masonry-preview {
	background-color: var(--bg-2);
  padding: 5rem 1.5rem;
  text-align: center;
  color: #fff;
}

.masonry-grid {
	column-count: 3;
  column-gap: 1rem;
	max-width: 1400px;
  margin: 3rem auto;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.masonry-item:hover img {
  transform: scale(1.03);
}

#masonry-grid {
  transition: opacity 0.3s ease;
}


/* Responsive */
@media (max-width: 1200px) {
  .masonry-grid { column-count: 3; }
}
@media (max-width: 768px) {
  .masonry-grid { column-count: 2; }
}
@media (max-width: 500px) {
  .masonry-grid { column-count: 1; }
}






/* ===============================
	 ABOUT
================================= */

.about {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	align-content: space-around;
	text-align: center;
	padding: 0;
	padding-bottom: 4em;
	margin: auto;
	gap: 60px;
}

.about > div {
	max-width: 600px;
	max-height: 770px;
}

.portrait {
	object-fit: contain;
	max-width: 600px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

}

#about-container {
	border: 1px solid darkgrey;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#about-text {
	padding: 35px;
	font-size: 1.6em;
	font-weight: 300;
	align-content: center;
	color: white;
}



/* ===============================
	 SERVICES
================================= */

.services-section.dark {
  background-color: var(--bg-2);
  color: #eee;
  padding: 6rem 2rem;
  text-align: center;
}

.services-section.dark h2 {
  margin-bottom: 2.5rem;
  color: #fff;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-tile {
  background-color: #1e1e1e;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 300px;
  flex: 1 1 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08);
}

.service-tile h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.service-tile p {
  font-size: 1rem;
  color: #cccccc;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--akzent);
}



/*																									Portfolio Buttons
.portfolio-buttons {
	background-color: #121212;
  display: flex;
  justify-content: center;
  gap: 40px;
	padding-bottom: 160px;
}

.btn {
  background-color: white;
  color: black;
  padding: 14px 34px;
  text-decoration: none;
  font-size: 22px;
  border-radius: 50px;
  transition: background-color 0.3s ease;
	border: 1px solid white;
}

.btn:hover {
  background-color: var(--schwarz);
	color: white;
}
*/



/* ===============================
	 CLIENTS
================================= */

#kunden {
  color: black;
  padding: 4rem 1rem;
  text-align: center;
}

#kunden h2 {
	color: white;
  font-weight: bold;
  margin-bottom: 3rem;
}

.kunden-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-items: center;
}

.kunden-logo-tile {
  background-color: white;
  width: 180px;
  height: 120px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.kunden-logo-tile:hover {
  transform: scale(1.05);
}

.kunden-logo-tile img {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;
}



/* ===============================
	 CTA
================================= */
.cta-section {
	background-color: var(--bg-1);
  color: #f9fafb;
  padding: 4rem 1rem;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-section h2 {
  font-weight: 700;
}

.cta-section p {
  font-size: 1.1rem;
  color: #d1d5db;
}

.cta-button {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: fit-content;
  margin: 0 auto;
}

.cta-button:hover {
  background-color: #1e40af;
}




/* ===============================
	 VIDEO GRID
================================= */
#video-portfolio {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

#video-portfolio .portfolio-item {
		flex: 1 1 calc(33.33% - 20px);
		max-width: calc(33.33% - 20px);
    margin: 10px;
		margin-bottom: 50px;
    box-sizing: border-box;
    float: left;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.portfolio-item p {
	margin-top: 0;
}




/* ===============================
	 PHOTO GRID
================================= */
.filter-buttons {
  text-align: center;
  margin-bottom: 3rem;
}
.filter-buttons button {
  margin: 0.5rem 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: none;
  background: var(--bg-1);
  color: #fff;
  border-radius: 20px;
}
.filter-buttons button.active {
  background: var(--akzent);
	color: black;
}

#photo-portfolio{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

#wedding-portfolio{
	margin: 0;
	padding: 0;
	background-color: white;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
	margin-bottom: 100px;
}

.photo-column {
	flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-item {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}

.photo-item.fading-out {
  opacity: 0;
  transform: scale(0.98);
}

.photo-item.hidden {
  display: none;
}

.photo-item img {
  width: 100%;
	height: auto;
  display: block;
	object-fit: cover;
}




/* ===============================
	 CONTACT
================================= */
.contact-info {
    text-align: center;
		padding-bottom: 80px;
}

#site-title-contact,
#contact {
	color: white;
}

.contact-info a{
  color: inherit;
}


.map-container {
    margin: 20px auto;
		padding-bottom: 100px;
    max-width: 800px;
    text-align: center;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}


/* ===============================
	 FOOTER
================================= */
footer {
  background-color: var(--schwarz);
  color: #eee;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

.footer-logo {
  max-width: 100px;
  margin-bottom: 10px;
}

.footer-branding p {
  margin: 0;
}

.footer-links ul,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-contact p {
  margin-bottom: 6px;
}

.footer-links a,
.footer-contact a,
.footer-social a {
  color: #ccc;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
	color: white;
}

.footer-social a {
  display: inline-block;
  margin-right: 10px;
}

.footer-social img {
  width: 24px;
	padding: 5px 3px 0 0;
  height: 24px;
  filter: invert(80%);
  transition: filter 0.3s ease;
}

.footer-social img:hover {
  filter: invert(100%);
}






/* ===============================
	 RESPONSIVE
================================= */
/* 																			Small Desktop layout (≤ 1300px) */
@media (max-width: 1300px) {
	#video-portfolio .portfolio-item {
		flex: 1 1 calc(50% - 20px);
		max-width: calc(50% - 20px);
	}

	.portfolio-item h3 {
	  min-height: 40px; /* passt für 2 Zeilen bei ~16px Schriftgröße */
	}
}


/* 																			Tablet layout (≤ 992px) */
@media (max-width: 992px) {
	#menu-toggle {
		display: block;
		position: fixed;
		top: 20px;
		right: 20px;
	}

	nav {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	nav a {
    margin: 0;
}

  nav#main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background: black;
    position: fixed;
    top: 0px;
    right: 0;
    left: 0;
    padding: 10px 0;
    z-index: 1000;
  }

  nav#main-nav.active {
    display: flex;
  }
}

.portfolio-item h3 {
	font-size: 1em;
}

.portfolio-item p {
	font-size: 0.8em;
}

/* 																			Mobile layout (≤ 768px) */
@media (max-width: 768px) {

	header {
		padding: 0;
	}

	#main-header{
		background-image: none;
		background-color: var(--beige);
	}

	.site-title {
		padding: 60px 0 10px 0;
		font-size: 2em;
	}

	.site-title-second {
		font-size: 2em;
	}

	.site-subtitle {
		font-size: 1.2em;
		padding: 0;
	}

	.intro {
	  margin: 0 auto;
	  padding: 0;
	}

	.intro-text {
		font-size: 1em;
		font-weight: normal;
	}


	h1, h2, p {
		text-align: center;
	}

	h2 {
		font-size: 2rem;
}
	.btn,
	.contact-btn {
		text-align: center;
    padding: 14px 34px;
    font-size: 1rem;
	}


	.about{
		gap: 30px;
	}

	.about > div {
		width: 95vw;
		margin: 10px;
	}

	.portrait {
		width: 55vw;
}

	#about-text {
		padding: 20px 10px;
		font-size: 1em;
	}


	.photo-grid {
    flex-direction: row;
  }

  .photo-column {
    flex: 1 1 45%;
  }

  .portfolio-buttons {
    flex-direction: column;
    align-items: center;
		padding: 50px 0;
  }

		/* 																			VIDEO PAGE */
	#video-portfolio .portfolio-item {
		flex: 1 1 100%;
    max-width: 100%;
	}


	/* 																			FOOTER */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social a {
    margin: 5px;
  }

}
