:root {
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #eef2ea;
  --ink: #17211b;
  --muted: #637069;
  --line: #dce2db;
  --accent: #176b4d;
  --accent-dark: #0f513a;
  --warm: #e9a23b;
  --danger: #a64b3c;
  --shadow: 0 18px 50px rgba(24, 48, 36, .08);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 226, 219, .85);
  background: rgba(245, 246, 242, .92);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: white;
  background: var(--accent);
  font-size: 13px;
  letter-spacing: .04em;
}

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: white; color: var(--ink); }

main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 88px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 38px;
}

.eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 9px 0 12px; font-size: clamp(38px, 6vw, 66px); line-height: .98; letter-spacing: -.055em; }
.hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; }
.updated { color: var(--muted); font-size: 13px; text-align: right; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.review-card {
  min-height: 270px;
  border: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1100px;
}
.flip-card-inner {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform .55s cubic-bezier(.2, .75, .25, 1);
  transform-style: preserve-3d;
}
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-face {
  grid-area: 1 / 1;
  min-width: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-card-back {
  transform: rotateY(180deg);
  border-color: #bfd1c5;
  background: var(--surface-soft);
}
.card-number { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .09em; }
.prompt { margin: 18px 0 22px; font-size: 22px; line-height: 1.25; font-weight: 720; letter-spacing: -.025em; }
.reveal {
  width: fit-content;
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.reveal:hover { background: var(--accent-dark); }
.answer { margin: 20px 0 24px; }
.answer-de { margin: 0 0 12px; color: var(--accent-dark); font-size: 22px; line-height: 1.3; font-weight: 750; }
.answer-note { margin: 0; color: var(--muted); font-size: 14px; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 0 22px; }
.section-head h1, .section-head h2 { margin: 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); }

.panel { padding: 28px; }
.panel + .panel, .content-grid + .panel { margin-top: 18px; }
.panel h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.025em; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.skill-list { display: grid; gap: 18px; }
.skill-row { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr 36px; gap: 14px; align-items: center; }
.skill-name { font-weight: 680; }
.bar { height: 9px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.score { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.unknown .bar > span { width: 0 !important; }
.unknown .score { font-size: 12px; }

.priority-list { margin: 0; padding-left: 22px; }
.priority-list li + li { margin-top: 10px; }

.session-list { display: grid; gap: 14px; }
.session-link { display: block; padding: 24px; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.session-link:hover { transform: translateY(-2px); border-color: #b7c6bb; }
.session-meta { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.session-link h2 { margin: 7px 0 6px; font-size: 22px; }
.session-link p { margin: 0; color: var(--muted); }

.prose { max-width: 820px; }
.prose h1 { font-size: clamp(34px, 5vw, 54px); }
.prose h2 { margin-top: 38px; font-size: 24px; letter-spacing: -.025em; }
.prose h3 { margin-top: 28px; }
.prose li + li { margin-top: 7px; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-soft); color: var(--accent-dark); }
.prose blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--warm); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }

.teacher-banner { margin-bottom: 22px; padding: 20px 24px; border-radius: 16px; background: #173d30; color: white; }
.teacher-banner strong { display: block; font-size: 18px; }
.teacher-banner span { color: #c8dbd1; }

.footer { width: min(1120px, calc(100% - 32px)); margin: auto; padding: 24px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .nav { align-items: flex-start; padding: 14px 0; }
  .nav-links { max-width: 230px; justify-content: flex-end; flex-wrap: wrap; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  main { padding-top: 38px; }
  .hero, .grid, .content-grid { grid-template-columns: 1fr; }
  .updated { text-align: left; }
  .review-card { min-height: 220px; }
  .skill-row { grid-template-columns: 1fr 1.4fr 30px; font-size: 14px; }
  .section-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flip-card-inner { transition: none; }
}
