/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Grundlayout */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Segoe UI", sans-serif;
  font-size: 1.05rem;
  color: #1a1a1a;
}

/* Box-Layout für alle Sektionen */
.page-header,
.table-of-contents,
.section-content {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

/* Inhaltsverzeichnis */
.table-of-contents {
  border-left: 4px solid #005a8c;
}

.table-of-contents h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 1rem;
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.table-of-contents li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #0070af;
  font-size: 1rem;
}

.table-of-contents a {
  text-decoration: none;
  color: #005a8c;
  font-weight: 500;
  transition: color 0.2s ease;
}

.table-of-contents a:hover {
  color: #002b4e;
  text-decoration: underline;
}

/* Überschriften */
.page-header h1,
.section-content h2,
.table-of-contents h2 {
  color: #003366;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
}

/* Listen */
.section-content ul {
  list-style: disc;
  padding-left: 1.4rem;
}

.section-content li {
  margin-bottom: 0.5rem;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .section-content h2,
  .table-of-contents h2 {
    font-size: 1.2rem;
  }
}

.page-header .flex-wrapper {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-header .text {
  flex: 1 1 60%;
}

.page-header .image {
  flex: 1 1 35%;
  text-align: right;
}

.page-header .image img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobiloptimierung */
@media (max-width: 768px) {
  .page-header .flex-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header .image {
    text-align: left;
    margin-top: 1rem;
  }

  .page-header .image img {
    max-width: 100%;
  }
}
