/**
 * HSD Umformtechnik — Theme
 *
 * Klassensystem nach dem Design-Prototyp: kantige Flächen (keine Radien),
 * Trennung über 1px-Linien statt Schatten, Akzentfarbe nur für große
 * CTA-Flächen und Akzentlinien.
 *
 * Schriften: Roboto (Variable Font, lokal) — Light 300 für große
 * Überschriften, Regular 400 für Fließtext, Medium 500 für Buttons und
 * Labels, Bold 700 für Auszeichnungen.
 */

:root {
  --color-ink: #14171A;
  --color-steel-800: #22282C;
  --color-steel-600: #343B41;
  --color-steel-500: #4C555B;
  --color-steel-400: #6B757D;
  --color-steel-200: #D5D9DC;
  --color-steel-100: #E2E5E7;
  --color-surface: #F4F5F6;
  --color-paper: #FBFBFA;
  --color-accent: #E2570F;
  --color-accent-ink: #C24B0B;

  --font-text: 'Roboto', system-ui, sans-serif;

  --container-max: 1240px;
  --container-pad: clamp(20px, 5vw, 48px);
  --section-pad: clamp(64px, 9vw, 120px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Basis ---------------------------------------------------------------- */

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent-ink); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--color-ink); }

input, textarea, button, select { font-family: inherit; }

:focus-visible { outline: 2px solid var(--color-accent-ink); outline-offset: 2px; }

html { scroll-behavior: smooth; }

.hsd-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* --- Scroll-Reveal --------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* Typo-Bausteine */
.hsd-kicker {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hsd-kicker::before { content: ''; width: 28px; height: 2px; background: var(--color-accent); }
.hsd-section--dark .hsd-kicker { color: var(--color-accent); }

.hsd-h2 {
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 16px 0 18px;
}
.hsd-h2 strong { font-weight: 500; }

.hsd-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-steel-500);
  margin: 0;
  text-wrap: pretty;
}
.hsd-section--dark .hsd-intro { color: #C3C9CD; }

.hsd-mono-label {
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A9299;
}

.hsd-accent { color: var(--color-accent); }

/* --- Sektionen ------------------------------------------------------------ */

.hsd-section { padding: var(--section-pad) 0; }
.hsd-section--surface {
  background: var(--color-surface);
  border-top: 1px solid var(--color-steel-100);
  border-bottom: 1px solid var(--color-steel-100);
}
.hsd-section--dark { background: var(--color-ink); color: var(--color-paper); }
.hsd-section--tight { padding: clamp(52px, 7vw, 88px) 0; }

.hsd-section-head { max-width: 62ch; margin-bottom: clamp(36px, 4.5vw, 56px); }
.hsd-section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.hsd-section-head--split .hsd-h2 { margin-bottom: 0; }
.hsd-section-head--split .hsd-intro { max-width: 52ch; }

/* --- Header --------------------------------------------------------------- */

.hsd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 250, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-steel-100);
  transition: box-shadow 0.3s var(--ease);
}
.hsd-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 23, 26, 0.09); }
.hsd-header__bar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hsd-brand { display: flex; align-items: center; flex: none; }
.hsd-brand img { display: block; height: 40px; width: auto; }
.hsd-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); font-size: 15px; font-weight: 500; }
.hsd-nav a { color: var(--color-steel-600); padding: 6px 0; position: relative; }
.hsd-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.hsd-nav a:hover { color: var(--color-ink); }
.hsd-nav a:hover::after,
.hsd-nav a.is-active::after { transform: scaleX(1); }
.hsd-nav a.is-active { color: var(--color-ink); }

.hsd-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.hsd-header__cta {
  background: var(--color-accent);
  color: #FFFFFF;
  padding: 13px 20px;
  font-weight: 500;
  font-size: 14.5px;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.hsd-header__cta:hover { background: var(--color-ink); color: var(--color-paper); transform: translateY(-1px); }

/* Suche im Header */
.hsd-search { position: relative; }
.hsd-search__toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-steel-200);
  color: var(--color-steel-600);
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.hsd-search__toggle:hover { border-color: var(--color-ink); color: var(--color-ink); }
.hsd-search__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(360px, calc(100vw - 40px));
  background: #FFFFFF;
  border: 1px solid var(--color-steel-100);
  box-shadow: 0 18px 48px rgba(20, 23, 26, 0.14);
  padding: 14px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.hsd-search.is-open .hsd-search__panel { opacity: 1; transform: none; visibility: visible; }
.hsd-search__input {
  flex: 1;
  border: 1px solid var(--color-steel-200);
  background: var(--color-paper);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--color-ink);
  outline: none;
  min-width: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hsd-search__input:focus { border-color: var(--color-accent-ink); box-shadow: 0 0 0 3px rgba(194, 75, 11, 0.15); }
.hsd-search__submit {
  background: var(--color-ink);
  color: var(--color-paper);
  border: none;
  width: 44px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.25s var(--ease);
}
.hsd-search__submit:hover { background: var(--color-accent); }

/* Burger: drei Balken, animiert zu einem X */
.hsd-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--color-steel-200);
  cursor: pointer;
  padding: 0 12px;
}
.hsd-burger span {
  display: block;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  transform-origin: center;
}
.hsd-header.is-open .hsd-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hsd-header.is-open .hsd-burger span:nth-child(2) { opacity: 0; }
.hsd-header.is-open .hsd-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiles Menü: animiertes Dropdown */
.hsd-mobilenav {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  background: var(--color-paper);
  padding: 0 var(--container-pad);
  border-top: 1px solid transparent;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), padding 0.35s var(--ease);
}
.hsd-header.is-open .hsd-mobilenav {
  max-height: 560px;
  opacity: 1;
  padding: 12px var(--container-pad) 24px;
  border-top-color: var(--color-steel-100);
}
.hsd-mobilenav a {
  padding: 15px 0;
  border-bottom: 1px solid #EDEFF0;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 17px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.2s var(--ease);
}
.hsd-header.is-open .hsd-mobilenav a { opacity: 1; transform: none; }
.hsd-mobilenav a:hover { color: var(--color-accent-ink); }
.hsd-mobilenav a.hsd-mobilenav__cta {
  margin-top: 16px;
  background: var(--color-accent);
  color: #FFFFFF;
  padding: 16px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  border-bottom: none;
}
.hsd-mobilenav a.hsd-mobilenav__cta:hover { background: var(--color-ink); }

@media (max-width: 1080px) {
  /* Mobil: nur Logo und Burger */
  .hsd-nav, .hsd-header__cta, .hsd-search { display: none; }
  .hsd-burger { display: flex; }
  .hsd-brand img { height: 34px; }
}

/* --- Buttons -------------------------------------------------------------- */

.hsd-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  font-weight: 500;
  font-size: 17px;
  min-height: 56px;
  cursor: pointer;
  border: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hsd-btn:hover { transform: translateY(-2px); }
.hsd-btn i { font-size: 0.85em; transition: transform 0.25s var(--ease); }
.hsd-btn:hover i { transform: translateX(3px); }
.hsd-btn--primary { background: var(--color-accent); color: #FFFFFF; }
.hsd-btn--primary:hover { background: var(--color-ink); color: var(--color-paper); }
.hsd-section--dark .hsd-btn--primary:hover { background: var(--color-paper); color: var(--color-ink); }
.hsd-btn--ghost-dark { border: 1px solid #454C52; color: var(--color-paper); background: transparent; }
.hsd-btn--ghost-dark:hover { border-color: var(--color-paper); background: #1B2125; color: var(--color-paper); }
.hsd-btn--ghost-dark:hover i { transform: translateY(-3px); }

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

.hsd-hero { background: var(--color-ink); color: var(--color-paper); position: relative; overflow: hidden; }
.hsd-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 3px;
  background: var(--color-accent);
}
.hsd-hero__grid {
  padding-top: clamp(44px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hsd-hero__copy { padding-bottom: clamp(44px, 6vw, 80px); }
.hsd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-steel-600);
  padding: 8px 14px;
  margin-bottom: 26px;
}
.hsd-hero__badge-dot { width: 6px; height: 6px; background: var(--color-accent); }
.hsd-hero__badge-text {
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C3C9CD;
}
.hsd-hero__title {
  font-weight: 300;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hsd-hero__title p { margin: 0; }
.hsd-hero__title strong, .hsd-hero__title b { font-weight: 500; }
.hsd-hero__text {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.6;
  color: #C3C9CD;
  max-width: 54ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hsd-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hsd-hero__meta { font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #8A9299; margin: 0; }
.hsd-hero__media {
  align-self: stretch;
  min-height: clamp(280px, 42vw, 520px);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.hsd-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Platzhalter-Raster für noch fehlende Fotos */
.hsd-placeholder--dark { background: repeating-linear-gradient(135deg, #22282C 0px, #22282C 10px, #1B2125 10px, #1B2125 20px); }
.hsd-placeholder--light { background: repeating-linear-gradient(135deg, #EDEEEF 0px, #EDEEEF 8px, #E6E7E9 8px, #E6E7E9 16px); }
.hsd-placeholder__label {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7E888F;
  background: var(--color-ink);
  padding: 8px 12px;
  position: relative;
}

/* --- Spec-Band (Kennzahlen, dunkel) --------------------------------------- */

.hsd-specband { background: var(--color-ink); border-top: 1px solid #2A3136; }
.hsd-specband__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: #2A3136;
}
.hsd-specband__item { background: var(--color-ink); padding: 26px 4px; transition: background 0.3s var(--ease); }
.hsd-specband__item:hover { background: #191E22; }
.hsd-specband__value {
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 32px);
  color: var(--color-paper);
  letter-spacing: -0.01em;
}
.hsd-specband__label {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A9299;
  margin-top: 8px;
}

/* --- Leistungen ----------------------------------------------------------- */

.hsd-cards-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.hsd-card-main {
  background: var(--color-ink);
  color: var(--color-paper);
  padding: clamp(30px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 3px solid var(--color-accent);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hsd-card-main:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(20, 23, 26, 0.28); }
.hsd-card-main__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hsd-card-main__icon {
  width: 52px;
  height: 52px;
  border: 1px solid #454C52;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 22px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.hsd-card-main:hover .hsd-card-main__icon { border-color: var(--color-accent); background: rgba(226, 87, 15, 0.08); }
.hsd-card-main__badge {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.hsd-card-main__title { font-weight: 500; font-size: clamp(24px, 2.6vw, 30px); margin: 0; letter-spacing: -0.01em; }
.hsd-card-main__text { font-size: 16.5px; line-height: 1.6; color: #C3C9CD; margin: 0; text-wrap: pretty; }
.hsd-card-main__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hsd-card-main__tags span {
  border: 1px solid var(--color-steel-600);
  padding: 6px 12px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #C3C9CD;
}

.hsd-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--color-steel-100);
  border: 1px solid var(--color-steel-100);
}
.hsd-card { background: #FFFFFF; padding: clamp(26px, 3vw, 36px); transition: background 0.3s var(--ease); }
.hsd-card:hover { background: var(--color-surface); }
.hsd-card__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-steel-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-ink);
  font-size: 18px;
  margin-bottom: 22px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hsd-card:hover .hsd-card__icon { border-color: var(--color-accent-ink); transform: translateY(-3px); }
.hsd-card__title { font-weight: 500; font-size: 21px; margin: 0 0 10px; letter-spacing: -0.005em; }
.hsd-card__text { font-size: 16px; line-height: 1.6; color: var(--color-steel-500); margin: 0; text-wrap: pretty; }

/* --- Maschinenpark -------------------------------------------------------- */

.hsd-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1px;
  background: var(--color-steel-100);
  border: 1px solid var(--color-steel-100);
  margin-bottom: 16px;
}
.hsd-kpi { background: #FFFFFF; padding: 28px 24px; min-width: 0; transition: background 0.3s var(--ease); }
.hsd-kpi:hover { background: var(--color-surface); }
.hsd-kpi:hover .hsd-kpi__value { color: var(--color-accent-ink); }
.hsd-kpi__value {
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.015em;
  color: var(--color-ink);
  overflow-wrap: anywhere;
  transition: color 0.3s var(--ease);
}
.hsd-kpi__label {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-steel-400);
  margin-top: 10px;
}

.hsd-specs { border: 1px solid var(--color-steel-100); background: #FFFFFF; }
.hsd-specs__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 6px 32px;
  padding: 20px clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid #EDEFF0;
  border-left: 2px solid transparent;
  transition: border-left-color 0.25s var(--ease), background 0.25s var(--ease);
}
.hsd-specs__row:hover { border-left-color: var(--color-accent); background: #FDFDFC; }
.hsd-specs__key {
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-steel-400);
  min-width: 0;
  overflow-wrap: anywhere;
}
.hsd-specs__value { font-size: 16.5px; line-height: 1.55; color: var(--color-ink); grid-column: span 2; min-width: 0; overflow-wrap: anywhere; }
.hsd-specs__note {
  padding: 18px clamp(20px, 2.5vw, 32px);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A9299;
}

/* --- Qualität / Zertifikate ----------------------------------------------- */

.hsd-certs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hsd-certs__head .hsd-h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; margin: 14px 0 16px; }
.hsd-certs__head .hsd-intro { max-width: 46ch; font-size: 16.5px; }
.hsd-certs__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(50%, 150px), 1fr));
  gap: 12px;
}
.hsd-cert {
  border: 1px solid var(--color-steel-600);
  padding: 20px 16px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hsd-cert:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.hsd-cert__eyebrow { font-weight: 500; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #7E888F; }
.hsd-cert__name { font-weight: 500; font-size: 17px; color: var(--color-paper); overflow-wrap: anywhere; }
.hsd-cert__status { font-size: 12.5px; color: #8A9299; line-height: 1.4; }

/* --- Fertigungstiefe ------------------------------------------------------ */

.hsd-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}
.hsd-step {
  background: #FFFFFF;
  border: 1px solid var(--color-steel-100);
  border-top: 3px solid var(--color-accent);
  padding: 26px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 184px;
  min-width: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hsd-step:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20, 23, 26, 0.10); }
.hsd-step__nr { font-weight: 500; font-size: 12px; letter-spacing: 0.08em; color: #9AA3A9; }
.hsd-step__title { font-weight: 500; font-size: 19px; margin: 0; overflow-wrap: anywhere; }
.hsd-step__text { font-size: 15px; line-height: 1.55; color: var(--color-steel-500); margin: 0; }

/* --- Branchen ------------------------------------------------------------- */

.hsd-industries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--color-steel-100);
  border: 1px solid var(--color-steel-100);
  margin-bottom: 48px;
}
.hsd-industry {
  background: #FFFFFF;
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  transition: background 0.3s var(--ease);
}
.hsd-industry:hover { background: var(--color-surface); }
.hsd-industry:hover .hsd-industry__dot { transform: rotate(45deg) scale(1.25); }
.hsd-industry__dot { width: 7px; height: 7px; background: var(--color-accent); flex: none; transition: transform 0.3s var(--ease); }
.hsd-industry__name { font-weight: 500; font-size: 17px; min-width: 0; overflow-wrap: anywhere; }

.hsd-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(50%, 150px), 1fr));
  gap: 12px;
}
.hsd-logos__slot {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #8A9299;
}
.hsd-logos__slot img { max-width: 80%; max-height: 60px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s var(--ease), opacity 0.3s var(--ease); }
.hsd-logos__slot img:hover { filter: none; opacity: 1; }

/* --- Unternehmen ---------------------------------------------------------- */

.hsd-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hsd-about__media {
  min-height: clamp(280px, 34vw, 440px);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
}
.hsd-about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hsd-about__text { font-size: 17px; line-height: 1.7; color: #C3C9CD; font-weight: 300; }
.hsd-about__text p { margin: 0 0 20px; text-wrap: pretty; }
.hsd-about__text p:last-child { margin-bottom: 32px; }
.hsd-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 1px;
  background: #2A3136;
  border: 1px solid #2A3136;
}
.hsd-fact { background: var(--color-ink); padding: 22px 20px; min-width: 0; transition: background 0.3s var(--ease); }
.hsd-fact:hover { background: #191E22; }
.hsd-fact__title { font-weight: 500; font-size: 17px; margin-bottom: 6px; overflow-wrap: anywhere; }
.hsd-fact__text { font-size: 14.5px; line-height: 1.5; color: #8A9299; }

/* --- Karriere ------------------------------------------------------------- */

.hsd-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--color-steel-100);
  border: 1px solid var(--color-steel-100);
  margin-bottom: 16px;
}
.hsd-benefit { background: #FFFFFF; padding: 28px 24px; min-width: 0; transition: background 0.3s var(--ease); }
.hsd-benefit:hover { background: var(--color-surface); }
.hsd-benefit:hover .hsd-benefit__dot { transform: rotate(45deg) scale(1.25); }
.hsd-benefit__dot { width: 7px; height: 7px; background: var(--color-accent); margin-bottom: 18px; transition: transform 0.3s var(--ease); }
.hsd-benefit__title { font-weight: 500; font-size: 18px; margin: 0 0 8px; overflow-wrap: anywhere; }
.hsd-benefit__text { font-size: 16px; line-height: 1.6; color: var(--color-steel-500); margin: 0; text-wrap: pretty; }

.hsd-career-panel {
  border: 1px solid var(--color-steel-100);
  background: #FFFFFF;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.hsd-career-panel__jobs { padding: clamp(28px, 3.5vw, 44px); border-right: 1px solid var(--color-steel-100); }
.hsd-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-steel-100);
  color: var(--color-ink);
  min-width: 0;
}
.hsd-job:hover { color: var(--color-accent-ink); }
.hsd-job:hover .hsd-job__arrow { transform: translateX(5px); }
.hsd-job__title { display: block; font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.hsd-job__meta { display: block; font-size: 14px; color: #5A636A; margin-top: 4px; }
.hsd-job__arrow { font-size: 15px; flex: none; transition: transform 0.3s var(--ease); }
.hsd-career-panel__note { font-size: 15px; line-height: 1.6; color: var(--color-steel-500); margin: 22px 0 0; }

.hsd-career-panel__contact { padding: clamp(28px, 3.5vw, 44px); background: var(--color-surface); }
.hsd-contact-person { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.hsd-contact-person__photo {
  width: 88px;
  height: 88px;
  flex: none;
  background: repeating-linear-gradient(135deg, #E6E7E9 0px, #E6E7E9 8px, #DDDEE0 8px, #DDDEE0 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--color-steel-400);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
}
.hsd-contact-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.hsd-contact-person__name { font-weight: 500; font-size: 19px; }
.hsd-contact-person__role { font-size: 15px; color: var(--color-steel-500); margin-top: 4px; }
.hsd-contact-person__hours { font-weight: 500; font-size: 12px; letter-spacing: 0.06em; color: var(--color-steel-400); margin-top: 8px; }

.hsd-contact-actions { display: flex; flex-direction: column; gap: 12px; }
.hsd-contact-actions a {
  padding: 16px 22px;
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hsd-contact-actions a:hover { transform: translateY(-2px); }
.hsd-contact-actions i { transition: transform 0.25s var(--ease); }
.hsd-contact-actions a:hover i { transform: translateX(3px); }
.hsd-contact-actions__primary { background: var(--color-ink); color: var(--color-paper); }
.hsd-contact-actions__primary:hover { background: var(--color-accent-ink); color: var(--color-paper); }
.hsd-contact-actions__secondary { border: 1px solid var(--color-steel-200); color: var(--color-ink); background: #FFFFFF; overflow-wrap: anywhere; }
.hsd-contact-actions__secondary:hover { border-color: var(--color-ink); color: var(--color-ink); }

/* --- Kontakt / Formular --------------------------------------------------- */

.hsd-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 1px;
  background: var(--color-steel-100);
  border: 1px solid var(--color-steel-100);
}
.hsd-contact-grid__form { background: #FFFFFF; padding: clamp(28px, 3.5vw, 44px); min-width: 0; }
.hsd-contact-grid__info {
  background: #FFFFFF;
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}
.hsd-contact-grid__info .hsd-mono-label { margin: 0 0 12px; }
.hsd-contact-grid__address { font-size: 17px; line-height: 1.65; margin: 0; color: var(--color-ink); }
.hsd-contact-grid__pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 20px;
}
.hsd-contact-grid__pair a { font-weight: 500; font-size: 19px; color: var(--color-ink); overflow-wrap: anywhere; }
.hsd-contact-grid__pair a:hover { color: var(--color-accent-ink); }
.hsd-contact-grid__map {
  flex: 1;
  min-height: 220px;
  border: 1px solid var(--color-steel-100);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.hsd-contact-grid__map .hsd-placeholder__label { color: #5A636A; background: #FFFFFF; }

/* EXT:form im HSD-Look */
.hsd-form { display: flex; flex-direction: column; gap: 20px; }
.hsd-form h2 { display: none; }
.hsd-form form { display: flex; flex-direction: column; gap: 20px; }
.hsd-form label,
.hsd-form .hsd-form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-steel-600);
  margin-bottom: 8px;
}
.hsd-form input[type='text'],
.hsd-form input[type='email'],
.hsd-form input[type='tel'],
.hsd-form textarea {
  width: 100%;
  border: 1px solid var(--color-steel-200);
  background: var(--color-paper);
  padding: 15px 16px;
  font-size: 16px;
  color: var(--color-ink);
  outline: none;
  min-width: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.hsd-form textarea { resize: vertical; }
.hsd-form input:focus,
.hsd-form textarea:focus {
  border-color: var(--color-accent-ink);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(194, 75, 11, 0.15);
}
.hsd-form input[type='file'] { font-size: 15px; }
.hsd-form .hsd-form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--color-steel-500); }
.hsd-form input[type='checkbox'] { width: 20px; height: 20px; accent-color: var(--color-accent-ink); flex: none; }
.hsd-form button[type='submit'] {
  background: var(--color-accent);
  color: #FFFFFF;
  border: none;
  padding: 18px 30px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  min-height: 56px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.hsd-form button[type='submit']:hover { background: var(--color-ink); transform: translateY(-2px); }
.hsd-form .error, .hsd-form .f3-form-error { border-color: var(--color-accent) !important; }
.hsd-form-message {
  margin: 0;
  border-left: 3px solid var(--color-accent-ink);
  padding: 14px 16px;
  background: var(--color-surface);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-ink);
}

/* --- Suche (bw_search) im HSD-Look ----------------------------------------- */

/* Doppelte Klasse: gewinnt gegen die Vorgaben in search.css,
   unabhängig von der Ladereihenfolge der Stylesheets. */
.bwsearch.bwsearch {
  --bwsearch-accent: var(--color-accent);
  --bwsearch-accent-text: #FFFFFF;
  --bwsearch-border: var(--color-steel-200);
  --bwsearch-surface: #FFFFFF;
  --bwsearch-surface-alt: var(--color-surface);
  --bwsearch-radius: 0;
}
.bwsearch.bwsearch a { color: var(--color-accent-ink); }
.bwsearch.bwsearch a:hover { color: var(--color-ink); }

/* --- Inhalte auf Standardseiten (Rechtliches, Suche) ----------------------- */

main > .frame,
main > .frame-default {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--container-pad);
}

/* --- Footer --------------------------------------------------------------- */

.hsd-footer { background: var(--color-ink); color: #8A9299; padding: clamp(48px, 6vw, 80px) 0 32px; }
.hsd-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2A3136;
}
.hsd-footer__logo { display: block; margin-bottom: 18px; }
.hsd-footer__logo img { display: block; height: 44px; width: auto; }
.hsd-footer__claim { font-size: 15px; line-height: 1.65; margin: 0 0 14px; max-width: 34ch; }
.hsd-footer__tagline {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-paper);
  margin: 0;
}
.hsd-footer__heading {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-paper);
  margin: 0 0 16px;
}
.hsd-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.hsd-footer__links a { color: #8A9299; }
.hsd-footer__links a:hover { color: var(--color-accent); }
.hsd-footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #5F686E;
}

/* --- Art Direction 2026 -------------------------------------------------- */

:root {
  --color-ink: #0b0e10;
  --color-paper: #f4f1ea;
  --color-surface: #e9e6df;
  --color-accent: #ff5a1f;
  --color-accent-ink: #d9430d;
  --container-max: 1380px;
  --section-pad: clamp(88px, 11vw, 164px);
}

body {
  background: var(--color-paper);
  background-image: linear-gradient(90deg, rgba(11, 14, 16, .025) 1px, transparent 1px);
  background-size: 8.333vw 100%;
}

.hsd-header {
  background: rgba(244, 241, 234, .88);
  border-bottom-color: rgba(11, 14, 16, .12);
  backdrop-filter: blur(18px) saturate(140%);
}

.hsd-header__bar { height: 88px; }
.hsd-brand img { height: 45px; }
.hsd-nav { gap: clamp(18px, 2.2vw, 38px); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.hsd-header__cta { background: var(--color-ink); padding-inline: 24px; }
.hsd-header__cta:hover { background: var(--color-accent); }

.hsd-hero {
  min-height: calc(100svh - 88px);
  isolation: isolate;
  background: #090c0e;
}
.hsd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 8.333vw 100%, 100% 88px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.hsd-hero::after {
  top: auto;
  bottom: 0;
  left: 0;
  width: clamp(120px, 17vw, 260px);
  height: 12px;
}
.hsd-hero__grid {
  min-height: calc(100svh - 88px);
  padding-top: 0;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  gap: 0;
  align-items: stretch;
}
.hsd-hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(70px, 10vh, 130px) clamp(30px, 5vw, 76px) clamp(70px, 10vh, 130px) 0;
}
.hsd-hero__badge { border: 0; border-left: 2px solid var(--color-accent); padding: 4px 0 4px 16px; margin-bottom: 34px; }
.hsd-hero__badge-dot { display: none; }
.hsd-hero__badge-text { font-size: 10px; letter-spacing: .26em; color: #fff; }
.hsd-hero__title {
  width: min(850px, 64vw);
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: .94;
  letter-spacing: -.055em;
  margin-bottom: 34px;
}
.hsd-hero__title .hsd-accent { display: inline-block; font-style: italic; padding-right: .08em; }
.hsd-hero__text { max-width: 46ch; font-size: clamp(16px, 1.4vw, 20px); border-left: 1px solid #4c555b; padding-left: 22px; }
.hsd-hero__ctas { margin-top: 38px; }
.hsd-btn { min-height: 64px; padding: 20px 28px; font-size: 15px; letter-spacing: .02em; }
.hsd-btn--primary { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.hsd-hero__media {
  margin-right: calc(var(--container-pad) * -1);
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.hsd-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090c0e 0, transparent 28%), linear-gradient(0deg, rgba(9,12,14,.48), transparent 45%);
}
.hsd-hero__media img { filter: saturate(.82) contrast(1.08); transform: scale(1.02); }
.hsd-hero__image-index {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 26px;
  padding: 8px 11px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  font-size: 10px;
  letter-spacing: .2em;
}

.hsd-specband { border: 0; background: var(--color-accent); color: var(--color-ink); }
.hsd-specband__grid { background: transparent; gap: 0; }
.hsd-specband__item { background: transparent; padding: 38px clamp(16px, 2.4vw, 34px); border-right: 1px solid rgba(11,14,16,.25); }
.hsd-specband__item:first-child { padding-left: 0; }
.hsd-specband__item:hover { background: rgba(255,255,255,.1); }
.hsd-specband__value { color: var(--color-ink); font-size: clamp(30px, 3vw, 46px); font-weight: 500; }
.hsd-specband__label { color: rgba(11,14,16,.7); }

.hsd-kicker { color: var(--color-ink); font-size: 10px; letter-spacing: .27em; }
.hsd-kicker::before { width: 46px; height: 1px; }
.hsd-h2 { font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -.045em; margin-top: 24px; }
.hsd-intro { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.hsd-section-head { max-width: 78ch; }
.hsd-section-head--split { grid-template-columns: 1.2fr .8fr; }

.hsd-cards-main { gap: 2px; margin-bottom: 2px; }
.hsd-card-main { min-height: 420px; justify-content: flex-end; border: 0; padding: clamp(34px, 4vw, 58px); position: relative; overflow: hidden; }
.hsd-card-main::before { content: attr(aria-label); position: absolute; inset: 0; background: radial-gradient(circle at 90% 0, rgba(255,90,31,.2), transparent 42%); }
.hsd-card-main::after { content: ''; position: absolute; top: 0; right: 0; width: 90px; height: 90px; border-top: 1px solid var(--color-accent); border-right: 1px solid var(--color-accent); }
.hsd-card-main__head, .hsd-card-main__title, .hsd-card-main__text, .hsd-card-main__tags { position: relative; z-index: 1; }
.hsd-card-main__title { font-size: clamp(34px, 4vw, 54px); letter-spacing: -.04em; }
.hsd-card-main__icon { width: 64px; height: 64px; border-radius: 50%; }
.hsd-card-main:hover { transform: none; box-shadow: none; background: #151a1d; }
.hsd-cards-grid { border: 0; background: transparent; gap: 0; }
.hsd-card { background: transparent; border-top: 1px solid rgba(11,14,16,.2); border-right: 1px solid rgba(11,14,16,.2); padding: 38px 30px 48px 0; margin-right: 30px; }
.hsd-card:hover { background: transparent; }
.hsd-card__icon { border-radius: 50%; background: var(--color-accent); color: var(--color-ink); border: 0; }

.hsd-section--surface { background: #dfdcd4; border: 0; }
.hsd-kpis, .hsd-industries, .hsd-benefits { gap: 12px; border: 0; background: transparent; }
.hsd-kpi, .hsd-industry, .hsd-benefit { background: var(--color-paper); }
.hsd-kpi { min-height: 180px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.hsd-kpi__value { font-size: clamp(42px, 5vw, 68px); letter-spacing: -.05em; }
.hsd-specs { margin-top: 12px; border: 0; }

.hsd-step { min-height: 280px; border: 0; border-top: 1px solid var(--color-ink); background: transparent; padding: 28px 20px 38px 0; }
.hsd-step:hover { transform: none; box-shadow: none; border-top-width: 5px; border-top-color: var(--color-accent); }
.hsd-step__nr { font-size: 38px; font-weight: 300; color: var(--color-accent); letter-spacing: -.04em; }
.hsd-step__title { margin-top: auto; font-size: 23px; }

.hsd-about { grid-template-columns: 1.15fr .85fr; }
.hsd-about__media { min-height: 620px; clip-path: polygon(0 0, 93% 0, 100% 9%, 100% 100%, 0 100%); }
.hsd-section--dark { background: #0b0e10; }
.hsd-facts { border: 0; background: transparent; gap: 1px; }
.hsd-fact { border-top: 1px solid #3b4247; padding-left: 0; }

.hsd-cert { min-height: 160px; border-color: #3b4247; padding: 26px; }
.hsd-cert__name { font-size: 22px; }
.hsd-career-panel, .hsd-contact-grid { border: 0; box-shadow: 0 24px 70px rgba(11,14,16,.08); }
.hsd-contact-person__photo { border-radius: 50%; }
.hsd-contact-actions__primary { background: var(--color-accent); color: var(--color-ink); }

.hsd-footer { padding-top: clamp(70px, 9vw, 120px); }
.hsd-footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
.hsd-footer__logo img { height: 58px; }

@media (max-width: 900px) {
  .hsd-header__bar { height: 72px; }
  .hsd-hero { min-height: auto; }
  .hsd-hero__grid { min-height: auto; grid-template-columns: 1fr; }
  .hsd-hero__copy { padding: 72px 0 54px; }
  .hsd-hero__title { width: 100%; font-size: clamp(46px, 12vw, 76px); }
  .hsd-hero__media { min-height: 55vw; margin: 0 calc(var(--container-pad) * -1); clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }
  .hsd-section-head--split, .hsd-about { grid-template-columns: 1fr; }
  .hsd-about__media { min-height: 58vw; }
  .hsd-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { background-size: 25vw 100%; }
  .hsd-hero__title { font-size: 12.5vw; }
  .hsd-hero__ctas, .hsd-btn { width: 100%; }
  .hsd-btn { justify-content: space-between; }
  .hsd-specband__grid { grid-template-columns: repeat(2, 1fr); }
  .hsd-specband__item { border-bottom: 1px solid rgba(11,14,16,.25); }
  .hsd-h2 { font-size: 12vw; }
  .hsd-card-main { min-height: 360px; }
  .hsd-footer__grid { grid-template-columns: 1fr; }
}

/* --- Experience layer ---------------------------------------------------- */

.hsd-mobile-action { display: none; }

.hsd-subhero { min-height: clamp(380px, 54vw, 680px); position: relative; overflow: hidden; display: flex; align-items: flex-end; background: var(--color-ink); color: #fff; }
.hsd-subhero__image { position: absolute; inset: 0; }
.hsd-subhero__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,11,13,.94) 0, rgba(8,11,13,.62) 48%, rgba(8,11,13,.16)), linear-gradient(0deg, rgba(8,11,13,.76), transparent 55%); }
.hsd-subhero__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.1); }
.hsd-subhero__content { position: relative; z-index: 1; width: 100%; padding-top: 100px; padding-bottom: clamp(54px, 8vw, 110px); }
.hsd-subhero__content span { display: block; color: var(--color-accent); font-size: 10px; letter-spacing: .24em; margin-bottom: 22px; }
.hsd-subhero__content h1 { width: min(850px, 86vw); margin: 0; font-weight: 300; font-size: clamp(52px, 8vw, 112px); line-height: .92; letter-spacing: -.055em; }
.hsd-subhero__content i { display: block; width: clamp(90px, 14vw, 200px); height: 8px; background: var(--color-accent); margin-top: 34px; }
.hsd-subhero--3, .hsd-subhero--4, .hsd-subhero--5 { min-height: clamp(300px, 38vw, 480px); }
.hsd-subhero--3 .hsd-subhero__image, .hsd-subhero--4 .hsd-subhero__image, .hsd-subhero--5 .hsd-subhero__image { opacity: .46; }

.hsd-machine-stage {
  position: relative;
  margin: clamp(30px, 5vw, 72px) 0 12px;
  min-height: clamp(420px, 63vw, 780px);
  overflow: hidden;
  background: #0b0e10;
}
.hsd-machine-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hsd-machine-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,14,16,.12), transparent 60%), linear-gradient(0deg, rgba(11,14,16,.8), transparent 50%); pointer-events: none; }
.hsd-machine-stage__scan { position: absolute; z-index: 2; top: 0; bottom: 0; width: 1px; left: 18%; background: var(--color-accent); box-shadow: 0 0 30px 4px rgba(255,90,31,.25); animation: hsd-scan 7s ease-in-out infinite alternate; }
@keyframes hsd-scan { to { left: 82%; } }
.hsd-hotspot { position: absolute; z-index: 3; border: 0; background: transparent; color: #fff; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.hsd-hotspot span { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-ink); font-size: 10px; box-shadow: 0 0 0 8px rgba(255,90,31,.16); animation: hsd-pulse 2.2s infinite; }
.hsd-hotspot b { opacity: 0; translate: -8px 0; background: rgba(11,14,16,.88); padding: 9px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; transition: .25s var(--ease); }
.hsd-hotspot:hover b, .hsd-hotspot:focus b { opacity: 1; translate: 0; }
.hsd-hotspot--one { left: 24%; top: 44%; }
.hsd-hotspot--two { right: 25%; top: 25%; }
@keyframes hsd-pulse { 50% { box-shadow: 0 0 0 16px rgba(255,90,31,0); } }
.hsd-machine-stage__caption { position: absolute; z-index: 3; left: clamp(24px, 4vw, 58px); bottom: clamp(22px, 4vw, 52px); color: #fff; }
.hsd-machine-stage__caption span { display: block; font-size: 9px; letter-spacing: .25em; color: var(--color-accent); margin-bottom: 8px; }
.hsd-machine-stage__caption strong { font-size: clamp(28px, 4vw, 54px); font-weight: 300; letter-spacing: -.04em; }

.hsd-case { margin-top: clamp(70px, 10vw, 140px); display: grid; grid-template-columns: .68fr 1.32fr; background: var(--color-ink); color: #fff; }
.hsd-case__copy { padding: clamp(36px, 5vw, 72px); align-self: center; }
.hsd-case__copy .hsd-kicker { color: var(--color-accent); }
.hsd-case__copy h3 { font-size: clamp(36px, 4.5vw, 64px); line-height: .98; letter-spacing: -.045em; font-weight: 300; margin: 24px 0; }
.hsd-case__copy > p { color: #aeb5b9; line-height: 1.7; }
.hsd-case dl { margin: 34px 0 0; border-top: 1px solid #343b41; }
.hsd-case dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid #343b41; font-size: 12px; }
.hsd-case dt { color: #71787d; text-transform: uppercase; letter-spacing: .1em; }
.hsd-case dd { margin: 0; }
.hsd-compare { position: relative; min-height: 600px; overflow: hidden; }
.hsd-compare > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hsd-compare__veil { position: absolute; inset: 0 auto 0 0; width: var(--compare, 48%); overflow: hidden; background: rgba(11,14,16,.68); backdrop-filter: grayscale(1) contrast(1.25); border-right: 1px solid var(--color-accent); }
.hsd-compare__veil span { position: absolute; top: 26px; left: 26px; width: 140px; color: #fff; font-size: 9px; letter-spacing: .2em; }
.hsd-compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.hsd-compare > i { position: absolute; left: var(--compare, 48%); top: 50%; width: 44px; height: 44px; translate: -50% -50%; border-radius: 50%; background: var(--color-accent); pointer-events: none; }
.hsd-compare > i::before, .hsd-compare > i::after { content: ''; position: absolute; top: 17px; width: 8px; height: 8px; border-top: 1px solid #0b0e10; border-left: 1px solid #0b0e10; }
.hsd-compare > i::before { left: 11px; rotate: -45deg; }
.hsd-compare > i::after { right: 11px; rotate: 135deg; }

.hsd-process { position: relative; }
.hsd-process__track { position: absolute; top: 52px; left: 0; right: 0; height: 2px; background: #c8c5bf; }
.hsd-process__track span { display: block; width: var(--process-progress, 0%); height: 100%; background: var(--color-accent); transition: width .15s linear; }
.hsd-process__track i { position: absolute; left: var(--process-progress, 0%); top: 50%; width: 22px; height: 22px; translate: -50% -50%; rotate: 45deg; background: var(--color-accent); transition: left .15s linear; }
.hsd-step__marker { width: 12px; height: 12px; border-radius: 50%; background: var(--color-paper); border: 2px solid #c8c5bf; position: absolute; top: 47px; left: 0; z-index: 2; }
.hsd-step { position: relative; padding-top: 84px; }
.hsd-step.is-passed .hsd-step__marker { background: var(--color-accent); border-color: var(--color-accent); }

.hsd-form-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; color: #8a9299; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.hsd-form-progress span.is-active { color: var(--color-ink); font-weight: 700; }
.hsd-form-progress i { flex: 1; height: 1px; background: #d5d9dc; }
.hsd-form select { width: 100%; padding: 15px 42px 15px 16px; border: 1px solid var(--color-steel-200); background: var(--color-paper); color: var(--color-ink); font-size: 16px; }
.hsd-form .form-navigation { display: flex; gap: 10px; justify-content: space-between; }
.hsd-form .form-navigation button { min-height: 52px; padding: 14px 22px; border: 1px solid var(--color-ink); background: transparent; font-weight: 500; }
.hsd-form .form-navigation button:last-child { background: var(--color-accent); border-color: var(--color-accent); }

.hsd-form .form-navigation .btn {
  color: var(--color-ink) !important;
  background: #fff !important;
  border-color: var(--color-ink) !important;
  box-shadow: none;
}
.hsd-form .form-navigation .btn:hover {
  color: #fff !important;
  background: var(--color-ink) !important;
}
.hsd-form .form-navigation .btn:last-child {
  color: #fff !important;
  background: var(--color-accent-ink) !important;
  border-color: var(--color-accent-ink) !important;
}
.hsd-form .form-navigation .btn:last-child:hover {
  background: var(--color-ink) !important;
  border-color: var(--color-ink) !important;
}

@media (max-width: 1080px) {
  .hsd-mobile-action { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--color-steel-200); color: var(--color-ink); }
  .hsd-header__actions { gap: 7px; }
  .hsd-burger { width: 42px; height: 42px; }
}
@media (max-width: 800px) {
  .hsd-case { grid-template-columns: 1fr; }
  .hsd-compare { min-height: 70vw; }
  .hsd-process__track { display: none; }
  .hsd-step__marker { display: none; }
  .hsd-step { padding-top: 28px; }
}
@media (max-width: 440px) {
  .hsd-header__bar { gap: 8px; }
  .hsd-brand img { height: 29px; }
  .hsd-header__actions { gap: 5px; }
  .hsd-mobile-action, .hsd-burger { width: 38px; height: 38px; }
  .hsd-machine-stage { min-height: 110vw; }
  .hsd-hotspot b { display: none; }
  .hsd-form-progress { gap: 6px; font-size: 8px; }
}

/* --- Final hero and data refinements ------------------------------------- */

.hsd-hero__grid { position: static; grid-template-columns: 1fr; }
.hsd-hero__copy { width: min(760px, 62vw); min-height: calc(100svh - 88px); display: flex; flex-direction: column; justify-content: center; }
.hsd-hero__title { width: min(980px, 78vw); }
.hsd-hero__media { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; min-height: 100%; margin: 0; clip-path: none; }
.hsd-hero__media::after { background: linear-gradient(90deg, rgba(7,10,12,.96) 0%, rgba(7,10,12,.82) 35%, rgba(7,10,12,.24) 72%, rgba(7,10,12,.08)), linear-gradient(0deg, rgba(7,10,12,.62), transparent 52%); }
.hsd-hero__media img { object-position: center; }
.hsd-hero__image-index { right: var(--container-pad); }

.hsd-specband__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hsd-specband__item, .hsd-specband__item:first-child { padding: 34px clamp(18px, 2.3vw, 38px); min-width: 0; }
.hsd-specband__value { font-size: clamp(24px, 2.35vw, 38px); line-height: 1; white-space: nowrap; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.hsd-specband__label { font-size: 10px; line-height: 1.35; }

.hsd-subhero__pattern { position: absolute; inset: 0; background: radial-gradient(circle at 76% 42%, rgba(255,90,31,.18), transparent 22%), repeating-linear-gradient(135deg, #171c1f 0 1px, transparent 1px 34px), linear-gradient(120deg, #080b0d, #22282c); }
.hsd-subhero__pattern::before { content: ''; position: absolute; width: 32vw; aspect-ratio: 1; right: 9vw; top: 50%; translate: 0 -50%; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 4vw rgba(255,255,255,.025), 0 0 0 8vw rgba(255,255,255,.018); }

.hsd-contact-grid__map { position: relative; overflow: hidden; align-items: center; gap: 16px; background: linear-gradient(135deg, #e3e0d8, #f5f2eb); }
.hsd-contact-grid__map::before, .hsd-contact-grid__map::after { content: ''; position: absolute; inset: -30%; background: repeating-linear-gradient(72deg, transparent 0 32px, rgba(11,14,16,.08) 33px 35px, transparent 36px 78px); rotate: 12deg; }
.hsd-contact-grid__map::after { rotate: -47deg; opacity: .55; }
.hsd-map-pin, .hsd-map-address { position: relative; z-index: 1; }
.hsd-map-pin { width: 46px; height: 46px; display: grid; place-items: center; background: var(--color-accent); color: var(--color-ink); border-radius: 50% 50% 50% 0; rotate: -45deg; }
.hsd-map-pin i { rotate: 45deg; }
.hsd-map-address { font-size: 16px; font-weight: 500; }
.hsd-map-address small { display: block; margin-top: 5px; font-size: 10px; color: #6b757d; letter-spacing: .08em; }

.hsd-material-sample { position: relative; overflow: hidden; background: linear-gradient(135deg, #d6d8d8, #f7f7f5 40%, #afb3b4 41%, #e9e9e6 70%, #b5b8b9); border: 1px solid rgba(11,14,16,.13); }
.hsd-material-sample::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,.2) 4px); mix-blend-mode: overlay; }
.hsd-material-sample span { position: relative; padding: 7px 10px; background: rgba(11,14,16,.86); color: #fff; font-size: 9px; letter-spacing: .16em; }

@media (max-width: 900px) {
  .hsd-hero__copy { width: 100%; min-height: calc(100svh - 72px); padding-block: 82px; }
  .hsd-hero__title { width: 100%; }
  .hsd-hero__media { margin: 0; min-height: 100%; clip-path: none; }
  .hsd-hero__media::after { background: linear-gradient(90deg, rgba(7,10,12,.94), rgba(7,10,12,.36)), linear-gradient(0deg, rgba(7,10,12,.75), transparent 55%); }
}
@media (max-width: 680px) {
  .hsd-specband__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hsd-specband__item, .hsd-specband__item:first-child { padding: 26px 18px; }
  .hsd-specband__value { font-size: clamp(21px, 7vw, 30px); }
}

/* --- Stability corrections ------------------------------------------------ */

.hsd-cta-mobile { display: none; }
.hsd-brand { min-width: 150px; }
.hsd-brand img { max-width: 190px; object-fit: contain; }

.hsd-subhero { min-height: clamp(340px, 42vw, 540px); }
.hsd-subhero__content { padding-top: 70px; padding-bottom: clamp(46px, 6vw, 78px); }
.hsd-subhero__content h1 { font-size: clamp(46px, 7vw, 86px); }

.hsd-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.hsd-kpi { height: 100%; min-height: 160px; padding: clamp(22px, 2.4vw, 34px); }
.hsd-kpi__value { font-size: clamp(30px, 3.5vw, 50px); white-space: nowrap; }
.hsd-kpi__label { line-height: 1.4; }
.hsd-specs__value { grid-column: auto; }

.hsd-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; }
.hsd-step { height: 100%; min-height: 250px; padding: 28px 18px 32px 0; display: flex; }
.hsd-step__nr { line-height: 1; }
.hsd-step__title { min-height: 58px; margin-top: auto; display: flex; align-items: flex-end; line-height: 1.15; }
.hsd-step__text { min-height: 96px; }

@media (max-width: 1080px) {
  .hsd-brand { min-width: 118px; margin-right: auto; }
  .hsd-brand img { max-width: 145px; }
  .hsd-header__cta { display: flex; padding: 0 14px; min-height: 42px; font-size: 13px; }
  .hsd-cta-desktop { display: none; }
  .hsd-cta-mobile { display: inline; }
  .hsd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hsd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hsd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hsd-header__cta i { display: none; }
  .hsd-header__cta { padding-inline: 10px; }
  .hsd-brand { min-width: 82px; }
  .hsd-brand img { max-width: 104px; height: 30px; }
  .hsd-step { min-height: 230px; }
  .hsd-step__title, .hsd-step__text { min-height: 0; }
}
@media (max-width: 390px) {
  .hsd-header__cta { display: none; }
  .hsd-brand img { max-width: 92px; }
}
