body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0.5em;
  background-color: #f2f2f2;
}
.container {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 0.8em;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
label {
  display: block;
  margin-top: 1em;
  font-weight: bold;
}
input, textarea, select, button {
  width: 100%;
  padding: 0.8em;
  margin-top: 0.8em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}
.row {
  display: flex;
  gap: 0.5em;
}
/*.row input,
.row select {
  flex: 1;
  margin-top: 0.5em;
}*/
.row select,
.row input[type="text"] {
  padding: 0.6em;
  margin-top: 0.5em;
  font-size: 1em;
  box-sizing: border-box;
}

.row-2-1 > *:first-child {
  flex: 2;
}
.row-2-1 > *:last-child {
  flex: 1;
}
.row-cost-type {
  display: flex;
  gap: 0.5em;
}
.row-cost-type select {
  flex: 3;
  margin-top: 0.5em;
}
.row-check {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1em;
  justify-content: flex-start;
}

/*.row-cost-type a {*/
  /*flex: 1;*/
  /*margin-top: 0.5em;*/
  /*text-align: center;*/
  /*background-color: #007aff;*/
  /*color: white;*/
  /*text-decoration: none;*/
  /*padding: 0.8em;*/
  /*border-radius: 5px;*/
  /*font-size: 0.9em;*/
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: center;*/
/*}*/
.row-cost-type a {
  width: 2.5em;
  height: 2.5em;
  margin-top: 0.5em;
  background-color: #007aff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Wichtig: Kein Innenabstand */
  flex: 0 0 auto; /* Verhindert, dass der Button sich dehnt */
}

button {
  background-color: #007aff;
  color: white;
  border: none;
  margin-top: 1.5em;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8em;
  color: #888;
  margin-top: 1em;
}
.footer-note {
  font-size: 0.8em;
  color: #888;
  margin-top: 1em;
  /*text-align: right;*/
}
.footer-note-left {
  font-size: 0.8em;
  color: #888;
  margin-top: 1em;
  /*text-align: left;*/
}
.tabs {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #007aff;
  padding: 0.3em 0;
  border-radius: 8px;
  margin-bottom: 1em;
  padding-left: 0.2em;
  padding-right: 0.2em;
}

.tabs a {
  color: white;
  text-decoration: none;
  padding: 0.5em 0.5em;
  font-weight: bold;
  font-size: 1.2em;
  flex: 1 1 auto;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s;
}

.tabs a:hover {
  border-bottom: 3px solid #E89D20;
}

.tabs a.active {
  border: 2px solid #fff;
  background-color: #E89D20;
  border-radius: 10px;
}

/* Abstand von oben */
table {
  margin-top: 40px;
  width: 100%;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
  table-layout: fixed;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.9em;  /* z. B. 90% der Standardschriftgröße */
}

table, th, td {
    #border: 1px solid #ccc;
}

td, th {
  white-space: normal;     /* oder: unset */
  overflow-wrap: break-word;
  font-size: 0.85em;       /* oder kleiner bei Bedarf */
  padding: 4px 6px;
}

/* Wenig Innenabstand und kein Umbruch */
td {
    padding: 2px 4px; /* sehr wenig Abstand */
    white-space: nowrap; /* verhindert Umbrüche */
}

th {
    padding: 2px 4px; /* sehr wenig Abstand */
    white-space: nowrap; /* verhindert Umbrüche */
    font-weight: bold;
  text-align: left;
}

tr:nth-child(even) {
    background-color: #f0f0f0;
}

.betrag {
    display: flex;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums; /* gleichbreite Ziffern */
}

.betrag .euro {
    text-align: right;
    min-width: 2ch;
}

.betrag .komma {
    padding: 0 2px;
}

.betrag .cent {
    text-align: left;
    min-width: 2ch;
}

