* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --navy: #092d65;
  --ink: #12243e;
  --green: #16792e;
  --line: #dce5f0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}

body {
  margin: 0;
}

.frame {
  width: 100%;
  max-width: 1536px;
  margin-inline: auto;
}

a {
  color: var(--navy);
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #16873b;
  outline-offset: 3px;
}

.hero a:focus-visible, .home-contact a:focus-visible, .site-footer a:focus-visible {
  outline-color: white;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  background: white;
  transform: translateY(-160%);
}

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

.site-header {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) auto minmax(max-content, .62fr);
  align-items: center;
  gap: clamp(.9rem, 2vw, 2.25rem);
  min-height: 7.625rem;
  padding: 0 4.2%;
}

.logo {
  justify-self: start;
}

.logo img {
  display: block;
  width: clamp(12.5rem, 23vw, 22.19rem);
  max-width: 100%;
  height: auto;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(6, auto);
  align-items: center;
  justify-content: space-between;
  gap: clamp(.75rem, 2.1vw, 2.25rem);
}

.site-nav a {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 44px;
  padding-inline: .1rem;
  color: #081e3d;
  font-size: clamp(.94rem, 1.2vw, 1.125rem);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"]::after, .site-nav a:hover::after {
  position: absolute;
  inset: auto 0 1px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  content: "";
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #0c6524;
}

.call-button {
  justify-self: end;
  padding-inline: clamp(.7rem, 1.57vw, 1.5rem);
  border-radius: 1rem;
  background: var(--navy);
  font-size: clamp(.94rem, 1.25vw, 1.1875rem);
  white-space: nowrap;
}

.call-button:hover {
  background: #174678;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(20rem, 28.2vw, 27.0625rem);
  overflow: hidden;
  color: white;
  background: #043363;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("firmabil.png") center 48% / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 33, 73, .35), rgba(1, 33, 73, .47) 39%, transparent 57%);
  content: "";
}

.hero-copy {
  width: 47%;
  padding: clamp(1.4rem, 2.2vw, 2.3rem) .75rem clamp(1.4rem, 2.2vw, 2.3rem) 5.1%;
}

.hero h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 3.55vw, 3.375rem);
  line-height: 1.07;
  letter-spacing: -.02em;
}

.hero-subtitle {
  margin: 0 0 .9rem;
  font-size: clamp(1.25rem, 2.25vw, 2.125rem);
  font-weight: 700;
  line-height: 1.18;
}

.hero-description {
  max-width: 36ch;
  margin: 0 0 1.4rem;
  font-size: clamp(1rem, 1.4vw, 1.3125rem);
  line-height: 1.43;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.15rem;
}

.secondary {
  border-color: var(--navy);
  background: #fff;
  color: var(--navy);
}

.secondary:hover {
  background: #e8f0fc;
}

.outline {
  border-color: white;
  background: transparent;
  color: white;
}

.outline:hover {
  background: rgba(255, 255, 255, .18);
}

.lower {
  width: min(100% - 8.4%, 1450px);
  margin: clamp(1.25rem, 2.1vw, 2rem) auto clamp(1.75rem, 3.58vw, 3.45rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.25rem);
}

.card {
  min-width: 0;
  padding: clamp(1rem, 1.8vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #f9fbfd;
}

.card h2 {
  margin: 0 0 .5rem;
  color: var(--navy);
  font-size: clamp(1.16rem, 1.65vw, 1.55rem);
  line-height: 1.18;
}

.card p {
  margin: 0;
}

.home-services {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .7rem .75rem 1rem;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.service-card img {
  display: block;
  width: 3.75rem;
  height: auto;
  mix-blend-mode: multiply;
}

.service-card h2 {
  margin: 0;
  font-size: clamp(1.02rem, 1.42vw, 1.35rem);
}

.service-card:hover {
  background: #edf4fd;
  border-color: #9bb4d5;
}

.home-contact {
  overflow: hidden;
  margin-top: clamp(1rem, 3vw, 3.1rem);
  border-radius: 1rem;
  background: var(--navy);
  background-image: url("kontaktfoto.jpg");
  background-position: right center;
  background-size: 38% 100%;
  background-repeat: no-repeat;
  color: white;
}

.home-contact-copy {
  padding: clamp(1.1rem, 2.2vw, 2.2rem) clamp(1.1rem, 3.2vw, 3.1rem);
  background: linear-gradient(90deg, #092d65 45%, rgba(9, 45, 101, .86) 57%, transparent 74%);
}

.home-contact h2 {
  margin: 0 0 .15rem;
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  line-height: 1.2;
}

.home-contact p {
  max-width: 61%;
  margin: 0 0 .8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  align-items: start;
  gap: clamp(.9rem, 1.8vw, 1.5rem);
}

address {
  font-style: normal;
  overflow-wrap: anywhere;
}

.card address p + p {
  margin-top: .5rem;
}

.contact-form {
  display: grid;
  gap: .7rem;
}

.form-field {
  display: grid;
  gap: .28rem;
  min-width: 0;
  font-weight: 700;
}

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: .6rem .72rem;
  border: 1px solid #9daec3;
  border-radius: .45rem;
  background: white;
  color: var(--ink);
  font: 1rem / 1.4 Arial, Helvetica, sans-serif;
}

.form-field textarea {
  min-height: 6.8rem;
  resize: vertical;
}

.consent {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: .6rem;
  align-items: start;
  margin-top: .25rem;
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin: .13rem 0 0;
  accent-color: var(--green);
}

.contact-form .button {
  justify-self: start;
}

.card .form-note {
  color: #42566f;
  font-size: .9rem;
}

.site-footer {
  padding: 1.35rem 4.2%;
  background: var(--navy);
  color: white;
  text-align: center;
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem 1.3rem;
  margin: 0;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: .1rem 1rem;
    min-height: 0;
    padding-block: .55rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: .3rem .6rem;
  }

  .site-nav a {
    justify-items: center;
    padding-inline: .4rem;
  }

  .home-contact {
    background-size: auto 100%;
  }
}

@media (min-width: 681px) and (max-width: 1050px) {
  .hero {
    min-height: clamp(17.5rem, 33vw, 21rem);
  }

  .hero::before {
    background-position: right center;
  }

  .hero-copy {
    width: 49%;
  }

  .hero-description {
    margin-bottom: 1.05rem;
  }

  .hero .actions {
    gap: .55rem;
  }

  .hero .button {
    padding-inline: .8rem;
  }
}

@media (max-width: 680px) {
  .hero::after, .hero::before {
    inset: auto 0 0;
    height: clamp(9rem, 35vw, 15rem);
  }

  .hero::before {
    background-position: right center;
  }

  .hero::after {
    background: linear-gradient(#043363, transparent 27%);
  }

  .hero-copy {
    width: 100%;
    padding: 1.35rem 5.1% calc(clamp(9rem, 35vw, 15rem) + .2rem);
  }

  .hero-description {
    margin-bottom: 1rem;
  }

  .hero .button {
    padding-inline: .85rem;
  }

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

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

  .home-contact {
    padding-bottom: clamp(7.5rem, 30vw, 12rem);
    background-position: center bottom;
    background-size: 100% auto;
  }

  .home-contact-copy {
    background: var(--navy);
  }

  .home-contact p {
    max-width: none;
  }
}

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

  .site-header {
    gap: .3rem .55rem;
  }

  .logo img {
    width: min(100%, 12rem);
  }
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .8rem;
  margin-top: .75rem;
}

.contact-options a, .contact-options button {
  min-height: 44px;
}

.contact-options a {
  align-content: center;
}

.contact-options button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.copy-status:empty {
  display: none;
}
