:root {
  --primary: #001478;
  --secondary: #0096ff;
  --third: #bfbfbf;
}

body {
  background-color: #f8f9fa;
  margin: 0;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
}

header {
  display: flex;
  position: relative;
  height: 100px;
  background-color: #fff;
  width: 100%;
  padding-top: 20px;
}

header h1 {
  font-size: 1.5rem;
}

header .wrapper {
  width: 80%;
  transform: translateX(-50%);
  display: flex;
  position: relative;
  justify-content: center;
  left: 50%;
}

header .wrapper .logo {
  width: 195px;
}

header .wrapper .logo img {
  width: 100%;
}

.subheading {
  margin-left: 50px;
  align-self: center;
  color: var(--secondary);
}

.main-container {
  position: relative;
  display: flex;
  justify-content: center;
  height: 100vh;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
}

.content-container {
  width: 100%;
  padding: 20px;
}

.hours-input {
  width: 100px;
  margin-left: 10px;
  float: right;
}

#entries {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 20px;
  margin-top: 70px;
}

#chart {
  width: 400px !important;
  height: 400px !important;
}

#chart-container {
  display: none; /* Standardmäßig unsichtbar */
  width: 100%;
}

.show {
  display: block !important; /* Zeige nach dem Klick auf "Hinzufügen" */
}

.entry-table {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.entry-table th {
  background-color: #001478;
  color: #ffffff;
}

.entry-table td {
  text-align: center;
}

.entry-table tbody tr:nth-child(even) {
  background-color: #f1f1f1;
}

.entry-table tfoot tr {
  font-weight: bold;
}

/* Feste Breite nur für den Textbereich der Unterkategorien */
.text-container {
  max-width: 600px; /* Maximale Breite für den Text */
  display: inline-block; /* Beibehaltung der Inline-Anzeige */
  overflow-wrap: break-word; /* Lange Wörter umbrechen */
  word-wrap: break-word; /* Unterstützung für ältere Browser */
  word-break: break-word;
  white-space: normal; /* Zeilenumbruch erlauben */
}
