/* =========================================================
   Participant Waiver – ASICS Blast Champs Cologne
   Layout nachgebildet nach dem Original-PDF
   ========================================================= */

:root {
  --asics-blue: #0023b3;
  --text-color: #333333;
  --heading-color: #232323;
  --highlight-cyan: #00ffff;
  --page-bg: #ffffff;
  --outer-bg: #e9e9e9;
  --page-width: 850px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--outer-bg);
  font-family: Calibri, "Segoe UI", Candara, "Trebuchet MS", Arial, sans-serif;
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.55;
}

.document {
  max-width: var(--page-width);
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 16px;
}

/* Each .page mirrors one page of the original PDF, including the
   ASICS letterhead repeated at the top of every page. */
.page {
  background: var(--page-bg);
  padding: 60px 70px 70px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
  position: relative;
}

.logo {
  display: block;
  height: 46px;
  width: auto;
  margin-bottom: 34px;
}

.doc-title {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 18px;
}

h1.doc-title {
  line-height: 1.4;
}

h2 {
  font-size: 1em;
  font-weight: 700;
  color: var(--heading-color);
  margin: 22px 0 6px;
}

p {
  margin: 0 0 16px;
  text-align: left;
}

p.continued {
  margin-top: -2px;
}

h2.continued {
  margin-top: 0;
}

strong {
  font-weight: 700;
}

/* Text that visually runs onto the next printed page in the source PDF */
.page-continues {
  /* purely semantic marker – no special styling, keeps the sentence
     reading as one continuous paragraph across the page break */
}

/* "DEUTSCH" language marker, reproduced as the highlighter-style
   tag that appears at the top of the German section in the PDF */
.lang-tag {
  margin: 0 0 14px;
}

.lang-tag span {
  background: var(--highlight-cyan);
  font-weight: 700;
  font-size: 0.95em;
  padding: 1px 6px;
  color: var(--heading-color);
}

/* Divider between printed pages when viewed on screen */
.page + .page {
  border-top: 1px dashed #cfcfcf;
}

/* =========================================================
   Print styles – lets the page be printed / saved as PDF
   with one .page section per physical page, just like the
   original document.
   ========================================================= */
@media print {
  body {
    background: #ffffff;
  }

  .document {
    margin: 0;
    padding: 0;
    max-width: none;
    gap: 0;
  }

  .page {
    box-shadow: none;
    padding: 20mm 22mm;
    page-break-after: always;
  }

  .page:last-child {
    page-break-after: auto;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 640px) {
  .page {
    padding: 34px 24px 40px;
  }

  body {
    font-size: 15px;
  }
}
