@font-face {
  font-family: 'D-DIN';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/D-DIN.woff2) format('woff2');
}
@font-face {
  font-family: 'D-DIN';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/D-DIN-Bold.woff2) format('woff2');
}
@font-face {
  font-family: 'D-DIN Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/D-DINCondensed-Bold.woff2) format('woff2');
}
/* Referenzliste: DIN lettering, white paper, ruled like a plan */

:root {
  --paper: #fff;
  --ink: #1d2124;
  --grey: #535a60;   /* logo lettering */
  --rule: #c7ccd1;
  --blue: #48a5f5;   /* logo mark – graphics only, too light for text */
  --din: "D-DIN", "DIN Alternate", "Bahnschrift", Arial, sans-serif;
  --din-c: "D-DIN Condensed", "DIN Condensed", "Bahnschrift Condensed", "Arial Narrow", sans-serif;
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.5 var(--din);
}

.page { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h2 {
  font: 700 15px/1.2 var(--din);
  color: var(--grey);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Kopf */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink);
}
.brand img { width: 190px; }
.masthead nav { display: flex; gap: 28px; font-size: 16px; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  padding: 88px 0 104px;
}
.intro h1 {
  grid-column: 1 / span 10;
  font: 700 clamp(40px, 7vw, 92px)/.98 var(--din-c);
  letter-spacing: -.005em;
  hyphens: manual;
}
.intro p {
  grid-column: 5 / span 6;
  margin-top: 40px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--grey);
}

/* Referenzen */

.references h2, .services h2, .contact h2, .imprint h2 {
  padding: 12px 0;
  border-top: 3px solid var(--ink);
}

.references table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.references thead th {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--ink);
  color: var(--grey);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}
.references td, .references tbody th {
  padding: 22px 16px 26px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}
.references tbody tr { scroll-margin-top: 24px; }
.references tbody tr:target { box-shadow: inset 4px 0 var(--blue); }
.references tbody tr:target > :first-child { padding-left: 14px; }

.when { width: 9em; white-space: nowrap; }
.where { width: 9em; color: var(--grey); }
.scope { width: 26%; color: var(--grey); font-size: 16px; }
.photo { width: 132px; padding-right: 0 !important; }
.photo img { width: 132px; aspect-ratio: 1; object-fit: cover; }

.references tbody th span { display: block; }

.career { margin-top: 120px; }
.section-lead { max-width: 40em; margin: 4px 0 28px; color: var(--grey); }
.name { font: 700 26px/1.1 var(--din-c); }
.client { margin-top: 6px; font-size: 16px; color: var(--grey); }
.description { max-width: 34em; margin-top: 12px; font-size: 16px; hyphens: auto; }

/* Leistungen */

.services { margin-top: 120px; }
.services dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 16px;
}
.services dl div { padding-top: 14px; border-top: 1px solid var(--rule); }
.services dt { font: 700 30px/1.1 var(--din-c); }
.services dd { margin: 10px 0 0; max-width: 22em; color: var(--grey); }

/* Kontakt */

.contact {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  margin-top: 120px;
}
.contact h2 { grid-column: 1 / -1; }
.contact-body { grid-column: 5 / span 8; padding-top: 24px; }
.contact-body > p:first-child { font: 700 clamp(32px, 4.2vw, 52px)/1.05 var(--din-c); }
.contact address { margin-top: 20px; color: var(--grey); }
.reveal {
  margin-top: 28px;
  padding: 13px 22px 12px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 17px;
}
.reveal:hover { background: #000; box-shadow: inset 0 -4px var(--blue); }
.contact .contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 40px;
  margin-top: 24px;
  font: 700 clamp(26px, 3vw, 36px)/1.2 var(--din-c);
}

/* Impressum: als Plankopf */

.imprint { margin: 120px 0 64px; }
.title-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 12px 0 0;
  border: 2px solid var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.title-block div {
  padding: 8px 12px 10px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 0 -1px -1px 0;
}
.title-block .wide { grid-column: span 2; }
.title-block .wider { grid-column: span 3; }
.title-block .full { grid-column: 1 / -1; }
.credits { columns: 2; column-gap: 32px; }
.credits li { break-inside: avoid; }
.title-block dt { color: var(--grey); font-size: 12px; }
.title-block dd { margin: 2px 0 0; }
.title-block strong { font: 700 20px/1.2 var(--din-c); }

@media (max-width: 900px) {
  .page { padding: 0 16px; }
  body { font-size: 17px; }
  .masthead { padding: 20px 0; }
  .brand img { width: 150px; }
  .masthead nav { gap: 16px; font-size: 15px; }
  .intro { display: block; padding: 48px 0 64px; }
  .intro p { margin-top: 24px; font-size: 18px; }

  .references thead { display: none; }
  .references table, .references tbody { display: block; }
  .references tbody tr {
    display: grid;
    grid-template-columns: 1fr 88px;
    column-gap: 16px;
    padding: 18px 0 20px;
    border-bottom: 1px solid var(--rule);
  }
  .references td, .references tbody th { display: block; width: auto; padding: 0; border: 0; }
  .when { grid-row: 1; grid-column: 1; font-size: 15px; color: var(--grey); }
  .where { grid-row: 1; grid-column: 1; justify-self: end; font-size: 15px; }
  .references tbody th { grid-row: 2; grid-column: 1; margin-top: 4px; }
  .scope { grid-row: 3; grid-column: 1; margin-top: 10px; width: auto; font-size: 15px; }
  .photo { grid-row: 1 / span 3; grid-column: 2; width: 88px; }
  .photo:empty { display: none; }
  .references tbody tr:has(.photo:empty) { grid-template-columns: 1fr; }
  .photo img { width: 88px; }
  .name { font-size: 24px; }
  .references tbody tr:target > :first-child { padding-left: 0; }
  .references tbody tr:target { box-shadow: none; border-left: 4px solid var(--blue); padding-left: 12px; }

  .services, .contact, .career { margin-top: 72px; }
  .services dl { grid-template-columns: 1fr; gap: 20px; }
  .services dt { font-size: 26px; }
  .contact { display: block; }
  .contact-body { padding-top: 12px; }

  .imprint { margin: 72px 0 96px; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block .wider { grid-column: span 2; }
  .credits { columns: 1; }
}

@media (max-width: 520px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 14px; }
  .title-block { grid-template-columns: 1fr; }
  .title-block .wide, .title-block .wider { grid-column: auto; }
}
