/* Layout 6, "Klartext": the page speaks plainly. Large, calm type on white, tone steps instead of lines and cards,
   photographs arrive large after the statement. One navy field and one blue field carry the colour.
   Red Hat ships in fonts/. Scroll entrances are CSS only: browsers without view timelines show the finished page. */

@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/red-hat-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Text";
  src: url("../fonts/red-hat-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Text";
  src: url("../fonts/red-hat-text-latin-500-normal.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #14639f;
  --blue-dark: #0f4f80;
  --ice: #eef3f8;
  --line: #d5e0ea;
  --ink: #0b2545;
  --muted: #3c5068;

  --font: "Red Hat Text", "Helvetica Neue", Arial, sans-serif;
  --display: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
  --radius: 0;
  --radius-small: 0;
  --section-gap: clamp(72px, 10vw, 152px);
  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.1rem + 2.9vw, 3.75rem);
  --step-hero: clamp(1.75rem, 7vw, 7rem);
}

body {
  line-height: 1.55;
}

::selection {
  background: var(--navy);
  color: var(--white);
}

:focus-visible {
  outline-width: 3px;
}

h1,
h2,
h3,
.scenario__title,
.clock strong {
  font-family: var(--display);
  font-weight: 700;
}

h1 {
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1,
h2,
h3 {
  hyphens: auto;
  overflow-wrap: break-word;
}

.eyebrow {
  display: none;
}

.top {
  border-bottom: 0;
  background: var(--white);
  backdrop-filter: none;
}

.top__links > li > a[aria-current="page"] {
  color: var(--blue);
}

.top__nav.is-open {
  box-shadow: 0 16px 32px rgb(11 37 69 / 0.14);
}

.button {
  min-height: 52px;
  font-weight: 500;
}

.button--quiet {
  background: var(--white);
}

/* The statement, then the picture from edge to edge. */
.hero {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(32px, 5vw, 72px) 0 0;
  background: var(--white);
  color: var(--ink);
}

.hero__text {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 56px) clamp(32px, 6vw, 96px);
  padding-inline: var(--edge);
}

.hero h1 {
  grid-column: 1 / -1;
  color: var(--navy);
}

.hero__lead {
  max-width: 32em;
  color: var(--ink);
}

.hero .button--ghost {
  border-color: transparent;
  background: var(--ice);
  color: var(--navy);
}

.hero :focus-visible,
.page-hero :focus-visible,
.detail-hero :focus-visible {
  outline-color: var(--blue);
}

.hero__actions {
  flex-direction: column;
  margin: 0;
}

.hero__image img {
  aspect-ratio: 21 / 8;
  object-position: center 40%;
}

/* The standards as one sentence of names. */
.norms {
  padding-block: clamp(32px, 4vw, 56px);
  border-bottom: 0;
  background: var(--navy);
}

.norms ul {
  justify-content: flex-start;
  gap: 8px clamp(24px, 3.4vw, 56px);
  padding-block: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: var(--step-lead);
  font-weight: 700;
}

.intro__questions {
  gap: 24px clamp(24px, 3vw, 48px);
}

.intro__questions > div {
  padding: 0;
  border: 0;
}

.intro__questions dt {
  color: var(--blue);
}

.intro__questions dd {
  font-size: var(--step-lead);
  line-height: 1.3;
}

.intro__image img,
.person__image img,
.training img,
.detail-hero__image {
  border-radius: 0;
}

/* Services read as a list of plain statements on a tone step, not as a row of boxes. */
.services {
  gap: clamp(40px, 5vw, 72px);
}

.services__grid {
  gap: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 64px);
}

.service {
  grid-template-rows: none;
  align-content: start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
}

.service h3 {
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
}

.service p {
  color: var(--ink);
}

.service__more {
  color: var(--blue);
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.service__more::after {
  content: none;
}

.page-hero,
.detail-hero {
  background: var(--white);
  color: var(--ink);
}

.page-hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px);
}

.page-hero h1,
.detail-hero h1 {
  color: var(--navy);
  font-size: clamp(1.75rem, 1rem + 3.2vw, 4rem);
}

.page-hero p,
.detail-hero p {
  color: var(--ink);
}

.detail-need,
.faq {
  border: 0;
}

.faq details {
  border: 0;
  background: none;
  padding-inline: 0;
}

.faq summary {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  font-weight: 700;
}

.fristen-hinweis {
  color: var(--ink);
}

.steps {
  gap: clamp(32px, 4vw, 56px);
}

.steps li {
  border: 0;
  padding-top: 0;
}

.steps li::before {
  color: var(--blue);
  font-family: var(--display);
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 1;
}

.topics__list a,
.related li,
.check__question,
.check__result {
  border: 0;
  background: var(--ice);
}

.interplay li {
  border: 0;
}

/* The blue field: the one place where the page asks for something. */
.contact {
  padding-inline: 0;
  padding-bottom: 0;
}

.contact__inner {
  padding: clamp(56px, 8vw, 112px) var(--edge);
  background: var(--blue);
}

.contact .button--light {
  color: var(--navy);
}

.foot {
  border-top: 0;
  background: var(--ice);
}

.foot__legal {
  border-top: 0;
}

@media (min-width: 861px) {
  .hero__actions {
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  :root {
    --step-hero: 8.2vw;
  }

  .hero__text {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions {
    flex-direction: column;
    align-self: stretch;
  }

  .hero__image img {
    aspect-ratio: 16 / 10;
  }
}

@media (hover: hover) and (pointer: fine) {
  .service:hover {
    border: 0;
    transform: none;
  }

  .service:hover h3 {
    color: var(--blue);
  }

  .service:hover .service__more {
    color: var(--blue-dark);
  }
}

/* Sections rise once as they enter. The final state is the default, so nothing can stay hidden. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .service,
    .steps li,
    .faq details,
    .person__text,
    .person__image,
    .intro__text,
    .intro__image,
    .training > *,
    .topics__list a,
    .related li,
    .detail-need li,
    .detail-results li {
      animation: enter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes enter {
  from {
    transform: translateY(20px);
  }
}

/* Long German words and the mail address must not push narrow phones sideways. */
.foot a,
.faq summary,
.table td,
.table th {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.faq details {
  min-width: 0;
}
