:root {
  --paper: #f3f0ea;
  --sheet: #fbfaf7;
  --ink: #1c1c1c;
  --muted: #3a3a3a;
  --line: #d5cfc4;
  --accent: #243044;
  --link: #1a365d;
  --nav-height: 3.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  transform: none;
}

.site-header,
.site-footer {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

main > :not(.titelbild) {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding-top: 1.25rem;
  padding-bottom: 0.9rem;
}

.brand {
  margin: 0;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.brand-sub {
  margin: 0;
  color: var(--muted);
}

.phone {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-width: 0;
  background: rgba(251, 250, 247, 0.96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: 0.35rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  list-style: none;
}

.site-nav li {
  flex: 0 0 auto;
  max-width: 100%;
}

.site-nav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding-top: 1.6rem;
  padding-bottom: 3rem;
}

main.wide {
  max-width: 72rem;
}

h1,
h2,
h3 {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  scroll-margin-top: calc(var(--nav-height) + 0.8rem);
}

main h1,
main .kicker,
main .lead,
main h2,
.prose,
.leistung,
.kontakt {
  max-width: 42rem;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: 2.15rem;
}

h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: 1.7rem;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.kicker {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.lead {
  font-size: 1.15rem;
}

.titelbild {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 1.4rem 0 0.4rem;
}

.titelbild img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #d9d4cb;
}

.prose,
.leistung,
.kontakt,
.site-footer {
  max-width: 42rem;
}

.leistung {
  margin: 0 0 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.leistung p,
.prose p,
.kontakt p {
  margin: 0.4rem 0 0;
}

ul,
ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.quellen {
  list-style: none;
  padding-left: 0;
}

.quellen li {
  margin-top: 0.85rem;
}

.quellen a {
  font-weight: 600;
}

.impression {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  margin-top: 0.45rem;
}

.hinweis {
  color: var(--muted);
  font-size: 0.92rem;
}

address {
  font-style: normal;
}

.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding-top: 1.4rem;
  padding-bottom: 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer nav {
  margin-top: 0.8rem;
}

.site-footer nav a {
  margin-right: 1rem;
}

@media (max-width: 720px) {
  h1 {
    font-size: 1.75rem;
  }

  body {
    font-size: 1.02rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .skip,
  .site-nav {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
