:root {
  --ink: #20203a;
  --muted: #67677e;
  --paper: #cad183;
  --card: #fffdf8;
  --line: rgba(32, 32, 58, .16);
  --sage: #3155ff;
  --terracotta: #ff3d77;
  --yellow: #ffd23f;
  --lime: #8bd450;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  min-height: 100vh;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.grain {
  position: fixed; inset: 0; pointer-events: none; opacity: .2; z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
.topbar {
  height: 78px; padding: 0 clamp(22px, 5vw, 76px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { color: var(--ink); text-decoration: none; display: flex; gap: 11px; align-items: center; font-weight: 600; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--yellow); color: var(--ink); font-family: Fredoka, sans-serif; font-weight: 700; font-size: 20px; transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--ink); }
.top-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-link { font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.nav-link:not(.active) { border-color: transparent; color: var(--muted); }
.nav-link:hover { color: var(--ink); border-color: var(--ink); }
.save-state { font-size: 12px; color: var(--muted); }
.save-state i { display: inline-block; width: 6px; height: 6px; background: #7a9d80; border-radius: 50%; margin-right: 7px; }
.icon-button, .close-button { border: 0; background: transparent; cursor: pointer; font-size: 22px; }
main { overflow: hidden; }
.hero { text-align: center; padding: 82px 20px 62px; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(38,48,45,.08); border-radius: 50%; width: 420px; height: 420px; top: -230px; }
.hero::before { left: -220px; } .hero::after { right: -220px; }
.eyebrow, .model-number { font-size: 10px; letter-spacing: .2em; font-weight: 600; color: var(--muted); }
h1, h2, blockquote { font-family: Fredoka, sans-serif; }
h1 { font-size: clamp(48px, 7vw, 82px); line-height: .95; letter-spacing: -.045em; margin: 22px 0; font-weight: 500; }
h1 em { color: #ef4782; font-weight: 700; font-style: normal; position: relative; }
.intro { color: var(--muted); line-height: 1.7; font-size: 14px; }
.date-pill { display: inline-block; margin-top: 18px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 100px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.pillars-hero { padding-bottom: 72px; }
.pillars-overview { padding-bottom: 100px; }
.tracker { max-width: 1180px; margin: auto; padding: 15px 24px 110px; }
.tracker-actionbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 22px; }
.secondary-button { border: 2px solid var(--ink); border-radius: 14px; background: #8b5cf6; color: white; padding: 15px 21px; cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 800; box-shadow: 4px 4px 0 var(--ink); transition: transform .16s, box-shadow .16s; }
.secondary-button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(42px, 6vw, 68px); font-weight: 500; margin: 8px 0 6px; letter-spacing: -.04em; }
.section-heading p:last-child { color: var(--muted); font-size: 13px; }
.primary-button { border: 0; background: var(--ink); color: var(--paper); padding: 15px 21px; cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 600; }
.primary-button span { margin-right: 7px; }
.tracker-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: rgba(251,250,245,.55); }
.tracker-stats article { padding: 25px 28px; border-right: 1px solid var(--line); }
.tracker-stats article:last-child { border: 0; }
.tracker-stats span, .tracker-stats small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.tracker-stats strong { display: block; font-family: Newsreader, serif; font-size: 31px; font-weight: 500; margin: 6px 0 3px; }
.calendar-panel, .goals-panel, .year-panel, .events-panel { margin-top: 22px; border: 1px solid var(--line); background: rgba(251,250,245,.68); padding: clamp(20px, 3vw, 32px); }
.week-panel { margin-top: 0; }
.month-wheel-panel { margin-top: 22px; }
.month-toolbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; max-width: 620px; margin: 0 auto 18px; }
.month-toolbar h3 { font-family: Fredoka, sans-serif; font-size: 31px; font-weight: 700; margin: 4px 0 0; }
.month-toolbar button { width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 50%; background: white; cursor: pointer; font-size: 18px; font-weight: 800; box-shadow: 2px 2px 0 var(--ink); }
.month-layout { display: grid; grid-template-columns: minmax(390px, 1.35fr) minmax(250px, .65fr); align-items: center; gap: clamp(24px, 5vw, 70px); }
.month-wheel-wrap { width: min(100%, 610px); aspect-ratio: 1; position: relative; margin: auto; }
.month-wheel { width: 100%; height: 100%; overflow: visible; }
.month-segment { cursor: pointer; }
.month-segment path { stroke: var(--ink); stroke-width: 1.1; transition: transform .18s, fill .18s; transform-origin: center; }
.month-segment text { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 12px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.month-segment .task-slice.is-open { fill: #f1dfc4; }
.month-segment .task-slice.is-done { fill: #3155ff; }
.month-segment .no-task-slice { fill: #eadfcf; opacity: .55; }
.month-segment .segment-outline { fill: transparent; stroke-width: 1.5; pointer-events: none; }
.month-segment .circle-status-star { font-size: 34px; font-weight: 800; stroke: white; stroke-width: 5px; paint-order: stroke; filter: drop-shadow(1px 3px 1px rgba(41,40,46,.3)); }
.month-segment .circle-status-star.yellow { fill: #f2c94c; }
.month-segment .circle-status-star.blue { fill: #4d7cfe; }
.month-segment:hover .task-slice { filter: brightness(1.04); }
.month-segment.is-complete text { fill: white; }
.month-segment.is-today .segment-outline { stroke: #ef4782; stroke-width: 5; }
.month-segment.is-selected .segment-outline { filter: drop-shadow(0 0 5px rgba(32,32,58,.55)); stroke-width: 3; }
.month-event-dot { fill: #8b5cf6; stroke: var(--ink); stroke-width: 1.5; pointer-events: none; }
.month-wheel-center { position: absolute; inset: 33%; border-radius: 50%; background: #cad183; border: 3px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 5px 5px 0 var(--ink); pointer-events: none; }
.month-wheel-center strong { font-family: Fredoka, sans-serif; font-size: clamp(35px, 5vw, 60px); line-height: 1; }
.month-wheel-center span { font-size: 9px; letter-spacing: .16em; font-weight: 800; margin-top: 5px; }
.selected-day-panel { border: 2px solid var(--ink); border-radius: 20px; background: #fffdf8; padding: 25px; box-shadow: 5px 5px 0 var(--ink); min-height: 320px; }
.selected-day-panel h3 { font-family: Fredoka, sans-serif; font-size: 27px; line-height: 1.05; margin: 8px 0 22px; text-transform: capitalize; }
.selected-day-tasks { display: grid; gap: 9px; margin-bottom: 20px; }
.day-detail-task { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--ink); border-radius: 12px; padding: 12px; cursor: pointer; background: #aad7cd; }
.day-detail-task input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: #ff6c1f; }
.day-detail-task span { display: grid; gap: 2px; }
.day-detail-task b { font-size: 12px; }
.day-detail-task small { color: var(--muted); font-size: 9px; }
.day-detail-task.done { opacity: .58; text-decoration: line-through; }
.selected-events { display: grid; gap: 5px; margin-bottom: 5px; }
.selected-events span { border: 2px solid var(--ink); border-radius: 9px; padding: 8px 10px; background: #cab8ff; font-size: 10px; font-weight: 800; }
.empty-day { padding: 25px 5px; display: grid; gap: 4px; color: var(--muted); }
.empty-day strong { color: var(--ink); font-family: Fredoka, sans-serif; font-size: 20px; }
.empty-day span { font-size: 11px; line-height: 1.5; }
.month-wheel-panel + .tracker-stats { margin-top: 22px; }
.calendar-toolbar, .panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.week-navigation { display: flex; gap: 5px; }
.week-navigation button { border: 1px solid var(--line); border-radius: 8px; background: white; min-width: 37px; height: 35px; padding: 0 10px; cursor: pointer; font-size: 10px; font-weight: 700; }
.week-navigation button:hover { background: #fdf5f8; color: #ef4782; }
.calendar-toolbar h3, .panel-heading h3 { font-family: Newsreader, serif; font-size: 27px; font-weight: 500; margin: 5px 0 0; }
.text-button { border: 1px solid var(--line); background: transparent; padding: 9px 13px; font-size: 10px; cursor: pointer; }
.week-calendar { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); overflow-x: auto; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.week-day { min-height: 190px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 9px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.week-day.is-today { background: rgba(169,95,71,.08); box-shadow: inset 0 3px var(--terracotta); }
.week-day.is-past:not(.is-today) .day-head { opacity: .58; }
.day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; position: relative; z-index: 1; }
.day-status-star {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  font-size: 105px;
  line-height: 1;
  -webkit-text-stroke: 6px white;
  paint-order: stroke fill;
  filter: drop-shadow(2px 5px 2px rgba(41,40,46,.22));
  transform: translate(-50%, -50%) rotate(8deg);
  pointer-events: none;
}
.day-status-star.yellow, .overview-status-star.yellow { color: #f2c94c; }
.day-status-star.blue, .overview-status-star.blue { color: #4d7cfe; }
.day-head strong { font-family: Newsreader, serif; color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: 0; }
.day-tasks { display: grid; gap: 6px; position: relative; z-index: 1; }
.week-events { position: relative; z-index: 1; }
.calendar-task { position: relative; display: flex; gap: 7px; align-items: flex-start; border: 1px solid var(--line); background: #fffdf8; padding: 8px 7px; cursor: pointer; font-size: 9px; line-height: 1.3; }
.calendar-task input { margin: 1px 0 0; accent-color: var(--task-color); }
.calendar-task input:disabled { opacity: .35; }
.calendar-task.done { opacity: .53; text-decoration: line-through; }
.calendar-task i { width: 3px; align-self: stretch; border-radius: 3px; background: var(--task-color); }
.calendar-task > span { display: grid; gap: 2px; }
.calendar-task small { color: var(--muted); font-size: 7px; text-decoration: none; }
.week-events { display: grid; gap: 3px; margin: -3px 0 8px; }
.week-event { background: #8b5cf6; color: white; border-radius: 5px; padding: 4px 5px; font-size: 7px; font-weight: 800; line-height: 1.2; }
.no-tasks { font-size: 9px; color: var(--muted); font-style: italic; }
.goal-list { display: grid; gap: 9px; }
.goal-card { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 13px; align-items: center; border: 1px solid var(--line); padding: 14px; background: #fffdf8; }
.goal-color { width: 10px; height: 10px; border-radius: 50%; }
.goal-card b { display: block; font-size: 12px; font-weight: 600; }
.goal-card small { color: var(--muted); font-size: 10px; }
.goal-progress { min-width: 100px; text-align: right; }
.goal-progress strong { display: block; font-family: Newsreader, serif; font-size: 18px; font-weight: 500; }
.goal-actions button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 12px; border: 1px dashed var(--line); }
.empty-state button { display: block; margin: 14px auto 0; }
.year-navigation { display: flex; gap: 5px; }
.year-navigation button { border: 1px solid var(--line); background: transparent; min-width: 35px; height: 34px; cursor: pointer; font-size: 10px; }
.year-calendar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.mini-month h4 { font-family: Newsreader, serif; font-size: 17px; font-weight: 500; margin: 0 0 9px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-weekday { color: var(--muted); font-size: 7px; text-align: center; padding-bottom: 3px; }
.mini-day { aspect-ratio: 1; min-width: 0; border: 1px solid transparent; display: grid; place-items: center; position: relative; font-size: 7px; color: var(--muted); border-radius: 2px; }
.mini-day.has-tasks { background: rgba(96,124,104,.14); color: var(--ink); }
.mini-day.all-complete { background: var(--sage); color: white; }
.mini-day.is-today { border-color: var(--terracotta); font-weight: 600; }
.mini-day.outside { visibility: hidden; }
.mini-day b { position: absolute; width: 3px; height: 3px; border-radius: 50%; right: 1px; bottom: 1px; background: var(--terracotta); }
.calendar-key { display: flex; justify-content: flex-end; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 9px; }
.calendar-key span { display: flex; align-items: center; gap: 5px; }
.calendar-key i { width: 9px; height: 9px; display: inline-block; }
.calendar-key .planned { background: rgba(96,124,104,.14); }
.calendar-key .complete { background: var(--sage); }
.calendar-key .today-key { border: 1px solid var(--terracotta); }
.calendar-key .event-key { background: #ef4782; border-radius: 50%; }
.overview-month-calendar { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); min-width: 760px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.overview-weekday { padding: 9px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: #faf9f7; }
.overview-day { min-height: 155px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; padding: 9px; text-align: left; cursor: pointer; overflow: hidden; position: relative; }
.overview-day:hover { background: #fdf9fa; }
.overview-day.outside { cursor: default; background: #f6f4f1; }
.overview-day > strong { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: Fredoka, sans-serif; font-size: 13px; }
.overview-day-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.overview-day-head > strong { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: Fredoka, sans-serif; font-size: 13px; }
.overview-status-star {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  font-size: 92px;
  line-height: 1;
  -webkit-text-stroke: 6px white;
  paint-order: stroke fill;
  filter: drop-shadow(2px 5px 2px rgba(41,40,46,.22));
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
}
.overview-day.is-today .overview-day-head > strong { background: #ef4782; color: white; }
.overview-day.all-complete { background: #fdf5f8; }
.overview-day-content { display: grid; gap: 5px; margin-top: 6px; position: relative; z-index: 1; }
.overview-event { display: block; padding: 5px 6px; border-radius: 6px; background: #f7e2ea; color: #7e344e; font-size: 8px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.overview-task { display: flex; align-items: flex-start; gap: 5px; color: var(--ink); font-size: 8px; font-weight: 700; line-height: 1.25; }
.overview-task i { width: 6px; height: 6px; margin-top: 2px; border: 1px solid #ef4782; border-radius: 50%; flex: none; }
.overview-task.done { color: var(--muted); text-decoration: line-through; }
.overview-task.done i { background: #ef4782; }
.overview-task-count { color: var(--muted); border-top: 1px solid var(--line); padding-top: 5px; margin-top: 2px; font-size: 8px; font-weight: 800; }
.year-panel { overflow-x: auto; }
.overview { max-width: 1080px; padding: 0 24px 100px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.model-card { border: 1px solid var(--line); background: rgba(251,250,245,.68); padding: clamp(24px, 4vw, 42px); position: relative; box-shadow: 0 20px 50px rgba(60,55,40,.04); }
.model-card::before { content: ""; position: absolute; height: 3px; top: -1px; left: -1px; width: calc(100% + 2px); background: var(--accent); }
.perma-card { --accent: var(--sage); } .identity-card { --accent: var(--terracotta); }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.card-heading h2 { font-size: 38px; font-weight: 500; letter-spacing: -.035em; margin: 8px 0 5px; }
.card-heading p:last-child { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.score { text-align: right; }
.score strong { font-family: Newsreader, serif; font-size: 38px; font-weight: 500; }
.score span { color: var(--muted); font-size: 12px; }
.chart-wrap { width: 280px; height: 280px; margin: 30px auto 24px; position: relative; }
.pie { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 7px 8px rgba(38,48,45,.07)); }
.pie path { cursor: pointer; transition: transform .2s, opacity .2s; transform-origin: center; stroke: var(--card); stroke-width: 2.5; }
.pie path:hover { transform: scale(1.035); opacity: .85; }
.pie-center { position: absolute; inset: 31%; border-radius: 50%; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line); }
.pie-center span { font-size: 8px; letter-spacing: .18em; color: var(--muted); }
.pie-center strong { font-family: Newsreader,serif; font-size: 14px; margin-top: 2px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; min-height: 80px; }
.legend-button { border: 0; background: transparent; padding: 0; text-align: left; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 11px; color: var(--muted); }
.legend-button:hover { color: var(--ink); }
.legend-button i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.legend-button b { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-cta { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; margin-top: 22px; padding: 18px 0 0; display: flex; justify-content: space-between; font-size: 12px; cursor: pointer; font-weight: 600; }
.reflection { text-align: center; border-top: 1px solid var(--line); padding: 90px 20px 110px; }
.reflection blockquote { margin: 22px 0 18px; font-size: clamp(30px, 4vw, 47px); line-height: 1.1; letter-spacing: -.03em; }
.reflection > p:last-child { color: var(--muted); font-size: 12px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(26,31,28,.35); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer { position: fixed; z-index: 21; top: 0; right: 0; width: min(620px, 100%); height: 100vh; overflow-y: auto; background: var(--card); transform: translateX(100%); transition: transform .35s cubic-bezier(.22,.8,.26,1); padding: clamp(28px, 6vw, 62px); }
.drawer.open { transform: none; } .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.close-button { position: absolute; right: 25px; top: 20px; font-size: 30px; }
.drawer-kicker { color: var(--accent); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.drawer h2 { font-size: clamp(42px, 7vw, 68px); line-height: 1; margin: 16px 0 10px; font-weight: 500; }
.drawer-description { color: var(--muted); line-height: 1.65; font-size: 13px; max-width: 470px; }
.form-section { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section h3 { font-family: Newsreader, serif; font-size: 23px; margin: 0 0 5px; font-weight: 500; }
.form-hint { color: var(--muted); font-size: 11px; margin: 0 0 18px; }
textarea, .habit-input, .form-control { width: 100%; border: 1px solid var(--line); background: #fffdf8; outline: none; padding: 14px; border-radius: 3px; font-size: 13px; color: var(--ink); }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
textarea:focus, .habit-input:focus { border-color: var(--accent); }
.goal-form { display: grid; gap: 18px; margin-top: 30px; }
.field label, .field-label { display: block; font-size: 10px; letter-spacing: .08em; font-weight: 600; margin-bottom: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.schedule-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.schedule-choice label { border: 1px solid var(--line); padding: 12px; font-size: 11px; cursor: pointer; }
.schedule-choice input { accent-color: var(--accent); margin-right: 6px; }
.weekday-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.weekday-picker input { position: absolute; opacity: 0; }
.weekday-picker label { aspect-ratio: 1; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; font-size: 10px; }
.weekday-picker input:checked + label { background: var(--accent); border-color: var(--accent); color: white; }
.form-submit { border: 0; background: var(--accent); color: white; padding: 15px; cursor: pointer; font-weight: 600; font-size: 12px; margin-top: 4px; }
.rating-row { display: flex; justify-content: space-between; gap: 5px; }
.rating-button { flex: 1; aspect-ratio: 1; max-width: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 11px; }
.rating-button.active { color: white; background: var(--accent); border-color: var(--accent); }
.rating-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; margin-top: 8px; }
.habit-add { display: flex; gap: 8px; }
.habit-add button { width: 45px; border: 0; color: white; background: var(--accent); cursor: pointer; font-size: 20px; }
.habit-list { display: grid; gap: 8px; margin-top: 14px; }
.habit { display: flex; align-items: center; padding: 11px 12px; border: 1px solid var(--line); font-size: 12px; gap: 10px; }
.habit input { accent-color: #ff6c1f; }
.habit span { flex: 1; }
.habit button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.empty-habits { color: var(--muted); font-size: 11px; font-style: italic; }
.model-list { margin-top: 35px; display: grid; gap: 10px; }
.model-list button { border: 1px solid var(--line); background: transparent; padding: 17px; display: flex; align-items: center; text-align: left; cursor: pointer; }
.model-list button:hover { background: white; }
.model-list i { width: 11px; height: 11px; border-radius: 50%; margin-right: 12px; }
.model-list b { flex: 1; font-weight: 500; }
.model-list small { color: var(--muted); }
.toast { position: fixed; z-index: 30; bottom: 24px; left: 50%; transform: translate(-50%, 25px); background: var(--ink); color: white; padding: 10px 16px; font-size: 11px; border-radius: 100px; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Verspieltes Farbsystem */
body {
  background: #cad183;
}
.topbar {
  height: 84px;
  background: rgba(255, 253, 248, .82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 12;
}
.brand { font-weight: 800; font-size: 17px; }
.nav-link {
  border: 0;
  border-radius: 100px;
  padding: 9px 14px;
  font-weight: 800;
}
.nav-link.active { color: white; background: var(--ink); }
.nav-link:hover { border-color: transparent; background: var(--yellow); color: var(--ink); }
.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(49, 85, 255, .09);
  font-weight: 800;
  transition: transform .2s, background .2s;
}
.icon-button:hover { transform: rotate(-15deg); background: var(--cyan); }
.hero { padding-top: 94px; }
.hero::before {
  display: none;
}
.hero::after {
  display: none;
}
.eyebrow, .model-number {
  color: var(--purple);
  font-weight: 800;
  letter-spacing: .16em;
}
h1 {
  font-size: clamp(66px, 9vw, 116px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.055em;
  color: #ef4782;
}
.date-pill {
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
}
.section-heading h2 { font-weight: 700; }
.primary-button, .form-submit {
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  border: 2px solid var(--ink);
  font-weight: 800;
  transition: transform .16s, box-shadow .16s;
}
.primary-button:hover, .form-submit:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.primary-button { background: var(--terracotta); color: white; }
.tracker-stats {
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(32,32,58,.12);
}
.tracker-stats article:nth-child(1),
.tracker-stats article:nth-child(2),
.tracker-stats article:nth-child(3) { background: #aad7cd; }
.tracker-stats strong {
  font-family: Fredoka, sans-serif;
  font-weight: 700;
}
.calendar-panel, .goals-panel, .year-panel, .events-panel {
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 7px 7px 0 rgba(32,32,58,.1);
}
.calendar-panel, .goals-panel, .year-panel { background: #aad7cd; }
.events-panel { background: #e5dcff; }
.event-list { display: grid; gap: 9px; }
.event-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; border: 1.5px solid var(--ink); border-radius: 13px; padding: 14px; background: white; box-shadow: 3px 3px 0 rgba(32,32,58,.13); }
.event-icon { color: #8b5cf6; font-size: 18px; }
.event-card > div:nth-child(2) { display: grid; gap: 3px; }
.event-card b { font-size: 12px; }
.event-card small { color: var(--muted); font-size: 9px; }
.event-card > button { border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--muted); }
.event-changes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.event-changes span { background: #e5dcff; border-radius: 100px; padding: 5px 8px; font-size: 8px; }
.event-overrides { border-top: 2px solid var(--ink); padding-top: 24px; }
.event-overrides h3 { font-family: Fredoka, sans-serif; font-size: 23px; margin: 0 0 5px; }
#eventGoalChoices { display: grid; gap: 9px; }
.event-goal-choice { border: 2px solid var(--ink); border-radius: 13px; background: white; overflow: hidden; }
.event-goal-toggle { display: flex; gap: 10px; align-items: center; padding: 13px; cursor: pointer; }
.event-goal-toggle input { width: 18px; height: 18px; accent-color: #ff6c1f; }
.event-goal-toggle i { width: 10px; height: 10px; border-radius: 50%; }
.event-goal-toggle span { display: grid; gap: 2px; }
.event-goal-toggle b { font-size: 11px; }
.event-goal-toggle small { color: var(--muted); font-size: 8px; }
.event-goal-fields { padding: 14px; border-top: 1.5px solid var(--ink); background: #f5f0ff; display: grid; gap: 12px; }
.event-goal-fields[hidden] { display: none; }
.calendar-toolbar h3, .panel-heading h3,
.mini-month h4, .goal-progress strong {
  font-family: Fredoka, sans-serif;
  font-weight: 700;
}
.text-button, .year-navigation button {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: white;
  font-weight: 800;
}
.week-calendar { border-color: var(--ink); border-width: 2px 0 0 2px; }
.week-day { border-color: rgba(32,32,58,.24); }
.week-day.is-today {
  background: #fff0f5;
  box-shadow: inset 0 5px var(--terracotta);
}
.day-head strong { font-family: Fredoka, sans-serif; font-weight: 700; }
.calendar-task {
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  box-shadow: 2px 2px 0 rgba(32,32,58,.15);
  font-weight: 700;
}
.calendar-task input { width: 15px; height: 15px; accent-color: #ff6c1f; }
.goal-card {
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  box-shadow: 3px 3px 0 rgba(32,32,58,.13);
}
.goal-color { width: 12px; height: 12px; }
.mini-day { border-radius: 5px; font-weight: 700; }
.mini-day.has-tasks { background: #dcd6ff; }
.mini-day.all-complete { background: #ff6c1f; color: white; }
.mini-day.is-today { border: 2px solid var(--terracotta); }
.model-card {
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 rgba(32,32,58,.14);
  overflow: hidden;
}
.model-card::before { height: 10px; width: 100%; top: 0; left: 0; }
.perma-card { background: #eef0ff; }
.identity-card { background: #fff0f5; }
.card-heading h2, .score strong { font-family: Fredoka, sans-serif; font-weight: 700; }
.pie path { stroke-width: 3.5; stroke: #fffdf8; }
.pie-center { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.pie-center strong { font-family: Fredoka, sans-serif; font-weight: 700; }
.legend-button { font-weight: 700; color: var(--ink); }
.legend-button i { width: 11px; height: 11px; }
.card-cta { border-top: 2px solid var(--ink); font-weight: 800; }
.reflection { background: var(--yellow); border-top: 2px solid var(--ink); }
.reflection blockquote { font-weight: 700; }
.drawer { border-left: 3px solid var(--ink); }
.drawer h2, .form-section h3 { font-family: Fredoka, sans-serif; font-weight: 700; }
.close-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  line-height: 1;
}
textarea, .habit-input, .form-control {
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-weight: 600;
}
.rating-button {
  border: 2px solid var(--ink);
  font-weight: 800;
  background: white;
}
.rating-button.active { box-shadow: 2px 2px 0 var(--ink); }
.habit, .model-list button {
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: white;
}
.schedule-choice label, .weekday-picker label {
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-weight: 700;
  background: white;
}
.weekday-picker input:checked + label { box-shadow: 2px 2px 0 var(--ink); }
.assessment-button { margin-top: 22px; }
.empire-wheel-section { max-width: 780px; margin: -25px auto 85px; padding: 0 24px; text-align: center; }
.empire-wheel-wrap { width: min(100%, 650px); aspect-ratio: 1; margin: auto; position: relative; }
.empire-wheel { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(8px 8px 0 rgba(32,32,58,.16)); }
.empire-wheel-segment { cursor: pointer; }
.empire-wheel-segment path { stroke: var(--ink); stroke-width: 2.5; transform-origin: center; transition: transform .2s, filter .2s; }
.empire-wheel-base { fill: #f1dfc4; }
.empire-wheel-fill { stroke-width: 0 !important; pointer-events: none; }
.empire-wheel-outline { fill: transparent; }
.empire-wheel-segment:hover path { transform: scale(1.025); }
.empire-wheel-segment:hover .empire-wheel-fill { filter: brightness(1.08); }
.empire-wheel-segment text { font-family: Fredoka, sans-serif; font-size: 14px; font-weight: 700; text-anchor: middle; fill: var(--ink); pointer-events: none; paint-order: stroke; stroke: #cad183; stroke-width: 5px; stroke-linejoin: round; }
.empire-wheel-segment .empire-wheel-value { font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 800; }
.empire-wheel-center { position: absolute; inset: 39%; border-radius: 50%; background: #cad183; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.empire-wheel-center span { font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.empire-wheel-center strong { font-family: Fredoka, sans-serif; font-size: clamp(13px, 2.5vw, 22px); }
.empire-wheel-section > p { color: var(--ink); font-size: 10px; font-weight: 700; max-width: 430px; margin: -15px auto 0; line-height: 1.5; }
.empire-grid {
  max-width: 1080px;
  padding: 0 24px 110px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.empire-card {
  min-height: 210px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  text-align: left;
  cursor: pointer;
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform .18s, box-shadow .18s;
}
.empire-card:hover { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--ink); }
.empire-card.mindset { background: #aebcff; }
.empire-card.heartset { background: #ffb5ce; }
.empire-card.healthset { background: #ffc299; }
.empire-card.soulset { background: #cab8ff; }
.empire-card.relationships { background: #aad7cd; grid-column: 1 / -1; }
.empire-number { font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.empire-name { grid-column: 1; align-self: center; font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(35px, 5vw, 58px); letter-spacing: -.04em; }
.empire-score { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; }
.empire-score strong { font-family: Fredoka, sans-serif; font-size: clamp(38px, 5vw, 62px); }
.empire-score small { font-size: 10px; }
.empire-arrow { grid-column: 2; font-size: 23px; font-weight: 800; }
.empire-drawer-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.empire-drawer-title > strong { font-family: Fredoka, sans-serif; font-size: 38px; white-space: nowrap; }
.empire-drawer-title > strong small { font-family: "DM Sans", sans-serif; font-size: 10px; }
.subarea-list { display: grid; gap: 10px; margin-top: 32px; }
.subarea-detail { border: 2px solid var(--ink); border-radius: 14px; background: white; overflow: hidden; }
.subarea-detail summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; }
.subarea-detail summary::-webkit-details-marker { display: none; }
.subarea-detail summary > span { display: grid; gap: 4px; }
.subarea-detail summary b { font-family: Fredoka, sans-serif; font-size: 18px; }
.subarea-detail summary small { color: var(--muted); font-size: 10px; line-height: 1.45; max-width: 390px; }
.subarea-detail summary em { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: white; font-family: Fredoka, sans-serif; font-size: 20px; font-style: normal; flex: none; }
.subarea-detail summary em small { font-size: 7px; color: white; margin-top: -14px; }
.subarea-detail[open] summary { border-bottom: 2px solid var(--ink); background: color-mix(in srgb, var(--accent) 12%, white); }
.subarea-content { padding: 18px; }
.subarea-content label { display: block; font-size: 10px; font-weight: 800; line-height: 1.5; margin-bottom: 9px; }
.subarea-content textarea { min-height: 100px; margin-bottom: 10px; }
.assessment-progress { height: 9px; border: 2px solid var(--ink); border-radius: 100px; overflow: hidden; margin-bottom: 24px; }
.assessment-progress span { display: block; height: 100%; background: var(--accent); }
.assessment-questions { display: grid; gap: 25px; margin-top: 32px; }
.assessment-question { border-top: 1px solid var(--line); padding-top: 20px; }
.assessment-question > div:first-child { display: grid; gap: 4px; margin-bottom: 12px; }
.assessment-question b { font-family: Fredoka, sans-serif; font-size: 18px; }
.assessment-question small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.assessment-scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.assessment-rating { aspect-ratio: 1; min-width: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: white; cursor: pointer; font-size: 10px; font-weight: 800; padding: 0; }
.assessment-rating.active { background: var(--accent); color: white; box-shadow: 2px 2px 0 var(--ink); }
.assessment-scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; margin-top: 7px; }
.assessment-actions { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; margin-top: 35px; }
.assessment-actions .form-submit { margin: 0; }

/* Ruhiges Design: Weiß, warme Neutraltöne und eine Akzentfarbe */
:root {
  --ink: #29282e;
  --muted: #77737b;
  --paper: #f3f1ed;
  --card: #ffffff;
  --line: #dedbd6;
  --sage: #ef4782;
  --terracotta: #ef4782;
  --purple: #ef4782;
}
body { background: var(--paper); }
.grain { opacity: .08; }
.topbar {
  background: rgba(255,255,255,.92);
  border-color: var(--line);
  box-shadow: 0 1px 12px rgba(41,40,46,.04);
}
.nav-link.active { background: var(--ink); color: white; }
.nav-link:hover { background: #f7e2ea; }
.icon-button { background: #f7f5f2; }
.icon-button:hover { background: #f7e2ea; }
h1, h1 em { color: #ef4782; }
.eyebrow, .model-number { color: #a54866; }
.primary-button, .secondary-button, .form-submit {
  background: #ef4782;
  color: white;
  border: 0;
  box-shadow: none;
  border-radius: 10px;
}
.primary-button:hover, .secondary-button:hover, .form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(239,71,130,.2);
}
.tracker-stats,
.calendar-panel, .goals-panel, .year-panel, .events-panel {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(41,40,46,.05);
  border-radius: 18px;
}
.tracker-stats article:nth-child(1),
.tracker-stats article:nth-child(2),
.tracker-stats article:nth-child(3) { background: white; }
.tracker-stats article { border-color: var(--line); }
.month-toolbar button, .text-button, .year-navigation button {
  border: 1px solid var(--line);
  box-shadow: none;
  background: white;
}
.month-wheel-center {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(41,40,46,.08);
}
.month-segment path { stroke: white; }
.month-segment .task-slice.is-open { fill: #e9e5df; }
.month-segment .task-slice.is-done { fill: #ef4782; }
.month-segment .no-task-slice { fill: #f2efeb; opacity: 1; }
.month-segment .segment-outline { stroke: #d5d1cb; }
.month-segment.is-today .segment-outline { stroke: #ef4782; }
.month-event-dot { fill: #ef4782; stroke: white; }
.selected-day-panel {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(41,40,46,.06);
}
.day-detail-task, .calendar-task, .goal-card, .event-card {
  background: white;
  border: 1px solid var(--line);
  box-shadow: none;
}
.day-detail-task input, .calendar-task input, .habit input, .event-goal-toggle input { accent-color: #ef4782; }
.selected-events span, .week-event, .event-changes span { background: #f7e2ea; color: var(--ink); border-color: #ecc4d2; }
.week-calendar { border-color: var(--line); }
.week-day { background: white; border-color: var(--line); }
.week-day.is-today { background: #fdf5f8; box-shadow: inset 0 3px #ef4782; }
.events-panel { background: white; }
.event-icon { color: #ef4782; }
.event-goal-choice, textarea, .habit-input, .form-control,
.subarea-detail, .schedule-choice label, .weekday-picker label {
  border: 1px solid var(--line);
  box-shadow: none;
}
.event-goal-fields { background: #faf8f6; border-color: var(--line); }
.mini-day.has-tasks { background: #f7e2ea; }
.mini-day.all-complete { background: #ef4782; }
.drawer { background: white; border-left: 1px solid var(--line); }
.close-button { background: white; border: 1px solid var(--line); box-shadow: none; }
.rating-button, .assessment-rating { border-color: var(--line); }
.rating-button.active, .assessment-rating.active,
.weekday-picker input:checked + label {
  background: #ef4782;
  border-color: #ef4782;
  box-shadow: none;
}
.reflection { background: white; border-color: var(--line); }
.empire-wheel-section {
  max-width: 980px;
  margin-top: -40px;
}
.empire-wheel-wrap { width: min(100%, 840px); }
.empire-wheel { filter: drop-shadow(0 12px 28px rgba(41,40,46,.08)); }
.empire-wheel-segment path { stroke: white; stroke-width: 3; }
.empire-wheel-base { fill: #e9e5df; }
.empire-wheel-outline { stroke: #d2cec8 !important; stroke-width: 1.5px !important; }
.empire-wheel-segment text { stroke: var(--paper); }
.empire-wheel-center {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 25px rgba(41,40,46,.09);
}
.subarea-detail[open] summary { background: #fdf5f8; border-color: var(--line); }
.subarea-detail summary em { background: #ef4782; }
.assessment-progress { border: 0; background: #ece8e3; }
.assessment-progress span { background: #ef4782; }

@media (max-width: 750px) {
  .save-state { display: none; }
  .top-actions { gap: 11px; }
  .nav-link { font-size: 10px; }
  .hero { padding-top: 62px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .tracker-actionbar { flex-wrap: wrap; }
  .tracker-actionbar button { flex: 1; }
  .tracker-stats { grid-template-columns: 1fr; }
  .month-layout { grid-template-columns: 1fr; }
  .month-wheel-wrap { width: min(100%, 520px); }
  .selected-day-panel { min-height: 0; }
  .tracker-stats article { border-right: 0; border-bottom: 1px solid var(--line); }
  .year-calendar { grid-template-columns: 1fr 1fr; }
  .overview-day { min-height: 135px; }
  .goal-card { grid-template-columns: 12px 1fr auto; }
  .schedule-choice { grid-template-columns: 1fr; }
  .empire-grid { grid-template-columns: 1fr; }
  .empire-wheel-section { margin-top: -10px; margin-bottom: 55px; }
  .empire-wheel-segment text { font-size: 11px; stroke-width: 4px; }
  .empire-wheel-segment .empire-wheel-value { font-size: 8px; }
  .empire-card.relationships { grid-column: auto; }
  .assessment-rating { font-size: 9px; }
  .goal-progress { display: none; }
  .overview { grid-template-columns: 1fr; max-width: 550px; }
  .chart-wrap { width: 250px; height: 250px; }
  .drawer { padding-top: 70px; }
}
@media (max-width: 380px) {
  .brand > span:last-child { display: none; }
  .model-card { padding: 22px 18px; }
  .chart-wrap { width: 220px; height: 220px; }
  .month-wheel-center strong { font-size: 30px; }
  .month-segment text { font-size: 10px; }
  .year-calendar { grid-template-columns: 1fr; }
}

/* Editorial paper planner */
:root {
  --ink: #292927;
  --muted: #77746e;
  --paper: #faf7f2;
  --card: #fffefa;
  --line: #d8d2c9;
  --terracotta: #c42b34;
  --sage: #8b7a27;
  --olive: #8b7a27;
  --tan: #cfbb99;
  --espresso: #3c2415;
  --navy: #435a78;
  --ochre: #c4a356;
}
html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: -.01em;
}
.grain { opacity: .035; }
h1, h2, blockquote,
.calendar-toolbar h3, .panel-heading h3, .month-toolbar h3,
.drawer h2, .form-section h3, .day-head strong,
.tracker-stats strong, .goal-progress strong,
.empire-wheel-center strong, .subarea-detail summary b,
.assessment-question b {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}
.topbar {
  height: 72px;
  padding: 0 clamp(24px, 6vw, 88px);
  background: rgba(250,247,242,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}
.top-actions { gap: 24px; }
.nav-link {
  padding: 6px 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
}
.nav-link.active { color: var(--ink); border-bottom: 1px solid var(--ink); }
.nav-link:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.save-state { font-size: 10px; }
.icon-button {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 17px;
}
.icon-button:hover { background: transparent; color: var(--terracotta); transform: none; }
.hero { padding: clamp(80px, 11vw, 150px) 24px 80px; }
.hero h1, h1, h1 em {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: clamp(66px, 9vw, 126px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.055em;
}
.pillars-hero h1 { font-size: clamp(58px, 8vw, 112px); }
.hero .intro {
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}
.eyebrow, .model-number {
  color: var(--terracotta);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}
.tracker {
  max-width: 1320px;
  padding: 0 clamp(24px, 5vw, 72px) 140px;
}
.tracker-actionbar { gap: 12px; margin-bottom: 36px; }
.primary-button, .secondary-button, .form-submit {
  padding: 12px 18px;
  border: 1px solid var(--terracotta);
  border-radius: 9px;
  background: var(--terracotta);
  color: white;
  box-shadow: none;
  font-size: 11px;
  font-weight: 500;
}
.secondary-button {
  background: transparent;
  color: var(--terracotta);
}
.primary-button:hover, .secondary-button:hover, .form-submit:hover {
  transform: none;
  box-shadow: none;
  background: #a9232b;
  color: white;
}
.calendar-panel, .goals-panel, .year-panel, .events-panel,
.tracker-stats, .selected-day-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,254,250,.72);
  box-shadow: none;
}
.calendar-panel, .goals-panel, .year-panel, .events-panel, .tracker-stats {
  background: var(--olive);
  border-color: var(--olive);
}
.week-panel { border-radius: 12px; padding: 32px; }
.calendar-panel > .calendar-toolbar,
.goals-panel > .panel-heading,
.year-panel > .calendar-toolbar,
.events-panel > .panel-heading,
.month-wheel-panel > .month-toolbar { color: var(--paper); }
.calendar-panel > .calendar-toolbar .eyebrow,
.goals-panel > .panel-heading .eyebrow,
.year-panel > .calendar-toolbar .eyebrow,
.events-panel > .panel-heading .eyebrow,
.month-wheel-panel > .month-toolbar .eyebrow { color: rgba(250,247,242,.72); }
.calendar-toolbar { margin-bottom: 28px; }
.calendar-toolbar h3, .panel-heading h3 { margin-top: 7px; font-size: 31px; }
.week-navigation button, .year-navigation button,
.month-toolbar button, .text-button {
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 10px;
  font-weight: 500;
}
.week-navigation button:hover, .year-navigation button:hover,
.month-toolbar button:hover, .text-button:hover {
  background: #f4efe8;
  color: var(--ink);
}
.calendar-panel > .calendar-toolbar .week-navigation button,
.calendar-panel > .month-toolbar button,
.year-panel > .calendar-toolbar .year-navigation button {
  border-color: rgba(250,247,242,.42);
  color: var(--paper);
}
.calendar-panel > .calendar-toolbar .week-navigation button:hover,
.calendar-panel > .month-toolbar button:hover,
.year-panel > .calendar-toolbar .year-navigation button:hover {
  background: rgba(250,247,242,.12);
}
.week-calendar {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.week-day {
  min-height: 250px;
  padding: 18px 12px;
  border-color: var(--line);
  background: var(--card);
}
.week-day.is-today {
  background: rgba(196,43,52,.045);
  box-shadow: inset 0 2px var(--terracotta);
}
.day-head { margin-bottom: 24px; }
.day-head strong { font-size: 27px; }
.day-status-star, .overview-status-star {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  border-radius: 0;
  font-family: "Arial Rounded MT Bold", "Inter", sans-serif;
  font-size: 17px;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255,255,255,.85);
  paint-order: stroke fill;
  filter: none;
  transform: none;
}
.day-status-star.yellow, .overview-status-star.yellow { background: transparent; color: var(--ochre); }
.day-status-star.blue, .overview-status-star.blue { background: transparent; color: var(--navy); }
.calendar-task {
  padding: 9px 2px;
  gap: 9px;
  border: 0;
  border-top: 1px solid #e5e0d9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 10px;
  font-weight: 400;
}
.calendar-task:first-child { border-top: 0; }
.calendar-task i { width: 2px; background: var(--terracotta) !important; }
.calendar-task input {
  width: 13px; height: 13px;
  accent-color: var(--terracotta);
}
.week-event {
  padding: 3px 0;
  border-radius: 0;
  background: transparent;
  color: var(--terracotta);
  font-size: 8px;
  font-weight: 500;
}
.month-wheel-panel { margin-top: 56px; padding: clamp(28px, 4vw, 52px); }
.month-toolbar { max-width: 720px; margin-bottom: 34px; }
.month-toolbar h3 {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -.035em;
}
.month-segment path { stroke: var(--card); stroke-width: .8; }
.month-segment .task-slice.is-open { fill: var(--olive); }
.month-segment .task-slice.is-done { fill: var(--terracotta); }
.month-segment .no-task-slice { fill: #f3efe9; }
.month-segment .segment-outline { stroke: #cec7bd; stroke-width: .8; }
.month-segment.is-today .segment-outline { stroke: var(--terracotta); stroke-width: 2; }
.month-segment.is-selected .segment-outline { stroke: var(--ink); stroke-width: 1.5; filter: none; }
.month-segment .circle-status-star {
  font-family: "Arial Rounded MT Bold", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
  stroke: var(--card);
  stroke-width: 2.5px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  filter: none;
}
.month-segment .circle-status-star.yellow { fill: var(--ochre); }
.month-segment .circle-status-star.blue { fill: var(--navy); }
.month-event-dot { fill: var(--terracotta); stroke: var(--card); stroke-width: 1; }
.month-wheel-center {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: none;
}
.month-wheel-center strong { font-size: clamp(34px, 5vw, 55px); }
.selected-day-panel {
  padding: 30px;
  background: var(--card);
}
.selected-day-panel h3 { font-family: "Outfit", sans-serif; font-weight: 800; }
.day-detail-task {
  padding: 11px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.day-detail-task input { accent-color: var(--terracotta); }
.selected-events span {
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--terracotta);
  font-weight: 500;
}
.tracker-stats {
  margin-top: 48px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: var(--olive);
}
.tracker-stats article {
  padding: 24px 28px;
  background: transparent !important;
  border-color: rgba(250,247,242,.28);
  color: var(--paper);
}
.tracker-stats article span, .tracker-stats article small { color: rgba(250,247,242,.7); }
.tracker-stats strong { font-size: 30px; }
.events-panel, .goals-panel, .year-panel { margin-top: 48px; padding: clamp(28px, 4vw, 46px); }
.event-card, .goal-card {
  padding: 14px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  box-shadow: none;
}
.event-card:first-child, .goal-card:first-child { border-top: 0; }
.event-icon { color: var(--terracotta); font-size: 11px; }
.event-changes span {
  padding: 3px 7px;
  background: #f1e5e0;
  color: var(--ink);
}
.goal-color { width: 7px; height: 7px; background: var(--terracotta) !important; }
.year-panel { overflow-x: auto; }
.overview-month-calendar {
  border-color: var(--line);
  background: var(--card);
}
.overview-weekday {
  padding: 12px 8px;
  background: transparent;
  border-color: var(--line);
  font-size: 8px;
  font-weight: 500;
}
.overview-day {
  min-height: 170px;
  padding: 12px;
  border-color: var(--line);
  background: transparent;
}
.overview-day:hover { background: #fcf9f5; }
.overview-day.outside { background: #f6f2ec; }
.overview-day.all-complete { background: rgba(196,43,52,.035); }
.overview-day.is-today .overview-day-head > strong {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--terracotta);
}
.overview-day-head > strong {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}
.overview-event {
  padding: 4px 0;
  border-radius: 8px;
  background: transparent;
  color: var(--terracotta);
  font-weight: 500;
}
.overview-task { font-weight: 400; }
.overview-task i { width: 5px; height: 5px; border-color: var(--terracotta); }
.overview-task.done i { background: var(--terracotta); }
.overview-task-count { font-weight: 500; }
.calendar-key i { border-radius: 50%; }
.calendar-key .planned { background: #d9d4cd; }
.calendar-key .complete { background: var(--terracotta); }
.calendar-key .event-key { background: var(--terracotta); }
.calendar-key .today-key { border-color: var(--terracotta); }
.drawer {
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(41,41,39,.04);
}
.drawer-backdrop { background: rgba(41,41,39,.18); backdrop-filter: none; }
.close-button {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
  font-size: 23px;
}
textarea, .habit-input, .form-control {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}
.schedule-choice label, .weekday-picker label,
.event-goal-choice, .subarea-detail {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}
.event-goal-fields { background: #f7f3ed; border-color: var(--line); }
.rating-button, .assessment-rating {
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 500;
}
.rating-button.active, .assessment-rating.active,
.weekday-picker input:checked + label {
  background: var(--terracotta);
  border-color: var(--terracotta);
  box-shadow: none;
}
.reflection {
  padding: 120px 24px;
  background: transparent;
  border-top: 1px solid var(--line);
}
.reflection blockquote { font-size: clamp(34px, 5vw, 58px); }
.empire-wheel-section {
  max-width: 1050px;
  margin: -30px auto 130px;
}
.empire-wheel-wrap { width: min(100%, 880px); }
.empire-wheel { filter: none; }
.empire-guide-ring {
  fill: none;
  stroke: #d7d1c8;
  stroke-width: .8;
  pointer-events: none;
}
.empire-wheel-base { fill: var(--olive); opacity: .9; }
.empire-wheel-fill { fill: var(--terracotta) !important; opacity: .82; }
.empire-wheel-segment path { stroke: var(--paper); stroke-width: 1; }
.empire-wheel-outline {
  fill: transparent;
  stroke: #bdb5aa !important;
  stroke-width: .8 !important;
}
.empire-wheel-segment text {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 4px;
}
.empire-wheel-segment .empire-wheel-value {
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 500;
}
.empire-wheel-center {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: none;
}
.empire-wheel-center span { color: var(--muted); font-weight: 500; }
.empire-wheel-center strong {
  max-width: 120px;
  font-size: clamp(16px, 2.4vw, 25px);
  line-height: 1.1;
}
.empire-wheel-section > p {
  max-width: 520px;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
}
.empire-balance-list {
  max-width: 720px;
  margin: 55px auto 0;
  border-top: 1px solid var(--line);
}
.empire-balance-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: "Inter", sans-serif;
  font-size: 11px;
}
.empire-balance-list button:hover span { color: var(--terracotta); }
.empire-balance-list i {
  height: 2px;
  background: #ddd7cf;
}
.empire-balance-list i b {
  display: block;
  height: 100%;
  background: var(--terracotta);
}
.empire-balance-list em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}
.subarea-detail summary em { background: var(--terracotta); }
.subarea-detail[open] summary { background: #f7f1ed; border-color: var(--line); }
.assessment-progress { background: #e5dfd7; }
.assessment-progress span { background: var(--terracotta); }
.assessment-button {
  margin-top: 30px;
  background: var(--olive);
  border-color: var(--olive);
}
.assessment-button:hover {
  background: #75671f;
  border-color: #75671f;
}

/* Innenflächen auf Olive und Erledigt-Zustände */
.calendar-panel .week-day,
.calendar-panel .selected-day-panel,
.calendar-panel .month-wheel-center,
.goals-panel .goal-card,
.events-panel .event-card,
.year-panel .overview-month-calendar,
.year-panel .overview-weekday,
.year-panel .overview-day {
  background: var(--tan);
}
.calendar-panel .month-segment .task-slice.is-open,
.calendar-panel .month-segment .no-task-slice {
  fill: var(--tan);
}
.calendar-panel .month-segment .task-slice.is-done {
  fill: var(--espresso);
}
.calendar-panel .month-segment .segment-outline {
  stroke: rgba(60,36,21,.38);
}
.calendar-panel .calendar-task,
.calendar-panel .day-detail-task {
  border-color: rgba(60,36,21,.2);
}
.calendar-panel .calendar-task input,
.calendar-panel .day-detail-task input {
  accent-color: var(--espresso);
}
.year-panel .overview-day.all-complete {
  background: var(--espresso);
  color: var(--paper);
}
.year-panel .overview-day.all-complete .overview-task,
.year-panel .overview-day.all-complete .overview-task-count,
.year-panel .overview-day.all-complete .overview-day-head > strong {
  color: var(--paper);
}
.year-panel .overview-day.all-complete .overview-task-count {
  border-color: rgba(250,247,242,.25);
}
.year-panel .overview-task.done i,
.calendar-key .complete {
  background: var(--espresso);
}
.month-event-dot {
  fill: #c42b34;
  stroke: var(--paper);
}
.calendar-key .event-key {
  background: #c42b34;
}

/* Offene Monats-Spirale */
.month-wheel-wrap {
  width: min(100%, 780px);
  aspect-ratio: 610 / 490;
}
.month-wheel { overflow: visible; }
.spiral-row {
  fill: var(--tan);
  stroke: var(--espresso);
  stroke-width: .75;
}
.spiral-row.placeholder { fill: rgba(207,187,153,.55); }
.spiral-day-line {
  fill: none;
  stroke: var(--espresso);
  stroke-width: .65;
  pointer-events: none;
}
.spiral-goal-label path {
  fill: none;
  stroke: var(--espresso);
  stroke-width: .75;
}
.spiral-goal-label rect {
  fill: var(--tan);
  stroke: none;
}
.spiral-goal-label text {
  fill: var(--espresso);
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 500;
  dominant-baseline: central;
}
.spiral-goal-label.placeholder text { fill: rgba(60,36,21,.36); }
.spiral-day-hit {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
}
.spiral-day:hover .spiral-day-hit { fill: rgba(250,247,242,.14); }
.spiral-day.is-today .spiral-day-hit {
  fill: rgba(196,43,52,.08);
  stroke: var(--terracotta);
  stroke-width: 1.6;
}
.spiral-day.is-selected .spiral-day-hit {
  stroke: var(--espresso);
  stroke-width: 1.5;
}
.spiral-day-number {
  fill: var(--espresso);
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.spiral-completion-star {
  fill: var(--espresso);
  stroke: var(--tan);
  stroke-width: 1.5;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font-family: "Arial Rounded MT Bold", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.month-wheel-center {
  inset: auto;
  left: 57.4%;
  top: 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
}
.month-wheel-center strong { font-size: 27px; }

@media (max-width: 750px) {
  .month-wheel-wrap { min-width: 610px; }
  .month-layout { overflow-x: auto; }
}

/* Wochenziele und auswählbarer Tag */
.week-goal-summary {
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(60,36,21,.28);
  border-radius: 8px;
  background: var(--tan);
  color: var(--espresso);
}
.week-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(60,36,21,.2);
}
.week-summary-heading span {
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  font-weight: 800;
}
.week-summary-heading small { color: rgba(60,36,21,.62); font-size: 9px; }
.week-summary-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.week-summary-goal {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(60,36,21,.15);
}
.week-summary-goal > i { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta) !important; }
.week-summary-goal > span { display: grid; gap: 2px; }
.week-summary-goal > span b { font-size: 10px; font-weight: 500; }
.week-summary-goal > span small { color: rgba(60,36,21,.58); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.week-summary-goal > em { font-family: "Outfit", sans-serif; font-size: 15px; font-weight: 800; font-style: normal; }
.week-summary-goal > div { grid-column: 2 / -1; height: 2px; background: rgba(60,36,21,.15); }
.week-summary-goal > div b { display: block; height: 100%; background: var(--espresso); }
.week-summary-empty { font-family: "Outfit", sans-serif; font-size: 16px; font-weight: 700; text-align: center; padding: 12px; }
.week-day {
  min-height: 190px;
  color: var(--espresso);
  font-family: "Inter", sans-serif;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.week-day:hover { background: #d6c39f; }
.week-day.is-selected {
  outline: 2px solid var(--espresso);
  outline-offset: -2px;
}
.week-completed-list { display: grid; gap: 6px; position: relative; z-index: 1; }
.week-completed-goal {
  display: block;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(60,36,21,.14);
  font-size: 8px;
  line-height: 1.3;
}
.week-nothing-completed { color: rgba(60,36,21,.48); font-size: 8px; font-style: italic; }
.week-day-editor {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(60,36,21,.28);
  border-radius: 8px;
  background: var(--tan);
  color: var(--espresso);
}
.week-editor-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(60,36,21,.2);
}
.week-editor-heading h3 {
  margin: 6px 0 0;
  font-family: "Outfit", sans-serif;
  font-size: 27px;
  font-weight: 800;
  text-transform: capitalize;
}
.week-editor-heading > span {
  font-family: "Outfit", sans-serif;
  font-size: 23px;
  font-weight: 800;
}
.week-goal-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.week-goal-choice {
  display: grid;
  grid-template-columns: auto 6px 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(60,36,21,.15);
  cursor: pointer;
}
.week-goal-choice input { width: 15px; height: 15px; accent-color: var(--espresso); }
.week-goal-choice > i { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta) !important; }
.week-goal-choice > span { display: grid; gap: 2px; }
.week-goal-choice b { font-size: 10px; font-weight: 500; }
.week-goal-choice small { color: rgba(60,36,21,.58); font-size: 8px; }
.week-goal-choice.done b { text-decoration: line-through; color: rgba(60,36,21,.58); }
.week-editor-empty { padding: 30px 0 5px; color: rgba(60,36,21,.58); font-family: "Outfit", sans-serif; font-size: 16px; }

@media (max-width: 750px) {
  .week-summary-list, .week-goal-choices { grid-template-columns: 1fr; }
  .week-goal-summary, .week-day-editor { padding: 20px; }
}
.goal-type-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal-type-choice > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.goal-type-choice input { margin-top: 3px; accent-color: var(--terracotta); }
.goal-type-choice span { display: grid; gap: 5px; }
.goal-type-choice b { font-family: "Outfit", sans-serif; font-size: 13px; }
.goal-type-choice small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.goal-type-choice label:has(input:checked) { border-color: var(--terracotta); background: #f8efeb; }
.foundation-note {
  padding: 16px 18px;
  border-left: 2px solid var(--sage);
  background: #f1f3ee;
  display: grid;
  gap: 5px;
}
.foundation-note[hidden] { display: none; }
.foundation-note b { font-family: "Outfit", sans-serif; font-size: 12px; }
.foundation-note span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.goal-type-label {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.goal-type-label.foundation { color: #687c68; }
.goal-type-label.challenge { color: var(--terracotta); }
.empty-state {
  padding: 64px 20px;
  border: 0;
  color: var(--muted);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 750px) {
  .hero h1, h1, h1 em { font-size: clamp(52px, 16vw, 78px); }
  .top-actions { gap: 14px; }
  .week-day { min-height: 220px; }
  .month-wheel-panel { padding: 26px 16px; }
  .empire-wheel-section { margin-top: 0; }
  .empire-balance-list button { grid-template-columns: 100px 1fr 30px; gap: 12px; }
  .goal-type-choice { grid-template-columns: 1fr; }
}

/* Statistik & Ziel-Reflexion */
.statistics-hero { padding-bottom: 44px; }
.statistics-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 110px;
}
.statistics-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(60,36,21,.28);
  border-bottom: 1px solid rgba(60,36,21,.28);
}
.statistics-summary article {
  min-height: 150px;
  padding: 28px;
  border-right: 1px solid rgba(60,36,21,.22);
}
.statistics-summary article:last-child { border-right: 0; }
.statistics-summary span,
.statistics-summary small {
  display: block;
  color: rgba(60,36,21,.62);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.statistics-summary strong {
  display: block;
  margin: 11px 0 5px;
  color: var(--espresso, #3c2415);
  font-family: "Outfit", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}
.statistics-toolbar { margin: 72px 0 24px; }
.statistics-toolbar h2 {
  margin: 8px 0 0;
  color: var(--espresso, #3c2415);
  font-family: "Outfit", sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -.04em;
}
.statistics-goals { border-top: 1px solid rgba(60,36,21,.28); }
.statistics-goal-card { border-bottom: 1px solid rgba(60,36,21,.28); }
.statistics-goal-card > summary {
  display: grid;
  grid-template-columns: 7px minmax(240px, 1fr) 105px 150px 28px;
  align-items: center;
  gap: 22px;
  padding: 24px 4px;
  list-style: none;
  cursor: pointer;
}
.statistics-goal-card > summary::-webkit-details-marker { display: none; }
.statistics-goal-card > summary > i { width: 7px; height: 7px; border-radius: 50%; }
.statistics-goal-card > summary > span:nth-child(2) { display: grid; gap: 3px; }
.statistics-goal-card > summary small,
.statistics-goal-card > summary em {
  color: rgba(60,36,21,.58);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .04em;
}
.statistics-goal-card > summary b {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 800;
}
.statistics-goal-card > summary > div { display: grid; gap: 3px; }
.statistics-goal-card > summary > div strong {
  font-family: "Outfit", sans-serif;
  font-size: 23px;
  font-weight: 800;
}
.statistics-arrow { font-size: 20px; transition: transform .2s ease; }
.statistics-goal-card[open] .statistics-arrow { transform: rotate(45deg); }
.statistics-goal-detail {
  padding: 8px 4px 32px 33px;
  animation: quietFade .2s ease;
}
@keyframes quietFade { from { opacity: 0; transform: translateY(-3px); } }
.performance-line { height: 2px; background: rgba(60,36,21,.14); }
.performance-line span { display: block; height: 100%; background: #8b7a27; }
.performance-caption { margin: 9px 0 35px; color: rgba(60,36,21,.62); font-size: 10px; }
.review-history h3 {
  margin: 0 0 12px;
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  font-weight: 800;
}
.review-entry {
  display: grid;
  gap: 12px;
  padding: 19px 0;
  border-top: 1px solid rgba(60,36,21,.17);
}
.review-entry > div { display: flex; justify-content: space-between; }
.review-entry time { color: rgba(60,36,21,.6); font-size: 10px; }
.review-entry strong { font-family: "Outfit", sans-serif; }
.review-entry p { display: grid; grid-template-columns: 120px 1fr; gap: 18px; margin: 0; font-size: 11px; line-height: 1.6; }
.review-entry p b { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.no-reviews { color: rgba(60,36,21,.58); font-size: 11px; font-style: italic; }

.review-form .form-section { padding-top: 23px; }
.review-rating { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.review-rating input { position: absolute; opacity: 0; pointer-events: none; }
.review-rating span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(60,36,21,.24);
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
}
.review-rating input:checked + span {
  border-color: #8b7a27;
  background: #8b7a27;
  color: #faf7f2;
}
.quiet-choice { display: grid; gap: 0; border-top: 1px solid rgba(60,36,21,.18); }
.quiet-choice label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(60,36,21,.18);
  cursor: pointer;
  font-size: 11px;
}
.quiet-choice input { accent-color: #8b7a27; }
.review-change-fields {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(60,36,21,.2);
  border-radius: 10px;
  background: #cfbb99;
}
.review-change-fields[hidden] { display: none; }
.review-exception-note { margin: 0; color: rgba(60,36,21,.66); font-size: 9px; line-height: 1.5; }

@media (max-width: 750px) {
  .statistics-page { width: min(100% - 28px, 1120px); }
  .statistics-summary { grid-template-columns: 1fr; }
  .statistics-summary article { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(60,36,21,.2); }
  .statistics-summary article:last-child { border-bottom: 0; }
  .statistics-goal-card > summary { grid-template-columns: 7px 1fr 62px 25px; gap: 12px; }
  .statistics-goal-card > summary > div:nth-of-type(2) { display: none; }
  .statistics-goal-detail { padding-left: 19px; }
  .review-entry p { grid-template-columns: 1fr; gap: 4px; }
  .review-rating { grid-template-columns: repeat(6, 1fr); }
}

/* Ausgewählter Wochentag als ruhiges Pop-up */
.week-day-editor {
  display: none;
  position: fixed;
  z-index: 40;
  top: 50%;
  left: 50%;
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 40px));
  margin: 0;
  padding: 34px;
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(60,36,21,.3);
  border-radius: 12px;
  background: #cfbb99;
  box-shadow: 0 24px 80px rgba(60,36,21,.18);
}
.week-day-editor.open { display: block; animation: quietPopup .18s ease; }
@keyframes quietPopup {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 7px)); }
}
.week-editor-close {
  position: absolute;
  top: 14px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(60,36,21,.25);
  border-radius: 50%;
  background: transparent;
  font-size: 21px;
  cursor: pointer;
}
.week-editor-heading { padding-right: 32px; }
.day-detail-task.completed-only {
  cursor: default;
  opacity: 1;
  text-decoration: none;
}
.completed-mark {
  display: grid !important;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--tan);
  font-size: 11px;
}
.implementation-fields {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(60,36,21,.2);
  border-radius: 10px;
  background: rgba(207,187,153,.42);
}
.implementation-fields .field-label {
  margin: 0 0 4px;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.implementation-fields .form-hint { margin: 0; }
.implementation-fields textarea { min-height: 92px; }

@media (max-width: 750px) {
  .week-day-editor { padding: 28px 20px 22px; }
  .week-editor-heading { align-items: flex-start; }
  .top-actions { gap: 9px; }
  .nav-link { font-size: 10px; }
  .save-state { display: none; }
}

.calendar-page-hero { padding-bottom: 32px; }
.calendar-page { padding-top: 0; }
.calendar-page .events-panel { margin-top: 0; }

.selected-day-goals-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 10px;
  padding: 13px 15px;
  border: 1px solid var(--espresso);
  border-radius: 9px;
  background: transparent;
  color: var(--espresso);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.selected-day-goals-button:hover {
  background: var(--espresso);
  color: var(--tan);
}

.area-development { margin-top: 72px; }
.area-development > .statistics-toolbar { margin-top: 0; }
#areaDevelopmentChart {
  border-top: 1px solid rgba(60,36,21,.28);
  border-bottom: 1px solid rgba(60,36,21,.28);
  padding: 30px 0 25px;
}
.development-chart-wrap { width: 100%; overflow-x: auto; }
.development-chart {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
  overflow: visible;
}
.development-grid-line {
  stroke: rgba(60,36,21,.15);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.development-axis-label,
.development-month-label {
  fill: rgba(60,36,21,.62);
  font-family: "Inter", sans-serif;
  font-size: 10px;
}
.development-axis-label { text-anchor: end; }
.development-month-label { text-anchor: middle; text-transform: capitalize; }
.development-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.development-point {
  stroke: #faf7f2;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.development-legend {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding: 22px 4px 0;
}
.development-legend span {
  display: grid;
  grid-template-columns: 7px auto auto;
  align-items: center;
  justify-content: start;
  gap: 8px;
}
.development-legend i { width: 7px; height: 7px; border-radius: 50%; }
.development-legend b { font-size: 9px; font-weight: 500; }
.development-legend em {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}
.development-empty {
  max-width: 520px;
  margin: auto;
  padding: 50px 20px;
  text-align: center;
}
.development-empty > span { font-size: 32px; }
.development-empty strong {
  display: block;
  margin: 13px 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
}
.development-empty p { margin: 0; color: rgba(60,36,21,.62); font-size: 11px; line-height: 1.65; }

@media (max-width: 750px) {
  .development-legend { grid-template-columns: repeat(2, 1fr); }
}

/* Kompakte iPhone-Ansicht – Desktopdarstellung bleibt unverändert */
@media (max-width: 600px) {
  body { overflow-x: hidden; }
  main { overflow: hidden; }

  .topbar {
    height: 58px;
    padding: 0 12px;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 7px;
  }
  .nav-link {
    padding: 5px 0;
    font-size: 9px;
    letter-spacing: 0;
  }
  .icon-button {
    width: 27px;
    height: 27px;
    flex: none;
    font-size: 14px;
  }

  .hero {
    padding: 46px 16px 34px;
  }
  .hero h1, h1, h1 em,
  .pillars-hero h1 {
    font-size: clamp(43px, 13vw, 58px);
    line-height: .96;
  }
  .hero .intro {
    max-width: 340px;
    margin: 18px auto 0;
    font-size: 11px;
  }
  .tracker {
    width: 100%;
    padding: 0 10px 76px;
  }
  .tracker-actionbar { margin-bottom: 14px; }
  .tracker-actionbar button { padding: 10px 12px; }

  .calendar-panel, .events-panel, .year-panel {
    padding: 14px 10px;
    border-radius: 9px;
  }
  .week-panel { padding: 14px 10px; }
  .calendar-toolbar {
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 15px;
  }
  .calendar-toolbar h3, .panel-heading h3 {
    margin-top: 4px;
    font-size: 20px;
    line-height: 1.05;
  }
  .eyebrow { font-size: 7px; }
  .week-navigation, .year-navigation { gap: 3px; }
  .week-navigation button, .year-navigation button {
    min-width: 28px;
    height: 29px;
    padding: 0 6px;
    font-size: 8px;
  }

  .week-goal-summary {
    margin-bottom: 13px;
    padding: 12px;
  }
  .week-summary-heading { padding-bottom: 9px; }
  .week-summary-heading span { font-size: 13px; }
  .week-summary-goal {
    gap: 7px;
    padding: 9px 0;
  }
  .week-summary-goal > span b { font-size: 9px; }
  .week-summary-goal > em { font-size: 12px; }

  .week-calendar {
    width: 100%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: visible;
  }
  .week-day {
    min-width: 0;
    min-height: 112px;
    padding: 7px 4px;
  }
  .day-head {
    display: grid;
    justify-items: center;
    gap: 3px;
    margin-bottom: 8px;
    font-size: 6px;
    letter-spacing: 0;
  }
  .day-head strong { font-size: 17px; }
  .day-status-star { font-size: 11px; }
  .week-events { margin: 0 0 4px; }
  .week-event,
  .week-completed-goal,
  .week-nothing-completed {
    display: block;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 0;
    font-size: 6px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .month-wheel-panel {
    margin-top: 24px;
    padding: 16px 8px;
  }
  .month-toolbar {
    grid-template-columns: 31px 1fr 31px;
    margin-bottom: 14px;
  }
  .month-toolbar h3 { font-size: 29px; }
  .month-toolbar button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
  }
  .month-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    overflow: visible;
  }
  .month-wheel-wrap {
    width: 100%;
    min-width: 0;
    max-width: 440px;
  }
  .month-wheel { width: 100%; height: 100%; }
  .spiral-goal-label text { font-size: 11px; }
  .spiral-day-number { font-size: 9px; }
  .spiral-completion-star { font-size: 14px; }
  .month-wheel-center {
    width: 64px;
    height: 64px;
  }
  .month-wheel-center strong { font-size: 18px; }
  .month-wheel-center span { font-size: 6px; letter-spacing: .08em; }
  .selected-day-panel {
    min-height: 0;
    padding: 17px;
  }
  .selected-day-panel h3 {
    margin: 5px 0 12px;
    font-size: 21px;
  }

  .calendar-page-hero { padding-bottom: 24px; }
  .events-panel, .year-panel { margin-top: 20px; }
  .events-panel { margin-top: 0; }
  .panel-heading { margin-bottom: 13px; }
  .overview-month-calendar {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .overview-weekday {
    min-width: 0;
    padding: 7px 1px;
    font-size: 6px;
    letter-spacing: 0;
  }
  .overview-day {
    min-width: 0;
    min-height: 88px;
    padding: 5px 3px;
  }
  .overview-day-head > strong {
    width: 19px;
    height: 19px;
    font-size: 10px;
  }
  .overview-status-star { font-size: 10px; }
  .overview-day-content { gap: 2px; margin-top: 3px; }
  .overview-event, .overview-task, .overview-task-count {
    display: block;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 0;
    font-size: 6px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .overview-task i { display: none; }
  .calendar-key {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 11px;
    font-size: 7px;
  }

  .statistics-hero { padding-bottom: 27px; }
  .statistics-page {
    width: calc(100% - 24px);
    padding-bottom: 72px;
  }
  .statistics-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .statistics-summary article {
    min-width: 0;
    min-height: 92px;
    padding: 15px 9px;
    border-right: 1px solid rgba(60,36,21,.2);
    border-bottom: 0;
  }
  .statistics-summary article:last-child { border-right: 0; }
  .statistics-summary span, .statistics-summary small {
    font-size: 6px;
    letter-spacing: .06em;
  }
  .statistics-summary strong {
    margin: 7px 0 3px;
    font-size: 27px;
  }
  .statistics-toolbar { margin: 38px 0 15px; }
  .statistics-toolbar h2 { font-size: 29px; }
  .statistics-goal-card > summary {
    grid-template-columns: 6px minmax(0, 1fr) 48px 20px;
    gap: 8px;
    padding: 17px 2px;
  }
  .statistics-goal-card > summary b { font-size: 14px; }
  .statistics-goal-card > summary > div strong { font-size: 17px; }
  .statistics-goal-card > summary small,
  .statistics-goal-card > summary em { font-size: 7px; }
  .statistics-goal-detail { padding: 5px 2px 24px 14px; }
  .area-development { margin-top: 43px; }
  #areaDevelopmentChart { padding: 16px 0; }
  .development-chart-wrap { overflow: hidden; }
  .development-chart {
    width: 100%;
    min-width: 0;
  }
  .development-axis-label,
  .development-month-label { font-size: 8px; }
  .development-legend {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 14px;
  }
  .development-legend span { gap: 5px; }
  .development-legend b { font-size: 7px; }
  .development-legend em { font-size: 11px; }

  .drawer {
    width: 100%;
    max-width: none;
    padding: 62px 18px 30px;
  }
  .week-day-editor {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
  }
}
