@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

body {
  font-family: "Roboto", sans-serif;
}

/* Spezifische Stile für die Events-Seite */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-text {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  max-width: 50%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 30px 30px rgba(255, 255, 255, 0.8);
}

.hero-text h1 {
  color: black;
  font-size: 2.2rem;
  margin: 0;
  line-height: 1.3;
  text-align: right;
  hyphens: manual;
  overflow-wrap: break-word;
  word-break: break-all;
}

@media (max-width: 1024px) {
  .hero-text {
    max-width: 60%;
  }

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

@media (max-width: 768px) {
  .hero {
    height: 75vh;
  }

  .hero-text {
    max-width: 80%;
    right: 50%;
    transform: translate(50%, -50%);
    align-items: center;
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.8);
  }

  .hero-text h1 {
    font-size: 1.8rem;
    text-align: center;
  }
}

.content {
  padding: 40px 0;
}

.content h1 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.content h2 {
  margin-bottom: 20px;
  text-align: center;
}

.content p {
  margin-bottom: 15px;
}

.event-images-container {
  width: 80vw;
  margin-left: calc((100% - 80vw) / 2);
  margin-right: calc((100% - 80vw) / 2);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.event-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
}

.event-heading {
  text-align: center;
  padding: 40px 0;
  background-color: #f8f8f8;
}

.event-heading h1 {
  font-size: 2.2rem;
  color: #333;
  line-height: 1.3;
}

#event-form {
  background-color: rgba(95, 137, 119, 0.05);
  padding: 30px;
  border-radius: 5px;
  max-width: 700px;
  width: 100%; /* Changed from 90% to 100% */
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 20px;
}

#event-form label {
  display: block;
  margin-bottom: 5px;
}

#event-form input,
#event-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  /*transition: border-color 0.3s ease;*/
}

#event-form textarea {
  resize: vertical;
  min-height: 100px;
}

#event-form button {
  background-color: #3b5c71;
  color: #fffbf0;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  width: 100%;
  transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

#event-form button:hover:not(:disabled) {
  background-color: #344753;
  transform: scale(1.02);
}

#event-form button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.7;
}

#event-form h2 {
  text-align: left;
}

@media (min-width: 1024px) {
  .event-images {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  #event-form {
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 0;
  }
}

html {
  scroll-behavior: smooth;
}

#warum,
#anfrage {
  scroll-margin-top: 70px;
  padding-top: 20px;
}

.contact-form-heading {
  text-align: left;
  margin-bottom: 20px;
}

#char-count {
  text-align: right;
  font-size: 0.8em;
  color: #888;
  margin-top: 5px;
}

.input-hint {
  font-size: 0.8em;
  color: #888;
  margin-top: 5px;
}

/* Styles für die Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.checkbox-container {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 16px;
  width: 16px;
  margin: 0;
  z-index: 1;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: #fffbf0;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
  pointer-events: none;
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  display: block;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #3b5c71;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Fokus-Effekt für alle Formularelemente */
#event-form input:focus,
#event-form textarea:focus,
#event-form select:focus,
.checkbox-wrapper input[type="checkbox"]:focus ~ .checkmark {
  outline: none;
  border-color: #3b5c71;
  box-shadow: 0 0 0 2px #3b5c71;
}

.label-text {
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
  margin-left: 8px;
}

.privacy-link {
  color: inherit;
  text-decoration: underline;
}

.privacy-link:hover {
  color: inherit;
}

#submit-button {
  transition: opacity 0.3s ease, background-color 0.3s ease, cursor 0.3s ease;
  background-color: #3b5c71;
  color: #fffbf0;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  width: 100%;
}

#submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #cccccc;
}

#submit-button:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

#submit-button:not(:disabled):hover {
  background-color: #344753;
}

/* formular visuelle bestätigung */
#confirmation {
  display: none;
  text-align: center;
  padding: 20px;
  background-color: #d4edda;
  margin-bottom: 100px;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
}

#confirmation h2 {
  color: #155724;
  margin-bottom: 10px;
}

#confirmation p {
  color: #155724;
  margin-bottom: 5px;
}

@media (max-width: 1024px) {
  #confirmation {
    border-radius: 0px;
  }
}