/* Grundlegende Formatierungen */
body {
  font-family: Arial, sans-serif;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

/* Header-Stil */
header {
  background-color: #333;
  color: #fff;
  padding: 5px;
  text-align: center;
}

/* Hauptinhalt-Stil */
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
}

footer {
  text-align: center;
  padding: 5px;
  background-color: #333;
  color: white;
}
/* Box-Stil */
.box {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 20px;
  text-align: left; /* Zentrieren des Textes innerhalb der Box */
  margin-bottom: 20px;
}

.container {
  display: flex; /* Flexbox verwenden */
}

.box2 {
  display: inline-block;
  width: 150px; /* Breite der Boxen anpassen */
  height: 70px; /* Höhe der Boxen anpassen */
  border: 1px solid black; /* Rahmen hinzufügen */
  margin: 10px; /* Abstand zwischen den Boxen */
  text-align: center;
}

/* Stil für die feste Box */
.feste-box {
    position: fixed;
    top: 25%; /* Vertikal zentriert */
    right: 5%; /* Am rechten Rand */
    width: 200px; /* Breite der Box */
    background-color: #f0f0f0;
    padding: 10px;
    border: 1px solid #ccc;
    transform: translateY(-50%); /* Vertikal zentriert */
    /* Weitere Stilattribute nach Bedarf */
}

.grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Zwei Spalten mit gleicher Breite */
    gap: 20px; /* Abstand zwischen den Spalten */
}

.spalte1 {
    /* Stil für die linke Spalte */
}

.spalte2 {
    /* Stil für die rechte Spalte */
}

.grid-container2 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei Spalten mit gleicher Breite */
    gap: 20px; /* Abstand zwischen den Spalten */
    margin-bottom: 20px;
    margin-top: 20px;
}



/* Eingabefeld-Stil */
input[type="number"] {
  padding: 10px 10px;
  width: 50px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  margin-right: 5px;

}

/* Button-Stil */
button {
  background-color: #007BFF;
  color: #fff;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}


/* Ändere die Breite und Höhe des Diagramms */
#myChart {
    width: 100px;
    height: 400px;
}

/* Ausgabefeld-Stil */
#result {
  font-weight: bold;
  margin-top: 20px;
}



/* Ausblenden der Standard-Radio-Buttons */
input[type="radio"] {
    display: none;
}

/* Gestaltung der Schaltflächen */
.button-group {
    display: flex;
}

.button-group input[type="radio"] + label {
    text-align: center;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    cursor: pointer;
}

/* Stil für ausgewählte Schaltfläche */
.button-group input[type="radio"]:checked + label {
    background-color: #007BFF;
    color: #fff;
    border-color: #007BFF;
}

/* Stil für ausgegraute Schaltfläche */
.button-group input[type="radio"]:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
}
th, td {
  border: 1px solid #ccc; /* Rahmen um Zellen */
  padding: 8px; /* Innenabstand der Zellen */
  text-align: left; /* Textausrichtung in Zellen */
}

th {
  background-color: #f2f2f2; /* Hintergrundfarbe der Header-Zellen */
  text-align: center;
}

.right-align {
  text-align: right;
}


a:link {
  color: #007BFF;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: darkorange;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: #007BFF;
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}


/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 400px;
  background-color: #555;
  color: #fff;
  text-align: left;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.875em;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  top: 0px;
  left: 20px;


  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  transform: rotate(90deg);
  top: 10%;
  left: -1%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}


/* Add a black background color to the top navigation */
.topnav {
  background-color: #333;
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: center;
  color: #f2f2f2;
  text-align: center;
  padding: 20px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #007BFF;
  color: white;
}
