/* Farbwerte identisch zur index.html, damit Unterseiten nicht abweichen. */

:root {
  --pico-primary: #2d4a63;
  --pico-primary-hover: #1f3547;
  --pico-primary-focus: rgba(45, 74, 99, 0.25);
  --pico-primary-inverse: #fff;
}

[data-theme="dark"] {
  --pico-primary: #8ab4f8;
  --pico-primary-hover: #aecbfa;
  --pico-background: #0d1117;
  --pico-background-alt: #161b22;
  --pico-border: #30363d;
  --pico-text: #e6edf3;
  --pico-muted-color: #8b949e;
}

[data-theme="dark"] body {
  background-image: radial-gradient(rgba(155, 189, 215, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2.5rem 1rem;
}
@media (max-width: 600px) {
  .page-head { flex-direction: column; }
}

.theme-toggle {
  font-size: 0.85rem;
  white-space: nowrap;
}

.meta {
  font-size: 0.95rem;
  color: var(--pico-muted-color);
}

main h2 {
  font-size: 1.15rem;
  margin-top: 2.25rem;
}

footer {
  margin-top: 3rem;
}

a.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: bold;
  text-decoration: none;
}

a.back-link:hover,
a.back-link:focus-visible {
  text-decoration: underline;
}

footer a {
  color: var(--pico-muted-color);
  text-decoration: underline;
}

@media print {
  body, [data-theme="dark"] body {
    background: #fff !important;
    color: #000 !important;
  }
  .theme-toggle { display: none !important; }
}
