:root {
  --ink:#14242c;
  --muted:#75838a;
  --line:#e5ebeb;
  --paper:#f5f7f5;
  --white:#fff;
  --dark:#102630;
  --lime:#dbf887;
  --teal:#387f7d;
  --sky:#e8f2f4;
  --radius:20px;
  color-scheme:light;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased
}
button,input,select,textarea {
  font:inherit
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.6;
  cursor:wait
}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #88b9a0;
  outline-offset:2px
}
[hidden] {
  display:none!important
}
.app-shell {
  min-height:100vh
}
.topbar {
  height:83px;
  padding:0 max(28px,calc((100vw - 1380px)/2));
  background:var(--dark);
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#fff
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:inherit;
  text-decoration:none
}
.brand-mark {
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--lime);
  color:var(--dark);
  font-weight:900;
  font-size:27px;
  line-height:1
}
.brand strong {
  font-weight:850;
  letter-spacing:.13em;
  font-size:17px;
  display:block
}
.brand small {
  font-size:9px;
  letter-spacing:.17em;
  color:#a8b8bd;
  display:block;
  margin-top:4px
}
.topbar-actions {
  display:flex;
  align-items:center;
  gap:21px
}
.topbar-pill {
  font-size:10px;
  letter-spacing:.15em;
  font-weight:700;
  color:#afc3c6
}
.live-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--lime);
  margin-right:8px
}
.logout {
  border:1px solid #38505b;
  color:#c4d1d1;
  background:none;
  border-radius:11px;
  width:39px;
  height:39px;
  font-size:27px;
  line-height:1;
  transition:.2s
}
.logout:hover {
  background:#24414c
}
.main {
  max-width:1380px;
  margin:auto;
  padding:42px 30px 24px
}
.eyebrow {
  font-size:10px;
  line-height:1.5;
  font-weight:800;
  letter-spacing:.17em;
  color:#71918a;
  margin:0 0 9px
}
.intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:0 0 28px
}
.intro h1 {
  font-size:clamp(34px,4.4vw,53px);
  line-height:1.05;
  margin:0;
  letter-spacing:-.055em;
  font-weight:800
}
.intro h1 em {
  font-style:normal;
  color:#438e83
}
.intro-sub {
  font-size:15px;
  color:var(--muted);
  margin:15px 0 0
}
.btn {
  border:1px solid transparent;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 17px;
  font-weight:750;
  font-size:13px;
  text-decoration:none;
  white-space:nowrap;
  transition:background .18s,transform .18s
}
.btn:hover {
  transform:translateY(-1px)
}
.btn.primary {
  background:var(--dark);
  color:#fff
}
.btn.primary:hover {
  background:#284c53
}
.btn.subtle {
  background:#f1f5f4;
  color:#314a4f
}
.btn.subtle:hover {
  background:#e3ebea
}
.btn.outline {
  border-color:#cedbd9;
  background:#fff;
  color:#345457
}
.btn.outline:hover {
  background:#f4faf7
}
.btn.danger {
  background:#fff0ef;
  color:#b34039
}
.btn.tiny {
  padding:9px 14px;
  font-size:12px;
  background:#f3f5f4;
  color:#466066
}
.btn.wide {
  width:100%;
  justify-content:space-between
}
.btn.wide span {
  margin-left:auto
}
.stats {
  display:grid;
  grid-template-columns:1.15fr .82fr 1.1fr;
  gap:16px;
  margin-bottom:24px
}
.stat {
  background:#fff;
  border:1px solid #ecf0ee;
  border-radius:var(--radius);
  padding:22px 25px;
  min-height:142px;
  box-shadow:0 3px 14px #173a2510
}
.stat-label {
  display:block;
  font-size:10px;
  color:#82918c;
  font-weight:800;
  letter-spacing:.13em;
  margin-bottom:18px
}
.stat-value {
  font-size:28px;
  line-height:1.15;
  letter-spacing:-.05em;
  font-weight:820;
  overflow-wrap:anywhere
}
.stat-value.smaller {
  font-size:20px;
  letter-spacing:-.025em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.stat-foot {
  display:block;
  margin-top:9px;
  color:#91a09c;
  font-size:12px
}
.progress {
  height:5px;
  background:#eaf0ee;
  border-radius:10px;
  overflow:hidden;
  margin-top:17px
}
.progress>div {
  height:100%;
  width:0;
  background:#72aaa0;
  border-radius:10px;
  transition:width .4s
}
.stat-next {
  background:var(--dark);
  color:#fff
}
.stat-next .stat-label {
  color:#97b6b1
}
.stat-next .stat-foot {
  color:#b2c9c7
}
.content-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 316px;
  align-items:start;
  gap:20px
}
.panel {
  border-radius:var(--radius);
  background:var(--white);
  border:1px solid #e8eeeb;
  box-shadow:0 4px 22px #123c2610
}
.calendar-panel {
  padding:25px
}
.calendar-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.calendar-toolbar h2,.side-heading h2 {
  margin:0;
  font-size:26px;
  letter-spacing:-.035em;
  line-height:1.2
}
.calendar-actions {
  display:flex;
  align-items:center;
  gap:6px
}
.icon-btn {
  width:34px;
  height:34px;
  border:1px solid #e7edeb;
  border-radius:10px;
  color:#46615e;
  background:#fff;
  font-size:25px;
  line-height:1
}
.icon-btn:hover {
  background:#ecf5f1
}
.view-switch {
  background:#f2f6f4;
  border-radius:11px;
  display:inline-flex;
  gap:2px;
  margin:21px 0 16px;
  padding:4px
}
.switch {
  font-size:12px;
  font-weight:700;
  border:0;
  border-radius:8px;
  padding:9px 15px;
  color:#82958d;
  background:transparent
}
.switch.active {
  background:#fff;
  color:var(--ink);
  box-shadow:0 1px 6px #243d3418
}
.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden
}
.weekday {
  background:#f7f9f8;
  text-align:center;
  padding:12px 0;
  color:#79918b;
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em
}
.day-cell {
  border:0;
  background:#fff;
  min-height:107px;
  min-width:0;
  padding:10px 6px;
  text-align:left;
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:4px;
  transition:background .15s
}
.day-cell:hover {
  background:#f5faf5
}
.day-cell.outside {
  background:#fbfcfb;
  color:#b7c1bf
}
.day-cell.selected {
  background:#f1f8ef;
  box-shadow:inset 0 0 0 2px #a5c4ac;
  position:relative
}
.day-number {
  display:flex;
  align-items:center;
  justify-content:center;
  width:27px;
  height:27px;
  font-size:12px;
  font-weight:800;
  border-radius:9px
}
.day-cell.today .day-number {
  background:var(--dark);
  color:#fff
}
.day-items {
  display:flex;
  flex-direction:column;
  gap:3px;
  width:100%
}
.mini-chip {
  padding:4px 5px;
  border-radius:5px;
  color:#3e696b;
  background:#e6f3f2;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:100%;
  font-size:10px;
  line-height:1.3;
  font-weight:650
}
.mini-chip.kind-race {
  background:#e5efd3;
  color:#486a29
}
.mini-chip.kind-goal {
  background:#f3eafb;
  color:#765493
}
.mini-chip.status-done {
  opacity:.6
}
.mini-chip.status-skipped {
  text-decoration:line-through;
  opacity:.45
}
.mini-more {
  color:#8fa09a;
  font-size:10px;
  padding-left:4px
}
.day-dots {
  display:none;
  gap:3px;
  flex-wrap:wrap;
  margin:1px 0
}
.dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#438f8d
}
.dot.kind-race {
  background:#91b94f
}
.dot.kind-goal {
  background:#ab79bd
}
.day-detail {
  padding-top:27px;
  margin-top:25px;
  border-top:1px solid var(--line)
}
.day-detail-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px
}
.day-detail-heading h3 {
  font-size:19px;
  line-height:1.2;
  margin:0;
  letter-spacing:-.03em
}
.selected-entries {
  display:grid;
  gap:9px
}
.entry-card {
  width:100%;
  display:flex;
  align-items:center;
  gap:13px;
  text-align:left;
  border:1px solid #e8eeee;
  background:#fff;
  border-radius:12px;
  padding:13px;
  transition:border-color .15s,background .15s;
  min-width:0;
  color:var(--ink)
}
.entry-card:hover {
  background:#f8fbf8;
  border-color:#c3d6cd
}
.entry-icon {
  width:39px;
  height:39px;
  flex-shrink:0;
  background:#e9f4f3;
  color:#468683;
  border-radius:11px;
  display:grid;
  place-items:center;
  font-size:21px;
  font-weight:800
}
.entry-card.kind-race .entry-icon {
  background:#edf5dd;
  color:#648f32
}
.entry-card.kind-goal .entry-icon {
  background:#f1e7f7;
  color:#965eac
}
.entry-card.status-done .entry-icon {
  background:#eaf5df;
  color:#63a344
}
.entry-card.status-skipped {
  opacity:.55
}
.entry-content {
  display:flex;
  flex:1;
  flex-direction:column;
  gap:6px;
  min-width:0
}
.entry-heading {
  font-size:14px;
  font-weight:760;
  overflow-wrap:anywhere
}
.entry-meta {
  font-size:12px;
  color:var(--muted);
  line-height:1.4
}
.entry-arrow {
  font-size:27px;
  color:#a4b3ad;
  font-weight:300
}
.empty-day {
  padding:17px 16px;
  background:#f6f9f7;
  border:1px dashed #d7e3dc;
  border-radius:12px;
  color:#81928b;
  font-size:13px;
  line-height:1.6
}
.empty-day span {
  float:right;
  color:#589782;
  font-size:20px
}
.list-view {
  padding:4px 0 0
}
.list-day {
  margin:0 0 22px;
  display:grid;
  gap:8px
}
.list-day-title {
  font-size:12px;
  font-weight:850;
  text-transform:capitalize;
  color:#516e67;
  letter-spacing:.03em;
  margin-bottom:4px
}
.today-tag {
  margin-left:10px;
  color:#529282;
  background:#e9f5eb;
  border-radius:6px;
  padding:4px 7px;
  text-transform:none
}
.empty-list {
  text-align:center;
  padding:53px 22px;
  background:#f7faf8;
  border-radius:14px
}
.empty-list span {
  font-size:38px;
  color:#a0bbb1;
  display:block;
  margin-bottom:12px
}
.empty-list strong {
  font-size:16px
}
.empty-list p {
  font-size:13px;
  color:#85968d;
  margin-bottom:0
}
.sidebar {
  display:grid;
  gap:18px
}
.goals-panel {
  padding:23px
}
.side-heading {
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:20px
}
.side-symbol {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  background:#eaf3e2;
  color:#688b3d;
  font-size:30px;
  border-radius:12px
}
.side-heading h2 {
  font-size:21px
}
.side-heading .eyebrow {
  font-size:9px
}
.upcoming {
  display:grid;
  gap:10px;
  margin-bottom:17px
}
.goal-card {
  border:1px solid #e7ece6;
  background:#fbfcf9;
  border-radius:13px;
  padding:14px;
  text-align:left;
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
  transition:.2s
}
.goal-card:hover {
  border-color:#b1c9aa;
  background:#f5faf1
}
.goal-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px
}
.goal-type {
  font-size:9px;
  letter-spacing:.12em;
  font-weight:850;
  color:#608b5c
}
.goal-count {
  font-size:9px;
  letter-spacing:.05em;
  font-weight:850;
  background:var(--dark);
  color:var(--lime);
  padding:5px 7px;
  border-radius:6px;
  white-space:nowrap
}
.goal-card strong {
  font-size:15px;
  line-height:1.25;
  letter-spacing:-.01em
}
.goal-date {
  font-size:11px;
  color:#95a19a
}
.goal-target {
  font-size:12px;
  color:#57786a;
  border-top:1px solid #e5eee4;
  padding-top:9px;
  line-height:1.4
}
.goals-empty {
  padding:20px 13px;
  background:#f7f9f6;
  text-align:center;
  border-radius:12px;
  color:#82968c;
  font-size:13px;
  line-height:1.6
}
.goals-empty span {
  font-size:30px;
  display:block;
  color:#9ab299
}
.hint-panel {
  background:#e8efe8;
  border:1px solid #d8e4d9;
  padding:24px;
  border-radius:var(--radius);
  color:#2e4c43
}
.hint-symbol {
  font-size:25px;
  font-weight:800
}
.hint-panel .eyebrow {
  margin-top:21px
}
.hint-panel h3 {
  font-size:20px;
  letter-spacing:-.03em;
  line-height:1.15;
  margin:0 0 12px
}
.hint-panel>p:last-child {
  font-size:13px;
  color:#6a8676;
  line-height:1.65;
  margin:0
}
.footer-note {
  text-align:center;
  font-size:10px;
  letter-spacing:.15em;
  color:#a0afa8;
  margin:28px 0 6px
}
.fab {
  display:none
}
/* Formular */
dialog {
  border:0;
  padding:0;
  width:min(95vw,570px);
  max-height:min(92dvh,850px);
  border-radius:21px;
  box-shadow:0 30px 120px #10222d55;
  color:var(--ink);
  overflow:hidden
}
dialog::backdrop {
  background:#081e29a8;
  backdrop-filter:blur(4px)
}
dialog form {
  display:flex;
  flex-direction:column;
  max-height:min(92dvh,850px)
}
.dialog-top {
  display:flex;
  align-items:start;
  justify-content:space-between;
  padding:24px 26px 19px;
  border-bottom:1px solid var(--line)
}
.dialog-top h2 {
  font-size:24px;
  letter-spacing:-.04em;
  margin:0
}
.close-btn {
  background:#f1f4f2;
  border:0;
  border-radius:10px;
  width:35px;
  height:35px;
  font-size:25px;
  color:#647a73
}
.form-scroll {
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:22px 26px;
  display:grid;
  gap:17px
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px
}
.form-field {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px
}
.form-field label,.login-form label {
  font-size:12px;
  font-weight:750;
  color:#506a62
}
.form-field input,.form-field select,.form-field textarea,.login-form input {
  width:100%;
  min-width:0;
  border:1px solid #d7e2de;
  background:#fff;
  border-radius:10px;
  padding:12px 13px;
  outline:none;
  color:#213b3a;
  font-size:15px
}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.login-form input:focus {
  border-color:#639e87;
  box-shadow:0 0 0 3px #85b69c33
}
.form-field textarea {
  resize:vertical;
  min-height:85px
}
.only-training {
  display:grid;
  gap:15px
}
.only-goal {
  display:flex
}
.dialog-bottom {
  padding:16px 26px;
  display:flex;
  align-items:center;
  gap:9px;
  border-top:1px solid var(--line);
  background:#fff
}
.dialog-space {
  flex:1
}
.form-error {
  color:#a83636;
  background:#ffefee;
  padding:11px 13px;
  border-radius:9px;
  font-size:13px;
  line-height:1.5;
  margin:0
}
.toast {
  position:fixed;
  right:23px;
  bottom:24px;
  background:var(--dark);
  color:#fff;
  border-radius:12px;
  padding:14px 21px;
  font-size:13px;
  font-weight:700;
  box-shadow:0 12px 35px #0b243338;
  z-index:100
}
.toast.error {
  background:#b4403a
}
/* Anmeldung */
.login-wrap {
  min-height:100dvh;
  background:radial-gradient(ellipse at 80% 20%,#31584d,transparent 45%),var(--dark);
  display:grid;
  place-items:center;
  padding:22px
}
.login-card {
  background:#fff;
  width:min(100%,435px);
  padding:38px;
  border-radius:24px;
  box-shadow:0 25px 70px #071d2190
}
.login-card .brand-mark {
  width:53px;
  height:53px;
  margin-bottom:31px
}
.login-card h1 {
  font-size:42px;
  line-height:1.06;
  letter-spacing:-.05em;
  margin:0 0 14px
}
.login-card .muted {
  color:#82928b;
  font-size:14px;
  line-height:1.6
}
.login-form {
  display:grid;
  gap:11px;
  margin-top:29px
}
.login-form .btn {
  margin-top:8px
}
@media(max-width:1120px) {
  .main {
    padding:30px 20px
  }
  .topbar {
    padding:0 20px
  }
  .content-grid {
    grid-template-columns:minmax(0,1fr) 270px;
    gap:14px
  }
  .calendar-panel {
    padding:19px
  }
  .goals-panel {
    padding:19px
  }
  .day-cell {
    min-height:96px
  }
  .mini-chip {
    font-size:9px
  }
  .stats {
    gap:12px
  }
  .stat {
    padding:20px
  }
  .stat-value {
    font-size:24px
  }
}
@media(max-width:850px) {
  .content-grid {
    grid-template-columns:1fr
  }
  .sidebar {
    grid-template-columns:1fr 1fr;
    align-items:start
  }
  .stats {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .stat {
    min-height:125px
  }
  .stat-value {
    font-size:20px
  }
  .stat-value.smaller {
    font-size:17px
  }
  .day-cell {
    min-height:105px
  }
  .mini-chip {
    font-size:10px
  }
}
@media(max-width:620px) {
  .topbar {
    height:68px;
    padding:0 17px
  }
  .brand-mark {
    width:38px;
    height:38px;
    font-size:25px
  }
  .brand strong {
    font-size:15px
  }
  .brand small {
    font-size:8px;
    letter-spacing:.12em
  }
  .topbar-pill {
    display:none
  }
  .main {
    padding:27px 13px 74px
  }
  .intro {
    margin-bottom:24px
  }
  .intro h1 {
    font-size:37px
  }
  .intro-sub {
    font-size:13px;
    margin-top:10px
  }
  .add-top {
    display:none
  }
  .stats {
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-bottom:13px
  }
  .stat {
    min-height:112px;
    border-radius:15px;
    padding:15px
  }
  .stat:first-child {
    grid-column:1 / -1;
    min-height:110px
  }
  .stat-label {
    font-size:9px;
    margin-bottom:13px;
    line-height:1.3
  }
  .stat-value {
    font-size:19px
  }
  .stat:first-child .stat-value {
    font-size:24px
  }
  .stat-value.smaller {
    font-size:16px
  }
  .stat-foot {
    font-size:10px
  }
  .stat-next .stat-label {
    white-space:nowrap
  }
  .calendar-panel {
    padding:17px 12px;
    border-radius:17px
  }
  .calendar-toolbar {
    gap:3px
  }
  .calendar-toolbar h2 {
    font-size:23px
  }
  .calendar-actions {
    gap:4px
  }
  .calendar-actions .tiny {
    padding:9px 10px
  }
  .icon-btn {
    width:31px;
    height:32px
  }
  .view-switch {
    margin:18px 0 15px
  }
  .weekday {
    padding:11px 0
  }
  .day-cell {
    min-height:68px;
    padding:6px 2px;
    align-items:center;
    gap:2px
  }
  .day-number {
    width:26px;
    height:26px;
    font-size:12px
  }
  .day-items {
    display:none
  }
  .day-dots {
    display:flex;
    justify-content:center;
    max-width:30px
  }
  .day-detail {
    padding-top:22px;
    margin-top:20px
  }
  .day-detail-heading h3 {
    font-size:17px
  }
  .day-detail-heading .btn {
    font-size:11px;
    padding:10px 11px
  }
  .entry-card {
    padding:11px
  }
  .sidebar {
    grid-template-columns:1fr;
    gap:12px
  }
  .goals-panel,.hint-panel {
    padding:20px
  }
  .fab {
    display:grid;
    place-items:center;
    position:fixed;
    right:19px;
    bottom:calc(19px + env(safe-area-inset-bottom));
    width:56px;
    height:56px;
    background:var(--lime);
    color:var(--dark);
    border:3px solid var(--dark);
    box-shadow:0 7px 20px #1d4b3e38;
    border-radius:17px;
    font-size:29px;
    font-weight:600;
    z-index:12
  }
  .footer-note {
    font-size:9px
  }
  dialog {
    width:100%;
    max-height:95dvh;
    height:auto;
    max-width:none;
    margin:auto 0 0;
    border-radius:22px 22px 0 0;
    position:fixed;
    bottom:0;
    left:0
  }
  dialog form {
    max-height:95dvh
  }
  .dialog-top {
    padding:20px
  }
  .form-scroll {
    padding:19px 20px
  }
  .dialog-bottom {
    padding:14px 17px calc(14px + env(safe-area-inset-bottom));
    gap:6px
  }
  .dialog-bottom .btn {
    padding:11px 12px;
    font-size:12px
  }
  .toast {
    left:13px;
    right:13px;
    bottom:86px;
    text-align:center
  }
}
@media(max-width:350px) {
  .form-grid {
    grid-template-columns:1fr
  }
  .stats .stat-value {
    font-size:16px
  }
  .calendar-toolbar h2 {
    font-size:19px
  }
  .day-cell {
    min-height:59px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
