/*
 * lk-mitglieder: member area styles.
 *
 * Design direction C („Fortschritt"), ../pages/platform_mockups/c_fortschritt.html.
 * The :root tokens below are copied from the mockup unchanged; to switch to
 * direction A or B, replace the token block and leave the components alone.
 * The mockup's --img-* tokens (inline placeholder photos) are left out: real
 * images come from the course covers.
 *
 * Fonts: Cormorant Garamond + Inter, SIL OFL 1.1 (fonts/OFL.txt), variable
 * woff2 limited to the mockup's weights, latin + latin-ext only.
 * 'Literaturnaya' stays first in --font-display and falls back to Cormorant
 * Garamond until its licence is cleared and the file is added.
 */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/cormorantgaramond-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ------------------------------------------------- tokens (direction C) */
:root {
  --font-display: 'Literaturnaya', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;
  --dur-slow: 420ms;
  --doc-bg: #22201e;
  --doc-ink: #f3ede7;
  --doc-ink-2: #b9b0a7;
  --doc-line: #3a3632;
  --doc-accent: #d8c4b0;
  --ext: #3f5bd0;
  --ext-tint: rgba(63, 91, 208, 0.045);
  --danger: #9b3b2e;
  --danger-tint: #f8ebe8;

  --bar: #7a6654;
  --bar-ink: #fcf3f5;
  --bar-ink-2: #eadfd6;
  --ground: #efe6dc;
  --ground-2: #e5d8ca;
  --surface: #ffffff;
  --surface-2: #f8f3ee;
  --line: #e6dbcf;
  --line-strong: #cdbcab;
  --ink: #1d1814;
  --ink-2: #443a32;
  --ink-3: #66594d;
  --accent: #7a6654;
  --accent-hover: #5f4e40;
  --accent-ink: #634f3e;
  --on-accent: #fcf3f5;
  --accent-tint: #f3ebe3;
  --second: #1c4a43;
  --focus: #1c4a43;
  --mark: #ecdcc6;
  --veil: 29, 24, 20;
  --shadow-1: 0 1px 2px rgba(61, 43, 28, 0.06), 0 6px 18px rgba(61, 43, 28, 0.07);
  --shadow-2: 0 2px 6px rgba(61, 43, 28, 0.08), 0 18px 40px rgba(61, 43, 28, 0.14);
  --card-border: 1px solid transparent;
  --radius: 4px;
  --radius-lg: 6px;
  --display-weight: 500;
  --display-italic-weight: 500;
  --photo-filter: saturate(0.92);

}


/* ------------------------------------------------- base (from the mockup) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
  scrollbar-color: var(--line-strong) transparent;
}
::selection { background: var(--mark); color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; scroll-behavior: auto !important; } }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[class*="__title"], h1, h2, .thumb__name, .wordmark { font-variant-numeric: lining-nums; }

/* ------------------------------------------------- shared components (from the mockup) */
.wordmark { font-family: var(--font-display); font-size: 1.4rem; font-weight: var(--display-weight); letter-spacing: 0.005em; line-height: 1; white-space: nowrap; }
.wordmark span { font-style: italic; font-weight: var(--display-italic-weight); }
.wordmark--sub { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.02em; border: 1px solid var(--accent); transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--ghost { background: var(--surface); color: var(--accent-ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-ink); }
.back-band .btn--ghost:hover .ic { transform: translateX(-3px); }
.btn--block { width: 100%; }
.link { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); transition: text-decoration-color var(--dur) var(--ease); }
.link:hover { text-decoration-color: currentColor; }
.link--arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 0.9375rem; margin-top: 18px; }
.link--arrow:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.field { display: grid; gap: 6px; margin-top: 18px; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__row .link { font-size: 0.875rem; }
.field input, .search input { width: 100%; height: 50px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 1rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.field input::placeholder, .search input::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover, .search input:hover { border-color: var(--ink-3); }
.field input:focus, .search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.field__pw { position: relative; }
.field__pw input { padding-right: 52px; letter-spacing: 0.12em; }
.field__eye { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-3); border-radius: var(--radius); }
.field__eye:hover { color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; margin: 18px 0 22px; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
[class*="ph-"] { background-size: cover; background-position: center 35%; background-color: var(--ground-2); }

/* ------------------------------------------------- login */
.login { display: grid; min-height: 100%; background: var(--ground); }
.login__photo { position: relative; height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px var(--gutter); color: #fff; background-position: center 30%; filter: var(--photo-filter); }
.login__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--veil), 0.5) 0%, rgba(var(--veil), 0) 34%, rgba(var(--veil), 0.1) 52%, rgba(var(--veil), 0.78) 100%); }
.login__photo > * { position: relative; z-index: 1; }
.wordmark--light { color: #fff; font-size: 1.6rem; }
.login__claim { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.25; padding-bottom: 34px; }
.login__side { padding: 0 var(--gutter) 40px; display: grid; justify-items: center; align-content: start; }
.login__card { position: relative; z-index: 1; width: 100%; max-width: 440px; margin-top: -30px; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 30px 24px 26px; }
.login__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.01em; }
.login__title span { color: var(--accent-ink); }
.login__lede { margin-top: 10px; color: var(--ink-2); font-size: 0.9375rem; }
.login__help { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-3); line-height: 1.55; }
.login__legal { margin-top: 22px; display: flex; gap: 22px; font-size: 0.8125rem; color: var(--ink-3); }
.login__legal a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 900px) {
  .login { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 820px; }
  .login__photo { height: auto; padding: 40px 48px; }
  .login__claim { font-size: 1.75rem; padding-bottom: 8px; }
  .login__side { align-content: center; padding: 48px; }
  .login__card { margin-top: 0; padding: 44px 44px 36px; }
  .login__title { font-size: 2.75rem; }
}

/* ------------------------------------------------- states, alerts */
.login__card--state { margin-top: 0; max-width: none; padding: 26px 22px 24px; }
.login__card--state .login__title { font-size: 2rem; }
.state__btn { margin-top: 22px; }
.alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--danger-tint); color: var(--danger); font-size: 0.9375rem; line-height: 1.5; }
.alert .ic { margin-top: 2px; }
.alert .link { color: inherit; text-decoration-color: currentColor; }
.alert--ok { margin-top: 0; background: var(--accent-tint); color: var(--ink-2); }
.alert--ok strong { color: var(--ink); }
.alert--ok .ic { color: var(--accent-ink); }
.field--error input { border-color: var(--danger); }

/* ------------------------------------------------- plugin additions */
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.skip:focus { top: 12px; }
/* The honeypot: off screen, never display:none (some bots skip hidden fields). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.login__card .alert { margin-top: 18px; }
.login__card > .alert:first-child { margin-top: 0; margin-bottom: 4px; }
.login__card form + .link--arrow, .login__card .alert + .link--arrow { display: inline-flex; }
.login__photo { background-color: var(--bar); background-size: cover; background-position: center 30%; }
.check input:focus-visible { outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.login__submit { margin-top: 22px; }
.login__title + .alert, .login__title + .alert--ok { margin-top: 16px; }
.lkm-anmelden .login { min-height: 100vh; min-height: 100dvh; }

/* ------------------------------------------------- layout, bar (from the mockup) */
.wrap { max-width: var(--content); margin: 0 auto; padding-inline: var(--gutter); }
.page { padding-top: 20px; padding-bottom: 56px; }
@media (min-width: 900px) { .page { padding-top: 36px; padding-bottom: 88px; } }
.page--narrow > * { max-width: 760px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 16px; }
.section-head h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
@media (min-width: 900px) { .section-head { margin: 56px 0 22px; } }
.bar { background: var(--bar); color: var(--bar-ink); position: relative; z-index: 2; }
.bar__in { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); height: 58px; display: flex; align-items: center; gap: 16px; }
.bar__back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 500; padding: 8px 10px 8px 0; color: var(--bar-ink); }
.bar__back .ic { width: 1.15em; height: 1.15em; }
.bar__nav { display: none; }
.bar__tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bar__icon, .bar__avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--bar-ink); transition: background-color var(--dur) var(--ease); }
.bar__icon:hover, .bar__avatar:hover, .bar__logout:hover { background: rgba(255, 255, 255, 0.12); }
.bar__avatar .ic { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--bar-ink); color: var(--bar); }
.bar__logout { display: none; }
@media (min-width: 900px) {
  .bar__in { height: 66px; gap: 36px; }
  .bar__back { display: none; }
  .wordmark--sub { display: inline; }
  .bar__nav { display: flex; gap: 6px; height: 100%; }
  .bar__nav a { display: flex; align-items: center; padding: 0 12px; font-size: 0.9375rem; color: var(--bar-ink-2); position: relative; transition: color var(--dur) var(--ease); }
  .bar__nav a:hover { color: var(--bar-ink); }
  .bar__nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--bar-ink); }
  .bar__nav a[aria-current] { color: var(--bar-ink); font-weight: 500; }
  .bar__icon--search, .bar__menu { display: none; }
  .bar__logout { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); font-size: 0.9375rem; color: var(--bar-ink-2); transition: background-color var(--dur) var(--ease); }
}

/* ------------------------------------------------- Übersicht: banner, hello, tiles (from the mockup) */
.banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 168px; display: flex; align-items: flex-end; }
.banner__photo { position: absolute; inset: 0; background-position: center 30%; filter: var(--photo-filter); }
.banner__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--veil), 0.78) 0%, rgba(var(--veil), 0.45) 45%, rgba(var(--veil), 0) 80%); }
.banner__text { position: relative; padding: 22px 22px 22px; max-width: 34rem; }
.banner__sub { font-size: 1rem; font-weight: 500; letter-spacing: 0.01em; opacity: 0.92; margin-top: 8px; }
@media (min-width: 900px) { .banner__sub { font-size: 1.125rem; } }
.banner__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.25rem, 6vw, 4rem); line-height: 0.98; letter-spacing: -0.015em; hyphens: manual; }
@media (max-width: 899px) {
  .banner { min-height: 220px; }
  .banner__photo { background-position: center 18%; }
  .banner__photo::after { background: linear-gradient(0deg, rgba(var(--veil), 0.85) 0%, rgba(var(--veil), 0.5) 34%, rgba(var(--veil), 0) 62%); }
  .banner__title { font-size: 2.125rem; }
}
@media (min-width: 900px) { .banner { min-height: 300px; } .banner__text { padding: 44px 48px; } }

.hello { display: grid; gap: 14px; margin-top: 22px; }
.hello__text { font-size: 1.125rem; color: var(--ink-2); }
.search { position: relative; }
.search__ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 44px; box-shadow: var(--shadow-1); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
@media (min-width: 900px) {
  .hello { grid-template-columns: 1fr minmax(0, 420px); align-items: center; margin-top: 32px; }
  .hello__text { font-size: 1.25rem; }
}

/* ------------------------------------------------- course cards */
.courses { display: grid; gap: 20px; }
@media (min-width: 700px) { .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .courses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.course { position: relative; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), border-color var(--dur) var(--ease); }
.course:not(.course--locked):hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.course:not(.course--locked):hover .thumb { background-size: 108%; }
.course:focus-within { box-shadow: var(--shadow-2); }
.course__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course__name { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-lg); }
.course__meta { font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.course__meta--lock { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 500; }
.course__desc { color: var(--ink-2); font-size: 0.9375rem; margin-top: 4px; }
.course__cta { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 600; font-size: 0.9375rem; }
.course__cta .ic { transition: transform var(--dur) var(--ease); }
.course:hover .course__cta .ic { transform: translateX(4px); }
.course--locked .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 2; }
.course--locked .course__desc { margin-bottom: 16px; }

.thumb { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; color: #fff; background-size: 100%; background-size: cover; filter: var(--photo-filter); transition: background-size var(--dur-slow) var(--ease); }
.thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--veil), 0.72) 0%, rgba(var(--veil), 0.3) 48%, rgba(var(--veil), 0) 75%), linear-gradient(0deg, rgba(var(--veil), 0.35), rgba(var(--veil), 0) 50%); }
.thumb__title { position: relative; padding: 0 18px 16px; display: grid; gap: 2px; max-width: 78%; }
.thumb__level { font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; }
.thumb__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.75rem, 4.2vw, 2.125rem); line-height: 0.98; letter-spacing: -0.01em; hyphens: manual; }
.thumb--locked { filter: grayscale(1) contrast(0.9) brightness(0.95); }
.thumb--locked::before { background: linear-gradient(90deg, rgba(var(--veil), 0.78) 0%, rgba(var(--veil), 0.5) 60%, rgba(var(--veil), 0.35) 100%); }
.thumb__lock { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 0.8125rem; font-weight: 600; }
.thumb__lock .ic { width: 16px; height: 16px; }
.thumb--head { border-radius: var(--radius); overflow: hidden; }


/* ------------------------------------------------- footer (from the mockup) */
.foot { border-top: 1px solid var(--line); padding: 22px 0 26px; font-size: 0.8125rem; color: var(--ink-3); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }

/* ------------------------------------------------- Übersicht: plugin additions */
/* The mockup paints photos as backgrounds; here they are real <img> with
   srcset, filling the same boxes. */
.banner__photo { overflow: hidden; background-color: var(--bar); }
.banner__img, .thumb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__img { object-position: center 30%; }
.banner__photo::after { z-index: 1; }
.banner__text { z-index: 1; color: #fff; }
.thumb { overflow: hidden; background-color: var(--ground-2); }
.thumb__img { object-position: center 35%; transition: transform var(--dur-slow) var(--ease); }
.course:not(.course--locked):hover .thumb__img { transform: scale(1.08); }
.thumb::before, .thumb__title, .thumb__lock { z-index: 1; }
.course__desc .link, .course .btn { position: relative; z-index: 2; }
.course__meta--alert { color: var(--danger); }
.none { color: var(--ink-3); }
.lkm { display: flex; flex-direction: column; min-height: 100vh; }
.lkm > .page { flex: 1; width: 100%; }
@media (max-width: 899px) { .banner__img { object-position: center 18%; } }
.menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 8px var(--gutter) 14px; background: var(--bar); border-top: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow-2); }
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--bar-ink-2); font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.menu a:last-child { border-bottom: 0; }
.menu a[aria-current] { color: var(--bar-ink); font-weight: 500; }
@media (min-width: 900px) { .menu { display: none !important; } }
.bar__avatar[aria-current] .ic { box-shadow: 0 0 0 2px var(--bar-ink-2); }

/* ------------------------------------------------- course page (from the mockup) */
.course-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.course-head__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; padding-bottom: 26px; }
.course-head h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.25rem, 5.4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.course-head__meta { margin-top: 8px; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.course-head__intro { margin-top: 14px; color: var(--ink-2); max-width: 62ch; }
.course-head__text { display: contents; }
.course-head .thumb--head { order: -1; aspect-ratio: 16 / 9; margin: 0 calc(var(--gutter) * -1) 22px; border-radius: 0; }
.course-head .thumb--head .thumb__title, .course-head .thumb--head::before { display: none; }
@media (min-width: 900px) {
  .course-head__in { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; padding-top: 48px; padding-bottom: 48px; align-items: center; }
  .course-head__text { display: block; }
  .course-head__intro { margin-top: 18px; font-size: 1.0625rem; }
  .course-head .thumb--head { order: 0; aspect-ratio: 16 / 9; margin: 0; border-radius: var(--radius); }
  .course-head .ext { margin-top: 24px; }
}
.course-grid { display: grid; gap: 40px; }
.course-grid .section-head:first-child { margin-top: 12px; }
@media (min-width: 1000px) {
  .course-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .course-side { position: sticky; top: 24px; }
}

/* ------------------------------------------------- course page: compact curriculum (E5a) */
/* Per Bereich a heading, then one slim row per Kapitel that opens into its
   lessons. A number badge only in a Bereich marked „Nummeriert". */
.curr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin: -6px 0 14px; }
.curr-top__sum { font-size: 0.9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.curr-top__toggle { min-height: 44px; color: var(--accent-ink); font-weight: 600; font-size: 0.9375rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: var(--line-strong); transition: text-decoration-color var(--dur) var(--ease); }
.curr-top__toggle:hover { text-decoration-color: currentColor; }
.curr { display: grid; gap: 30px; }
.area__head { margin-bottom: 12px; }
.area__h { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.005em; }
.area__h .draft { font-family: var(--font-body); }
.area__desc { margin-top: 2px; font-size: 0.9375rem; color: var(--ink-3); }
.chaps { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.chap + .chap { border-top: 1px solid var(--line); }
.chap__head { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 18px; transition: background-color var(--dur) var(--ease); }
.chap__head::-webkit-details-marker { display: none; }
.chap__head:hover { background: var(--surface-2); }
.chap__head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 0; }
.chap[open] > .chap__head { background: var(--surface-2); }
.chap__n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chap__text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 2px 20px; }
.chap__title { flex: 1; min-width: 0; font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.chap__meta { flex: none; display: flex; gap: 10px; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chap__prog { font-weight: 600; color: var(--ink-2); }
.chap__prog--done { color: var(--second); }
.chap__chev { flex: none; width: 20px; height: 20px; color: var(--ink-3); transition: transform var(--dur-slow) var(--ease); }
.chap[open] .chap__chev { transform: rotate(180deg); }
.rows { display: grid; padding: 6px 10px 10px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 44px; padding: 8px; border-radius: var(--radius); transition: background-color var(--dur) var(--ease); }
a.row:hover { background: var(--surface-2); }
a.row:hover .row__t { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.row__n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row__n .ic { width: 15px; height: 15px; }
.row__t { color: var(--ink-2); line-height: 1.4; text-wrap: pretty; }
.row__d { font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row--done .row__n { background: var(--second); color: #fff; }
.row--done .row__n .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.row--current, a.row--current:hover { background: var(--accent-tint); }
.row--current .row__n { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.row--current .row__t { color: var(--ink); font-weight: 600; }
.row--locked { cursor: default; }
.row--locked .row__n { color: var(--ink-3); }
/* Phone: the „{n} Lektionen · {Dauer}" part goes under the title. */
@media (max-width: 699px) {
  .chap__head { padding: 12px 14px; gap: 12px; }
  .chap__text { flex-direction: column; align-items: flex-start; }
  .chap__meta { white-space: normal; flex-wrap: wrap; font-size: 0.8125rem; }
  .rows { padding: 4px 6px 8px; }
  .row { gap: 10px; padding: 8px 6px; }
}
@media (min-width: 900px) {
  .chap__head { padding: 14px 22px; gap: 16px; }
  .rows { padding: 8px 14px 12px; }
}

/* Search hits keep the duration badge on their thumbnail. */
.dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums; }

.mentor { text-align: center; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 30px 24px 26px; }
.mentor__portrait { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; filter: grayscale(1) contrast(1.05); background-position: center 30%; }
.mentor__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.875rem; line-height: 1.1; }
.mentor__role { font-size: 0.875rem; color: var(--ink-3); margin-top: 2px; }
.mentor__note { text-align: left; margin-top: 18px; display: grid; gap: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.mentor__note strong { color: var(--ink); }
.mentor__sign { font-family: var(--font-display); font-style: italic; font-size: 1.375rem; line-height: 1.2; color: var(--ink); }

.panel { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 22px 20px; margin-top: 20px; }
.panel__k { font-size: 0.875rem; color: var(--ink-3); margin: -6px 0 12px; }
.panel__h { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.625rem; line-height: 1.1; margin-bottom: 12px; }
.panel__note { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-3); }
.mats { display: grid; }
.mats li + li { border-top: 1px solid var(--line); }
.mat { display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 12px 6px; border-radius: var(--radius); transition: background-color var(--dur) var(--ease); }
.mat:hover { background: var(--surface-2); }
.mat:hover .mat__dl { color: var(--accent-ink); transform: translateY(2px); }
.mat__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent-tint); color: var(--accent-ink); }
.mat__text { display: grid; }
.mat__name { font-weight: 500; font-size: 0.9375rem; line-height: 1.35; }
.mat__meta { font-size: 0.8125rem; color: var(--ink-3); }
.mat__dl { color: var(--ink-3); width: 20px; height: 20px; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.mat__name { text-wrap: pretty; }

/* ------------------------------------------------- course page: plugin additions */
/* Real <img> inside the mockup's background-image boxes, under its veil. */
.mentor__portrait { overflow: hidden; background-color: var(--ground-2); }
.mentor__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mentor__portrait { position: relative; }
.mentor__portrait img { object-position: center 30%; }
.dur { z-index: 2; }
.course-head .thumb--head { overflow: hidden; background-color: var(--ground-2); }
.course-head .thumb--head .thumb__lock { display: inline-flex; }
.course-head__intro > * + * { margin-top: 0.75em; }
.mat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.draft { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: var(--ground-2); color: var(--ink-3); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em; vertical-align: 0.15em; }
.panel--lock { margin-top: 0; }
.panel__text { font-size: 0.9375rem; color: var(--ink-2); }
.panel__req { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.panel__req .ic { width: 16px; height: 16px; flex: none; }
/* „Das ist enthalten" under „Mehr erfahren" (E5a). */
.incl { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.incl__h { margin-bottom: 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.incl__list { display: grid; gap: 10px; }
.incl__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.incl__list .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--accent-ink); }
.panel--lock .btn { margin-top: 18px; }
.course-side > .panel:first-child { margin-top: 0; }
/* Phone: without access, the panel with „Mehr erfahren" comes before the greyed tree. */
@media (max-width: 999px) { .course-side--lock { order: -1; } }

/* ------------------------------------------------- lesson (from the mockup) */
.lesson-grid { display: grid; gap: 28px; }
@media (max-width: 699px) { .lesson-grid.page { padding-top: 0; } }
.crumbs { display: none; }
@media (min-width: 900px) {
  .crumbs { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-3); grid-column: 1 / -1; margin-bottom: -6px; }
  .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
  .crumbs .ic { width: 14px; height: 14px; }
  .crumbs span { color: var(--ink-2); }
}
@media (min-width: 1000px) {
  .lesson-grid { grid-template-columns: minmax(0, 1fr) var(--lesson-side); gap: 28px 40px; align-items: start; }
  .lesson-side { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius-lg); }
  .lesson-side .panel { margin-top: 0; }
}
.lesson-main { min-width: 0; }
.video { position: relative; aspect-ratio: 16 / 9; margin-inline: calc(var(--gutter) * -1); background-color: #111; background-position: center 20%; }
.video::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.12); }
@media (min-width: 700px) { .video { margin-inline: 0; border-radius: var(--radius-lg); overflow: hidden; } }
.video__play { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.video__play .ic { width: 24px; height: 24px; margin-left: 3px; }
.video__play:hover { transform: scale(1.07); background: var(--accent-hover); }
.video__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 28px 14px 12px; font-size: 0.8125rem; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0)); }
.video__time { font-variant-numeric: tabular-nums; }
.video__src { margin-left: auto; opacity: 0.85; text-align: right; }
@media (max-width: 499px) { .video__src { display: none; } }

.lesson { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 24px 20px 26px; margin-top: 18px; }
@media (min-width: 900px) { .lesson { padding: 36px 44px 40px; margin-top: 24px; } }
.lesson-head__n { font-size: 0.8125rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0.04em; }
.lesson-head h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.05; letter-spacing: -0.015em; margin-top: 6px; text-wrap: balance; }
.lesson-head__meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.875rem; color: var(--ink-3); }
.lesson-head__meta .ic { width: 16px; height: 16px; }
.prose { margin-top: 22px; max-width: 66ch; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 30px; font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 9px; height: 1px; background: var(--accent); }
.task { background: var(--accent-tint); border-radius: var(--radius); padding: 18px 20px; margin-top: 26px; }
.task h2 { margin-top: 0; }
.task p { margin-top: 6px; }
.download { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; align-items: center; margin-top: 26px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.download:hover { border-color: var(--accent); background: var(--surface-2); }
.download__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent-tint); color: var(--accent-ink); }
.download__text { display: grid; }
.download__name { font-weight: 600; line-height: 1.35; }
.download__meta { font-size: 0.8125rem; color: var(--ink-3); }
.download__btn { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 0.9375rem; transition: background-color var(--dur) var(--ease); }
.download:hover .download__btn { background: var(--accent-hover); }
.download__btn .ic { width: 18px; height: 18px; }
@media (min-width: 700px) { .download { grid-template-columns: 44px minmax(0, 1fr) auto; } .download__btn { grid-column: auto; padding: 0 18px; } }

.pager { display: grid; gap: 12px; margin-top: 18px; }
.pager__link { display: grid; gap: 4px; align-content: start; padding: 16px 18px; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.pager__link:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.pager__dir { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--accent-ink); font-weight: 600; }
.pager__dir .ic { width: 16px; height: 16px; }
.pager__t { font-weight: 500; line-height: 1.35; }
.pager__t { text-wrap: balance; }
@media (min-width: 700px) { .pager__link--next { text-align: right; } .pager__link--next .pager__dir { justify-content: flex-end; } }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } }

.tocs { display: grid; margin-top: 4px; }
/* A lesson row (E6c): the link holds the number circle (progress hidden) or
   „4. Titel" (progress shown), and the duration; with the progress display a
   done checkbox, its own button, sits before the link. */
.toc { display: flex; align-items: stretch; margin-inline: -10px; border-radius: var(--radius); transition: background-color var(--dur) var(--ease); }
.toc:hover { background: var(--surface-2); }
.toc__link { flex: 1; min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px 14px; align-items: baseline; padding: 10px; border-radius: var(--radius); font-size: 0.9375rem; }
.toc--check .toc__link { grid-template-columns: minmax(0, 1fr) auto; padding-left: 4px; }
.toc__n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; align-self: start; }
.toc__t { line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.toc__d { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.toc__d .ic { width: 10px; height: 10px; }
.toc--current, .toc--current:hover { background: var(--accent-tint); }
.toc--current .toc__n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.toc--current .toc__t { color: var(--ink); font-weight: 600; }
/* The done checkbox: a 44 px target around a 20 px box, accent when done. */
.toc__check { flex: none; width: 44px; min-height: 44px; display: grid; place-items: center start; padding-left: 10px; border-radius: var(--radius); color: var(--on-accent); cursor: pointer; }
.toc__box { width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--surface); transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.toc__box .ic { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; transform: scale(0.6); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.toc__check:hover .toc__box { border-color: var(--accent); }
.toc__check[aria-pressed="true"] .toc__box { background: var(--accent); border-color: var(--accent); }
.toc__check[aria-pressed="true"] .toc__box .ic { opacity: 1; transform: none; }
.toc__check:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ------------------------------------------------- lesson: plugin additions */
.video { overflow: hidden; }
.video__img, .video__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__img { object-position: center 20%; }
.video__bar { z-index: 1; }
.video--playing::before { display: none; }
.video__play:focus-visible, .toc__link:focus-visible, .pager__link:focus-visible, .download:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lesson-head h1 .draft { font-family: var(--font-body); }
.prose ol { display: grid; gap: 8px; padding-left: 1.4em; list-style: decimal; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.prose blockquote { margin-inline: 0; border-left: 2px solid var(--accent); padding-left: 16px; font-style: italic; }
.prose img { border-radius: var(--radius); height: auto; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 28px; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 500; font-size: 1rem; }
.prose .wp-block-button__link:hover { background: var(--accent-hover); }
@media (max-width: 699px) { .pager > span:empty { display: none; } }

/* ------------------------------------------------- 403 / 404 (plugin) */
.page--state { display: grid; place-items: start center; }
.state-card { width: 100%; max-width: 560px; margin-top: 8px; text-align: center; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 36px 24px 30px; }
@media (min-width: 900px) { .state-card { margin-top: 32px; padding: 48px 48px 40px; } }
.state-card__ic { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); }
.state-card__ic .ic { width: 24px; height: 24px; }
.state-card__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2rem, 4.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.state-card__text { margin-top: 14px; color: var(--ink-2); text-wrap: pretty; }
.state-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.state-card__help { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-3); }

/* ------------------------------------------------- search results + empty state (from the mockup) */
.search--big input { height: 56px; font-size: 1.125rem; padding-right: 52px; }
.search__clear { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-3); border-radius: var(--radius); }
.search__clear:hover { color: var(--ink); background: var(--surface-2); }
.hits__count { margin: 22px 0 12px; color: var(--ink-2); }
.hits__count strong { color: var(--ink); }
.hits { display: grid; gap: 12px; }
.hit { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.hit:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.hit__img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); filter: var(--photo-filter); align-self: start; }
.hit__text { display: grid; gap: 3px; min-width: 0; }
.hit__path { font-size: 0.8125rem; color: var(--ink-3); }
.hit__title { font-weight: 600; line-height: 1.3; }
.hit__snip { font-size: 0.875rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: var(--mark); color: var(--ink); padding: 0 0.15em; border-radius: 2px; }
.hits__tip { margin-top: 20px; font-size: 0.875rem; color: var(--ink-3); }
@media (max-width: 899px) {
  .hit { grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
  .hit__text { display: contents; }
  .hit__img { grid-row: 1 / span 2; }
  .hit__path, .hit__title { grid-column: 2; }
  .hit__snip { grid-column: 1 / -1; margin-top: 10px; }
}
@media (min-width: 900px) { .hit { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 14px; } .hit__title { font-size: 1.0625rem; } }
.empty { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 22px; display: grid; gap: 12px; justify-items: start; }
.empty .search { width: 100%; }
.empty__h { font-weight: 600; font-size: 1.0625rem; margin-top: 6px; text-wrap: balance; }
.empty__p { color: var(--ink-2); font-size: 0.9375rem; }
.empty .btn { margin-top: 6px; }
/* plugin: real <img> in the hit thumbnail, focus ring */
.hit__img { overflow: hidden; background-color: var(--ground-2); }
.hit__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hit__img .dur { z-index: 1; }
.hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search__clear[hidden] { display: none; }
#lkm-results { margin-top: 4px; }
#lkm-results > .empty, #lkm-results > .hits__tip:first-child { margin-top: 22px; }

/* ------------------------------------------------- Mein Konto (plugin, from the mockup's parts) */
.account .section-head--first { margin-top: 4px; }
.section-head h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2rem, 4.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.01em; }
.account .panel { margin-top: 18px; }
@media (min-width: 900px) { .account .panel { padding: 28px 32px; } }
.facts { display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 0.8125rem; color: var(--ink-3); font-weight: 500; }
.facts dd { margin: 0; font-size: 1.0625rem; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
.account__form { display: grid; gap: 16px; margin-top: 6px; max-width: 420px; }
.account__form .btn { justify-self: start; margin-top: 4px; }
.account .alert { margin: 0 0 14px; }
.field__hint { margin-top: 6px; font-size: 0.8125rem; color: var(--ink-3); }
.account__out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.account__links { display: flex; gap: 18px; font-size: 0.9375rem; }
.account__form .field { margin-top: 0; }

/* ------------------------------------------------- progress display (from the mockup, without its .ext frame) */
.prog { display: grid; gap: 6px; }
.prog__track { height: 6px; border-radius: 999px; background: var(--ground-2); overflow: hidden; }
.prog__track span { display: block; height: 100%; background: var(--second); border-radius: inherit; }
.prog__label { font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.resume-row__track { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
@media (min-width: 900px) { .resume-row__track { grid-auto-columns: calc((100% - 28px) / 3); } }
.resume { scroll-snap-align: start; display: grid; gap: 4px; }
.resume__img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; filter: var(--photo-filter); }
.resume__img::before { content: ""; position: absolute; inset: 0; background: rgba(var(--veil), 0.28); transition: background-color var(--dur) var(--ease); }
.resume:hover .resume__img::before { background: rgba(var(--veil), 0.42); }
.resume__play { position: relative; width: 44px; height: 44px; padding: 11px 9px 11px 13px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--accent); }
.resume__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.4); }
.resume__bar span { display: block; height: 100%; background: var(--second); }
.resume__path { margin-top: 6px; font-size: 0.8125rem; color: var(--ink-3); }
.resume__title { font-weight: 600; line-height: 1.3; }
.resume__left { font-size: 0.8125rem; color: var(--ink-3); }
.resume-box { display: grid; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 16px; }
.resume-box__k { font-size: 0.875rem; color: var(--ink-3); }
.resume-box__t { font-weight: 600; font-size: 1.0625rem; text-wrap: balance; }
.resume-box .btn { justify-self: start; }
@media (min-width: 700px) { .resume-box { grid-template-columns: 1fr auto; align-items: center; } }
.btn--done { margin: 0; }
.resume-box__text { display: grid; gap: 2px; }
/* plugin: without the mockup's dashed frame, the parts stand on their own */
.resume-box { margin-top: 12px; border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 18px 20px; }
.resume-row { margin-top: 8px; }
.resume__img { background-color: var(--ground-2); }
.resume__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.resume__img::before { z-index: 1; }
.resume__play { z-index: 2; }
.resume:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.course .prog { margin-top: 14px; }
.course-head .prog { margin-top: 20px; max-width: 360px; }
.lesson .btn--done { margin-top: 26px; }
.btn--done[aria-pressed="true"] { background: var(--second); border-color: var(--second); color: #fff; }
.btn--done[aria-pressed="true"]:hover { background: var(--second); border-color: var(--second); color: #fff; filter: brightness(0.95); }
/* a11y (E10): the wordmark link is a 44 px touch target on the phone, without changing the bar height. */
/* Not on .wordmark--sub: that one is display:none on the phone (the back link takes its place). */
.bar .wordmark:not(.wordmark--sub) { display: inline-block; padding-block: 11px; margin-block: -11px; }

/* ------------------------------------------------- lesson: wide layout (E6a) */
/* Only the lesson page is wider; every other page keeps --content. */
.lkm-lektion { --lesson-wide: 1600px; --lesson-side: 372px; }
.wrap--wide, .lkm-lektion .bar__in, .lkm-lektion .foot__in { max-width: var(--lesson-wide); }
@media (min-width: 1000px) {
  /* The video fills the main column but never grows taller than 75vh. */
  .lesson-grid .player { width: min(100%, calc(75vh * 16 / 9)); margin-inline: auto; }
}
.panel--toc { padding-bottom: 16px; }
.panel__eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.panel--toc .panel__h { font-size: 1.5rem; }
.smods { display: grid; margin: 4px -20px 0; border-top: 1px solid var(--line); }
.smod { border-bottom: 1px solid var(--line); }
.smod__head { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 14px 20px; transition: background-color var(--dur) var(--ease); }
.smod__head::-webkit-details-marker { display: none; }
.smod__head:hover { background: var(--surface-2); }
.smod__head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.smod__text { display: grid; gap: 3px; min-width: 0; }
.smod__head { display: flex; }
.smod__text { flex: 1; }
.smod__title { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.smod__n { font-weight: 500; color: var(--ink-3); }
.smod__k { font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.smod__prog { font-weight: 600; color: var(--ink-2); }
.smod__prog--done { color: var(--second); }
.smod__chev { width: 20px; height: 20px; color: var(--ink-3); transition: transform var(--dur-slow) var(--ease); }
.smod[open] .smod__chev { transform: rotate(180deg); }
.smod--current > .smod__head { box-shadow: inset 3px 0 0 var(--accent); }
.smod .tocs { padding: 0 20px 10px; margin-top: 0; }
.panel--toc .link--arrow { margin-top: 14px; }

/* ------------------------------------------------- lesson: player and sidebar (E6b) */
/* The player box holds the video, the desktop arrows and the countdown. */
.player { position: relative; }

/* Prev/next arrows at the video's edges: desktop only, shown on hover or focus.
   The label slides out on the arrow itself; screen readers get the aria-label. */
.player__nav { display: none; }
@media (min-width: 1000px) {
  .player__nav { position: absolute; top: 50%; z-index: 3; display: flex; align-items: center; height: 52px; margin-top: -26px; padding: 0 4px; border-radius: 26px; background: rgba(var(--veil), 0.62); color: #fff; opacity: 0; transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease); }
  .player__nav--prev { left: 16px; }
  .player__nav--next { right: 16px; flex-direction: row-reverse; }
  .player__nav .ic { width: 26px; height: 26px; margin: 0 9px; stroke-width: 2; }
  .player__nav--prev .ic { transform: scaleX(-1); }
  .player:hover .player__nav, .player__nav:focus-visible { opacity: 1; }
  .player__nav:hover, .player__nav:focus-visible { background: rgba(var(--veil), 0.86); }
  .player__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .player__nav-t { display: grid; max-width: 0; overflow: hidden; white-space: nowrap; font-size: 0.75rem; line-height: 1.3; transition: max-width var(--dur-slow) var(--ease); }
  .player__nav-t span { color: rgba(255, 255, 255, 0.78); }
  .player__nav-t strong { font-size: 0.875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
  .player__nav--prev .player__nav-t { padding-right: 0; }
  .player__nav:hover .player__nav-t, .player__nav:focus-visible .player__nav-t { max-width: 280px; }
  .player__nav--prev:hover .player__nav-t, .player__nav--prev:focus-visible .player__nav-t { padding-right: 18px; }
  .player__nav--next:hover .player__nav-t, .player__nav--next:focus-visible .player__nav-t { padding-left: 18px; text-align: right; }
  .player--next .player__nav { display: none; }
}

/* The countdown over the ended video. */
.player__next { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: rgba(var(--veil), 0.78); color: #fff; text-align: center; }
.player__next[hidden] { display: none; }
@media (max-width: 699px) { .player__next { margin-inline: calc(var(--gutter) * -1); } }
@media (min-width: 700px) { .player__next { border-radius: var(--radius-lg); } }
.player__next-in { display: grid; justify-items: center; gap: 4px; max-width: 520px; }
.player__next-k { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.player__next-t { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.375rem, 3vw, 2.25rem); line-height: 1.12; text-wrap: balance; }
.player__next-c { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.86); font-variant-numeric: tabular-nums; }
.player__next-bar { width: 180px; height: 3px; margin: 10px 0 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.player__next-bar::before { content: ""; display: block; height: 100%; background: #fff; transform-origin: left; animation: lkm-countdown 5s linear forwards; }
@keyframes lkm-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.player__next-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.player__next .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.player__next .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.player__next .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 499px) {
  .player__next-k, .player__next-bar { display: none; }
  .player__next-btns { margin-top: 4px; }
  .player__next .btn { min-height: 44px; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .player__next-bar::before { animation: none; transform: scaleX(0.5); } }

/* „Kursinhalt ausblenden" and the tab that brings it back: desktop only. */
.toc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.toc-head__text { min-width: 0; }
.toc-hide, .toc-tab { display: none; }
@media (min-width: 1000px) {
  .toc-hide:not([hidden]) { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; border-radius: var(--radius); color: var(--ink-3); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .toc-hide:hover { background: var(--surface-2); color: var(--ink); }
  .toc-hide .ic { width: 22px; height: 22px; }
  .lkm-toc-hidden .lesson-grid { grid-template-columns: minmax(0, 1fr); }
  .lkm-toc-hidden .lesson-side { display: none; }
  /* Wide: the video, the lesson card and the pager share one centred column,
     as wide as the container allows and never taller than 80vh. */
  .lkm-toc-hidden .lesson-main > *, .lkm-toc-hidden .lesson-grid > .crumbs { width: min(100%, calc(80vh * 16 / 9)); margin-inline: auto; }
  .lkm-toc-hidden .toc-tab:not([hidden]) { position: fixed; right: 0; top: 50%; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 16px 10px; transform: translateY(-50%); writing-mode: vertical-rl; background: var(--surface); color: var(--accent-ink); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); box-shadow: var(--shadow-1); transition: background-color var(--dur) var(--ease), padding var(--dur) var(--ease); }
  .toc-tab:hover { background: var(--accent-tint); padding-right: 14px; }
  .toc-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .toc-tab .ic { width: 18px; height: 18px; transform: rotate(180deg); }
}
