/*
Theme Name: RW Bau
Author: Liliana Winter
Description: Ein maßgeschneidertes Theme für RW Bau.
Version: 1.0
*/

/* Basis */
body{
  font-family: 'Lato', sans-serif;
  background: linear-gradient(180deg, rgba(90,132,135,0.2) 56%, rgba(245,133,63,0.2) 100%);
  min-height: 100vh;
}

/* Überschriften */
h1, h2, h3{
  font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar, .navbar-scroll {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-scroll {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar>.container,
.navbar>.container-fluid,
.navbar>.container-lg,
.navbar>.container-md,
.navbar>.container-sm,
.navbar>.container-xl,
.navbar>.container-xxl {
  justify-content: center;
}

.navbar-collapse {
  text-align: center;
}

.navbar-nav {
  flex-direction: row;
}

.nav-item {
  padding: 10px;
  align-self: center;
}

/* Kontakt Button */
.nav-link-kontakt {
  background-color: #F5853F;
  color: #fff;
  border-radius: 0.5em;
  border-color: #F5853F;
  height: 50%;
  align-items: center;
  padding: 10%;
  text-decoration: none;
  margin-top: 10%;
  display: inline-flex;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-link-kontakt:hover {
  background-color: #e65c00;
  border-color: #e65c00;
}

/* Header & Hero */
.header {
  position: absolute;
  width: 100%;
  z-index: 1000;
}

.hero{
  position: relative;
  height: 550px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -76px;
  padding-top: 76px;
}

.hero-img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -1;
}

.hero-content{
  position: relative;
  color: white;
  max-width: 600px;
  padding: 5em 2em 0 2em;
  text-align: left;
}

.hero h1{
  font-weight: 900;
  font-size: 3rem;
  margin-bottom: 15px;
  text-align: left;
}

.hero p{
  font-size: 1.2rem;
  margin-bottom: 25px;
}

/* Buttons */
.btn{
  font-family: 'Lato', sans-serif;
}

.btn-primary{
  background-color: #F5853F;
  border-color: #F5853F;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover, .btn-primary:active {
  background-color: #e65c00;
  border-color: #e65c00;
}

/* Info Section */
.info-section{
  padding-top: 2em;
  text-align: left;
  margin-bottom: 2rem;
}

.info-section h2{
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.info-section p{
  font-size: 1.2rem;
  color: #555;
}

/* Services */
.services-section h2{
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5em;
  color: #333;
  text-align: left;
}

.h3-oben{
  font-weight: 700;
  font-size: 2rem !important;
  margin-bottom: 20px;
  color: #333;
  text-align: left;
}

.service-card{
  background-color: rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.service-card img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-card h3{
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.service-card p{
  font-size: 1rem;
  color: #555;
  flex-grow: 1;
}

.service-card a.btn{
  margin-top: 15px;
}

/* Gleiche Höhe für Service-Kacheln */
.row > .col-md-4:not(.contact-col){
  display: flex;
}

.row > .col-md-4:not(.contact-col) .service-card{
  flex: 1;
}

.row > .col-md-4.contact-col{
  display: block;
}

.services-button{
  margin-top: 40px;
  text-align: left;
}

/* References */
.references-section h2{
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5em;
  color: #333;
}

.reference-card{
  background-color: rgba(255, 255, 255, 0.3);
  padding: 0;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.references-section .reference-card img{
  width: 100%;
  height: auto;
  max-height: 17em;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.row > .col-lg-4:nth-child(2) .reference-card img{
  object-position: center 20%;
}

.reference-text h4{
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: -1em;
}

.reference-text p{
  font-size: 1rem;
  color: #555;
  margin-bottom: 2.5em;
}

/* Kontakt */
.contact-section{
  background-color: #5A8487;
}

.contact-section h2{
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
}

.contact-section .form-control,
.contact-section .btn{
  border-radius: 8px;
  padding: 10px 15px;
}

.contact-section .btn{
  padding: 10px 20px;
  font-weight: 600;
}

.contact-section input{
  font-weight: 300;
}

.contact-section .form-check-label{
  color: #fff;
}

.contact-section .form-check-label a{
  text-decoration: underline;
}

.contact-section a {
    color: #ffffff;
    text-decoration: underline; /* optional */
}

/* Footer */
.footer-section .text-white.small{
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 2%;
}

.container h1, .container h2, .container h3{
  font-weight: 700;
}

.fw-bold{
  padding-top: 1em;
}

.container-footer{
  padding: 1em 7em;
}

.impressum-section{
  margin-bottom: 4rem;
}

.col-12{
  margin-bottom: 2em;
}

.py-5{
  padding: 0 !important;
}

.container h1{
  padding-bottom: 0.5em;
}

/* Media Queries */

@media (max-width: 767px) {
  .navbar-collapse {
    display: flex;
    flex-direction: column;
    align-items: center; 
  }

  .navbar-nav {
    text-align: center; 
  }

  .navbar-nav .nav-item {
    margin: 10px 0; 
  }

  .hero {
    min-height: 400px;
    max-height: 500px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .info-section h3 {
    font-size: 1.5rem !important;
  }

  .info-section p {
    font-size: 1rem;
  }

  .container,
  .references-section .container,
  .contact-section .container {
    padding-left: 2em;
    padding-right: 2em;
  }

  h2 {
    font-size: 1.8rem !important;
  }

  .references-section .reference-card {
    margin-bottom: 20px; 
  }

  .references-section .reference-card img {
    width: 100%;        
    height: auto;       
    max-height: 260px;
    object-fit: cover;  
    display: block;
  }

  .references-section .row > .col-lg-4 {
    flex: 0 0 100%;      
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .contact-section .form-control,
  .contact-section .btn {
    font-size: 1rem;
    padding: 10px;
  }

  .contact-section .row > .col-12.col-md-8,
  .contact-section .row > .col-12.col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  section {
    scroll-margin-top: 150px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero {
      min-height: 450px;
      max-height: 600px;
  }

  .hero h1 {
      font-size: 2.2rem;
  }

  .hero p {
      font-size: 1.1rem;
  }

  .info-section h2 {
      font-size: 1.9rem;
  }

  .info-section p {
      font-size: 1.05rem;
  }

  .contact-section h2 {
      font-size: 2.2rem;
      margin-bottom: 20px;
  }

  .contact-section .form-control,
  .contact-section .btn {
      font-size: 1rem;
      padding: 10px 15px;
  }

  .contact-section .row > .col-12.col-md-8,
  .contact-section .row > .col-12.col-md-4 {
      flex: 0 0 100%;
      max-width: 100%;
  }

  .container,
  .references-section .container,
  .contact-section .container {
      padding-left: 2.5em;
      padding-right: 2.5em;
  }

  section {
      scroll-margin-top: 120px;
  }

  .row > .col-md-4:not(.contact-col) {
      display: block;       
      width: 48%;           
      margin-bottom: 20px;  
      float: left;          
      margin-right: 4%;     
  }

  .row > .col-md-4:not(.contact-col):nth-child(2n) {
      margin-right: 0;
  }

  .row > .col-md-4:not(.contact-col) .service-card {
      flex: none;
  }

  .row::after {
      content: "";
      display: table;
      clear: both;
  }

  .row > .col-md-4.contact-col {
      float: none;         
      width: 100%;         
      margin-right: 0;
      margin-top: 20px;    
  }

  .container-footer {
      padding-left: 2em;
      padding-right: 2em;
  }

  .footer-section .row.align-items-start {
      flex-direction: column; 
      align-items: center;    
      text-align: center;
  }

  .footer-section .col-md-4.mb-3.mb-md-0 {
      width: 100%;           
      text-align: center;    
      margin-bottom: 10px;   
  }

  .footer-section .col-md-8.d-flex {
      width: 100%;           
      justify-content: center !important; 
      margin-bottom: 10px;
  }

  .footer-section .col-md-8 ul {
      flex-direction: row !important;
      gap: 15px;
      justify-content: center;
      align-items: center;
  }

  .footer-section .row.mt-4 .col {
      text-align: center;
  }
}


/* Contact Form 7 Button Farbe erzwingen */
input.wpcf7-submit.btn-primary {
    background-color: #F5853F !important;
    border-color: #F5853F !important;
    color: #ffffff !important;
}

input.wpcf7-submit.btn-primary:hover, 
input.wpcf7-submit.btn-primary:active {
    background-color: #e65c00 !important;
    border-color: #e65c00 !important;
}