/* Design: Salbei und Grün (Service-Baukasten, Vorlage webseite.md) */
:root {
  --grund: #F3F5F0;
  --flaeche: #FBFCF9;
  --text: #1C261E;
  --text-leise: #4A5A4D;
  --akzent: #3E8E5E;        /* Vorlage, nur für Linien und Schmuck */
  --akzent-tief: #2F7049;   /* für Knöpfe, Links und Text, Kontrast mindestens 5,4 zu 1 */
  --akzent-hell: #E3ECE2;
  --linie: #D6E0D5;
  /* Systemschriften, nichts wird nachgeladen. Source Serif 4 und Inter greifen nur, wenn lokal installiert. */
  --schrift-titel: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --schrift-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --demo-grund: #EFE6C6;
  --demo-linie: #D9C98F;
  --radius: 14px;
  --breite: 72rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--akzent-tief); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--akzent-tief);
  outline-offset: 3px;
  border-radius: 4px;
}

.rahmen {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Sprungmarke für Tastatur und Screenreader */
.sprungmarke {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--akzent-tief);
  color: #FFFFFF;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 10;
}
.sprungmarke:focus { top: 1rem; color: #FFFFFF; }

/* Knöpfe */
.knopf {
  display: inline-block;
  background: var(--akzent-tief);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--akzent-tief);
  min-height: 44px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.knopf:hover { background: var(--text); border-color: var(--text); color: #FFFFFF; }
.knopf-klein { padding: 0.5rem 1.15rem; font-size: 0.95rem; }

.textlink { font-weight: 600; }

/* Demo-Leiste über dem Kopf (Text auf Grund 12,49 zu 1) */
.demo-leiste {
  background: var(--demo-grund);
  border-bottom: 1px solid var(--demo-linie);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}
.demo-leiste p { margin: 0 auto; padding-top: 0.45rem; padding-bottom: 0.45rem; }

/* Kopf */
.kopf {
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--akzent-hell), transparent 70%),
    var(--grund);
  border-bottom: 1px solid var(--linie);
}
.kopf-leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.2rem;
}
.held {
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  max-width: 52rem;
  margin-left: max(0px, calc((100% - var(--breite)) / 2));
}
.dachzeile {
  color: var(--akzent-tief);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.claim {
  font-family: var(--schrift-titel);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.4;
}
.einleitung { color: var(--text-leise); max-width: 44rem; }
.held-aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

/* Abschnitte */
.abschnitt { padding: clamp(3rem, 7vw, 5rem) 0; }
.abschnitt-flaeche {
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.abschnitt-text { max-width: 46rem; color: var(--text-leise); }

/* Karten */
.karten {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
}
.karten-drei { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-top: 4px solid var(--akzent);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.karte p { margin: 0; color: var(--text-leise); }
.karte-rand { border-top-color: var(--linie); border-left: 4px solid var(--akzent); }

/* Ablauf */
.bloecke {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: none;
}
.block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.block p { margin: 0; color: var(--text-leise); }
.block-nr {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--akzent-tief);
  color: #FFFFFF;
  font-weight: 600;
}

.hinweis {
  margin-top: 2rem;
  background: var(--akzent-hell);
  border-left: 5px solid var(--akzent-tief);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.hinweis h3 { margin-bottom: 0.4rem; }
.tore { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.tore li { margin-bottom: 0.4rem; }
.tore li::marker { color: var(--akzent-tief); }

/* Grundsätze */
.grundsaetze {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.grundsaetze li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--akzent);
}
.grundsaetze h3 { margin-bottom: 0.3rem; }
.grundsaetze p { margin: 0; color: var(--text-leise); }

/* Zugang */
.zugang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.zugang > div { max-width: 40rem; }
.zugang p { margin: 0; color: var(--text-leise); }

/* Fuß */
.fuss {
  background: var(--text);
  color: #D6E6D8;
  padding: 2rem 0;
  font-size: 0.95rem;
}
.fuss-leiste {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.fuss p { margin: 0; }
.fuss a { color: #FFFFFF; }
.fuss a:hover { color: #D6E6D8; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .marke span { font-size: 1.05rem; }
  .held-aktion .knopf, .zugang .knopf { width: 100%; text-align: center; }
}

@media print {
  .kopf, .abschnitt-flaeche, .fuss { background: none; color: #000000; }
  .knopf, .sprungmarke { display: none; }
  .demo-leiste { background: none; border-bottom: 1px solid #000000; }
}
