/* Variables */
:root {

  /* Colors */
  --light-grayish-blue: hsl(220, 16%, 96%);
  --very-light-gray:    hsl(0, 0%, 98%);
  --grayish-blue:       hsl(233, 8%, 62%);
  --dark-blue:          hsl(233, 26%, 24%);
  --white:              hsl(0, 0%, 100%);
  --red:                #FF5959;
  --yellow:             #FFE162;
  
  /* Spacing */
  --px: 20px;
}
  

*, *::before, *::after {
  margin:  0;
  padding: 0;
  box-sizing: border-box;
}
  
li { list-style: none; }
  
a { 
  text-decoration: none; 
  color: inherit;
}
  
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}
  
html {
  font-size: 18px;
  scroll-behavior: smooth;
}
  
img, span, svg { display: block; }
  
  
/* Main */
.container {
  max-width: 1440px;
  margin: auto;
}
  

/* Header */
header { 
  position: fixed; 
  top:  0;
  left: 0;
  width: 100%;
  z-index: 10;
}
  
.navbar {
  background: var(--dark-blue);
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding: 20px var(--px);
  }
  
.navbar-toggle-btn {
  display:        flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
}
  
.navbar-toggle-btn span {
  display: block;
  background: var(--white);
  width:  25px;
  height: 1px;
  transition: 0.25s ease;
}
  
.navbar-toggle-btn.active .one { transform: rotate(45deg) translateY(3px); }
.navbar-toggle-btn.active .two { display: none; }
.navbar-toggle-btn.active .three { transform: rotate(-45deg) translateY(-3px); }
  
.navbar-nav {
  position: fixed;
  background: var(--white);
  top:   60px;
  left:  20px;
  right: 20px;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap: 20px;
  padding: 40px 0;
  border-radius: 5px;
  z-index: -1;
  opacity: 0;
  transition: 0.5s ease;
  pointer-events: none;
}
  
.navbar-nav a {
  color: var(--dark-blue);
  display: block;
}
  
.navbar-nav.active {
  top: calc(60px + 20px);
  opacity: 1;
  box-shadow: 0 0 100px 100px hsla(233, 26%, 24%, 0.2);
  pointer-events: all;
}

.navbar-nav a:hover {
  color: var(--red);
}
  
.btn-primary {
  background: linear-gradient(75deg, var(--red), var(--dark-blue));
  color: var(--white);
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin: auto;
  transition: 0.25s ease;
}
  
.btn-primary:hover { opacity: 0.7; }
  
.navbar .btn-primary { display: none; }
  
/* Home */
main { overflow: hidden; }
  
.home {
  background: var(--very-light-gray);
  padding-bottom: 60px;

}
  
.home-img-box {
  background: url(../img/trockenbau-muenster-header.jpg) no-repeat top;
  background-size: cover;
  padding: 0 15px;
  margin-bottom: 40px;
  opacity: 0.4;
}
  
.home-img-box .home-img {
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: bottom;
}
  
.home-title {
  font-size: 38px;
  font-weight: 400;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 20px;
  padding: 0 20px;
}
  
.home-text {
  margin: auto;
  color: var(--grayish-blue);
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
  padding: 0 20px;
}
  
/* Contact */
.contact {
  margin-top: 30px;
  text-align: center;
  display: grid;
}

.contact-title {
  font-size: 35px;
}

.contact-text {
  color: var(--grayish-blue);
  text-align: center;
  font-size: 22px;
  line-height: 1.7;
  margin-top: 60px;;
  margin-bottom: 30px;
  padding: 0 20px;
}

.contact .address, .email, .phone {
  display: grid;
  grid-template-columns: 30% 1fr;
  margin-bottom: 30px;
}

.contact .address ion-icon,
.contact .email ion-icon,
.contact .phone ion-icon { 
  justify-self: end;
  margin-right: 20%;
  color: var(--dark-blue);
  font-size: 40px;
  transition: 0.25s ease;
}

.contact .address .address-text,
.contact .email .email-text,
.contact .phone .phone-text {
  justify-self: center;
}

.contact .address ion-icon:hover,
.contact .email ion-icon:hover,
.contact .phone ion-icon:hover {
  color: var(--red);
} 

/* Impressum */  
.impressum {
  padding-top: 10%;
  text-align: center;
  margin-top: 30px;
}

.impressum-title {
  font-size: 38px;
  font-weight: 400;
  color: var(--dark-blue);
  margin-bottom: 20px;
}

.impressum hr {
  margin-right: 60px;
}

.impressum .textarea {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  margin-left: 10%;
  margin-bottom: 10%;
  text-align: left;
}

.impressum .textarea p {
  margin-top: 20px;
}

.impressum-company {
  font-size: 24px;
  line-height: 1.7;
  color: var(--grayish-blue);  
}

.impressum-section {
  font-size: 20px;
  font-weight: 400;
  color: var(--dark-blue);
  text-decoration: underline;
  margin-top: 20px;
}

/* Datenschutzerklaerung */

.datenschutzerklaerung {
  padding-top: 10%;
  text-align: center;
  margin-top: 30px;
}

.datenschutzerklaerung-title {
  font-size: 38px;
  font-weight: 400;
  color: var(--dark-blue);
  margin-bottom: 20px;
}

.datenschutzerklaerung hr {
  margin-right: 60px;
  margin-bottom: 30px;
}

.datenschutzerklaerung .textarea {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  margin-left: 10%;
  margin-bottom: 10%;
  text-align: left;
}

.datenschutzerklaerung-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(lue);
  margin-bottom: 30px;
}

.datenschutzerklaerung .img-group{
  display: grid;
  font-size: 8px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-content: center;
  align-items:     center;
  padding-top: 50px;
}

.img-prev {
  width: 50%;
  height: 50%;
}
  
/* Service */

.service {
  padding: 60px var(--px);
  background: var(--light-grayish-blue);
}
  
.section-title {
  color: var(--dark-blue);
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 20px;
}
  
.section-text {
  color: var(--grayish-blue);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
   margin-bottom: 50px;
}
  
.service-card-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
  
.service-card { text-align: center; }
  
.service-card .card-icon {
  margin: auto;
  margin-bottom: 30px;
  width: 100%;
  height: auto;
}
  
.service-card .card-title {
  color: var(--dark-blue);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}
  
.service-card .card-text {
  font-size: 16px;
  color: var(--grayish-blue);
  line-height: 1.7;
}
  
.service-list { 
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: center;    
}

.service-list li{
  padding: 5px;
  font-size: 15px;
}
  
/* About Us */

.about-us {
  background: var(--very-light-gray);
  padding-bottom: 60px;
  display: grid;
  padding-top: 60px;
}

.about-us-img-box {
  padding: 0 15px;
  margin-bottom: 40px;
}

.about-us-title {
  font-size: 38px;
  font-weight: 400;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 20px;
  padding: 0 20px;
}
  
.about-us-text {
  margin: auto;
  color: var(--grayish-blue);
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
  padding: 0 20px;
  text-align: justify;
}
  
.article-card-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
  
.article-card {
  border-radius: 5px;
  background: var(--white);
  overflow: hidden;
}
  
.article-card .card-head { height: 200px; }
  
.article-card .card-img {
  width:  100%;
  height: 100%;
  object-fit: cover;
}
  
.article-card .card-body { padding: 20px; }
  
.article-card .article-author {
  font-size: 10px;
  color: var(--grayish-blue);
  margin-bottom: 10px;
}
  
.article-card .card-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-blue);
  margin-bottom: 10px;
  transition: 0.25s ease;
}
  
.article-card .card-title:hover { color: var(--red); }
  
.article-card .card-text {
  font-size: 13px;
  color: var(--grayish-blue);
  line-height: 1.5;
}
  
/* Footer */

footer {
  background: var(--dark-blue);
  display:         flex;
  justify-content: center;
  align-items:     center;
  flex-direction:  column;
  text-align: center;
  padding: 40px var(--px);
}
  
.footer-brand {
  margin: auto;
  margin-bottom: 30px;
}
  
.social-link {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}
  
.social-link ion-icon {
  color: var(--white);
  font-size: 30px;
  display: block;
  transition: 0.25s ease;
}
  
.social-link ion-icon:hover { color: var(--red); }
  
.footer-nav { margin-bottom: 30px; }
  
.footer-nav ul,
.footer-nav ul li:not(:last-child) { margin-bottom: 15px; }
  
.footer-nav a {
  color: var(--white);
  font-size: 15px;
  transition: 0.25s ease;
}
  
.footer-nav a:hover { color: var(--red); }
  
footer .btn-primary { margin-bottom: 30px; }
  
.copyright {
  color: var(--white);
  font-size: 14px;
}
  
/* RESPONSEIVE */
  
/* For Tablets */

@media (min-width: 768px) {
  
  :root { --px: 80px }
  
  /* Home */
  .home-text {
    font-size: 18px;
    max-width: 600px;
  }
  
  .contact-title {
    font-size: 55px;
  }

  .contact .address, .email, .phone {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-bottom: 30px;
  }

  .contact .address ion-icon,
  .contact .email ion-icon,
  .contact .phone ion-icon { 
    grid-column-start: 2;
    justify-self: center;
  }

  .impressum {
    padding-top: 10%;
  }

  .datenschutzerklaerung {
    padding-top: 10%;
  }

  /* Service */
  
  .section-text {
    font-size: 18px;
    max-width: 400px;
    margin: auto;
    margin-bottom: 50px;
  }
  
  .service-card-group { grid-template-columns: repeat(2, 1fr); }
  
  /* About us */
  .about-us { grid-template-columns: repeat(2, 1fr); }
  
  .article-card-group { grid-template-columns: repeat(2, 1fr); }
  
}
  
  
/* For large tablets */
  
@media (min-width: 1024px) {

  /* Header */
  header { position: static; }
  
  .navbar { padding: 0 var(--px); }
  
  .navbar-toggle-btn { display: none; }
  
  .navbar-nav {
    position: static;
    padding: 0;
    z-index: 0;
    flex-direction: row;
    gap: 30px;
    opacity: 1;
    pointer-events: all;
    background: var(--dark-blue);
  }
  
  .navbar-nav a {
    font-size: 15px;
    color: var(--white);
    padding: 30px 20px;
    transition: 0.25s ease;
  }
  
  .navbar-nav a:hover {
    color: var(--red);
    box-shadow: inset 0 -3px 0 var(--red);
  }
  
  .navbar .btn-primary {
    display: block;
    margin: 0;
    transition-delay: 0s;
  }
  
  .navbar .btn-primary:hover { opacity: 0.7; }
  
  
  .impressum {
    padding-top: 2%;
  }

  .datenschutzerklaerung {
    padding-top: 2%;
  }

  /* Home */
  
  .home {
    display:        flex;
    flex-direction: row-reverse;
    align-items:    center;
    padding: 0;
  }
  
  .home-img-box {
    width: 55%;
    background: url(./images/bg-intro-desktop.svg) no-repeat bottom left;
    background-size: 150%;
    margin:  0;
    padding: 0;
  }
  
  .home-img-box .home-img {
    width: 75%;
    transform: translate(250px, -10px) scale(1.05);
    aspect-ratio: unset;
  }
  
  .home .wrapper { 
    width: 45%;
    padding-left: var(--px); 
  }
  
  .home-title {
    font-size: 55px;
    text-align: left;
    padding: 0;
  }
  
  .home-text {
    text-align: left;
    margin:  0;
    padding: 0;
    margin-bottom: 30px;
    max-width: 450px;
  }
  
  .btn-primary { margin: 0; }
  
  /* Service */
  .service { padding: 100px var(--px); }
  
  .section-title {
    text-align: left;
    font-size: 40px;
  }
  
  .section-text {
    text-align: left;
    max-width: 650px;
    margin: 0;
    margin-bottom: 80px;
  }
  
  .service-card-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
    
  .service-card { text-align: left; }
  
  .service-card .card-icon {
    margin: 0;
    margin-bottom: 30px;
    max-height: 210px;
  }
  
  .service-card .card-title { font-size: 24px; }
  
  .service-card .card-text { font-size: 16px; }
  
  .about-us-title {
    padding-top: 30px;
    text-align: left;
  }
  

  .article-card-group { grid-template-columns: repeat(3, 1fr); }
  
  .contact .address, .email, .phone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 30px;
  }
      
  .contact .address ion-icon,
  .contact .email ion-icon,
  .contact .phone ion-icon { 
    justify-self: end;
    grid-column-start: 1;
  }

  .contact .address .address-text,
  .contact .email .email-text,
  .contact .phone .phone-text {
    justify-self: start;
  }
  
  
  /* Footer */
  
  footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 50px var(--px);
  }
  
  footer .wrapper-flex {
    width: 50%;
    display: flex;
    justify-content: space-between;
  }
  
  .footer-brand {
    margin: 0;
    margin-bottom: 50px;
  }
  
  .social-link {
    gap: 12px;
    margin-bottom: 0;
  }
  
  .social-link ion-icon { font-size: 22px; }
  
  .footer-nav {
    margin-bottom: 0;
    width: 50%;
    display: flex;
    justify-content: space-between;
  }
  
  .footer-nav ul { margin-bottom: 0; }
  
  footer .btn-primary { margin-left: auto; }
  
}
  
/* For latop */
@media (min-width: 1200px) {
  
  :root { --px: 160px; }
  
}
