/* style.css */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

h2 {
  color: #436a6b;
}

header {
  background-color: #659fa4; /* Logo-Farbton */
  color: white;
  padding: 30px 20px;
  text-align: right;
  position: relative;

  background-image: url(headerpic.jpg);
  background-size: cover;
   background-repeat: no-repeat;
   background-position: center center;
   background-color: rgba(255, 255, 255, 0.6)
}

header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

header h1, .logo {
  position: relative;
  z-index: 1;
  font-size: 1.5em;
}

.logo {
  max-width: 250px;
  display: right;
  margin: 0 auto 10px;
}

nav {
  background-color: #659fa4;
 
  
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);

  
  display: flex;
  justify-content: center;
  padding: 0.5em 0;

}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav a {
    
    color: white;
    margin: 0 1em;
    text-decoration: none;
  
}

nav a:hover {
  color: #436a6b;
}

main {
  padding: 30px 20px;
}

.referenzen-container {
  display: flex;
  gap: 80px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.referenz {
  width: 260px;
  text-align: left;
}

.logo-box {
  height: 90px;              /* EINHEITLICHE LOGO-HÖHE */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  margin-bottom: 15px;
}

.ref-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin: 0;                     /* verhindert komische Abstände */
  text-align: left;
}


.referenz-name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}
.ref-logo {
  filter: grayscale(100%);
  opacity: 0.9;
}

.referenz:hover .ref-logo {
  filter: grayscale(0%);
  opacity: 1;
}
.referenz-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.referenz-link:hover .referenz-name {
  text-decoration: underline;
}
.referenz-link:hover {
  cursor: pointer;
}



section {
  margin-bottom: 50px;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  
}

section img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

form {
  margin-top: 15px;
  width: 600px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

button {
  background-color: #6BA1A2;
  color: white;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #588e8e;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #659fa4;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 40px;
}
ul {
  list-style: none;
  padding: 0;
}
ul li {
  margin-bottom: 1.5em;
}
/* Responsive Design */
  @media (max-width: 768px) {
    header {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      padding: 15px;
      text-align: right;
    }
  
    .logo {
      max-width: 100px;
      height: auto;
      margin-bottom: 5px;
      margin: 0;
    }
  
    header h1 {
      font-size: 0.6em;
      margin: 10px 0 0 0;
    }
  
    nav {
      flex-wrap: wrap;
      padding: 0.5em 10px;
    }
  
    nav ul {
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }
  
    nav a {
      font-size: 10px;
    }
  
    form {
      width: 100%;
    }
  
    section {
      padding: 15px;
    }
  
    button {
      width: 100%;
    }
  }
  @media (max-width: 480px){
  #referenzen .referenz{
    width: 48%;
    text-align: center !important;
  }

  #referenzen .logo-box{
    justify-content: center !important;
  }

  #referenzen .referenz-name{
    text-align: center !important;
  }
}
/* ✅ Referenzen: Mobile IMMER nebeneinander (2 Spalten) */
@media (max-width: 480px){
  #referenzen .referenzen-container{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;     /* nicht umbrechen */
    justify-content: space-between;
    gap: 12px;
  }

  #referenzen .referenz{
    width: calc(50% - 6px) !important; /* exakt 2 Spalten */
    text-align: center !important;
  }

  #referenzen .logo-box{
    height: 55px;
    justify-content: center !important;
  }

  #referenzen .ref-logo{
    height: 42px !important;          /* kleiner, damit es bei 320px passt */
  }

  #referenzen .referenz-name{
    font-size: 13px !important;
  }
}

  

  
