html {
  scroll-behavior: smooth;
}

.cta-link {
    color: #ffffff;
}

body {
  margin: 0;
  font-family: sans-serif;
  background-color: #323034;
  color: #f4f1ee;
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 25px;
  background-color: #323034;
}

section {
  margin-bottom: 2em;
}

h2 {
  color: #ce222e;
  font-family: 'Anton', sans-serif;
}

.slogan {
  color: #ce222e;
  background: #f6af1d;
  font-style: italic;
  margin: 0 1rem 1rem;
  padding: 0.3em 1em;
  border-radius: 1em;
  font-weight: 500;
  box-shadow: 0 2px 8px #32303422;
  display: inline-block;
}

.contact-box {
  background: #f6af1d;
  color: #323034;
  border-radius: 1em;
  margin-top: 1em;
  box-shadow: 0px 5px 35px black;
  font-weight: 500;
  display: inline-block;
  line-height: 22px;
  padding: 25px;
}

.contact-box a {
  color: #000;
}

header {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  border-bottom: 6px solid #ce222e;
  background-color: #2b2b2b;
}

header img.logo-right {
  max-height: 385px;
  max-width: 450px;
  width: 25vw;
  float: right;
  margin-left: auto;
  margin-right: 10vw;
}

header img:hover {
  box-shadow: 0 8px 24px rgba(206,34,46,0.18);
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

h1 {
  font-family: 'Anton', sans-serif;
  font-size: 2.5rem;
  margin: 1rem 0 0.5rem 0;
  color: #ce222e;
  text-shadow: 1px 1px 2px #32303444;
}

footer {
  background: #737373;
  color: #fff;
  text-align: center;
  padding: 25px;
  font-size: 1em;
  border-radius: 0 0 1em 1em;
  border-top: 4px solid #ce222e;
}

.logo_small {
  width: 50vw;
  height: auto;
  max-width: 750px;
}

header img.logo {
  width: 30vw;
  height: auto;
  background-color: transparent;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header img:hover {
  transform: none;
  box-shadow: none;
}

h1 {
  font-family: sans-serif;
  font-size: 3.5rem;
  margin: 1rem;
}

.slogan {
  color: #5c5c5d;
  font-style: italic;
  margin: 0 1rem 1rem;
  text-align: center;
}

.logo_small {
  display: initial;
}

.logo {
  display: none;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #f6af1d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  color: #323034;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
} */

.service-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.service-card h3 {
  margin: 0;
  padding: 0.75rem;
  font-size: 1rem;
}

.leistung {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid gray;
}

.leistung img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.leistung h3 {
  margin-top: 0;
  color: #f6af1d;
}

.leistung p {
  margin: 0.5rem 0 0;
}

.nav-container {
  border-bottom: 5px solid #2b2b2b;
}

.nav {
  display: flex;
  justify-content: space-evenly; /* gleichmäßige Verteilung */
  padding: 0.5rem 2rem; /* Abstand oben/unten + rechts/links */
  background: #f6af1d; /* deine Highlight-Farbe */
}

.nav a {
  flex: 1; /* sorgt für gleiche Breite jedes Links */
  text-align: center;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  padding: 0.5rem 0;
  transition: background 0.2s;
}

.nav a:hover {
  background: rgba(255,255,255,0.2); /* leichtes Hover für Eleganz */
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: #f6af1d;
  position: absolute;
  top: 0;
  right: 0;
  width: 55px;
  height: 55px;
}

/* Mobile Styles */
@media (max-width: 845px) {
  .nav-container {
    border: none;
  }
  
  .hamburger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 60px; /* Höhe des Headers */
    right: 0;
    background: #f6af1d;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    display: none; /* Standard versteckt */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ce222e;
  }
}

footer a , #impressum a, #not-found a {
  color: #f6af1d;
}

#impressum-heading, #not-found-heading {
  margin: 0;
}
@media (max-width: 680px) {
  .leistung {
    flex-direction: column;
    align-items: center; /* center so the image looks neat */
    text-align: center;  /* optional depending on your style */
  }
  
  .leistung img {
    width: 100%;
    max-width: 500px; /* keeps it from getting too huge */
  }

  /* For reversed rows: put image AFTER text on mobile */
  .leistung.reverse {
    flex-direction: column-reverse;
  }
  
  .leistung div {
    width: 100%;
  }   
}

@media (max-width: 530px) {
  .logo_small {
    display: none;
  }
  
  .logo {
    display: initial;
  }
  
  header img.logo {
    width: 100vw;
    max-width: 100%;
  }
  
  .header-text {
    display: none;
  }
  
  h1 {
    display: none;
  }
  
  .logo-right {
    display: none;
  }
  
  .slogan {
    display: none;
  }
}
