:root {
  color-scheme: light;

  /* 2011 product page, taken from the look of the Benutzerhandbuch */
  --paper: #ffffff;
  --ink: #1b1b1b;
  --ink-soft: #555555;
  --teal: #2fbf9f;
  --teal-dark: #1f9a80;
  --rule: #d9d9d9;
  --quote-bg: #f2fbf8;

  /* Desktop chrome */
  --face: #ece9d8;
  --face-line: #aca899;
  --title-top: #0997ff;
  --title-mid: #0053ee;
  --title-bot: #003dd7;
  --legend: #0046d5;
  --sidebar: #808080;
  --select: #316ac5;
  --red: #ff0000;
  --btn-line: #003c74;
  --hot: #e5a01a;

  --ui: Tahoma, Verdana, Geneva, "DejaVu Sans", sans-serif;
  --serif: Cambria, Georgia, "DejaVu Serif", "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.5; }
body.in-app { overflow: hidden; }
img { max-width: 100%; height: auto; }

/* ---------- Landing ---------- */

#landing { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.logo { display: block; flex: none; }
/* The white diamond runs to the image edge, so without a frame the tile dissolves into the white page. */
.logo img { display: block; width: 72px; height: auto; border: 2px solid #006635; }
.top-note { font-family: var(--ui); font-size: 12px; color: var(--ink-soft); }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 48px 0 40px; }
h1 { margin: 0; font-size: clamp(44px, 7vw, 68px); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
.tagline { margin: 4px 0 20px; font-size: 24px; font-style: italic; color: var(--teal-dark); }
.lede { margin: 0 0 24px; }

.cta {
  font: 700 17px/1.2 var(--ui); color: #fff; cursor: pointer; padding: 13px 22px;
  border: 1px solid #2d6b1f; border-radius: 5px; text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, #7cd15a 0, #45a82d 48%, #388f22 52%, #4fb534 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 3px rgba(0, 0, 0, .25);
}
.cta:hover { filter: brightness(1.07); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
.cta-note { margin: 10px 0 0; font-family: var(--ui); font-size: 12px; color: var(--ink-soft); }

.boxshot { position: relative; margin: 0; }
.boxshot img { display: block; width: 100%; border: 1px solid var(--rule); box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.boxshot figcaption { margin-top: 10px; font-size: 13px; font-style: italic; color: var(--ink-soft); text-align: center; }
.burst {
  position: absolute; z-index: 1; top: -28px; right: -10px; width: 112px; height: 112px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font: 700 20px/1.05 var(--ui); color: #fff; background: #e4002b; transform: rotate(12deg);
  clip-path: polygon(50% 0, 61% 12%, 75% 6%, 79% 21%, 94% 21%, 90% 36%, 100% 50%, 90% 64%, 94% 79%, 79% 79%, 75% 94%, 61% 88%, 50% 100%, 39% 88%, 25% 94%, 21% 79%, 6% 79%, 10% 64%, 0 50%, 10% 36%, 6% 21%, 21% 21%, 25% 6%, 39% 12%);
}
.burst small { font-size: 10px; font-weight: 400; max-width: 64px; }

h2 { margin: 0 0 24px; padding-bottom: 8px; font-size: 30px; line-height: 1.2; background: linear-gradient(90deg, var(--teal), rgba(47, 191, 159, 0)) bottom left / 70% 5px no-repeat; }
.why { padding: 24px 0; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.reasons article { display: flex; flex-direction: column; }
h3 { margin: 0 0 6px; font-size: 20px; font-style: italic; font-weight: 400; color: var(--teal-dark); }
.reasons p { margin: 0 0 12px; }
blockquote { margin: auto 0 0; padding: 12px 14px; background: var(--quote-bg); border-left: 4px solid var(--teal); font-weight: 700; }
cite { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--ink-soft); }

.tech { padding: 32px 0 48px; }
dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
dt { font-family: var(--ui); font-size: 12px; color: var(--ink-soft); }
dd { margin: 2px 0 0; font-weight: 700; }

.foot { padding: 20px 0 32px; border-top: 1px solid var(--rule); font-family: var(--ui); font-size: 13px; color: var(--ink-soft); }
.foot p { margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { color: var(--teal-dark); }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 32px; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .burst { right: -4px; width: 96px; height: 96px; font-size: 17px; }
  .cta { width: 100%; }
}

/* ---------- Desktop ---------- */

#desktop {
  position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 12px 42px; font: 11px/1.3 var(--ui); color: #000;
  background:
    radial-gradient(120% 55% at 25% 108%, #5d9b2f 0 60%, transparent 61%),
    radial-gradient(120% 50% at 85% 112%, #76b23b 0 60%, transparent 61%),
    linear-gradient(180deg, #2a6fd6 0, #6ea8ea 55%, #cfe3f6 78%);
}

.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #3f8cf3 0, #245edb 10%, #245edb 88%, #1941a5 100%); color: #fff;
}
.startbtn {
  height: 100%; padding: 0 18px 0 12px; border: 0; border-radius: 0 9px 9px 0; cursor: pointer; color: #fff;
  font: italic 700 15px var(--ui); text-shadow: 1px 1px 1px rgba(0, 0, 0, .5);
  background: linear-gradient(180deg, #5eb85e 0, #3a973a 12%, #378f37 88%, #2c742c 100%);
}
.task { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 12px 0 6px; width: 160px; background: #1e52b7; border-radius: 3px; box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .4); }
.tray { margin-left: auto; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: linear-gradient(180deg, #1290e8, #0f7ad3); border-left: 1px solid #0a4f9e; }

.splash {
  width: min(340px, 100%); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--face); border: 2px solid var(--title-mid); box-shadow: 3px 3px 10px rgba(0, 0, 0, .4); text-align: center;
}
.splash strong { font-size: 18px; font-family: Arial, Helvetica, sans-serif; }

.chunkbar { width: 100%; height: 16px; padding: 2px; background: #fff; border: 1px solid #686868; border-radius: 3px; overflow: hidden; }
.chunkbar i {
  display: block; height: 100%; width: 0; transition: width .25s linear;
  background: repeating-linear-gradient(90deg, #2bd12b 0 8px, transparent 8px 10px);
}

/* ---------- Window ---------- */

.win {
  width: min(1100px, 100%); height: min(700px, 100%); display: flex; flex-direction: column; min-height: 0;
  background: var(--face); border: 3px solid var(--title-mid); border-top: 0; border-radius: 7px 7px 0 0;
  box-shadow: 3px 4px 14px rgba(0, 0, 0, .45);
}
.win.is-max { width: 100%; height: 100%; }

.titlebar {
  flex: none; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 3px 0 6px; border-radius: 7px 7px 0 0; color: #fff;
  background: linear-gradient(180deg, var(--title-top) 0, var(--title-mid) 8%, #0050ee 40%, #0066ff 88%, var(--title-bot) 100%);
}
.titlebar-sm { height: 25px; }
.titlebar-text { font: 700 13px Trebuchet MS, var(--ui); text-shadow: 1px 1px 1px #0f1089; }
.titlebar-btns { margin-left: auto; display: flex; gap: 2px; }
.tb {
  width: 22px; height: 22px; padding: 0; color: #fff; font: 700 12px/1 var(--ui); cursor: pointer; border: 1px solid #fff; border-radius: 3px;
  background: radial-gradient(circle at 30% 30%, #5b8ff0, #1a4fd0);
}
.tb-close { background: radial-gradient(circle at 30% 30%, #ef9270, #c63b14); }

.menubar { flex: none; display: flex; padding: 1px 2px; border-bottom: 1px solid var(--face-line); }
.menu { position: relative; }
.menu > button { padding: 3px 8px; border: 0; background: none; font: inherit; cursor: pointer; }
.menu > button:hover, .menu > button[aria-expanded="true"] { background: var(--select); color: #fff; }
.dropdown { position: absolute; z-index: 5; top: 100%; left: 0; min-width: 220px; padding: 2px; background: #fff; border: 1px solid var(--face-line); box-shadow: 2px 2px 3px rgba(0, 0, 0, .35); }
.dropdown button { display: block; width: 100%; padding: 4px 18px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.dropdown button:hover:not(:disabled) { background: var(--select); color: #fff; }
.dropdown button:disabled { color: var(--face-line); cursor: default; }
.dropdown hr { margin: 2px 1px; border: 0; border-top: 1px solid var(--face-line); }

.win-body { flex: 1; min-height: 0; display: flex; gap: 3px; padding: 3px; }

.bar { flex: none; width: 92px; display: flex; flex-direction: column; gap: 6px; }
.bar-btns { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 3px; background: var(--sidebar); border: 1px solid var(--face-line); }
.bar-btns button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border: 1px solid transparent; border-radius: 3px;
  background: none; color: #fff; font: inherit; cursor: pointer;
}
.bar-btns button:hover { border-color: #fff; }
.bar-btns button[aria-pressed="true"] { background: #fff; color: #000; border-color: #000; }
.bar-btns button img { width: 40px; height: auto; }
.bar-btns .bar-update { background: var(--red); border: 1px solid #fff; border-left-width: 5px; color: #fff; font-weight: 700; font-size: 13px; animation: blink 1s steps(2, jump-none) infinite; }
.bar-sticker { align-self: center; }

.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 3px; }

fieldset.group { min-width: 0; margin: 0; padding: 3px 7px 6px; border: 1px solid #d0d0bf; border-radius: 4px; }
fieldset.group > legend { padding: 0 3px; color: var(--legend); }

.patient { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.patient-name { font: 700 18px/1.3 Arial, Helvetica, sans-serif; color: var(--red); min-width: 0; overflow-wrap: anywhere; }
.patient-btns { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }

.panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tab-strip { flex: none; display: flex; }
.tab { padding: 3px 12px; background: #fff; border: 1px solid var(--face-line); border-bottom: 0; border-radius: 3px 3px 0 0; }
.sheet { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; padding: 6px; background: #f6f5ec; border: 1px solid var(--face-line); }

.col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 5px; }
.filter { flex: none; display: flex; gap: 5px; }
.filter input { flex: 1; min-width: 0; height: 21px; padding: 1px 3px; border: 1px solid #7f9db9; font: inherit; }
.tree { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 3px; background: #fff; border: 1px solid #7f9db9; list-style: none; }
.tree ul { margin: 0; padding: 0 0 0 18px; list-style: none; border-left: 1px dotted #999; margin-left: 7px; }
.node { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 17px; padding: 0 2px; border: 0; background: none; font: inherit; text-align: left; cursor: default; }
button.node { cursor: pointer; }
.node-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node[aria-selected="true"] { background: var(--select); color: #fff; }
.node-state { flex: none; width: 14px; height: 14px; }
.tree.no-hints .node-state { visibility: hidden; }
.ic-folder, .ic-doc { flex: none; display: inline-block; width: 14px; height: 12px; }
.ic-folder { background: linear-gradient(180deg, #ffe681, #eebc3a); border: 1px solid #9c7a12; border-radius: 1px 3px 1px 1px; }
.ic-doc { width: 10px; height: 13px; background: #fff; border: 1px solid #666; }
.tree-empty { padding: 6px; color: #666; }

.arrows { flex: none; display: flex; flex-direction: column; gap: 6px; padding-top: 26px; }
.col-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.col-foot label { display: inline-flex; align-items: center; gap: 3px; }
.dest { flex: 1; min-height: 0; display: flex; }
.dest > fieldset { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 2px 4px 4px; }
.dest.is-over .tree { background: #fff7d6; }
.price { color: var(--red); font-weight: 700; }

button.xp {
  min-height: 21px; padding: 1px 8px; border: 1px solid var(--btn-line); border-radius: 3px; color: #000; font: inherit; cursor: pointer;
  background: linear-gradient(180deg, #fff 0, #f4f3ee 85%, #dcd8cb 100%);
}
button.xp:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #fbc761; }
button.xp:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
button.xp:disabled { color: var(--face-line); border-color: #c9c7ba; cursor: default; background: #f4f3ee; }
button.xp.toggle[aria-pressed="true"] { background: #bdb9a8; }
button.xp.is-finish { background: linear-gradient(180deg, #ff8d8d, #ff2323); border-color: #900; }

/* The manual: "Zur besseren Illustration sind beschriebene Felder oder Bereiche auf Bildern stets rot hervorgehoben." */
.hl { position: relative; outline: 2px solid var(--red); outline-offset: 1px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { outline-color: rgba(255, 0, 0, .25); } }
@keyframes blink { 50% { background: #b00000; } }

.toolbar { flex: none; display: flex; justify-content: space-between; padding: 5px 6px; border: 1px solid #d0d0bf; border-radius: 3px; }
.statusbar { flex: none; display: flex; align-items: center; gap: 5px; min-height: 22px; margin: 0 3px 3px; padding: 2px 5px; border: 1px solid var(--face-line); box-shadow: inset 1px 1px 0 #9d9a8a; }

/* Vorb. / Gesendet / Warteliste */
.list-top { flex: 1; min-height: 0; display: flex; gap: 6px; padding: 3px; }
.list-btns { flex: none; display: flex; flex-direction: column; gap: 4px; width: 118px; }
.table-wrap { flex: 1; min-width: 0; overflow: auto; background: #fff; border: 1px solid #7f9db9; }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 0; padding: 2px 5px; font-weight: 400; white-space: nowrap; background: linear-gradient(180deg, #fff, #ebeadb); border: 1px solid var(--face-line); border-top: 0; }
td { padding: 1px 5px; border-bottom: 1px solid #f0efe6; white-space: nowrap; }
tbody tr.is-sel td { background: var(--select); color: #fff; }
.details { flex: 1.1; min-height: 0; display: flex; gap: 6px; padding: 3px 7px 7px; }
.details .diag-table { flex: none; width: 150px; }
fieldset.details-group { flex: 1.1; min-height: 0; display: flex; }

.tasks { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid #7f9db9; }
.tasks li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.tasks li.is-todo { color: #777; }
.tasks img { flex: none; }

/* Printed label */
.sticker {
  position: absolute; z-index: 6; left: 50%; bottom: 40px; width: 220px; padding: 8px 10px; margin-left: -110px;
  display: flex; flex-direction: column; gap: 2px; background: #fff; border-top: 6px solid #d00000;
  box-shadow: 2px 3px 9px rgba(0, 0, 0, .5); animation: print 3.2s ease-in-out both;
}
.sticker-bars { display: flex; height: 30px; }
.sticker-bars i { display: block; height: 100%; background: #000; }
@keyframes print { 0% { transform: translateY(130%); opacity: 0; } 18%, 80% { transform: none; opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- Dialogs ---------- */

/* The dialog itself is the only scroller. A nested scrolling body can collapse on phones and hide the text. */
.dlg { width: min(430px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 0; background: var(--face); border: 3px solid var(--title-mid); border-top: 0; border-radius: 7px 7px 0 0; font: 11px/1.45 var(--ui); color: #000; box-shadow: 3px 4px 14px rgba(0, 0, 0, .5); }
.dlg.is-wide { width: min(560px, calc(100vw - 32px)); }
.dlg::backdrop { background: transparent; }
.dlg .titlebar-sm { position: sticky; top: 0; z-index: 1; }
.dlg-body { display: flex; gap: 14px; padding: 14px 14px 6px; }
.dlg-icon { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font: 700 20px Georgia, serif; }
.dlg-icon.info { background: radial-gradient(circle at 35% 30%, #7fb4ff, #1a56c8); }
.dlg-icon.question { background: radial-gradient(circle at 35% 30%, #c9e96b, #6d9e12); }
.dlg-icon.warn { background: radial-gradient(circle at 35% 30%, #ffe27a, #e0a800); color: #000; border-radius: 4px; }
.dlg-icon.none { display: none; }
.dlg-msg { flex: 1; min-width: 0; }
.dlg-msg p { margin: 0 0 8px; }
.dlg-msg ul { margin: 0 0 8px; padding-left: 16px; }
.dlg-msg .big { font-size: 13px; font-weight: 700; }
.dlg-msg table { margin-bottom: 8px; }
.dlg-msg td { border: 0; padding: 1px 8px 1px 0; white-space: normal; }
.dlg-btns { position: sticky; bottom: 0; display: flex; justify-content: center; gap: 8px; padding: 8px 14px 12px; background: var(--face); }
.dlg-btns button { min-width: 74px; }
.diag-list label { display: flex; align-items: center; gap: 5px; padding: 1px 0; }
.dlg .chunkbar { margin: 8px 0 6px; }
.about { display: flex; gap: 14px; align-items: flex-start; }
.about img { flex: none; width: 92px; height: auto; }
.about p:last-child { margin-bottom: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 760px), (max-height: 520px) {
  #desktop { padding: 0 0 30px; justify-content: stretch; }
  .win { width: 100%; height: 100%; border-width: 0; border-radius: 0; box-shadow: none; }
  .titlebar { border-radius: 0; }
  .win-body { flex-direction: column; overflow-y: auto; }
  .bar { width: 100%; flex-direction: row; align-items: stretch; }
  .bar-btns { flex: 1; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .bar-btns button { flex: 1; min-width: 58px; }
  .bar-btns button img { width: 26px; }
  .main { flex: none; min-height: 0; }
  .toolbar { position: sticky; bottom: 0; z-index: 2; background: var(--face); }
  .patient-name { font-size: 15px; }
  .panel { flex: none; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .arrows { flex-direction: row; justify-content: center; padding-top: 0; }
  .tree { flex: none; height: 210px; }
  .dest .tree { height: 130px; }
  .list-top { flex-direction: column; }
  .list-btns { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .table-wrap { flex: none; min-height: 72px; }
  .details { flex-direction: column; }
  .details .diag-table { width: 100%; }
  .tasks { flex: none; min-height: 190px; }
  .dest > fieldset { min-height: 170px; }
  .task { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hl, .bar-btns .bar-update { animation: none; }
  .sticker { animation: none; }
  .chunkbar i { transition: none; }
}
