* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f3f5f9;
  color: #243247;
  line-height: 1.6;
}

header {
  padding: 36px 20px;
  background-color: #243247;
  color: white;
  text-align: center;
}

header h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

header p {
  margin: 0;
  color: #d6deeb;
}

main {
  max-width: 850px;
  margin: 28px auto;
  padding: 0 16px;
}

section {
  margin-bottom: 20px;
  padding: 24px;
  background-color: white;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

h2 {
  margin-top: 0;
  font-size: 21px;
}

section p {
  margin-bottom: 0;
}

/* Farben für unsere späteren Geldbeträge */
.einnahme {
  color: #16733c;
}

.ausgabe {
  color: #bd2929;
}

.neutral {
  color: #243247;
}
form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

label {
  font-weight: bold;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #aab5c4;
  border-radius: 8px;
  font: inherit;
}

button {
  margin-top: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background-color: #243247;
  color: white;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #364b68;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid #2878d0;
  outline-offset: 3px;
}
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #aab5c4;
  border-radius: 8px;
  background-color: white;
  color: #243247;
  font: inherit;
}

select:focus-visible {
  outline: 3px solid #2878d0;
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.haekchen-zeile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  cursor: pointer;
}

.haekchen-zeile input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
}
.monatsnavigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.monatsnavigation h3 {
  margin: 0;
  text-align: center;
}

.monatsnavigation button {
  margin: 0;
}
.markierung-knopf {
  display: block;
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 14px;
  background-color: #e8edf4;
  color: #243247;
}

.markierung-knopf:hover {
  background-color: #d5dfec;
}