* {
  --header-height-screen: 130px;
  --header-height-mobile: 50px;
  --nav-height-screen: 28px;

  --site-top: var(--header-height-screen);

  --content-max-width: 1100px;
  --content-oversize: 150px;

  --default-transition: color 0.2s linear, background 0.2s linear;

  box-sizing: border-box;
}

body,
html {

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;

  font-family: var(--default-font-family);
  font-size: var(--default-font-size);

  overflow-wrap: break-word;
  word-break: break-word; 
  hyphens: auto;

}

.nobreak {
  white-space: nowrap;
}

a,
a:active,
a:visited {
  color: var(--default-text-color);
  text-decoration: underline dotted var(--theme-color);
  text-underline-offset: 0.2rem;
}

a:hover {
  color: var(--theme-color-overlay);
  background-color: var(--theme-color);
  transition: color 0.2s, background-color 0.2s;
}

a:hover svg {
  fill: var(--theme-color-overlay);
}

h1 {
  font-size: 1.5em;
  padding-bottom: 0px;
  margin-bottom: 0px;
}

h2 {
  font-size: 1.2em;
  padding-top: 0.5em;
  padding-bottom: 0px;
  margin: 0px;
}

h3 {
  font-size: 1.1em;
  color: var(--header-grey-dark);
  padding-top: 0.5em;
  padding-bottom: 0px;
}

ul li {
  list-style-position: outside;
  list-style-type: disc;
}

ul li::marker {
  color: var(--theme-color-darker);
}

.header-wrapper {
  /*DEBUG background-color: red;*/
  height: 200px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: var(--site-top);
  width: 100%;
  margin: 0 auto;
}

.section:not(.with-picture) {
  /*DEBUG background-color: aliceblue;*/
  top: 500px;
}

/* Abschnitt ohne Bild */
.section {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  margin-bottom: 2rem;
}

.section.content-centered {
  justify-content: center;
}

/* Abschnitt mit Bild */
.section.with-picture {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  max-width: calc(var(--content-max-width) + 200px);
}

.section .content {
  width: 100%;
  padding: 0px 20px;
  max-width: calc(var(--content-max-width) /*+ 2 * 20px*/);
  /*DEBUG background-color: rgba(255, 0, 0, 0.267); */
}

.section.with-picture .content {
  padding: 0px;
  max-width: calc(var(--content-max-width) + 2 * 20px);
  /*DEBUG background-color: rgba(255, 0, 255, 0.267);*/
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.section.with-picture .content .site-picture {
  max-width: calc(var(--content-max-width) + 2 * 20px + 2 * 100px);
  width: calc(var(--content-max-width) + 2 * 20px + 2 * 100px);
  object-fit: cover; /* Bild bleibt proportional und füllt den Bereich aus */
  object-position: center; /* Bild wird von der Mitte aus zugeschnitten */
  display: block; /* Verhindert unerwünschte Lücken durch Inline-Elemente */
  border-radius: var(--default-border-radius);
  height: 300px;
}

.section.with-picture .content .area {
  margin-top: -70px;
  width: 100%;
  max-width: var(--content-max-width);
  padding: 0px 20px;
  background-color: var(--default-background-color);
}

@media (max-width: 1300px) {
  .section.with-picture .content .site-picture {
    width: calc(100% + 2 * 20px + 2 * 100px);
  }
}

.section.full-height {
  height: calc(100vh - var(--header-height-screen));
}

@media (max-width: 768px) {

  main {
    padding-top: var(--header-height-mobile); /* Abstand oben für Header + Menü */
  }

  .section.full-height {
    height: unset;
  }

  .section.content-centered {
    justify-content: unset;
  }

}