/* Eigenstaendige Rechtsseiten (Impressum, Datenschutzerklaerung, Barrierefreiheit) */

@font-face {
  font-family: MetaSerifWeb-Light;
  src: url("fonts/MetaSerifWeb-Light.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: LetterpressAurora;
  src: url("fonts/Letterpress-AuroraWeb.woff") format("woff");
  font-display: swap;
}

:root {
  --rs-akzent: #bb0142;
  --rs-text: #1a1a1a;
  --rs-linie: #e2e2e2;
  --rs-breite: 48rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--rs-text);
  font-family: MetaSerifWeb-Light, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.rs-seite {
  max-width: var(--rs-breite);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Kopf: Logo links, Sprachwechsel rechts */
.rs-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rs-linie);
}

.rs-logo {
  display: block;
  flex: 0 0 auto;
}

.rs-logo img {
  display: block;
  width: 6.5rem;
  height: auto;
}

.rs-sprachen ul,
.rs-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-sprachen a {
  color: var(--rs-text);
}

.rs-sprachen a[aria-current] {
  color: var(--rs-akzent);
  font-weight: bold;
  text-decoration: none;
}

.rs-sprachen .ohne {
  display: none;
}

/* Inhalt */
.rs-inhalt {
  padding: 1.5rem 0 2rem;
  overflow-wrap: break-word;
}

.rs-inhalt h1,
.rs-inhalt h2 {
  margin: 2rem 0 1rem;
  color: var(--rs-akzent);
  font-family: LetterpressAurora, Arial, sans-serif;
  /* max. 1.6rem: "Barrierefreiheitserklaerung" passt am Desktop in eine Zeile (48rem) */
  font-size: clamp(1.35rem, 0.95rem + 2vw, 1.6rem);
  font-weight: normal;
  line-height: 1.15;
  text-transform: uppercase;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.rs-inhalt h2 strong {
  font-weight: normal;
}

.rs-inhalt h3,
.rs-inhalt h4 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.rs-inhalt > :first-child,
.rs-inhalt > :first-child > :first-child,
.rs-inhalt .frame:first-child header > :first-child {
  margin-top: 0;
}

.rs-inhalt p,
.rs-inhalt ul,
.rs-inhalt ol {
  margin: 0 0 1rem;
}

.rs-inhalt ul,
.rs-inhalt ol {
  padding-left: 1.5rem;
}

.rs-inhalt .indent {
  margin-left: 0;
}

.rs-inhalt img {
  max-width: 100%;
  height: auto;
}

.rs-inhalt table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.rs-inhalt a,
.rs-fuss a {
  color: var(--rs-akzent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--rs-akzent);
  outline-offset: 2px;
}

/* Fuss: Rechtslinks und Rueckweg */
.rs-fuss {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rs-linie);
  font-size: 1rem;
}

.rs-links a[aria-current] {
  color: var(--rs-text);
  text-decoration: none;
  font-weight: bold;
}

.rs-start {
  margin: 1rem 0 0;
}

@media (min-width: 48em) {
  .rs-seite {
    padding: 2.5rem 1.5rem 4rem;
  }

  .rs-logo img {
    width: 8rem;
  }
}

@media print {
  .rs-sprachen,
  .rs-fuss {
    display: none;
  }

  body {
    font-size: 11pt;
  }
}
