* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	
}

@font-face {
    font-family: "Source Sans 3";
    src:
        url("/font/Source_Sans_3/SourceSans3-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}



body {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #222;
  
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

/* Zielzustand */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


.container {
    max-width: 1400px;
	width: 95%;
    margin: auto;
}

.subheading {
	text-align: center;
	font-weight: bold;
	/*font-size: 3rem;*/
	font-size: clamp(1rem, 6vw, 3rem);
	padding-bottom: 2%;
}


.header {
    background: #262626;
	/*background: linear-gradient(to right, #25476b, #536d8a); */
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* WICHTIG */
  padding: 15px 0;
}

.logo {
    font-weight: 700;
    font-size: 2rem;
	text-align: left;
	padding-left: 20px;
}


.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav {
  display: flex;
  align-items: center;

}

#ueber-uns, #projekte {
	scroll-margin-top: 90px;
	
}

#leistungen {
	scroll-margin-top: 250px;
}

	


.nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
}

.nav .cta {
    background: transparent;
    padding: 8px 14px;
    border-radius: 4px;
	border: 1px solid #fe1212;
	transition: background 0.4s, color 0.4s;
}


.cta:hover{
    background: #fe1212;
}


.burger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.hero {
	position: relative;
	/*background:
	        linear-gradient(
            to bottom,
            rgba(0,0,0,0) 70%,
            #969696 100%
        ),*/
	/*background-image:url('Hauptbild.PNG');
	background-size: cover;  /*Passt das Bild an den Container an */
	/*background-repeat: no-repeat; /* Verhindert Wiederholung */
	/*background-position: center; /* Zentriert das Bild */
    color: #fff;
    align-items: center;
	z-index: 1;
}

.hero img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  min-height: 50vh;
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* Stärke des Schleiers */
  z-index: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* Stärke des Schleiers */
  z-index: 0;
}

.hero-content {
	position: absolute;
	top: 35%;
	left: 30%;
	transform: translate(-50%, -50%); /* Verschiebt das Objekt um die Hälfte seiner eigenen Größe */
    width: auto;
	height: auto;
	/*background: rgba(0, 0, 0, 0.75); /* halbtransparent */
	padding: 10vw;
	color: #222;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0);
	z-index: 1;
	
}


.hero-content h1 {
  font-weight: 700; /* für Überschriften */
  /*font-size: 4.5rem;*/
  font-size: clamp(1.3rem, 6vw, 4.5rem);
  color: #fe1212;
  text-align: left;
  line-height: 0.2;
  padding-top: 10vw;
  font-weight: bold;
}

.hero-content h2 {
  font-weight: 700; /* für Überschriften */
  font-size: 2.5rem;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  text-align: left;
  line-height: 2;
  font-weight: bold;
  color: #ffffff;
  
}

.hero-content p {
  font-weight: 550; /* normaler Text */
  text-align: left;
  line-height: 0.8;
  font-size: 2rem;
  font-size: clamp(0.9rem, 3vw, 2rem);
  color: #ffffff;
}






.card {
	background: #262626;
    border-radius: 6px;
	padding-top: 25px;
	padding-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	color: #ffffff;
	text-align: center;
}



.grid {
	position: relative;
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));*/
	grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -15vh;
	text-align: center;
	z-index: 2;
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid h3 {
	font-weight: 700;
	font-size: clamp(1rem, 2.8vw, 2rem);
	line-height: 2;
}

.grid p {
	padding-left: 5%;
	padding-right: 5%;
	font-size: clamp(0.6rem, 1.4vw, 1.25rem);
}


@keyframes slideUp {
    from {
        transform: translateY(250px);
        opacity: 1;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}


.section {
    padding: 40px 0;
	background: #555555;
}

.section.light {
    background: #bfbfbf;
}






.projects-grid {
    display: grid;
    max-width: 1400px;
	width: 95%;
    margin: 0 auto;
}


.projects-stage {
    position: relative;
    display: flex;
	max-width: 1400px;
	width: 100%;
	justify-content: space-between;
    justify-content: center;
	gap: 50px;
}

@media (max-width: 700px) {
  .projects-stage {
    flex-direction: column;
    gap: 3vh;
  }
}

/* Normale Projekte */
.project {
	padding: 0px;
    position: relative;
	width: 100%;
	height: auto;
    cursor: pointer;
    transition: filter 0.4s ease;
    z-index: 1;
	margin-bottom: 3vh;

}

/* Abdunkelung */
.project.dimmed {
    filter: brightness(0.4);
}


.project img {

    object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.image-wrapper {
	width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project:not(.active):hover .image-wrapper img {
    transform: scale(1.05);
}

.project.active {
    z-index: 10;
}


/* Text unter Bild */
.project-info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1.5vw;
  color: #fff;
  border-radius: 6px;

  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;

  border-radius: 6px;
  z-index: 1;
}

.project-info::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0)
  );

  opacity: 0;
  transition: opacity 0.4s ease;

  z-index: -1;
}


.project:hover .project-info {
  opacity: 1;
  transform: translateY(0);
}

.project:hover .project-info::before {
  opacity: 1;
}

.project.active .project-info {
    max-height: 200px;
    opacity: 1;
}

.project.active .project-info {
    opacity: 1;
    transform: translateY(0);
}


.project-text * {
    pointer-events: none;
	
}

.project-info h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
	color: #ffffff;
}



.projects-link {
    margin-top: 0px;
    text-align: center;
	
}

.projects-link a {
    position: relative;
    display: inline-block;
    color: #fe1212;
    font-weight: bold;
    font-size: 1.5rem;
	font-size: clamp(0.8rem, 6vw, 1.5rem);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
}

.projects-link a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: currentColor;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.projects-link a:hover {
    transform: scale(1.05);
}

.projects-link a:hover::after {
    transform: scaleX(1);
}



.ueberuns {
    position: relative;
    background: #262626;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 40px;
	padding-right: 40px;
	padding-top: 30px;
	padding-bottom: 30px;
    border-radius: 6px;
    color: #ffffff;
    line-height: 1.7;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

/* Sichtbar, sobald eingeblendet */
.ueberuns.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Linke obere L-Ecke */
.ueberuns::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-top: 3px solid #fe1212;
    border-left: 3px solid #fe1212;
}

/* Rechte untere L-Ecke */
.ueberuns::after {
    content: "";
    position: absolute;
    bottom: 20px;
    right: 20px;

    width: 40px;
    height: 40px;

    border-bottom: 3px solid #fe1212;
    border-right: 3px solid #fe1212;
}

.ueberuns h2 {
	font-size: clamp(1rem, 5vw, 2rem);
    margin-bottom: 2vw;
}

.ueberuns p {
    max-width: 1300px;
    color: #d8d8d8;
	font-size: clamp(0.6rem, 2.5vw, 1.05rem);
}





form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
}


.btn-large {
    padding: 18px 36px;
	background: #262626;
    font-size: 1.2rem;
    color: #fff;
	border: 1px solid #fe1212;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    border-radius: 4px;
	transition: background 0.5s, color 0.5s;
}


.btn-large:hover {
    background: #fe1212;
	/*border: 1px solid #fe1212;*/	
}





.footer {
	background: #262626;
    /*background: linear-gradient(to right, #536d8a, #25476b);*/
    color: #fff;
    text-align: center;
    padding: 20px;

}

.footer-content {
    display: flex;
    justify-content: center;
	gap: 20px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


.footer-btn {
    background: transparent;
    color: #fe1212;
    border: 1px solid #fe1212;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.footer-btn:hover {
    background: #fe1212;
    color: #fff;
}

@media (max-width: 770px) {
    .nav {
        display: none;
        flex-direction: column;
        background: #262626;
        position: absolute;
        top: 60px;
        right: 0;
		padding: 1vw;
        width: auto;

        text-align: right;
    }

    .nav a {
        margin: 2vw 0;
    }

    .burger {
        display: block;
    }
}