/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #000000;
  background-color: #E8E8E8;
}

/* Header */
header {
  background: #FFD700;
  color: #000000;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin-left: 10px;
  font-size: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover,
nav ul li a.active {
  text-decoration: underline;
}

/* Slideshow */
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  max-height: 500px;       /* Höhe begrenzen */
  object-fit: cover;       /* füllt den Container */
  object-position: center; /* immer mittig */
}

/* Handy-Optimierung */
@media (max-width: 768px) {
  .slide img {
    max-height: 250px;     /* kleinere Höhe auf Smartphones */
  }
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
}

.next {
  right: 10px;
}
.prev {
  left: 10px;
}

.dots {
  text-align: center;
  padding: 10px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.active-dot {
  background-color: #717171;
}

/* Main */
main {
  padding: 20px;
}

main h2 {
  margin-bottom: 10px;
  color: #000000;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #ffd700;
  color: #fff;
  margin-top: 20px;
}

footer a {
  color: #fff;
}

/* Cookie-Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 64, 128, 0.95);
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 0.9rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
}

.cookie-banner a {
  color: #ffd700;
  text-decoration: underline;
}

.cookie-banner button {
  background: #ffd700;
  border: none;
  color: #000;
  font-weight: bold;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 1rem;
}

.cookie-banner button:hover {
  background: #ffc107;
}

.cookie-banner.hidden {
  display: none;
}

.unterseitenbild {
  width: 100%;
  max-height: 500px;     /* gleiche Höhe wie Startseiten-Slideshow */
  object-fit: cover;
  object-position: center;
  display: block;
}
