/* styles.css – Basis-CSS zur Strukturierung der Website */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.header-container, .footer-container, .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: #004080;
  color: #fff;
  padding: 20px 0;
}

header h1 {
  margin: 0;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-menu li {
  margin-right: 20px;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
}

main {
  background-color: #fff;
  padding: 20px;
  margin-top: 20px;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}

/* Allgemeines Layout */
.site-header {
  background-color: #333;
  color: #fff;
}

.logo {
  margin: 0;
}

/* Navigation */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
}

.nav-menu a:hover {
  text-decoration: underline;
}

/* Hero-Bereich */
.hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.hero-text ul {
  padding-left: 20px;
}

.responsive-img {
  max-width: 30%;
  height: auto;
  border-radius: 4px;
}

/* Galerie-Slideshow */
#gallery {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

#gallery h2 {
  text-align: center;
  margin-top: 0;
  color: #333;
}

.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 30px;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
}

.slideshow-container img {
  width: 100%;
  height: auto;
  display: block;
}

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

.slide.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-controls {
  text-align: center;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  background-color: rgba(0,0,0,0.5);
  font-weight: bold;
  font-size: 18px;
  transition: 0.3s ease;
  border-radius: 3px;
  user-select: none;
}

.next {
  right: 0;
}

.prev {
  left: 0;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.dots {
  text-align: center;
  padding: 15px 0;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #717171;
}

.dot:hover {
  background-color: #717171;
}

.slide-counter {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

.control-buttons {
  text-align: center;
  margin-top: 15px;
}

.control-buttons button {
  padding: 10px 20px;
  margin: 0 5px;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.control-buttons button:hover {
  background-color: #003060;
}

.control-buttons button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Galerie-Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  border: 3px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
}

.gallery-grid img:hover {
  border-color: #004080;
  transform: scale(1.05);
}

/* Alerts */
.alert {
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.alert-error {
  background-color: #ffe0e0;
  color: #900;
}

.alert-success {
  background-color: #e0ffe5;
  color: #095;
}

/* Formular */
.contact-form {
  max-width: 600px;
  margin: 20px auto;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #004080;
  box-shadow: 0 0 5px rgba(0, 64, 128, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .checkbox-group {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.contact-form .checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  display: flex;
  align-items: center;
}

.contact-form .checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover:not([disabled]) {
  background-color: #003060;
}

.contact-form button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #999;
}

/* Honeypot verstecken */
.hp {
  display: none;
}

/* Modal grob wie bisher – falls nicht vorhanden, ergänzen */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  display: block;
  max-width: 90%;
  margin: 60px auto;
}

.close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }
  .responsive-img {
    max-width: 100%;
  }
}
