/* Warm paper, berry ink and little bows. Shared tokens also power the evening palette. */
:root {
  --bg: #faf7f6;
  --card: #fffdfc;
  --text: #483840;
  --muted: #85757f;
  --pink: #cc537f;
  --pinkdunkel: #a63460;
  --pink2: #e998b7;
  --rosa: #f9e9ef;
  --rosa2: #efcedd;
  --gelb2: #fff4df;
  --lila2: #eee9f6;
  --mint2: #e8f1eb;
  --blau2: #eaf0f9;
  --line: #eddfe5;
  --shadow: 0 5px 20px #64425006;
  --radius: 20px;
  --sidebar: 230px;
  --top-h: 88px;
  --nav-h: 76px;
  --soft: #f5f0f2;
  --surface-hover: #fbf1f5;
  --ink-subtle: #715562;
  --head: "Fredoka", "Nunito", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #211c2b;
  --card: #2b2536;
  --text: #f2e6ef;
  --muted: #b8a8ba;
  --pink: #f297bb;
  --pinkdunkel: #ffb5d3;
  --pink2: #9f5d82;
  --rosa: #403044;
  --rosa2: #604058;
  --gelb2: #443a35;
  --lila2: #3a304c;
  --mint2: #293d3a;
  --blau2: #2d374b;
  --line: #46384d;
  --soft: #342c40;
  --surface-hover: #3b3046;
  --ink-subtle: #d5bed0;
  --shadow: 0 8px 24px #110c181a;
  --mintdunkel: #9dddd0;
  --rot: #ffa1a1;
  --rot2: #482c38;
}

body {
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
}
h1 {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  letter-spacing: -0.025em;
  font-weight: 500;
}
h2 {
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 500;
}
h3 {
  color: var(--text);
  font-weight: 500;
}
button,
input,
select {
  font: inherit;
}
a {
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}
.icon {
  width: 21px;
  height: 21px;
  vertical-align: middle;
  flex-shrink: 0;
}
main:focus {
  outline: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--card);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}
.top .in {
  max-width: none;
  min-height: 88px;
  padding: 15px 30px;
  gap: 18px;
}
.top .logo {
  color: var(--text);
  font-size: 1.35rem;
  gap: 12px;
}
.logo small {
  display: block;
  font: 11px var(--body);
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 2px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--rosa);
  color: var(--pink);
}
.logo-mark .icon {
  width: 29px;
  height: 29px;
}
.top .chip {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: var(--body);
  font-size: 12px;
  padding: 4px 0;
  color: var(--text);
  gap: 9px;
}
.top .rank-chip {
  gap: 10px;
}
.rank-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gelb2);
  color: #b28849;
}
.rank-chip .bar {
  display: block;
  width: 155px;
  height: 4px;
  margin-top: 5px;
  background: var(--soft);
}
.rank-chip .bar i {
  background: var(--pink);
}
.top .streak {
  padding: 8px 15px;
  color: var(--pinkdunkel);
  background: var(--rosa);
  border-radius: 13px;
  font-size: 14px;
  animation: none;
}
.streak .icon {
  fill: var(--pink2);
  stroke: var(--pinkdunkel);
  width: 24px;
  height: 24px;
}
.streak-label {
  font-size: 11px;
}
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  background: var(--card);
  color: var(--ink-subtle);
  flex-shrink: 0;
  font-size: 23px;
  line-height: 1;
}
.icon-button:hover {
  background: var(--rosa);
  color: var(--pinkdunkel);
}
.icon-button.small {
  width: 30px;
  height: 30px;
  font-size: 19px;
  border-color: transparent;
}
.avatar-link {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: var(--rosa);
  padding: 4px;
  border: 1px solid var(--line);
}
.nav {
  background: var(--card);
  border-color: var(--line);
}
.nav a {
  font-family: var(--body);
  font-weight: 700;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav a.aktiv {
  color: var(--pinkdunkel);
  background: var(--rosa);
}
.nav a:hover {
  background: var(--surface-hover);
}
.nav-caption,
.nav-footer,
.sidebar-note {
  display: none;
}
.nav-new {
  margin-left: auto;
  color: var(--pink);
}
.nav a .ic {
  font-size: 1rem;
}
.nav .icon {
  width: 20px;
  height: 20px;
}
.card {
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.card.rosa,
.card.gelb,
.card.lila,
.card.mint {
  border-color: var(--line);
}
.btn {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  min-height: 44px;
  padding: 11px 19px;
  box-shadow: none;
  background: var(--pink);
  color: #fff;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
.btn:active {
  box-shadow: none;
  transform: translateY(1px);
}
.btn.sec {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--pinkdunkel);
  box-shadow: none;
}
.btn.klein {
  box-shadow: none;
  font-size: 13px;
}
.btn.ghost {
  background: transparent;
  box-shadow: none;
  color: var(--pinkdunkel);
}
.btn:disabled {
  box-shadow: none;
  transform: none;
}
.tag {
  font-family: var(--body);
  font-size: 11px;
  padding: 4px 9px;
  font-weight: 800;
}
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head h1 {
  margin: 0 0 6px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.page-head > .eyebrow {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 10px;
  white-space: nowrap;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > a {
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.section-heading .eyebrow {
  margin-bottom: 4px;
}
.meta {
  font-size: 13px;
  color: var(--muted);
}
.fineprint {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.6;
}
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(115deg, var(--rosa), var(--lila2));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 36px;
  min-height: 225px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  gap: 20px;
}
.welcome-banner h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  margin: 10px 0;
}
.welcome-banner p {
  max-width: 440px;
  color: var(--ink-subtle);
  font-size: 14px;
  margin-bottom: 20px;
}
.welcome-banner .eyebrow {
  color: var(--pinkdunkel);
}
.hero-kitty {
  position: relative;
  width: 210px;
  flex-shrink: 0;
  text-align: center;
}
.hero-kitty img {
  width: 145px;
  filter: drop-shadow(0 10px 8px #985b7515);
}
.hero-caption {
  display: block;
  font-family: var(--head);
  font-size: 12px;
  transform: rotate(-4deg);
  color: var(--pinkdunkel);
  margin-top: 6px;
}
.sparkle {
  position: absolute;
  font-size: 35px;
  color: var(--pink2);
}
.sparkle.one {
  left: 0;
  top: 8px;
}
.sparkle.two {
  right: 7px;
  bottom: 44px;
  color: #c0a064;
  font-size: 24px;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-tile {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 17px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}
.pink {
  background: var(--rosa);
  color: var(--pink);
}
.lilac {
  background: var(--lila2);
  color: #9b7db6;
}
.peach {
  background: var(--gelb2);
  color: #b1905b;
}
.stat-tile b {
  font-size: 19px;
  font-family: var(--head);
  font-weight: 500;
  display: block;
  line-height: 1.3;
}
.stat-tile small {
  font-size: 10px;
  color: var(--muted);
}
.stat-detail {
  font-size: 10px;
  margin-left: auto;
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}
.dashboard-main,
.dashboard-side {
  min-width: 0;
}
.learning-task {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.learning-task:first-child {
  padding-top: 0;
}
.learning-task:last-child {
  border-bottom: 0;
}
.learning-task > span:nth-child(2) {
  flex: 1;
}
.learning-task b {
  font-size: 13px;
  line-height: 1.45;
  display: block;
}
.learning-task small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.learning-task > .icon {
  width: 16px;
  color: var(--muted);
}
.task-number {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--pink);
  font-size: 12px;
  flex-shrink: 0;
  background: var(--soft);
}
.learning-task.done b {
  text-decoration: line-through;
  color: var(--muted);
}
.learning-task.done .task-number {
  background: var(--mint2);
  color: var(--mintdunkel);
}
.progress-track {
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
  margin: 12px 0;
}
.progress-track i {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: var(--pink);
  transition: width 0.3s;
}
.own-task-heading {
  font-size: 12px;
  margin-top: 24px;
  color: var(--muted);
}
.task-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.task-form input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  background: var(--bg);
  border: 1px dashed var(--rosa2);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text);
}
.task-form .icon-button {
  width: 38px;
  height: 38px;
  background: var(--rosa);
  color: var(--pink);
  border: 0;
}
.personal-task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.personal-task label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.personal-task input {
  accent-color: var(--pink);
  width: 17px;
  height: 17px;
}
.personal-task.done label span {
  text-decoration: line-through;
  color: var(--muted);
}
.week-bows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}
.week-bows > div {
  font-size: 11px;
  color: var(--muted);
}
.week-bows b {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  height: 43px;
  border-radius: 12px;
  margin-top: 8px;
  font-weight: 400;
  color: var(--muted);
}
.week-bows .today b {
  border-color: var(--pink2);
  background: var(--rosa);
}
.week-bows .done b {
  background: var(--rosa);
  color: var(--pink);
}
.week-bows .rest b {
  background: var(--bg);
  border-style: dashed;
}
.day-dot {
  height: 7px;
  width: 7px;
  background: var(--rosa2);
  border-radius: 50%;
}
.week-card .meta {
  font-size: 11px;
  margin-bottom: 0;
}
.module-progress {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  align-items: center;
}
.module-progress > div {
  flex: 1;
}
.module-progress h3 {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}
.module-progress small {
  font-size: 11px;
  color: var(--muted);
}
.module-progress strong {
  font-family: var(--head);
  font-weight: 400;
  font-size: 21px;
  color: var(--pink);
}
.module-number {
  align-self: flex-start;
  border-radius: 12px;
  background: var(--lila2);
  color: var(--pinkdunkel);
  padding: 13px 15px;
  font-family: var(--head);
  font-size: 19px;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 15px;
}
.calendar-toolbar h3 {
  font-family: var(--body);
  font-weight: 800;
  font-size: 12px;
  margin: 0;
  text-transform: capitalize;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.calendar-weekday {
  font-size: 10px;
  color: var(--muted);
  padding: 6px 0;
}
.calendar-day {
  position: relative;
  min-height: 34px;
  padding: 3px 0 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}
.calendar-day:hover {
  background: var(--soft);
}
.calendar-day.today {
  border-color: var(--pink2);
  font-weight: 900;
}
.calendar-day.selected {
  background: var(--pink);
  color: #fff;
}
.calendar-day.rest:not(.selected) {
  background: var(--soft);
  color: var(--muted);
}
.calendar-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
}
.calendar-dots i,
.calendar-legend i {
  width: 4px;
  height: 4px;
  background: var(--pink2);
  border-radius: 50%;
  display: inline-block;
}
.calendar-dots .exam,
.calendar-legend .exam {
  background: #9984c5;
}
.calendar-dots .event {
  background: #79b9ae;
}
.calendar-day.selected i {
  background: #fff;
}
.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 14px;
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.next-heading {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  margin: 25px 0 12px;
}
.upcoming-row {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.upcoming-row > span:nth-child(2) {
  flex: 1;
}
.upcoming-row b {
  font-size: 11px;
  display: block;
}
.upcoming-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.event-date {
  background: var(--soft);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 9px;
  text-align: center;
}
.event-date b {
  font-size: 16px;
  font-family: var(--head);
  font-weight: 500;
  line-height: 1.2;
}
.event-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #79b9ae;
  flex-shrink: 0;
}
.event-bullet.exam {
  background: #9984c5;
}
.event-bullet.break {
  background: #dc9eb4;
}
.quiet-empty {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  padding: 15px 0;
}
.quiet-empty p {
  margin: 0;
}
.quiet-empty > .icon {
  width: 25px;
  height: 25px;
  color: var(--pink2);
}
.kitty-preview {
  display: block;
  text-decoration: none;
  color: var(--text);
}
.kitty-preview b {
  font-size: 12px;
  display: block;
  margin-top: 16px;
}
.kitty-preview p {
  font-size: 11px;
  margin: 5px 0 0;
}
.kitty-room {
  position: relative;
  aspect-ratio: 1.25;
  background: var(--room-color);
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #a7768c30;
  isolation: isolate;
}
.room-wall {
  position: absolute;
  inset: 0 0 25%;
  background: repeating-linear-gradient(
    90deg,
    #ffffff10 0 25px,
    #ffffff35 25px 26px
  );
}
.room-floor {
  position: absolute;
  bottom: 0;
  height: 27%;
  width: 100%;
  background: #ccadb0;
  border-top: 5px solid #fff5;
  transform-origin: bottom;
}
.room-floor:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 70px,
    #ac888a33 70px 71px
  );
}
.room-window {
  position: absolute;
  right: 12%;
  top: 14%;
  width: 26%;
  height: 50%;
  background: linear-gradient(#c1d7e8, #eef0f3);
  border: 8px solid #fff9;
  border-radius: 45% 45% 2px 2px;
  box-shadow: 0 4px 0 #ad81902b;
}
.room-window:after,
.room-window:before {
  content: "";
  position: absolute;
  background: #fff9;
}
.room-window:after {
  height: 5px;
  width: 100%;
  top: 48%;
}
.room-window:before {
  width: 5px;
  height: 100%;
  left: 48%;
}
.room-window i {
  position: absolute;
  right: 17%;
  top: 16%;
  width: 18%;
  aspect-ratio: 1;
  background: #fff0ae;
  border-radius: 50%;
}
.room-picture {
  position: absolute;
  left: 15%;
  top: 17%;
  border: 6px solid #fff9;
  background: #f0c0d0;
  width: 18%;
  height: 29%;
  display: grid;
  place-items: center;
  color: #b45e80;
  font-family: var(--head);
  font-size: clamp(20px, 3vw, 50px);
  transform: rotate(-5deg);
  box-shadow: 0 4px 0 #ad81902b;
}
.room-shelf {
  position: absolute;
  left: 12%;
  bottom: 13%;
  font-size: clamp(26px, 4vw, 62px);
  border-bottom: 8px solid #b78795;
  width: 26%;
  line-height: 1.3;
  padding-left: 10px;
}
.room-rug {
  position: absolute;
  bottom: 7%;
  left: 19%;
  width: 66%;
  height: 19%;
  background: #f3d6e3;
  border: 5px double #dca8bd;
  border-radius: 50%;
  transform: rotate(-3deg);
}
.kitty-dressed {
  position: absolute;
  left: 34%;
  bottom: 9%;
  width: 32%;
  filter: drop-shadow(0 7px 2px #79536620);
}
.kitty-dressed > svg {
  width: 100%;
  display: block;
}
.room-pet {
  position: absolute;
  right: 14%;
  bottom: 12%;
  font-size: clamp(30px, 5vw, 67px);
}
.room-plant {
  position: absolute;
  left: 7%;
  bottom: 17%;
  font-size: clamp(25px, 4vw, 60px);
}
.mini-room .room-shelf {
  font-size: 28px;
  border-bottom-width: 4px;
}
.mini-room .room-plant {
  font-size: 26px;
}
.mini-room .room-pet {
  font-size: 30px;
}
.mini-room .room-window {
  border-width: 5px;
}
.mini-room .room-picture {
  font-size: 23px;
  border-width: 4px;
}
.kitty-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.room-caption {
  text-align: center;
  padding: 25px 10px 8px;
}
.room-caption p {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 20px;
}
.wardrobe-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 20px;
  overflow: auto;
}
.wardrobe-tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.wardrobe-tabs .selected {
  background: var(--rosa);
  color: var(--pinkdunkel);
  font-weight: 800;
}
.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.reward {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--card);
  color: var(--text);
  text-align: center;
}
.reward-art {
  display: grid;
  place-items: center;
  height: 75px;
  border-radius: 10px;
  font-size: 34px;
  background: var(--reward-color);
  margin-bottom: 12px;
}
.reward b {
  display: block;
  font-size: 12px;
}
.reward small {
  font-size: 10px;
  color: var(--muted);
}
.reward.equipped {
  border-color: var(--pink);
  background: var(--rosa);
}
.reward.locked {
  opacity: 0.6;
  cursor: not-allowed;
}
.reward.locked .reward-art {
  filter: grayscale(0.6);
}
.planner-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.planner-grid .calendar-day {
  min-height: 39px;
}
.deadline {
  border-left: 3px solid #d6a370;
  padding: 7px 12px;
  margin: 15px 0;
}
.deadline.on-track {
  border-color: #7fbaa6;
}
.deadline > b,
.deadline > span {
  display: block;
}
.deadline > span,
.deadline p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}
.planner-grid .card > a {
  font-size: 12px;
}
.agenda-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-event > div {
  flex: 1;
}
.agenda-event b {
  font-size: 13px;
}
.agenda-event small {
  font-size: 11px;
  display: block;
  color: var(--muted);
}
.planned-task {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  padding: 10px 0;
}
.planned-task small {
  display: block;
  color: var(--muted);
}
.planned-task > .icon {
  color: var(--pink);
}
.soft-note {
  font-size: 12px;
  color: var(--muted);
  background: var(--soft);
  padding: 12px;
  border-radius: 10px;
}
.event-form input,
.event-form select,
.module-picker select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  min-height: 42px;
}
.event-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-subtle);
  margin: 14px 0 5px;
}
.event-form label input,
.event-form label select {
  display: block;
  margin-top: 6px;
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.event-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.event-form .checkbox-label input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--pink);
  margin: 0;
}
.module-picker {
  font-size: 11px;
  color: var(--muted);
}
.module-picker select {
  font-size: 12px;
  margin-top: 4px;
}
.kitty .bubble {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}
.kitty .bubble:before {
  border-right-color: var(--line);
}
.kitty .bubble:after {
  border-right-color: var(--card);
}
.chip {
  background: var(--card);
  color: var(--pinkdunkel);
  border: 1px solid var(--line);
}
input.suche,
.form input,
.form select {
  color: var(--text);
  background: var(--bg);
  border-color: var(--line);
}
.gl details {
  border: 1px solid var(--line);
  background: var(--card);
}
.gl summary {
  color: var(--text);
}
.unten {
  background: var(--card) !important;
  border-color: var(--line) !important;
}
.stationen .st,
.szene,
.inhalt .html {
  color: var(--text);
}
.login input {
  background: var(--card);
  color: var(--text);
}
.tag.pruef {
  color: var(--ink-subtle);
}
.tag.lock {
  background: var(--soft);
  color: var(--muted);
}
.card.gelb h2 {
  color: var(--text) !important;
}
.hinweis {
  background: var(--card);
  border-color: var(--line);
}
.opt {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}
.opt:hover {
  background: var(--surface-hover);
}
.modal {
  background: #19111c80;
}
.toast {
  background: var(--text);
  color: var(--bg);
}
.welt header {
  border-color: var(--line);
}
.rangbar,
.fortschritt,
.mini {
  background: var(--soft);
}
.video-box {
  max-width: none !important;
}
.video-box video,
video {
  width: 100%;
  max-height: min(65vh, 540px);
  object-fit: contain;
  background: #28212c;
  border-radius: 16px;
}
.readbar {
  background: var(--card);
}

@media (min-width: 1000px) {
  .shell {
    display: block;
    padding-bottom: 0;
    padding-left: var(--sidebar);
  }
  .top {
    margin-left: calc(-1 * var(--sidebar));
  }
  .nav {
    position: fixed;
    left: 0;
    top: var(--top-h);
    bottom: 0;
    right: auto;
    width: var(--sidebar);
    height: calc(100dvh - var(--top-h));
    border-right: 1px solid var(--line);
    border-top: 0;
    padding: 29px 17px 20px;
    gap: 5px;
    align-items: stretch;
    overflow-y: auto;
  }
  .nav a {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    font-size: 13px;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 12px;
  }
  .nav-caption {
    display: block;
    padding: 0 14px 16px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--muted);
  }
  .sidebar-note {
    display: block;
    margin-top: auto;
    padding: 45px 14px 15px;
    text-align: center;
  }
  .sidebar-note img {
    display: block;
    margin: 0 auto 12px;
  }
  .sidebar-note b {
    font-family: var(--head);
    font-weight: 500;
    font-size: 16px;
  }
  .sidebar-note p {
    font-size: 11px;
    color: var(--muted);
    margin: 4px 0 10px;
  }
  .sidebar-note a {
    padding: 0;
    justify-content: center;
    font-size: 11px;
    color: var(--pink);
    display: inline-flex;
  }
  .sidebar-note .icon {
    width: 14px;
  }
  .nav-footer {
    display: block;
    text-align: center;
    font-size: 9px;
    color: var(--muted);
    padding-top: 24px;
  }
  main {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 32px 35px 55px;
  }
  main.breit {
    max-width: 1400px;
  }
  .unten {
    left: var(--sidebar);
  }
  .page-head {
    min-height: 68px;
  }
}

@media (min-width: 1000px) and (max-width: 1250px) {
  :root {
    --sidebar: 205px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 18px;
  }
  main {
    padding: 25px;
  }
  .card {
    padding: 19px;
  }
  .stat-tile {
    padding: 15px 12px;
    gap: 9px;
  }
  .stat-detail {
    display: none;
  }
  .hero-kitty {
    width: 155px;
  }
  .planner-grid {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .kitty-page {
    grid-template-columns: 1fr 1fr;
  }
  .nav a {
    padding: 12px;
  }
  .nav-caption {
    font-size: 8px;
  }
}

@media (max-width: 999px) {
  .shell {
    display: block;
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + 15px);
  }
  .top .in {
    min-height: 72px;
    padding: 12px 20px;
    gap: 12px;
  }
  .top .logo {
    font-size: 1.15rem;
  }
  .top .rank-chip .rname {
    display: none;
  }
  .rank-chip .bar {
    width: 75px;
  }
  .nav {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    height: calc(var(--nav-h) + var(--safe-b));
    padding: 9px 5px calc(9px + var(--safe-b));
    border-top: 1px solid var(--line);
    border-right: 0;
    gap: 2px;
    justify-content: space-around;
  }
  .nav a {
    flex: 1;
    flex-direction: column;
    font-size: 9px;
    gap: 5px;
    padding: 6px 2px;
  }
  .nav-new {
    display: none;
  }
  .nav a[href="/fortschritt"] {
    display: none;
  }
  main,
  main.breit {
    max-width: 100%;
    padding: 24px 22px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 18px;
  }
  .welcome-banner {
    padding: 25px;
  }
  .hero-kitty {
    width: 140px;
  }
  .hero-kitty img {
    width: 115px;
  }
  .stat-tile {
    padding: 13px;
    gap: 9px;
  }
  .stat-detail {
    display: none;
  }
  .planner-grid {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 18px;
  }
  .kitty-page {
    grid-template-columns: 1fr 1fr;
  }
  .unten {
    left: 0;
    bottom: calc(var(--nav-h) + var(--safe-b));
  }
  .card {
    padding: 20px;
  }
  .top .avatar-link {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }
  .top .in {
    min-height: 68px;
    padding: 10px 15px;
    gap: 10px;
  }
  .top .logo {
    gap: 8px;
  }
  .logo small {
    display: none;
  }
  .logo-mark {
    width: 35px;
    height: 35px;
    border-radius: 11px;
  }
  .top .logo span:not(.logo-mark) {
    display: block;
    font-size: 16px;
    max-width: 95px;
    line-height: 1.1;
  }
  .top .rank-chip {
    display: none;
  }
  .top .streak {
    padding: 7px 9px;
    font-size: 12px;
    gap: 6px;
  }
  .streak-label {
    display: none;
  }
  .icon-button {
    width: 35px;
    height: 35px;
  }
  .logo-mark .icon {
    width: 25px;
    height: 25px;
  }
  main,
  main.breit {
    padding: 24px 16px 32px;
  }
  .page-head {
    margin-bottom: 20px;
    gap: 10px;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 1.7rem;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head > .eyebrow {
    display: none;
  }
  .page-head > .btn {
    font-size: 11px;
    max-width: 105px;
    line-height: 1.3;
    padding: 9px;
    min-height: 48px;
  }
  .welcome-banner {
    padding: 22px;
    min-height: 0;
    align-items: flex-end;
    gap: 5px;
  }
  .welcome-banner h2 {
    font-size: 1.7rem;
    max-width: 250px;
  }
  .welcome-banner p {
    font-size: 12px;
    max-width: 260px;
  }
  .welcome-banner > .hero-kitty {
    width: 76px;
    position: absolute;
    right: 15px;
    bottom: 16px;
  }
  .hero-kitty img {
    width: 75px;
  }
  .hero-caption,
  .sparkle {
    display: none;
  }
  .welcome-banner .btn {
    padding: 10px 13px;
    font-size: 12px;
    max-width: calc(100% - 65px);
  }
  .welcome-banner .eyebrow {
    font-size: 8px;
  }
  .dashboard-stats {
    gap: 8px;
    margin-bottom: 18px;
  }
  .stat-tile {
    padding: 12px 8px;
    display: block;
    text-align: center;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    margin: 0 auto 8px;
  }
  .stat-icon .icon {
    width: 17px;
    height: 17px;
  }
  .stat-tile b {
    font-size: 17px;
  }
  .stat-tile small {
    font-size: 9px;
    display: block;
    line-height: 1.4;
    margin-top: 3px;
  }
  .dashboard-grid,
  .planner-grid,
  .kitty-page {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card {
    padding: 20px 18px;
    margin-bottom: 18px;
  }
  .calendar-grid {
    gap: 5px;
  }
  .calendar-day {
    min-height: 39px;
  }
  .module-progress {
    gap: 11px;
  }
  .module-number {
    padding: 10px;
  }
  .section-heading h2 {
    font-size: 1.15rem;
  }
  .week-bows {
    gap: 6px;
  }
  .week-bows b {
    height: 39px;
  }
  .section-heading > a {
    font-size: 10px;
  }
  .kitty-preview .kitty-room {
    max-height: 250px;
    aspect-ratio: 1.35;
  }
  .form-two {
    gap: 10px;
  }
  .reward-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .room-pet {
    font-size: 40px;
  }
  .room-plant {
    font-size: 36px;
  }
  .room-shelf {
    font-size: 40px;
  }
  .room-picture {
    font-size: 35px;
  }
  .planner-grid .card {
    margin-bottom: 20px;
  }
  .nav a {
    font-size: 8px;
  }
  .nav .icon {
    width: 19px;
    height: 19px;
  }
  .nav a[href="/kitty"] > span:last-child {
    font-size: 0;
  }
  .nav a[href="/kitty"] > span:last-child:after {
    content: "Kitty";
    font-size: 8px;
  }
  .fineprint {
    font-size: 10px;
  }
  .module-progress strong {
    font-size: 17px;
  }
  .rank-chip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.map-intro {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: linear-gradient(110deg, var(--lila2), var(--rosa));
  border-radius: 22px;
  margin-bottom: 20px;
}
.map-intro > div:nth-child(2) {
  flex: 1;
}
.map-intro h2 {
  font-size: 1.4rem;
  max-width: 550px;
}
.map-intro p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.map-intro > img {
  width: 90px;
}
.map-intro-art {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--pink);
}
.map-intro-art .icon {
  width: 40px;
  height: 40px;
}
.map-intro-art span {
  position: absolute;
  right: -9px;
  top: -12px;
  color: #b69567;
  font-size: 32px;
}
.continue-route {
  display: flex;
  gap: 15px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--rosa2);
  border-radius: 15px;
  padding: 18px 22px;
  margin-bottom: 28px;
  color: var(--text);
  text-decoration: none;
}
.continue-route > span:nth-child(2) {
  flex: 1;
}
.continue-route small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 4px;
}
.continue-route b {
  font-size: 13px;
}
.world-map {
  position: relative;
  margin-left: 25px;
  border-left: 2px dashed var(--rosa2);
  padding-left: 27px;
}
.world-island {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 20px;
  overflow: visible;
}
.world-island:before {
  content: "";
  position: absolute;
  left: -35px;
  top: 38px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--pink2);
}
.world-island > summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  cursor: pointer;
  list-style: none;
}
.world-island > summary::-webkit-details-marker {
  display: none;
}
.island-number {
  height: 54px;
  width: 54px;
  display: grid;
  place-items: center;
  background: var(--rosa);
  color: var(--pinkdunkel);
  border-radius: 16px;
  font-family: var(--head);
  font-size: 22px;
  flex-shrink: 0;
}
.world-island.gelb .island-number {
  background: var(--gelb2);
  color: #a58a4f;
}
.world-island.lila .island-number {
  background: var(--lila2);
  color: #a18bb9;
}
.world-island.mint .island-number {
  background: var(--mint2);
  color: var(--mintdunkel);
}
.world-island.blau .island-number {
  background: var(--blau2);
  color: #7a9cbe;
}
.island-heading {
  flex: 1;
}
.island-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 4px;
}
.island-heading > b {
  font-family: var(--head);
  font-weight: 500;
  font-size: 19px;
  display: block;
  line-height: 1.3;
}
.island-heading small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.island-status {
  font-size: 13px;
  color: var(--muted);
}
.island-chevron {
  font-size: 25px;
  color: var(--muted);
  transition: transform 0.2s;
}
.world-island[open] .island-chevron {
  transform: rotate(180deg);
}
.island-body {
  padding: 0 24px 22px;
}
.island-trail {
  border-top: 1px solid var(--line);
}
.trail-level {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 18px 6px;
  text-decoration: none;
  color: var(--text);
}
.trail-node {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  border: 2px solid var(--line);
  font-size: 14px;
  flex-shrink: 0;
  z-index: 1;
}
.trail-level:not(:last-child):after {
  content: "";
  position: absolute;
  left: 26px;
  top: 50px;
  height: calc(100% - 30px);
  width: 2px;
  background: var(--line);
}
.trail-level.current .trail-node {
  background: var(--rosa);
  border-color: var(--pink2);
  color: var(--pink);
  box-shadow: 0 0 0 5px var(--bg);
}
.trail-level.done .trail-node {
  background: var(--mint2);
  border-color: var(--mint);
  color: var(--mintdunkel);
}
.trail-node i {
  position: absolute;
  right: -5px;
  top: -7px;
  font-size: 15px;
  color: #b29454;
  font-style: normal;
}
.trail-text {
  flex: 1;
  min-width: 0;
}
.trail-text small {
  font-size: 9px;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: var(--muted);
  display: block;
}
.trail-text b {
  display: block;
  font-size: 13px;
  margin: 3px 0;
}
.trail-text em {
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
}
.trail-level.current .trail-text em {
  color: var(--pinkdunkel);
}
.trail-level.locked .trail-text {
  opacity: 0.65;
}
.trail-level > .icon {
  width: 17px;
  color: var(--pink);
}
.world-finish {
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--gelb2);
  font-size: 12px;
  color: var(--ink-subtle);
  margin-top: 10px;
}
.map-footer {
  text-align: center;
}
.map-footer > .kitty {
  justify-content: center;
}
.map-footer > a {
  font-size: 12px;
}
.glossary-toolbar {
  padding: 0 !important;
  overflow: hidden;
}
.glossary-search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 23px;
}
.glossary-search > .icon {
  color: var(--pink);
}
.glossary-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 8px 0;
}
.glossary-search > span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.glossary-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.glossary-filters button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--card);
  font-size: 11px;
}
.glossary-filters .selected {
  background: var(--rosa);
  border-color: var(--rosa2);
  color: var(--pinkdunkel);
}
.gl .glossary-entry {
  border-radius: 15px;
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}
.gl .glossary-entry summary {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 19px 22px;
  list-style: none;
}
.gl .glossary-entry summary::-webkit-details-marker {
  display: none;
}
.term-initial {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--lila2);
  color: #a28ab7;
  border-radius: 12px;
  font-family: var(--head);
  font-size: 23px;
  flex-shrink: 0;
}
.term-title {
  flex: 1;
}
.term-title b {
  font-family: var(--head);
  font-weight: 500;
  font-size: 18px;
  display: block;
}
.term-title small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-family: var(--body);
  margin-top: 2px;
}
.glossary-plus {
  font-size: 25px;
  color: var(--pink);
  font-weight: 400;
  transition: transform 0.2s;
}
.glossary-entry[open] .glossary-plus {
  transform: rotate(45deg);
}
.glossary-body {
  overflow: hidden;
  padding: 0 25px 0 78px;
}
.glossary-body > p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 22px;
}
.glossary-depth {
  background: var(--soft);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.glossary-depth p {
  font-size: 13px;
  line-height: 1.9;
}
.glossary-depth small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.glossary-depth a {
  display: block;
  font-size: 12px;
  margin-top: 12px;
}
.glossary-depth a .icon {
  width: 15px;
}
.recall-prompt {
  display: flex;
  gap: 12px;
  margin: 0 0 25px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.recall-prompt b {
  display: block;
  color: var(--pinkdunkel);
  margin-bottom: 5px;
}
.progress-kitty-link {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text);
  text-decoration: none;
}
.progress-kitty-link > span:nth-child(2) {
  flex: 1;
}
.progress-kitty-link small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.settings-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.settings-shortcuts a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}
.settings-shortcuts span {
  display: block;
  font-size: 12px;
  color: var(--pink);
  font-weight: 400;
  margin-top: 5px;
}
.world-island {
  scroll-margin-top: 110px;
}

@media (max-width: 720px) {
  .map-intro {
    padding: 21px;
    gap: 15px;
  }
  .map-intro-art {
    display: none;
  }
  .map-intro > img {
    width: 57px;
  }
  .map-intro h2 {
    font-size: 1.2rem;
  }
  .continue-route {
    padding: 15px;
    gap: 12px;
  }
  .continue-route .btn {
    font-size: 0;
    padding: 10px;
  }
  .continue-route .btn .icon {
    font-size: 14px;
  }
  .world-map {
    margin-left: 7px;
    padding-left: 18px;
  }
  .world-island:before {
    left: -26px;
  }
  .world-island > summary {
    padding: 18px 13px;
    gap: 10px;
  }
  .island-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 12px;
  }
  .island-heading > b {
    font-size: 16px;
  }
  .island-heading small {
    font-size: 10px;
  }
  .island-body {
    padding: 0 12px 18px;
  }
  .trail-level {
    gap: 14px;
    padding-left: 0;
    padding-right: 0;
  }
  .trail-level:not(:last-child):after {
    left: 20px;
  }
  .trail-text b {
    font-size: 12px;
  }
  .trail-text em {
    font-size: 10px;
  }
  .glossary-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .gl .glossary-entry summary {
    padding: 16px;
    gap: 12px;
  }
  .term-title b {
    font-size: 17px;
  }
  .glossary-search {
    padding: 14px;
    gap: 10px;
  }
  .glossary-search input {
    font-size: 12px;
  }
  .glossary-search > span {
    font-size: 9px;
  }
  .glossary-filters {
    padding: 12px;
    gap: 6px;
  }
  .glossary-filters button {
    font-size: 10px;
  }
  .settings-shortcuts {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .progress-kitty-link b {
    font-size: 13px;
  }
}

.top a.chip {
  text-decoration: none;
}
.stationen a,
.stationen div,
.stepper span,
.szene,
.def,
.stk,
.falsch-liste li,
.opt .m,
.flagge,
.schild,
.tipp-bubble {
  background: var(--card);
  color: var(--text);
}
.inhalt tbody tr:nth-child(even) td {
  background: var(--rosa);
}
.uebung {
  background: var(--lila2);
}
.tage button,
.wahl button {
  background: var(--card);
  color: var(--muted);
  border-color: var(--line);
}
.tage button.an,
.wahl button.an {
  background: var(--rosa);
  color: var(--pinkdunkel);
}
[data-theme="dark"] .btn:not(.sec):not(.ghost):not(.gelb):not(.mint) {
  color: #321d2c;
}
[data-theme="dark"] .card .meta {
  color: var(--muted);
}
.reward.equipped .reward-art {
  border: 1px solid var(--rosa2);
}

.planner-grid > div,
.form-two > * {
  min-width: 0;
}
.form-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.event-form input,
.event-form select {
  min-width: 0;
  max-width: 100%;
}
.unten {
  margin: 20px 0 0;
  left: auto;
  border-radius: 14px 14px 0 0;
}
.top .logo .logo-mark {
  display: grid;
}
.planner-grid .calendar-grid {
  min-width: 0;
}
