/* Bedienungsanleitung – ergänzt styles.css. Bildschirm: dunkel wie die Website; Druck/PDF: hell */

/* Inter (SIL Open Font License, assets/fonts/LICENSE-Inter.txt) – nur im Druck/PDF verwendet,
   damit die PDFs auf jedem Rechner und im Deploy gleich aussehen; am Bildschirm wird sie nicht geladen */
@font-face {
  font-family: "Inter PDF"; font-style: normal; font-weight: 100 900; font-display: block;
  src: url("fonts/inter-latin-wght-normal.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 PDF"; font-style: normal; font-weight: 100 900; font-display: block;
  src: url("fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.cover { display: none; }

.guide { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 96px; }
@media (min-width: 1000px) {
  .guide { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
}

/* Inhaltsverzeichnis */
.toc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: .92rem;
}
@media (min-width: 1000px) {
  .toc { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; }
}
.toc-title { font-weight: 700; margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: .6em; padding: .28em .4em; border-radius: 6px;
  color: var(--muted); text-decoration: none; line-height: 1.35;
}
.toc a::before { content: counter(toc) "."; min-width: 1.6em; color: var(--line); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); background: var(--raised); }
.toc a[aria-current="true"] { color: var(--accent); }
.toc a[aria-current="true"]::before { color: var(--accent); }

/* Inhalt */
.guide-body { min-width: 0; max-width: 820px; counter-reset: chapter; }
.guide-head { margin-bottom: 24px; }
.guide-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.guide-pdf-hint { color: var(--muted); font-size: .95rem; }

.chapter { counter-increment: chapter; padding-top: 32px; }
.chapter h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6em; }
.chapter h2::before { content: counter(chapter) ". "; color: var(--accent); }
.chapter h3 { font-size: 1.15rem; margin-top: 1.6em; }
.chapter p, .chapter li, .chapter dd { color: #C4CAD3; }
.chapter ul, .chapter ol { padding-left: 1.3em; margin: 0 0 1em; }
.chapter li { margin-bottom: .4em; }
.chapter li > ul { margin-top: .4em; }
.chapter b, .chapter strong { color: var(--text); }

.chapter .shot { margin: 1.4em 0 1.6em; }
.chapter .shot img { width: 100%; }
.chapter figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; text-align: center; }
.chapter .devices { max-width: 640px; }

.tip {
  border-left: 3px solid var(--accent); background: rgba(233, 162, 59, .08);
  border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 1.2em 0;
}
.tip p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 1em 0; }
.chapter table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.chapter th, .chapter td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chapter th { color: var(--text); }
.chapter td { color: #C4CAD3; }
.chapter td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

.faq-list dt { font-weight: 700; color: var(--text); margin-top: 1em; }
.faq-list dd { margin: .3em 0 0; }

.guide-foot { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.guide-foot p { color: var(--muted); }

/* ---------- Druck / PDF ---------- */
@page { size: A4; margin: 18mm 16mm 20mm; }
@media print {
  :root { --text: #1b1f24; --muted: #5a6270; --line: #d5dae1; --panel: #f4f6f8; --raised: #eef1f4; color-scheme: light; }
  html, body { background: #fff !important; }
  body { font-size: 10.5pt; line-height: 1.5; font-family: "Inter PDF", var(--font); }
  .topbar, .guide-pdf-hint, .guide-head { display: none !important; }
  .toc {
    position: static; max-height: none; overflow: visible; background: none; border: 0; padding: 0;
    font-size: 12pt; break-after: page; page-break-after: always;
  }
  .toc-title { font-size: 20pt; margin-bottom: 8mm; color: #1b1f24; }
  .toc a { color: #2a3038; padding: 1.2mm 0; }
  .toc a::before { color: #c9821a; }
  .guide { display: block; padding: 0; }
  .guide-body { max-width: none; }

  .cover {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    height: 250mm; page-break-after: always; break-after: page;
  }
  .cover img { border-radius: 24px; margin-bottom: 18mm; }
  .cover-name { font-size: 14pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #E9A23B; margin: 0; }
  .cover-title { font-size: 32pt; margin: 4mm 0 6mm; color: #1b1f24; }
  .cover-sub { font-size: 12pt; color: #5a6270; max-width: 130mm; }
  .cover-url { margin-top: 30mm; color: #5a6270; }

  .chapter { padding-top: 0; break-before: page; page-break-before: always; }
  .chapter h2 { font-size: 20pt; }
  .chapter h2::before { color: #c9821a; }
  .chapter h3 { break-after: avoid; }
  .chapter p, .chapter li, .chapter dd, .chapter td { color: #2a3038; }
  .chapter b, .chapter strong, .chapter th, .chapter td:first-child, .faq-list dt { color: #1b1f24; }
  .chapter code { background: #eef1f4; color: #1b1f24; }
  .chapter .shot { break-inside: avoid; page-break-inside: avoid; }
  .chapter .shot img { box-shadow: none; border: 1px solid #d5dae1; max-height: 150mm; width: auto; max-width: 100%; margin: 0 auto; }
  .chapter .devices img { border: 0; filter: none; }
  .chapter .devices .dev-ipad { max-height: none; width: 90%; }
  .chapter .devices .dev-iphone { max-height: none; }
  .tip { background: #fdf5e8; border-left-color: #E9A23B; break-inside: avoid; }
  .guide-foot { break-before: avoid; }
  a { color: #1b1f24; text-decoration: none; }
}
