/* === COLORS === 
  dark-green-blue: #102c2f
  green-blue: #093B43 / rgb(9, 59, 67)
  grey-blue: #4c4f52 (Buttons)
  light-blue:  #b9ccdb
  beige: #adaaa4;
  hellbeige: #dbdbdb (html) */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
  background-color: #dbdbdb;
}

body {
    padding: 0%;
    height: 100%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
}

h2, h6 ,p {
    margin: 0%;
}

p {
  font-size: 18px
}

@media (max-width: 1024px) { 
  html {
    background-color: white;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) { 
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 26px;
  }

  section {
    width: 100%
  }
}

@media (max-width: 480px) { 
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  p, a, li {
    font-size: 16px;
  }
}

a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

a:link { color: white; }          
a:hover { color: rgb(241, 238, 238); text-decoration: underline;}

/* === HEADER === */

/* Desktop-Navigation*/

header {
    background-image: url("../img/Wellenfront_verkleinert.jpg");
}

.hero-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    position: relative;
    padding-bottom: 5%;
}

.hero-logo-box img {
    width: 35%;
}

.hero-logo-box a {
    display: block;
    width: 35%;
}

.hero-logo-box a img {
    width: 100%;
}
    
.contact-icons {
    display: flex;
    position: absolute;
    bottom: 5%; 
    right: 2%;
}

.contact-icons img {
    height: 60px;
    width: auto;
    margin-left: 50px;
    transition: transform 0.2s ease;
}

.nav {
    margin: 0 2%;
    padding: 5px; 
    list-style: none;
    font-size: 16px;
    font-weight: bold;
    line-height: 50px;
    text-align: right;
}

.nav li {
    display: inline;
    padding: 5px;
}

#mobile-nav {
    display: none;
}

/* --- MOBILE NAVIGATION --- */

@media (max-width: 768px) {

  header {              
    position: relative;
  }

  .hero-logo-box {
    align-items: center;
  }

  .hero-logo-box a {
    display: block;
    width: 50%;
  }

  .hero-logo-box a img {
    width: 100%;
  }

  #desktop-nav-container {
    display: none;
  }

  #mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 10px 20px;
    background-color: #b9ccdb;
    position: relative;
  }

  .menu-toggle {
    font-size: 28px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
  }

  .mobile-menu {
    display: none;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    width: 100%;
    height: 100vh;
    text-align: right;

    position: absolute; 
    top: 100%;          
    left: 0;
    background-color: #b9ccdb; 
    z-index: 10;        
    text-align: center;
    justify-content: center;
  }

  .mobile-menu li {
    padding: 10px 10px;
  }

  .mobile-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
  }

  .mobile-menu a:hover {
    text-decoration: underline;
  }

  .mobile-menu.active {
    display: block;   
  }

  .contact-icons {
    top: 50%;  
    right: 10px;
    transform: translateY(-25%);
    display: flex;
    flex-direction: column;  
    align-items: center;       
  }

  .contact-icons img {
    width: auto;
    margin-left: 0;
    transition: transform 0.2s ease;
  }

  .contact-icons img:hover {
    transform: scale(1.1);
}

  #phone-icon {
    height: 40px;
  }

  #mail-icon {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .hero-logo-box img {
    width: 65%;
  }

  .contact-icons {
    display: none;
  }
}

.hero {
    display: flex;
    justify-content: center;
    margin: 5% 0;
    text-align: center;
}

.hero-content {
    width: 60%;
    padding-bottom: 3%;
}

.hero h2 {
    margin: 20% 0 3% 0; 
}

/* === GRID-SECTION (1) === */

    .hero-leistungen {
        padding: 5% 2%;
        background-color: #b9ccdb;
        display: flex;
    }
    
.hero-leistungen-grid {
    display: grid;
    grid-template-columns: 100%;
    background-color: #b9ccdb;
    padding: 10px;
    padding-bottom: 20px;
    justify-content: center;
  }
  
  #one   { grid-column: 1; grid-row: 1; }
  #two   { grid-column: 1; grid-row: 2; }
  #three { grid-column: 1; grid-row: 3; }
  #four  { grid-column: 1; grid-row: 4; }

  #five  { grid-column: 1; grid-row: 1; }
  #six   { grid-column: 1; grid-row: 2; }
  #seven { grid-column: 1; grid-row: 3; }
  #eight { grid-column: 1; grid-row: 4; }

.grid-item {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px 20px 0 20px;
  font-size: 18px;
  text-align: center;
  overflow: hidden;
  object-fit: cover;
}

#four, #eight {
  padding-bottom: 40px;
}
    
.grid-item h2 {
  padding-top: 40px;
}

.grid-item img {
  width: 100%;
}

.grid-button-box {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: baseline;
}

.info {
  width: 50%;
  height: 50px;
  background-color: #adaaa4;
  color: white;
  border: none; 
  border-radius: 5px;
  transition: background-color 0.3s;
}

.info:hover {
  background-color: #4c4f52;
}

/* === RESPONSIVE GRID-SECTION (1) === */

@media (max-width: 768px) {

  .hero-leistungen {
    background-color: #b9ccdb;
    flex-direction: column;
    padding: 3% 0;
  }
  .hero-leistungen-grid{
    grid-template-columns: 100%;
    padding: 20px 0;
    margin-bottom: 3%;
  }

  .grid-item h2 {
    font-size: 24px;
    padding-top: 2%;
  }
}

@media (max-width: 480px) {
  .hero-leistungen-grid {
    padding: 10px 0 0 0;
  }

  .grid-item h2 {
    font-size: 20px;
    padding-top: 2%;
  }
}

    
/* === SECTION (2) === */

.two {
    width: 100%;
}

.flex-container-zubehoer {
    width: 100%;
    padding: 5% 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-image: url("../img/Seil.jpg");
}

.flex-container-zubehoer div {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 30%;
}

#flex-one   { order: 1; }
#flex-two    { order: 2; }
#flex-three  { order: 3; }

.flex-container-zubehoer h2 {
    color: white;
    font-size: 50px;
    font-weight: bold;
}

.flex-container-zubehoer div button {
    margin: 20px 0;
    width: 70%;
    font-weight: bold;
}

.flex-container-zubehoer div .middle {
    margin: 100px 0;
}

@media (max-width: 768px) {

  .flex-container-zubehoer {
    padding: 3% 0;
  }

  .flex-container-zubehoer h2 {
    font-size: 32px;
  }

  .flex-container-zubehoer div .middle {
    margin: 20px 0;
  }

    .flex-container-zubehoer div button {
    font-size: smaller;
    font-weight: bold;
  }
}

@media (max-width: 480px) {
  .flex-container-zubehoer {
    flex-wrap: wrap;
  }
  
  #flex-one   { 
    order: 2; 
    width: 50%;
    margin: 5% 0      }

  #flex-two    { 
    order: 1;
    width: 100%;
    margin: 5% 0 0 0;
  }

  #flex-three  { 
    order: 3;
    width: 50%;
  }

  .flex-container-zubehoer h2 {
    font-size: 24px;
  }

  .flex-container-zubehoer div button {
    margin: 10px 0;
  }
}

/* === SECTION (3) === */

.sonderanfertigungen {
    background-color: #b9ccdb;
    padding-bottom: 3%;
    position: relative;
}

.special {
    background-color: white;
    display: flex;
    flex-direction: column;
    
    padding: 2% 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.special p {
    
    margin-bottom: 40px;
    width: 60%;
}

.special h2 {
    margin: 25px 0;
    font-size: 22px; 
    margin-top: 40px;
}

#table {
    width: 60%;
}

#table img {
    width: 100%;
}

/* === RESPONSIVE GRID-SECTION (3) === */

@media (max-width: 480px) {
  .sonderanfertigungen {
    padding-bottom:40px;
  }

  
  #table {
    width: 80%;
  }
}

/* === FOOTER === */

footer {
    width: 100%;
    background-image: url("../img/Wellenfront_verkleinert.jpg");
}

.footer {
    width: 90%;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

.footer ul {
    list-style: none;
    padding: 0%;
    color: white; 
    font-size: 18px;
    line-height: 30px;
    font-weight: bold;
    bottom: 50px;
}

.copy-right {
    text-align: right;
    font-weight: bold;
    margin: 1% 5%;
    padding-bottom: 1%;
}

/* === RESPONSIVE FOOTER === */

@media (max-width: 768px) {
    .footer {
    height: 135px;
  }

  .footer ul {
    line-height: 20px;
  }

  .footer a {
    font-size: 14px;
    font-weight: bold;
  }

  .copy-right {
    margin: 2% 0%;
    padding-right: 6%;
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {

  .footer ul {
    line-height: 16px;
  }

  .footer a {
    font-size: 12px;
    font-weight: normal;
    line-height: 20px;
  }

  .copy-right {
    font-size: 11px;
    font-weight: normal;
  }
}

