/* InlayPDF: ruhige Meeresstimmungen für die Unterseiten.
 * Ausschließlich .subpage; die veröffentlichten Startseiten verwenden
 * weiterhin unverändert styles.css und landing-mist.css.
 */
.subpage {
  --text: #17365a;
  --muted: #526a84;
  --sea-art: url("sea-support.webp");
  position: relative;
  isolation: isolate;
  background: #fbfdff;
}

.subpage.sea-privacy { --sea-art: url("sea-privacy.webp"); }
.subpage.sea-legal { --sea-art: url("sea-legal.webp"); }

.subpage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 46rem;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(251,253,255,.18), transparent 42%, rgba(251,253,255,.12) 78%, #fbfdff),
    var(--sea-art);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.subpage header { padding-block: 1.35rem; }
.subpage main { padding-top: 2.5rem; }

.subpage .page-heading {
  width: 100%;
  max-width: 54rem;
  margin: 0 auto 2rem;
  padding: 0 clamp(1.35rem, 5vw, 3.5rem);
}

.subpage .page-heading h1 {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.14;
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.subpage .page-heading h1::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: .23rem;
  margin-top: 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #e8bc57, #f6dfa0 70%, rgba(246,223,160,.15));
}

.subpage .page-heading .lead {
  max-width: 65ch;
  margin-top: 1.2rem;
  font-size: clamp(1.08rem, 2.2vw, 1.25rem);
  line-height: 1.65;
}

.subpage .document {
  background: #ffffff;
  border-color: #dce9f2;
  box-shadow: 0 14px 42px rgba(32,81,129,.09);
  backdrop-filter: none;
}

.subpage .document > :first-child { margin-top: 0; }
.subpage .document > :last-child { margin-bottom: 0; }
.subpage .document h2 { color: var(--text); }
.subpage .button.primary { border-radius: 1.6rem; }
.subpage footer { border-top-color: #dfebf5; }

@media (max-width: 48rem) {
  /* Alle Ziele bleiben direkt sichtbar. Das zweispaltige Raster bewahrt
   * auch bei längeren Titeln ruhige Zeilen. Deutsch hat durch die persönliche
   * Seite fünf Ziele: Das letzte erhält bewusst die ganze Zeilenbreite.
   * Die englischen vier Ziele behalten ihr 2×2-Raster, bis der persönliche
   * Text übersetzt und redigiert ist. Die Sprache bleibt neben dem Logo.
   */
  .subpage header {
    position: relative;
    gap: .8rem;
    padding-inline-end: 3.5rem;
  }
  .subpage nav {
    width: calc(100% + 3.5rem);
  }
  .subpage nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
    max-width: none;
  }
  .subpage nav li { min-width: 0; }
  .subpage nav .nav-wide { grid-column: 1 / -1; }
  .subpage nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .35rem .55rem;
    font-size: .9rem;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }
  .subpage nav a[aria-current="page"] {
    background: rgba(233,244,255,.92);
  }
  .subpage nav .language-link {
    position: absolute;
    inset-block-start: 1.35rem;
    inset-inline-end: 0;
  }
  .subpage nav .language-link a { min-width: 2.75rem; }

  .subpage::before { height: 41rem; background-position: 64% top; }
  .subpage main { padding-top: 2rem; }
  .subpage .page-heading .lead {
    max-width: none;
    margin-inline: -.9rem;
    padding: .7rem .9rem;
    border-radius: .9rem;
    background: rgba(255,255,255,.94);
  }
}

@media (max-width: 30rem) {
  .subpage header { padding-block: 1rem; }
  .subpage nav .language-link { inset-block-start: 1rem; }
  .subpage main { padding-top: 1.4rem; }
  .subpage::before { height: 35rem; background-position: 74% top; }
  .subpage .page-heading {
    margin-bottom: 1.5rem;
    padding-inline: 1rem;
  }
  .subpage .page-heading h1 { font-size: clamp(1.8rem, 9vw, 2.25rem); }
  .subpage .page-heading h1::after {
    width: 4.25rem;
    height: .2rem;
    margin-top: .85rem;
  }
  .subpage .page-heading .lead {
    font-size: 1.04rem;
    margin-top: 1rem;
  }
  .subpage .document { padding: 1.25rem; }
  .subpage .button.primary { white-space: normal; text-align: center; }
}
