/*
 * markdown.css – so sieht der formatierte Text in commonwritten aus
 * Alles hängt an .md (dem Vorschau-Bereich).
 */

.md {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.7;
  color: #000000;
  overflow-wrap: break-word;
}

.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }

/* Überschriften */

.md h1 {
  margin: 1.4em 0 0.45em;
  font-size: 2.3em;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.md h2 {
  margin: 1.6em 0 0.4em;
  font-size: 1.5em;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.md h3 {
  margin: 1.5em 0 0.3em;
  font-size: 1.1em;
  line-height: 1.4;
  font-weight: 800;
}

/* Absätze */

.md p { margin: 0 0 1em; }

/* Stichpunkte */

.md ul {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.md li {
  position: relative;
  margin: 0.2em 0;
  padding-left: 1.4em;
}

.md li::before {
  content: '';
  position: absolute;
  left: 0.25em;
  top: 0.66em;
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: currentColor;
}

/* Hervorhebungen */

.md strong { font-weight: 800; }
.md em { font-style: italic; }
