/* ---------- Tokens ---------- */
:root {
  --graphite: #1c242b;
  --steel: #2f3b45;
  --mist: #eef1f3;
  --line: #d3d9de;
  --white: #ffffff;
  --signal: #f0a81a;      /* accent: safety amber */
  --signal-dark: #d4920f;
  --text: #1c242b;
  --muted: #5a6670;

  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

p { margin: 0; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--graphite);
  background: var(--signal);
  border: 0;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover { background: var(--signal-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: var(--graphite);
  overflow: hidden;
  isolation: isolate;
}

/* slightly darkened banner image */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transform: scale(1.05); /* hides blurred edges */
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28, 36, 43, 0.35), rgba(28, 36, 43, 0.55));
  z-index: -1;
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding-block: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav { display: flex; gap: 1.75rem; }

.nav a {
  text-decoration: none;
  font-weight: 500;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-bottom-color: var(--signal); }

.hero__content {
  width: min(100% - 2.5rem, var(--max));
  margin: auto;
  padding-block: 3rem 5rem;
}

.hero__content h1 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 700;
}

.hero__content p {
  max-width: 52ch;
  margin-block: 1.5rem 2.25rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }

.section--dark {
  background: var(--graphite);
  color: var(--white);
}

.section__head { max-width: 60ch; margin-bottom: 3rem; }

.section__head h2,
.contact__info h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }

.section__head p { margin-top: 1rem; color: var(--muted); }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service {
  padding: 1.75rem 1.5rem 2rem;
  background: var(--mist);
  border-top: 4px solid var(--signal);
}

.service h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }

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

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact__info p { margin-top: 1rem; max-width: 46ch; color: rgba(255, 255, 255, 0.78); }

.details { margin: 2.5rem 0 0; display: grid; gap: 1.25rem; }

.details dt { font-size: 0.9rem; color: var(--signal); font-weight: 600; }

.details dd { margin: 0.15rem 0 0; }

.details a { text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; }

.details a:hover { text-decoration-color: var(--signal); }

.contact__image {
  margin: 0;
  align-self: stretch;
  min-height: 320px;
  overflow: hidden;
}

.contact__image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 1.75rem;
  background: #141a1f;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.footer a { text-underline-offset: 3px; }

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

/* ---------- Larger screens ---------- */
@media (min-width: 860px) {
  .contact { grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
}

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  .logo { padding: 0.45rem 0.75rem; }
  .logo img { height: 36px; }
  .nav { gap: 1.1rem; font-size: 0.95rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.impressum {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.impressum__title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.6);
}

.impressum__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
}

.impressum__list div { display: flex; gap: 0.3rem; }

.impressum__list dt { font-weight: 600; }

.impressum__list dd { margin: 0; }

.impressum a { text-decoration: none; }

.impressum a:hover { color: var(--signal); }