/* Grundlagen: Schriften, Reset, Typografie, Layout-Hilfen */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  color: var(--color-heading);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h1 { font-size: var(--heading-1); }
h2 { font-size: var(--heading-2); }
h3 { font-size: var(--heading-3); font-weight: 400; }
h4 { font-size: var(--text-lg); font-weight: 500; }

p,
ul,
ol {
  margin: 0 0 var(--space-3);
  text-wrap: pretty;
}

strong {
  font-weight: 700;
}

a {
  color: var(--color-sage-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-sage-deep);
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--color-sage-soft);
  color: var(--color-heading);
}

hr {
  border: 0;
  height: 2px;
  background: var(--brand-sage);
  margin: var(--space-5) 0;
}

/* --- Layout-Hilfen --- */

.container {
  width: min(100% - 2.5rem, var(--content-width));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2.5rem, var(--text-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-6);
}

@media (min-width: 64rem) {
  .section {
    padding-block: var(--space-7);
  }
}

/* Pastellflächen – max. drei verschiedene pro Seite (wird per Test geprüft) */
.surface-rose { background: var(--surface-rose); }
.surface-sky { background: var(--surface-sky); }
.surface-sand { background: var(--surface-sand); }
.surface-mint { background: var(--surface-mint); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -10rem;
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--color-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: var(--space-3);
}

/* Fließtext aus Markdown */
.prose {
  max-width: var(--text-width);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: var(--space-1);
}

.prose ul li::marker {
  color: var(--color-sage-ink);
}

.prose h2,
.prose h3 {
  margin-top: var(--space-5);
}

.text-soft {
  color: var(--color-text-soft);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* Kleine Überzeile in Versalien, angelehnt an das Logo */
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-sage-ink);
  margin-bottom: var(--space-2);
}

/* Salbei-Linie wie im Logo */
.rule {
  display: block;
  transform-origin: 0 50%;
  width: 4rem;
  height: 2px;
  background: var(--brand-sage);
  border: 0;
  margin: var(--space-3) 0 var(--space-4);
}

.center .rule {
  margin-inline: auto;
  transform-origin: 50% 50%;
}

.center {
  text-align: center;
}

/* Blazor setzt nach jeder Navigation den Fokus auf die Überschrift (für Screenreader) – ohne sichtbaren Rahmen */
h1:focus {
  outline: none;
}

address {
  font-style: normal;
}
