:root {
  --ink: #17352d;
  --ink-2: #284c41;
  --paper: #f2efe6;
  --cream: #fffdf7;
  --lime: #d9ff62;
  --coral: #ff715d;
  --blue: #bfe1ff;
  --gold: #ffdfa0;
  --line: rgba(23, 53, 45, .18);
  --shadow: 0 24px 70px rgba(23, 53, 45, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Inter, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.is-hidden { display: none !important; }

.topbar {
  min-height: 78px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 3rem;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 230, .94);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font: italic 700 1.05rem Georgia, serif; }
.topbar nav { display: flex; gap: 2rem; margin-right: auto; font-size: .9rem; }
.topbar nav a:hover, footer a:hover { opacity: .62; }
.user-area { display: flex; align-items: center; gap: .75rem; }
.language-picker select { padding: .48rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); font-size: .72rem; font-weight: 900; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.free-label, .quiet-button { border: 1px solid var(--ink); border-radius: 999px; padding: .55rem .9rem; font-size: .71rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.quiet-button { background: transparent; color: var(--ink); cursor: pointer; }
.quiet-button:hover { background: var(--ink); color: white; }

.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr); border-bottom: 1px solid var(--line); }
.hero-main { padding: clamp(4rem, 8vw, 8rem) 7vw 5rem 5vw; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 1.5rem; font-size: .72rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .17em; font-weight: 900; }
h1, h2, blockquote { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(4.2rem, 9vw, 9rem); line-height: .82; letter-spacing: -.075em; }
h1 em, blockquote em { color: var(--coral); font-weight: 400; }
.hero-text { max-width: 650px; margin: 2.6rem 0 0; color: #49665e; font-size: clamp(1.05rem, 1.35vw, 1.34rem); line-height: 1.65; }
.hero-actions { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.button { min-height: 58px; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.7rem; border: 0; padding: 0 1.4rem 0 1.6rem; font-weight: 800; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-dark span { color: var(--lime); font-size: 1.4rem; }
.button-lime { width: 100%; background: var(--lime); color: var(--ink); }
.button-lime:hover { background: white; }
.underlink { border-bottom: 1px solid currentColor; font-weight: 700; }
.facts { margin-top: 3.8rem; display: flex; gap: 2.2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }

.route-panel { padding: clamp(3rem, 6vw, 6rem); background: var(--ink); color: white; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.route-panel::after { content: ""; position: absolute; width: 360px; height: 360px; right: -180px; top: -180px; border: 1px solid rgba(217,255,98,.3); border-radius: 50%; box-shadow: 0 0 0 80px rgba(217,255,98,.035), 0 0 0 160px rgba(217,255,98,.02); }
.panel-kicker { display: flex; justify-content: space-between; font-size: .68rem; text-transform: uppercase; letter-spacing: .15em; }
.deutsch { margin: 3rem 0 2rem; color: var(--lime); font: italic 400 clamp(4rem, 7vw, 7rem)/1 Georgia, serif; letter-spacing: -.07em; }
.progress { height: 4px; background: rgba(255,255,255,.16); overflow: hidden; }
.progress span { display: block; width: 1%; height: 100%; background: var(--coral); transition: width .4s ease; }
.route-levels { margin-top: 2.7rem; display: grid; gap: .95rem; }
.route-levels > div { display: grid; grid-template-columns: 38px 46px 1fr; align-items: baseline; gap: 1rem; padding-bottom: .95rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.route-levels small { opacity: .5; }
.route-levels strong { color: var(--lime); font-size: 1.18rem; }
.route-levels span { opacity: .74; font-size: .92rem; }
.panel-note { margin: 2.2rem 0 0; font-size: .74rem; opacity: .58; }

.method { padding: 5rem 5vw; display: grid; grid-template-columns: 1fr 1.2fr .9fr; gap: 5vw; background: var(--cream); border-bottom: 1px solid var(--line); }
.section-number { font-size: .68rem; opacity: .5; }
.method h2 { margin: .8rem 0 0; font-size: clamp(2.1rem, 3.5vw, 3.7rem); line-height: 1; letter-spacing: -.045em; }
.method > p { margin: 1.8rem 0 0; color: #49665e; font-size: 1.05rem; line-height: 1.75; }
.chips { display: flex; justify-content: flex-end; align-content: flex-start; gap: .5rem; flex-wrap: wrap; }
.chips span { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; }

.registration { padding: clamp(5rem, 9vw, 9rem) 5vw; display: grid; grid-template-columns: 1fr minmax(380px, .8fr); gap: clamp(3rem, 8vw, 9rem); background: var(--cream); border-bottom: 1px solid var(--line); }
.registration-copy h2 { margin: 0; font-size: clamp(3.2rem, 6vw, 6.5rem); line-height: .94; letter-spacing: -.06em; }
.registration-copy > p:last-of-type { max-width: 640px; margin-top: 2rem; color: #49665e; font-size: 1.08rem; line-height: 1.7; }
.registration-copy ul { margin: 2rem 0 0; padding: 0; list-style: none; }
.registration-copy li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.registration-copy li::before { content: "✓"; width: 24px; height: 24px; margin-right: .8rem; display: inline-grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: .7rem; font-weight: 900; }
.register-card { align-self: start; display: grid; gap: 1.35rem; padding: clamp(2rem, 4vw, 3.5rem); background: var(--ink); color: white; box-shadow: 24px 24px 0 var(--lime); }
.card-index { margin-bottom: 1.2rem; color: var(--lime); font-size: .68rem; letter-spacing: .15em; }
.register-card > label:not(.consent) { display: grid; gap: .65rem; }
.register-card > label > span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .72; }
.register-card input[type="text"], .register-card input[type="email"] { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); outline: 0; padding: .8rem 0; background: transparent; color: white; font-size: 1.13rem; }
.register-card input:focus { border-color: var(--lime); }
.register-card input::placeholder { color: rgba(255,255,255,.38); }
.consent { display: flex; align-items: flex-start; gap: .7rem; color: rgba(255,255,255,.72); line-height: 1.4; }
.consent input { margin-top: .15rem; accent-color: var(--lime); }
.consent span { text-transform: none !important; letter-spacing: 0 !important; font-size: .75rem !important; }
.consent a { color: var(--lime); text-decoration: underline; }
.form-message { min-height: 1.2em; margin: 0; color: #ffd5ce; font-size: .78rem; line-height: 1.4; }

.program { padding: clamp(5rem, 8vw, 8rem) 5vw; position: relative; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.section-heading h2 { margin: 0; font-size: clamp(3.2rem, 6vw, 6rem); line-height: .95; letter-spacing: -.055em; }
.section-heading > p { max-width: 310px; color: #49665e; line-height: 1.6; }
.program-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.filters { display: flex; gap: .45rem; flex-wrap: wrap; }
.filters button { padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; }
.filters button:hover, .filters button.is-active { background: var(--ink); color: white; }
.search { min-width: 250px; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-bottom: 1px solid var(--ink); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.lesson-list { border-top: 1px solid var(--ink); }
.lesson-row { min-height: 104px; display: grid; grid-template-columns: 52px 64px minmax(0,1fr) auto 36px; align-items: center; gap: 1.35rem; border-bottom: 1px solid var(--line); transition: padding .18s ease, background .18s ease; }
.lesson-row:hover { padding-left: 1rem; background: rgba(255,253,247,.72); }
.lesson-row.is-done { opacity: .62; }
.lesson-number { font: italic 400 1.15rem Georgia, serif; }
.level { width: 48px; height: 29px; display: inline-grid; place-items: center; border-radius: 999px; font-size: .7rem; font-weight: 900; }
.level-A1 { background: var(--lime); }.level-A2 { background: var(--gold); }.level-B1 { background: var(--blue); }.level-B2 { background: #ffc7bd; }
.lesson-copy { display: grid; gap: .35rem; }
.lesson-copy strong { font: 400 clamp(1.25rem,2vw,1.82rem) Georgia, serif; letter-spacing: -.025em; }
.lesson-copy small { color: #49665e; }
.done { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.lesson-arrow { font-size: 1.35rem; }
.course-lock { display: none; position: absolute; inset: 15rem 5vw 6rem; align-items: center; justify-content: center; background: linear-gradient(to bottom, rgba(242,239,230,.28), rgba(242,239,230,.95) 30%); backdrop-filter: blur(5px); text-align: center; }
.is-locked .course-lock { display: flex; }
.course-lock > div { max-width: 430px; display: grid; gap: 1rem; padding: 2.5rem; background: var(--cream); box-shadow: var(--shadow); }
.course-lock span { font-size: 2rem; }.course-lock strong { font: 400 2rem/1.1 Georgia, serif; }.course-lock a { color: var(--coral); font-weight: 800; }

.promise { padding: clamp(5rem, 10vw, 10rem) 5vw; background: var(--coral); }
.promise blockquote { margin: 0; font-size: clamp(3.1rem, 7.2vw, 7.4rem); line-height: .98; letter-spacing: -.06em; }
.promise blockquote em { color: var(--cream); }
.promise > p:last-child { max-width: 600px; margin: 3rem 0 0 auto; font-size: 1.07rem; line-height: 1.75; }

footer { min-height: 170px; padding: 3rem 5vw; display: flex; justify-content: space-between; align-items: end; gap: 2rem; background: var(--ink); color: white; font-size: .78rem; }
footer p { margin: 0; opacity: .68; }
footer > div { display: flex; gap: 1.2rem; opacity: .6; }

.simple-page { min-height: 100vh; padding: 5rem max(1.2rem, calc((100vw - 820px)/2)); background: var(--cream); }
.simple-page h1 { font-size: clamp(3rem,7vw,6rem); line-height: .95; }
.simple-page h2 { margin-top: 2.5rem; font-size: 2rem; }
.simple-page p, .simple-page li { color: #49665e; line-height: 1.75; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 700px; }
  .method, .registration { grid-template-columns: 1fr; }
  .chips { justify-content: flex-start; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 68px; }
  .topbar { min-height: 68px; padding: 0 1rem; }
  .topbar nav, .free-label { display: none; }
  .user-area { margin-left: auto; }
  .hero-main { min-height: 620px; padding: 4.5rem 1.2rem 3rem; }
  h1 { font-size: clamp(4rem,22vw,6rem); }
  .facts { gap: .8rem; justify-content: space-between; }
  .route-panel { padding: 3.5rem 1.2rem; }
  .deutsch { font-size: 4rem; }
  .method, .registration, .program, .promise { padding-left: 1.2rem; padding-right: 1.2rem; }
  .register-card { box-shadow: 12px 12px 0 var(--lime); }
  .section-heading, .program-tools, footer { flex-direction: column; align-items: stretch; }
  .section-heading { display: flex; }
  .search { min-width: 0; }
  .lesson-row { min-height: 116px; grid-template-columns: 34px 46px minmax(0,1fr) 22px; gap: .65rem; }
  .done { display: none; }
  .course-lock { inset: 17rem 1.2rem 5rem; }
  .promise blockquote br { display: none; }
  footer { align-items: flex-start; }
}

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