:root {
  --ink: #132238;
  --night: #101822;
  --night-2: #172232;
  --muted: #5a6778;
  --line: #dce5ec;
  --soft: #f5f8f6;
  --paper: #ffffff;
  --cream: #fbf8f1;
  --blue: #0c5fa8;
  --blue-dark: #0a3158;
  --green: #4c8b6b;
  --gold: #d99b48;
  --gold-bright: #d99135;
  --shadow: 0 18px 45px rgba(19, 34, 56, 0.09);
  --radius: 4px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 10;
  background: var(--blue-dark);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(19, 34, 56, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 96px;
  height: auto;
  background: transparent;
  padding: 0;
}

.brand > span {
  display: grid;
  gap: 1px;
}

.brand > span span:first-child {
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: 0.16em;
}

.brand > span span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a {
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus {
  color: var(--gold-bright);
}

.nav-login {
  color: var(--blue-dark);
  font-weight: 800;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #111;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(12, 95, 168, 0.18);
}

.button.secondary {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--line);
  box-shadow: none;
}

.button.subtle {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 1.3rem;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 82%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: calc(92vh - 80px);
  gap: 48px;
  padding: 82px 0 56px;
}

.eyebrow {
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  margin-top: 14px;
  font-size: clamp(2.35rem, 4.4vw, 5.1rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(1.85rem, 2.8vw, 3rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero p {
  color: var(--muted);
}

.lead {
  margin-top: 22px;
  max-width: 720px;
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.trust-row li {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.76);
  padding: 8px 12px;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52vw;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background: url("../img/fmfk-hero-objektkontrolle-tablet-schleswig-holstein.png") center / cover no-repeat;
  box-shadow: none;
  opacity: 0.92;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f7faf8 0%, rgba(247, 250, 248, 0.54) 38%, rgba(247, 250, 248, 0.08) 100%);
}

.visual-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: none;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.visual-card strong {
  color: var(--blue-dark);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.premium-grid {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(12, 95, 168, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 95, 168, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 940px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.stat {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--gold-bright);
  font-size: 2.4rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.image-card {
  overflow: hidden;
  padding: 0;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-card div {
  padding: 20px;
}

.detail-copy {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.detail-copy p + p {
  margin-top: 0;
}

.section > .container:has(> .detail-copy + .detail-gallery) {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.detail-gallery img,
.wide-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.wide-image {
  margin-top: 34px;
}

.content-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-list li {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 16px;
  color: var(--muted);
}

.process-grid {
  counter-reset: none;
}

.process-card {
  position: relative;
}

.service-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
}

.section {
  padding: 78px 0;
}

.section,
.card[id] {
  scroll-margin-top: 104px;
}

.section.soft {
  background: var(--soft);
}

.section.cream {
  background: var(--cream);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 790px;
  margin-bottom: 34px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(19, 34, 56, 0.05);
}

.card .icon {
  display: inline-flex;
  min-width: 42px;
  width: fit-content;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: #e9f2f8;
  color: var(--blue-dark);
  font-weight: 900;
  padding: 0 12px;
}

.card h3 + p {
  margin-top: 10px;
}

.card h2 {
  font-size: 1.32rem;
  line-height: 1.16;
}

.card h2 + p {
  margin-top: 10px;
}

.pillar-card {
  display: grid;
  min-height: 245px;
  align-content: start;
}

.service-image {
  width: calc(100% + 44px);
  max-width: none;
  margin: -22px -22px 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.pillar-card .button {
  align-self: end;
  margin-top: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 18px;
}

.feature p {
  margin-top: 6px;
}

.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.region-list a,
.region-list span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px;
  color: var(--blue-dark);
  font-weight: 700;
}

.form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.check-label {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.35;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.fineprint {
  font-size: 0.9rem;
}

.article-body {
  display: grid;
  gap: 22px;
  max-width: 820px;
}

.article-body h2 {
  margin-top: 18px;
}

.article-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.article-body li::marker {
  color: var(--gold-bright);
}

.article-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  color: var(--blue);
  font-weight: 750;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 92px 0 98px;
  background-color: #f7faf8;
  background-image:
    linear-gradient(rgba(12, 95, 168, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 95, 168, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f7faf8 0%, #fff 86%);
  background-size: 56px 56px, 56px 56px, auto;
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 56vw;
  background: var(--page-hero-image, url("../img/fmfk-hero-objektkontrolle-tablet-schleswig-holstein.png")) center / cover no-repeat;
  opacity: 0.86;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 12%, #000 34%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 12%, #000 34%, #000 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #f7faf8 0%, rgba(247, 250, 248, 0.86) 38%, rgba(247, 250, 248, 0.48) 66%, rgba(247, 250, 248, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.32) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 820px;
}

.hero-leistungen {
  --page-hero-image: url("../img/services/fmfk-objektpflege-objektkontrolle-tablet.png");
}

.hero-branchen {
  --page-hero-image: url("../img/hss-reference/servicewelt-objektkontrolle-foyer.webp");
}

.hero-wissen {
  --page-hero-image: url("../img/services/fmfk-dguv-v3-elektropruefung-dokumentation.png");
}

.hero-regionen {
  --page-hero-image: url("../img/old-fmfk/firma-1024x576.webp");
}

.hero-trust {
  --page-hero-image: url("../img/hss-reference/servicewelt-einsatzplanung-qualitaet.webp");
}

.hero-ueber {
  --page-hero-image: url("../img/old-fmfk/firma-scaled.webp");
}

.hero-karriere {
  --page-hero-image: url("../img/old-fmfk/FMFK-Handwerker.webp");
}

@media (max-width: 760px) {
  .page-hero {
    min-height: 520px;
    padding: 58px 0 64px;
  }

  .page-hero::after {
    inset: auto 0 0 0;
    width: 100%;
    height: 55%;
    opacity: 0.42;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 32%, #000 100%);
  }

  .page-hero::before {
    background: linear-gradient(180deg, #f7faf8 0%, rgba(247, 250, 248, 0.96) 54%, rgba(247, 250, 248, 0.58) 100%);
  }
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 20px;
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 800;
}

.faq p {
  margin-top: 12px;
}

.site-footer {
  padding: 64px 0 28px;
  background: #07111d;
  color: #fff;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.25fr 2fr;
  gap: 54px;
  align-items: start;
}

.footer-brand p {
  max-width: 470px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.75;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  width: 92px;
  height: auto;
  padding: 6px;
  background: #fff;
}

.footer-logo span {
  display: grid;
  gap: 2px;
}

.footer-logo strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
}

.footer-logo small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  font-weight: 650;
}

.footer-contact {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.footer-contact a,
.footer-contact > span {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.footer-contact span span,
.footer-contact a span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.footer-column h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  line-height: 1.35;
  transition: color 0.18s ease;
}

.footer-column a + a {
  margin-top: 11px;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--gold-bright);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--gold-bright);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 80px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow);
  }

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

  .hero-grid,
  .split,
  .section > .container:has(> .detail-copy + .detail-gallery),
  .footer-layout,
  .footer-bottom,
  .service-cta {
    grid-template-columns: 1fr;
  }

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

  .grid.six,
  .grid.four,
  .grid.three,
  .detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero-grid {
    padding-top: 46px;
    min-height: 760px;
  }

  .visual {
    inset: 0;
    width: 100%;
    opacity: 0.42;
  }

  .visual::before {
    background: linear-gradient(180deg, rgba(247, 250, 248, 0.72), #fff 82%);
  }

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

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-bottom: 36px;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 56px 0;
  }

  .grid.six,
  .grid.four,
  .grid.three,
  .form-grid,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }
}
