:root {
  --navy: #0a1530;
  --akzent: #2355b0;
  --linie: #d8dce4;
  --grau: #5b6474;
  --hell: #f4f5f8;
  --warn: #a3341f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.rahmen {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 64px;
}

.kopf {
  padding-top: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--linie);
  margin-bottom: 28px;
}

.marke {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grau);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.schrittleiste {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.schrittleiste li {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 0;
  font-size: 13px;
  color: var(--grau);
  border-top: 3px solid var(--linie);
}

.schrittleiste li.aktiv { color: var(--navy); border-top-color: var(--akzent); }
.schrittleiste li.erledigt { border-top-color: var(--navy); }

h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 22px;
  font-weight: 600;
}

.verborgen { display: none; }

.liste { display: flex; flex-direction: column; gap: 1px; background: var(--linie); }

.leistung {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.leistung:hover { background: var(--hell); }
.leistung .titel { font-weight: 600; overflow-wrap: break-word; }
.leistung .unten { display: block; font-size: 14px; color: var(--grau); font-weight: 400; }
.leistung .dauer { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--grau); white-space: nowrap; }

.wahlzeile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linie);
}

.wahlzeile label { font-size: 14px; color: var(--grau); min-width: 84px; }

select, input[type="text"], input[type="email"], input[type="date"], textarea {
  font: inherit;
  color: inherit;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: 0;
  background: #fff;
  width: 100%;
  max-width: 100%;
}

select:focus, input:focus, textarea:focus {
  outline: 2px solid var(--akzent);
  outline-offset: -1px;
}

.tagesleiste-huelle { display: flex; align-items: stretch; gap: 8px; margin-bottom: 14px; }

.tagesleiste {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1 1 auto;
  min-width: 0;
  scrollbar-width: thin;
}

.tag {
  flex: 0 0 auto;
  min-width: 62px;
  padding: 8px 6px;
  background: #fff;
  border: 1px solid var(--linie);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  line-height: 1.3;
}

.tag .wt { display: block; font-size: 12px; color: var(--grau); }
.tag .dt { display: block; font-weight: 600; }
.tag.gewaehlt { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag.gewaehlt .wt { color: #b9c2d6; }
.tag.leer { color: #b3b9c6; }
.tag.leer .wt { color: #c8cdd8; }

.blaettern {
  flex: 0 0 auto;
  width: 36px;
  border: 1px solid var(--linie);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  color: var(--grau);
}

.blaettern:disabled { opacity: 0.35; cursor: default; }

.kalenderzeile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.kalenderzeile label { font-size: 14px; color: var(--grau); }
.kalenderzeile input { max-width: 190px; }

.zeitraster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}

.zeit {
  padding: 11px 4px;
  border: 1px solid var(--linie);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-family: ui-monospace, Menlo, monospace;
  color: inherit;
  text-align: center;
}

.zeit:hover { border-color: var(--navy); }
.zeit.gewaehlt { background: var(--akzent); border-color: var(--akzent); color: #fff; }

.feld { margin-bottom: 18px; }
.feld label { display: block; font-size: 14px; color: var(--grau); margin-bottom: 6px; }
.klein { font-size: 13px; color: var(--grau); }
.warnung { color: var(--warn); margin: 6px 0 0; }

.ankreuz { display: flex; align-items: center; gap: 10px; }
.ankreuz input { width: auto; }
.ankreuz span { font-size: 15px; color: var(--navy); }

.zusammenfassung {
  background: var(--hell);
  padding: 16px 18px;
  margin-bottom: 24px;
  border-left: 3px solid var(--akzent);
}

.zusammenfassung dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }
.zusammenfassung dt { font-size: 14px; color: var(--grau); }
.zusammenfassung dd { margin: 0; font-weight: 600; }

.fussleiste { display: flex; gap: 12px; margin-top: 26px; }

.knopf {
  padding: 13px 26px;
  border: 0;
  border-radius: 0;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.knopf:hover { background: var(--akzent); }
.knopf:disabled { background: var(--grau); cursor: default; }
.knopf.still { background: transparent; color: var(--grau); border: 1px solid var(--linie); font-weight: 400; }
.knopf.still:hover { background: var(--hell); color: var(--navy); }

.hinweis { font-size: 14px; color: var(--grau); }
.fehler { background: var(--warn); color: #fff; padding: 12px 16px; margin: 18px 0 0; font-size: 15px; }

.band { background: var(--navy); color: #fff; padding: 26px 20px; margin-bottom: 26px; }
.band h1 { margin: 0; color: #fff; }

.bestaetigung dl { margin: 0 0 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.bestaetigung dt { font-size: 14px; color: var(--grau); }
.bestaetigung dd { margin: 0; font-weight: 600; }

.verwaltungslink { word-break: break-all; font-size: 14px; }
.verwaltungslink a { color: var(--akzent); }
.kalenderdatei { color: var(--akzent); font-size: 15px; }

.laedt { color: var(--grau); font-size: 15px; padding: 12px 0; }

@media (max-width: 520px) {
  h1 { font-size: 22px; }
  .rahmen { padding-left: 16px; padding-right: 16px; }
  .wahlzeile { flex-direction: column; align-items: stretch; gap: 6px; }
  .wahlzeile label { min-width: 0; }
  .kalenderzeile { flex-direction: column; align-items: stretch; gap: 6px; }
  .kalenderzeile input { max-width: none; }
  .fussleiste { flex-direction: column-reverse; }
  .knopf { width: 100%; }
}
