@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/roboto-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/roboto-latin-variable-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --color-red: #950d1d;
  --color-red-dark: #720715;
  --color-red-soft: #f8edef;
  --color-ink: #101114;
  --color-dark: #262626;
  --color-text: #333438;
  --color-muted: #6e6e6e;
  --color-line: #e5e2e2;
  --color-surface: #f7f6f5;
  --color-white: #ffffff;
  --radius: 5px;
  --shell: min(1400px, calc(100% - 64px));
  --shadow-soft: 0 24px 70px rgb(22 17 18 / 8%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  max-width: 100%;
  color: var(--color-ink);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 strong,
h2 strong {
  color: var(--color-red);
  font-weight: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--color-white);
  background: var(--color-red);
  border-radius: var(--radius);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgb(0 0 0 / 6%);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 160px;
  height: auto;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  font-weight: 750;
  text-decoration: none;
}

.header-contact i {
  color: var(--color-red);
  font-size: 1.3rem;
}

.prepage-hero {
  position: relative;
  min-height: 760px;
  padding-top: 100px;
  isolation: isolate;
  overflow: hidden;
  background: #f4f7f8;
}

.prepage-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../img/hero-immobilien.webp") center right / cover no-repeat;
}

.prepage-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 98%) 28%, rgb(255 255 255 / 86%) 46%, rgb(255 255 255 / 22%) 72%, transparent 100%),
    linear-gradient(0deg, #fff 0%, transparent 19%);
}

.prepage-hero__inner {
  min-height: 660px;
  display: flex;
  align-items: center;
  padding-block: 72px 110px;
}

.prepage-hero__content {
  width: min(700px, 56%);
  min-width: 0;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--color-red);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.prepage-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prepage-hero .eyebrow span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

.prepage-hero h1 {
  max-width: 680px;
  margin-bottom: 26px;
  font-size: clamp(3.5rem, 5.8vw, 6.5rem);
  text-wrap: balance;
}

.heading-line {
  width: 82px;
  height: 3px;
  margin-bottom: 28px;
  background: var(--color-red);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--color-text);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
}

.hero-lead b {
  color: var(--color-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button i {
  font-size: 1.2rem;
}

.button--primary {
  color: var(--color-white);
  background: var(--color-red);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--color-red-dark);
}

.button--dark {
  color: var(--color-white);
  background: var(--color-dark);
}

.button--dark:hover,
.button--dark:focus-visible {
  background: #111;
}

.button--light {
  color: var(--color-red);
  background: var(--color-white);
}

.button--light:hover,
.button--light:focus-visible {
  background: var(--color-red-soft);
}

.button--outline-light {
  color: var(--color-white);
  border-color: rgb(255 255 255 / 58%);
  background: transparent;
}

.button--outline-light:hover,
.button--outline-light:focus-visible {
  border-color: var(--color-white);
  background: rgb(255 255 255 / 10%);
}

.button:focus-visible,
.header-contact:focus-visible,
.location-card a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgb(149 13 29 / 30%);
  outline-offset: 4px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 25px 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero-note i {
  color: var(--color-red);
}

.services {
  position: relative;
  z-index: 2;
  padding: 95px 0 110px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 50px;
}

.section-heading h2,
.locations__intro h2 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 4.3vw, 5rem);
  text-wrap: balance;
}

.section-heading > p:last-child,
.locations__intro > p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--color-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-white);
}

.service-card {
  min-width: 0;
  min-height: 300px;
  padding: 38px 30px;
  border-right: 1px solid var(--color-line);
}

.service-card:last-child {
  border-right: 0;
}

.icon-circle {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-bottom: 30px;
  color: var(--color-red);
  border: 1px solid #efd7dc;
  border-radius: 50%;
  background: var(--color-red-soft);
}

.icon-circle i {
  font-size: 1.85rem;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}

.service-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.locations {
  padding: 110px 0;
  background: var(--color-surface);
}

.locations__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(55px, 8vw, 130px);
}

.locations__intro {
  min-width: 0;
  position: sticky;
  top: 40px;
}

.location-grid {
  display: grid;
  gap: 20px;
}

.location-card {
  min-width: 0;
  min-height: 250px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding: 38px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-white);
}

.location-card .icon-circle {
  margin: 0;
}

.location-card__label {
  margin-bottom: 6px;
  color: var(--color-red);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.location-card h3 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.location-card address {
  margin-bottom: 24px;
  color: var(--color-muted);
  font-style: normal;
}

.location-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-red);
  font-weight: 750;
  text-decoration: none;
}

.contact-band {
  color: var(--color-white);
  background: var(--color-red);
}

.contact-band__inner {
  min-height: 220px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding-block: 40px;
}

.contact-band__icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  background: rgb(255 255 255 / 9%);
}

.contact-band__icon i {
  font-size: 2rem;
}

.contact-band .eyebrow {
  margin-bottom: 8px;
  color: rgb(255 255 255 / 72%);
}

.contact-band h2 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

.contact-band__actions {
  display: flex;
  gap: 12px;
}

.site-footer {
  color: #cacaca;
  background: var(--color-dark);
}

.site-footer__inner {
  min-height: 160px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  padding-block: 35px;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

.site-footer b {
  color: var(--color-white);
}

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

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

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

@media (max-width: 1199px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-card {
    border-bottom: 1px solid var(--color-line);
  }

  .service-card:nth-child(3) {
    border-right: 0;
  }

  .service-card:nth-child(n + 4) {
    border-bottom: 0;
  }

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

  .contact-band__actions {
    grid-column: 2;
  }
}

@media (max-width: 959px) {
  :root {
    --shell: min(100% - 40px, 820px);
  }

  .prepage-hero {
    min-height: 700px;
  }

  .prepage-hero__content {
    width: min(640px, 78%);
  }

  .prepage-hero h1,
  .section-heading h2,
  .locations__intro h2 {
    font-size: clamp(2.65rem, 8vw, 4.4rem);
    line-height: 1.06;
  }

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

  .service-card:nth-child(3) {
    border-right: 1px solid var(--color-line);
  }

  .service-card:nth-child(even) {
    border-right: 0;
  }

  .service-card:nth-child(n + 4) {
    border-bottom: 1px solid var(--color-line);
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .locations__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .locations__intro {
    position: static;
  }

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

  .location-card {
    grid-template-columns: 1fr;
  }

  .contact-band__actions {
    flex-wrap: wrap;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer nav {
    justify-content: flex-end;
  }

  .site-footer p:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 639px) {
  :root {
    --shell: calc(100% - 32px);
  }

  body {
    font-size: 16px;
  }

  .site-header__inner {
    min-height: 82px;
  }

  .brand img {
    width: 128px;
  }

  .header-contact span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header-contact {
    width: 44px;
    height: 44px;
    justify-content: center;
    border: 1px solid #efd7dc;
    border-radius: 50%;
    background: var(--color-red-soft);
  }

  .prepage-hero {
    min-height: 760px;
    padding-top: 82px;
  }

  .prepage-hero__media {
    background-position: 65% center;
  }

  .prepage-hero::before {
    background:
      linear-gradient(90deg, rgb(255 255 255 / 98%) 0%, rgb(255 255 255 / 90%) 74%, rgb(255 255 255 / 38%) 100%),
      linear-gradient(0deg, #fff 0%, transparent 25%);
  }

  .prepage-hero__inner {
    min-height: 678px;
    align-items: flex-start;
    padding-block: 70px 100px;
  }

  .prepage-hero__content {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 0.73rem;
  }

  .prepage-hero h1,
  .section-heading h2,
  .locations__intro h2 {
    font-size: clamp(2.35rem, 12vw, 3.15rem);
    line-height: 1.07;
  }

  .hero-actions,
  .contact-band__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .services,
  .locations {
    padding-block: 78px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .service-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(3),
  .service-card:nth-child(even),
  .service-card:nth-child(n + 4) {
    min-height: auto;
    padding: 30px 26px;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .service-card:last-child {
    grid-column: auto;
    border-bottom: 0;
  }

  .service-card .icon-circle {
    margin-bottom: 20px;
  }

  .location-card {
    min-height: auto;
    padding: 30px 26px;
  }

  .contact-band__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 55px;
  }

  .contact-band__icon {
    width: 62px;
    height: 62px;
  }

  .contact-band__actions {
    grid-column: auto;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 45px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer p:last-child {
    grid-column: auto;
  }
}

.legal-hero {
  padding: 150px 0 60px;
  background: var(--color-surface);
}

.legal-hero .eyebrow {
  margin-bottom: 18px;
}

.legal-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.legal-page {
  padding: 70px 0 120px;
}

.legal-page__inner {
  max-width: 820px;
}

.legal-page section {
  padding-top: 44px;
  margin-top: 44px;
  border-top: 1px solid var(--color-line);
}

.legal-page section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.legal-page h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal-page h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.legal-page p,
.legal-page li {
  margin-bottom: 16px;
  color: var(--color-text);
}

.legal-page ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--color-red);
  word-break: break-word;
}

.legal-page strong {
  color: var(--color-ink);
}

.legal-page h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.legal-page h2:not(:first-of-type) {
  padding-top: 44px;
  margin-top: 44px;
  border-top: 1px solid var(--color-line);
}

.legal-page h3:not(:first-of-type) {
  margin-top: 30px;
}

.legal-page h4:not(:first-of-type) {
  margin-top: 22px;
}

.placeholder {
  padding: 2px 6px;
  color: var(--color-red-dark);
  border: 1px dashed rgb(149 13 29 / 45%);
  border-radius: 4px;
  background: var(--color-red-soft);
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 639px) {
  .legal-hero {
    padding: 118px 0 44px;
  }

  .legal-page {
    padding: 50px 0 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
