/* ==========================================================================
   typografie.css
   Typografie + Textfluss (ohne Layout-System)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base type
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Text measure & wrapping
   -------------------------------------------------------------------------- */
p,
li {
  max-width: var(--measure);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  max-width: none;
}

p,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
  word-break: normal;
  hyphens: manual;
}

/* --------------------------------------------------------------------------
   Headings (neutral)
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--fw-semibold);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  font-weight: var(--fw-bold);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  padding-bottom: 2em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
}

/* --------------------------------------------------------------------------
   Paragraphs
   -------------------------------------------------------------------------- */
p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Links (neutral)
   -------------------------------------------------------------------------- */
a {
  color: currentColor;
  text-decoration-thickness: var(--link-underline);
  text-underline-offset: var(--link-underline-offset);
}

a:hover {
  text-decoration-thickness: calc(var(--link-underline) * 1.3);
}

/* --------------------------------------------------------------------------
   Lists (minimal)
   -------------------------------------------------------------------------- */
ul,
ol {
  margin: 0;
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.35em;
}

/* --------------------------------------------------------------------------
   Prose (optional)
   -------------------------------------------------------------------------- */
.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--flow-2);
}

.prose > h1 + *,
.prose > h2 + *,
.prose > h3 + * {
  margin-top: var(--flow-1);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.keinUmbruch {
    white-space: nowrap;
}
.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
