html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  width: 100%;
  background-color: #e1e1e1;

  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: rgb(10, 32, 45);
  overscroll-behavior: none;
}

h1 {
    color: #2c3e50;
    font-size: 3rem;
}

h2, h3 {
    color: #2c3e50;
    font-size: 1.7rem;
}
ul {
    margin-left: 20px;
}
li {
    margin-bottom: 8px;
}
p {
    margin-bottom: 10px;
}

* {
  box-sizing: border-box;
}

.text {
  font-size: 1.7rem;       /* größerer Text */
  color: rgb(2, 12, 21);
  margin-left: 30rem;    /* weiter rechts */
  margin-right: 30rem;
  margin-bottom: 15rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto; 
}

.text h1, .text h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;   /* Aktiviert automatische Trennung mit Bindestrich */
}

.top-bar {
  position: absolute;   /* fixiert den Balken oben */
  top: 0;
  left: 0;
  width: 100%;
  height: 25rem;         /* Höhe angepasst */
  background-color: #00577D;  /* Farbe */
  z-index: 0;           /* damit er hinter dem Bild bleibt */
}

.headline {
  position: relative;
  z-index: 1;           /* Bild liegt über dem Balken */
  margin-top: 2rem;     /* optionaler Abstand vom oberen Rand */
  display: block;
  margin-left: auto;    /* rechtsbündig */
  margin-right: 0;
}

/* Smartphones (bis 600px Breite) */
@media (max-width: 600px) {
  .headline {
    width: 90%;
    margin: 1rem auto;
    display: block;
  }

  .text {
    font-size: 1.6rem;       /* evtl. etwas kleiner */
    margin-left: 2rem;       /* enger an den Bildschirm anpassen */
    margin-right: 2rem;
  }

  .top-bar {
    height: 14rem;   /* weniger hoch als am Desktop */
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .text {
    margin-left: 8rem;       /* enger an den Bildschirm anpassen */
    margin-right: 8rem;
  }
}
