:root {
  --bewertung-navy: #0b2454;
  --bewertung-blue: #94b8e4;
  --bewertung-ink: #121923;
  --bewertung-width: 1145px;
}

.reppe-bewertung-page {
  background: #fff;
  color: var(--bewertung-ink);
}

.reppe-bewertung-page .site-header {
  box-shadow: 0 1px 0 rgba(12, 36, 84, .08);
}

.reppe-bewertung-page .desktop-nav a[aria-current="page"] {
  color: #173a75;
  font-weight: 700;
}

.bewertung-main h1,
.bewertung-main h2,
.bewertung-main p {
  margin-top: 0;
}

.bewertung-main h1,
.bewertung-main h2 {
  max-width: none;
}

.bewertung-narrow {
  width: min(900px, calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
}

.bewertung-intro {
  padding: 68px 0 60px;
  background: var(--bewertung-navy);
  color: #fff;
}

.bewertung-intro h1 {
  margin-bottom: 35px;
  color: #fff;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .01em !important;
}

.bewertung-intro .bewertung-narrow > p {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font-size: 18px;
  line-height: 1.55;
}

.bewertung-service-grid {
  width: min(var(--bewertung-width), calc(100% - 120px));
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bewertung-service-card {
  position: relative;
  min-height: 375px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.bewertung-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 19, 48, .38), rgba(4, 19, 48, .02) 55%);
  transition: background-color .25s ease;
}

.bewertung-service-card:hover::before,
.bewertung-service-card:focus-visible::before {
  background-color: rgba(11, 36, 84, .13);
}

.bewertung-service-card.is-private {
  background-image: url("assets/hero-thomas-grasl-v2.webp");
  background-position: 72% center;
}

.bewertung-service-card.is-business {
  background-image: url("assets/thomas-grasl-portrait.jpg");
  background-position: center 24%;
}

.bewertung-service-card.is-court {
  background-image: url("assets/hero-thomas-grasl-mobile-v2.webp");
  background-position: center 18%;
}

.bewertung-service-card > span {
  width: calc(100% - 54px);
  min-height: 88px;
  margin-bottom: 0;
  display: grid;
  place-items: center;
  padding: 16px 20px;
  border-radius: 8px 8px 0 0;
  background: var(--bewertung-navy);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bewertung-honor {
  padding: 62px 0 54px;
  background: #fff;
}

.bewertung-honor h2,
.bewertung-region h2,
.bewertung-documents h2 {
  color: var(--bewertung-ink);
  font-size: 30px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .01em !important;
}

.bewertung-honor h2 {
  margin-bottom: 22px;
}

.bewertung-honor p {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.6;
}

.bewertung-fee-grid {
  width: min(var(--bewertung-width), calc(100% - 120px));
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bewertung-fee-card {
  min-height: 570px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 52px;
  background: var(--bewertung-navy);
  color: #fff;
  text-align: center;
}

.bewertung-fee-card h2 {
  margin-bottom: 25px;
  color: #fff;
  font-size: 29px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .01em !important;
}

.bewertung-fee-card p {
  max-width: 470px;
  margin-bottom: 30px;
  color: #fff;
  font-size: 17px;
  line-height: 1.55;
}

.bewertung-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--bewertung-navy);
  border-radius: 5px;
  background: var(--bewertung-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* The global link color must not override text on solid CTA buttons. */
.reppe-bewertung-page .bewertung-button,
.reppe-bewertung-page .bewertung-button:hover,
.reppe-bewertung-page .bewertung-button:focus-visible {
  color: #fff;
}

.bewertung-button.is-light {
  border-color: #fff;
  background: #fff;
  color: var(--bewertung-navy);
}

.reppe-bewertung-page .bewertung-button.is-light,
.reppe-bewertung-page .bewertung-button.is-light:hover,
.reppe-bewertung-page .bewertung-button.is-light:focus-visible {
  color: var(--bewertung-navy);
}

.bewertung-button:hover,
.bewertung-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(.96);
}

.bewertung-region {
  width: min(var(--bewertung-width), calc(100% - 120px));
  min-height: 600px;
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.bewertung-region-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 70px 70px 36px;
}

.bewertung-region-copy h2 {
  margin-bottom: 26px;
}

.bewertung-region-copy p {
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.6;
}

.bewertung-region-media {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #eef2f7;
}

.bewertung-region-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.bewertung-region-label {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  background: rgba(11, 36, 84, .92);
  color: #fff;
  z-index: 1;
}

.bewertung-region-label strong,
.bewertung-region-label span {
  color: #fff;
}

.bewertung-documents {
  padding: 54px 0 58px;
  background: var(--bewertung-blue);
  text-align: center;
}

.bewertung-documents h2 {
  margin-bottom: 24px;
  color: #fff;
}

.bewertung-documents p {
  margin-bottom: 30px;
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .bewertung-service-grid,
  .bewertung-fee-grid,
  .bewertung-region {
    width: min(calc(100% - 60px), var(--bewertung-width));
  }

  .bewertung-service-card {
    min-height: 360px;
  }

  .bewertung-service-card > span {
    width: calc(100% - 30px);
    font-size: 17px;
  }
}

@media (max-width: 800px) {
  .bewertung-intro {
    padding: 52px 0 42px;
  }

  .bewertung-intro h1 {
    margin-bottom: 24px;
  }

  .bewertung-intro .bewertung-narrow > p {
    font-size: 16px;
  }

  .bewertung-service-grid {
    width: calc(100% - 36px);
    margin-top: 42px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bewertung-service-card {
    min-height: 410px;
  }

  .bewertung-service-card > span {
    width: calc(100% - 32px);
    min-height: 76px;
  }

  .bewertung-honor {
    padding: 48px 0 40px;
  }

  .bewertung-fee-grid {
    width: calc(100% - 36px);
    margin-bottom: 48px;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bewertung-fee-card {
    min-height: 390px;
    padding: 44px 28px;
  }

  .bewertung-region {
    width: 100%;
    min-height: 0;
    margin-bottom: 0;
    grid-template-columns: 1fr;
  }

  .bewertung-region-copy {
    padding: 52px 24px;
  }

  .bewertung-region-media {
    min-height: 500px;
  }
}

@media (max-width: 600px) {
  .bewertung-narrow {
    width: calc(100% - 36px);
  }

  .bewertung-intro {
    padding-top: 45px;
  }

  .bewertung-intro h1,
  .bewertung-honor h2,
  .bewertung-region h2,
  .bewertung-documents h2 {
    font-size: 25px;
  }

  .bewertung-service-card {
    min-height: 370px;
  }

  .bewertung-service-card > span {
    font-size: 16px;
  }

  .bewertung-honor p,
  .bewertung-fee-card p,
  .bewertung-region-copy p,
  .bewertung-documents p {
    font-size: 16px;
  }

  .bewertung-fee-card h2 {
    font-size: 24px;
  }

  .bewertung-region-media {
    min-height: 430px;
  }

  .bewertung-region-label {
    right: 16px;
    bottom: 16px;
    left: 16px;
    flex-direction: column;
    gap: 3px;
  }

  .bewertung-documents {
    padding: 48px 0 52px;
  }
}
