:root {
  --white: #ffffff;
  --ink: #15190d;
  --card-bg: #f2f2f2;
  --meta: rgba(0, 0, 0, 0.6);
  --hairline: #9a9a9a;
  --dashed: rgba(120, 120, 128, 0.16);
  --green: rgba(52, 199, 89, 0.3);
  --orange: rgba(255, 149, 0, 0.3);
  --yellow: #e5b838;
  --font: "LT Superior", "Helvetica Neue", Helvetica, Arial,
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-roboto: "Roboto", var(--font);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  max-width: 1728px;
  margin: 0 auto;
  padding: 60px 64px 120px;
  overflow: hidden;
}

/* Decorative faint circles top-right */
.deco {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(21, 25, 13, 0.06) 0%,
    rgba(21, 25, 13, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}
.deco--1 {
  width: 553px;
  height: 553px;
  right: 0;
  top: -168px;
  opacity: 0.4;
}
.deco--2 {
  width: 729px;
  height: 729px;
  right: -120px;
  top: -136px;
  opacity: 0.2;
}

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}

.topbar .logo {
  width: 111px;
  height: 32px;
  display: block;
}

.signout {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.signout img {
  width: 24px;
  height: 24px;
}

.welcome {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 19px;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.welcome-title {
  font-weight: 400;
  font-size: 48px;
  line-height: 44px;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* ---------- Bento grid ---------- */
.bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  grid-template-areas:
    "impact activity modC modC"
    "impact activity modD modD";
}

.area-impact { grid-area: impact; }
.area-activity { grid-area: activity; }
.area-modC { grid-area: modC; }
.area-modD { grid-area: modD; }

/* ---------- Card base ---------- */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
}

.card--outline {
  background: var(--white);
  border: 0.5px solid var(--hairline);
}

.eyebrow-body {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.h2 {
  font-weight: 400;
  font-size: 48px;
  line-height: 44px;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-roboto);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.018em;
  color: #000;
  width: fit-content;
}
.badge--green { background: var(--green); }
.badge--orange { background: var(--orange); }

/* ---------- Card: Semester-Fortschritt ---------- */
.impact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 33px;
}
.impact-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.impact-bottom {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 8px 0;
}

.progress-wrap {
  position: relative;
}

.progress {
  position: relative;
  height: 24px;
  border-radius: 4px;
  background-color: rgba(21, 25, 13, 0.06);
  overflow: hidden;
}
.progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/pattern.png");
  background-repeat: repeat;
  background-size: 40%;
  opacity: 0.3;
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  border-radius: 4px;
}

.scale {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

/* SOLL marker */
.soll {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  z-index: 2;
}
.soll-label {
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.soll-line {
  width: 2px;
  height: 42px;
  background: var(--yellow);
}

/* ---------- Card: Letzte Aktivität ---------- */
.activity {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.activity-title {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
}
.activity-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
}
.activity-item--sep {
  border-bottom: 1px dashed var(--dashed);
}
.activity-item img {
  width: 24px;
  height: 24px;
}
.activity-item .a-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.02em;
}
.activity-item .a-meta {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--meta);
}

/* ---------- Module cards ---------- */
.module {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 33px;
}
.module-head .info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.module-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stepper {
  position: relative;
  display: flex;
  gap: 4px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.step-label {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.step-bar {
  position: relative;
  height: 24px;
  border-radius: 4px;
  background-color: rgba(21, 25, 13, 0.06);
  overflow: hidden;
}
.step-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/pattern.png");
  background-repeat: repeat;
  background-size: 40%;
  opacity: 0.3;
}
.step-bar--done {
  background-color: var(--ink);
}
.step-bar--done::before {
  display: none;
}

/* Stepper SOLL marker — line only, no label (per design) */
.step-soll {
  position: absolute;
  top: 11px;
  width: 2px;
  height: 42px;
  background: var(--yellow);
  transform: translateX(-50%);
  z-index: 2;
}

.module-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.module-next .next-label {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-continue img {
  width: 20px;
  height: 20px;
}

/* ---------- Images ---------- */
.photo {
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  background: #e6e6e6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .page { padding: 40px 32px 80px; }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "impact   activity"
      "modC     modC"
      "modD     modD";
  }
}
@media (max-width: 680px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "impact" "activity" "modC" "modD";
  }
  .welcome-title, .h2 { font-size: 36px; line-height: 34px; }
}
