/* =========================================================
   HOFMANN Technik & Service
   Farben aus deinem Logo:
   Dunkelblau: #183B5B
   Schwarz:    #17191B
   Hintergrund: #F7F6F2
   ========================================================= */

:root {
  --blue: #183B5B;
  --blue-light: #315B7D;
  --black: #17191B;
  --background: #F7F6F2;
  --white: #FFFFFF;
  --line: #D9DEE2;
  --muted: #59616A;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--background);
  line-height: 1.6;
}

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

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

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

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

.brand {
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 17px;
}

.brand span {
  display: block;
  margin-top: -2px;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 700;
}

.nav-button,
.button {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 11px 22px;
  border-radius: 4px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.nav-button:hover,
.button:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

/* ---------- Typography ---------- */

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.12;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -2px;
}

h1 span {
  color: var(--blue);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -1px;
}

h3 {
  margin-bottom: 7px;
  font-size: 21px;
}

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

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 70px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 70px;
}

.lead {
  max-width: 650px;
  font-size: 19px;
  margin: 0 0 30px;
}

.hero-logo {
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(24, 59, 91, .08);
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */

.section {
  padding: 105px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 55px;
}

.section-heading > p:last-child {
  font-size: 18px;
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(24, 59, 91, .08);
}

.service p {
  margin: 0;
}

.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- About ---------- */

.about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.photo-box {
  min-height: 560px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-box img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  min-height: 560px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  text-align: center;
}

.photo-placeholder span {
  font-size: 22px;
  font-weight: 700;
}

.photo-placeholder small {
  margin-top: 8px;
  color: var(--muted);
}

.about-text > p:not(.eyebrow) {
  font-size: 17px;
}

.experience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 35px;
}

.experience div {
  border-top: 2px solid var(--blue);
  padding-top: 13px;
}

.experience strong,
.experience span {
  display: block;
}

.experience strong {
  color: var(--black);
}

.experience span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

/* ---------- Contact ---------- */

.contact {
  padding: 110px 0;
  background: var(--blue);
}

.contact .eyebrow,
.contact h2,
.contact p {
  color: white;
}

.contact-inner {
  max-width: 900px;
  text-align: center;
}

.contact-inner > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 45px auto 25px;
  max-width: 760px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: white;
  color: var(--black);
  padding: 22px;
  border-radius: 6px;
  transition: transform .2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 21px;
}

.contact-item small,
.contact-item strong {
  display: block;
}

.contact-item small {
  color: var(--muted);
}

.contact-item strong {
  color: var(--black);
  word-break: break-word;
}

.contact-note {
  font-size: 13px;
  opacity: .8;
}

/* ---------- Footer ---------- */

footer {
  background: #111D27;
  color: white;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.footer-inner a {
  margin-left: 20px;
  color: #D7E0E7;
}

/* ---------- Mobile ---------- */

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

  .nav {
    min-height: 64px;
  }

  .brand {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .brand span {
    font-size: 7px;
    letter-spacing: 2px;
  }

  .nav-button {
    padding: 9px 15px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 65px 0 80px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-logo {
    max-width: 480px;
    margin: 0 auto;
  }

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

  .section {
    padding: 75px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .photo-box,
  .photo-box img,
  .photo-placeholder {
    min-height: 420px;
  }

  .experience {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact {
    padding: 80px 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-inner a:first-child {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 38px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .icon {
    width: 48px;
    height: 48px;
  }

  .lead {
    font-size: 17px;
  }
}
