@font-face {
  font-family: 'Ubuntu';
  src: url('../co/css/font/Ubuntu-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('../co/css/font/Ubuntu-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('../co/css/font/Ubuntu-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --grad is only used as a fill behind white text, so its turquoise end is the deeper #137b85 (5.0:1 with white) */
:root { --max: 980px; --muted:#555; --border:#e9e9e9; --bg:#fafafa; --grad: linear-gradient(90deg, #b52566 0%, #137b85 100%); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Ubuntu', sans-serif; line-height: 1.6; margin: 0; color:#111; overflow-wrap: anywhere; }
header, main, footer { max-width: var(--max); margin: 0 auto; padding: 22px 18px; }
header { padding-top: 30px; }
h1 { margin: 0 0 8px; font-size: 2rem; }
h2 { margin-top: 28px; }
h3 { margin-top: 18px; }
p { margin: 0.6rem 0; }
ul { padding-left: 1.1rem; }
.meta { color: var(--muted); }
footer .meta { max-width: 460px; line-height: 1.6; }
.box { background: var(--bg); border: 1px solid var(--border); padding: 12px 14px; border-radius: 12px; }
nav.toc { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 14px 0 0; }
nav.toc ol { margin: 0; padding-left: 2rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
a { color: inherit; }
code { background: #f3f3f3; padding: 2px 5px; border-radius: 4px; }
h2[id], h3[id] { scroll-margin-top: 72px; }

/* ── Skip link (for keyboard users) ───────────────────────────
   Invisible until it gets focus with the Tab key. It jumps past the
   menu to the page heading. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000; /* above the sticky nav */
  padding: 10px 18px;
  border-radius: 8px;
  background: #fff;
  color: #151515;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
  outline: 2px solid #1baebc;
  outline-offset: 2px;
}
/* Target of the skip link: stays below the sticky nav after the jump, no focus ring on the heading */
#main-content { scroll-margin-top: 72px; }
#main-content:focus { outline: none; }

/* ── Site Nav ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 12px max(20px, calc((100% - var(--max)) / 2 + 20px));
  background: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: border-bottom .3s ease, box-shadow .3s ease;
}
.site-nav.scrolled {
  border-bottom-color: #ccc;
}
.site-nav__logo {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
}
.site-nav__logo:hover,
.site-nav__logo:focus-visible { color: #000; }
.site-nav__main {
  display: none;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Ubuntu', sans-serif;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s ease;
}
.site-nav__main:hover,
.site-nav__main:focus-visible {
  color: #fff;
  background: #333;
}
.site-nav__links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__links a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  transition: color .25s ease, background .25s ease, transform .2s ease;
  white-space: nowrap;
}
.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  background: rgba(0,0,0,.06);
  color: #000;
  transform: translateY(-1px);
}
.site-nav__links a[aria-current="page"] {
  background: rgba(0,0,0,.06);
  color: #000;
}

/* Hamburger */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 0;
  color: #000;
  z-index: 10;
}
.site-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #000;
  transition: all .3s ease;
  position: relative;
  transform-origin: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.site-nav__toggle.active span { display: none; }
.site-nav__toggle svg { display: block; width: 26px; height: 26px; }
.site-nav__toggle:hover span,
.site-nav__toggle:focus-visible span { background: #000; }

/* Contact link in the nav: marked pill in the list (desktop), pill in the bar (hamburger mode) */
.site-nav__contact { display: none; }
.site-nav__links a.is-contact {
  border: 1.5px solid #000;
  padding: 4.5px 10.5px;
  color: #000;
  font-weight: 700;
}
.site-nav__links a.is-contact:hover,
.site-nav__links a.is-contact:focus-visible,
.site-nav__links a.is-contact[aria-current="page"] {
  border-color: #000;
  color: #000;
}

/* Mobile: page layout */
@media (max-width: 768px) {
  header, main, footer { padding-left: 16px; padding-right: 16px; }
  header { padding-top: 24px; }
  h1 { font-size: clamp(1.65rem, 8vw, 2rem); line-height: 1.2; }
  h2 { font-size: 1.3rem; line-height: 1.3; }
  ul, ol { padding-left: 1.25rem; }
  .box, nav.toc { padding: 11px 12px; }
  nav.toc ol { padding-left: 2.15rem; }
}

/* Hamburger mode: the logo plus eight links (German labels) need about 1070px, so the nav switches below 1100px (safety margin for other browsers) */
@media (max-width: 1100px) {
  .site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
  }
  .site-nav__logo { display: none; }
  .site-nav__toggle { display: flex; flex: 0 0 24px; order: 1; margin: 0; }
  .site-nav__contact {
    display: inline-block;
    flex: 0 0 auto;
    order: 2;
    margin: 5px 0 5px auto;
    padding: 7px 14px;
    border: 1.5px solid #000;
    border-radius: 6px;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
  }
  .site-nav__contact:hover,
  .site-nav__contact:focus-visible { background: #000; color: #fff; border-color: #000; }
  .site-nav__main {
    display: inline-block;
    flex: 0 0 auto;
    order: 2;
    width: auto;
    max-width: fit-content;
    height: auto;
    margin: 5px 0 5px 8px;
    padding: 9px 18px;
    font-size: 13px;
  }
  .site-nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 57px;
    left: 0; right: 0;
    order: 3;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: max-height .4s ease, opacity .3s ease, padding .4s ease, visibility 0s linear .4s;
  }
  .site-nav__links.is-open {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    transition: max-height .4s ease, opacity .3s ease, padding .4s ease, visibility 0s;
    padding: 20px;
    border-bottom-color: #ccc;
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
  }
  .site-nav__links li { width: 100%; text-align: center; }
  .site-nav__links a { width: 100%; padding: 12px 20px; margin: 5px 0; font-size: 14px; }
  /* The contact pill sits in the bar, so it is not repeated in the dropdown */
  .site-nav__links .site-nav__contact-item { display: none; }
}

@media (max-width: 640px) {
  .site-nav { padding: 8px 15px; gap: 12px; }
  .site-nav__links { top: 52px; }
  .site-nav__main { padding: 8px 16px; font-size: 12px; }
  .site-nav__contact { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 360px) {
  header, main, footer { padding-left: 13px; padding-right: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav__links a, .site-nav__toggle span { transition: none; }
}


/* Exact mobile navigation geometry matching the main index navigation. */
@media (max-width: 1100px) {
  .site-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    gap: 15px !important;
    box-sizing: border-box !important;
  }

  .site-nav .site-nav__toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    flex: 0 0 24px !important;
    order: 1 !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  .site-nav .site-nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0;
    padding: 0;
    border-radius: 2px;
    background: #000;
    box-sizing: border-box;
  }

  .site-nav .site-nav__main {
    display: inline-block !important;
    flex: 0 0 auto !important;
    order: 2 !important;
    width: auto !important;
    max-width: fit-content !important;
    height: auto !important;
    margin: 5px 0 5px 8px !important;
    padding: 9px 18px !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #fff !important;
    background: #000 !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .site-nav .site-nav__main:hover,
  .site-nav .site-nav__main:focus-visible {
    color: #fff !important;
    background: #333 !important;
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 8px 15px !important;
    gap: 12px !important;
  }

  .site-nav .site-nav__main {
    padding: 8px 16px !important;
    font-size: 12px !important;
  }
}


/* Mobile menu: hover/active highlight only as wide as the link (not full width) */
@media (max-width: 1100px) {
  .site-nav__links a {
    width: fit-content;
    margin: 5px auto;
    padding: 12px 28px;
  }
}

/* Scroll progress bar on the bottom edge of the nav (phones) */
@media (max-width: 768px) {
  .site-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #b52566 0%, #1baebc 100%);
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left center;
    pointer-events: none;
  }
}

/* Back-to-top button (mobile): icon only, created by nav.js */
.to-top {
  display: none;
}

@media (max-width: 768px) {
  .to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #b52566 0%, #1baebc 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}

/* Contact hints on the FAQ page */
.faq-help { margin: 0.6rem 0; }
.faq-help a { font-weight: 700; }
.contact-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  background: #151515;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s ease, transform .2s ease;
}
.contact-btn:hover,
.contact-btn:focus-visible {
  background: var(--grad);
  transform: translateY(-1px);
}
