/* --------------------------------------------------
   Grundlayout & Typografie
-------------------------------------------------- */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #222;
  margin: 0;
  padding: 0 20px;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  margin-top: 90px; /* Platz für Headbar */
  text-align: center; /* ← DAS ist der Schlüssel */
  }
  .content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.nav-prev, .nav-next {
  font-weight: bold;
  padding: 4px 10px;
}

.nav-prev a, .nav-next a {
  color: #333;
  text-decoration: none;
}
.nav-prev a:hover, .nav-next a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-weight: 600;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1.4em;
  line-height: 1.75;
}

ul, ol {
  margin-left: 1.4em;
  margin-bottom: 1.6em;
  line-height: 1.6;
}

a {
  color: #0366d6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   Headbar (Top Navigation)
-------------------------------------------------- */
/* --------------------------------------------------
   HEADBAR – klare horizontale Nulllinie
-------------------------------------------------- */
.headbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f5f5f5;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  z-index: 1000;
}

.headbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.headbar a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
}

.headbar a:hover {
  color: #000;
}

.kosmos-icon {
  width: 20px;
  height: 20px;
  position: relative;
  top: -6px;
  margin-left: 6px;
  opacity: 0.85;
}
.headbar .nav-move {
  margin-left: -45px; /* ca. 1 cm nach links */
}
/* --------------------------------------------------
   Zusätzliche Abstände
-------------------------------------------------- */

section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

h1 + p,
h2 + p,
h3 + p {
  margin-top: 0.8rem;
}

p + p {
  margin-top: 1.2em;
}

/* Motto (falls genutzt) */
.motto {
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}
