/* ========== Allgemeine Grundeinstellungen ========== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  font-size: 18px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== Header ========== */
header {
  background-color: #c1001f;
  color: white;
  padding: 2.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
}

header img {
  height: auto;
  max-height: 120px;
  width: auto;
}

.header-text h1 {
  font-size: 2.5rem;
  margin: 0;
}

.header-text p {
  font-size: 1.25rem;
  margin: 0;
}

/* ========== Navigation ========== */
nav {
  background-color: #333;
  color: white;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
  position: sticky;
  top: 96px;
  z-index: 998;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.4rem 0.6rem;
  transition: background 0.3s;
}

nav a:hover {
  background-color: #555;
  border-radius: 4px;
}

/* ========== Hauptbereich ========== */
main {
  flex: 1;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.content-container {
  max-width: 900px;
  width: 100%;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

section {
  margin-bottom: 2rem;
}

/* ========== Footer ========== */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ========== Kontakt-Grid ========== */
.kontakt-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #eaeaea;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kontakt-grid > div {
  flex: 1;
  min-width: 200px;
  margin: 0.5rem;
  font-size: 0.75rem;
}

.kontakt-grid h4 {
  margin-bottom: 0.5rem;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
  .content-container {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }

  .header-text h1 {
    font-size: 1.75rem;
  }

  .header-text p {
    font-size: 1.1rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding: 1rem;
  }

  .kontakt-grid {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  header img {
    max-height: 60px;
  }

  .content-container {
    padding: 1rem;
  }
}

/* ========== Cookie Overlay ========== */
#cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-box {
  background: white;
  padding: 2rem;
  max-width: 90%;
  width: 400px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.cookie-box p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

.cookie-box a {
  color: #c1001f;
  text-decoration: underline;
}

.cookie-box button {
  padding: 0.5rem 1rem;
  background-color: #c1001f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* ========== Social Icons ========== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  background-color: #f8f8f8;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  transition: transform 0.3s ease-in-out;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

/* ========== Kontakt ========== */
.kontaktliste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.kontaktliste-grid div {
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.kontaktliste-grid a {
  color: #c1001f;
  text-decoration: none;
}

.kontaktliste-grid a:hover {
  text-decoration: underline;
}

/* ========== Bilderserie: Mannschaft, Kinder- und Jugendfeuerwehr ========== */
.bild-galerie {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.bild-galerie h3 {
  text-align: center;
  color: #990000;
  margin-bottom: 30px;
  font-size: 1.8em;
}

.bilder-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.bild-element {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
}

.bild-element img {
  width: 100%;
  height: auto;
  border: 4px solid #990000;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.bild-beschreibung {
  margin-top: 10px;
  font-size: 0.95em;
  color: #333;
}
.bild-block img {
  width: 100%;
  height: 300px; /* Einheitlich für alle Bilder */
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid #990000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.bild-galerie-einspaltig {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.bild-galerie-einspaltig h3 {
  text-align: center;
  color: #990000;
  margin-bottom: 30px;
  font-size: 1.8em;
}

.bild-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 480px; /* exakt auf 3x untereinander abgestimmt (z. B. 3×480px = 1440px) */
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #ccc;
}

.bild-block img {
  width: 100%;
  height: 320px; /* feste Höhe für saubere Abstimmung */
  object-fit: cover;
  display: block;
}

.bild-beschreibung {
  flex-grow: 1;
  padding: 12px 16px;
  font-size: 0.95em;
  color: #333;
  text-align: left;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}


/* ========== Technik ========== */
.technik-section {
  padding: 20px;
}

.technik-section h2 {
  margin-bottom: 10px;
}

.fahrzeugtext {
  max-width: 900px;
  margin-bottom: 30px;
}

.fahrzeug-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.fahrzeug-galerie img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.bildunterschrift {
 
  margin-top: 8px;
}

/* ========== Einstellung Slider, Banner ========== */

.slider {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.slides {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slideAnimation 12s infinite;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slideAnimation {
  0%   { transform: translateX(0%); }
  33%  { transform: translateX(0%); }
  38%  { transform: translateX(-100%); }
  66%  { transform: translateX(-100%); }
  71%  { transform: translateX(-200%); }
  100% { transform: translateX(-200%); }
}

/* ========== Slider ========== */
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}