/* Luma Hilfe-Center — shared by /luma/help/ and every article below it.
   Deliberately plain: light background, black text, one system font, no decoration.
   Built for reading, not for marketing (the product page at /luma/ does that). */

:root {
  --bg:       #ffffff;
  --bg-soft:  #f6f6f7;
  --fg:       #111111;
  --fg-muted: #4a4a4f;
  --fg-soft:  #6e6e73;
  --line:     #e4e4e7;
  --focus:    #0a66d6;
  --link:     #0a5cc2;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 24px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.6; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-weight: 600; margin: 0; line-height: 1.25; letter-spacing: -.01em; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 10px; }

/* ── Header ───────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
/* logo + section name lead to the Luma website, the small arrow says so */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { margin-left: -4px; color: var(--fg-soft); font-weight: 400; }
.brand .out { margin-left: -4px; color: var(--fg-soft); transition: transform .15s, color .15s; }
.brand:hover .out { color: var(--fg); transform: translate(1px, -1px); }
.header-end { display: flex; align-items: center; gap: 10px; }
.header-link { font-size: 15px; color: var(--fg-muted); text-decoration: none; white-space: nowrap; }
.header-link:hover { color: var(--fg); text-decoration: underline; }

/* language switch: plain links without JS, a dropdown with it (built by help.js) */
.langswitch { display: inline-flex; gap: 10px; font-size: 15px; }
.langswitch a { color: var(--fg-soft); text-decoration: none; }
.langswitch a[aria-current="true"] { color: var(--fg); font-weight: 600; }
.langswitch.is-dropdown { position: relative; display: inline-block; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--fg-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--fg); background: var(--bg-soft); border-color: var(--line); }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; min-width: 148px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: 0 12px 32px rgba(0, 0, 0, .1); }
.lang-menu[hidden] { display: none; }
.langswitch .lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--fg); font-size: 15px; font-weight: 400; }
.langswitch .lang-menu a:hover { background: var(--bg-soft); }
.langswitch .lang-menu a[aria-current="true"] { font-weight: 600; }
.langswitch .lang-menu a[aria-current="true"]::after { content: ""; width: 11px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
@media (max-width: 339px) { .brand span { display: none; } }

/* ── Search ───────────────────────────────────────── */
.search { position: relative; max-width: 640px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--fg-soft); pointer-events: none; }
.search input { width: 100%; height: 52px; padding: 0 16px 0 44px; border: 1px solid #c8c8cd; border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; font-size: 17px; }
.search input::placeholder { color: var(--fg-soft); }
.search input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(10,102,214,.15); }
.search-results { list-style: none; margin: 8px 0 0; padding: 0; max-width: 640px; border: 1px solid var(--line); border-radius: 10px; }
.search-results[hidden] { display: none; }
.search-results li + li { border-top: 1px solid var(--line); }
.search-results a { display: block; padding: 10px 16px; text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--bg-soft); }
.search-results .t { display: block; font-weight: 600; color: var(--link); }
.search-results a:hover .t { text-decoration: underline; }
.search-results .d { display: block; font-size: 14px; color: var(--fg-soft); line-height: 1.45; }
.search-results .empty { padding: 10px 16px; color: var(--fg-soft); font-size: 15px; }

/* ── Help home ────────────────────────────────────── */
/* hierarchy: h1 page title, h2 section (Alle Themen, Häufige Fragen …), h3 category */
.help-hero { padding: 56px 0 44px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.help-hero h1 { font-size: clamp(2.1rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
.help-hero p { color: var(--fg-muted); font-size: 18px; margin: 0 0 24px; max-width: 60ch; }

.help-band { padding: 44px 0; }
.help-band + .help-band, .contact { border-top: 1px solid var(--line); }
.help-band h2, .contact h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.015em; margin-bottom: 16px; }

.cats { display: grid; grid-template-columns: 1fr; gap: 32px 48px; padding-top: 8px; }
@media (min-width: 720px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat h3 { font-size: 1.125rem; font-weight: 600; }
.cat p { font-size: 15px; line-height: 1.5; color: var(--fg-soft); margin: 2px 0 8px; }
.cat ul { list-style: none; margin: 0; padding: 0; }

/* links on the help home are blue, so they read as links */
.cat li a, .popular a { display: block; padding: 4px 0; color: var(--link); text-decoration: none; line-height: 1.45; }
.cat li a:hover, .popular a:hover { text-decoration: underline; text-underline-offset: 2px; }
.popular { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 48px; }
@media (min-width: 760px) { .popular { grid-template-columns: 1fr 1fr; } }

.contact { padding: 44px 0 56px; }
.contact p { color: var(--fg-muted); margin: 0; max-width: 64ch; }
.contact a { color: var(--link); font-weight: 600; text-underline-offset: 2px; }

/* ── Article layout ───────────────────────────────── */
.doc { display: grid; grid-template-columns: 1fr; gap: 0 48px; padding-top: 32px; padding-bottom: 72px; }
@media (min-width: 900px) { .doc { grid-template-columns: 220px minmax(0, 1fr); } }

/* sidebar */
.sidebar { font-size: 15px; }
.sidebar-inner { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.sidebar .home-link { display: inline-block; color: var(--link); text-decoration: none; margin-bottom: 18px; }
.sidebar .home-link:hover { color: var(--fg); text-decoration: underline; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-group h3 { font-size: 13px; font-weight: 600; color: var(--fg-soft); margin: 0 0 4px; }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-group a { display: block; padding: 3px 0; color: var(--fg-muted); text-decoration: none; line-height: 1.4; }
.nav-group a:hover { color: var(--fg); text-decoration: underline; }
.nav-group a[aria-current="page"] { color: var(--fg); font-weight: 600; }

/* mobile: sidebar folds into a disclosure above the article */
.nav-toggle { display: none; }
@media (max-width: 899px) {
  .sidebar-inner { position: static; max-height: none; overflow: visible; }
  .nav-toggle { display: block; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 24px; }
  .nav-toggle summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
  .nav-toggle .nav-body { padding: 0 14px 14px; }
  .sidebar > .sidebar-inner > .nav-body { display: none; }
}

/* article body */
.article { min-width: 0; max-width: 700px; }
.article .crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; font-size: 14px; color: var(--fg-soft); }
.article .crumbs a { color: var(--fg-soft); text-decoration: none; }
.article .crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.35rem); font-weight: 700; letter-spacing: -.02em; }
.article .updated { font-size: 14px; color: var(--fg-soft); margin: 6px 0 0; }
.article .intro { font-size: 18px; color: var(--fg-muted); margin: 10px 0 0; }
.meta { font-size: 14px; color: var(--fg-soft); margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.article h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.015em; margin: 44px 0 10px; }
.article h3 { font-size: 1.15rem; margin: 28px 0 6px; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 16px; }
.article li { margin: 4px 0; }
.article a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(10, 92, 194, .35); }
.article a:hover { text-decoration-color: currentColor; }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--bg-soft); border-radius: 4px; padding: 1px 4px; }
.article pre { margin: 0 0 16px; padding: 12px 14px; background: var(--bg-soft); border-radius: 8px; overflow-x: auto; line-height: 1.5; }
.article pre code { background: none; padding: 0; font-size: .85em; }

/* UI labels, e.g. Einstellungen › Wiedergabe — just bold, no chips */
.ui { font-weight: 600; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 .4em; border: 1px solid rgba(0, 0, 0, .18); border-bottom-width: 2px; border-radius: 5px; font: inherit; font-size: .88em; line-height: 1.5; text-align: center; white-space: nowrap; }

/* numbered steps */
ol.steps { padding-left: 1.4em; margin: 14px 0 18px; }
ol.steps > li { margin: 0 0 10px; padding-left: 4px; }
ol.steps > li strong:first-child { display: block; }

/* callouts */
.note { background: var(--bg-soft); border-radius: 8px; padding: 12px 16px; margin: 18px 0; }
.note p:last-child { margin-bottom: 0; }
.note .label { display: block; font-weight: 600; margin-bottom: 2px; }
.note.warn { background: #fff6e5; }

/* screenshots */
figure.shot { margin: 24px 0; display: grid; justify-items: center; gap: 8px; }
figure.shot img { width: min(240px, 70%); aspect-ratio: 1284 / 2530; }
figure.shot.pair { grid-template-columns: 1fr 1fr; align-items: start; }
figure.shot.pair img { width: min(220px, 100%); }
figure.shot.pair figcaption { grid-column: 1 / -1; }
figcaption { font-size: 14px; color: var(--fg-soft); text-align: center; }

/* reference tables */
.table-wrap { overflow-x: auto; margin: 14px 0 18px; }
table.ref { width: 100%; border-collapse: collapse; font-size: 15px; }
table.ref th, table.ref td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ref th { font-weight: 600; border-bottom-color: #c8c8cd; }
table.ref td:first-child { font-weight: 600; white-space: nowrap; }
/* tables whose first column holds sentences, not short labels */
table.ref.wrap-first td:first-child { white-space: normal; min-width: 7.5em; }

/* troubleshooting */
details.qa { border-bottom: 1px solid var(--line); }
details.qa:first-of-type { border-top: 1px solid var(--line); }
details.qa summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
details.qa .ans { padding: 0 0 8px; }

/* prev / next */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.article .pn { text-decoration: none; }
.pn .k { display: block; font-size: 14px; color: var(--fg-soft); }
.pn .v { display: block; font-weight: 600; }
.pn:hover .v { text-decoration: underline; }
.pn.next { text-align: right; margin-left: auto; }
.helpful { margin-top: 36px; color: var(--fg-muted); font-size: 15px; }

/* ── Changelog ────────────────────────────────────── */
.article .lead { font-size: 18px; color: var(--fg-muted); margin: 10px 0 0; }
.release { padding-top: 8px; }
.release:not([hidden]) ~ .release:not([hidden]) { margin-top: 48px; border-top: 1px solid var(--line); }
.article .release h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; margin-bottom: 0; }
.release .intro { font-size: 17px; margin: 14px 0 0; }
/* app filter (shown by help.js) */
.cl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.cl-filter[hidden] { display: none; }
.cl-filter button { font: inherit; font-size: 15px; line-height: 1.2; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg-muted); cursor: pointer; }
.cl-filter button:hover { color: var(--fg); border-color: #c8c8cd; }
.cl-filter button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.badge { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--fg); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }

/* version list: a rail with one marker for the version in view (set by help.js) */
.cl-toc h3 { font-size: 13px; font-weight: 600; color: var(--fg-soft); margin: 0 0 10px; }
.cl-group + .cl-group:not([hidden]) { margin-top: 24px; }
.cl-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.cl-toc a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-left: -1px; padding: 7px 10px 7px 14px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: var(--fg-muted); text-decoration: none; line-height: 1.3; transition: background-color .15s, color .15s, border-color .15s; }
.cl-toc a:hover { color: var(--fg); background: var(--bg-soft); }
.cl-toc .v { font-weight: 500; font-variant-numeric: tabular-nums; }
.cl-toc .d { font-size: 13px; color: var(--fg-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-toc a[aria-current="true"] { color: var(--fg); background: var(--bg-soft); border-left-color: var(--fg); }
.cl-toc a[aria-current="true"] .v { font-weight: 650; }
@media (prefers-reduced-motion: reduce) { .cl-toc a { transition: none; } }

/* ── Footer ───────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 14px; color: var(--fg-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: var(--fg-soft); text-decoration: none; }
.footer a:hover { color: var(--fg); text-decoration: underline; }
