* {
    box-sizing: border-box;
    margin: 0;
}

@font-face {
    font-family: 'Spinnaker-Regular';
    src: url('font/Spinnaker-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {

    background-color: #CDC7BB;
    font-family: 'Spinnaker-Regular', sans-serif;
    color: silver;
}

.hero {
    background-image: url(../img/columns-5747584_1920.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    
}

nav {
    position: fixed;
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: url(../img/columns-5747584_1920.jpg);
    
    background-repeat: no-repeat;
    width: 100%;
    height: 50px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 250;
    letter-spacing: 4.5px;
}


.links {
    display: flex;
}

.links li {
    text-decoration: none;
    list-style-type: none;
    margin: 5px 15px;
}

a {
    text-decoration: none;
    color: silver;
}

.name-desktop:hover {
    cursor: pointer;
    color: antiquewhite;
}

a:hover {
    cursor: pointer;
    color: antiquewhite;
}

.welcome {
    width: 100%;
    text-align: center;
    margin: auto 0;
    
}

.welcome p {
    color: black;
    text-transform: uppercase;
    font-size: 32px;
    font-weight: 250;
    letter-spacing: 4.5px;
    border: 1px black solid;
    
}

.mobile-menu {
    visibility: hidden;
    width: 100vw;
    background-color: black;
    position: fixed;
    bottom: 0;
}

.mobile-menu .links {
    margin: 10px 0;
}


/* THEMEN */

.topics {
    padding-top: 30px;
    width: 100vw;
    height: auto;
    background-color: rgba(255,255,255,0.6);
}

.topics h2 {
    text-align: center;
    font-weight: 300;
    padding: 40px 0;
    color: black;
}

.topics .doits {
    margin: 20px 30px;
    display: flex;
    justify-content: space-between;

}
.topics .doits div {
    text-align: center;
}
.topics .doits div p {
    font-size: 1.3rem;
    color: black;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.topics-img-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.column {
    flex: 25%;
    max-width: 25%;
    
}

.column img {
    width: 100%;
    height: 200px;
   object-fit: cover;
}

/* Articles */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .link-grid a {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .link-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .link-grid a:hover .link-image {
    transform: scale(1.05);
  }
  
  .image-grid img {
    flex: 1 1 calc(50% - 20px); /* 2 columns */
    max-width: calc(50% - 20px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    object-fit: cover;
  }

  
  /* Responsive: stack to 1 column on narrow screens */
  @media (max-width: 600px) {
    .image-grid img {
      flex: 1 1 100%;
      max-width: 100%;
    }
  }


/* Clients */
.clients { 
    padding-top: 30px;
    width: 100vw;
    height: auto;
    text-align: center;
    margin: 30px 0;
    background-color: rgb(167, 159, 153);
    padding-bottom: 60px;
}

.clients h2 {
    text-align: center;
    font-weight: 300;
    padding: 40px 0;
    color: black;
}

.clients p {
    color: black;
    text-transform: uppercase;
    font-size: 21px;
    font-weight: 350;
    letter-spacing: 4.5px;
    margin: 10px 0;
}

/* Ausstattung */
.equipment {
    padding-top: 45px;
}
.equipment h2 {
    text-align: center;
    font-weight: 300;
    padding: 20px 0;
    color: black;

}

.equipment-grid {
    text-align: center;
}

.hardware {
    margin-bottom: 20px;
}

.hardware h3 {
    color: black;
    font-size: 15px;
}

.hardware p {
    color: black;
    font-size: 15px;
}

.last-item {
    margin-bottom: 70px;
}

/* Kontakt */
.contact {
    padding-top: 10px;
    width: 100vw;
    height: auto;
    background-color: rgba(255,255,255,0.6);
}

.contact h2 {
    margin-top: 30px;
    text-align: center;
    font-weight: 300;
    
    color: black;
    padding-top: 30px;
}

.contact-wrapper {
    padding: 30px;
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
} 

.phone-mail {
    margin: 40px 0;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 10px;
}

.phone-mail p {

    padding: 20px 0;
    font-size: 25px;
    font-weight: 300;
}

.phone-mail a {
    color: black;
    padding: 20px 0;
}

.phone-mail .impressum-btn {
    font-size: 10px;
}

button {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 10px 10px;
    background-color: lightgreen;
    border: none;
    border-radius: 4px;
}

.portrait img {
    width: 100%;
    object-fit: cover;
    opacity: 0.85;
    padding-bottom: 1000px;
}

/* contact orientation in desktop mode */
@media screen and (min-width: 600px) {
    .contact-wrapper {
        flex-direction: row;
        justify-content: space-around;
    } 

    .phone-mail {
    padding-top: 150px;
    align-items: center;
      
    }
   

    .portrait img {
        max-width: 400px;
        
    }
  }



/* Responsive image gallery */
@media screen and (max-width: 800px) {
    .column {
      flex: 50%;
      max-width: 50%;
    }

    .column img {
        height: 100px;
    }

    .name-desktop h1 {
        font-size: 8px;
    }
  }


  @media screen and (max-width: 990px) {

    .logo h1 {
        font-size: 14px;
    }

  }

@media screen and (max-width: 890px) {

    .logo h1 {
        font-size: 14px;
    }

    .welcome p {
        font-size: 20px;
    }

    .links li {
        
        margin: 5px 4px;
    }

    .topics .doits {
        flex-direction: column;
    
    }
  }

  @media screen and (max-width: 767px) {

    .logo h1 {
        font-size: 10px;
    }

    .links li {
        font-size: 12px;
    }
  }


  /* switch from top navbar to mobile nav at bottom */
@media screen and (max-width: 600px) {
   /** .column {
      flex: 100%;
      max-width: 100%;
    } */

    .column img {
        height: 60px;
    }

    .name-desktop h1 {
        
        font-size: 15px;
    }

    .mobile-menu {
        visibility: visible;
        min-width: 90%;
    }

   .mobile-menu-toggler {
        display: none;
    }



    .mobile-list-items {
        padding: 0 5px;

    }

    .mobile-list-items a {
        font-size: 12px;

    }

    
  }

  @media screen and (max-width: 500px) {
    .links li {
        font-size: 13px;
        margin: 5px 4px;
    }

  }



  /* Impressum */
  .show-impressum {
    margin-top: 30px;
    text-align: center;
    color: black;
  }

  .show-impressum p {
    font-size: 20px;
    color: white;
  }