@charset "UTF-8";

/* Page frame (index.php, helper/Site*.php, helper/HeaderImage.php, js/site-2.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-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 { 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%; }

  /* ---- 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-2.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 (max-width: 899px) {
    .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-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, .site-mobile-toplinks { 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-toplinks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 12px; }
    .site-mobile-toplinks a { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 16px; color: #003399; }

    .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 (min-width: 900px) {
    .site-toc-mobile { display: none; }

    /* breadcrumb stays in view like the side menu; js/site-2.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; }
}
