:root {
  --orange: #ea5b0c;
  --gold: #f7a801;
  --ink: #1b242b;
  --muted: #8d98a1;
  --light: #f6f6f7;
  --content-width: 1200px;
  --title-font: Raleway, sans-serif;
  --text-font: "Open Sans", sans-serif;
}

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

body {
  margin: 0;
  color: #3b3d42;
  background: white;
  font: 300 14px/1.6 Montserrat, sans-serif;
}

h1, h2, p, dl, dd, figure, blockquote, ul {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.visually-hidden:not(:focus), .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  background: white;
  color: var(--ink);
}

.content-width, .header-inner, .footer-inner {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 10px 15px 20px;
}

.header-logo {
  width: 220px;
}

.main-nav {
  padding-top: 20px;
  color: white;
  font: 600 18px/1.4 Montserrat, sans-serif;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 13px 18px 12px 8px;
}

.main-nav a:hover, .footer-inner a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 1080px;
  margin-top: -138px;
  padding: 300px 10px 400px;
  background: url("../img/HG_bearbeitet-graustufen_2000px.jpg") center / cover no-repeat;
}

.hero h1 {
  width: min(100%, 1024px);
  transform: translateY(-90px);
}

.about {
  color: white;
  background: #3c3c3c;
}

.about-intro {
  padding: 89px 0 20px;
  text-align: center;
}

.section-label {
  color: #757981;
  font: 700 16px/1 var(--title-font);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.title {
  color: var(--ink);
  font: 300 38px/1 var(--title-font);
  text-transform: uppercase;
}

.title-strong {
  font-weight: 800;
  line-height: 1.25;
}

.about .title {
  color: white;
}

.about-intro h2 {
  margin-top: 21px;
  letter-spacing: -0.2px;
}

.about-subtitle {
  margin-top: 5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1300px);
  margin-inline: auto;
  padding: 4px 0 72px;
  font-family: var(--title-font);
}

.stat {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  align-items: stretch;
}

.stat:nth-child(2) {
  grid-template-columns: 58% minmax(0, 1fr);
}

.stat:nth-child(3) {
  grid-template-columns: 38% minmax(0, 1fr);
}

.stat dt {
  grid-column: 2;
  grid-row: 1;
  padding: 13px 10px 10px 9px;
  font-size: 24px;
  line-height: 1.5;
}

.stat dt strong {
  display: block;
  font-weight: 800;
  line-height: 1;
}

.stat dd {
  grid-column: 1;
  grid-row: 1;
  padding-bottom: 6px;
  border-right: 1px solid #757981;
  color: var(--orange);
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gallery img {
  width: 100%;
  aspect-ratio: 690 / 565;
  object-fit: cover;
}

.reviews {
  padding: 79px 0 80px;
  background: var(--light);
}

.reviews .section-label {
  color: #b7b9be;
  letter-spacing: 0.4px;
  text-align: center;
}

.reviews h2 {
  margin: 38px 0 55px;
  letter-spacing: -0.2px;
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding-inline: 15px;
}

.review {
  position: relative;
  padding: 52px 30px 48px 77px;
  background: white;
  font: 400 14px/1.5 var(--text-font);
}

.review-icon.fa {
  position: absolute;
  top: 37px;
  left: 30px;
  color: var(--orange);
  font-size: 30px;
}

.review blockquote, .review time {
  color: var(--muted);
}

.review figcaption {
  margin-top: 21px;
  color: var(--ink);
  line-height: 1;
}

.review:nth-child(2) figcaption {
  margin-top: 116px;
}

.review time {
  display: block;
  margin-top: 12px;
  font-style: italic;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 53px 0 71px;
}

.contact-image, .contact-copy {
  padding: 0 15px;
}

.contact-copy {
  padding-top: 36px;
}

.contact-phone {
  margin-top: 4px;
  color: var(--orange);
}

.contact-text {
  margin-top: 20px;
  padding-right: 56px;
  color: var(--muted);
  font: 400 20px/1.5 var(--text-font);
}

.contact-copy .contact-text {
  margin-bottom: 30px;
}

.email {
  background: var(--light);
}

.email-inner {
  width: min(100%, 1140px);
  margin-inline: auto;
  padding-block: 40px 30px;
}

.email-inner > * {
  width: 50%;
  padding-inline: 10px;
}

.email .title {
  color: var(--orange);
}

.email .contact-text {
  margin-top: 31px;
  padding-right: 66px;
  overflow-wrap: anywhere;
}

.contact-details {
  padding: 76px 0;
  color: white;
  background: var(--orange);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 0.93fr 1.06fr;
}

.detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-inline: 6px 15px;
  font: 700 16px/1.5 var(--title-font);
}

.detail:last-child {
  padding-left: 0;
}

.detail > :last-child {
  padding-top: 15px;
}

.detail address {
  font-style: normal;
}

.detail h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.detail address, .detail p {
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.detail-icon.fa {
  flex: 0 0 46px;
  font-size: 46px;
  text-align: center;
}

.detail a:hover {
  color: var(--ink);
}

.site-footer {
  min-height: 80px;
  background: #ea5b0b;
}

.footer-inner {
  padding: 30px 15px;
  font-size: 11px;
  line-height: 20px;
}

.footer-inner a:focus-visible {
  color: var(--ink);
  background: white;
}

.back-to-top {
  position: fixed;
  z-index: 1;
  right: 20px;
  bottom: 15px;
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}

@media (min-width: 640px) and (max-width: 1199px) {
  .header-inner {
    max-width: 1120px;
  }
}

@media (min-width: 640px) and (max-width: 1119px) {
  .header-inner {
    max-width: 940px;
  }
}

@media (min-width: 640px) and (max-width: 939px) {
  .header-inner {
    max-width: 680px;
  }

  .header-inner > a {
    flex: 0 0 30.6%;
  }
}

@media (max-width: 1024px) {
  .about-intro {
    padding: 40px 15px 15px;
  }

  .stats {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 10px 0 49px;
  }

  .stats .stat {
    grid-template-columns: 1fr;
  }

  .stat dt {
    grid-column: 1;
    grid-row: 2;
  }

  .stat dd {
    border: 0;
    padding-bottom: 6px;
  }

  .stat:last-child dd {
    padding-bottom: 1px;
  }

  .reviews, .contact, .contact-details {
    padding-block: 40px;
  }

  .reviews h2 {
    margin-top: 17px;
  }

  .contact-copy .contact-text {
    margin-bottom: 20px;
  }

  .review {
    padding: 45px 13px 51px 60px;
  }

  .review:last-child {
    padding-right: 7px;
  }

  .review-icon.fa {
    top: 30px;
    left: 13px;
  }
}

@media (max-width: 767px) {
  .header-logo {
    margin-block: 10px 6.4px;
  }

  .main-nav {
    padding: 0;
  }

  .about .title {
    font-size: 27px;
  }

  .stats {
    padding-bottom: 56px;
  }

  .stats .stat {
    grid-template-columns: 40% minmax(0, 1fr);
  }

  .stat dt {
    grid-column: 2;
    grid-row: 1;
    padding: 3px 10px 0;
    font-size: 18px;
  }

  .stat dd {
    border-right: 1px solid #757981;
    padding-bottom: 0;
    font-size: 45px;
  }

  .gallery, .reviews-grid, .contact, .details-grid {
    grid-template-columns: 1fr;
  }

  .reviews h2 {
    padding-inline: 15px;
  }

  .reviews-grid {
    row-gap: 15px;
  }

  .review, .review:last-child {
    padding: 30px 13px;
  }

  .review-icon.fa {
    position: static;
    display: block;
    margin-bottom: 23px;
  }

  .contact, .email {
    text-align: center;
  }

  .contact .title, .email .title {
    font-size: 28px;
  }

  .contact-image img {
    margin-inline: auto;
  }

  .contact-text {
    padding-inline: 15px;
  }

  .email-inner > * {
    width: 100%;
  }

  .email .contact-text {
    padding-inline: 25px;
  }

  .details-grid {
    gap: 30px;
    text-align: center;
  }

  .detail {
    display: block;
    padding-inline: 6px;
  }

  .detail > :last-child {
    padding-top: 21.4px;
  }
}

@media (max-width: 639px) {
  .header-inner:has(.menu-toggle[hidden]) {
    flex-wrap: wrap;
  }

  .main-nav {
    color: var(--ink);
  }

  .menu-toggle:not([hidden]) {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 0;
    background: var(--gold);
    box-shadow: -2px 2px 7px rgb(0 0 0 / 30%);
    color: white;
    cursor: pointer;
  }

  .menu-toggle[aria-expanded="true"] {
    right: calc(70% + 10px);
  }

  .menu-toggle:not([hidden]) + .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: 70%;
    overflow-y: auto;
    background: var(--gold);
    color: white;
  }

  .main-nav ul {
    display: block;
  }

  .main-nav a {
    padding: 10px 15px;
    overflow-wrap: anywhere;
  }

}

@media (min-width: 768px) {
  .header-logo {
    transform: translateY(1.8px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
