:root {
  --bg-light: #1e1e1e;
  --bg-dark: #1e1e1e;
  --text-dark: #fff;
  --text-light: #fff;
  --accent: #14393e;
  --font: 'Poppins', sans-serif;
}

/* === BASIS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  min-width: 1000px;
  height: 5rem;
  background: #122229;
  backdrop-filter: blur(10px);
  border-radius: 50px;
  z-index: 10;
  display: flex;
  align-items: center;
}


/* Container innerhalb der Navbar */
.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

/* Logo */
.logo {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 1rem;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-weight: 600;
}

/* Einzelne Links */
.nav-links a {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s;
  padding: 0.75rem 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Button rechts (Kontakt) */
.btn-contact {
  padding: 0.6rem 1.2rem;
  background: #ca0013;
  color: var(--text-light);
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.btn-contact:hover {
  transform: translateY(-2px);
}

/* === Geschichte doppelseitig aufgebaut === */
.geschichte-main {
  margin-top: 7rem;
  padding: 3rem 1rem 6rem;
  background: #1e1e1e;
}

.geschichte-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 4rem auto; /* vorher 8rem – jetzt halbiert */
  padding: 0; /* sorgt für klaren Übergang */
}

.geschichte-block.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl; /* spiegelt Reihenfolge */
}

.geschichte-block.reverse .geschichte-text {
  direction: ltr; /* Text normal lesen */
}

.geschichte-text {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.geschichte-text h1 {
  font-size: 2.3rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

/* === Anpassung der Bildergröße & Layout für unteren Block === */
.geschichte-image img {
  width: 85%; /* vorher 100%, jetzt etwas kleiner */
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto;
}

.geschichte-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.geschichte-block.lower {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-top: -1rem; /* leicht nach oben gezogen */
}

.geschichte-block.lower .geschichte-text {
  text-align: left;
}

.geschichte-block.lower .geschichte-image {
  display: flex;
  justify-content: center;
}


  .geschichte-image img {
    width: 90%;
  }


/* === Responsive Anpassung === */
@media (max-width: 950px) {
  .geschichte-block,
  .geschichte-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .geschichte-image img {
    width: 90%;
  }

  .geschichte-block.lower .geschichte-text {
    text-align: center;
  }

  .geschichte-block.reverse .geschichte-image {
    order: -1;
  }

  .geschichte-text {
    text-align: center;
  }
}


/* === FOOTER (identisch) === */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 1rem 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.footer h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin-bottom: 0.5rem;
}
.footer-links ul li a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer-links ul li a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #aaa;
}
.section-divider {
  width: 100%;
  max-width: 1400px;
  height: 1px;
  background-color: var(--accent);
  opacity: 0.2;
  margin: 3rem auto 2rem;
}
.footer-logo {
  width: 160px !important;
  height: auto !important;
  display: inline-block !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  background: none !important;
}



@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    width: 95%;
    min-width: unset;
    height: auto;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .logo {
    font-size: 0.95rem;
    white-space: nowrap;
    text-align: center;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.5rem;
    overflow-x: auto;
    flex-shrink: 1;
    white-space: nowrap;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.35rem 0.45rem;
    white-space: nowrap;
  }

  .btn-contact {
    all: unset;
    font-size: 0.8rem;
    color: white;
    cursor: pointer;
    padding: 0.35rem 0.45rem;
    white-space: nowrap;
  }
}
/* Burger Button */
/* Standard: Burger ausblenden */
.burger {
  display: none;
}

/* Mobile: Layout anpassen */
  @media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    width: 95%;
    min-width: unset;
    height: auto;
  }

  .nav-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0 1.5rem;
  gap: 1rem;
}

  .logo {
  margin-left: auto;
  font-size: 1rem;
  white-space: nowrap;
}

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
  }

  .burger span {
    display: block;
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 2px;
    margin: 4px 0;
    transition: all 0.3s ease;
  }

  .burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.open span:nth-child(2) {
    opacity: 0;
  }

  .burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 10;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
  }

  .nav-links.show {
    max-height: 300px;
  }

  .nav-links li {
    padding: 1rem 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  html, body {
    overflow-x: hidden;
  }

  
  .navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    height: 3.5rem;
    padding: 0 1rem; /* 👈 kompakter als vorher */
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo {
    font-size: 1.3rem;
    white-space: nowrap;
  }

  .nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  justify-content: flex-end;  /* verschiebt alle Links nach rechts */
  align-items: center;
  margin-right: 1rem;       /* Abstand zum rechten Rand */
}

  .nav-links a {
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
  }

  .btn-contact {
     display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: white;
  border-radius: 50px;
  white-space: nowrap;
  font-weight: 600;
  text-align: center;
}
}

/* === MOBILE FIX für 'Unsere Geschichte' Seite === */
@media (max-width: 900px) {
  .geschichte-section,
  .geschichte-wrapper {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  /* Textabschnitte */
  .geschichte-text {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
  }

  .geschichte-text h2,
  .geschichte-text h3 {
    font-size: 1.6rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .geschichte-text p {
    font-size: 1rem !important;
    line-height: 1.7;
    color: #dcdcdc;
    margin-bottom: 1.5rem;
  }

  /* Bilder */
  .geschichte-bild,
  .geschichte-img {
    width: 90% !important;
    max-width: 380px;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  }

  /* Wenn du zwei Blöcke hast (Bild rechts / Bild links), soll Reihenfolge stimmen */
  .geschichte-block {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .geschichte-block:nth-child(odd) {
    flex-direction: column-reverse !important;
  }
}
