:root {
  --ink: #14201a;
  --muted: #5a675f;
  --line: #d3ddd6;
  --bg: #f3efe6;
  --card: #fffdf8;
  --accent: #1f5c3a;
  --accent-soft: #e6f1ea;
  --ok: #1f7a4d;
  --warn-bg: #fff4d6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}
header.app { background: var(--accent); color: #fff; padding: 16px; }
header.app .inner, .wrap { max-width: 760px; margin: 0 auto; }
.wrap { padding: 16px 16px 72px; }
header.app .name-top {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  margin: 0 0 4px;
}
header.app .name-top-input {
  width: 100%;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  border: 0;
  border-bottom: 2px solid rgba(255,255,255,.55);
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 2px 0 8px;
}
header.app .name-top-input::placeholder { color: rgba(255,255,255,.5); font-weight: 650; }
header.app .name-top-input:focus { outline: none; border-bottom-color: #fff; }
header.app .klasse { margin: 8px 0 0; font-size: .95rem; font-weight: 650; opacity: .92; }
nav.bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
nav.bar a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.45);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 650;
}
nav.bar a.here { background: #fff; color: var(--accent); border-color: #fff; }
.welt {
  display: inline-block;
  margin-top: 10px;
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .04em;
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-top: 14px;
}
h2 { margin: 0 0 8px; font-size: 1.25rem; }
.hint { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.hero { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; } }
a.hero-btn, button.hero-btn {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  padding: 22px 18px;
  font-weight: 750;
  font-size: 1.2rem;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}
a.hero-btn.paper, button.hero-btn.paper { background: #1f7a4d; }
a.hero-btn.wide, button.hero-btn.wide { grid-column: 1 / -1; }
a.hero-btn span, button.hero-btn span {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  opacity: .92;
  margin-top: 6px;
}
.ball {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 8px 0 0;
}
.stations {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stations a {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  background: #fff;
}
.stations a.here { background: var(--accent); color: #fff; }
.hilfe {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 16px;
}
.hilfe p { margin: 0 0 8px; font-weight: 750; color: var(--accent); font-size: .88rem; }
.stellen {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  overflow-x: auto;
}
.stellen div {
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 6px 2px;
  text-align: center;
}
.stellen div b { display: block; font-size: 1.1rem; }
.stellen div span { display: block; font-size: .62rem; color: var(--muted); line-height: 1.2; }
.stellen .mark { background: var(--accent); color: #fff; }
.stellen .mark span { color: rgba(255,255,255,.85); }
.runden-hilfe {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  font-size: .85rem;
}
@media (max-width: 640px) {
  .stellen { grid-template-columns: repeat(4, minmax(64px, 1fr)); }
  .runden-hilfe { grid-template-columns: 1fr; }
}
.item { margin: 0 0 18px; }
.nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  margin-right: 8px;
  vertical-align: top;
}
.item p { display: inline; margin: 0; }
.item .q { display: block; margin: 0 0 8px; }
.item input[type="text"], .item textarea {
  width: 100%;
  padding: 12px 12px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font-size: 1.05rem;
  background: transparent;
  font-family: inherit;
  margin-top: 6px;
}
.item textarea { min-height: 52px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.head-block {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 750;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 16px 0 12px;
}
.head-block.warn { background: var(--warn-bg); color: var(--ink); }
.pause {
  background: var(--warn-bg);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 20px 0;
  font-weight: 700;
}
.schaetz {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  max-width: 420px;
}
.schaetz .box {
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-weight: 800;
  background: #fff;
}
.schaetz .box.ger { background: var(--accent-soft); color: var(--accent); }
.schaetz .dann { color: var(--muted); font-size: .85rem; }
.summe { margin-top: 8px; font-weight: 650; }
.loes { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.loes .a { font-weight: 800; margin-top: 4px; }
.loes .mine { color: var(--muted); font-size: .9rem; margin-top: 4px; }
label { display: block; font-weight: 650; margin: 10px 0 6px; }
input[type="text"], input[type="date"], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8c0cc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  font-family: inherit;
}
.numrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .numrow { grid-template-columns: 1fr; } }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-family: inherit;
}
.btn.ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn.big { width: 100%; min-height: 56px; font-size: 1.2rem; margin-top: 8px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.back { font-size: .85rem; opacity: .9; }
.saved { color: var(--ok); font-weight: 700; font-size: .9rem; }
.step-meta { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.step-card .item { margin: 0; }
.step-card .q { font-size: 1.12rem; line-height: 1.4; }
.step-nav { display: flex; gap: 10px; margin-top: 18px; }
.step-nav .btn { flex: 1; min-height: 52px; }
.step-nav .btn.ghost { flex: 0 0 auto; }
.eintrag { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.eintrag .mine { font-weight: 800; margin-top: 4px; }
.fb {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  text-align: center;
}
.fb.ok { background: #e7f6ee; color: #1f7a4d; }
.fb.no { background: #fdecea; color: #b42318; }
table.bericht { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
table.bericht th, table.bericht td {
  text-align: left;
  vertical-align: top;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
table.bericht th { font-size: .78rem; color: var(--muted); font-weight: 700; }
table.bericht td:first-child { width: 2.2rem; font-weight: 800; color: var(--accent); }
table.bericht td:last-child { width: 5.5rem; white-space: nowrap; font-weight: 800; }
table.bericht .bq { color: var(--muted); font-size: .82rem; margin: 0 0 4px; }
table.bericht .mine { font-weight: 800; margin: 0; }
table.bericht .mark.richtig { color: #1f7a4d; }
table.bericht .mark.falsch { color: #b42318; }
table.bericht .mark.offen { color: var(--muted); font-weight: 650; }
table.bericht a { color: var(--accent); font-weight: 750; }
