:root {
  --schwarz: #000;
  --weiss: #fff;
  --akzent: #0a6636;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--akzent); text-underline-offset: .15em; }
a:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
a[href^="tel:"] { white-space: nowrap; }

.kopf, main, .fuss { max-width: 46rem; margin-inline: auto; padding-inline: 1rem; }

/* Kopf */
.marke {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-block: .75rem;
  color: var(--schwarz);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.marke img { width: 3.25rem; height: auto; flex: none; mix-blend-mode: multiply; } /* Logo-PNG hat keinen ganz weissen Hintergrund */

/* Navigation: vier gleich breite Felder, ohne Dropdowns und ohne JavaScript */
.nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--schwarz);
}
.nav a {
  padding: .8rem .25rem;
  color: var(--weiss);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { text-decoration: underline; }
.nav a[aria-current] { background: var(--akzent); }
.nav a:focus-visible { outline-color: var(--weiss); outline-offset: -4px; }

/* Inhalt */
main { padding-block: 1.5rem 3rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0 0 1rem; font-size: 1.75rem; }
h2 {
  margin: 2.25rem 0 .75rem;
  padding-bottom: .25rem;
  border-bottom: 2px solid var(--schwarz);
  font-size: 1.35rem;
}
section:first-of-type h2 { margin-top: 0; }
h3 { margin: 1.25rem 0 .25rem; font-size: 1.05rem; }
p { margin: 0 0 .9rem; }
ul { padding-left: 1.25rem; }
li { margin-block: .5rem; }
[id] { scroll-margin-top: 1rem; }

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprung { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
th, td { padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--schwarz); text-align: left; vertical-align: top; }
thead th { border-bottom-width: 2px; }

li a[href$=".pdf"]::before {
  content: url("/images/pdficon_small.png");
  margin-right: .4em;
  vertical-align: -.15em;
}

/* Termine */
.termine { margin: 0 0 1rem; padding: 0; list-style: none; }
.termine li { margin: 0; padding-block: .75rem; border-bottom: 1px solid var(--schwarz); }
.termine p { margin: 0; }
.termine h3 { margin: 0; }
.wann { color: var(--akzent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* News */
.news { padding-block: .75rem; border-bottom: 1px solid var(--schwarz); }
.news h3 { margin-top: 0; }
.news p:last-child { margin-bottom: 0; }

/* Fuss */
.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding-block: 1.5rem;
  border-top: 2px solid var(--schwarz);
  font-size: .95rem;
}
.fuss ul { margin: 0; padding: 0; list-style: none; }
.fuss li { margin-block: .35rem; }
.fuss a { display: inline-block; padding-block: .15rem; }

@media (min-width: 40rem) {
  .marke { font-size: 1.5rem; }
  .marke img { width: 4.5rem; }
  .nav { grid-template-columns: repeat(4, minmax(0, 8rem)); justify-content: center; }
  .termine li { display: grid; grid-template-columns: 15rem 1fr; gap: 1rem; }
  .fuss ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
}
