/* =============== */
/* Grundlegende Einstellungen */
/* =============== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Verwende Bebas Neue für das gesamte Dokument, für einen einheitlichen, sportlichen Look */
html, body {
  font-family: 'Bebas Neue', sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.5;
  font-size: 18px;
}

/* Farben aus dem Logo (Rot/Schwarz) */
:root {
  --main-red: #c40000;
  --main-black: #1a1a1a;
  --gray-bg: #f5f5f5;
  --light-gray: #fafafa;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =============== */
/* HEADER */
/* =============== */

.header {
  background-color: #FFF;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.header.shrink {
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Schräges weißes Element über dem Header */
.header-diagonal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: skewX(-15deg);
  transform-origin: top left;
  z-index: -1;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  position: relative;
  overflow: hidden;
}

.header.shrink .header-container {
  height: 60px;
}

/* Logo */
.logo img {
  height: 90px;
  width: auto;
  transition: height 0.3s ease;
}

.header.shrink .logo img {
  height: 50px;
}

/* Navigation */
.main-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav .nav-links li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.main-nav .nav-links li a:hover {
  color: var(--main-red);
}

/* Burger-Menü Button */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.burger .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: all 0.3s;
}

/* =============== */
/* HERO SECTION */
/* =============== */

.hero-section {
  position: relative;
  background: url('https://webdesignbyleon.ch/images/cartron.png') center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 4rem 1rem;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--main-red);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #ff0000;
}

/* =============== */
/* ABSCHNITTSTITEL */
/* =============== */

h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--main-black);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.section-subtitle {
  color: #666;
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.5px;
}

/* =============== */
/* LEISTUNGEN */
/* =============== */

.leistungen-section {
  background-color: #fff;
  padding: 3rem 0;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.leistung-card {
  background-color: var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.leistung-card:hover {
  transform: translateY(-5px);
}

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

.leistung-text {
  padding: 1rem;
}

.leistung-text h3 {
  color: var(--main-red);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.leistung-text p {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* =============== */
/* WAS UNS AUSMACHT */
/* =============== */

.werte-section {
  background-color: var(--gray-bg);
  padding: 3rem 0;
}

.werte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

.werte-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 2rem 1rem;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 280px;
}

.werte-item:hover {
  transform: translateY(-5px);
}

.werte-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.werte-item h4 {
  color: var(--main-red);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.werte-item p {
  font-size: 1rem;
  line-height: 1.4;
}

/* =============== */
/* ÜBER UNS */
/* =============== */

.ueber-uns-section {
  background-color: #fff;
  padding: 3rem 0;
}

.ueber-uns-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.ueber-uns-image, .ueber-uns-content {
  flex: 1 1 400px;
}

.ueber-uns-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.ueber-uns-content h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.ueber-uns-content h3 {
  color: var(--main-red);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.ueber-uns-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* =============== */
/* KONTAKT */
/* =============== */

.kontakt-section {
  background-color: var(--gray-bg);
  padding: 3rem 0;
  color: var(--main-black);
  text-align: center;
}

.kontakt-infos {
  margin: 2rem auto;
  max-width: 600px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  justify-content: center;
  color: #333;
}

.contact-item .icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  fill: var(--main-red);
}

.map iframe {
  width: 100%;
  border: none;
  border-radius: 8px;
  height: 300px;
}

/* =============== */
/* FOOTER */
/* =============== */

.footer {
  background-color: #fff;
  padding: 2rem 0;
  text-align: center;
  color: #666;
  font-size: 1rem;
  border-top: 1px solid #eee;
}

.footer-container p {
  margin: 0.3rem 0;
}

/* =============== */
/* RESPONSIVE */
/* =============== */

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: auto;
    padding: 1rem 0;
  }
  .header.shrink .header-container {
    height: auto;
  }
  
  /* Burger-Button anzeigen */
  .burger {
    display: flex;
  }
  
  /* Verstecke das Hauptmenü initial */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  
  /* Bei geöffnetem Menü */
  .main-nav.open {
    max-height: 300px; /* anpassbar je nach Anzahl der Menüpunkte */
  }
  
  .main-nav .nav-links {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  
  .ueber-uns-wrapper {
    flex-direction: column;
  }
  
  .werte-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .werte-item {
    max-width: 100%;
  }
}
/* Impressum spezifisch */
.impressum-box a {
  color: var(--main-red);
  text-decoration: none;
}
.impressum-box a:hover {
  text-decoration: underline;
}
.impressum-box p {
  font-family: 'Open Sans', sans-serif; /* Alternativ: Roboto */
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer Links einfärben */
.footer a {
  color: var(--main-red);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
