/* ========================================================
   STARTSEITE
======================================================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.home-page {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #fff;
  background: #111;
  overflow-x: hidden;
}

/* ========================================================
   NAVIGATION
======================================================== */
.nav-center {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  z-index: 100;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 2px solid #ff0000;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.35);
  color: #ff4040;
  font-weight: bold;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.05);
}

.facebook-icon {
  border-color: #1877f2;
  color: #4f9cff;
  min-width: 46px;
}

.facebook-icon:hover {
  background: #1877f2;
  color: #fff;
}

/* ========================================================
   HERO
======================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #111;
}

/* ========================================================
   HINTERGRUND-DIASHOW
======================================================== */

/*
  Die komplette Slideshow liegt als Ebene 0 im Hero.
  Keine negativen z-index-Werte mehr.
*/
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/*
  Beide Bilder liegen exakt übereinander.
  object-fit: cover verhält sich wie background-size: cover.
*/
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 2s ease-in-out;
  will-change: opacity;
}

/* JavaScript gibt immer genau einem Bild diese Klasse */
.hero-slide.is-visible {
  opacity: 1;
}

/* Beide Bilder bleiben in derselben Ebene; nur opacity wird gewechselt. */
#bg-lion,
#bg-sunset {
  z-index: 0;
}

/* Leichte Abdunklung, damit weiße Schrift lesbar bleibt */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

/* ========================================================
   LOGO
======================================================== */
.hero .logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
}

.hero .logo img {
  display: block;
  max-height: 190px;
  width: auto;
}

/* ========================================================
   HERO-TEXT
======================================================== */
.hero-content {
  position: relative;
  z-index: 3;
  width: min(1000px, 90%);
  margin-top: 230px;
  padding: 22px 28px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.23);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.hero h2 {
  margin: 12px 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.hero p {
  margin: 28px auto 0;
  max-width: 900px;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.newline {
  display: inline;
}

/* ========================================================
   FRANQUE-BILD
======================================================== */
.bottom-right-image {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 4;
}

.bottom-right-image img {
  display: block;
  max-height: 180px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ========================================================
   BESUCHERZÄHLER
======================================================== */
#counter-box {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.60);
  color: #ffcc00;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* ========================================================
   SEO-HILFSBEREICH
======================================================== */
.seo-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ========================================================
   TABLET / SMARTPHONE
======================================================== */
@media (max-width: 768px) {
  .nav-center {
    top: 10px;
    width: calc(100% - 20px);
    gap: 8px;
  }

  .nav-btn {
    padding: 0.38rem 0.65rem;
    font-size: 0.85rem;
  }

  .hero {
    min-height: 100svh;
    padding: 90px 14px 80px;
  }

  .hero .logo {
    display: none;
  }

  .hero-content {
    width: 100%;
    margin-top: 80px;
    padding: 18px 16px;
    background: rgba(0, 0, 0, 0.31);
  }

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

  .hero h2 {
    font-size: 1.15rem;
  }

  .hero p {
    margin-top: 20px;
    font-size: 1rem;
  }

  .newline {
    display: block;
    margin-top: 6px;
  }

  .bottom-right-image {
    display: none;
  }

  #counter-box {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-center {
    gap: 6px;
  }

  .nav-btn {
    padding: 0.32rem 0.5rem;
    font-size: 0.78rem;
  }

  .hero-content {
    margin-top: 100px;
  }

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

  .hero h2 {
    font-size: 1.05rem;
  }
}
