
/*
 * Global base styles
 * Reset margins and paddings to eliminate unwanted gaps between elements.
 * Set box-sizing to border-box so that width and height calculations
 * include padding and borders.
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Standard: Burger menu button is hidden on larger viewports */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #f5f5f5;
  padding: 1rem;
  cursor: pointer;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #111;
  color: #eee;
  line-height: 1.5;
}

/* Topbar layout */
.topbar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  background-color: #1a1a1a;
  border-bottom: 2px solid #333;
}

.topbar .logo {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f5f5f5;
  background-color: #222;
  border-right: 2px solid #333;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.navigation {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}

.navigation a {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #f5f5f5;
  background-color: #222;
  padding: 1rem;
  border-right: 2px solid #333;
  text-align: center;
  font-weight: normal;
  text-transform: uppercase;
}

.navigation a:last-child {
  border-right: none;
}

.navigation a:hover {
  background-color: #2e2e2e;
}

/* When the navigation has the 'active' class (toggled by JS) it becomes visible on small screens */
.navigation.active {
  display: flex;
}

/* Slideshow banner */
.banner {
  width: 100%;
  background-color: #101010;
}

.slides {
  width: 100%;
  position: relative;
}

.slide {
  width: 100%;
  display: none;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background-color: #111;
}

.site-banner {
  width: 100%;
  font-weight: bold;
  background-color: #1a1a1a;
  color: #ccc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.1rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
}

.banner-text {
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* Impressum content section – replaces old .content columns */
.impressum {
  width: 100%;
  background-color: #181818;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
}

.impressum h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.impressum p {
  margin-bottom: 1.5rem;
  color: #ddd;
}

/* Footer styles */
.footer {
  width: 100%;
  background-color: #1a1a1a;
  color: #888;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 2px solid #333;
}

.footer-links {
  display: flex;
  align-items: center;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  padding: 0 0.5rem;
  text-transform: uppercase;
}

.footer-links span {
  color: #555;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 800px) {
  .topbar {
    position: relative; /* <-- ensures .navigation can position absolute inside */
    z-index: 100;
  }

  .menu-toggle {
    display: block;
  }

  .navigation {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #222;
    z-index: 9999; /* <-- force to front */
  }

  .navigation.active {
    display: flex;
  }

  .navigation a {
    padding: 1rem;
    border-bottom: 1px solid #333;
    color: white;
    text-decoration: none;
  }

  .navigation a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-links a,
  .footer-links span {
    padding: 0.25rem 0;
  }
}

@media (max-width: 600px) {
  .site-banner {
    font-size: 1rem;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 0.5rem;
  }

  .banner-text {
    display: block;
  }
}
