/* =========================================================
   BASE.CSS – Modern, lesbar, mobilfest
   ========================================================= */

/* ---------- Reset / Grundlagen ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;                  /* Desktop-Basis */
  -webkit-text-size-adjust: 100%;   /* iOS: keine automatische Verkleinerung */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  background-color: #ffffff;
}

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  color: #2f5d50;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem 0;
}

h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 1rem 0;
}

p {
  margin: 0.6rem 0;
}

/* ---------- Links ---------- */

a {
  color: #2f5d50;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Layout-Bausteine ---------- */

.document-header {
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid #ddd;
}

.subtitle {
  font-size: 1rem;
  color: #555;
}

.toc {
  background-color: #f6f7f8;
  padding: 2rem;
  border-bottom: 1px solid #ddd;
}

.toc h2 {
  margin-top: 0;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc li {
  margin: 0.4rem 0;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

section {
  margin-bottom: 3rem;
}

/* ---------- Listen ---------- */

ol,
ul {
  margin: 0.8rem 0 1.2rem 1.5rem;
}

li {
  margin: 0.3rem 0;
}

/* ---------- Footer ---------- */

footer {
  max-width: 900px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
  font-size: 0.9rem;
  color: #555;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0 1.5rem;
}

/* =========================================================
   MOBILE – explizit größer, nicht kleiner
   ========================================================= */

@media (max-width: 768px) {

  html {
    font-size: 20px;        /* entscheidend: echte Vergrößerung */
  }

  body {
    line-height: 1.8;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .document-header {
    padding: 2.2rem 1.4rem 1.8rem;
  }

  .toc {
    padding: 1.6rem 1.4rem;
  }

  .content {
    padding: 2.2rem 1.4rem;
  }
}