/* Grundlayout */
body {
  margin: 10px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
}

h1 { font-size: 28px; }
h2 { font-size: 26px; }
h3 { font-size: 14px; }

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th, table td {
  padding: 8px 12px;
  text-align: left;
}

table tr:nth-child(even) { background-color: #f2f2f2; }
table th { background-color: #4CAF50; color: white; }

/* Formulare */
form { margin: 0 auto; }

input, button {
  width: 100%;
  padding: 14px 16px;
  margin: 10px 0;
  font-size: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

input:focus { background-color: lightblue; }

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}
button:hover { background-color: #45a049; }

div#eingabe {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  font-size: 24px;
}
div#eingabe label { font-size: 20px; }

/* Jahresübersicht */
.last8-list {
  padding-left: 20px;
  margin-top: 10px;
  font-size: 16px;
}
.last8-list li { margin-bottom: 4px; }

/* Feedback-Meldungen (Settings, Admin) */
p.msg {
  padding: 8px 12px;
  background: #e8f5e9;
  border-left: 4px solid #4CAF50;
  border-radius: 3px;
}

/* Recycle-Button */
.recycle-btn {
  width: auto;
  padding: 2px 7px;
  margin: 0 5px 0 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #f0f0f0;
  color: #333;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1;
}
.recycle-btn:hover { background-color: #ddd; }

/* Recycle-Spalte schmal */
table th:first-child,
table td:first-child {
  width: 1%;
  white-space: nowrap;
  padding-right: 4px;
}

/* Strecke + Bemerkung: in Tabelle gekürzt, voll im Ausklapper */
td.bem-cell {
  max-width: 8ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Lauf-Zeile: anklickbar */
.lauf-row { cursor: pointer; }
.lauf-row:hover  { background-color: #e8f5e9; }
.lauf-row.active { background-color: #c8e6c9; }

/* Detailansicht als eingeklappte Tabellenzeile */
tr.detail-row td {
  padding: 8px 12px;
  background: #f0f7f0;
  border-top: 1px solid #c8e6c9;
  border-bottom: 2px solid #4CAF50;
}

.detail-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: baseline;
}

.detail-inner span {
  white-space: nowrap;
  font-size: 16px;
}

.detail-inner strong {
  color: #555;
  font-size: 13px;
  margin-right: 3px;
}

.detail-edit-btn {
  display: inline-block;
  margin-left: 12px;
  padding: 3px 12px;
  background: #4CAF50;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}
.detail-edit-btn:hover { background: #45a049; }

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 16px; margin: 5px; }
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }
  div#eingabe { max-width: 100%; }

  table td {
    border: none;
    position: relative;
    padding-left: 2%;
    text-align: left;
  }
}
