@font-face {
  font-family: "IWZ";
  src: url("../fonts/font1.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IWZ";
  src: url("../fonts/font2.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00284e;
  --navy-dark: #001b3d;
  --navy-overlay: rgba(0, 40, 78, 0.9);
  --ink: #213246;
  --muted: #5a6672;
  --gray: #cfcfcf;
  --soft: #f3f3f3;
  --yellow: #f0cf00;
  --header-h: 122px;
  --content: 1055px;
  --wide: 1260px;
  font-family: "IWZ", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}

p {
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22);
}

.header-inner {
  width: min(var(--content), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(190px, 13vw, 290px);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}

.brand img {
  width: 150px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-top: 49px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--yellow);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: #fff;
}

.menu-toggle::before,
.menu-toggle::after {
  content: none;
}

.hero {
  position: relative;
  min-height: 560px;
  height: min(730px, calc(100vh - 84px));
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  z-index: 1;
}

.hero-fallback {
  z-index: 0;
  background: url("../images/branding/hero-poster.avif") center / cover no-repeat;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 584px;
}

.about-copy {
  background: var(--gray);
  display: flex;
  justify-content: flex-end;
}

.about-inner {
  width: min(430px, calc(100% - 48px));
  margin: 92px 115px 70px 0;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(35px, 3vw, 54px);
  font-weight: 900;
  letter-spacing: 0;
}

h1 span,
h2 span {
  font-weight: 400;
}

.accent {
  display: block;
  width: 116px;
  height: 9px;
  margin: 28px 0 43px;
  background: var(--yellow);
}

.section-heading {
  text-align: center;
}

.section-heading .accent {
  margin: 26px auto 48px;
}

.about p {
  margin: 0 0 31px;
  color: #3d4652;
  font-weight: 500;
}

.about-image {
  background: url("../images/about/haus.avif") center / cover no-repeat;
  min-height: 584px;
}

.locations {
  padding: 96px 24px 104px;
  background: #fff;
}

.locations-map {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
  min-height: 560px;
}

.locations-list {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 255px;
  font-style: normal;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.23;
}

.location-entry {
  display: block;
  margin-bottom: 17px;
}

.locations-list strong {
  display: block;
  text-decoration: underline;
  font-weight: 900;
  line-height: 1.12;
}

.austria-map {
  width: min(1030px, 96%);
  display: block;
  margin: 98px auto 0;
}

.services {
  padding: 98px 24px 100px;
  background: #fff;
}

.service-grid {
  width: min(940px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 92px 22px;
}

.service-card {
  border: 0;
  padding: 0;
  background: var(--soft);
  color: #2e4c69;
  cursor: pointer;
  display: grid;
  grid-template-rows: 212px 94px;
  min-height: 306px;
  text-align: center;
  overflow: hidden;
}

.service-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.service-image {
  display: block;
  background-image: linear-gradient(rgba(52, 66, 122, 0.68), rgba(52, 66, 122, 0.68)), var(--service-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: transform 180ms ease;
  filter: grayscale(0.55) saturate(0.55);
}

.service-card-1 { --service-image: url("../images/services/bew-sicherung.avif"); }
.service-card-2 { --service-image: url("../images/services/sachelementar.avif"); }
.service-card-3 { --service-image: url("../images/services/haftpflicht.avif"); }
.service-card-4 { --service-image: url("../images/services/immo.avif"); }
.service-card-5 { --service-image: url("../images/services/motorsport.avif"); }
.service-card-6 { --service-image: url("../images/services/bienenwirtchaft.avif"); }

.service-label {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-weight: 900;
  line-height: 1.16;
}

.contact {
  padding: 94px 0 0;
  background: #fff;
}

.map-embed {
  width: 100%;
  height: 350px;
  background: #eef1f3;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-grid {
  width: min(880px, calc(100% - 48px));
  margin: 47px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 112px;
  align-items: start;
}

.contact h3 {
  margin: 0 0 31px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.2;
}

.contact-form label {
  display: block;
  color: #243f5f;
  font-weight: 900;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 2px solid #173d64;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 0 8px;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--yellow);
}

.contact-form button,
.modal-button {
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 14px 36px;
  font-weight: 800;
  cursor: pointer;
}

.contact-form button:focus-visible,
.modal-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.questions {
  margin-top: 86px;
}

.questions p,
.contact-details p {
  color: #263f5c;
  font-weight: 700;
}

.contact-details a,
.questions a {
  color: #243f5f;
  font-weight: 900;
}

.contact-details a[href^="tel:"],
.questions a[href^="tel:"] {
  white-space: nowrap;
}

.badges {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 110px;
}

.badge {
  display: inline-block;
  width: 118px;
  height: 110px;
  background-image: url("../images/impressum/impressum.png");
  background-repeat: no-repeat;
  background-size: 752px 434px;
}

.badge-bm {
  background-position: -78px -296px;
}

.badge-sv {
  background-position: -238px -296px;
}

.site-footer {
  width: min(900px, calc(100% - 48px));
  min-height: 104px;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #777;
  font-size: 18px;
}

.site-footer > a {
  justify-self: center;
  grid-column: 2;
  text-decoration: none;
}

.site-footer > a:hover,
.site-footer > a:focus-visible {
  color: var(--navy);
}

.social-links {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 12px;
}

.social-links img {
  width: 28px;
  height: 28px;
  display: block;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  background: var(--navy-overlay);
  color: #fff;
  overflow-y: auto;
}

.service-modal[hidden] {
  display: none;
}

.modal-close {
  position: fixed;
  top: 34px;
  right: 42px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 4px;
  width: 3px;
  height: 36px;
  background: #fff;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-content {
  width: min(760px, 100%);
  min-height: 360px;
}

.modal-content h2 {
  color: #fff;
  text-transform: none;
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 500;
  margin-bottom: 24px;
}

.modal-body {
  max-width: 700px;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.42;
  font-weight: 600;
}

.modal-body ul {
  margin: 0 0 28px 24px;
  padding: 0;
}

.modal-body p {
  margin: 0 0 18px;
}

.modal-body strong {
  display: block;
  margin-top: 18px;
}

.partner-logo {
  width: 126px;
  display: block;
  margin-top: 14px;
}

.modal-button {
  display: block;
  margin: 44px auto 0;
}

.impressum-page {
  background: #fff;
}

.impressum-main {
  min-height: calc(100vh - var(--header-h) - 146px);
  padding: calc(var(--header-h) + 68px) 24px 50px;
}

.impressum-card {
  width: min(560px, calc(100% - 48px));
  margin: 0 auto;
  color: #00142c;
  font-size: 16px;
}

.impressum-card p {
  margin: 0 0 24px;
}

.impressum-card a {
  color: #001f4e;
}

.impressum-badges {
  margin-top: 16px;
}

.back-link {
  display: inline-block;
  margin-top: 34px;
}

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

  .hero-video {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 82px;
  }

  .header-inner {
    width: calc(100% - 28px);
  }

  .brand {
    margin-top: 5px;
  }

  .brand img {
    width: 118px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 80;
    left: min(calc(100vw - 58px), 332px);
    right: auto;
    top: 19px;
    transform: none;
    background: linear-gradient(#fff, #fff) center / 26px 2px no-repeat;
  }

  .menu-toggle::before,
  .menu-toggle::after {
    content: "";
    display: block;
    position: absolute;
    left: 9px;
    width: 26px;
    height: 2px;
    background: #fff;
  }

  .menu-toggle::before {
    top: 13px;
  }

  .menu-toggle::after {
    bottom: 13px;
  }

  .menu-toggle span {
    display: none;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
  }

  .hero {
    min-height: 430px;
    height: 60vh;
  }

  .about,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-copy {
    justify-content: center;
  }

  .about-inner {
    width: min(560px, calc(100% - 40px));
    margin: 62px 0 38px;
  }

  .about-image {
    min-height: 360px;
  }

  .locations,
  .services {
    padding: 70px 20px;
  }

  .locations-map {
    width: min(620px, 100%);
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .locations-list {
    position: static;
    order: 1;
    margin: 0 auto 30px;
    width: min(300px, 100%);
    font-size: 18px;
  }

  .austria-map {
    order: 2;
    width: 100%;
    margin-top: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
    width: min(330px, 100%);
    gap: 34px;
  }

  .service-card {
    grid-template-rows: 210px 86px;
  }

  .contact-grid {
    width: min(560px, calc(100% - 40px));
    gap: 56px;
  }

  .badges {
    margin-top: 40px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 0;
  }

  .site-footer > a,
  .social-links {
    grid-column: auto;
    justify-self: center;
  }

  .service-modal {
    align-items: flex-start;
    padding: 84px 22px 42px;
  }

  .modal-close {
    top: 20px;
    right: 18px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  h1,
  h2 {
    font-size: 34px;
  }

  .accent {
    width: 92px;
    height: 7px;
    margin: 22px 0 30px;
  }

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

  .hero {
    min-height: 390px;
  }

  .about-inner {
    width: calc(100% - 32px);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .map-embed {
    height: 300px;
  }

  .contact {
    padding-top: 66px;
  }

  .contact h3 {
    font-size: 24px;
  }

  .badge {
    width: 96px;
    height: 90px;
    background-size: 612px 353px;
  }

  .badge-bm {
    background-position: -64px -240px;
  }

  .badge-sv {
    background-position: -194px -240px;
  }

  .impressum-main {
    padding: calc(var(--header-h) + 42px) 18px 30px;
  }

  .impressum-card {
    width: 100%;
  }
}
