@font-face {
  font-family: 'NeulisSans';
  src: url('../fonts/NeulisSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NeulisSans';
  src: url('../fonts/NeulisSans-ExtraBold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #FF0000;
  --accent-dark: #CC0000;
  --deep: #65031D;
  --red: #FF0000;
  --blue: #1565C0;
  --blue-bg: #EDF4FF;
  --blue-bd: #1976D2;
  --blue-sel: #BBDEFB;
  --amber: #F9A825;
  --black: #000;
  --white: #fff;
  --f: 'NeulisSans', -apple-system, sans-serif;
  --g1: #FAFAFA; --g2: #F0F0F0; --g3: #E4E4E4;
  --g4: #C0C0C0; --g5: #999; --g6: #666;
  --g7: #444; --g8: #1a1a1a;
  --r: 2px;
  --bg: #f5f0eb;
  --sidebar: #FAFAF8;
  /* Schriftschnitte: aktuell auf nur Regular/Bold reduziert.
     Zum Reaktivieren der Original-Weights die Variablen unten zurücksetzen
     (--fw-500: 500; --fw-600: 600; --fw-800: 800; --fw-900: 900). */
  --fw-400: 400;
  --fw-500: 400;
  --fw-600: 700;
  --fw-700: 700;
  --fw-800: 700;
  --fw-900: 700;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  font-family: var(--f); -webkit-font-smoothing: antialiased;
  background: var(--bg); color: var(--g8); min-height: 100vh; font-size: 16px;
  display: flex; justify-content: center; align-items: center; padding: 24px; min-height: 100vh;
}
button:focus, button:focus-visible { outline: none; }

.app-card {
  width: 100%; max-width: 1100px;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 12px 50px rgba(0,0,0,.12);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 1fr;
  height: 700px;
}

.hdr { display: none; }

.ch-nav {
  display: flex; flex-direction: row;
  overflow-x: auto; scrollbar-width: none;
  padding: 0; margin: 0;
  border-bottom: 1px solid var(--g3);
  gap: 0; flex-shrink: 0;
  background: var(--white);
}
.ch-nav::-webkit-scrollbar { display: none; }
.ch-nav > div:first-child { display: none; }

.ch-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 0 10px; gap: 5px;
  width: 20%; flex: 0 0 20%;
  border-bottom: 2px solid transparent;
  cursor: default; user-select: none; transition: all .18s;
  position: relative; flex-shrink: 0;
}
.ch-tab + .ch-tab::before { display: none; }
.ch-tab-num { display: none; }
.ch-tab-circle {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.9px solid var(--g3); background: var(--white);
  font-size: 11px; font-weight: var(--fw-700); color: var(--g5);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .18s;
}
.ch-tab-lbl { font-size: 10px; font-weight: var(--fw-600); color: var(--g5); text-align: center; line-height: 1.2; padding: 0; }
.ch-tab-sub { display: none; }

.ch-tab.active { border-bottom-color: var(--g8); }
.ch-tab.active .ch-tab-circle { background: var(--g8); border-color: var(--g8); color: var(--white); }
.ch-tab.active .ch-tab-lbl { color: var(--g8); font-weight: var(--fw-700); }

.ch-tab.done .ch-tab-circle { background: var(--accent); border-color: var(--accent); color: var(--white); }
.ch-tab.done .ch-tab-lbl { color: var(--g6); }

@media (min-width: 769px) {
  .ch-nav {
    flex-direction: column;
    background: var(--sidebar);
    border-right: 1px solid var(--g3);
    border-bottom: none;
    padding: 32px 28px;
    gap: 4px;
    grid-row: 1 / -1;
    overflow: hidden;
  }
  .ch-nav > div:first-child { display: none; }

  .ch-tab {
    display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto;
    column-gap: 14px; row-gap: 2px;
    padding: 16px 0; width: auto; flex: none;
    border-bottom: none; align-items: start;
  }
  .ch-tab + .ch-tab::before {
    display: block; content: ''; position: absolute;
    left: 15px; top: -14px;
    width: 1.5px; height: 28px;
    background: var(--g3);
  }
  .ch-tab-circle { width: 32px; height: 32px; font-size: 13px; grid-row: 1 / 3; align-self: center; }
  .ch-tab-lbl { font-size: 15px; font-weight: var(--fw-600); text-align: left; align-self: end; }
  .ch-tab-sub { display: block; font-size: 12px; font-weight: var(--fw-400); color: var(--g4); line-height: 1.3; align-self: start; }

  .ch-tab.active { border-bottom: none; }
  .ch-tab.active .ch-tab-sub { color: var(--g6); }
  .ch-tab.done .ch-tab-sub { color: var(--g4); }
}

.prog-wrap { display: none; }
.prog-bar { display: none; }

body.intro-mode .ch-nav { display: none; }
@media (min-width: 769px) {
  body.intro-mode .app-card { grid-template-columns: 1fr; }
}

/* === Intro-Layout (Minimal Editorial) === */
.intro-layout { display: grid; grid-template-rows: auto 1fr auto; padding: 28px 40px 24px; height: 100%; flex: 1; }
.intro-top { display: flex; justify-content: space-between; align-items: flex-start; }
.intro-mark { font-size: 11px; font-weight: var(--fw-700); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.intro-mark-dark { color: var(--g8); }
.intro-logo { width: 90px; height: 46px; background: url('../assets/aktivoptik.jpg') no-repeat center/contain; }
.intro-mid { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.intro-title { font-size: 72px; font-weight: var(--fw-900); letter-spacing: -.045em; line-height: .98; color: var(--g8); max-width: 880px; }
.intro-title strong { font-weight: var(--fw-900); color: var(--accent); }
.intro-rule { width: 80px; height: 2px; background: var(--g8); }
.intro-sub { font-size: 17px; color: var(--g6); line-height: 1.6; max-width: 750px; font-weight: var(--fw-400); }
.intro-pflicht { font-size: 13px; color: var(--g5); margin: 0; }
.intro-bot { display: flex; justify-content: flex-start; align-items: flex-end; }
.intro-meta { display: flex; gap: 32px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--g5); font-weight: var(--fw-600); }
.intro-meta b { display: block; color: var(--g8); font-size: 22px; font-weight: var(--fw-800); letter-spacing: -.02em; text-transform: none; margin-bottom: 2px; }

@media (max-width: 768px) {
  .intro-layout { padding: 16px 16px 16px; }
  .intro-logo { display: none; }
  .intro-title { font-size: 44px; }
  .intro-sub { font-size: 15px; }
  .intro-meta { gap: 20px; }
  .intro-meta b { font-size: 18px; }
}

.right-panel { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.screen { display: none; padding-bottom: 0; overflow: hidden; flex-direction: column; }
.screen.active { display: flex; flex: 1; overflow: hidden; }

.hero { padding: 28px 40px 16px; background: var(--white); border-bottom: 1px solid var(--g2); flex-shrink: 0; position: relative; }
.hero::after { content: ''; position: absolute; top: 28px; right: 40px; width: 90px; height: 46px; background: url('../assets/aktivoptik.jpg') no-repeat center/contain; pointer-events: none; }
.hero-tag { display: none; font-size: 11px; font-weight: var(--fw-600); color: var(--g5); margin-bottom: 4px; }
.hero-title { font-size: 28px; font-weight: var(--fw-800); letter-spacing: -.04em; line-height: 1.1; color: var(--g8); margin-bottom: 6px; }
.hero-title { max-width: calc(100% - 140px); }
.hero-sub { font-size: 15px; color: var(--g5); line-height: 1.6; font-weight: var(--fw-400); max-width: calc(100% - 140px); }

.content { padding: 24px 40px 24px; flex: 1; overflow-y: auto; }
.content::-webkit-scrollbar { width: 4px; }
.content::-webkit-scrollbar-thumb { background: var(--g3); border-radius: 2px; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; margin-bottom: 20px; padding: 0; background: transparent; border: none; }
.leg { display: flex; align-items: center; gap: 5px; font-weight: var(--fw-500); color: var(--g6); }
.leg-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

.qblock { background: var(--white); padding: 0px 0px 18px; margin-bottom: 20px; position: relative; }
.qblock-err { border: 1px solid var(--deep); border-radius: var(--r); padding: 20px 16px 18px; animation: shake .3s ease; position: relative; }
.qblock-err::after {
  content: '!'; position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--deep); color: var(--white);
  font-size: 14px; font-weight: var(--fw-800); line-height: 22px;
  text-align: center; z-index: 5;
}
.pflicht { color: var(--deep); font-weight: var(--fw-700); }
.val-msg { display: none; padding: 8px 14px; margin: 6px 0; background: #FFF5F5; border: 1px solid var(--deep); border-radius: var(--r); font-size: 13px; color: var(--deep); font-weight: var(--fw-500); line-height: 1.4; }
.val-msg.show { display: block; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.qblock.dep { background: var(--white); border-color: var(--g3); }
.dep-tag { display: none; }
.dep-tag::before { content: ''; font-size: 12px; }
.q-title { font-size: 19.5px; font-weight: var(--fw-800); color: var(--g8); margin-bottom: 8px; line-height: 1.35; letter-spacing: -.015em; }
.dep .q-title { color: var(--g8); }
.sq-lbl { font-weight: var(--fw-600); font-size: 14px; color: var(--g6); margin-bottom: 8px; margin-top: 18px; }
.sq-lbl:first-child { margin-top: 0; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.col { flex-direction: column; }
.sit-row { display: flex; flex-direction: column; }
.sit-dep { background: var(--white); border: 1px solid var(--g3); border-radius: var(--r); padding: 12px 18px 14px 18px; margin-top: 8px; margin-bottom: 4px; }
.sit-row > .sit-dep { border-top: none; border-radius: 0 0 var(--r) var(--r); margin-top: 0; }
.sit-dep .dep-tag { display: block; font-size: 13px; font-weight: var(--fw-600); color: var(--g6); margin-bottom: 8px; }
.sit-dep .choices { flex-wrap: wrap; gap: 6px; }
.sit-dep .btn { border-color: var(--g3); background: var(--white); }

.sit-dep .btn:hover { border-color: var(--g6); }


.sit-dep .btn.sel { border: 1.9px solid var(--deep); background: var(--white); font-weight: var(--fw-600); color: var(--g8); }

.sit-row > .btn { border-radius: var(--r); }
.btn { padding: 0 24px; min-height: 52px; display: inline-flex; align-items: center; border: 1.9px solid var(--g3); border-radius: var(--r); background: var(--white); font-family: var(--f); font-size: 17px; font-weight: var(--fw-400); cursor: pointer; transition: all .15s; text-align: left; line-height: 1.4; color: var(--g7); }
.btn::before { display: none; }
.btn:hover { border-color: var(--g6); }

.btn.sel { border: 1.9px solid var(--deep); background: var(--white); font-weight: var(--fw-600); color: var(--g8); }

.dep .btn { border-color: var(--g3); }
.dep .btn:hover { border-color: var(--g6); }

.dep .btn.sel { border: 1.9px solid var(--deep); background: var(--white); font-weight: var(--fw-600); color: var(--g8); }

.btn small { display: block; font-weight: var(--fw-400); font-size: 13px; color: var(--g5); margin-top: 2px; width: 100%; }
.btn:has(small) { flex-direction: column; align-items: flex-start; padding: 12px 18px; min-height: 64px; }
.btn:has(small) > small { flex: none; margin-left: 0; margin-top: 4px; }
.multi-hint { font-size: 15px; color: var(--g5); margin-top: 0; margin-bottom: 16px; font-weight: var(--fw-500); }
.brille-info { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.brille-info.hidden { display: none; }
.brille-info p { margin: 0; padding: 12px 14px; background: var(--g1); border-radius: var(--r); border-left: 3px solid var(--g8); font-size: 14px; line-height: 1.5; color: var(--g7); }
.brille-info b { font-weight: var(--fw-700); color: var(--g8); }
@media (max-width: 768px) { .brille-info p { padding: 10px 12px; font-size: 13px; } }

.num-inp { width: 140px; padding: 0 16px; height: 44px; border: 1px solid var(--g3); border-radius: var(--r); font-size: 16px; font-family: var(--f); color: var(--g8); transition: border-color .15s; }
.num-inp:focus { outline: none; border-color: var(--g8); }
.txt-area { width: 100%; min-height: 445px; padding: 14px 16px; border: 1px solid var(--g3); border-radius: var(--r); font-size: 15px; font-family: var(--f); color: var(--g8); resize: vertical; transition: border-color .15s; line-height: 1.5; }
.txt-area:focus { outline: none; border-color: var(--g8); }
/* Mobile: min. 16px Schrift verhindert den iOS-Auto-Zoom beim Fokussieren (sonst bleibt
   nach dem Rausklicken horizontaler Overflow zurück). !important schlägt das Inline-min-height:0. */
@media (max-width: 768px) {
  .txt-area { font-size: 16px; min-height: 320px !important; }
}

.info-box { background: var(--g1); border-left: 3px solid var(--g4); padding: 12px 16px; border-radius: 0 var(--r) var(--r) 0; font-size: 14px; color: var(--g6); margin-top: 12px; line-height: 1.55; font-weight: var(--fw-500); }

.nav { background: var(--white); border-top: 1px solid var(--g2); padding: 16px 40px; display: flex; gap: 10px; align-items: center; flex-shrink: 0; z-index: 10; margin-top: auto; }
.btn-prim { background: var(--accent); color: var(--white); border: none; padding: 0 24px; font-family: var(--f); font-weight: var(--fw-700); font-size: 15px; cursor: pointer; border-radius: var(--r); height: 44px; display: flex; align-items: center; justify-content: center; min-width: 120px; }
.btn-sec { background: var(--white); color: var(--g6); border: 1px solid var(--g3); padding: 0 18px; font-family: var(--f); font-weight: var(--fw-600); font-size: 15px; cursor: pointer; border-radius: var(--r); transition: all .15s; height: 44px; display: flex; align-items: center; justify-content: center; }
.btn-sec:hover { border-color: var(--g6); color: var(--g8); }
.nav-spacer { flex: 1; }
.nav-label { font-size: 12px; font-weight: var(--fw-600); color: var(--g5); white-space: nowrap; }
.hidden { display: none !important; }

.aus-hero { padding: 28px 40px 16px; background: var(--white); border-bottom: 1px solid var(--g2); position: relative; flex-shrink: 0; }
.aus-hero-tag { font-size: 11px; font-weight: var(--fw-600); color: var(--g5); margin-bottom: 4px; }
.aus-hero-title { font-size: 28px; font-weight: var(--fw-800); letter-spacing: -.04em; color: var(--g8); margin-bottom: 6px; }
.aus-hero-sub { font-size: 15px; color: var(--g5); }
.auswertung { padding: 24px 40px 80px; overflow-y: auto; flex: 1; }
.auswertung::-webkit-scrollbar { width: 4px; }
.auswertung::-webkit-scrollbar-thumb { background: var(--g3); border-radius: 2px; }
.aus-section { margin-bottom: 24px; }
.aus-heading { font-size: 11px; font-weight: var(--fw-700); letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--deep); }

.aus-summary { background: var(--g8); color: var(--white); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.aus-summary h3 { font-size: 11px; font-weight: var(--fw-700); letter-spacing: .12em; text-transform: uppercase; color: var(--g5); padding: 16px 24px 14px; border-bottom: 1px solid #2a2a2a; margin: 0; }
.aus-sum-group { padding: 20px 24px; border-bottom: 1px solid #2a2a2a; }
.aus-sum-group:last-child { border-bottom: none; }
.aus-sum-group-lbl { font-size: 10px; font-weight: var(--fw-700); letter-spacing: .12em; text-transform: uppercase; color: var(--g5); margin-bottom: 14px; }
.aus-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; margin-bottom: 10px; }
.aus-row:last-child { margin-bottom: 0; }
.aus-row span:first-child { font-size: 13px; font-weight: var(--fw-500); color: #777; }
.aus-row span:last-child { font-size: 15px; font-weight: var(--fw-600); color: #e8e8e8; line-height: 1.5; }
.aus-sum-kombi { padding: 20px 24px; border-top: 1px solid #2a2a2a; }
.aus-sum-kombi-lbl { font-size: 10px; font-weight: var(--fw-700); letter-spacing: .12em; text-transform: uppercase; color: var(--g5); margin-bottom: 14px; }

.aus-card { background: var(--white); border-radius: var(--r); border: 1px solid var(--g3); margin-bottom: 10px; overflow: hidden; }
.aus-card-label { font-size: 10px; font-weight: var(--fw-700); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; opacity: .8; }
.aus-card-badge { display: inline-block; font-size: 15px; font-weight: var(--fw-700); padding: 5px 14px; border-radius: var(--r); }
.aus-card.blue .aus-card-top { background: var(--blue-bg); padding: 14px 16px; border-bottom: 2px solid var(--blue); }
.aus-card.blue .aus-card-label { color: var(--blue); }
.aus-card.blue .aus-card-badge { background: var(--blue); color: #fff; }
.aus-card.red .aus-card-top { background: #FFF5F5; padding: 14px 16px; border-bottom: 2px solid var(--deep); }
.aus-card.red .aus-card-label { color: var(--deep); }
.aus-card.red .aus-card-badge { background: var(--deep); color: #fff; }
.aus-card-bottom { padding: 12px 16px; font-size: 14px; color: var(--g6); line-height: 1.5; }
.no-data { font-size: 14px; color: var(--g5); font-style: italic; padding: 8px 0; }
.ind-card { background: var(--white); border-radius: var(--r); border: 1px solid var(--g3); margin-bottom: 10px; overflow: hidden; }
.ind-card-frage { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--g2); }
.ind-card-q { font-size: 14px; color: var(--g6); }
.ind-card-a { font-size: 14px; font-weight: var(--fw-700); color: var(--blue); }
.ind-card-emp { padding: 12px 16px; background: var(--blue-bg); display: flex; align-items: flex-start; gap: 10px; }
.ind-card-emp-label { font-size: 10px; font-weight: var(--fw-700); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); white-space: nowrap; padding-top: 2px; }
.ind-card-emp-text { font-size: 14px; font-weight: var(--fw-600); color: var(--g8); line-height: 1.4; }

.aus-details { margin-bottom: 12px; border-radius: var(--r); border: 1px solid var(--g3); overflow: hidden; }
.aus-details-toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--white); font-size: 14px; font-weight: var(--fw-600); color: var(--g7); cursor: pointer; list-style: none; user-select: none; transition: all .15s; }
.aus-details-toggle::-webkit-details-marker { display: none; }
.aus-details-toggle::after { content: '↓'; font-size: 14px; color: var(--g4); transition: transform .2s; }
details[open] .aus-details-toggle::after { transform: rotate(180deg); }
.aus-details-toggle:hover { background: var(--g1); }
.aus-details-body { border-top: 1px solid var(--g2); padding: 16px 0 4px; }

.bedarfs-item { margin-bottom: 14px; }
.bedarfs-item-lbl { font-size: 11px; font-weight: var(--fw-700); color: var(--g6); letter-spacing: .08em; text-transform: uppercase; }
.bedarfs-item-sub { font-size: 13px; color: var(--g5); margin-top: 2px; }
.bedarfs-summary { background: var(--blue-bg); border: 1px solid var(--blue-bd); border-radius: var(--r); padding: 16px 18px; margin-top: 10px; }
.bedarfs-summary-lbl { font-size: 10px; font-weight: var(--fw-700); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.bedarfs-summary-item { font-size: 15px; font-weight: var(--fw-600); color: var(--g8); padding: 6px 0; border-bottom: 1px solid #D0E4F7; line-height: 1.4; }
.bedarfs-summary-item:last-child { border-bottom: none; }

.view-toggle { display: flex; border: 1px solid var(--g3); border-radius: var(--r); overflow: hidden; }
.view-toggle-btn { padding: 6px 14px; font-family: var(--f); font-size: 11px; font-weight: var(--fw-600); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; border: none; background: transparent; color: var(--g5); transition: all .15s; height: 32px; }
.view-toggle-btn.active { background: var(--g8); color: var(--white); }
.view-toggle-btn:not(.active):hover { background: var(--g1); }

.nutzerview { display: none; padding: 24px 40px 24px; overflow-y: auto; flex: 1; }
.nutzerview.visible { display: block; }
.nv-card { background: transparent; border: none; overflow: visible; width: 100%; max-width: 100%; }
.nv-header { padding: 0 0 16px; border-bottom: 1px solid var(--g2); margin-bottom: 20px; }
.nv-pretitle { display: none; }
.nv-name { display: none; }
.nv-sub { display: none; }
.nv-section { padding: 0; margin-bottom: 20px; }
.nv-section:last-child { margin-bottom: 0; }
.nv-section-lbl { font-size: 11px; font-weight: var(--fw-700); letter-spacing: .1em; text-transform: uppercase; color: var(--g8); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1.9px solid var(--g8); }
.nv-erl-section .nv-section-lbl { margin-bottom: 18px; }
.nv-cat { margin-bottom: 20px; }
.nv-cat:last-child { margin-bottom: 0; }
.nv-cat-lbl { font-size: 13px; font-weight: var(--fw-700); color: var(--g7); margin-bottom: 10px; letter-spacing: -.01em; }
.nv-erl-list { display: flex; flex-direction: column; gap: 8px; }
.nv-erl-item { padding: 12px 14px; border-radius: var(--r); background: var(--g1); border: 1px solid var(--g3); position: relative; page-break-inside: avoid; break-inside: avoid; }
.nv-erl-item.is-rec { background: var(--white); border-color: var(--g8); border-width: 1.5px; }
.nv-erl-badge { position: absolute; top: 10px; right: 12px; font-size: 9.5px; font-weight: var(--fw-700); letter-spacing: .08em; text-transform: uppercase; color: var(--g8); }
.nv-erl-title { font-size: 14px; font-weight: var(--fw-700); color: var(--g8); margin-bottom: 5px; padding-right: 110px; }
.nv-erl-desc { font-size: 13px; color: var(--g6); line-height: 1.5; margin: 0 0 4px; }
.nv-erl-sub { font-size: 12px; color: var(--g5); line-height: 1.45; margin: 0; font-style: italic; }
.nv-scenario-text { font-size: 15px; line-height: 1.55; color: var(--g7); margin: 0 0 14px; max-width: 760px; }
.nv-scenario-leadin { font-size: 14px; font-weight: var(--fw-600); color: var(--g8); margin: 0 0 10px; }
.nv-kombi { background: var(--g8); border-radius: var(--r); padding: 16px 20px; page-break-inside: avoid; break-inside: avoid; }
.nv-kombi-nr { font-size: 10px; font-weight: var(--fw-700); letter-spacing: .12em; text-transform: uppercase; color: var(--g5); margin-bottom: 10px; }
.nv-kombi-items { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nv-kombi-item { display: flex; align-items: center; gap: 10px; }
.nv-kombi-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.nv-kombi-txt { font-size: 15px; font-weight: var(--fw-600); color: var(--white); }
.nv-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 24px; }
.nv-fact-lbl { font-size: 10px; font-weight: var(--fw-700); letter-spacing: .1em; text-transform: uppercase; color: var(--g4); margin-bottom: 4px; }
.nv-fact-val { font-size: 15px; font-weight: var(--fw-600); color: var(--g8); }
.nv-hinweis-list { display: flex; flex-direction: column; gap: 6px; }
.nv-hinweis { padding: 12px 14px; background: var(--g1); border-radius: var(--r); border-left: 3px solid var(--g3); page-break-inside: avoid; break-inside: avoid; }
.nv-hinweis.warn { border-left-color: var(--g8); }
.nv-hinweis-txt { font-size: 14px; color: var(--g7); line-height: 1.5; }

.cl-counter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; background: var(--white); border-top: 1px solid var(--g2); }
.cl-counter-item { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--g3); }
.cl-counter-win { border-color: var(--deep); background: #FFF8F6; }
.cl-counter-win-blue { border-color: var(--blue); background: var(--blue-bg); }
.cl-counter-lbl { font-size: 12px; font-weight: var(--fw-600); color: var(--g6); }
.cl-counter-win .cl-counter-lbl { color: var(--deep); }
.cl-counter-win-blue .cl-counter-lbl { color: var(--blue); }
.cl-counter-val { font-size: 20px; font-weight: var(--fw-800); min-width: 24px; text-align: center; }
.cl-counter-sep { font-size: 13px; font-weight: var(--fw-700); color: var(--g4); }
.cl-counter-result { font-size: 12px; font-weight: var(--fw-700); color: var(--deep); margin-left: auto; }
.checklist-wrap { background: var(--white); border-radius: var(--r); border: 1px solid var(--g3); overflow: hidden; }
.cl-group { padding: 14px 18px 12px; border-bottom: 1px solid var(--g2); }
.cl-group:last-child { border-bottom: none; }
.cl-group-lbl { font-size: 10px; font-weight: var(--fw-700); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.cl-item { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--g8); line-height: 1.5; padding: 3px 0; }
.cl-dash { font-weight: var(--fw-700); color: var(--deep); }

.followup-group { margin: 8px 0 8px 16px; border-left: 2px solid var(--blue-bd); }
.followup-group-label { font-size: 10px; font-weight: var(--fw-700); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); opacity: .7; padding: 4px 14px 8px; }
.followup-card { background: var(--white); border-radius: var(--r); border: 1px solid var(--g3); margin: 0 0 8px 14px; overflow: hidden; display: flex; }
.followup-card.active { border-color: var(--blue-bd); }
.followup-connector { width: 24px; display: flex; align-items: flex-start; justify-content: center; padding-top: 11px; font-size: 13px; color: var(--blue-bd); }
.followup-body { flex: 1; min-width: 0; }
.followup-frage { padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--g2); }
.followup-q { font-size: 13px; color: var(--g6); }
.followup-a { font-size: 13px; font-weight: var(--fw-700); color: var(--g5); }
.followup-a.warn { color: var(--blue); }
.followup-emp { padding: 10px 14px; background: var(--blue-bg); }
.followup-emp-label { font-size: 10px; font-weight: var(--fw-700); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.followup-emp-text { font-size: 13px; font-weight: var(--fw-600); color: var(--g8); line-height: 1.4; margin-top: 3px; }

body.note-mode .qblock { outline: 1px dashed rgba(137,117,96,.25); }
body.note-mode .qblock.noted { outline: 2px solid var(--accent); }
.nt { display: none; position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--g2); border: 1px solid var(--g4); font-size: 9px; line-height: 16px; text-align: center; cursor: pointer; z-index: 30; transition: all .15s; }
.nt:hover, .nt.on { background: var(--accent); border-color: var(--accent); color: var(--white); }
body.note-mode .nt { display: block; }
#npop { display: none; position: fixed; z-index: 500; width: 280px; background: var(--white); border: 1px solid var(--accent); border-radius: var(--r); box-shadow: 0 8px 32px rgba(0,0,0,.12); padding: 16px; }
#npop.open { display: block; }
#npop .npop-lbl { font-size: 10px; font-weight: var(--fw-700); text-transform: uppercase; color: var(--g5); margin-bottom: 8px; }
#npop textarea { width: 100%; min-height: 80px; border: 1px solid var(--g3); border-radius: var(--r); padding: 10px; font-size: 14px; font-family: var(--f); }
#npop textarea:focus { outline: none; border-color: var(--accent); }
#npop .npop-row { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
#npop .npop-row button { font-family: var(--f); font-size: 12px; font-weight: var(--fw-600); padding: 6px 14px; border-radius: var(--r); cursor: pointer; border: none; height: 32px; }
.np-del { background: var(--g1); color: var(--g5); }
.np-save { background: var(--accent); color: var(--white); }
.npanel { display: none; position: fixed; right: 0; top: 0; bottom: 0; width: 300px; background: var(--white); border-left: 1px solid var(--accent); box-shadow: -4px 0 24px rgba(0,0,0,.06); z-index: 400; flex-direction: column; }
.npanel.open { display: flex; }
.npanel-hdr { background: var(--accent); color: var(--white); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: var(--fw-700); font-size: 14px; }
.npanel-hdr button { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--white); }
.npanel-body { flex: 1; overflow-y: auto; padding: 12px; }
.npanel-empty { color: var(--g5); font-size: 14px; text-align: center; padding: 28px 8px; }
.np-item { background: var(--g1); border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.np-item:hover { background: var(--g2); }
.np-item-lbl { font-weight: var(--fw-700); font-size: 10px; color: var(--g5); text-transform: uppercase; margin-bottom: 3px; }
.np-item-txt { color: var(--g7); }
.np-global-note { padding: 12px; border-top: 1px solid var(--accent); background: var(--g1); }
.np-global-label { font-size: 10px; font-weight: var(--fw-700); text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.np-global-note textarea { width: 100%; min-height: 72px; border: 1px solid var(--g3); border-radius: var(--r); padding: 10px; font-size: 14px; font-family: var(--f); }
.npanel-footer { padding: 12px; border-top: 1px solid var(--g2); display: flex; flex-direction: column; gap: 6px; }
.np-copy { width: 100%; background: var(--g8); color: var(--white); border: none; padding: 10px; border-radius: var(--r); font-weight: var(--fw-700); font-size: 14px; cursor: pointer; }
.np-copy:hover { background: var(--black); }
.np-copy.ok { background: #2E7D32; }
.np-clr { width: 100%; background: transparent; color: #C00; border: 1px solid #FFD0D0; padding: 8px; border-radius: var(--r); font-weight: var(--fw-600); font-size: 13px; cursor: pointer; }
.np-fab { display: none; position: fixed; right: 16px; bottom: 40px; background: var(--accent); color: var(--white); border: none; border-radius: 20px; padding: 10px 18px; font-weight: var(--fw-700); font-size: 13px; cursor: pointer; z-index: 500; box-shadow: 0 4px 16px rgba(0,0,0,.12); align-items: center; gap: 6px; height: 40px; }
body.note-mode .np-fab { display: flex; }
.np-fab .badge { background: var(--white); color: var(--accent); border-radius: 50%; width: 18px; height: 18px; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: var(--fw-700); }

@media (max-width: 768px) {
  body { padding: 0; min-height: 100dvh; align-items: stretch; }
  .app-card { max-width: 100%; border-radius: 0; box-shadow: none; height: 100dvh; display: flex; flex-direction: column; }
  .ch-tab-sub { display: none; }
  .ch-tab.active { border-bottom-color: var(--g8); }
  .right-panel { flex: 1; min-height: 0; order: 2; display: flex; flex-direction: column; }
  .hdr { display: flex; order: 0; justify-content: center; align-items: center; padding: 14px 16px; background: var(--white); border-bottom: 1px solid var(--g3); flex-shrink: 0; }
  .ch-nav { order: 1; }
  .hero { padding: 16px 16px 10px; }
  .hero::after { display: none; }
  .hero-tag { display: none; font-size: 10px; }
  .hero-title { font-size: 22px; max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .screen.active { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .content { padding: 12px 16px 12px; overflow-y: visible; flex: none; }
  /* Hero kollabiert smooth, sobald der User auf dem Kapitel die erste Eingabe gemacht hat.
     Zum Zurückrollen einfach diesen Block entfernen. */
  .hero { max-height: 240px; overflow: hidden; transition: max-height .3s ease, opacity .25s ease, padding .3s ease, border-bottom-color .3s ease; }
  .screen.input-given .hero { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-bottom-color: transparent; }
  .nav { padding: 10px 16px; }
  .auswertung { padding: 16px 16px 24px; }
  .aus-hero { padding: 16px 16px 10px; }
}
