/*
 * Gemeinsames Grundlayout und Hauptnavigation von When Work Ends.
 */

:root {
  --background: #071b29;
  --background-light: #14293e;
  --text: #f7f9fa;
  --muted: #c5d9df;
  --cyan: #7ccde9;
  --line: #679eb2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 86% 20%, var(--background-light), var(--background) 67%);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  min-height: 155px;
  padding: 40px 5% 9px 1.7%;
}

.site-header::after {
  position: absolute;
  right: 4%;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.site-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 4.1vw, 76px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: nowrap;
}

.site-header h1 a {
  text-decoration: none;
}

.site-header nav {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Segoe UI Light", "Segoe UI", Arial, sans-serif;
  font-size: clamp(12px, .9vw, 16px);
  font-style: normal;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: uppercase;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 0;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.site-header nav li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-header nav li + li::before {
  content: "|";
  padding: 0 18px;
  color: var(--cyan);
}

.site-header nav a {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--cyan);
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  text-transform: inherit;
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero-images {
  position: relative;
  width: 96%;
  height: clamp(245px, 23.5vw, 460px);
  margin: 8px auto 0;
  overflow: hidden;
  background: #0a2433;
  clip-path: polygon(0 0, 98% 0, 100% 100%, 2% 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0;
  transition: opacity 1400ms ease-in-out;
}

.hero-image.is-active {
  opacity: 1;
}

.hero--music .hero-image {
  object-fit: cover;
  object-position: 55% 50%;
}

.hero-bottom {
  min-height: 27px;
  margin: 8px 0 0 4%;
  padding: 3px 3% 0 0;
  border-top: 2px solid var(--cyan);
  text-align: right;
}

.hero-bottom p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 118px 36px 120px;
}

.introduction {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 75px;
  align-items: end;
  padding-bottom: 75px;
}

.section-number {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.content h2 {
  margin: 15px 0 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 500;
  line-height: 1.15;
}

.content p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.topics section {
  padding-top: 20px;
  border-top: 2px solid var(--cyan);
}

.topics h2 {
  font-size: 23px;
  margin-bottom: 15px;
}

.topics p {
  font-size: 14px;
}

.continue-reading {
  margin-top: 64px;
}

.continue-reading h2 {
  margin: 0;
}

.continue-reading-list {
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid rgba(124, 205, 233, .18);
  list-style: none;
}

.continue-reading-list li {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(124, 205, 233, .18);
}

.continue-reading-list a {
  width: fit-content;
  max-width: 100%;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.continue-reading-list p {
  color: var(--text);
}

.continue-reading-list a:hover,
.continue-reading-list a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.continue-reading-list a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.site-footer {
  max-width: 1048px;
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 2px solid var(--cyan);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  margin-top: 12px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--cyan);
  text-underline-offset: 4px;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--text);
}

.site-footer nav a:focus-visible,
.legal-content a:focus-visible,
.legal-dialog :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.legal-content address,
.legal-dialog address {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 16px;
  font-style: normal;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-content p + address,
.legal-dialog p + address {
  margin-top: 18px;
}

.legal-content section > :last-child {
  margin-bottom: 0;
}

.legal-dialog {
  width: min(92vw, 640px);
  max-height: 85vh;
  max-height: 85svh;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--background);
  font-family: inherit;
}

.legal-dialog::backdrop {
  background: rgba(0, 10, 18, .75);
}

.legal-dialog[open] {
  display: flex;
  flex-direction: column;
}

.legal-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 28px);
  border-bottom: 2px solid var(--cyan);
}

.legal-dialog-heading h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 28px);
  font-weight: 500;
  line-height: 1.3;
}

.legal-dialog-heading form {
  margin: 0;
}

.legal-dialog-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 32px;
  cursor: pointer;
}

.legal-dialog-close:hover {
  background: var(--background-light);
}

.legal-dialog-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px clamp(20px, 4vw, 28px) 28px;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-dialog-body h3 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.legal-dialog-body p {
  margin: 0;
  color: var(--muted);
}

.legal-dialog-body p + p {
  margin-top: 18px;
}

.legal-dialog-body section + section {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 2px solid var(--cyan);
}

.legal-dialog-body section > :last-child {
  margin-bottom: 0;
}

.legal-dialog-body a {
  color: var(--cyan);
  text-underline-offset: 4px;
}

.legal-dialog-body a:hover {
  color: var(--text);
}

@media (max-width: 1100px) {
  .site-footer {
    margin-right: 36px;
    margin-left: 36px;
  }
}

@media (max-width: 800px) {
  .site-header {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    padding: 35px 4% 13px;
  }

  .site-header h1 {
    font-size: clamp(34px, 7vw, 54px);
  }

  .site-header nav {
    align-self: stretch;
  }

  .site-header nav ul {
    justify-content: flex-start;
  }

  .site-header nav li + li::before {
    padding: 0 10px;
  }

  .hero-images {
    height: clamp(210px, 45vw, 340px);
  }

  .content {
    padding: 80px 24px 90px;
  }

  .introduction {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .topics {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .site-footer {
    margin-right: 24px;
    margin-left: 24px;
  }
}

@media (max-width: 600px) {
  .continue-reading {
    margin-top: 48px;
  }

  .continue-reading-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 20px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
