:root {
  --blue: #14324a;
  --petrol: #2d5c66;
  --copper: #b57a44;
  --gold: #d4b06a;
  --paper: #f6f2eb;
  --card: #fcfaf7;
  --ink: #202020;
  --muted: #5d625f;
  --line: rgba(20, 50, 74, 0.16);
  --shadow: 0 18px 50px rgba(20, 50, 74, 0.08);
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

body,
button,
input,
textarea,
select {
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.54), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(212, 176, 106, 0.12), transparent 32%);
  opacity: 0.8;
  z-index: -1;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--petrol);
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(20, 50, 74, 0.12);
  background: rgba(246, 242, 235, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 0.94rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--blue);
  font-size: 1.3rem;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero.compact {
  min-height: 64vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(0.92);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 242, 235, 0.96), rgba(246, 242, 235, 0.72) 42%, rgba(246, 242, 235, 0.28)),
    linear-gradient(0deg, var(--paper), rgba(246, 242, 235, 0.14) 38%);
}

.hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 96px;
}

.eyebrow,
.breadcrumb {
  color: var(--petrol);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb {
  margin-bottom: 22px;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--blue);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  margin-top: 14px;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  max-width: 710px;
  margin: 26px 0 0;
  color: #303433;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.scroll-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 52px;
  color: var(--muted);
  text-decoration: none;
}

.scroll-note span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section + .section {
  border-top: 1px solid rgba(20, 50, 74, 0.1);
}

.section-header {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.feature,
.timeline-item,
.note-panel {
  background: rgba(252, 250, 247, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card {
  min-height: 100%;
  padding: 24px;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.card:hover {
  transform: translateY(-3px);
  background: #fffdf9;
  border-color: rgba(20, 50, 74, 0.28);
}

.card p,
.feature p,
.timeline-item p,
.note-panel p {
  color: var(--muted);
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid rgba(181, 122, 68, 0.35);
  border-radius: 999px;
  color: #77502c;
  background: rgba(212, 176, 106, 0.11);
  font-size: 0.82rem;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 32px;
  box-shadow: var(--shadow);
}

.feature img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.wide-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wide-figure img {
  width: 100%;
  background: var(--card);
}

.wide-figure figcaption {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.reference-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease;
}

.button:hover {
  background: #21435e;
  color: #fff;
}

.journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(170px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.journey-step {
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(20, 50, 74, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(252, 250, 247, 0.92), rgba(246, 242, 235, 0.68)),
    radial-gradient(circle at 22% 18%, rgba(212, 176, 106, 0.3), transparent 26%),
    linear-gradient(120deg, transparent 52%, rgba(45, 92, 102, 0.14));
}

.journey-step strong {
  display: block;
  color: var(--copper);
  font-size: 0.82rem;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 22px;
}

.footer {
  margin-top: 70px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  background: rgba(20, 50, 74, 0.05);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 28px;
}

.footer a {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.teacher-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.teacher-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(252, 250, 247, 0.72);
  padding: 28px 20px;
}

.teacher-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.teacher-sidebar a[aria-current="page"],
.teacher-sidebar a:hover {
  background: rgba(20, 50, 74, 0.08);
  color: var(--blue);
}

.teacher-main {
  padding: 32px;
}

.teacher-topbar,
.teacher-layout {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.teacher-topbar {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.module-sequence {
  width: min(1280px, 100%);
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 6px;
  overflow-x: auto;
}

.module-sequence-link {
  min-height: 54px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.78);
  color: var(--ink);
  text-decoration: none;
}

.module-sequence-link:hover {
  border-color: rgba(20, 50, 74, 0.28);
  background: rgba(255, 253, 249, 0.96);
}

.module-sequence-link.active {
  background: var(--blue);
  color: #fff;
}

.module-sequence-link strong {
  display: block;
  color: var(--petrol);
  font-size: 0.74rem;
}

.module-sequence-link.active strong,
.module-sequence-link.active span {
  color: #fff;
}

.module-sequence-link span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.16;
}

.teacher-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.lesson-hero {
  min-height: 300px;
  display: grid;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(246, 242, 235, 0.98), rgba(246, 242, 235, 0.72) 56%, rgba(246, 242, 235, 0.24)),
    url("assets/lernendes-ohr-teacher.svg") center / cover;
}

.lesson-hero.klangraum {
  background:
    linear-gradient(90deg, rgba(246, 242, 235, 0.98), rgba(246, 242, 235, 0.74) 56%, rgba(246, 242, 235, 0.26)),
    url("assets/klangraum-teacher.svg") center / cover;
}

.lesson-hero h1 {
  max-width: 560px;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
}

.lesson-quote {
  max-width: 460px;
  color: #3d4642;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
}

.teacher-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(252, 250, 247, 0.88);
  overflow: hidden;
}

.teacher-panel-header {
  padding: 14px 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.teacher-panel-body {
  padding: 18px;
}

.quick-facts,
.lesson-cards {
  display: grid;
  gap: 16px;
}

.quick-facts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fact strong {
  display: block;
  color: var(--blue);
  font-size: 0.94rem;
}

.fact p,
.mini-card p,
.mini-card li {
  color: var(--muted);
  font-size: 0.92rem;
}

.spiral {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 8px;
  overflow-x: auto;
}

.spiral-step {
  display: block;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.spiral-step:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 50, 74, 0.28);
  background: rgba(255, 253, 249, 0.94);
}

.spiral-step.active {
  background: var(--blue);
  color: #fff;
}

.spiral-step strong {
  display: block;
  color: var(--blue);
}

.spiral-step.active strong,
.spiral-step.active span {
  color: #fff;
}

.spiral-step span {
  color: var(--muted);
  font-size: 0.82rem;
}

.journey-step {
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.journey-step:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 50, 74, 0.28);
  background: rgba(255, 253, 249, 0.94);
}

.lesson-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.mini-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(252, 250, 247, 0.88);
}

.mini-card {
  padding: 16px;
}

.mini-card h3 {
  font-size: 1.05rem;
}

.mini-card ul,
.mini-card ol,
.side-card ul {
  padding-left: 18px;
}

.timeline-compact {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.timeline-compact div {
  padding-top: 10px;
  border-top: 2px solid rgba(20, 50, 74, 0.2);
  font-size: 0.9rem;
}

.full-lesson-plan {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.full-lesson-plan summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}

.phase-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.phase-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.74);
}

.phase-list span {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.phase-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.authority-recommendations {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--petrol);
  border-radius: 6px;
  background: rgba(45, 92, 102, 0.08);
}

.authority-recommendations h3 {
  margin-bottom: 8px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.98rem;
}

.authority-recommendations ul {
  margin: 0;
  padding-left: 18px;
}

.source-depth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.source-depth details,
.full-lesson-plan,
.didactic-details details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
}

.source-depth summary,
.full-lesson-plan summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--blue);
  font-weight: 700;
}

.source-depth ul,
.exercise-list {
  margin: 0;
  padding: 0 18px 16px 34px;
}

.source-depth li {
  margin: 8px 0;
  color: var(--muted);
}

.exercise-list li {
  padding-right: 6px;
}

.exercise-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.exercise-list span {
  display: block;
  color: var(--muted);
}

.lesson-plan-table,
.compact-source-table {
  width: calc(100% - 28px);
  margin: 0 14px 16px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}

.lesson-plan-table th,
.lesson-plan-table td,
.compact-source-table th,
.compact-source-table td {
  padding: 10px 11px;
  border: 1px solid rgba(31, 47, 42, 0.14);
  vertical-align: top;
  text-align: left;
}

.lesson-plan-table th,
.compact-source-table th {
  background: rgba(45, 92, 102, 0.12);
  color: var(--ink);
  font-weight: 700;
}

.lesson-plan-table th:first-child,
.lesson-plan-table td:first-child {
  width: 16%;
  white-space: nowrap;
}

.lesson-plan-table th:nth-child(2),
.lesson-plan-table td:nth-child(2) {
  width: 22%;
}

.music-page {
  --music-ink: #fff7e8;
  --music-bg: #14100e;
  --music-panel: rgba(26, 20, 17, 0.94);
  --music-gold: #d8a24a;
  --music-red: #8e2f29;
  background: var(--music-bg);
  color: var(--music-ink);
}

.music-page .site-header {
  background: rgba(20, 16, 14, 0.88);
  border-bottom-color: rgba(216, 162, 74, 0.24);
}

.music-page .brand,
.music-page .nav-links a,
.music-page .nav-links a[aria-current="page"] {
  color: var(--music-ink);
}

.music-page .menu-button {
  background: rgba(248, 234, 210, 0.08);
  color: var(--music-ink);
  border-color: rgba(216, 162, 74, 0.28);
}

.music-hero {
  min-height: 54vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(115deg, rgba(14, 11, 10, 0.99), rgba(47, 24, 20, 0.92) 56%, rgba(96, 43, 32, 0.8)),
    linear-gradient(180deg, #14100e, #241512);
  color: var(--music-ink);
}

.music-hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 72px;
}

.music-hero .breadcrumb,
.music-hero .eyebrow,
.music-hero .lead {
  color: rgba(255, 247, 232, 0.88);
}

.album-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.54fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 46px max(24px, calc((100vw - 1200px) / 2));
  color: var(--music-ink);
}

.album-primary {
  background:
    linear-gradient(120deg, #120f0d, #2c1715 58%, #773229);
}

.album-secondary {
  background:
    linear-gradient(120deg, #11171b, #24323a 58%, #5d655e);
}

.album-tertiary {
  background:
    linear-gradient(120deg, #16120f, #29241f 56%, #60462d);
}

.album-copy {
  padding: 8px 0;
}

.album-copy h2 {
  color: var(--music-ink);
  font-size: clamp(2.1rem, 3.5vw, 3.8rem);
  margin-bottom: 0;
}

.album-copy p {
  max-width: 520px;
  color: rgba(255, 247, 232, 0.9);
}

.album-section .status {
  color: #f2c36a;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spotify-frame {
  border: 1px solid rgba(255, 247, 232, 0.24);
  border-radius: 12px;
  overflow: hidden;
  background: #121212;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.44);
}

.spotify-frame iframe {
  display: block;
}

.mathilda-bio {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  padding: 58px max(24px, calc((100vw - 1200px) / 2));
  background: #fffaf0;
  color: #17211f;
}

.mathilda-bio h2 {
  margin-bottom: 0;
  color: #17211f;
}

.mathilda-bio .eyebrow {
  color: #715423;
}

.mathilda-bio p {
  margin: 0;
  color: #34413d;
  font-size: 1.04rem;
  line-height: 1.75;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  font-size: 1.2rem;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  margin: 10px 0;
}

.check-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 4px;
  background: rgba(45, 92, 102, 0.14);
  color: var(--petrol);
  font-weight: 700;
}

.note-box {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  padding: 12px;
  color: var(--ink);
  font: inherit;
}

.download-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(20, 50, 74, 0.1);
  font-size: 0.9rem;
}

.didactic-details {
  display: grid;
  gap: 10px;
}

.didactic-details details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
  padding: 12px 14px;
}

.didactic-details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}

.didactic-details p,
.didactic-details li {
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 16px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .music-page .nav-links {
    background: rgba(20, 16, 14, 0.98);
    border-bottom-color: rgba(216, 162, 74, 0.24);
  }

  .grid.four,
  .grid.three,
  .grid.two,
  .reference-grid,
  .teacher-shell,
  .teacher-layout,
  .source-depth-grid,
  .quick-facts,
  .lesson-cards,
  .timeline-compact,
  .feature,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .teacher-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .teacher-main {
    padding: 20px 16px;
  }

  .module-sequence {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    padding-bottom: 4px;
  }

  .album-section,
  .mathilda-bio {
    grid-template-columns: 1fr;
    padding-block: 42px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero-inner {
    padding: 92px 0 72px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .feature {
    padding: 20px;
  }

  .music-hero {
    min-height: 54vh;
  }

  .music-hero-inner {
    padding: 88px 0 64px;
  }

  .album-section {
    padding-inline: 16px;
  }

  .mathilda-bio {
    padding-inline: 16px;
    gap: 18px;
  }

  .spotify-frame iframe {
    height: 360px;
  }

  .lesson-plan-table,
  .compact-source-table {
    display: block;
    width: auto;
    overflow-x: auto;
    white-space: normal;
  }
}
