@charset "UTF-8";

/* Page frame (index.php, helper/Site*.php, helper/HeaderImage.php, js/site-4.js): header, menus, banner, breadcrumb,
   side menu, table of contents, footer. THW CD: blue #003399, silver #dadee1 (and its tints #e5e9eb, #edeff0, #f4f5f6)
   only as decoration, text #000, secondary text #53616b, focus outline 3 px #003399. No class is called header or
   footer: events-8.css hides the old frame classes when printing. */

@media screen {
  /* Below the footer of a short page (and when overscrolling) the window shows the footer grey; body stays white */
  html { scroll-behavior: auto; background: #edeff0; }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }

  .site-wrap { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }


  .site-skip { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 12px 16px; background: #fff; border: 2px solid #003399; font-size: 16px; font-weight: bold; color: #003399; }
  .site-skip:focus { top: 8px; }

  /* focus on all links and buttons of the frame */
  .site-header a:focus-visible, .site-header summary:focus-visible, .site-skip:focus-visible, .site-crumbs a:focus-visible, .site-aside a:focus-visible,
  .site-toc-mobile summary:focus-visible, .site-totop:focus-visible, .site-footer a:focus-visible {
    outline: 3px solid #003399; outline-offset: 2px; }

  /* ---- header ---- */
  .site-header { background: #fff; font-size: 16px; line-height: 1.3; position: relative; }
  .site-header a, .site-footer a, .site-aside a, .site-crumbs a, .site-totop { text-decoration: none; }
  /* no vertical padding beside the logo: its file contains the clear space of the CD (invisible marks around it) */
  .site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .site-logo { display: block; flex: 0 0 auto; width: clamp(160px, 26vw, 320px); padding: 0; }
  .site-logo.is-text { display: flex; align-items: center; width: auto; min-height: 44px; font-size: 24px; font-weight: bold; color: #003399; text-decoration: none; }
  .site-logo img { display: block; width: 100%; height: auto; aspect-ratio: 641.061 / 258.897; }
  /* full height of the header: the links at the top, the buttons at the bottom */
  .site-header-right { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 8px 0 20px; }
  .site-toplinks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
  .site-toplinks a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 16px; color: #003399; }
  .site-toplinks a:hover, .site-footer a:hover, .site-crumbs a:hover { text-decoration: underline; }
  .site-icon { flex: 0 0 auto; display: block; }
  .site-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* ---- user menu (signed in, helper/SiteUserMenu.php): user icon at the end of the links at the top ---- */
  .site-toplinks { align-items: center; }
  .site-user { position: relative; }
  .site-user-button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -10px -6px 0;
    cursor: pointer; list-style: none; }
  .site-user-button::-webkit-details-marker { display: none; }
  .site-user-button:hover, .site-user-menu[open] > .site-user-button { background: #f4f5f6; }
  .site-user-panel { position: absolute; right: -10px; top: calc(100% + 8px); z-index: 60; box-sizing: border-box; width: 300px; padding: 16px;
    border: 2px solid #dadee1; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); text-align: left; }
  .site-user-data { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; padding-bottom: 12px; border-bottom: 2px solid #dadee1; }
  .site-user-label, .site-user-uid { font-size: 14px; color: #53616b; overflow-wrap: anywhere; }
  .site-user-name { font-size: 18px; color: #000; overflow-wrap: anywhere; }
  .site-user-links { margin: 0; padding: 0; list-style: none; }
  .site-user-links a { display: flex; align-items: center; min-height: 44px; font-weight: bold; color: #003399; }
  .site-user-links a:hover { text-decoration: underline; }

  /* warning before the automatic sign-out (js/site-4.js, helper/SessionTimeout.php) */
  .site-session { position: fixed; right: 16px; bottom: 16px; z-index: 200; box-sizing: border-box; width: min(380px, calc(100% - 32px)); padding: 16px;
    border: 2px solid #003399; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); font-size: 16px; line-height: 1.4; color: #000; }
  .site-session[hidden] { display: none; }
  .site-session p { margin: 0 0 12px; }
  .site-session-title { font-size: 18px; font-weight: bold; color: #003399; }
  .site-session-time { font-weight: bold; }
  .site-session-button { box-sizing: border-box; min-height: 44px; padding: 0 18px; border: 2px solid #003399; background: #003399; font: inherit; font-weight: bold;
    color: #fff; cursor: pointer; }
  .site-session-button:hover { text-decoration: underline; }
  .site-session-button:focus-visible { outline: 3px solid #003399; outline-offset: 2px; }

  .site-header-buttons { display: flex; gap: 12px; }
  .site-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 2px solid #003399;
    background: #fff; font-size: 18px; font-weight: bold; color: #003399; }
  .site-button.is-primary { background: #003399; color: #fff; }
  .site-button:hover { text-decoration: underline; }

  /* ---- main menu (from 900 px) ---- */
  .site-mainnav { border-top: 2px solid #dadee1; border-bottom: 2px solid #dadee1; background: #fff; }
  .site-mainnav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 0 24px; list-style: none; }
  .site-mainnav-link { display: block; padding: 14px 14px 10px; border-bottom: 4px solid transparent; font-size: 18px; color: #003399; }
  .site-mainnav-link:hover { text-decoration: underline; }
  .site-mainnav-link.is-active { border-bottom-color: #003399; font-weight: bold; }
  .site-mainnav a:focus-visible { outline: 3px solid #003399; outline-offset: -3px; }

  /* ---- menu for small screens ---- */
  .site-mobile, .site-mobile-bar { display: none; }

  /* ---- banner ---- */
  .site-banner { width: 100%; height: 380px; overflow: hidden; background: #edeff0; }
  .site-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right 45%; }
  /* Picture pair (ticket 49): only scaled down proportionally, never cropped and never enlarged beyond its file in real
     pixels (width in CSS pixels x pixel density). Wider window: the picture stays in the middle, THW blue left and right
     (exception of the CD rule "no large blue areas", wanted by the client). The height of the banner is the height of the
     picture (no fixed height); the default picture above keeps its fixed height. max-width = width of the file / upper
     density of the step: desktop 3840 px, mobile 1800 px. */
  .site-banner.is-pair { height: auto; overflow: visible; background: #003399; }
  /* Frame: a 4 px THW silver line above and below the picture. From 900 px the 2 px bottom line of the main menu lies right
     above it, so the picture adds only 2 px there (4 px together, no thicker line on top). */
  .site-banner.is-pair { border-top: 4px solid #dadee1; border-bottom: 4px solid #dadee1; }
  .site-banner.is-pair picture { display: block; }
  .site-banner.is-pair img { display: block; width: 100%; height: auto; margin: 0 auto; object-fit: fill; }
  @media (width < 900px) {
    .site-banner.is-pair img { max-width: 1800px; }
    @media (min-resolution: 1.01dppx) { .site-banner.is-pair img { max-width: 1440px; } }
    @media (min-resolution: 1.26dppx) { .site-banner.is-pair img { max-width: 1200px; } }
    @media (min-resolution: 1.51dppx) { .site-banner.is-pair img { max-width: 1028px; } }
    @media (min-resolution: 1.76dppx) { .site-banner.is-pair img { max-width: 900px; } }
    @media (min-resolution: 2.01dppx) { .site-banner.is-pair img { max-width: 720px; } }
    @media (min-resolution: 2.51dppx) { .site-banner.is-pair img { max-width: 600px; } }
    @media (min-resolution: 3.01dppx) { .site-banner.is-pair img { max-width: 450px; } }
    @media (min-resolution: 4.01dppx) { .site-banner.is-pair img { max-width: 360px; } }
  }
  @media (width >= 900px) {
    .site-header + .site-banner.is-pair { border-top-width: 2px; }
    .site-banner.is-pair img { max-width: 3840px; }
    @media (min-resolution: 1.01dppx) { .site-banner.is-pair img { max-width: 3072px; } }
    @media (min-resolution: 1.26dppx) { .site-banner.is-pair img { max-width: 2560px; } }
    @media (min-resolution: 1.51dppx) { .site-banner.is-pair img { max-width: 2194px; } }
    @media (min-resolution: 1.76dppx) { .site-banner.is-pair img { max-width: 1920px; } }
    @media (min-resolution: 2.01dppx) { .site-banner.is-pair img { max-width: 1536px; } }
    @media (min-resolution: 2.51dppx) { .site-banner.is-pair img { max-width: 1280px; } }
    @media (min-resolution: 3.01dppx) { .site-banner.is-pair img { max-width: 960px; } }
    @media (min-resolution: 4.01dppx) { .site-banner.is-pair img { max-width: 768px; } }
  }

  /* ---- breadcrumb ---- */
  .site-crumbs { padding: 14px 0; font-size: 16px; }
  .site-crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
  .site-crumbs li { display: inline-flex; align-items: center; color: #000; }
  .site-crumbs a { color: #003399; }
  .site-crumbs-sep { margin: 0 8px; color: #53616b; }
  .site-crumbs .is-current { font-weight: bold; }

  /* ---- layout with side menu ---- */
  .site-layout { display: block; padding-bottom: 24px; }
  /* without breadcrumb (start page) the content keeps a gap to the picture */
  .site-wrap > .site-layout:first-child { padding-top: 24px; }
  .site-layout.has-aside { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: stretch; }
  /* desktop: the side menu (with the table of contents) stays in view; it scrolls by itself if it is higher than the window */
  .site-aside { min-width: 0; align-self: start; position: sticky; top: 16px; box-sizing: border-box; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
  .site-main { display: block; min-width: 0; }

  /* side menu: card like the table of contents */
  .site-side { box-sizing: border-box; padding: 16px; border: 3px solid #dadee1; background: #fff; }
  .site-side-l2:last-child { border-bottom: 0; }
  .site-side ul { margin: 0; padding: 0; list-style: none; }
  .site-side-l2 { border-bottom: 2px solid #dadee1; }
  .site-side-l2.has-gap, .site-side-l3.has-gap { margin-bottom: 16px; }
  .site-side-link { display: flex; align-items: center; box-sizing: border-box; min-height: 44px; padding: 8px; border-left: 4px solid transparent; font-size: 16px; color: #003399; }
  .site-side-link:hover { text-decoration: underline; }
  .site-side-link.is-active { font-weight: bold; }
  .site-side-link.is-current { background: #f4f5f6; border-left-color: #003399; font-weight: bold; }
  .site-side-l3 .site-side-link { padding-left: 24px; font-weight: normal; }
  .site-side-l3 .site-side-link.is-current { font-weight: bold; }
  .site-side-l2 > ul { margin-bottom: 8px; }
  .site-aside a:focus-visible { outline-offset: -3px; }

  /* ---- table of contents (js/site-4.js) ---- */
  .site-toc { box-sizing: border-box; margin-top: 24px; padding: 16px; border: 3px solid #dadee1; background: #fff; }
  .site-aside > .site-toc:first-child { margin-top: 0; }
  .site-toc h2, .site-side-title { margin: 0 0 8px; font-size: 18px; color: #003399; }
  .site-toc ul, .site-toc-mobile ul { margin: 0; padding: 0; list-style: none; }
  .site-toc li, .site-toc-mobile li { margin: 0; }
  .site-toc a { display: block; padding: 8px 8px; border-left: 4px solid transparent; color: #003399; font-size: 16px; hyphens: auto; overflow-wrap: anywhere; }
  .site-toc a:hover { text-decoration: underline; }
  .site-toc a.is-current { background: #f4f5f6; border-left-color: #003399; font-weight: bold; }
  .site-toc-mobile { display: none; }
  .site-aside[hidden], .site-toc[hidden], .site-toc-mobile[hidden], .site-toc li[hidden], .site-toc-mobile li[hidden] { display: none !important; }
  .site-main [id] { scroll-margin-top: 16px; }

  /* ---- button "Nach oben" and footer ---- */
  .site-totop-row { display: flex; justify-content: flex-end; padding-bottom: 12px; }
  .site-totop { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid #003399; background: #f4f5f6; font-size: 16px; font-weight: bold; color: #003399; }
  .site-totop:hover { text-decoration: underline; }

  .site-footer { background: #edeff0; border-top: 6px solid #dadee1; color: #000; font-size: 16px; line-height: 1.5; }
  .site-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; padding: 32px 0 16px; }
  .site-footer h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.2; color: #003399; }
  .site-footer p, .site-footer address { margin: 0 0 8px; font-style: normal; }
  .site-footer a { color: #003399; }
  .site-footer-links, .site-footer-icons { margin: 0; padding: 0; list-style: none; }
  .site-footer-links a { display: flex; align-items: center; min-height: 32px; }
  /* touch screens keep the 44 px touch targets */
  @media (pointer: coarse), (any-pointer: coarse) { .site-footer-links a { min-height: 44px; } }
  .site-footer-icons { display: flex; flex-wrap: wrap; gap: 4px; }
  .site-footer-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; }
  .site-footer-copy { margin: 0; padding: 16px 0 24px; border-top: 2px solid #dadee1; color: #53616b; font-size: 16px; }

  /* ---- small screens ---- */
  @media (width < 900px) {
    .site-wrap { padding-right: 16px; padding-left: 16px; }
    .site-header-inner { padding-top: 4px; padding-bottom: 4px; }
    .site-header-right, .site-mainnav { display: none; }
    .site-logo { width: clamp(140px, 45vw, 190px); }

    .site-mobile { display: block; }
    .site-mobile-bar { display: flex; align-items: center; gap: 8px; }
    .site-mobile-button.is-icon { justify-content: center; width: 48px; padding: 0; }
    .site-mobile-button { box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 2px solid #003399; background: #fff;
      font-size: 18px; font-weight: bold; color: #003399; cursor: pointer; list-style: none; }
    .site-mobile-button::-webkit-details-marker, .site-mobile-summary::-webkit-details-marker { display: none; }
    .site-mobile-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; box-sizing: border-box; padding: 16px; border-top: 2px solid #dadee1; border-bottom: 2px solid #dadee1; background: #fff; }
    .site-mobile-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
    .site-mobile-buttons .site-button { width: 100%; }
    .site-mobile-list, .site-mobile-list ul { margin: 0; padding: 0; list-style: none; }
    .site-mobile-list > li { border-bottom: 2px solid #dadee1; }
    .site-mobile-link, .site-mobile-sublink { display: flex; align-items: center; flex: 1 1 auto; min-height: 48px; padding: 6px 8px; border-left: 4px solid transparent; font-size: 18px; color: #003399; }
    .site-mobile-link.is-active, .site-mobile-sublink.is-active { font-weight: bold; }
    .site-mobile-link.is-current, .site-mobile-sublink.is-current { background: #f4f5f6; border-left-color: #003399; }
    .site-mobile-summary { display: flex; align-items: stretch; list-style: none; cursor: pointer; }
    .site-mobile-toggle { position: relative; flex: 0 0 56px; border-left: 2px solid #dadee1; }
    .site-mobile-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -8px 0 0 -5px; border-right: 3px solid #003399; border-bottom: 3px solid #003399; transform: rotate(45deg); }
    .site-mobile-group[open] > .site-mobile-summary .site-mobile-toggle::after { margin-top: -2px; transform: rotate(-135deg); }
    .site-mobile-sublink { padding-left: 24px; font-size: 16px; }
    .site-mobile-l3 .site-mobile-sublink { padding-left: 40px; }
    .site-mobile-summary:focus-visible { outline: 3px solid #003399; outline-offset: -3px; }
    .site-mobile a:focus-visible { outline: 3px solid #003399; outline-offset: -3px; }
    .site-mobile-user .site-mobile-list { border-top: 2px solid #dadee1; }
    .site-mobile-user-data { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; }
    .site-mobile-user-label, .site-mobile-user-uid { font-size: 14px; color: #53616b; overflow-wrap: anywhere; }
    .site-mobile-user-name { font-size: 18px; color: #000; overflow-wrap: anywhere; }

    .site-banner { height: 220px; }

    .site-crumbs li { display: none; }
    .site-crumbs li.is-parent, .site-crumbs li.is-current { display: inline-flex; }
    .site-crumbs li.is-parent .site-crumbs-sep { display: none; }
    .site-crumbs li.is-parent { margin-right: 16px; }
    .site-crumbs li.is-parent a::before { content: "‹"; }
    .site-crumbs li.is-parent a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
    .site-crumbs ol { align-items: center; }

    .site-layout.has-aside { display: block; }
    .site-aside { display: none; }
    .site-toc-mobile { display: block; margin-bottom: 16px; border: 3px solid #dadee1; background: #fff; }
    .site-toc-mobile summary { box-sizing: border-box; display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-size: 18px; font-weight: bold; color: #003399; cursor: pointer; }
    .site-toc-mobile ul { padding: 0 16px 12px; }
    .site-toc-mobile a { display: block; padding: 10px 0; font-size: 16px; color: #003399; text-decoration: none; hyphens: auto; overflow-wrap: anywhere; }
    .site-toc-mobile a.is-current { font-weight: bold; }

    .site-footer-grid { grid-template-columns: 1fr; padding-top: 24px; }
  }

  @media (width >= 900px) {
    .site-toc-mobile { display: none; }

    /* breadcrumb stays in view like the side menu; js/site-4.js sets --site-crumbs-height (0 without script) */
    .site-crumbs { position: sticky; top: 0; z-index: 40; background: #fff; }
    .site-aside { top: calc(var(--site-crumbs-height, 0px) + 16px); max-height: calc(100vh - var(--site-crumbs-height, 0px) - 32px); }
    html { scroll-padding-top: var(--site-crumbs-height, 0px); }
  }
}

/* Print: only the content of the page is printed */
@media print {
  .site-skip, .site-header, .site-mainnav, .site-mobile, .site-banner, .site-crumbs, .site-aside, .site-toc, .site-toc-mobile, .site-totop-row, .site-footer { display: none !important; }
  .site-wrap { max-width: none; padding: 0; }
  .site-layout, .site-layout.has-aside { display: block; padding: 0; }
}
