:root {
  --ink: #17212b;
  --muted: #5a6673;
  --line: #d9e0e7;
  --paper: #f7f9fb;
  --white: #ffffff;
  --blue: #1769aa;
  --blue-dark: #0d436f;
  --copper: #b86f38;
  --green: #2d7c64;
  --shadow: 0 24px 70px rgba(23, 33, 43, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  min-height: 88px;
  padding: 10px 12px 10px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(23, 33, 43, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex: 0 0 188px;
  width: 188px;
  height: 72px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--white);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--blue-dark);
}

.header-cta {
  padding: 12px 16px;
  border-radius: 7px;
  color: var(--white);
  background: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("assets/hero-elektrotechnik-knx.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 20, 32, 0.94) 0%, rgba(8, 20, 32, 0.74) 43%, rgba(8, 20, 32, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 20, 32, 0.28), rgba(8, 20, 32, 0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 760px;
  flex-direction: column;
  justify-content: center;
  padding: 132px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: #85c7f2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  width: min(780px, 100%);
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 5.7rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy {
  width: min(640px, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.button.secondary.light {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-facts span,
.tag-list span,
.audience-grid span {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 650;
}

.trust-band {
  background: var(--ink);
  color: var(--white);
}

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

.trust-grid div {
  padding: 28px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-grid strong,
.trust-grid span,
.site-footer strong,
.site-footer span {
  display: block;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.section {
  padding: 104px 0;
}

.intro-section {
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 64px;
  align-items: start;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1fr);
}

.split > p,
.knx-panel p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-kicker {
  color: var(--blue);
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 42px;
}

.services {
  background:
    linear-gradient(180deg, var(--paper), #eef3f7);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 390px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.07);
}

.service-card .icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 7px;
  color: var(--blue-dark);
  background: #e8f3fb;
  font-weight: 850;
}

.service-card p,
.process-list p,
.feature-list p {
  color: var(--muted);
}

.service-card ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.service-card li + li {
  margin-top: 8px;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--copper);
}

.knx-section {
  background: var(--white);
}

.knx-panel {
  padding: 36px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #183d52);
  box-shadow: var(--shadow);
}

.knx-panel .section-kicker,
.knx-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

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

.feature-list div {
  padding: 26px;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--paper);
}

.process {
  background: #eef3f7;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
}

.process-list span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--copper);
  font-weight: 850;
}

.audiences {
  background: var(--white);
}

.service-area {
  background: var(--white);
}

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.area-grid p {
  color: var(--muted);
  font-size: 1.08rem;
}

.city-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 105, 170, 0.08), rgba(45, 124, 100, 0.08)),
    var(--paper);
  box-shadow: 0 14px 36px rgba(23, 33, 43, 0.08);
}

.city-panel span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  text-align: center;
}

.audience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audience-grid span {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.contact-section {
  padding: 104px 0;
  color: var(--white);
  background: linear-gradient(135deg, #10202d, #183d52 54%, #245f78);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 64px;
  align-items: center;
}

.contact-copy .section-kicker,
.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-card > a {
  display: block;
  margin-top: 12px;
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 11px;
  margin-top: 26px;
}

.contact-form label,
.compact-form label {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.compact-form input,
.compact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  padding: 12px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
}

.contact-form textarea,
.compact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.contact-form select option {
  color: var(--ink);
}

.contact-form .button {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
}

.compact-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.compact-form label {
  color: var(--ink);
}

.compact-form input,
.compact-form textarea {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.compact-form .button {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.landing-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  color: var(--white);
}

.landing-hero .hero-content {
  min-height: 700px;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 54px;
  align-items: start;
}

.landing-card {
  position: sticky;
  top: 110px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(23, 33, 43, 0.08);
}

.landing-card h3 {
  font-size: 1.45rem;
}

.landing-card p,
.landing-copy p,
.landing-copy li {
  color: var(--muted);
}

.landing-copy h2 {
  margin-top: 20px;
}

.landing-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.landing-list li {
  padding: 20px;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--paper);
}

.landing-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.landing-cta {
  background: var(--white);
}

.mini-checks {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.mini-checks li {
  position: relative;
  padding-left: 24px;
}

.mini-checks li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.site-footer {
  padding: 30px 0;
  background: var(--white);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.legal-page {
  background: var(--white);
}

.legal-hero {
  padding: 150px 0 54px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #183d52);
}

.legal-content {
  max-width: 860px;
  padding: 64px 0 96px;
}

.legal-content h2 {
  margin-top: 42px;
  font-size: 1.65rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-header.nav-open {
    align-items: start;
  }

  .site-header.nav-open .site-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    width: 100%;
    padding-top: 8px;
  }

  .site-header.nav-open .site-nav a {
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }

  .trust-grid,
  .card-grid,
  .process-list,
  .split,
  .split.reverse,
  .contact-grid,
  .landing-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .landing-card {
    position: static;
  }

  .landing-grid .landing-card {
    order: -1;
  }

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

  .trust-grid div {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand-logo {
    flex-basis: 142px;
    width: 142px;
    height: 62px;
  }

  .hero,
  .hero-content,
  .landing-hero,
  .landing-hero .hero-content {
    min-height: 720px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 20, 32, 0.96), rgba(8, 20, 32, 0.72)),
      linear-gradient(180deg, rgba(8, 20, 32, 0.18), rgba(8, 20, 32, 0.92));
  }

  .section,
  .contact-section {
    padding: 72px 0;
  }

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

  .service-card,
  .process-list li {
    min-height: auto;
  }

  .knx-panel,
  .contact-card {
    padding: 26px;
  }

  .city-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
