/* Self-hosted (SIL Open Font License) instead of loading from Google Fonts,
   so visitors' IP addresses are not sent to Google. Latin subset only. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
}

@font-face {
  font-family: "Reenie Beanie";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/reenie-beanie.woff2") format("woff2");
}

:root {
  --tanne: #23382A;
  --salbei: #5F7A52;
  --salbei-dark: #4E6743;
  --salbei-tint: #E8EEE4;
  --papier: #F3F4EE;
  --weiss: #FFFFFF;
  --stempel: #34509A;
  --schiefer: #5A665E;
  --linie: #DDE1D8;
  --linie-papier: #C9CEC4;
  --rand: #7F8A7C;
  --on-tanne: #D5DDD3;
  --on-tanne-muted: #AFC0AE;
  --font: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Reenie Beanie", "Segoe Print", cursive;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  background: var(--weiss);
  color: var(--tanne);
}

a {
  color: var(--salbei-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--salbei);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  padding: 14px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tanne);
}

.brand img {
  width: 36px;
}

.brand span {
  font-weight: 700;
  font-size: 20px;
}

nav.site {
  display: flex;
  gap: 24px;
}

/* min-height keeps the tap area at 44px while the text stays small. */
nav.site a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--tanne);
  font-weight: 700;
  font-size: 15px;
}

nav.site a:hover {
  color: var(--salbei);
}

/* Hero */
.hero {
  background: var(--tanne);
  color: var(--weiss);
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--on-tanne);
  max-width: 31em;
  margin: 0 0 32px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--weiss);
  color: var(--tanne);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
}

.btn-store:hover {
  background: var(--papier);
}

.btn-store svg {
  width: 16px;
  height: 16px;
}

.hero :focus-visible {
  outline-color: var(--weiss);
}

/* Hero picture: a paper vaccination booklet page with the app on top.
   Everything inside scales with the picture's own width (cqw). */
.proof {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 480 / 540;
  justify-self: end;
}

.passport {
  position: absolute;
  left: 0;
  top: 2%;
  width: 70%;
  padding: 5cqw 5cqw 6cqw;
  background: var(--papier);
  color: var(--tanne);
  border-radius: 1cqw;
  transform: rotate(-4deg);
  box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.28);
}

.passport-title {
  margin: 0 0 2.5cqw;
  font-weight: 800;
  font-size: 4.4cqw;
}

.passport-row {
  display: grid;
  grid-template-columns: 30cqw auto;
  align-items: center;
  gap: 3cqw;
  min-height: 17cqw;
  padding: 2.4cqw 0;
  border-top: 0.3cqw solid var(--linie);
}

.passport-row:last-of-type {
  border-bottom: 0.3cqw solid var(--linie);
}

.sticker {
  background: var(--weiss);
  border: 0.3cqw solid var(--linie-papier);
  border-radius: 0.6cqw;
  padding: 1.6cqw 2.2cqw;
  font-size: 2.6cqw;
  line-height: 1.3;
  transform: rotate(-1.2deg);
}

.sticker b {
  display: block;
  font-size: 3.1cqw;
}

.sticker span {
  color: var(--schiefer);
}

.barcode {
  display: block;
  width: 70%;
  height: 3cqw;
  margin-top: 1cqw;
  background: repeating-linear-gradient(90deg,
    var(--tanne) 0 0.3cqw, transparent 0.3cqw 0.7cqw,
    var(--tanne) 0.7cqw 0.9cqw, transparent 0.9cqw 1.5cqw);
}

.hand {
  font-family: var(--hand);
  font-size: 6.4cqw;
  line-height: 1;
  color: var(--stempel);
  transform: rotate(-3deg);
}

.stamp {
  position: absolute;
  left: 9cqw;
  bottom: 1cqw;
  width: 23cqw;
  height: 23cqw;
  color: var(--stempel);
  opacity: 0.85;
  mix-blend-mode: multiply;
  transform: rotate(-12deg);
  animation: stamp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.5s both;
}

.stamp text {
  font-family: var(--font);
  letter-spacing: 0.4px;
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(1.4);
  }
  to {
    opacity: 0.85;
    transform: rotate(-12deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stamp {
    animation: none;
  }
}

.hero-phone {
  position: absolute;
  right: 0;
  top: 21%;
  width: 43%;
  aspect-ratio: 540 / 1040;
  object-fit: cover;
  border: 1.6cqw solid #101A13;
  border-radius: 6.5cqw;
  background: var(--weiss);
  transform: rotate(4deg);
  box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, 0.35);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2,
.contact-intro h2 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-head p {
  max-width: 36em;
  margin: 0;
  font-size: 18px;
  color: var(--schiefer);
}

/* Screenshot gallery: four phones in one row on the grid of the page,
   a swipeable row on tablets and phones (see the 860px query). */
.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.screen {
  margin: 0;
}

.screen > img,
.lock {
  width: 100%;
  aspect-ratio: 540 / 1040;
  border: 6px solid var(--tanne);
  border-radius: 30px;
}

.screen > img {
  object-fit: cover;
  background: var(--weiss);
}

.screen figcaption {
  margin-top: 16px;
}

.screen figcaption b {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.screen figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--schiefer);
}

/* Lock screen with two real Pawanjo notifications (texts as the app sends
   them). Sizes are in cqw so it scales with the card like a screenshot;
   its own padding is in % because cqw on the container itself would
   resolve against the viewport. */
.lock {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  padding: 14% 5% 0;
  background: radial-gradient(120% 70% at 50% 0%, var(--salbei) 0%, var(--salbei-dark) 55%, #3D5434 100%);
  color: var(--weiss);
  text-align: center;
}

.lock::after {
  content: "";
  position: absolute;
  left: 35%;
  right: 35%;
  bottom: 4cqw;
  height: 1.2cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.7);
}

.lock-time {
  margin: 0;
  font-size: 24cqw;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.lock-date {
  margin: 2cqw 0 13cqw;
  font-size: 5.6cqw;
  font-weight: 700;
}

.lock .note {
  margin-bottom: 3cqw;
  font-size: 4.5cqw;
  text-align: left;
}

/* A Pawanjo notification on the lock screen. Sizes are in em, set from
   the lock screen's cqw font size. */
.note {
  padding: 0.85em 1em 0.95em;
  border-radius: 0.9em;
  background: var(--papier);
  color: var(--tanne);
  line-height: 1.35;
}

.note p {
  margin: 0;
}

.note-app {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8em;
  font-weight: 700;
}

.note-app img {
  width: 1.6em;
}

.note-app span {
  font-weight: 400;
  color: var(--schiefer);
}

.note .note-title {
  margin-top: 0.4em;
  font-weight: 800;
}

.note .note-body {
  margin-top: 0.15em;
}

/* Contact: closes the page on the same fir green as the hero, with the
   form on a sheet of the booklet paper. */
.contact {
  background: var(--tanne);
  color: var(--weiss);
}

.contact :focus-visible {
  outline-color: var(--weiss);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: center;
}

.contact-intro p {
  margin: 0 0 12px;
  max-width: 28em;
  font-size: 18px;
  color: var(--on-tanne);
}

.contact-intro .contact-mail {
  margin-bottom: 32px;
  font-size: 16px;
}

.contact-intro a:not(.btn-store) {
  color: var(--weiss);
}

.contact-form {
  background: var(--papier);
  color: var(--tanne);
  border-radius: 4px;
  padding: 28px 28px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.contact-form :focus-visible {
  outline-color: var(--salbei);
}

.contact-note {
  margin: -4px 0 14px;
  font-family: var(--hand);
  font-size: 28px;
  line-height: 1.1;
  color: var(--stempel);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--tanne);
  background: var(--weiss);
  border: 1.5px solid var(--rand);
  border-radius: 10px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--schiefer);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--salbei);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--weiss);
  background: var(--salbei);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--salbei-dark);
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: default;
}

.contact-status {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 15px;
}

.contact-status.success {
  color: var(--salbei-dark);
}

.contact-status.error {
  color: #B3261E;
}

/* Footer */
footer.site {
  padding: 18px 0;
  border-top: 1px solid var(--linie);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
  font-size: 14px;
  color: var(--schiefer);
}

footer.site a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--schiefer);
  text-decoration: none;
  font-weight: 700;
}

footer.site a:hover {
  color: var(--salbei);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

/* On the home page the footer continues the green contact band. */
.contact + footer.site {
  background: var(--tanne);
  border-top-color: rgba(255, 255, 255, 0.14);
}

.contact + footer.site .wrap,
.contact + footer.site a {
  color: var(--on-tanne-muted);
}

.contact + footer.site a:hover {
  color: var(--weiss);
}

/* Legal pages */
.legal {
  border-top: 1px solid var(--linie);
}

.legal .wrap {
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.legal h1 {
  font-size: clamp(24px, 7vw, 34px);
  hyphens: auto;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 6px;
}

.legal .updated {
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--schiefer);
}

.legal h2 {
  margin: 36px 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.legal p,
.legal li {
  font-size: 16px;
}

.legal ul {
  padding-left: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--schiefer);
  text-decoration: none;
}

.back-link:hover {
  color: var(--salbei);
}

.callout {
  background: var(--salbei-tint);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15px;
}

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 64px;
  }
  .hero .wrap,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .proof {
    justify-self: center;
    max-width: 420px;
  }
  .section {
    padding: 64px 0;
  }
  .contact-grid {
    gap: 32px;
  }
  .screens {
    display: flex;
    max-width: none;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    padding: 4px 24px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--linie) transparent;
  }
  .screen {
    flex: 0 0 236px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .screen {
    flex-basis: 220px;
  }
  .contact-form {
    padding: 20px;
  }
  nav.site {
    gap: 16px;
  }
  nav.site a {
    font-size: 14px;
  }
}
