/* =========================================================================
   Endeiktika — Benutzerhandbuch
   Gemeinsames Stylesheet fuer Lehrer- und Sekretariats-Anleitung.
   Eigenstaendig, offline-faehig, druckoptimiert (A4-PDF via Browser-Druck).
   ========================================================================= */

:root {
  --blue:        #0d47a1;
  --blue-700:    #0a3a82;
  --blue-800:    #082d63;
  --blue-50:     #eef4fc;
  --blue-100:    #dbe8fa;
  --sky:         #7ba8d9;
  --gold:        #f5c842;
  --gold-soft:   #fdf3d3;

  --ink:         #16202e;
  --ink-soft:    #44505f;
  --ink-faint:   #6b7787;
  --line:        #e3e7ee;
  --line-soft:   #eef1f6;
  --paper:       #f6f8fb;
  --card:        #ffffff;

  --success:     #16a34a;
  --success-bg:  #e8f6ed;
  --warning:     #d97706;
  --warning-bg:  #fdf1e0;
  --error:       #dc2626;
  --error-bg:    #fbe9e9;
  --purple:      #7c3aed;
  --purple-bg:   #f1ebfd;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", "Noto Serif", serif;
  --sans:  "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "Noto Sans", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16,32,46,.06), 0 1px 3px rgba(16,32,46,.08);
  --shadow-md: 0 4px 12px rgba(16,32,46,.08), 0 2px 4px rgba(16,32,46,.06);
  --shadow-lg: 0 18px 40px -12px rgba(13,71,161,.28);

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; color: var(--ink); }
a { color: var(--blue); }

/* ---------- Lese-Fortschrittsbalken ---------- */
#reading-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  z-index: 200; transition: width .12s linear;
}

/* ============================ HEADER ============================ */
.site-header {
  position: relative;
  background:
    radial-gradient(1200px 400px at 85% -120px, rgba(245,200,66,.22), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-800) 100%);
  color: #fff;
  overflow: hidden;
}
.site-header::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 30px 28px 38px;
  position: relative; z-index: 1;
}
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-row img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.brand-row .brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: .2px; }
.brand-row .brand-sub { font-size: .82rem; opacity: .82; letter-spacing: .14em; text-transform: uppercase; margin-top: 1px; }

.header-title { margin: 26px 0 6px; font-size: clamp(2rem, 4.6vw, 3.1rem); color: #fff; }
.header-lede  { font-size: 1.12rem; max-width: 60ch; color: rgba(255,255,255,.9); margin: 0; }

.role-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  color: #fff; padding: 5px 13px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(4px); font-family: var(--sans);
}
.role-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.header-meta {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: .86rem; color: rgba(255,255,255,.78); font-family: var(--sans);
}
.header-meta b { color: #fff; font-weight: 600; }

/* ============================ LAYOUT ============================ */
.layout {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 248px 1fr; gap: 44px;
  align-items: start;
}

/* ---------- Seiten-Navigation (Inhaltsverzeichnis) ---------- */
.toc {
  position: sticky; top: 24px; align-self: start;
  margin-top: -34px; z-index: 50;
}
.toc-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 18px 16px; max-height: calc(100vh - 48px); overflow: auto;
}
.toc-title {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); margin: 4px 6px 12px;
}
.toc-search {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 11px; font: inherit; font-size: .86rem; margin-bottom: 12px;
  background: var(--paper);
}
.toc-search:focus { outline: 2px solid var(--blue-100); border-color: var(--blue); }
.toc nav a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 10px; border-radius: 8px; text-decoration: none;
  color: var(--ink-soft); font-size: .9rem; line-height: 1.35;
  border-left: 3px solid transparent; transition: background .15s, color .15s;
}
.toc nav a .n { color: var(--ink-faint); font-variant-numeric: tabular-nums; font-size: .8rem; min-width: 16px; }
.toc nav a:hover { background: var(--blue-50); color: var(--blue); }
.toc nav a.active { background: var(--blue-50); color: var(--blue); font-weight: 600; border-left-color: var(--gold); }
.toc nav a.hidden { display: none; }

/* ---------- Inhalts-Spalte ---------- */
.content { min-width: 0; padding-bottom: 90px; }

section.chapter { scroll-margin-top: 86px; margin-top: 30px; }
section.chapter:first-of-type { margin-top: 38px; }

.chapter > h2 {
  font-size: 1.72rem; margin: 0 0 2px;
  display: flex; align-items: baseline; gap: 12px;
}
.chapter > h2 .num {
  font-family: var(--sans); font-size: .95rem; font-weight: 700;
  color: #fff; background: var(--blue); border-radius: 8px;
  min-width: 30px; height: 30px; display: inline-flex; align-items: center;
  justify-content: center; flex: none; box-shadow: var(--shadow-sm);
}
.chapter > .sub { color: var(--ink-faint); margin: 4px 0 18px; font-size: 1rem; }
.chapter h3 { font-size: 1.18rem; margin: 26px 0 8px; }
.chapter p { margin: 10px 0; }
.chapter ul, .chapter ol { margin: 10px 0; padding-left: 22px; }
.chapter li { margin: 6px 0; }
.chapter li::marker { color: var(--blue); }
kbd {
  font-family: var(--sans); font-size: .8em; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  padding: 1px 7px; box-shadow: 0 1px 0 rgba(16,32,46,.04); white-space: nowrap;
}
.gr { color: var(--blue-700); font-style: italic; }

/* ---------- Callouts ---------- */
.note {
  border-radius: var(--radius-sm); padding: 13px 16px 13px 46px;
  margin: 16px 0; position: relative; font-size: .96rem; line-height: 1.55;
  border: 1px solid var(--line); background: var(--card);
}
.note::before {
  position: absolute; left: 14px; top: 13px; font-size: 1.05rem; line-height: 1.3;
}
.note b { font-weight: 700; }
.note.tip      { background: var(--blue-50);   border-color: #cfe0f6; }
.note.tip::before      { content: "💡"; }
.note.warn     { background: var(--warning-bg);border-color: #f3dcb8; }
.note.warn::before     { content: "⚠️"; }
.note.important{ background: var(--error-bg);  border-color: #f3c9c9; }
.note.important::before{ content: "❗"; }
.note.priv     { background: var(--purple-bg); border-color: #ddd0f7; }
.note.priv::before     { content: "🎓"; }

/* ---------- Schritt-fuer-Schritt ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0; }
.steps > li {
  position: relative; padding: 4px 0 4px 46px; margin: 0 0 14px;
  min-height: 30px;
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-family: var(--sans);
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.steps > li::after {
  content: ""; position: absolute; left: 14px; top: 34px; bottom: -16px;
  width: 2px; background: var(--line);
}
.steps > li:last-child::after { display: none; }
.steps > li b { color: var(--ink); }

/* ---------- Faehigkeiten-Tabelle (kann / kann nicht) ---------- */
.cando {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); font-size: .95rem; background: var(--card);
}
.cando th {
  text-align: left; padding: 12px 16px; font-family: var(--sans); font-size: .8rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.cando th.yes { background: var(--success-bg); color: #0f6b35; }
.cando th.no  { background: var(--line-soft); color: var(--ink-soft); }
.cando td { padding: 11px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.cando td.yes::before { content: "✓ "; color: var(--success); font-weight: 700; }
.cando td.no  { color: var(--ink-soft); }
.cando td.no::before  { content: "— "; color: var(--ink-faint); }
.cando tr td:first-child { border-right: 1px solid var(--line-soft); }

/* =====================================================================
   UI-NACHBAU (Mockups der Endeiktika-Oberflaeche) + HOTSPOTS
   ===================================================================== */
.demo {
  margin: 22px 0 8px; border-radius: var(--radius); overflow: visible;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  background: var(--card); position: relative;
}
.demo-cap {
  font-family: var(--sans); font-size: .82rem; color: var(--ink-faint);
  margin: 10px 2px 22px; display: flex; align-items: center; gap: 8px;
}
.demo-cap::before { content: "🖥"; font-size: .95rem; }

/* das eigentliche Fenster — overflow MUSS visible sein, damit Hotspot-Tooltips
   ueber den Fensterrand hinausragen koennen. Runde Ecken daher ueber die
   Eck-Kinder, nicht ueber overflow:hidden. */
.win { border-radius: var(--radius); overflow: visible; background: var(--card); position: relative; }
.win > *:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.win > .app:last-child, .win > .login:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); overflow: hidden; }
.win > .login:last-child { overflow: visible; }   /* Login-Hotspots liegen in der zentrierten Box, nichts ragt an die Ecken */
.win > .win-foot { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }

/* Browser-Chrome-Leiste */
.win-bar {
  background: #e9edf3; display: flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-bottom: 1px solid var(--line);
}
.win-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.win-bar i:nth-child(1){ background:#ff5f56; } .win-bar i:nth-child(2){ background:#ffbd2e; } .win-bar i:nth-child(3){ background:#27c93f; }
.win-url {
  margin-left: 10px; background: #fff; border: 1px solid var(--line); border-radius: 7px;
  padding: 3px 12px; font-family: var(--sans); font-size: .76rem; color: var(--ink-faint);
  flex: 1; max-width: 320px;
}

/* App-Grundgeruest */
.app { display: grid; grid-template-columns: 188px 1fr; background: var(--card); font-family: var(--sans); }
.app.no-side { grid-template-columns: 1fr; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; font-size: .82rem; }
.side .logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); padding: 4px 6px 14px; }
.side .logo img { width: 22px; height: 22px; border-radius: 6px; }
.side .grp { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 14px 8px 6px; }
.side a { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; }
.side a .ic { width: 15px; text-align: center; opacity: .7; }
.side a.on { background: var(--blue-50); color: var(--blue); font-weight: 600; }

.main { background: var(--paper); padding: 16px 18px 22px; min-height: 240px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.topbar .crumbs { font-size: .78rem; color: var(--ink-faint); }
.topbar .tools { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--ink-soft); }
.lang { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; display: inline-flex; }
.lang span { padding: 3px 9px; background: #fff; }
.lang span.on { background: var(--blue); color: #fff; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; font-size: .76rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.chip.b { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip.gold { background: var(--gold-soft); border-color: #ecd690; color: #8a6a12; }
.chip.purple { background: var(--purple-bg); border-color: #ddd0f7; color: var(--purple); }
.chip.green { background: var(--success-bg); border-color: #bfe6cd; color: #0f6b35; }

.app h4.page-title { font-family: var(--serif); font-size: 1.15rem; margin: 4px 0 12px; color: var(--ink); }

/* Stat-/Klassen-Kacheln im Mockup */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tiles.k3 { grid-template-columns: repeat(3, 1fr); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; box-shadow: var(--shadow-sm); }
.tile .lab { font-size: .72rem; color: var(--ink-faint); }
.tile .big { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.tile .top { display: flex; align-items: center; justify-content: space-between; }
.tile .ico { width: 26px; height: 26px; border-radius: 8px; background: var(--blue-50); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.ktile .ct { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); }
.ktile .ct small { font-weight: 500; color: var(--ink-faint); }
.bar { height: 6px; border-radius: 6px; background: var(--line-soft); margin: 8px 0 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--gold); }
.ktile .meta { font-size: .72rem; color: var(--ink-faint); display: flex; justify-content: space-between; }
.ktile .miss { color: var(--warning); }

/* Toolbar in Noteneingabe */
.gradebar { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 12px; }
.gradebar .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gradebar .seg span { padding: 5px 11px; background: #fff; font-size: .78rem; color: var(--ink-soft); }
.gradebar .seg span.on { background: var(--blue); color: #fff; }
.gradebar .spacer { flex: 1; }

/* Tabellen im Mockup */
.gtable { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .8rem; }
.gtable th { background: #f3f6fb; text-align: left; padding: 8px 10px; font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.gtable td { padding: 7px 10px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); }
.gtable td .cell { display: inline-flex; min-width: 30px; height: 24px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-faint); }
.gtable td .cell.f { color: var(--ink); font-weight: 600; border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-100); }
.gtable .de { color: var(--success); font-weight: 700; }
.gtable .avg { color: var(--ink); font-weight: 700; }
.win-foot { background: #f3f6fb; border-top: 1px solid var(--line); padding: 7px 14px; font-size: .72rem; color: var(--ink-faint); font-family: var(--sans); }

/* Login-Mockup */
.login { background: linear-gradient(135deg, var(--blue-50), #fff); padding: 26px; display: flex; justify-content: center; }
.login .box { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 22px; width: 300px; }
.login .box img { width: 38px; height: 38px; border-radius: 9px; display: block; margin: 0 auto 10px; }
.login .box .ttl { text-align: center; font-family: var(--serif); font-weight: 700; margin-bottom: 14px; }
.login .field { font-size: .74rem; color: var(--ink-faint); margin: 9px 0 3px; }
.login .inp { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: .8rem; color: var(--ink-soft); background: var(--paper); }
.login .btn { background: var(--blue); color: #fff; text-align: center; border-radius: 8px; padding: 9px; font-size: .82rem; font-weight: 600; margin-top: 14px; }
.login .link { text-align: center; font-size: .74rem; color: var(--blue); margin-top: 10px; }

/* ---------- HOTSPOTS ---------- */
.hs {
  position: absolute; z-index: 5;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff; border: 2px solid #fff;
  font-family: var(--sans); font-weight: 700; font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 3px 10px rgba(13,71,161,.45);
  transform: translate(-50%, -50%); padding: 0;
  transition: transform .12s ease;
}
.hs::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--blue); opacity: .55;
  animation: hs-pulse 2.4s ease-out infinite;
}
@keyframes hs-pulse { 0%{ transform: scale(.7); opacity: .6; } 70%,100%{ transform: scale(1.5); opacity: 0; } }
.hs:hover, .hs:focus-visible { transform: translate(-50%, -50%) scale(1.18); outline: none; }
.hs[aria-expanded="true"] { background: var(--gold); color: var(--blue-800); }

.hs-tip {
  position: absolute; z-index: 90; left: 50%; top: calc(100% + 12px);
  transform: translateX(-50%);
  width: max-content; max-width: 260px;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: .82rem; line-height: 1.45;
  padding: 10px 13px; border-radius: 10px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.hs-tip b { color: var(--gold); }
.hs-tip::before {
  content: ""; position: absolute; bottom: 100%; left: var(--arrow, 50%); transform: translateX(-50%);
  border: 7px solid transparent; border-bottom-color: var(--ink);
}
.hs-wrap { position: absolute; }                 /* Anker fuer Marker + Tip */
.hs-wrap.open .hs-tip { opacity: 1; visibility: visible; }
/* Tip nach oben, wenn unten kein Platz */
.hs-wrap.up .hs-tip { top: auto; bottom: calc(100% + 12px); }
.hs-wrap.up .hs-tip::before { bottom: auto; top: 100%; border-bottom-color: transparent; border-top-color: var(--ink); }

/* Druck-Legende (nur im Druck sichtbar) */
.hs-legend { display: none; }

/* ---------- FAQ (Akkordeon) ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); margin: 18px 0; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:first-child { border-top: none; }
.faq summary {
  cursor: pointer; padding: 14px 46px 14px 18px; font-weight: 600; color: var(--ink);
  position: relative; list-style: none; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--blue); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--blue); }
.faq .ans { padding: 0 18px 16px; color: var(--ink-soft); font-size: .96rem; }
.faq .ans p:first-child { margin-top: 0; }

/* ---------- Schnellreferenz-Karten ---------- */
.qref { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.qref .qc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.qref .qc h4 { font-family: var(--sans); font-size: .92rem; margin: 0 0 6px; color: var(--blue); }
.qref .qc p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.72); margin-top: 40px;
  font-size: .88rem;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer .muted { opacity: .6; font-size: .8rem; }

/* ---------- Schwebende Druck-Schaltflaeche ---------- */
.print-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  background: var(--blue); color: #fff; border: none; cursor: pointer;
  border-radius: 999px; padding: 12px 18px; font: 600 .92rem var(--sans);
  box-shadow: var(--shadow-lg); display: inline-flex; align-items: center; gap: 8px;
}
.print-fab:hover { background: var(--blue-700); }

/* ============================ RESPONSIVE (nur Bildschirm) ============================ */
/* Wichtig: 'screen' — sonst greift dies im PDF (A4 < 900px) und blendet u.a. die
   Mockup-Seitenleiste aus, wodurch die Hotspots nicht mehr passen. */
@media screen and (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-top: 16px; }
  .toc-card { max-height: none; }
  .toc-toggle { display: flex; }
  .toc nav { display: none; }
  .toc.open nav { display: block; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  body { font-size: 16px; }
}
.toc-toggle { display: none; }

/* ============================ DRUCK (A4-PDF) ============================ */
@media print {
  @page { size: A4; margin: 16mm 14mm 18mm; }
  :root { --maxw: 100%; }
  body { background: #fff; font-size: 10.6pt; line-height: 1.5; }
  #reading-bar, .print-fab, .toc, .toc-toggle { display: none !important; }
  .site-header { color: #000; background: none; border-bottom: 3px solid var(--blue); }
  .site-header::after { display: none; }
  .header-inner { padding: 0 0 14px; }
  .brand-row .brand-name, .header-title { color: var(--blue); }
  .header-lede, .header-meta { color: #333; }
  .header-meta b, .header-lede strong { color: var(--blue); }
  .role-badge { background: var(--blue-50); color: var(--blue); border-color: var(--blue-100); }
  .layout { display: block; padding: 0; }
  .content { padding: 0; }
  section.chapter { margin-top: 16px; }
  .chapter > h2 { break-after: avoid; }
  .chapter > h2, .chapter h3 { page-break-after: avoid; }
  .demo, .note, .steps, .cando, .faq, .qref .qc { break-inside: avoid; }
  .demo { box-shadow: none; }
  a { color: #000; text-decoration: none; }

  /* Hotspots zu Druck-Legende umwandeln */
  .hs::after { display: none; }
  .hs { box-shadow: none; border-color: #fff; width: 20px; height: 20px; font-size: .72rem; }
  .hs-tip { display: none !important; }
  .hs-legend {
    display: block; margin: 10px 2px 0; padding: 12px 14px;
    background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px;
    font-family: var(--sans); font-size: 9.6pt;
  }
  .hs-legend .lt { font-weight: 700; color: var(--blue); margin-bottom: 6px; display: block; }
  .hs-legend li { margin: 3px 0; padding-left: 4px; }
  .hs-legend li .ln {
    display: inline-flex; width: 17px; height: 17px; border-radius: 50%;
    background: var(--blue); color: #fff; font-weight: 700; font-size: 8.5pt;
    align-items: center; justify-content: center; margin-right: 6px;
  }
  .faq details { open: open; }
  .faq details:not([open]) .ans { display: block; }   /* alle Antworten drucken */
  .faq summary::after { display: none; }
}
