/* ============================================================
   CODEBLOCK TYPOGRAPHY PRESET – Markus Edition
   ============================================================ */

/* Grundschriftgröße für Codeblocks */
.md-typeset pre code {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Inline-Code etwas größer und klarer */
.md-typeset code {
  font-size: 0.92rem;
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

/* Zeilennummern */
.md-typeset .linenums {
  font-size: 0.90rem;
  opacity: 0.75;
}

/* Codeblock-Abstand + Rundung */
.md-typeset pre {
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  margin: 1.2rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ============================================================
   DARK MODE OPTIMIERUNG
   ============================================================ */

[data-md-color-scheme="slate"] .md-typeset pre {
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

[data-md-color-scheme="slate"] .md-typeset pre code {
  font-size: 0.97rem;
  line-height: 1.6;
}

[data-md-color-scheme="slate"] .md-typeset code {
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   BASE TYPOGRAPHY (Desktop)
   ============================================================ */

.md-typeset {
  font-size: 1rem;
  line-height: 1.75; /* ruhiger, magaziniger */
}

/* Überschriften – Material-konform, aber luftiger */
.md-typeset h1 {
  font-size: 2.25rem;
  margin-bottom: 1.2rem;
}

.md-typeset h2 {
  font-size: 1.85rem;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

.md-typeset h3 {
  font-size: 1.5rem;
}

.md-typeset h4 {
  font-size: 1.25rem;
}

.md-typeset h5 {
  font-size: 1.1rem;
}

.md-typeset h6 {
  font-size: 1rem;
}

/* Bilder – Magazin-Look */
.md-typeset img {
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* Amber-Link-Stil */
.md-typeset a {
  color: var(--md-accent-fg-color);
  text-decoration: none;
}

.md-typeset a:hover {
  text-decoration: underline;
}

/* ============================================================
   TABLET BREAKPOINT (max-width: 900px)
   ============================================================ */

@media (max-width: 900px) {
  .md-typeset {
    font-size: 0.95rem;
  }

  .md-typeset h1 {
    font-size: 2rem;
  }

  .md-typeset h2 {
    font-size: 1.7rem;
  }

  .md-typeset h3 {
    font-size: 1.4rem;
  }

  .md-typeset h4 {
    font-size: 1.2rem;
  }

  .md-typeset h5 {
    font-size: 1.05rem;
  }
}

/* ============================================================
   MOBILE BREAKPOINT (max-width: 600px)
   ============================================================ */

@media (max-width: 600px) {
  .md-typeset {
    font-size: 0.9rem;
  }

  .md-typeset h1 {
    font-size: 1.7rem;
  }

  .md-typeset h2 {
    font-size: 1.45rem;
  }

  .md-typeset h3 {
    font-size: 1.25rem;
  }

  .md-typeset h4 {
    font-size: 1.1rem;
  }

  .md-typeset h5 {
    font-size: 1rem;
  }
}
