/* IATGermeier website – follows IATG.Vorlagen/Gestaltung.md:
   calm and factual, one accent colour (petrol), Lato, no logo image. */

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #0f766e;        /* petrol – the only accent colour */
  --brand-dark: #0b5953;   /* hover state of links/buttons */
  --brand-tint: #f0f7f6;   /* very light petrol for calm areas */
  --text: #000000;
  --muted: #757575;
  --line: #e0e0e0;
  --line-foot: #bdbdbd;
  --head: #eeeeee;
  --bg: #ffffff;
  --max: 1080px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Lato, Calibri, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
a:focus-visible,
.button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 8px 14px;
}
.skip:focus { left: 8px; top: 8px; z-index: 10; }

/* ---------- Header (like the letterhead: name left, nav right) ---------- */

.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 12px 32px;
  padding-top: 22px; padding-bottom: 18px;
}
.brand { text-decoration: none; color: inherit; display: block; }
.brand-name {
  display: block; color: var(--brand); font-weight: 700;
  font-size: 30px; line-height: 1.1; letter-spacing: -0.01em;
}
.brand-tagline { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.brand-owner { display: block; font-size: 14px; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 15px;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

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

.hero { padding: 72px 0 64px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 46px); line-height: 1.15; font-weight: 700;
  margin: 0 0 20px; max-width: 18em;
}
.hero p { font-size: 19px; max-width: 40em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-block; padding: 11px 22px; border-radius: 3px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--brand);
}
.button.primary { background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.secondary { color: var(--brand); background: transparent; }
.button.secondary:hover { background: var(--brand-tint); }

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

section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-label {
  color: var(--muted); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.12em; margin: 0 0 6px;
}
h2 { color: var(--brand); font-size: 28px; line-height: 1.25; margin: 0 0 28px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.lead { max-width: 44em; margin: -12px 0 32px; }

/* Services: four steps of a project */
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
  margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.steps li { border-top: 3px solid var(--brand); padding-top: 16px; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px;
}
.steps p { margin: 0; hyphens: auto; -webkit-hyphens: auto; }

/* Way of working */
.points {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  margin: 0; padding: 0; list-style: none;
}
.points li { border-left: 3px solid var(--brand); padding-left: 18px; }
.points p { margin: 0; }

/* Fields of application */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tags li {
  background: var(--brand-tint); border: 1px solid #d3e7e5;
  padding: 6px 14px; border-radius: 3px; font-size: 16px;
}

/* Tools: table look of the documents */
.tools { width: 100%; border-collapse: collapse; }
.tools th,
.tools td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tools thead th { background: var(--head); font-weight: 700; }
.tools tbody th { width: 30%; font-weight: 700; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.label { display: block; color: var(--muted); font-size: 14px; }
address { font-style: normal; }
.contact-grid p { margin: 0; }

/* ---------- Legal pages ---------- */

.page { padding: 56px 0 72px; }
.page h1 { font-size: 34px; line-height: 1.2; margin: 0 0 32px; }
.page h2 { font-size: 22px; margin: 40px 0 10px; }
.page h3 { font-size: 18px; margin: 24px 0 6px; }
.page .text { max-width: 46em; }
.page .text p,
.page .text ul { margin: 0 0 14px; }
.meta { color: var(--muted); font-size: 15px; }

/* ---------- Footer (like the document footer) ---------- */

.site-foot { margin-top: 24px; }
.site-foot .wrap {
  /* hairline only across the content width (not the side gutters) */
  background: linear-gradient(var(--line-foot), var(--line-foot)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  padding-top: 18px; padding-bottom: 32px;
  display: grid; grid-template-columns: 3fr 3fr 2fr; gap: 16px 32px;
  color: var(--muted); font-size: 14px; line-height: 1.55;
}
.site-foot p { margin: 0; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--brand); }
.site-foot .legal { text-align: right; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 44px; }
  .hero p { font-size: 17px; }
  section { padding: 44px 0; }
  .steps,
  .points,
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .tools tbody th { width: auto; }
  .tools th, .tools td { display: block; padding: 4px 0; border: 0; }
  .tools tbody tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tools thead { display: none; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .site-foot .legal { text-align: left; }
}

/* ---------- Print ---------- */

@media print {
  body { font-size: 10pt; }
  .nav, .actions, .skip { display: none; }
  section { padding: 16pt 0; break-inside: avoid; }
  a { color: var(--text); text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
