* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1115; color: #e8eaf0; font-size: 16px;
}
.top {
  position: sticky; top: 0; z-index: 10;
  background: #161a22; border-bottom: 1px solid #2a2f3a;
  padding: 14px 16px; font-weight: 700; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.top .logout { color: #9aa3b2; font-size: 13px; font-weight: 400; text-decoration: none; }
main { padding: 12px 12px 90px; max-width: 640px; margin: 0 auto; }

.card {
  display: block; background: #1a1e26; border: 1px solid #2a2f3a;
  border-radius: 12px; padding: 14px; margin-bottom: 12px;
  color: inherit; text-decoration: none;
}
.card.link:active { background: #222836; }
.card.geld { border-color: #f5b942; }
.label { color: #9aa3b2; font-size: 13px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.big { font-size: 34px; font-weight: 800; color: #f5b942; }
.sub { color: #9aa3b2; font-size: 13px; margin-top: 4px; }
.sub a { color: #f5b942; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.ok { color: #4ade80; }
.neg { color: #f87171; }

table { width: 100%; border-collapse: collapse; }
th { color: #9aa3b2; font-size: 12px; text-align: left; font-weight: 600; padding: 4px 6px; }
td { padding: 7px 6px; border-top: 1px solid #232834; vertical-align: middle; }
.r { text-align: right; }
tr.total td { border-top: 2px solid #2a2f3a; font-weight: 700; }

.barcell { width: 30%; }
.bar { height: 8px; background: #2a2f3a; border-radius: 4px; overflow: hidden; }
.fill { height: 100%; border-radius: 4px; }
.fill.hoch { background: #4ade80; }
.fill.mittel { background: #f5b942; }
.fill.tief { background: #f87171; }

input {
  width: 100%; padding: 10px; border-radius: 10px;
  border: 1px solid #2a2f3a; background: #10131a; color: #e8eaf0;
  font-size: 16px; margin-top: 4px;
}
input:focus { outline: 2px solid #f5b942; border-color: transparent; }
.ktab input { width: 4.8rem; text-align: center; margin: 0; }
.ktab td { padding: 8px 4px; }
.vk { font-weight: 700; min-width: 2.5rem; }

button, .btn {
  display: inline-block; border: 0; border-radius: 10px; cursor: pointer;
  padding: 12px 18px; font-size: 16px; font-weight: 700;
  background: #2a2f3a; color: #e8eaf0; text-decoration: none;
}
button.primary { width: 100%; background: #f5b942; color: #10131a; padding: 15px; font-size: 17px; }
button.danger { background: #3a2226; color: #f87171; }
.btnrow { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.btnrow input { margin-top: 0; }

.grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.grid label { font-size: 12px; color: #9aa3b2; }
.grid .wide { grid-column: span 2; }
.grid .check { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #e8eaf0; }
.grid .check input { width: 20px; height: 20px; margin: 0; }
.srow.inaktiv { opacity: .5; }

.flash { background: #3a3226; border: 1px solid #f5b942; border-radius: 12px; padding: 12px; margin-bottom: 12px; }

.bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; background: #161a22; border-top: 1px solid #2a2f3a;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.bottom a {
  flex: 1; text-align: center; text-decoration: none; color: #9aa3b2;
  font-size: 20px; display: flex; flex-direction: column; gap: 2px;
}
.bottom a span { font-size: 11px; }
.bottom a.on { color: #f5b942; }
