body {
  font-family: "Open Sans", serif;
  font-optical-sizing: auto;
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 10px 0; /* Standard-Margin für größere Bildschirme */
}

@media (max-width: 600px) {
  img {
    margin: 10px auto; /* Zentriere das Bild auf mobilen Geräten */
    display: block;
  }
}

h1 {
  color: #45209d;
  text-align: center;
  margin-top: 100px;
  padding: 50px;
}

h2 {
  color: #45209d;
  text-align: center;
}

h3 {
  color: #45209d;
}

h5 {
  color: crimson;
  text-align: center;
}

input {
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
}

::placeholder {
  color: rgba(0, 0, 0, 0.272);
}

button {
  border-radius: 8px;
  background-color: #673de6;
  border-color: #45209d;
  cursor: pointer;
  padding: 10px;
  margin: 10px;
}

button:hover {
  background-color: #673de694;
}

.box1,
.box2 {
  text-align: center;
  margin: 5px;
}

#hiddenelement {
  display: none;
  margin: 100px;
}

#hiddenelement2 {
  display: none;
}

#disapere {
  display: block;
  margin-top: 60px;
}

.io {
  color: #673de6;
}

#hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #1a1a3d;
  padding: 20px;
  box-sizing: border-box;
}

#hub h2 {
  color: white;
  margin-bottom: 20px;
}

#hub .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

@media (min-width: 600px) {
  #hub .container {
    flex-direction: row;
    justify-content: space-around;
  }
}

#hub .hubleft {
  background-color: #2d2d5c;
  color: white;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  #hub .hubleft {
    width: 48%;
    margin-bottom: 0;
  }
}

.keywort {
  font-size: 1.2em;
  color: #a3a3ff;
}

#hub h4 {
  font-size: 1em;
  margin-top: 10px;
}

#hub a {
  color: #a3b2ff;
  text-decoration: none;
  border-bottom: 2px dashed #a3b2ff;
}

#hub a:hover {
  text-decoration: underline;
}

.ergebnis {
  background-color: #1a1a3d;
  margin: 0 30px;
  padding: 20px;
  box-sizing: border-box;
}

.ergebnis h2 {
  color: white;
  text-align: center;
  word-wrap: break-word;
}

.ergebnis button {
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 20px auto;
}

@media (min-width: 600px) {
  .ergebnis button {
    width: 200px;
  }
}

.container2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tables {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (min-width: 600px) {
  .tables {
    flex-direction: row;
    justify-content: space-between;
  }
}

.table-container {
  margin: 10px;
  flex: 0 0 45%;
  box-sizing: border-box;
}

.box {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

#fragenbox {
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid black;
  padding: 8px;
  text-align: center;
  font-size: calc(1vw + 0.5rem);
}

span {
  color: #a3a3ff;
}

summary img {
  width: 25px;
  height: auto;
}

summary:hover {
  cursor: pointer;
}

p {
  color: grey;
}
details {
  text-align: center;
}

body {margin: 0;}

ul.topnav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #1a1a3d;
  display: flex;
  align-items: center;
}

ul.topnav li {
  float: left;
  margin-left: 20px; /* Kleiner Abstand nach links */
  margin-right: 20px; /* Mehr Abstand zwischen den Links */
}

ul.topnav li.right {
  margin-left: auto;
  margin-right: 20px; /* Abstand zwischen dem Logo und dem letzten Link */
}

ul.topnav li img {
  height: 50px;
  width: auto;
}

ul.topnav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  scale: 120%;
}

ul.topnav li a:hover:not(.active) {background-color: #2d2d5c;}

ul.topnav li a.active {background-color: #673de6;}

ul.topnav li a:hover.active {background-color: #2d2d5c;}

@media screen and (min-width: 1100px) {
  ul.topnav li img {
    height: 75px; /* Größeres Bild bei großem Display */
  }
  ul.topnav li a {
    font-size: 1.2em; /* Größere Links bei großem Display */
    padding: 18px 20px; /* Größeres Padding bei großem Display */
  }
}

@media screen and (max-width: 730px) {
  ul.topnav {
    flex-direction: column;
  }
  ul.topnav li {
    float: none;
    display: block;
    width: 100%;
    margin-left: 0; /* Kein Abstand nach links bei gestapelter Ansicht */
    margin-right: 0; /* Kein Abstand zwischen den Links bei gestapelter Ansicht */
  }
  ul.topnav li.right {
    display: none;
  }
  ul.topnav li a:hover {
    width: 100%;
    background-color: #2d2d5c;
  }
}
