header {
    background: url("./../img/start.jpg") no-repeat center;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

header .line {
    background-color: white;
    height: .5px;
    position: absolute;
    bottom: 30px;
    margin: 0;
}

article {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

article.visible {
    opacity: 1;
    transform: translateY(0);
}
  

article#kontakt, article#partner, article#info {
    min-height: 100vh;
    margin-top: -60px;
}

.responsive-padding {
    padding: 80px 20px;
}

.button-wrap {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.button {
    text-decoration: none;
    font-size: 20px;
    font-weight: 300;
    padding: 6px 20px;
    border-radius: 30px;
    margin: 8px 0;
    width: fit-content;
    transition: all .3s ease;
}

.primary-bttn.onLightBgr {
    color: rgb(0, 0, 0);
    border: 1px solid rgb(0, 0, 0);
}

.primary-bttn.onDarkBgr {
    color: white;
    border: 1px solid white;
}

.secondary-bttn.onLightBgr {
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
}

.secondary-bttn.onDarkBgr {
    color: rgb(0, 0, 0);
    background-color: white;
}

.primary-bttn.onLightBgr:hover, .primary-bttn.onDarkBgr:hover, .secondary-bttn.onLightBgr:hover, .secondary-bttn.onDarkBgr:hover {
    background-color: var(--orange);
    border: 1px solid var(--orange);
    color: white;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.info-wrap, .info-preview-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px 0;
    margin-bottom: 40px;
}

.info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 260px;
    height: 260px;
    border-radius: 100%;
    border: 1px solid black;
    font-size: 22px;
    font-weight: 300;
    transition: all .3s ease;
}

.info-box:hover {
    transform: scale(1.1);
}

.info-box span {
    font-weight: 500;
}

.connection {
    background-color: black;
    width: 1px;
    height: 60px;
}

.info-box:hover {
    background: var(--orange);
    color: white;
    border: none;
} 



.leistungen-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch; 
    justify-content: center;
    transition: all 0.3s ease;
}


.leistungen-card {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
    text-align: left;
    color: white;
    transition: all 0.3s ease;
    margin: 10px 0;
    transition: all .3s ease;
}

.leistungen-card .title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
}

.leistungen-card .details {
    font-size: 16px;
    font-weight: 300;
}

.leistungen-card a.button {
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    margin-top: 40px;
    align-self: flex-end;
    font-size: 16px;
    width: 60px;
    transition: all .3s ease;
}

.leistungen-card a.button:hover {
    background-color: var(--orange);
    border: 1px solid var(--orange);
    font-weight: 400;
    transform: translateY(-2px);
}

.leistungen-card a.button {
    overflow: hidden;
}

.leistungen-card#putz {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('./../img/putz.png');
    background-size: cover;
    background-position: center;
}

.leistungen-card#stuck {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('./../img/stuck.png');
    background-size: cover;
    background-position: center;
}

.leistungen-card#fassade {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('./../img/fassaden.png');
    background-size: cover;
    background-position: center;
}

.leistungen-card#brandschutz {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('./../img/brandschutz.png');
    background-size: cover;
    background-position: center;
}

.leistungen-card#denkmalschutz {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('./../img/denkmalschutz.png');
    background-size: cover;
    background-position: center;
}

.leistungen-card#waermeschutz {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('./../img/waermeschutz.png');
    background-size: cover;
    background-position: center;
}

.leistungen-card#energieberatung {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('./../img/energieberatung.png');
    background-size: cover;
    background-position: center;
}

.leistungen-card#malerarbeiten {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('./../img/malerarbeiten.png');
    background-size: cover;
    background-position: center;
}

.leistungen-card#ladenausbau {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('./../img/ladenausbau.png');
    background-size: cover;
    background-position: center;
}

.three-wrap {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 12px;
}

.partner-card {
    width: 100%;
    display: flex;
    flex: 1;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 100px 20px 20px 20px;
    text-align: left;
    gap: 12px;
    position: relative;
    text-decoration: none;
    color: black;
}

.partner-card img {
    height: 34px;
    position: absolute;
    top: 20px;
    left: 20px;
}

.partner-card .title {
    font-size: 22px;
    font-weight: 400;
}

.partner-card .details {
    font-size: 18px;
    font-weight: 300;
}

.contact-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr; 
    width: 100%;
}


.contact-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 0 1.5px 0 rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    font-size: 20px;
    font-weight: 400;
    background-color: white;
}

.contact-card a {
    color: black;
    font-size: 16px;
    margin-top: 20px;
    font-weight: 300;
    text-align: left;
}

.contact-card img {
    width: 42px;
    height: 42px;
}

.info-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 0 1.5px 0 rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 30px 0;
    position: relative;
}

.info-card img {
    width: 42px;
    height: 42px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.info-card p {
    text-align: left;
    margin-top: 30px;
    line-height: 1.5;
}

.leistungen-wrap2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.leistungen-card2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    background: rgba(0, 0, 0, 0.05);
}

.leistungen-card2 img {
    width: 100%;
}

.leistungen-card2 .text {
   text-align: left;
}

.leistungen-card2 .title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
}

.leistungen-card2 .details {
    font-size: 16px;
    font-weight: 300;
}

a.projekt {
    width: 100%;
    text-decoration: none;
    color: black;
     transition: transform 0.3s ease;
}

a.projekt:hover {
    transform: translateY(-20px);
}

a.projekt img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

a.projekt .title {
    font-size: 22px;
    font-weight: 300;
    margin: 12px 0;
}

a.projekt .details {
    font-size: 18px;
    font-weight: 300;
    margin: 12px 0;
    color: rgba(0, 0, 0, 0.5);
}

a.projekt .line, .projekt-wrap .line {
    margin: 0;
}

.projekt-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;

    position: relative;
}

.projekt-wrap .image-wrap {
  /* position: relative; */
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  overflow-x: scroll;
  scroll-behavior: smooth;
  padding-top: 40px; /* Platz für die Pfeile */
}

.projekt-wrap img {
  width: 85%;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
}

/* Pfeile fürs Scrollen */
.scroll-btn {
  position: absolute;
  top: 80px;                       /* vertikal mittig */
  transform: translateY(-50%);    /* wirklich zentriert */
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.6);
  color: rgb(0, 0, 0);
  border: none;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.scroll-btn.left {
  left: 10px;  /* Abstand von links */
}

.scroll-btn.right {
  left: 60px; /* Abstand von rechts */
}

/* Overlay / Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;

    display: none;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 80%;
  max-height: 80%;
}

.lightbox .close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: white;
  background-color: rgba(0, 0, 0, 0);
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  border: none;
}

.lightbox .close {
  top: 20px;
  right: 30px;
}

.lightbox-prev {
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
}


.projekt-wrap p {
    margin: 10px 0 20px 0;
}

.tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
    margin: 20px 0;
}

.tag {
    padding: 10px 20px;
    background-color: rgba(255, 101, 50, 0.2);
    width: max-content;
    border-radius: 30px;
    display: inline-flex;
}


footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 0 0 120px 0;
}

footer a {
    font-size: 16px;
    color: #555555;
    text-decoration: none;
    font-weight: 300;
    margin: 0 -.25rem;
    padding: 0 .25rem;
    box-shadow: inset 0 0 0 0 #54b3d6;
    transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
}

footer a:hover {
    box-shadow: inset 100px 0 0 0 #54b3d6;
    color: white;
}

footer a, .contact-card a {
    box-shadow: inset 0 0 0 0 #000000;
    color: #000000;
    margin: 0 -.25rem;
    padding: 0 .25rem;
    transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
}

footer a:hover, .contact-card a:hover {
    box-shadow: inset 200px 0 0 0 #000000;
    color: white;
}

.line {
    width: 100%;
    height: 1px;
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    margin-bottom: 80px;
}

.zertifikate {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 100px 0 0 0;
}

.zertifikat {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
    padding: 50px 0 0 0;
}

.zertifikat img {
    width: 200px;
}

#kontakt2 p {
    width: 100%;
    text-align: center;
    margin-top: 60px;
}

#kontakt2 p a {
    /* text-decoration: none; */
    color: black;
    font-weight: 400;
}

@media screen and (min-width: 400px) {
    .info-box {
        width: 300px;
        height: 300px;
    }
}

@media screen and (min-width: 600px) {
    .leistungen-card2 {
        flex-direction: row;
    }

    .leistungen-card2:nth-child(even) {
        flex-direction: row-reverse;
    } 

    .leistungen-card2 img, .leistungen-card2 img {
        width: 50%;
    }

    .leistungen-card2 .title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    a.projekt img {
        height: 500px;
    }
}

@media screen and (min-width: 768px) {

    .responsive-padding {
        padding: 80px 50px;
    }

    .button-wrap {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    .three-wrap {
        width: 100%;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        flex-direction: row;
    }

    a.projekt.smaller {
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }
    
    a.projekt.smaller:hover {
        transform: scale(0.9) translateY(-20px);
    }    

    .partner-card img {
        height: 24px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projekt-wrap {
        flex-direction: row;
        gap: 40px;
    }

    .projekt-wrap img, .projekt-wrap .projekt-info {
        width: 50%;
    }

    .projekt-wrap img {
        min-height: 350px;
        max-height: 350px;
    }

    .projekt-wrap img {
        height: unset;
    }

    .info-wrap {
        flex-direction: row;
        justify-content: center;
        align-items: stretch; 
        gap: 20px;
    }

    .zertifikat {
        flex-direction: row;
        gap: 50px;
        padding: 50px 0 0 0;
    }
}

@media screen and (min-width: 900px) {

    .info-preview-wrap {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
   
    .info-box {
        width: 250px;
        height: 250px;
    }

    .info-card {
        margin: 0 10px;
    }

    .connection {
        background-color: black;
        width: 60px;
        height: 1px;
    } 
    
    .leistungen-wrap {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    .leistungen-card2 .details {
        line-height: 1.5;
    }
}

@media screen and (min-width: 1025px) {

    .responsive-padding {
        padding: 80px 120px;
    }

    .partner-card img {
        height: 30px;
    }

    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
            
}

@media screen and (min-width: 1200px) {

    .partner-card img {
        height: 34px;
    }

    .partner-card img.bigger {
        height: 60px;
    }

    .responsive-padding {
        padding: 100px 0px;
    }

    article {
        max-width: 1100px;
        margin: 0 auto;
    }
    
}

