

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: black;
}

.background-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  z-index: -1;
}

/* ===== HEADER ===== */
.header, .footer {
  background-color: rgba(255, 255, 255, 0.85); 
  width: 100%;
  padding: 10px 0;
}

.header-top, .header-bottom, .footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.header-bottom {
  border-bottom: 1px solid black; 
}

.header .logo {
  height: 100px; 
}

.address {
  color: black;
}

.phone {
  color: #d55953;
  text-decoration: none;
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.nav a {
  text-decoration: none;
  font-weight: bold;
  color: black;
  padding: 10px 15px;
  display: block;
  transition: background 0.3s, color 0.3s;
}

.nav a:hover {
  background-color: #d55953;
  color: white;
}

.nav a.active:hover {
  color: white; 
}

.nav a.active {
  color: #d55953;
}

.burger {
  display: none;
  background: none;
  font-size: 24px;
  border: none;
}

/* ===== CONTENT ===== */
.content {
  width: 90%;
  margin: auto;
  padding: 20px 0;
}

.section-top h1,
.section-top h3{
  font-size: 2em;
  text-align: center;
}

.section-top p {
  text-align: center;
}

.section-middle,
.section-lower {
  display: flex;
  width: 90%; 
  margin: 40px auto;
  gap: 20px;
  flex-wrap: wrap;
}

.section-middle img,
.section-lower img {
  padding: 2%;
  width: 100%;
  max-width: 600px; 
  height: auto;
  /* object-fit: cover; */
  border-radius: 2vw;
  margin-left: 3%; 
}

.text-block {
  width: 49%;
  line-height: 2;
}

.text-block-impressum{
  width: auto;
  line-height: 2;
}

.text-block h2,
.text-block-impressum h2 {
  color: #d55953;
}

.text-block ul,
.text-block-impressum ul {
  list-style: disc;
  padding-left: 20px;
  font-weight: normal; 
  line-height: 2; 
}

.kontakt {
  /* text-decoration: none; */
  color: black;
}

.kontakt:hover {
  color: #d55953;
}

.text-block iframe {
  padding: 2%;
  width: 100%;
  max-width: 600px; 
  height: 100%;
  max-height: 600px;
  border: none;
  border-radius: 1.5vw;
}

.fahrplan-button {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #e74c3c; /* красная граница */
  border-radius: 30px;
  text-decoration: none;
  color: #e74c3c;
  font-weight: bold;
  font-family: sans-serif;
  background-color: white;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.2); /* лёгкая тень */
  transition: all 0.3s ease;
}

.fahrplan-button:hover {
  background-color: #e74c3c;
  color: white;
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}


/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid black; 
  flex-wrap: wrap;
  justify-content: space-evenly;
  text-align: center;
  padding-top: 20px;
  font-weight: normal; 
  font-size: 0.85em; 
}

.footer .logo {
  height: 50px; 
  cursor: pointer;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
  list-style: none; 
  text-align: left; 
}

.footer-contact {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footer-menu a,
.footer-contact a {
  text-decoration: none;
  color: black;
}

.footer-menu a:hover,
.footer-contact a:hover {
  color: #d55953;
}

.footer-link {
  text-decoration: none;
  color: black;
}

.footer-link:hover {
  color: #d55953;
}

.footer-section a {
  display: none;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  
  .header-top {
    display: flex;
    flex-direction: column;
  }

    .header-bottom {
    justify-content: center;     
  }

    .nav {
    position: relative;          
    width: 100%;
    display: flex;
    justify-content: center;     
  }

  .nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    text-align: center;
  }

  .nav ul.show {
    display: flex;
  }

  .nav .menu {
    display: none;
    position: absolute;
    top: 100%;                   
    left: 0;
    right: 0;                    
    background-color: rgba(255,255,255,0.98);  
    border-bottom: 1px solid black; 
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    z-index: 998;
  }

  .nav .menu.show {
    display: flex;
  }
  
  .nav .menu li {
    margin: 5px 0;
  }

  .nav .menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
  }

  .nav .menu a:hover {
    background-color: #d55953;
    color: white;
  } 

  .burger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    margin: 20px 0;              
    z-index: 999;
  }

  .section-middle img,
  .section-lower img,
  .text-block {
    width: 100%;
  }

  .footer-menu {
    display: none;
  }

  .footer-section, .footer-contact {
    width: 100%;
    text-align: center;
  }

  .footer-section a {
    color: #d55953;
    display:block;
  }

/* =====MOBILE CONTENT ===== */
  .section-middle,
  .section-lower {
    flex-direction: column;
    width: 90%;
    text-align: center;
  }

  .section-middle ul,
  .section-lower ul {
    text-align: left;
  }

  .section-middle img,
  .section-lower img,
  .text-block,
  .text-block-impressum {
    width: 100%;
    border-radius: 3vw;
  }

  .address{  
    margin-top: 2vh;
  }


}

@media(max-width: 1366px){

  .text-block,
  .text-block-impressum{
    width: 100%;
  }

  .section-lower img,
  .section-middle img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

}

/* ==== TABLE ==== */

.price-table {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  font-family: sans-serif;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.price-row:last-child {
  border-bottom: none;
}

.service {
  flex: 1 1 60%;
  font-size: 1rem;
}

.price {
  flex: 1 1 30%;
  text-align: right;
  font-weight: 500;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
  .price-row {
    flex-direction: column;
    align-items: center;
  }

  .price {
    margin-top: 5px;
  }
}

