/* HealthChat — static site styles.
   Colours and sizes are taken from the former Wix site. */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #12325c;
  --navy-850: #1a3159;
  --navy-800: #2a4063;
  --blue-700: #1f4d85;
  --grey-600: #595959;
  --line: #e8e6e6;
  --white: #fff;

  /* Jost stands in for the licensed Futura LT. See README for switching back. */
  --font-book: "Jost", "Century Gothic", sans-serif;
  --font-light: "Jost", "Century Gothic", sans-serif;
  --weight-book: 400;
  --weight-light: 300;
  --font-detail: "Montserrat", sans-serif;

  --container: 1060px;
  --container-wide: 1200px;
  --gutter: 24px;
  --header-height: 100px;
  --section-gap: clamp(56px, 7vw, 96px);

  /* Elevation, tinted with the brand navy instead of black.
     Resting surfaces get one tight shadow; raised ones add a soft second
     layer for height, so they read above the cards instead of level with them. */
  --shadow-card: 0 3px 8px rgb(18 50 92 / 8%);
  --shadow-raised: 0 2px 4px rgb(18 50 92 / 10%), 0 12px 32px rgb(18 50 92 / 8%);

  /* Site gradient, drawn natively so it never pixelates: a soft white band on sky blue,
     running from lower left to upper right. Stops are sampled from the original artwork. */
  --gradient-sky: linear-gradient(
    118deg,
    #abd1fa 0%, #86b4e0 15%, #dfebf7 30%, #fafbfd 40%, #fff 43%, #fff 57%,
    #f9fafd 60%, #dbe9f6 70%, #a4c5e6 80%, #7fabd8 89%, #5a8ec7 100%
  );
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-light);
  font-weight: var(--weight-light);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
address {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--white);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: calc(var(--container-wide) + 2 * var(--gutter));
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--white);
  color: var(--blue-700);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Type */

.heading-xl,
.heading-lg,
.heading-md {
  font-family: var(--font-book);
  font-weight: var(--weight-book);
}

.heading-xl {
  color: var(--blue-700);
  font-size: clamp(44px, 5.4vw, 64px);
  line-height: 1.22;
}

.heading-lg {
  font-size: clamp(36px, 4.4vw, 48px);
  line-height: 1.4;
}

.heading-md {
  color: var(--blue-700);
  font-size: clamp(28px, 3.2vw, 34px);
  line-height: 1.4;
}

.lead {
  color: var(--grey-600);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.4;
}

.lead--narrow {
  max-width: 400px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 4px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-light);
  font-weight: var(--weight-light);
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background-color 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s;
}

.btn:hover {
  box-shadow: var(--shadow-raised);
}

.btn--primary {
  border-color: var(--navy-900);
  background: var(--navy-800);
  color: var(--white);
}

.btn--primary:hover {
  border-color: var(--navy-800);
  background: transparent;
  color: var(--navy-800);
}

.btn--light {
  min-height: 42px;
  box-shadow: none;
  border-color: var(--white);
  color: var(--white);
  font-family: var(--font-book);
  font-weight: var(--weight-book);
  font-size: 16px;
}

.btn--light:hover {
  background: var(--white);
  color: var(--navy-900);
}

.btn--large {
  min-height: 57px;
}

/* Header */

.site-header {
  position: relative;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.site-header__actions {
  display: flex;
  gap: 24px;
}

.site-header__actions .btn {
  min-width: 142px;
}

.site-header__actions .btn:hover {
  background: var(--white);
}

/* Hero */

.hero {
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
  /* The last 300px dissolve into the white of the section below, so there is no hard seam. */
  background:
    linear-gradient(to bottom, rgb(255 255 255 / 0%), var(--white)) bottom / 100% 300px no-repeat,
    var(--gradient-sky);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-block: 96px 112px;
}

.hero__title {
  color: var(--navy-800);
  font-family: var(--font-book);
  font-weight: var(--weight-book);
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1.2;
}

.hero__title span {
  display: block;
}

.hero__tagline {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  color: var(--grey-600);
  font-family: var(--font-light);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.4;
}

.hero__tagline a {
  flex: none;
}

.hero__tagline img {
  width: 66px;
}

.hero__intro {
  margin-top: 56px;
  color: var(--grey-600);
  font-size: 20px;
  line-height: 1.4;
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, 142px);
  gap: 20px 60px;
  align-items: end;
  margin-top: 24px;
}

.hero__actions .btn {
  width: 100%;
  gap: 8px;
  padding-inline: 8px;
}

.hero__actions .btn svg {
  flex-shrink: 0;
  fill: currentColor;
}

.hero__apps {
  margin-top: 24px;
  color: var(--grey-600);
  font-size: 20px;
  line-height: 1.4;
}

.hero__devices {
  justify-self: center;
  width: 100%;
  max-width: 640px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-top: 16px;
}

.badges img {
  width: auto;
  height: 41px;
}

/* Badges share the hero button grid so each one lines up with the column above. */
.hero .badges {
  display: grid;
  grid-template-columns: repeat(2, 142px);
  gap: 16px 60px;
}

/* Sections */

.section {
  padding-block: var(--section-gap);
}

.section--tight-top {
  padding-top: 0;
}

/* Mehr Informationen */

.info-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 200px));
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
}

/* Sicher: 3 + 2 + 1 honeycomb on a six-column grid */

.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 72px 0;
  margin-top: 40px;
  color: var(--blue-700);
  font-family: var(--font-detail);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
}

.feature {
  display: flex;
  grid-column: span 2;
  gap: 20px;
  align-items: center;
}

.feature:nth-child(4) {
  grid-column: 2 / span 2;
}

.feature:nth-child(6) {
  grid-column: 3 / span 2;
}

.feature__label {
  max-width: 130px;
}

.hex {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 84px;
  height: 100px;
}

.hex__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--white);
  stroke: var(--blue-700);
}

.hex__icon {
  position: relative;
  color: var(--navy-850);
  fill: currentColor;
}

/* Matrix */

.matrix__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 90px;
  margin-top: 56px;
  color: var(--blue-700);
  font-family: var(--font-detail);
  font-weight: 400;
}

.matrix__item {
  display: flex;
  flex-direction: column;
}

.matrix__item h3 {
  min-height: 2.8em;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.matrix__item p {
  margin-top: 8px;
  line-height: 1.5;
}

.matrix__item p + p {
  margin-top: 0;
}

.matrix__art {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 200px;
  margin-top: 32px;
}

.matrix__art svg {
  color: var(--blue-700);
  fill: currentColor;
}

.matrix__flow {
  position: relative;
  width: 196px;
  height: 187px;
}

.matrix__flow svg {
  position: absolute;
}

/* Schnell */

.fast {
  /* Both edges dissolve into the white sections around it. The section is short, so the
     fades are a share of its height rather than a fixed length: 30% each leaves the middle
     40% at full strength at every viewport, where fixed 300px fades would wash it all out. */
  background:
    linear-gradient(to bottom, var(--white), rgb(255 255 255 / 0%)) top / 100% 30% no-repeat,
    linear-gradient(to bottom, rgb(255 255 255 / 0%), var(--white)) bottom / 100% 30% no-repeat,
    var(--gradient-sky);
}

.fast .heading-lg {
  color: var(--navy-900);
}

.fast__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* The translucent panel keeps the third column legible on the dark end of the gradient. */
.fast__item {
  padding: 24px;
  border-radius: 16px;
  background: rgb(255 255 255 / 72%);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.fast__item svg {
  color: var(--navy-800);
  fill: currentColor;
}

.fast__item h3 {
  margin-top: 12px;
  font-weight: var(--weight-light);
  font-size: 24px;
  line-height: 1.4;
}

.fast__item p {
  margin-top: 16px;
}

/* Vertraulich */

.confidential .heading-lg {
  color: var(--blue-700);
}

.confidential__text {
  max-width: 780px;
  margin-top: 40px;
}

.confidential__text p + p {
  margin-top: 28px;
}

.video-band {
  height: clamp(240px, 35vw, 500px);
  background: var(--navy-900);
}

.video-band video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zufriedene Kunden */

.testimonials .heading-lg {
  color: var(--navy-800);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  margin-top: 40px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 36px 32px 44px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow-raised);
}

.testimonial__mark {
  width: 28px;
  height: 25px;
  color: var(--navy-800);
  fill: currentColor;
}

.testimonial blockquote {
  flex: 1;
  margin: 28px 0 0;
  color: var(--grey-600);
}

.testimonial__meta {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 24px;
}

.testimonial__name {
  color: #000;
  font-family: var(--font-book);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.9;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.stars {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  color: var(--navy-800);
  fill: currentColor;
}

.stars svg {
  width: 13px;
  height: 13px;
}

/* Kontakt */

.contact {
  background: var(--navy-900);
  color: var(--white);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 450px);
  gap: 48px 96px;
  padding-block: 88px;
}

.contact .heading-lg {
  max-width: 430px;
}

.contact__icon {
  width: 168px;
  margin-top: 56px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  line-height: 1.4;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 41px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  line-height: 1.5;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-width: 2px;
  margin-bottom: -1px;
}

.contact__submit {
  grid-column: 1 / -1;
}

.contact__submit .btn {
  min-width: 150px;
}

.contact__hint {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

/* Footer */

.site-footer {
  color: var(--navy-800);
  font-size: 18px;
  line-height: 1.55;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  align-items: center;
  justify-content: space-between;
  padding-block: 72px;
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
  align-items: center;
}

.site-footer__contact img {
  width: 61px;
}

.site-footer__lines {
  display: grid;
  gap: 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__meta .badges {
  margin-top: 0;
}

.site-footer__links {
  display: flex;
  gap: 30px;
  margin-top: 28px;
}

.site-footer__copy {
  margin-top: 20px;
}

/* Legal pages */

.legal {
  color: var(--white);
}

.legal a {
  overflow-wrap: anywhere;
  text-underline-offset: 2px;
}

.legal__title {
  /* Navy on the light gradient, matching the hero title on the same background. */
  color: var(--navy-800);
  font-family: var(--font-book);
  font-weight: var(--weight-book);
  font-size: clamp(36px, 4.4vw, 48px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.legal__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 40px 72px;
  align-items: start;
}

.legal__row + .legal__row {
  margin-top: 72px;
}

/* Navy panel: the white copy sits on the light parts of these gradients. */
.legal__panel {
  padding: 32px;
  border-radius: 16px;
  background: rgb(18 50 92 / 72%);
  box-shadow: var(--shadow-card);
}

.legal__panel > * + * {
  margin-top: 28px;
}

.legal__panel li {
  margin-left: 20px;
  list-style: disc;
}

.legal__panel ul {
  margin-top: 0;
}

.legal__sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px 48px;
}

.legal__sources a {
  display: inline-flex;
  align-items: center;
}

.legal__sources svg {
  flex-shrink: 0;
  fill: currentColor;
}

.legal--impressum,
.legal--datenschutz {
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
  background: var(--gradient-sky);
}

.legal--datenschutz .legal__panel {
  margin-top: 32px;
}

.legal--datenschutz h2 {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
}

.legal--datenschutz .legal__panel h2:not(:first-child) {
  margin-top: 40px;
}

.legal--datenschutz .legal__panel > * + p {
  margin-top: 20px;
}

/* 404 */

.not-found {
  min-height: 50vh;
  background: var(--gradient-sky);
}

.not-found .btn {
  margin-top: 32px;
}

/* Responsive */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 64px 72px;
  }

  .hero__devices {
    margin-top: 16px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .feature,
  .feature:nth-child(4),
  .feature:nth-child(6) {
    grid-column: auto;
  }

  .feature__label {
    max-width: none;
  }

  .matrix__grid {
    gap: 40px;
  }

  .testimonials__grid {
    gap: 24px;
  }

  .testimonial {
    padding-inline: 24px;
  }

  .contact__inner {
    gap: 48px 56px;
  }

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

@media (max-width: 800px) {
  :root {
    --gutter: 20px;
    --header-height: 80px;
  }

  .site-header__actions {
    gap: 12px;
  }

  .site-header__actions .btn {
    min-width: 0;
    padding-inline: 12px;
    font-size: 16px;
  }

  .hero__title span {
    display: inline;
  }

  .hero__tagline {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero__intro {
    margin-top: 16px;
  }

  .hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
  }

  .hero__actions .btn {
    min-height: 48px;
  }

  /* Badges take the same two columns as the buttons above and scale with them. */
  .hero .badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hero .badges img {
    width: 100%;
    height: auto;
  }

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

  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

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

  .matrix__item h3 {
    min-height: 0;
  }

  .matrix__art {
    min-height: 0;
    margin-top: 24px;
  }

  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 64px;
  }

  .contact__icon {
    width: 120px;
    margin-top: 32px;
  }

  .site-footer__inner {
    padding-block: 48px;
  }

  .legal__panel {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
