@import url(/minireset.min.css);
@import url(https://fonts.bunny.net/css?family=spline-sans:400,700|spline-sans-mono:400,700);

:root {
  color-scheme: light;

  --color-text: #14200f;
  --color-text-muted: #41503a;
  --color-background: #fbfdf8;
  --color-surface: #eef3ea;

  --green-primary: #1c4a1a;
  --green-secondary: #125719;
  --green-accent: #2c3d26;
  --green-border: #b9c8ae;

  --color-link: var(--green-secondary);
  --radius: 0.5rem;
  --max-width: 60rem;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-height: 100vh;
  margin: 0;
  padding: 50px;
  font-family: "Spline Sans", sans-serif;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-background);
  max-width: var(--max-width);
  margin-inline: auto;
}

@media (max-width: 768px) {
  body {
    gap: 2rem;
    padding: 15px;
    font-size: 1.1rem;
  }
}

[disabled] {
  opacity: 0.5;
}

a,
a:visited {
  color: var(--color-link);
}

a.bxl {
  border-radius: 0.3em;
  background-color: var(--color-surface);
  padding: 0px 0.3em;
  text-decoration: none;
}

header {
  border-bottom: 1px solid var(--green-border);
  padding-bottom: 2rem;
}

h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 10vw, 8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.25em;
}

.tagline {
  font-size: 1.25rem;
  color: var(--green-accent);
}

.hippo {
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.hippo img {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
  margin-inline: auto;
}

main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

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

b {
  font-weight: 700;
}

main > section {
  display: none;
}

main > section:target {
  display: block;
}

body:not(:has(:target)) main > section:first-of-type {
  display: block;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tabs a {
  padding: 0.35em 0.9em;
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  text-decoration: none;
}

body:not(:has(:target)) .tabs a[href="#home"],
body:has(#home:target) .tabs a[href="#home"],
body:has(#material:target) .tabs a[href="#material"],
body:has(#verfassung:target) .tabs a[href="#verfassung"] {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--color-background);
}

.downloads {
  list-style: none;
  padding: 0;
  margin: 0;
}

.downloads li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--green-border);
}

.downloads span {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.95em;
  color: var(--color-text-muted);
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5em;
}
