/* ==========================================================================
   H.-J. Wölfer GmbH – Stylesheet
   Mobile-first. No external resources (fonts are hosted locally).
   Structure:
   1. Fonts   2. Design tokens   3. Base   4. Layout helpers   5. Header/Nav
   6. Hero    7. Sections (About, Band, Business areas, Contact)
   8. Footer  9. Sub pages (Legal Notice, Privacy Policy)  10. Motion/Print
   ========================================================================== */

/* 1. FONTS – Barlow Condensed (SIL Open Font License), self-hosted ---------- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}

/* 2. DESIGN TOKENS (Corporate Identity) ------------------------------------ */
:root {
  /* Colours – primary blue measured from the logo (#3051A0, print: HKS 42) */
  --c-primary: #3051a0;
  --c-dark: #14224a;
  --c-darker: #0e1735;
  --c-light: #eef2fa;
  --c-accent: #6f93d1;      /* decorative / on dark backgrounds only */
  --c-white: #ffffff;
  --c-text: #14224a;

  /* Typography */
  --font-base: "Barlow Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --header-h: 4.5rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max-w: 75rem;
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 2px;
}

/* 3. BASE ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.08; }
p { margin: 0 0 1em; }
a { color: var(--c-primary); text-underline-offset: 0.2em; }
a:hover { color: var(--c-dark); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--c-dark);
  color: var(--c-white);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* 4. LAYOUT HELPERS -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--max-w) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--light { background: var(--c-light); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.eyebrow::after {
  content: "";
  flex: 0 0 3.5rem;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-primary);
}

/* 5. HEADER / NAVIGATION --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(48, 81, 160, 0.14);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.25rem 1.5rem;
}
.brand { display: inline-flex; padding-block: 0.6rem; }
.brand img { height: 3.1rem; width: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  font: 600 1rem var(--font-base);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: none;
  border: 1px solid var(--c-primary);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  content: "";
  position: relative;
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

.main-nav { display: contents; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.6rem;
  margin: 0;
  padding: 0 0 0.6rem;
  list-style: none;
  width: 100%;
}
.nav-list a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-dark);
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

/* Collapsed menu only when JavaScript is available (progressive enhancement) */
@media (max-width: 47.99rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-list { display: none; flex-direction: column; padding-bottom: 1rem; }
  .js .nav-list.is-open { display: flex; }
}
@media (min-width: 48rem) {
  .nav-list { width: auto; padding: 0; gap: 2.2rem; }
}

/* 6. HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 86svh, 52rem);
  color: var(--c-white);
  overflow: hidden;
  background: var(--c-dark);
}
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(14, 23, 53, 0.92) 0%,
    rgba(20, 34, 74, 0.82) 38%,
    rgba(20, 34, 74, 0.25) 78%,
    rgba(20, 34, 74, 0.05) 100%
  );
}
.hero__content { padding-block: 5rem; max-width: 46rem; }
/* Small screens: text sits over the photo, so darken it evenly for contrast */
@media (max-width: 47.99rem) {
  .hero::before { background: rgba(14, 23, 53, 0.72); }
}
.hero__eyebrow {
  margin: 0 0 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c9d8f3;
}
.hero__title {
  font-size: clamp(2.9rem, 9vw, 6.4rem);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1;
}
.hero__title span { display: block; color: #bcd0f2; }
.hero__lead {
  max-width: 34rem;
  margin: 1.8rem 0 2.4rem;
  font-size: 1.45rem;
  line-height: 1.45;
  color: #e4ebf8;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font: 600 1.1rem var(--font-base);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--c-white);
  border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s;
}
.btn--solid { background: var(--c-white); color: var(--c-primary); }
.btn--solid:hover { background: var(--c-light); color: var(--c-dark); }

/* 7. SECTIONS -------------------------------------------------------------- */

/* About */
.about__grid { display: grid; gap: 3rem; }
.about__lead {
  margin-top: 1.8rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.38;
}
.facts { display: grid; gap: 0; margin: 0; }
.facts__item { padding: 1.1rem 0 1.3rem; border-top: 1px solid var(--c-primary); }
.facts__item dt {
  margin-bottom: 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.facts__item dd { margin: 0; font-size: 1.75rem; line-height: 1.2; }

/* Image band with statement */
.band {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(20rem, 48vw, 30rem);
  color: var(--c-white);
  overflow: hidden;
  background: var(--c-dark);
}
.band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 23, 53, 0.72);
}
.band__text {
  max-width: 52rem;
  margin: 0;
  padding-block: 4rem;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Business areas */
.areas__head { margin-bottom: 3rem; }
.areas__grid { display: grid; gap: 1.75rem; }
.card { background: var(--c-white); display: flex; flex-direction: column; }
.card__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.card__panel {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--c-primary);
}
.card__panel img { height: 62%; width: auto; }
.card__body { padding: 1.75rem 1.75rem 2.1rem; border-top: 4px solid var(--c-primary); flex: 1; }
.card__tag {
  margin: 0 0 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.card__title {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.card__text { margin: 0; }

/* Contact */
.contact { background: var(--c-dark); color: var(--c-white); }
.contact .eyebrow { color: var(--c-accent); }
.contact .section-title { color: var(--c-white); }
.contact__grid { display: grid; gap: 3rem; margin-top: 2.5rem; }
.contact__mail {
  display: inline-block;
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 6.4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--c-white);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-accent);
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: #cfdcf5; }
.contact__note { margin: 0; color: #cfdcf5; }
.contact address { font-style: normal; }
.contact__list { margin: 0; display: grid; gap: 1.1rem; }
.contact__list dt {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.contact__list dd { margin: 0.1rem 0 0; font-size: 1.4rem; }
.contact a { color: var(--c-white); text-decoration-color: var(--c-accent); }
.contact a:hover { color: #cfdcf5; }

@media (min-width: 48rem) {
  .about__grid { grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: start; }
  .areas__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact__grid { grid-template-columns: 1.3fr 1fr; gap: 5rem; }
}

/* 8. FOOTER ---------------------------------------------------------------- */
.site-footer { background: var(--c-darker); color: #c9d4ee; font-size: 1.05rem; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-block: 1.8rem;
}
.site-footer p { margin: 0; }
.site-footer ul { display: flex; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.site-footer a {
  color: #e4ebf8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover { border-bottom-color: var(--c-accent); color: var(--c-white); }

/* 9. SUB PAGES (Legal Notice, Privacy Policy) ------------------------------ */
.page { padding-block: clamp(3rem, 7vw, 6rem); }
.page__title {
  margin-bottom: 2.4rem;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-primary);
}
.prose { max-width: 46rem; }
.prose h2 {
  margin: 2.6rem 0 0.8rem;
  font-weight: 400;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-primary);
}
.prose h3 { margin: 1.6rem 0 0.4rem; font-weight: 600; font-size: 1.3rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4em; }
.prose strong { font-weight: 600; }
.prose address { font-style: normal; margin-bottom: 1em; }
.prose .data-list { display: grid; gap: 0.9rem; margin: 0 0 1.5rem; }
.prose .data-list dt {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.prose .data-list dd { margin: 0.05rem 0 0; }

/* 10. MOTION / PRINT ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .nav-toggle, .skip-link { display: none; }
  .hero, .band { min-height: 0; color: #000; background: none; }
  .hero__img, .band__img, .hero::before, .band::before { display: none; }
  .contact { background: none; color: #000; }
}
