@font-face {
  font-family: "WA Slab";
  src: url("/assets/fonts/wa-slab-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WA Sans";
  src: url("/assets/fonts/wa-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WA Sans";
  src: url("/assets/fonts/wa-sans-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f4f2;
  --box: #fff;
  --white: #fff;
  --ink: #161616;
  --muted: #5d5d59;
  --rule: #d8d8d3;
  --brand-red: #f50101;   /* Rot aus dem Logo, nur für Linien und Markierungen */
  --accent: #d10000;      /* dasselbe Rot, dunkel genug für Text */

  /* Kopfleiste */
  --bar: #161616;
  --bar-text: #f4f4f2;
  --bar-hover: #5d5d59;
  --bar-accent: var(--brand-red);
  --bar-edge: var(--brand-red);

  /* Fußleiste */
  --foot: #161616;
  --foot-text: #f4f4f2;
  --foot-muted: #b4b4ae;
  --foot-line: #3a3a37;
  --foot-edge: #161616;

  --head: "WA Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "WA Sans", "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 42rem;
  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (min-width: 48rem) {
  body { font-size: 1.1875rem; }
}

img, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

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

strong, b {
  font-weight: 600;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -999rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Kopf */

.site-header {
  border-bottom: 3px solid var(--bar-edge);
  background: var(--bar);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: block;
  padding: 0.2rem 0;
  line-height: 0;
}

.logo img {
  display: block;
  width: auto;
  height: 2rem;
}

.main-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav ul {
  gap: 0.25rem 1.5rem;
}

.main-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  color: var(--bar-text);
  font-size: 1rem;
  text-decoration: none;
}

.main-nav a:hover {
  border-bottom-color: var(--bar-hover);
  color: var(--bar-text);
}

.main-nav a[aria-current] {
  border-bottom-color: var(--bar-accent);
}

/* Startseite */

.lead {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 72rem) {
  .lead .wrap {
    background: url("/assets/img/contours.svg") no-repeat right var(--gutter) center / 26rem auto;
  }
}

.lead-text {
  max-width: 38rem;
}

.lead h1 {
  max-width: 17ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.intro {
  font-size: 1.15em;
}

.lead-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.block {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid var(--rule);
}

.block h2,
.col h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.columns {
  display: grid;
  gap: 0 4rem;
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.col + .col {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 64rem) {
  .columns { grid-template-columns: 7fr 5fr; }
  .col + .col { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* ohne Terminliste steht die Arbeitsweise allein */
.columns > .col:only-child {
  grid-column: 1 / -1;
  max-width: var(--measure);
}

/* Tabellen */

.atlas-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  font-size: 1rem;
}

.atlas-table th {
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
}

.atlas-table td {
  padding: 0.8rem 0.75rem 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.atlas-table .date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.atlas-table .event {
  font-weight: 600;
}

.atlas-table caption {
  padding-top: 0.6rem;
  caption-side: bottom;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: left;
}

.atlas-table .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.as-of {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 40rem) {
  .atlas-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .atlas-table,
  .atlas-table tbody,
  .atlas-table tr,
  .atlas-table td {
    display: block;
  }

  .atlas-table tr {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .atlas-table td {
    padding: 0.1rem 0;
    border: 0;
  }

  .atlas-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
  }

  .atlas-table td:empty {
    display: none;
  }

  .atlas-table .num {
    text-align: left;
  }

  /* Beschriftung unter die Zeilen, über die volle Breite */
  .atlas-table {
    display: flex;
    flex-direction: column;
  }

  .atlas-table caption {
    display: block;
    order: 1;
  }

  /* Quoten einer Zeile nebeneinander statt untereinander */
  .odds td.num {
    display: inline-block;
    margin-right: 1.1rem;
  }
}

.principles {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

.principles li:first-child {
  border-top: 2px solid var(--ink);
}

.more {
  margin: 0;
}

.post-list {
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.post-list li:first-child {
  border-top: 2px solid var(--ink);
}

.post-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.post-list p {
  margin-bottom: 0.4rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.text .post-list {
  margin-bottom: 1.5rem;
  padding: 0;
}

.text .post-list li {
  margin: 0;
}

/* Textseiten */

.page {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.text {
  max-width: var(--measure);
}

.text h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

.text h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
}

.text ul,
.text ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.text li {
  margin-bottom: 0.4rem;
}

.text li::marker {
  color: var(--accent);
}

.address {
  margin: 0 0 1rem;
  font-style: normal;
}

.note {
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  background: var(--box);
}

.help-list {
  margin: 0 0 1rem;
}

.help-list dt {
  margin-top: 1rem;
  font-weight: 600;
}

.help-list dd {
  margin: 0.2rem 0 0;
}

.phone {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Eventseiten */

.breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
}

.breadcrumb a {
  color: var(--muted);
}

.byline {
  color: var(--muted);
  font-size: 1rem;
}

.draft {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--accent);
  background: var(--box);
  color: var(--accent);
  font-size: 1rem;
}

.draft p {
  margin: 0;
}

.text .draft ul {
  margin: 0.5rem 0 0;
}

.brief {
  margin: 1.75rem 0 0.5rem;
  padding: 1rem 1.25rem 0.5rem;
  border: 1px solid var(--rule);
  background: var(--box);
}

.text .brief h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 0.5rem; }
}

.event .atlas-table {
  margin-top: 0.5rem;
}

.gamble-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.evidence {
  margin: 1.75rem 0;
}

.evidence img {
  display: block;
  border: 1px solid var(--rule);
}

.evidence figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.margin-note {
  margin: 1.5rem 0;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}

.margin-note p {
  margin: 0;
}

.sources,
.changes {
  font-size: 1rem;
}

.changes time {
  font-variant-numeric: tabular-nums;
}

.missing {
  padding: 0 0.3em;
  border: 1px dashed var(--accent);
  background: var(--box);
  color: var(--accent);
  font-size: 0.85em;
}

/* Formular */

.contact-form {
  margin: 1rem 0 2rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--muted);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--accent);
  border-width: 2px;
}

.field-error {
  display: block;
  margin-top: 0.3rem;
  color: var(--accent);
  font-size: 1rem;
}

.form-error,
.notice {
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  background: var(--box);
}

.form-error {
  border-color: var(--accent);
  color: var(--accent);
}

.form-privacy {
  color: var(--muted);
  font-size: 1rem;
}

button {
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--accent);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Fuß */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 2px solid var(--foot-edge);
  background: var(--foot);
  color: var(--foot-text);
  font-size: 1rem;
}

.site-footer a {
  color: var(--foot-text);
}

.site-footer a:hover {
  color: var(--foot-text);
  text-decoration-color: var(--bar-accent);
}

.site-footer .wrap {
  display: grid;
  gap: 1.25rem 3rem;
}

@media (min-width: 48rem) {
  .site-footer .wrap { grid-template-columns: 1fr auto; }
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-brand {
  margin-bottom: 0.6rem;
  line-height: 0;
}

.footer-brand img {
  display: block;
  width: auto;
  height: 1.6rem;
}

.footer-tagline {
  color: var(--foot-muted);
}

.footer-nav ul {
  gap: 0.4rem 1.25rem;
}

.footer-nav a[aria-current="page"] {
  text-decoration-color: var(--bar-accent);
  text-decoration-thickness: 2px;
}

.footer-note,
.copyright {
  grid-column: 1 / -1;
  color: var(--foot-muted);
  font-size: 0.9375rem;
}

.footer-note {
  padding-top: 1rem;
  border-top: 1px solid var(--foot-line);
}

.footer-note strong {
  color: var(--foot-text);
}
