:root {
  --e44-yellow: #eafe00;
  --e44-yellow-dark: #c7d301;
  --e44-grey: #757575;
  --e44-black: #000000;
  --e44-white: #ffffff;
  --content-width: 960px;
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--e44-white);
  color: var(--e44-black);
  font-family: 'Helvetica Neue', Arial, Roboto, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--e44-yellow-dark);
}

a:hover {
  text-decoration-color: var(--e44-yellow);
  text-decoration-thickness: 4px;
}

a:focus-visible {
  outline: 3px solid var(--e44-yellow-dark);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--e44-white);
  border-bottom: 1px solid #eee;
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 130px;
}

.logo-link {
  display: block;
  height: 80px;
  text-decoration: none;
}

.logo-link img {
  display: block;
  height: 100%;
  width: auto;
}

/* ---------- Inhalt ---------- */

main {
  flex: 1 0 auto;
  padding: 64px 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

/* gelber Strich unter der Überschrift, wie bei den Titeln auf element44.de */
.stroke {
  width: 100%;
  max-width: 320px;
  height: 6px;
  margin: 20px 0 32px;
  border-radius: 3px;
  background: var(--e44-yellow);
}

.lead {
  margin: 0;
  max-width: 40em;
  font-size: 1.25rem;
  color: var(--e44-grey);
}

.lead strong {
  color: var(--e44-black);
}

/* Impressum */

.legal h2 {
  margin: 2.2em 0 0.5em;
  font-size: 1.25rem;
  font-weight: 700;
}

.legal p {
  margin: 0 0 1em;
  max-width: 48em;
}

.legal address {
  font-style: normal;
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.4em;
  max-width: 48em;
}

.legal li {
  margin-bottom: 0.25em;
}

.legal dl {
  margin: 0 0 1em;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25em 1.5em;
}

.legal dt {
  font-weight: 600;
  color: var(--e44-grey);
}

.legal dd {
  margin: 0;
}

.legal .source {
  margin-top: 2.5em;
  font-size: 0.875rem;
  color: var(--e44-grey);
}

.back-link {
  display: inline-block;
  margin-top: 2em;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  flex-shrink: 0;
  background: var(--e44-white);
  border-top: 1px solid #eee;
  padding: 20px 0;
  text-align: center;
}

.site-footer a {
  color: var(--e44-grey);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--e44-black);
  text-decoration: underline;
  text-decoration-color: var(--e44-yellow);
  text-decoration-thickness: 4px;
}

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

.footer-nav li {
  display: inline;
}

.footer-nav li:not(:last-child)::after {
  content: '|';
  margin: 0 5px 0 12px;
  color: var(--e44-grey);
  font-weight: 600;
}

.site-footer span {
  display: block;
  margin-top: 4px;
  color: var(--e44-grey);
  font-size: 14px;
}

/* ---------- Schmale Bildschirme ---------- */

@media screen and (max-width: 1200px) {
  .site-header .container {
    height: 60px;
  }

  .logo-link {
    height: 50px;
  }
}

@media screen and (max-width: 600px) {
  main {
    padding: 40px 0;
  }

  .legal dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal dd {
    margin-bottom: 0.6em;
  }
}
