/* Gemeinsame Gestaltung für Impressum und Datenschutz */
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --nacht: #0f2440;
  --blau: #0062ae;
  --apricot: #e9b48c;
  --porzellan: #f4f6f9;
  --grau: #56657a;
  --hell: #c9d6e4;
  --linie: #dde4ec;
  --serif: "Alegreya", Georgia, serif;
  --sans: "Alegreya Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: var(--nacht); font: 400 1.125rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
main.text { flex: 1; }
a { color: var(--blau); text-underline-offset: .2em; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 2rem; }

.leiste { background: var(--porzellan); }
.leiste .wrap { display: flex; align-items: flex-start; gap: 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.leiste .logo img { width: 7rem; }
.leiste nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; margin-top: 1rem; font-weight: 500; }
.leiste nav a { color: var(--nacht); text-decoration: none; }
.leiste nav a:hover { text-decoration: underline; text-decoration-color: var(--apricot); text-decoration-thickness: 2px; }
.leiste nav .anrufen { background: var(--nacht); color: #fff; padding: .6rem 1.2rem; border-radius: 2rem; }
.leiste nav .anrufen:hover { background: var(--blau); text-decoration: none; }

.titel { background: var(--porzellan); padding: 3rem 0 4rem; }
.titel .zurueck { display: inline-block; margin-bottom: 1.25rem; font-weight: 500; text-decoration: none; }
.titel .zurueck:hover { text-decoration: underline; }
.titel h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.05; margin: 0; }

main.text { padding: 4rem 0 6rem; }
main.text .wrap > * { max-width: 46rem; }
main.text h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.2; margin: 3rem 0 .75rem; }
main.text h2:first-child { margin-top: 0; }
main.text h3 { font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 .4rem; }
main.text p, main.text ul { margin: 0 0 1rem; }
main.text ul { padding-left: 1.25rem; }
main.text li { margin: .3rem 0; }
main.text address { font-style: normal; margin: 0 0 1rem; }
main.text .kasten { background: var(--porzellan); border-left: 3px solid var(--apricot); padding: 1.25rem 1.5rem; border-radius: 0 .75rem .75rem 0; margin: 1.5rem 0; }
main.text .kasten p:last-child { margin: 0; }
main.text .stand { color: var(--grau); margin-top: 3rem; }

footer { background: var(--nacht); color: #93a6bd; font-size: 1rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.75rem; padding-bottom: 2rem; }
footer a { color: #fff; margin-left: 1.5rem; }
footer :focus-visible { outline-color: var(--apricot); }

@media (max-width: 900px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 1.25rem; }
  .leiste .logo img { width: 5.5rem; }
  .leiste nav a:not(.anrufen) { display: none; }
  .titel { padding: 2rem 0 3rem; }
  main.text { padding: 3rem 0 4rem; }
  footer a { margin: 0 1.5rem 0 0; }
}
