
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

h2{
    font-size:60px;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden; /* verhindert horizontales Scrollen */
}

/* Normale Texte */
body, p, li, a, span {
    font-family: 'Lato', sans-serif;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bruno Ace', cursive;
}

.hero {
  height: 100vh; /* Vollbild */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
}

.hero-logo {
  width: 90%;      /* passt sich Bildschirmbreite an */
  max-width: 800px; /* optional Limit */
  height: auto;
}

.header .navlogo {
  display: block; 
  height:  auto;
  width: 120px;
  margin: 0;
  padding: 0;
  margin-right: 10px;
  display: block;
  
}

.header {
  position: fixed;
  top: 0;
  left:0;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(253, 247, 247, 0.8);
  opacity: 0;                /* unsichtbar initial */
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.3s ease;
  z-index: 100;
  color: #b71220;
  box-sizing: border-box;
  overflow-x:hidden;
}

.header.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header a {
  
  display: flex;
  gap: 28px; /* Abstand zwischen Navigationspunkten */
  align-items: center;
  list-style: none;
}

.header a {
    font-family: 'Bruno Ace', cursive;
  color: #b71220;
  font-size: 20px;
  text-decoration: none;
  font-weight: 800;
  display: inline-block; /* wichtig für transform */
  transition: transform 0.3s ease, color 0.3s ease;
}

.header a:hover {
  color: #b71220;
  transform: scale(1.05);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .header {
        opacity: 1;
        pointer-events: all;
    }
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

.slogan {
  background-image: url(images/slogan.jpg);
  background-size: cover;
  background-position: center;
  padding: 150px;
  z-index: 0;
}

.slogan h1 {
  z-index: 1;
  text-align: center;
  font-weight: 400;
  font-size: 55px;
  color:#ffffff;
}

.slogan p{
  z-index: 1;
  text-align: center;
  font-weight: 350;
  font-size: 25px;
  color: #ffffff;
}

@media (max-width: 768px) {
    .slogan{
        width: 100%;
        padding: 20px;;
    }
    .slogan h1{
        hyphens: auto;
        font-size: 30px;
        overflow-wrap: break-word;
        text-align: center;

    }

    .umsetzung h2{
        font-size:30px;
    }
}


/* Footer-Grund */
.footer {
  background-color: #b71220;
  color: white;
  /*padding: 40px 20px;*/
  font-family: 'Lato', sans-serif;
}

/* Obere Zeile: Logo links, Kontaktdaten rechts */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* für Mobile */
  gap: 10px;
}

.footer-logo img {
  max-width: 300px;
}

.footer-contact {
    font-size: 25px;
    display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top:80px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
}

.footer-contact .icon img {
  width: 20px;
  height: 20px;
}

.footer-contact a {
  color: white;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Mittlere Zeile: Quicklinks nebeneinander */
.footer-links {
  display: flex;
  justify-content: center; /* zentriert unter Footer-Top */
  gap: 30px;
  margin: 40px 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Untere Zeile: Copyright */
.footer-bottom {
  text-align: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 0;
  margin-top: 30px;
}

/* Mobile: Obere Zeile untereinander, Links zentriert */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact{
    margin-top:10px;
    margin-left: 5px;
  }

  .footer-links {
    position: center; 
    gap: 15px;
    margin: 30px 0;
    /*margin:30px 0;*/
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-bottom{
    margin:30px 0;
  }
}

.fertige-bauprojekte {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.fertige-bauprojekte .slider {
    flex: 1;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
}

.fertige-bauprojekte .slider img {
    position: absolute;
    top: 50%;
    left:50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    border-radius: 8px;
}

.fertige-bauprojekte .slider img.active {
    opacity: 1;
    z-index: 1;
}

.fertige-bauprojekte .text {
    flex: 1;
    min-width: 300px;
}

.fertige-bauprojekte h2 {
    font-size: 60px;
    font-weight: 300;
    margin-bottom: 20px;
}

.fertige-bauprojekte p {
    font-size: 25px;
    font-weight: 150;
    line-height: 1.6;
}

@media (max-width: 768px) {
        .fertige-bauprojekte {
        flex-direction: column;
        align-items: stretch;
    }

    .fertige-bauprojekte .slider{
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }

    .fertige-bauprojekte .text {
        max-width: 100%;
    }

    .fertige-bauprojekte h2 {
        font-size: 30px;
    }

    .fertige-bauprojekte p {
        font-size: 18px;
    }

}

.umsetzung {
    border-top: 2px solid #b71220;
    padding: 20px 20px;
    background-color: #ffffff;
    margin: auto;
}

.umsetzung-text {
    text-align: left;
    color:#000000;
    margin-bottom: 20px;
}

.umsetzung-text h2 {
    font-size: 60px;
    font-weight:300;
    margin-bottom: 20px;
}

.umsetzung-text p {
    
    max-width: 1200px;
    font-size: 25px;
    line-height: 1.6;
}

.umsetzung-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.umsetzung-track {
    user-select: none;
    cursor: grab;
    display: flex;
    gap: 20px;
    /* Wir scrollen über JS, daher keine Animation hier */
}

.umsetung-track img{
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.umsetzung-item {
    flex: 0 0 auto;
    width: 250px;  /* Einheitliche Breite */
    height: 180px; /* Einheitliche Höhe */
    border-radius: 8px;
    border-color: #ffffff;
    overflow: hidden;
    background: #ff0000;
}

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

@media (max-width: 768px) {
    
    .umsetzung-text h2 {
        font-size: 30px;
    }

    .umsetzung-text p{
        font-size:18px;
    }
}

.rohbau {
    border-top: 2px solid #b71220;
    padding: 20px 20px;
    text-align: center;
    background: white;
}

.rohbau h2 {
    font-size: 60px;
    font-weight:300;
}

.rohbau p {
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #000000;
    font-size: 25px;
    line-height: 1.6;
}

.rohbau-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    max-width: 1000px;
    margin: auto;
}

.rohbau-container {
    overflow: hidden;
    max-width: 800px;
    width: 100%;
}
.rohbau-slide {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.rohbau-slide img {
    width: 100%;
    flex-shrink: 0;
    border-radius: 20px;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* Pfeile */
.arrow {
    background:#b71220;
    border: 2px solid #ddd;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.arrow:hover {
    background: #111;
    color: white;
    border-color: #111;
    transform: scale(1.1);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .section-gallery h2 {
        font-size: 30px;
    }

    .section-gallery p {
        font-size: 18px;
        color:#000000;

    }

    .rohbau h2{
        font-size:30;
    }

    .rohbau p{
        font-size: 18px;
    }

    .arrow {
        padding: 10px;
        font-size: 18px;
    }

    .rohbau h2{
        font-size:30px;
    }
}

.montage {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-top: 2px solid #b71220;
}

.montage h2 {
    font-size: 60px;
    font-weight: 300;
    margin-bottom: 15px;
}

.montage p {
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #000000;
    font-size: 25px;
}

/* Grid Layout */
.montage-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.montage-item {
    overflow: hidden;
    border-radius: 15px;
}

.montage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    cursor: pointer;
}

.montage-item img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px){
    .montage h2{
        font-size: 30px;
    }

    .montage p{
        font-size:18px;
    }

    .montage-container{
        grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
    }
}

.erfahrung {
    height: 90vh; /* Bereich zum Scrollen */
     /* erstes Bild als Default */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    transition: background-image 0.1s ease-in-out;
}

.erfahrung h2{
    font-size: 55px;
    font-weight: 600;
}

.erfahrung p{
    font-size: 30px;
}

@media (max-width: 768px){
    .erfahrung{
        background-size: 250% auto;
        background-repeat: no-repeat;
        background-position: top center;
        background-attachment: scroll;

        height:auto;
        padding-top: 20px;
        padding-bottom: 20px;
        
    }

    .erfahrung h2{
        font-size: 30px;
    }

    .erfahrung p{
        font-size: 25px;
    }
}