/* === Fonts === */

@font-face{
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans.ttf') format(truetype);
}

@font-face{
    font-family: 'Poppins-Light';
    src: url('../fonts/Poppins-Light.ttf') format(truetype);
}

@font-face{
    font-family: 'Poppins-Regular';
    src: url('../fonts/Poppins-Regular.ttf') format(truetype);
}

@font-face{
    font-family: 'Poppins-Medium';
    src: url('../fonts/Poppins-Medium.ttf') format(truetype);
}

@font-face{
    font-family: 'Poppins-Bold';
    src: url('../fonts/Poppins-Bold.ttf') format(truetype);
}

/* === Colors === */

:root {
    --navFirst: #DC3545;
    --navSecond: #FFFFFF;
    --navThird: #2C2C2C;
    --mainText: #2C2C2C;
    --accent: #DC3545;
    --background: #ffffff;
    --grey: #636363;
    --transition02: all 0.2s ease-in-out;
    --transition03: all 0.3s ease-in-out;
    --transition04: all 0.4s ease-in-out;
    --transition05: all 0.5s ease-in-out;
}

/* Typescale */

h1 {
    font-size: 2rem;
    letter-spacing: -2%;
    text-transform: uppercase;
}

h2 {
    font-size: 1.85rem;
}

h3 {
    font-size: 1.65rem;
}

h4 {
    font-size: 1.45rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    font-size: 1rem;
    line-height: 1.5rem;
}

small {
    font-size: .85rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: OpenSans, sans-serif;
}

section {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero-Section */

#hero {
    width: 100%;
    margin: 3rem auto 0 auto;
}

.hero_title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.hero_title > img {
    width: 60px;
    /* animation: rotation 1.5s ease; */
}

.hero_title > h1 {
    margin: 2rem 0;
}

@keyframes rotation {
    0% {
        margin: -100px;
        opacity: 0;
    }
    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

section.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-items: center; /* statt justify-content */
}

.image_item {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1; /* sorgt für gleichmäßige Quadrate */
    overflow: hidden;
    border: 1px solid #000;
}

.image_item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* verhindert verzerrte Bilder */
    transition: transform 0.5s ease; /* direkt statt var() */
    cursor: pointer;
}

.image_item img:hover {
    transform: scale(1.1);
}

/* 📱 Mobile (bis 600px) → max. 2 Spalten */
@media (max-width: 600px) {
    section.gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .image_item {
        max-width: 180px;
    }
}

/* 💻 Desktop (ab 992px) → bis zu 6 Spalten */
@media (min-width: 992px) {

    section.gallery {
        grid-template-columns: repeat(5, 1fr);
    }

}

/* Flex */


/* Lightbox Hintergrund */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

/* Bild mit Fade + Zoom */
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #000;
  /* opacity: 0; */
  /* transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease; */
}

.lightbox img.active {
  /* opacity: 1;
  transform: scale(1); */
}

/* Schließen-Button */
.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Pfeile */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: rgba(255,255,255,0.8); /* halbtransparent */
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  z-index: 10000; /* über dem Bild */
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

/* Abstand vom Bildrand auf kleinen Screens */
@media (max-width: 768px) {

  .lightbox .prev {
    left: 10px;
}

  .lightbox .next {
    right: 10px;
}

  .lightbox .prev,
  .lightbox .next {
    font-size: 2.5rem;
  }

}

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #ddd;
}


.link_btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    text-align: center;
    color: var(--background);
    transition: var(--transition03);
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 25px;
    width: min-content;

}

.link_btn:hover {
    color: var(--accent);
    background-color: var(--background);

}


#second .container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
}

#second .item p {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: .5rem;
}

#second .item span{
    display: inline-block;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    margin-right: .5rem;
    background-color: var(--accent);
}

#second .item img{
    height: 100px;
    width: auto;
}

#second .item{
    position: relative;
}

#second .item .btn{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent);
    height: 100px;
    width: 100px;
    border-radius: 50%;
    bottom: 20px;
    left: -50px;
    border: 4px solid var(--background);
    transition: var(--transition03);
}

#second .item .btn:hover{
    background-color: var(--mainText);
}

#second .item .btn > a{
    text-decoration: none;
    color: var(--background);
    font-size: 1.25rem;
    font-weight: bold;
}

/* About-Section */

#about{
    margin: 0;
    padding: 0;
}

.about_container{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
}

.about_item{
    width: 50%;
    height: 100vh;
}

.about_item_first{
    border-top-right-radius: 150px;
    border-bottom-right-radius: 150px;
    background-color: #7494EC;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.about_item_first h1,
.about_item_first p{
    color: var(--navSecond);
}

.about_item_first h1{
    margin-bottom: 1.5rem;
}

.about_item_first p{
    text-align: justify;
}

.about_item_second{
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px){
    .about_container{
        flex-direction: column;
    }

    .about_item{
        width: 100%;
        height: 50%;
    }
    
    .about_item_first{
        border-top-right-radius: 0;
        border-bottom-right-radius: 100px;
        border-bottom-left-radius: 100px;
        align-items: center;
        /* padding: 1rem; */
    }

    .about_item_first h1{
        margin-bottom: 1rem;
    }

}

/* Footer */

footer{
    width: min(1080px, 94%);
    margin: 0 auto;
}

.company{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    gap: 4rem;
}

.company_items{
    width: 210px;
    /* flex: 1; */
}

.company_items h4{
    padding-bottom: .2rem;
}

.company_items p{
    padding: .15rem 0;
}

.company_items .sub_title{
    font-weight: 600;
}

.company_items p a{
    color: var(--mainText);
    text-decoration: none;
    font-size: 1rem;
}

.company_items p a:hover{
    color: var(--accent);
}

.company_items span{
    font-size: 1rem;
    color: inherit;
    padding-right: .2rem;
}

.socials{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem; 
    height: 2rem;
}

.social_items{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    background-color: var(--accent);
    scale: 1;
    transition: var(--transition03);
}

.social_items img{
    height: 1.25rem;
}

.social_items:hover{
    scale: 1.5;
}

.copyright{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px 0;
  }

  .copyright span{
    display: block;
    height: 2px;
    width: 300px;
    border-top: 1px solid var(--mainText);
    margin-bottom: 1rem;
  }

  .copyright p{
    text-align: center;
    font-size: small;
  }
  