/*
  Datei: /mugen-ev/assets/style.css
  Gemeinsames Stylesheet fuer index.html und impressum.html.
  Keine Frameworks, keine Webfonts – nur systemseitig vorhandene Schriften.
*/

/* ---------- Tokens ---------- */
:root {
  --grund: #ffffff;
  --tinte: #101315;
  --tinte-leise: #565e64;
  --linie: #dde2e5;
  --akzent: #14594a;          /* dunkles Gruen, ruhig und kontraststark */
  --akzent-hell: #e7efec;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --mass: 34rem;              /* Lesebreite, ca. 65 Zeichen */
  --rand: clamp(1.25rem, 5vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 var(--rand) 4rem;
  background: var(--grund);
  color: var(--tinte);
  font: 400 1.0625rem/1.65 var(--sans);
  max-width: calc(var(--mass) + 2 * var(--rand));
  margin-inline: auto;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; max-width: var(--mass); }

a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

/* Sprungmarke: erst sichtbar, wenn sie den Fokus hat */
.sprungmarke {
  position: absolute;
  left: -9999px;
}
.sprungmarke:focus {
  position: static;
  display: inline-block;
  margin: 1rem 0;
}

/* ---------- Kopf ---------- */
.kopf {
  padding: 3.5rem 0 3rem;
}

.kopf__zeichen {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 16vw, 6rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--tinte);
}

.kopf__name {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--tinte-leise);
}

.kopf__name a { color: inherit; text-decoration: none; }
.kopf__name a:hover { text-decoration: underline; }

/* ---------- Einstieg ---------- */
.einstieg {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--linie);
}

.einstieg__text {
  font-size: 1.1875rem;
  color: var(--tinte-leise);
  margin-bottom: 0;
}

/* ---------- Dokumente ---------- */
.dokumente { padding: 2.5rem 0; }

.dokumente__liste {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.dokument + .dokument {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
}

.dokument__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
}

.dokument__link:hover,
.dokument__link:focus-visible {
  border-bottom-color: var(--akzent);
  color: var(--akzent);
}

/* Dateityp als Zusatzinformation, nicht als Deko */
.dokument__typ {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--tinte-leise);
  border: 1px solid var(--linie);
  border-radius: 2px;
  padding: 0.1rem 0.3rem;
  transform: translateY(-0.15em);
}

.dokument__beschreibung {
  margin: 0.5rem 0 0;
  color: var(--tinte-leise);
  font-size: 0.9375rem;
}

/* ---------- Beitritt ---------- */
.beitritt {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--linie);
}

.knopf {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--akzent);
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 3px;
}

.knopf:hover { background: #0f4438; }

.beitritt__hinweis {
  font-size: 0.9375rem;
  color: var(--tinte-leise);
  margin-bottom: 0;
}

/* ---------- Textseite (Impressum) ---------- */
.text h1 { margin-bottom: 2rem; }
.text h2 { margin-top: 2rem; }
.text p { color: var(--tinte-leise); }
.zurueck { margin-top: 2.5rem; }

/* ---------- Fuss ---------- */
.fuss {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  font-size: 0.875rem;
  color: var(--tinte-leise);
}

.fuss__liste {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
}

.fuss__copyright { margin: 0; }

/* ---------- Dunkelmodus nach Systemeinstellung ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #101315;
    --tinte: #f2f4f5;
    --tinte-leise: #a3adb2;
    --linie: #2b3237;
    --akzent: #6ec8ae;
    --akzent-hell: #17251f;
  }
  .knopf { color: #0b1512; }
  .knopf:hover { background: #8ad9c2; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  body { max-width: none; color: #000; }
  .sprungmarke, .knopf { display: none; }
  a::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
