/* =========================================================
   iCL Ingenieurbüro – gemeinsame Gestaltung
   ========================================================= */

:root {
  --blue: #178fca;
  --blue-light: #e5f3fa;
  --blue-wash: #f0f8fc;
  --gray: #606060;
  --text: #606060;
  --muted: #697277;
  --line: #d5dde1;
  --soft: #f1f3f3;
  --paper: #faf9f6;
  --white: #ffffff;
  --shadow: 0 12px 28px rgba(96, 96, 96, 0.09);
  --max-width: 1160px;
  --page-padding: clamp(20px, 4.5vw, 60px);
}

/* Grundformatierung */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.65 "Segoe UI", Arial, "Helvetica Neue", sans-serif;
}

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

button {
  font: inherit;
}

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

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

::selection {
  background: var(--blue);
  color: var(--white);
}

.skip {
  position: absolute;
  top: 8px;
  left: -9999px;
}

.skip:focus {
  z-index: 100;
  left: 12px;
  padding: 10px 15px;
  background: var(--white);
  border: 2px solid var(--blue);
}

.wrap {
  width: min(var(--max-width), calc(100% - 2 * var(--page-padding)));
  margin-inline: auto;
}

/* Kopfzeile und Navigation */

header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: var(--blue-light);
  border-bottom: 5px solid var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  gap: 35px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.brand img {
  width: 76px;
  height: auto;
}

.brand-text {
  padding-left: 20px;
  border-left: 1px solid #bdd9e7;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

.brand-text strong {
  display: block;
  color: var(--gray);
  font-size: 15px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-size: 14px;
  font-weight: 600;
}

nav a {
  padding: 31px 0 27px;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a:focus {
  color: var(--blue);
  border-color: var(--blue);
}

.contact-link {
  padding: 11px 17px !important;
  background: var(--blue);
  border: 0 !important;
  color: var(--white) !important;
}

.contact-link:hover {
  opacity: 0.82;
}

.menu {
  display: none;
  flex: 0 0 42px;
  width: 42px;
  height: 40px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #9fc9de;
  color: var(--gray);
  font-size: 22px;
  cursor: pointer;
}

/* Wiederkehrende Elemente */

.kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  display: inline-block;
  width: 38px;
  height: 3px;
  margin: 0 12px 3px 0;
  background: var(--blue);
  content: "";
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(23, 143, 202, 0.18);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(23, 143, 202, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--white);
  color: var(--gray);
}

/* Startbereich */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--gray);
  background-image:
    linear-gradient(
      90deg,
      rgba(96, 96, 96, 0.97) 0%,
      rgba(96, 96, 96, 0.92) 35%,
      rgba(96, 96, 96, 0.54) 69%,
      rgba(96, 96, 96, 0.3) 100%
    ),
    url("assets/hero-camera.png");
  background-position: center, center right;
  background-size: cover, cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 143, 202, 0.06),
    transparent 45%,
    rgba(96, 96, 96, 0.08)
  );
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 32px 0 40px;
}

.hero-grid > div {
  max-width: 900px;
}

.hero .kicker {
  color: var(--white);
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 25px;
  color: #f8fafb;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-shadow: 0 2px 16px rgba(96, 96, 96, 0.22);
}

.hero h1 strong {
  position: relative;
  color: var(--blue);
  font-weight: 650;
  white-space: nowrap;
}

.hero h1 strong::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 4px;
  background: var(--blue);
  content: "";
  opacity: 0.55;
}

.lead {
  max-width: 720px;
  margin-bottom: 34px;
  color: #eef2f4;
  font-size: 20px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(96, 96, 96, 0.2);
}

/* Allgemeine Bereiche der Startseite */

section {
  padding: 95px 0;
}

.section-head {
  max-width: 900px;
  margin-bottom: 48px;
}

.section-head h2,
.about-copy h2,
.support-intro h2,
.contact h2 {
  margin-bottom: 20px;
  color: var(--gray);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head > div > p:not(.kicker) {
  max-width: 740px;
  color: var(--muted);
  font-size: 18px;
}

/* Ingenieurbüro */

.about {
  background: var(--blue-light);
  border-bottom: 1px solid #c8e2f0;
}

.about-copy {
  max-width: 900px;
}

.about-copy p:not(.kicker) {
  color: var(--muted);
  font-size: 17px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
  border-block: 1px solid var(--line);
}

.fact {
  padding: 19px 18px 19px 0;
  border-right: 1px solid var(--line);
}

.fact + .fact {
  padding-left: 18px;
}

.fact strong {
  display: block;
  color: var(--blue);
  font-size: 21px;
}

.fact span {
  color: var(--muted);
  font-size: 14px;
}

/* Leistungen */

.services {
  background: var(--paper);
}

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

.service {
  position: relative;
  padding: 34px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  box-shadow: 0 5px 16px rgba(96, 96, 96, 0.05);
  transition: transform 0.22s, box-shadow 0.22s;
}

.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-no {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.service h3 {
  margin-bottom: 12px;
  color: var(--gray);
  font-size: 22px;
}

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

/* Technischer Service */

.support {
  background: linear-gradient(105deg, var(--blue-light), var(--blue-wash));
  border-block: 1px solid #c8e2f0;
}

.support-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 80px;
}

.support-intro p:not(.kicker) {
  color: var(--muted);
  font-size: 18px;
}

.support-list {
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #c8e2f0;
  box-shadow: 0 9px 24px rgba(96, 96, 96, 0.06);
}

.support-row {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.support-row:last-child {
  border-bottom: 0;
}

.support-row b {
  color: var(--blue);
  font-size: 14px;
}

.support-row h3 {
  margin: 0 0 5px;
  color: var(--gray);
  font-size: 19px;
}

.support-row p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Projekterfahrung */

.references {
  position: relative;
  overflow: hidden;
  background: var(--gray);
  color: var(--white);
}

.references::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 80px 48px;
  content: "";
}

.references .wrap {
  position: relative;
  z-index: 1;
}

.references .kicker,
.references .section-head h2 {
  color: var(--white);
}

.references .section-head > div > p:not(.kicker) {
  color: #f4f7f8;
}

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

.reference {
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 4px solid var(--blue);
  transition: background 0.2s, transform 0.2s;
}

.reference:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.reference small {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reference h3 {
  margin: 12px 0 9px;
  font-size: 20px;
}

.reference p {
  margin: 0;
  color: #f1f3f4;
  font-size: 16px;
}

/* Kontakt */

.contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.contact-grid > div {
  max-width: 900px;
  padding: 36px 40px;
  background: var(--white);
  border-left: 5px solid var(--blue);
  box-shadow: var(--shadow);
}

.contact p:not(.kicker) {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

.contact-note {
  margin: 22px 0 0;
  font-size: 15px !important;
}

.contact-note strong {
  color: var(--gray);
}

/* Impressum und Datenschutz */

.legal-hero {
  padding: 55px 0 45px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.legal-hero .kicker {
  margin-bottom: 14px;
}

.legal-hero h1 {
  margin: 0;
  color: var(--gray);
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.legal-main {
  padding: 65px 0 90px;
  background: var(--paper);
}

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  margin: 46px 0 12px;
  color: var(--gray);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.3;
}

.legal-content p,
.legal-content address,
.legal-content ul {
  margin: 0 0 18px;
}

.legal-content address {
  font-style: normal;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content a {
  color: var(--blue);
}

.legal-content a:hover,
.legal-content a:focus {
  text-decoration: underline;
}

.legal-note {
  margin-bottom: 38px;
  padding: 22px 24px;
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
}

.legal-note p {
  margin: 0;
}

.updated {
  color: var(--muted);
  font-size: 15px;
}

/* Fußzeile */

footer {
  padding: 48px 0 22px;
  background: var(--blue-light);
  border-top: 5px solid var(--blue);
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
}

.footer-logo {
  width: 68px;
  margin-bottom: 20px;
}

.footer-col {
  color: var(--muted);
  font-size: 15px;
}

.footer-col strong {
  display: block;
  margin-bottom: 9px;
  color: var(--gray);
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid #c8e2f0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
}

/* Tablet */

@media (max-width: 900px) {
  .menu {
    display: block;
  }

  nav {
    position: absolute;
    top: 86px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px var(--page-padding);
    background: var(--blue-light);
    border-bottom: 1px solid #c8e2f0;
  }

  nav.open {
    display: flex;
  }

  nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #c8e2f0;
  }

  .contact-link {
    width: auto;
    margin-top: 12px;
  }

  .hero {
    background-image:
      linear-gradient(
        90deg,
        rgba(96, 96, 96, 0.96),
        rgba(96, 96, 96, 0.82) 65%,
        rgba(96, 96, 96, 0.58)
      ),
      url("assets/hero-camera.png");
    background-position: center, 62% center;
  }

  .hero-grid {
    padding: 28px 0 36px;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-grid,
  .reference-grid {
    grid-template-columns: 1fr;
  }

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

/* Smartphone */

@media (max-width: 580px) {
  :root {
    --page-padding: 16px;
  }

  .nav {
    height: 74px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 44px;
  }

  .brand-text {
    padding-left: 8px;
    font-size: 12px;
    line-height: 1.25;
  }

  .brand-text strong {
    font-size: 14px;
  }

  nav {
    top: 74px;
  }

  .hero {
    background-image:
      linear-gradient(rgba(96, 96, 96, 0.92), rgba(96, 96, 96, 0.9)),
      url("assets/hero-camera.png");
    background-position: center, 68% center;
  }

  .hero-grid {
    padding: 18px 0 24px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: 32px;
    line-height: 1.1;
  }

  .hero h1 strong {
    white-space: normal;
  }

  .lead {
    margin-bottom: 26px;
    font-size: 18px;
    line-height: 1.5;
  }

  section {
    padding: 70px 0;
  }

  footer {
    padding: 32px 0 16px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-logo {
    margin-bottom: 14px;
  }

  .footer-bottom {
    margin-top: 24px;
    padding-top: 14px;
  }

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

  .footer-logo {
    width: 54px;
  }

  .service {
    padding: 28px 24px;
  }

  .support-list {
    padding: 0 20px;
  }

  .support-row {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .contact-grid > div {
    padding: 28px 24px;
  }

  .reference-grid {
    gap: 12px;
  }

  .fact {
    padding: 15px 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-hero {
    padding: 40px 0 34px;
  }

  .legal-main {
    padding: 45px 0 65px;
  }

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

  .actions .btn {
    width: 100%;
  }
}
