/*
Theme Name: ENDOM Unternehmensgruppe
Theme URI: https://endomgruppe.de/
Author: ENDOM Unternehmensgruppe
Description: Eigenständiges, responsives WordPress-Theme für die ENDOM Unternehmensgruppe.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: endom-gruppe
*/
:root {
  --graphite: #1d292b;
  --graphite-deep: #121a1c;
  --warm-white: #f2f1ec;
  --paper: #fbfaf7;
  --stone: #a79b87;
  --line: rgba(29, 41, 43, 0.17);
  --turquoise: #01aec4;
  --sage: #9bb6a6;
  --orange: #ff5a00;
  --shell: min(1280px, calc(100vw - 64px));
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 76px; }
body {
  margin: 0;
  color: var(--graphite);
  background: var(--paper);
  font-family: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -80px;
  padding: 12px 16px;
  background: white;
  color: var(--graphite);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-shell { width: var(--shell); margin-inline: auto; }
.section { padding: 144px 0; }
.section--soft { background: var(--warm-white); }
.section--dark { color: white; background: var(--graphite); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 104px;
  padding: 0 max(32px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--graphite);
  background: rgba(251,250,247,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: height .35s var(--ease), background .35s, color .35s, border-color .35s;
}
.site-header.is-scrolled {
  height: 76px;
  background: rgba(251,250,247,.98);
  border-color: var(--line);
}
.brand { position: relative; display: block; width: 232px; height: 56px; }
.brand__logo { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.navigation { display: flex; align-items: center; gap: 32px; }
.navigation a {
  text-decoration: none;
  font-size: .875rem;
  letter-spacing: .04em;
  position: relative;
}
.navigation > a:not(.navigation__contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transition: right .25s var(--ease);
}
.navigation > a:hover::after, .navigation > a:focus-visible::after { right: 0; }
.navigation__contact {
  padding: 12px 20px;
  border: 1px solid currentColor;
  transition: background .2s, color .2s;
}
.navigation__contact:hover { background: var(--graphite); color: white; }
.menu-button { display: none; }

.hero {
  min-height: 720px;
  height: min(100svh, calc(39.63vw + 104px));
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--graphite);
  background: var(--warm-white);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  background-image: url("assets/endom-hero-hamburg-light.webp");
  background-position: center bottom;
  background-size: contain;
  background-repeat: no-repeat;
}
.hero__worker-logo {
  position: absolute;
  z-index: 2;
  left: 90.95%;
  bottom: 16.35vw;
  width: 2.25vw;
  min-width: 31px;
  max-width: 48px;
  height: auto;
  opacity: .88;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(16, 24, 26, .3));
  transform: rotate(.4deg);
  transform-origin: center;
}
.hero__shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(242,241,236,.995) 0%, rgba(242,241,236,.985) 30%, rgba(242,241,236,.94) 42%, rgba(242,241,236,.70) 52%, rgba(242,241,236,.12) 69%, rgba(242,241,236,0) 82%);
}
.hero__content { position: relative; z-index: 2; padding: 142px 50% 112px 0; }
.eyebrow {
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .74rem;
  font-weight: 650;
}
.eyebrow--light { color: rgba(255,255,255,.72); }
.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: Manrope, Inter, "Avenir Next", sans-serif;
  font-size: clamp(3.45rem, 4.35vw, 5.15rem);
  font-weight: 430;
  line-height: .98;
  letter-spacing: -.055em;
}
.hero__lead { max-width: 610px; margin: 36px 0 0; color: #536064; font-size: 1.12rem; line-height: 1.68; }
.hero__actions { display: flex; align-items: center; gap: 36px; margin-top: 46px; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .04em;
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.button:hover { transform: translateY(-2px); }
.button--light { color: var(--graphite); background: white; }
.button--light:hover { background: var(--warm-white); }
.button--dark { color: white; background: var(--graphite); }
.button--dark:hover { background: var(--graphite-deep); }
.button--outline { color: var(--graphite); background: transparent; border-color: var(--graphite); }
.button--outline:hover { color: white; background: var(--graphite); }
.text-link { display: inline-flex; align-items: center; gap: 14px; text-underline-offset: 5px; font-size: .86rem; }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(4px, 4px); }
.text-link--light { color: white; }
.hero__footer {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: max(32px, calc((100vw - 1280px) / 2));
  width: min(620px, calc(53vw - 50px));
  transform: none;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 34px;
  border-top: 1px solid var(--line);
  color: #6a7577;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.hero__footer span:not(:last-child)::after { content: "·"; margin-left: 34px; }

h2 {
  margin: 0;
  font-family: Manrope, Inter, "Avenir Next", sans-serif;
  font-size: clamp(2.7rem, 4.5vw, 5rem);
  font-weight: 440;
  line-height: 1.03;
  letter-spacing: -.05em;
}
.intro__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.intro__copy { max-width: 810px; margin: 40px 0 0; font-size: 1.18rem; line-height: 1.8; color: #536064; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--line); }
.fact { padding: 28px 16px 0 0; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); }
.fact:not(:first-child) { padding-left: 28px; }
.fact:last-child { border-right: 0; }
.fact strong { font: 440 clamp(2rem, 3vw, 3.5rem)/1 Manrope, sans-serif; letter-spacing: -.05em; }
.fact span { color: #667175; font-size: .82rem; }

.section-heading { display: grid; grid-template-columns: 1.6fr .7fr; align-items: end; gap: 80px; margin-bottom: 70px; }
.section-heading > p { max-width: 420px; margin: 0 0 6px; color: #606b6e; }
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.company-card {
  min-height: 470px;
  position: relative;
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border: 1px solid rgba(29,41,43,.08);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
.company-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
.company-card:hover { transform: translateY(-6px); box-shadow: 0 22px 64px rgba(29,41,43,.09); }
.company-card--absolut { --accent: var(--turquoise); }
.company-card--subito { --accent: var(--sage); }
.company-card--steinberg { --accent: var(--orange); }
.company-card__top { display: flex; justify-content: space-between; color: #6b7577; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.company-card__identity {
  min-height: 205px;
  margin: 26px 0 30px;
  padding: 30px 6px;
  display: flex;
  align-items: center;
  border-block: 1px solid rgba(29,41,43,.08);
}
.company-card__logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.company-card__logo--absolut { max-width: 96%; }
.company-card__logo--subito { max-width: 94%; }
.company-card__logo--steinberg {
  max-width: 100%;
  transform: scale(1.19) translateX(-9.45%);
  transform-origin: left center;
}
.company-card__bottom p { min-height: 82px; max-width: 34ch; margin: 0 0 24px; color: #596669; font-size: .96rem; line-height: 1.65; }
.card-link { padding: 0; color: var(--graphite); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 6px; cursor: pointer; font-size: .875rem; }
.card-link span { display: inline-block; margin-left: 8px; transition: transform .2s; }
.card-link:hover span { transform: translate(3px,-3px); }

.expertise__grid { display: grid; grid-template-columns: .85fr 1.25fr; gap: 100px; }
.expertise__intro { position: sticky; top: 130px; align-self: start; }
.expertise__intro h2 { font-size: clamp(2.6rem, 4.1vw, 4.7rem); }
.expertise__intro > p:last-child { max-width: 480px; margin: 34px 0 0; color: #657073; }
.expertise-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.expertise-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 8px 16px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .28s var(--ease);
}
.expertise-list li:hover { padding-left: 12px; }
.expertise-list span { grid-row: 1 / 3; color: #899193; font-size: .72rem; }
.expertise-list strong { font: 460 clamp(1.4rem, 2vw, 2rem)/1.2 Manrope, sans-serif; letter-spacing: -.025em; }
.expertise-list small { max-width: 62ch; color: #707a7c; font-size: .88rem; line-height: 1.6; }

.quality__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; }
.quality__statement { padding-right: 20px; }
.quality__statement > p:not(.eyebrow) { max-width: 580px; margin: 36px 0 34px; color: rgba(255,255,255,.68); }
.quality-list { border-top: 1px solid rgba(255,255,255,.2); }
.quality-list details { border-bottom: 1px solid rgba(255,255,255,.2); }
.quality-list summary { list-style: none; position: relative; padding: 28px 44px 28px 0; cursor: pointer; font-size: 1.08rem; }
.quality-list summary::-webkit-details-marker { display: none; }
.quality-list summary::after { content: "+"; position: absolute; right: 2px; top: 24px; font-size: 1.45rem; font-weight: 300; transition: transform .2s; }
.quality-list details[open] summary::after { transform: rotate(45deg); }
.quality-list summary span { margin-right: 18px; color: rgba(255,255,255,.42); font-size: .7rem; }
.quality-list details p { margin: -6px 46px 28px 38px; color: rgba(255,255,255,.62); font-size: .9rem; }

.career__grid { min-height: 480px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.career__label { color: rgba(29,41,43,.09); font: 630 clamp(4rem, 8vw, 9rem)/.78 Manrope, sans-serif; letter-spacing: -.07em; user-select: none; }
.career__content p:not(.eyebrow) { max-width: 590px; margin: 32px 0 38px; color: #657073; font-size: 1.04rem; }

.contact__grid { display: grid; grid-template-columns: 1fr .85fr; gap: 100px; }
.contact__copy { max-width: 580px; margin: 34px 0; color: #647073; }
.contact__details { max-width: 560px; margin: 0 0 34px; border-top: 1px solid var(--line); }
.contact__details > * { margin: 0; padding: 12px 0; display: grid; grid-template-columns: 112px 1fr; align-items: baseline; gap: 16px; color: #596669; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact__details span { color: #858e90; font-size: .7rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.contact__details strong { font-size: .9rem; font-weight: 500; }
.contact__details a strong { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.contact__details a:hover strong { text-decoration-color: currentColor; }
.contact-options__label { margin: 0 0 11px; color: #7a8587; font-size: .75rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.contact-options { display: flex; flex-wrap: wrap; gap: 9px; }
.contact-option { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--graphite); font-size: .875rem; letter-spacing: .06em; transition: background .2s, color .2s; }
.contact-option:hover, .contact-option.is-active { color: white; background: var(--graphite); }
.contact-form { padding: 38px; background: white; border: 1px solid rgba(29,41,43,.08); }
.contact-form__recipient { margin: 0 0 30px; padding-bottom: 14px; color: #788284; font-size: .75rem; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.contact-form__recipient strong { color: var(--graphite); font-weight: 650; letter-spacing: .09em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form label { display: block; margin-bottom: 26px; }
.contact-form label span { display: block; margin-bottom: 8px; color: #6f797b; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-form label span small { font-size: inherit; font-weight: 400; letter-spacing: .04em; text-transform: none; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 0; color: var(--graphite); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--graphite); box-shadow: 0 1px 0 var(--graphite); }
.form-status { min-height: 24px; margin: 16px 0 0; color: #5f6c6f; font-size: .78rem; }
.form-privacy { max-width: 60ch; margin: 18px 0 0; color: #737d7f; font-size: .76rem; line-height: 1.6; }
.form-privacy a { color: var(--graphite); text-underline-offset: 3px; }

.site-footer { padding: 72px 0 24px; color: white; background: var(--graphite-deep); }
.site-footer__top { display: flex; justify-content: space-between; align-items: end; padding-bottom: 70px; }
.site-footer__top img { width: 220px; }
.site-footer__contact { display: grid; justify-items: end; gap: 3px; }
.site-footer__contact p { margin: 0 0 8px; color: rgba(255,255,255,.54); }
.site-footer__contact a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .84rem; }
.site-footer__contact a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom { padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.42); font-size: .68rem; }
.site-footer__bottom div { display: flex; gap: 22px; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover,
.site-footer__bottom a[aria-current="page"] { color: white; text-decoration: underline; text-underline-offset: 4px; }

/* Legal pages */
.legal-page { background: var(--paper); }
.legal-hero {
  min-height: 560px;
  padding: 190px 0 90px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(242,241,236,.98), rgba(242,241,236,.92)),
    var(--warm-white);
  border-bottom: 1px solid var(--line);
}
.legal-hero__inner { position: relative; }
.legal-hero__inner::after {
  content: "ENDOM";
  position: absolute;
  right: 0;
  bottom: -28px;
  color: rgba(29,41,43,.045);
  font: 650 clamp(6rem, 15vw, 13rem)/.75 Manrope, Inter, sans-serif;
  letter-spacing: -.08em;
  pointer-events: none;
  user-select: none;
}
.legal-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 10px;
  margin-bottom: 54px;
  color: #687477;
  font-size: .82rem;
  text-underline-offset: 5px;
}
.legal-hero .eyebrow { position: relative; z-index: 1; }
.legal-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0;
  font: 430 clamp(4.4rem, 8.6vw, 8.5rem)/.9 Manrope, Inter, sans-serif;
  letter-spacing: -.065em;
}
.legal-hero__lead {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 38px 0 0;
  color: #5d696c;
  font-size: 1.08rem;
  line-height: 1.75;
}
.legal-content { padding: 120px 0 150px; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 790px); justify-content: space-between; gap: 90px; }
.legal-toc {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  border-top: 1px solid var(--line);
}
.legal-toc p {
  margin: 0;
  padding: 18px 0;
  color: #7a8486;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.legal-toc a {
  padding: 13px 0;
  color: #5e6a6d;
  text-decoration: none;
  font-size: .84rem;
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .2s var(--ease);
}
.legal-toc a:hover,
.legal-toc a:focus-visible { padding-left: 8px; color: var(--graphite); }
.legal-article { min-width: 0; }
.legal-section { scroll-margin-top: 110px; padding: 0 0 76px; margin: 0 0 76px; border-bottom: 1px solid var(--line); }
.legal-section:last-of-type { margin-bottom: 0; }
.legal-kicker {
  margin: 0 0 18px !important;
  color: #7c8688 !important;
  font-size: .7rem !important;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.legal-article h2 {
  max-width: 760px;
  margin: 0 0 34px;
  font-size: clamp(2.25rem, 4.1vw, 3.9rem);
  line-height: 1.02;
}
.legal-article h3 {
  margin: 0 0 18px;
  font: 470 clamp(1.28rem, 2.3vw, 1.72rem)/1.25 Manrope, Inter, sans-serif;
  letter-spacing: -.025em;
}
.legal-article p,
.legal-article li,
.legal-address {
  color: #566366;
  font-size: .98rem;
  line-height: 1.82;
}
.legal-article p { max-width: 74ch; margin: 0 0 22px; }
.legal-article p:last-child { margin-bottom: 0; }
.legal-article a { color: var(--graphite); text-underline-offset: 4px; }
.legal-entity {
  margin: 30px 0;
  padding: 30px 0 6px;
  border-top: 2px solid var(--graphite);
}
.legal-entity--primary { margin-top: 0; padding: 34px; background: var(--warm-white); border-top-width: 3px; }
.legal-entity > p { margin-bottom: 26px; }
.legal-data { margin: 0; border-top: 1px solid var(--line); }
.legal-data > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-data dt {
  color: #818b8d;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.legal-data dd { margin: 0; color: #4f5c5f; font-size: .9rem; line-height: 1.6; }
.legal-data--processing { margin: 30px 0; }
.legal-list { margin: 22px 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.legal-list li { padding: 15px 0 15px 24px; position: relative; border-bottom: 1px solid var(--line); }
.legal-list li::before { content: "—"; position: absolute; left: 0; color: #8d9698; }
.legal-note { margin: 32px 0; padding: 28px 30px; color: var(--graphite); background: var(--warm-white); border-left: 3px solid var(--stone); }
.legal-note--prototype { margin: 0 0 76px; border-left-color: var(--turquoise); }
.legal-note strong { display: block; margin-bottom: 8px; font-size: .9rem; letter-spacing: .04em; }
.legal-note p { margin: 0; color: #5b686b; font-size: .9rem; }
.legal-address { padding: 28px 30px; background: var(--warm-white); font-style: normal; }
.legal-updated { margin: 48px 0 0 !important; color: #899294 !important; font-size: .75rem !important; letter-spacing: .04em; }

/* WordPress menu plus editor-provided page fallback. */
.navigation__menu { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.navigation__menu .menu-item { margin: 0; padding: 0; }
.navigation__menu .menu-item:last-child a { padding: 12px 20px; border: 1px solid currentColor; }
.navigation__menu .menu-item:last-child a:hover { color: white; background: var(--graphite); }
.page-content { min-height: 60vh; padding-top: 150px; padding-bottom: 100px; }
.page-content__title { margin: 0 0 32px; font: 450 clamp(2.5rem, 6vw, 5rem)/1 Manrope, Inter, sans-serif; letter-spacing: -.05em; }
@media (max-width: 1120px) { .navigation__menu { gap: 20px; } }
@media (max-width: 780px) {
  .navigation__menu { display: grid; gap: 0; width: 100%; }
  .navigation__menu .menu-item:last-child a { margin-top: 22px; padding-inline: 18px; text-align: center; color: white; background: var(--graphite); }
}

.company-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 56px;
  overflow: auto;
  color: var(--graphite);
  background: var(--paper);
  border: 0;
  box-shadow: 0 35px 100px rgba(0,0,0,.28);
}
.company-dialog::backdrop { background: rgba(10,16,18,.72); backdrop-filter: blur(6px); }
.company-dialog__brand { min-height: 132px; margin: 0 0 30px; padding: 10px 48px 28px 0; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.company-dialog__brand img { width: min(100%, 520px); max-height: 112px; object-fit: contain; object-position: left center; }
.company-dialog .dialog-lead { font-size: 1.18rem; color: #526063; }
.company-dialog > p:not(.eyebrow):not(.dialog-lead) { margin: 18px 0 30px; color: #687376; }
.company-dialog__services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0 0 36px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.company-dialog__services li { padding: 12px 0; border-bottom: 1px solid var(--line); color: #536064; font-size: .875rem; }
.company-dialog__services li::before { content: "—"; margin-right: 10px; color: #9aa1a2; }
.company-dialog__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.company-dialog__actions .button span { margin-left: 10px; }
.dialog-close { position: absolute; right: 20px; top: 13px; border: 0; background: none; cursor: pointer; color: var(--graphite); font-size: 2rem; font-weight: 250; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  :root { --shell: min(100% - 44px, 920px); }
  .section { padding: 112px 0; }
  .hero__content { padding-right: 35%; }
  .hero h1 { font-size: clamp(3rem, 5.2vw, 3.75rem); }
  .hero__lead { max-width: 560px; font-size: 1rem; }
  .navigation { gap: 20px; }
  .navigation a { font-size: .82rem; }
  .company-grid { grid-template-columns: 1fr; }
  .company-card { min-height: 390px; }
  .company-card__identity { min-height: 180px; }
  .company-card__logo { max-width: 590px; }
  .company-card__logo--steinberg { transform: scale(1.24) translateX(-9.45%); }
  .company-card__bottom p { min-height: auto; max-width: 56ch; }
  .quality__grid, .contact__grid { gap: 60px; }
  .legal-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 60px; }
}

@media (max-width: 780px) {
  :root { --shell: calc(100vw - 32px); }
  .section { padding: 88px 0; }
  .site-header { height: 82px; padding: 0 16px; }
  .site-header.is-scrolled { height: 70px; }
  body.menu-is-open { overflow: hidden; }
  .brand { width: 184px; height: 46px; }
  .menu-button { display: flex; align-items: center; gap: 13px; padding: 8px 0; color: inherit; background: transparent; border: 0; text-transform: uppercase; font-size: .875rem; letter-spacing: .1em; }
  .menu-button__lines { width: 24px; display: grid; gap: 5px; }
  .menu-button__lines i { display: block; height: 1px; background: currentColor; transition: transform .25s, opacity .25s; }
  .menu-button[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .navigation {
    position: fixed;
    inset: 82px 0 0;
    padding: 42px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: var(--graphite);
    background: var(--warm-white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s, visibility .25s, transform .25s;
  }
  .site-header.is-scrolled .navigation { inset-block-start: 70px; }
  .navigation.is-open { opacity: 1; visibility: visible; transform: none; }
  .navigation a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .navigation__contact { margin-top: 22px; padding-inline: 18px !important; text-align: center; color: white; background: var(--graphite); }
  .hero { height: auto; min-height: 0; align-items: flex-start; }
  .hero__image { inset: auto 0 0; width: 100%; height: 39.63vw; background-position: center; background-size: 100% auto; }
  .hero__worker-logo { display: none; }
  .hero__shade { display: none; }
  .hero__content { padding: 136px 0 calc(39.63vw + 146px); }
  .hero h1 { font-size: clamp(3.25rem, 14.2vw, 5.2rem); }
  .hero__lead { margin-top: 28px; font-size: 1rem; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 24px; margin-top: 34px; }
  .hero__footer { bottom: 39.63vw; left: 16px; width: calc(100vw - 32px); height: 62px; gap: 10px; overflow: hidden; white-space: nowrap; }
  .hero__footer span:not(:last-child)::after { margin-left: 10px; }
  h2 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .intro__grid, .section-heading, .expertise__grid, .quality__grid, .career__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .intro__copy { font-size: 1rem; }
  .facts { grid-template-columns: 1fr; margin-top: 50px; }
  .fact, .fact:not(:first-child) { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { margin-bottom: 42px; }
  .company-card { min-height: 380px; padding: 24px; }
  .company-card__identity { min-height: 160px; margin-block: 20px 24px; padding-block: 24px; }
  .company-card__logo { max-width: 100%; }
  .company-card__bottom p { font-size: .92rem; }
  .expertise__intro { position: static; }
  .expertise-list li { grid-template-columns: 38px 1fr; }
  .quality__grid { gap: 60px; }
  .career__label { font-size: 20vw; }
  .contact-form { padding: 26px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .site-footer__top, .site-footer__bottom { align-items: flex-start; flex-direction: column; gap: 28px; }
  .site-footer__contact { justify-items: start; }
  .company-dialog { padding: 48px 26px 32px; }
  .company-dialog__brand { min-height: 110px; padding-right: 30px; }
  .company-dialog__services { grid-template-columns: 1fr; }
  .company-dialog__actions { align-items: stretch; flex-direction: column; }
  .legal-hero { min-height: 490px; padding: 150px 0 70px; }
  .legal-hero__inner::after { bottom: -10px; font-size: 24vw; }
  .legal-back { margin-bottom: 42px; }
  .legal-hero h1 { font-size: clamp(3rem, 14.5vw, 6.5rem); }
  .legal-hero__lead { margin-top: 28px; font-size: 1rem; }
  .legal-content { padding: 80px 0 100px; }
  .legal-layout { grid-template-columns: 1fr; gap: 56px; }
  .legal-toc { position: static; }
  .legal-section { padding-bottom: 58px; margin-bottom: 58px; }
  .legal-note--prototype { margin-bottom: 58px; }
}

@media (max-width: 480px) {
  .hero__footer { justify-content: space-between; gap: 0; font-size: .58rem; letter-spacing: .1em; }
  .hero__footer span:not(:last-child)::after { margin-left: 6px; }
  .contact__details > * { grid-template-columns: 1fr; gap: 2px; }
  .contact__details strong { overflow-wrap: anywhere; }
  .contact-option { flex: 1 1 calc(50% - 5px); }
  .company-dialog__actions .button { width: 100%; }
  .legal-entity--primary,
  .legal-note,
  .legal-address { padding: 24px 20px; }
  .legal-data > div { grid-template-columns: 1fr; gap: 4px; }
}

@media print {
  .site-header,
  .site-footer,
  .legal-toc,
  .legal-back,
  .legal-hero__inner::after { display: none !important; }
  .legal-hero { min-height: 0; padding: 32px 0; }
  .legal-content { padding: 24px 0; }
  .legal-layout { display: block; }
  .legal-section { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
