* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
header {
  background-color: rgba(13, 13, 13); /* halbtransparent */
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
h1,
h2 {
  text-align: center;
  padding-top: 2%;
}

.info p {
  color: rgb(0, 0, 0);
  margin-top: 5%;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  padding: 4%;
}

#search-form {
  text-align: center;
  padding: 4%;
  margin-bottom: 4%;
}
.figurenkonstellation {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.figurenkonstellation h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.konstellation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.figur {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.figur h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.figur p {
  font-size: 16px;
}

.verbindung {
  margin-top: 10px;
}

.wort {
  display: inline-block;
  background-color: #ffcc00;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 5px;
  animation: fadeIn 2s infinite alternate;
}

.wort.konflikt {
  background-color: #ff6f61;
}

.wort.versprechen {
  background-color: #4caf50;
}

.wort.zweifel {
  background-color: #f0ad4e;
}

.wort.gerücht {
  background-color: #00bcd4;
}

.wort.misstrauen {
  background-color: #9c27b0;
}

.direction {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(229, 229, 229, 0.2)
    ),
    url(img/Versprechen.jpg);
  background-size: cover;
  background-position: center;
}

header h2 {
  position: relative;
  color: rgb(255, 255, 255);
  font-size: 30px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

header .logo h1 {
  font-size: 20px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover {
  background-color: white;
  color: #0d0d0d;
}

.content {
  max-width: 650px;
  margin: 60px 100px;
  margin-top: 8%;
}

.middle {
  min-height: 50vh;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.9),
    rgba(235, 236, 236, 0.8)
  );
}
.lower {
  background: linear-gradient(
    to top,
    rgba(236, 244, 251, 0.8),
    rgba(255, 255, 255, 0.9)
  );
}

.content .info h2 span {
  color: rgb(255, 255, 255);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 60px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.content .info p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 40px;
}

table {
  border-collapse: collapse;
  width: 90%;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  font-size: 16px;
}
.figurenkonstellation {
  text-align: center; /* Zentriert den Inhalt */
  margin: 20px auto; /* Abstände um die Sektion herum */
  max-width: 100%; /* Begrenzt die Breite */
  padding: 10px;
  background-color: #f9f9f9; /* Hintergrundfarbe zur besseren Lesbarkeit */
  border: 1px solid #ddd; /* Optionaler Rahmen */
  border-radius: 8px; /* Ecken abgerundet */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Schatten für einen modernen Look */
}

.figurenkonstellation h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333; /* Überschrift besser sichtbar machen */
}

.image-container {
  display: flex;
  justify-content: center; /* Zentriert das Bild horizontal */
  align-items: center;
  overflow: hidden; /* Verhindert Überlauf */
  max-width: 100%; /* Passt sich dem Elterncontainer an */
}

.image-container img {
  max-width: 100%; /* Sorgt dafür, dass das Bild nicht den Container überschreitet */
  height: auto; /* Beibehaltung des Seitenverhältnisses */
  border-radius: 5px; /* Leichte Abrundung des Bildes */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Schatten für das Bild */
}

th,
td {
  padding: 16px;
  text-align: left;
}

.figurenkonstellation {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
  position: relative;
}

.figurenkonstellation h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.konstellation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.figur {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
}

.figur h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #444;
}

.figur p {
  font-size: 16px;
  color: #666;
}

/* Verbindungen */
.verbindungen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.linie {
  position: absolute;
  width: 2px;
  background-color: #999;
  z-index: 0;
  border-radius: 2px;
}

/* Spezielle Verbindungen */
#matthai-kind {
  top: 18%;
  left: 40%;
  height: 60px;
  transform: rotate(25deg);
}

#matthai-versprechen {
  top: 20%;
  left: 42%;
  height: 70px;
  background-color: #ff6f61;
}

#matthai-konflikt {
  top: 25%;
  left: 38%;
  height: 90px;
  transform: rotate(-20deg);
  background-color: #f7d354;
}

#matthai-von-gunten {
  top: 10%;
  left: 55%;
  height: 100px;
  transform: rotate(60deg);
}

#von-gunten-dorf {
  top: 50%;
  left: 50%;
  height: 50px;
  transform: rotate(-45deg);
}

#feller-dorf {
  top: 60%;
  left: 30%;
  height: 50px;
  transform: rotate(90deg);
}

/* Animationen */
@keyframes pulsate {
  0% {
    background-color: #999;
  }
  50% {
    background-color: #555;
  }
  100% {
    background-color: #999;
  }
}

@keyframes pulse-red {
  0% {
    background-color: #ff6f61;
  }
  50% {
    background-color: #ff3b30;
  }
  100% {
    background-color: #ff6f61;
  }
}

@keyframes pulse-yellow {
  0% {
    background-color: #f7d354;
  }
  50% {
    background-color: #f0c024;
  }
  100% {
    background-color: #f7d354;
  }
}

.center {
  padding: 70px 0;
  border: 3px solid rgb(0, 0, 0);
  text-align: center;
}

h2 {
  text-align: center;
  color: #444;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.content1 {
  margin-top: 5%;
  max-width: 850px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

p {
  margin: 15px 0;
}

strong {
  color: #555;
}

ul {
  margin: 15px 0;
  padding-left: 20px;
}

li {
  margin: 8px 0;
}

.highlight {
  background-color: #f0f0f0;
  padding: 10px;
  border-left: 4px solid #ccc;
  margin: 15px 0;
}

/* Styling für den Footer */
footer {
  background-color: #f4f4f4; /* Hellgrauer Hintergrund */
  padding: 20px 40px;
  text-align: center;
  border-top: 2px solid #ddd; /* Dezente obere Linie */
  margin-top: 30px; /* Abstand zum restlichen Inhalt */
  font-family: Arial, sans-serif;
}

footer h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333; /* Dunklerer Text */
  font-weight: bold;
  text-transform: uppercase;
}

footer p {
  font-size: 16px;
  color: #555; /* Mittlerer Grauton für Text */
  line-height: 1.6; /* Bessere Lesbarkeit */
  align-items: center;
}
