/*
 * Stile der öffentlichen Noemi-Infoseite (niklas9.de/noemi/).
 *
 * Bewusst ohne Framework, ohne externe Schriften und ohne CDN: Die Seiten
 * laden nichts von fremden Hosts. Die Farbtokens sind dieselben Werte wie im
 * Dashboard (src/app/globals.css), hier als kleiner, eigenständiger Satz,
 * damit das Paket auch ohne Noemi läuft.
 */
:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #006cd8;
  --focus: #006cd8;
  --area-blue: #1d4ed8;
  --area-blue-soft: #e8eefc;
  --area-blue-ink: #1a4098;
  --warn-ink: #92400e;
  --warn-surface: #fef3c7;
  --warn-line: #f0c36d;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #000000;
    --surface: #1d1d1f;
    --ink: #f5f5f7;
    --muted: #86868b;
    --line: #424245;
    --accent: #2997ff;
    --focus: #2997ff;
    --area-blue: #8fb4ff;
    --area-blue-soft: #16233d;
    --area-blue-ink: #c3d7ff;
    --warn-ink: #fcd34d;
    --warn-surface: #3a2f10;
    --warn-line: #6b520f;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

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

/* Nur für die Sprungmarke und Bildschirmleser sichtbar, bis sie den Fokus hat. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
main,
.site-footer__inner {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-inline-end: 0.4em;
  border-radius: 50%;
  background: var(--area-blue);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

main {
  padding-block: 1.5rem 2.5rem;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

h2:first-of-type {
  margin-top: 1.5rem;
}

p,
li {
  max-width: 70ch;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--area-blue);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.draft {
  background: var(--warn-surface);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

.draft strong {
  color: inherit;
}

.todo-list {
  padding-inline-start: 1.1rem;
}

.todo-list li {
  margin-block: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  padding-block: 1rem 1.5rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

dl {
  margin: 0.5rem 0 0;
}

dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

dd {
  margin: 0.15rem 0 0;
}

@media (max-width: 26rem) {
  h1 {
    font-size: 1.4rem;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
