/* Core Desk in the look of the current site; rules from docs/konzept/mockups/modul-mockups.html. */
/* Fonts from the own server (licence check in docs/abnahme/schriften-lizenzen.md); a missing file falls back to the system font. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-700.woff2") format("woff2"); }
/* The mockup page sets these two for the whole document; here they apply to the Core Desk only. */
body.cd { margin: 0; }
.cd, .cd * { box-sizing: border-box; }

.cd { background: #fff; color: #222; font: 16px/1.6 "Open Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.cd a { color: #4477aa; text-decoration: none; }
/* Keyboard (N10): the skip link shows on focus, every focused target gets a visible outline in the link colour. */
.cd-skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }
.cd-skip:focus { left: 8px; }
.cd a:focus-visible, .cd button:focus-visible, .cd input:focus-visible, #cd-menu-toggle:focus-visible + .cd-menu-button { outline: 2px solid #4477aa; outline-offset: 2px; }
/* Header of helpdesk.stp-products.com at 1920 px: grey, 143 px high (logo 393 x 111 and 16 px above and below), the menu on the right
   and centred on the logo. */
.cd-head { background: #eee; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Logo as an image of its own (wwwroot/img). */
.cd-logo { flex: none; }
.cd-logo img { display: block; width: 393px; max-width: 100%; height: auto; }
/* Main menu from the backend: first level as a row on the right, second level below its parent on hover or focus (Messblatt C1). */
.cd-nav ul { list-style: none; margin: 0; padding: 0; }
.cd-nav > ul { display: flex; justify-content: flex-end; }
.cd-nav .cd-pill { margin-left: 4px; }
.cd-nav li { position: relative; }
.cd-nav a { display: block; padding: 0 20px; line-height: 50px; color: #4477aa; font-size: 16px; white-space: nowrap; }
.cd-nav a[aria-current="page"] { text-decoration: underline; }
.cd-nav li.has-sub > a::after { content: " \25BE"; font-size: 12px; }
.cd-nav li ul { display: none; position: absolute; top: 100%; right: 0; z-index: 3; min-width: 220px; background: #fff; border: 1px solid #e3e6ea; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.cd-nav li.has-sub:hover > ul, .cd-nav li.has-sub:focus-within > ul { display: block; }
.cd-nav li ul a { padding: 8px 16px; line-height: 1.5; font-size: 14px; }
/* The box that opens the menu on narrow screens; at full width it is not there at all, so no invisible stop for the tab key. */
.cd-menu-toggle { display: none; }
.cd-menu-button { display: none; padding: 12px 19px; color: #4477aa; cursor: pointer; }
/* Pill as the original (Bootstrap badge-pill): 14.3 px, 3.6 px 8.6 px. */
.cd-pill { display: inline-block; background: #007bff; color: #fff; font-size: 14.3px; font-weight: 700; line-height: 14.3px; padding: 3.6px 8.6px; border-radius: 160px; vertical-align: middle; }
/* Content: 48 px at the side as the original; widths are shares of it (left 411, middle 891, right 411 of 1809 px), so the middle column
   stays at about half of the width at every resolution. */
.cd-body { padding: 20px 48px 0; }
.cd-cols { display: grid; grid-template-columns: minmax(0, 411fr) minmax(0, 891fr); gap: 48px; align-items: start; }
/* Off screen, but read by screen readers (the page needs a main heading the design does not show). */
.cd-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cd-card { background: #fff; padding: 16px; margin: 0 0 24px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.1); border: 1px solid #f1f1f1; }
.cd-card.flat { box-shadow: none; border: 0; padding: 0 0 4px; }
.cd-wt { color: #111133; font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; }
.cd-pt { color: #111133; font-size: 19.07px; font-weight: 700; line-height: 1.3; margin: 0; }
.cd-date { color: #999; font-size: 12.5px; margin-left: 6px; font-weight: 400; }
/* In the mockup an inline style; the date of a post stands on its own line. */
.cd-card.flat > .cd-date { margin-left: 0; }
.cd-card p, .cd-card li { font-size: 14.2px; line-height: 1.6; margin: 5px 0 0; }
.cd-academy { display: block; max-width: 100%; height: auto; margin: 0 0 12px; }
.cd-card ul { margin: 2px 0 0; padding-left: 18px; }
.cd-more { display: inline-block; background: #111133; color: #fff !important; font-size: 12.5px; line-height: 1.6; padding: 1px 5px; margin-top: 4px; }
.cd-event { margin-top: 10px; }
.cd-event .cd-ics { font-size: 12.5px; }
.cd-wt a { color: inherit; text-decoration: none; }
.cd-wt a:hover { text-decoration: underline; }
.cd-all-courses { margin-top: 12px; font-size: 13.44px; }
.cd-subscribe { margin-top: 12px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 13.44px; }
/* Text above the list of events, kept by the editor in the field EventsIntro of the home page (Messblatt C11). */
.cd-events-intro { margin: 0 0 8px; font-size: 13.44px; }
.cd-events-intro img { max-width: 100%; height: auto; }
.cd-notice { display: flex; gap: 10px; align-items: baseline; border-left: 4px solid #007bff; }
.cd-notice p { margin: 0; font-size: 14px; }
/* Marketplace-Anzeigen (CoreDesk.Marketplace) */
.cd-ll { border: 1px solid #e3e6ea; border-radius: 6px; overflow: hidden; }
.cd-ll .h { background: #f6f7f9; padding: 12px 16px; font-weight: 700; color: #111133; border-bottom: 1px solid #e3e6ea; }
.cd-ll .h i { color: #c0392b; font-style: normal; margin-right: 10px; }
.cd-ll .h .cd-ll-logo { height: 24px; width: auto; margin-right: 10px; vertical-align: middle; }
.cd-ll .b { padding: 14px 16px; }
.cd-btn { display: block; text-align: center; background: #0d6efd; color: #fff !important; font-weight: 700; font-size: 13.44px; padding: 10px; border-radius: 4px; margin-top: 12px; }
/* Footer of the original: a grey bar in the width of the content, logo on the left, links on the right. */
.cd-foot { background: #eee; color: #222; font-size: 12.8px; margin: 0; padding: 40px 68px 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cd-foot-logo { display: block; width: 168px; max-width: 100%; height: auto; }
/* Body: one column, or content plus sidebar when a block sits in the Sidebar zone (values of .cd-cols). */
.cd-layout { display: block; }
.cd-layout.with-side { display: grid; grid-template-columns: minmax(0, 1350fr) minmax(0, 411fr); gap: 48px; align-items: start; }
/* A grid item is at least as wide as its content; 0 lets a wide table scroll instead of widening the page. */
.cd-main { min-width: 0; }
.cd-side img { max-width: 100%; }
/* Footer blocks have no box; the links keep the footer colour. */
.cd-foot .cd-block { border: 0; box-shadow: none; background: none; padding: 0; margin: 0; }
.cd-foot .cd-block p { margin: 0; font-size: 12.8px; display: flex; gap: 18px; }
.cd-foot a { color: #4477aa; }
/* Text from the editor (values of the mockups; Messblatt C4 is still open). */
.cd-content { margin-top: 10px; }
.cd-content img, .cd-content video { max-width: 100%; height: auto; }
.cd-content table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.cd-content th, .cd-content td { border: 1px solid #ddd; padding: 4px 8px; text-align: left; font-size: 13.44px; }
.cd-content ul, .cd-content ol { margin: 5px 0 0; padding-left: 22px; }
.cd-content blockquote { margin: 8px 0; padding: 2px 0 2px 12px; border-left: 4px solid #ddd; color: #555; }
.cd-content pre { margin: 8px 0; padding: 8px 10px; background: #f5f5f5; overflow-x: auto; font-size: 13px; }
.cd-meta { color: #999; font-size: 12.5px; font-weight: 400; margin-top: 4px; }
.cd-meta .cd-date { margin-left: 0; }
.cd-meta a[rel="tag"]::before { content: " | "; color: #999; }
.cd-pager ul { display: flex; list-style: none; margin: 0 0 24px; padding: 0; }
.cd-pager li { margin: 0; }
/* The pager always lists first, previous, next and last; items without a link stay out of the row,
   "Ältere Beiträge" (next) stands on the right even when it is the only link. */
.cd-pager li:not(:has(a)) { display: none; }
.cd-pager li:has(a[rel="next"]) { margin-left: auto; }
/* Narrow screens (Messblatt C8; 768 px unless the measurement names another break). */
@media screen and (max-width: 768px) {
  .cd-head { padding: 10px 16px; flex-wrap: wrap; }
  .cd-logo img { width: 280px; }
  .cd-body { padding: 16px 16px 0; }
  .cd-foot { padding: 36px 36px 36px 16px; }
  .cd-nav a { line-height: 1.6; padding: 12px 19px; }
  /* Off screen but reachable by keyboard; its focus shows on the button. */
  .cd-menu-toggle { display: block; position: absolute; left: -9999px; }
  .cd-menu-button { display: inline-block; }
  .cd-nav { display: none; }
  #cd-menu-toggle:checked ~ .cd-nav { display: block; }
  .cd-nav > ul { flex-direction: column; }
  .cd-nav li ul { display: block; position: static; min-width: 0; border: 0; box-shadow: none; padding-left: 16px; }
  .cd-layout.with-side, .cd-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cd-content table { display: block; overflow-x: auto; }
  /* As today: the posts of the middle first, then the column with tip and events. */
  .cd-cols > :last-child { order: -1; }
  .cd-foot { flex-wrap: wrap; }
}
/* Print (Messblatt C9): the content only. */
@media print {
  .cd-nav, .cd-menu-button, .cd-side, .cd-foot, .cd-notice, .cd-pager, .cd-more { display: none; }
  .cd { color: #000; }
  .cd-layout.with-side, .cd-cols { display: block; }
  .cd-card { box-shadow: none; border: 0; }
}
