* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: Arial, sans-serif !important;
  font-size: 16px;
}

body {
  background-color: white;
}

.navbar {
  background: #ffffff;
  padding: 0.75rem 1.5rem;
}

.navbar-brand {
  font-weight: 700;
  color: #1a1a1a;
}

.nav-link {
  margin-left: 15px;
  border-radius: 6px;
  color: #555;
}

.nav-link:hover {
  background-color: #f8f9fa;
  color: #28a745;
  border-color: #e9ecef;
}

.nav-link.active {
  background-color: #e8f5e9;
  color: #28a745 !important;
  border-color: #c8e6c9;
  font-weight: 600;
}

#welcome-section {
  background-color: white;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 30px;
  margin: 20px;
  text-align: center;
}

#welcome-section h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

#welcome-text {
  text-align: justify;
  line-height: 1.6;
}

.features-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 20px;
}

@media (min-width: 768px) {
  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: white;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-card h3 {
  font-size: 16px;
  color: #333;
}

.preview-image {
  width: 100%;
}

.footer {
  background-color: #f8f9fa;
  border-top: 2px solid #333;
  margin-top: 40px;
  padding: 30px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.footer a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.4s;
}

.footer a:hover {
  color: green;
  text-decoration: underline;
}

.separator {
  color: #999;
}

.transaction-card {
  background-color: white;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 20px;
  height: 469.4px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.data-visual {
  background-color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.data-visual p {
  text-align: center;
  margin: 0px;
}

.table-container {
  overflow-x: auto;
}

.transaction-table {
  text-align: left;
  width: 100%;
}

th,
td {
  padding: 10px;
}

.transactions-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /*1 fr would overflow */
  gap: 20px;
  margin: 30px 20px;
}

@media (min-width: 1400px) {
  .transactions-container {
    grid-template-columns: 33.3% 33.3% 33.3%;
    gap: 0;
  }
}

.page-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /*1 fr would overflow */
  gap: 20px;
  margin: 30px 20px;
}

@media (min-width: 1400px) {
  .page-container {
    display: grid;
    grid-template-columns: 37.5% 37.5% 25%;
    margin: 30px 20px 0px 20px;
    height: fit-content;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-filter {
  flex-direction: row;
}


.piechart {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background-image: conic-gradient(pink 70deg,
      lightblue 0 235deg,
      orange 0);
  align-self: center;
}

.form-switch {
  align-self: center;
}

#logo {
  height: 47.2px;
  width: 47.2px;
}

/*-----------Temporäres statisches Balkendiagramm--------------*/

.legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #666;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.chart-row {
  display: flex;
  align-items: flex-end;
  border-bottom: 2px solid #333;
}

.y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
  padding-bottom: 1px;
  margin-right: 12px;
}

.y-labels span {
  font-size: 11px;
  color: #bbb;
  line-height: 1;
}

.barchart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  height: 220px;
  gap: 32px;
  border-bottom: 1px solid #e2dfd8;
  position: relative;
}

.group {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 100%;
  position: relative;
  z-index: 1;
}

.bar {
  width: 36%;
  border-radius: 4px 4px 0 0;
}

.red {
  background: #c0392b;
}

.green {
  background: #27ae60;
}

.months {
  display: flex;
  gap: 32px;
  margin-top: 10px;
}

.months span {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #999;
  letter-spacing: 0.03em;
}

.disabled-link {
  color: #d9dde0 !important;
  pointer-events: none;
}

.card {
  border: 2px solid #333;
  border-radius: 4px !important;
}

.zentriertBestaetigung {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}