/* iOS Home Screen app (status bar style "default"): the status bar takes its colour from a real fixed element at the very top, so iOS
   draws no frosted blur there (same as in style.css) */
.status-tint {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: max(1px, env(safe-area-inset-top));
  z-index: 1;
  background: var(--color-bg);
  pointer-events: none;
}
body {
  margin: 0;
  padding: 24px 16px 48px;
  background: var(--color-bg);
  color: var(--color-text);
  font: 16px/1.55 var(--font-sans);
}
main {
  max-width: 640px;
  margin: 0 auto;
}
h1 {
  font-size: 28px;
  margin: 32px 0 0;
}
h2 {
  font-size: 17px;
  margin-top: 28px;
}
h3 {
  font-size: 15px;
  margin: 20px 0 0;
}
h3 + p {
  margin-top: 6px;
}
a {
  color: var(--color-accent-text);
  text-underline-offset: 2px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-link img {
  width: 52px;
  height: 52px;
  flex: none;
}
.wordmark {
  font:
    900 clamp(1.6rem, 7vw, 2.1rem)/1 ui-rounded,
    'Arial Rounded MT Bold',
    var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--brand-gold);
  -webkit-text-stroke: 0.3rem var(--brand-ink);
  paint-order: stroke fill;
  text-shadow: 0 0.125rem 0 var(--brand-ink);
  white-space: nowrap;
}
.brand-link,
.mascot {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.brand .mascot {
  width: 52px;
  height: auto;
  margin-bottom: -4px;
  transform: rotate(8deg);
}
.back {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.back a {
  text-decoration: none;
}
.back a:hover {
  text-decoration: underline;
}
@media (max-width: 30rem) {
  /* phones: icon + wordmark only, tighter spacing */
  body {
    padding-top: 16px;
  }
  .brand {
    padding-bottom: 10px;
  }
  .brand .mascot {
    display: none;
  }
  .brand-link img {
    width: 40px;
    height: 40px;
  }
  .wordmark {
    font-size: 1.65rem;
  }
  .back {
    margin-top: 12px;
  }
  h1 {
    margin-top: 24px;
    font-size: 1.625rem;
  }
  h2 {
    margin-top: 22px;
  }
}
ul {
  padding-left: 1.25rem;
}
li {
  margin: 4px 0;
}
footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 2px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm, 0.875rem);
}
footer .copyright {
  margin: 0;
}
footer .langswitch {
  grid-row: 1 / span 2;
  grid-column: 2;
}
@media (max-width: 30rem) {
  footer {
    grid-template-columns: 1fr;
  }
  footer .langswitch {
    grid-row: auto;
    grid-column: 1;
    justify-self: start;
    margin-top: 8px;
  }
}
button {
  padding: 8px 14px;
  border: 2px solid var(--outline-color);
  border-radius: var(--radius-md);
  background: var(--color-action);
  color: var(--color-on-action);
  font: inherit;
  font-weight: var(--weight-strong);
  cursor: pointer;
}
button:hover {
  background: var(--color-action-hover);
}
button[aria-pressed='true'] {
  cursor: default;
}
button#consent-no[aria-pressed='true'] {
  background: var(--color-action);
  color: var(--color-on-action);
  border-color: var(--outline-color);
}
button#consent-yes.secondary {
  background: var(--color-surface-raised);
  color: var(--color-text);
  border-color: var(--color-border-control);
}
button#consent-no {
  background: var(--color-surface-raised);
  color: var(--color-text);
  border-color: var(--color-border-control);
}
/* One language at a time: the German and English blocks sit side by side in the source, the page language (html[lang]) picks one */
html[lang='en'] [lang='de']:not(button),
html:not([lang='en']) [lang='en']:not(button) {
  display: none;
}
.langswitch {
  display: flex;
  flex: none;
  padding: 2px 6px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill, 999px);
}
.langswitch button {
  position: relative;
  min-height: 1.75rem;
  padding: 2px 8px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
}
.langswitch button:hover {
  background: none;
  color: var(--color-text);
  text-decoration: underline;
}
.langswitch button[aria-pressed='true'] {
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}
.langswitch button + button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30%;
  height: 40%;
  border-left: 1px solid var(--color-border-control);
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.legal-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.legal-nav a:hover {
  color: var(--color-text);
  text-decoration: underline;
}
.legal-nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}

h2[id] {
  scroll-margin-top: 16px;
}
/* "Stand" / "Last updated" line under the imprint */
.as-of {
  color: var(--color-text-muted);
  font-size: var(--text-sm, 0.875rem);
}
